hexsha
stringlengths
40
40
size
int64
19
11.4M
ext
stringclasses
13 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
270
max_stars_repo_name
stringlengths
5
110
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
9
max_stars_count
float64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
270
max_issues_repo_name
stringlengths
5
116
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
9
max_issues_count
float64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
270
max_forks_repo_name
stringlengths
5
116
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
9
max_forks_count
float64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
19
11.4M
avg_line_length
float64
1.93
229k
max_line_length
int64
12
688k
alphanum_fraction
float64
0.07
0.99
matches
listlengths
1
10
55d8872d553ea4681a9589bed989cd63eca8d952
6,070
cxx
C++
panda/src/pgui/pgWaitBar.cxx
kestred/panda3d
16bfd3750f726a8831771b81649d18d087917fd5
[ "PHP-3.01", "PHP-3.0" ]
3
2018-03-09T12:07:29.000Z
2021-02-25T06:50:25.000Z
panda/src/pgui/pgWaitBar.cxx
Sinkay/panda3d
16bfd3750f726a8831771b81649d18d087917fd5
[ "PHP-3.01", "PHP-3.0" ]
null
null
null
panda/src/pgui/pgWaitBar.cxx
Sinkay/panda3d
16bfd3750f726a8831771b81649d18d087917fd5
[ "PHP-3.01", "PHP-3.0" ]
null
null
null
// Filename: pgWaitBar.cxx // Created by: drose (14Mar02) // //////////////////////////////////////////////////////////////////// // // PANDA 3D SOFTWARE // Copyright (c) Carnegie Mellon University. All rights reserved. // // All use of this software is subject to the terms of the revised BSD // license. You should have received a copy of this license along // with this source code in a file named "LICENSE." // //////////////////////////////////////////////////////////////////// #include "pgWaitBar.h" #include "pgMouseWatcherParameter.h" #include "throw_event.h" TypeHandle PGWaitBar::_type_handle; //////////////////////////////////////////////////////////////////// // Function: PGWaitBar::Constructor // Access: Published // Description: //////////////////////////////////////////////////////////////////// PGWaitBar:: PGWaitBar(const string &name) : PGItem(name) { set_cull_callback(); _range = 100.0; _value = 0.0; _bar_state = -1; } //////////////////////////////////////////////////////////////////// // Function: PGWaitBar::Destructor // Access: Public, Virtual // Description: //////////////////////////////////////////////////////////////////// PGWaitBar:: ~PGWaitBar() { } //////////////////////////////////////////////////////////////////// // Function: PGWaitBar::Copy Constructor // Access: Protected // Description: //////////////////////////////////////////////////////////////////// PGWaitBar:: PGWaitBar(const PGWaitBar &copy) : PGItem(copy), _range(copy._range), _value(copy._value) { _bar_state = -1; } //////////////////////////////////////////////////////////////////// // Function: PGWaitBar::make_copy // Access: Public, Virtual // Description: Returns a newly-allocated Node that is a shallow copy // of this one. It will be a different Node pointer, // but its internal data may or may not be shared with // that of the original Node. //////////////////////////////////////////////////////////////////// PandaNode *PGWaitBar:: make_copy() const { LightReMutexHolder holder(_lock); return new PGWaitBar(*this); } //////////////////////////////////////////////////////////////////// // Function: PGWaitBar::cull_callback // Access: Protected, Virtual // Description: This function will be called during the cull // traversal to perform any additional operations that // should be performed at cull time. This may include // additional manipulation of render state or additional // visible/invisible decisions, or any other arbitrary // operation. // // Note that this function will *not* be called unless // set_cull_callback() is called in the constructor of // the derived class. It is necessary to call // set_cull_callback() to indicated that we require // cull_callback() to be called. // // By the time this function is called, the node has // already passed the bounding-volume test for the // viewing frustum, and the node's transform and state // have already been applied to the indicated // CullTraverserData object. // // The return value is true if this node should be // visible, or false if it should be culled. //////////////////////////////////////////////////////////////////// bool PGWaitBar:: cull_callback(CullTraverser *trav, CullTraverserData &data) { LightReMutexHolder holder(_lock); update(); return PGItem::cull_callback(trav, data); } //////////////////////////////////////////////////////////////////// // Function: PGWaitBar::setup // Access: Published // Description: Creates a PGWaitBar with the indicated dimensions, // with the indicated maximum range. //////////////////////////////////////////////////////////////////// void PGWaitBar:: setup(PN_stdfloat width, PN_stdfloat height, PN_stdfloat range) { LightReMutexHolder holder(_lock); set_state(0); clear_state_def(0); set_frame(-0.5f * width, 0.5f * width, -0.5f * height, 0.5f * height); PN_stdfloat bevel = 0.05f; PGFrameStyle style; style.set_width(bevel, bevel); style.set_color(0.6f, 0.6f, 0.6f, 1.0f); style.set_type(PGFrameStyle::T_bevel_in); set_frame_style(0, style); style.set_color(0.8f, 0.8f, 0.8f, 1.0f); style.set_type(PGFrameStyle::T_bevel_out); set_bar_style(style); } //////////////////////////////////////////////////////////////////// // Function: PGWaitBar::update // Access: Private // Description: Computes the appropriate size of the bar frame // according to the percentage completed. //////////////////////////////////////////////////////////////////// void PGWaitBar:: update() { LightReMutexHolder holder(_lock); int state = get_state(); // If the bar was last drawn in this state and is still current, we // don't have to draw it again. if (_bar_state == state) { return; } // Remove the old bar geometry, if any. _bar.remove_node(); // Now create new bar geometry. if ((_value != 0.0f) && (_range != 0.0f)) { NodePath &root = get_state_def(state); nassertv(!root.is_empty()); PGFrameStyle style = get_frame_style(state); const LVecBase4 &frame = get_frame(); const LVecBase2 &width = style.get_width(); // Put the bar within the item's frame's border. LVecBase4 bar_frame(frame[0] + width[0], frame[1] - width[0], frame[2] + width[1], frame[3] - width[1]); // And scale the bar according to our value. PN_stdfloat frac = _value / _range; frac = max(min(frac, (PN_stdfloat)1.0), (PN_stdfloat)0.0); bar_frame[1] = bar_frame[0] + frac * (bar_frame[1] - bar_frame[0]); _bar = _bar_style.generate_into(root, bar_frame, 1); } // Indicate that the bar is current for this state. _bar_state = state; }
33.722222
72
0.527842
[ "geometry", "render", "object", "transform", "3d" ]
55d989e2541e930afef82ad90262162f0388fd2f
230
hpp
C++
Cppquarium/Observer.hpp
Nicochou/CppQuarium
0ae54081d35f1c0147084fc1c9fd3735e51a959d
[ "MIT" ]
null
null
null
Cppquarium/Observer.hpp
Nicochou/CppQuarium
0ae54081d35f1c0147084fc1c9fd3735e51a959d
[ "MIT" ]
null
null
null
Cppquarium/Observer.hpp
Nicochou/CppQuarium
0ae54081d35f1c0147084fc1c9fd3735e51a959d
[ "MIT" ]
null
null
null
#ifndef OBSERVER_HPP #define OBSERVER_HPP #include "Event.hpp" template <typename Object> class Observer { public: Observer() {}; virtual ~Observer() {}; virtual void refresh(Event<Object>* e) = 0; }; #endif // OBSERVER_HPP
15.333333
44
0.708696
[ "object" ]
55defe38ca363c3b5b88e0bdd9ef6332b7d4d871
7,197
cpp
C++
TCPReassembler.cpp
xstupi00/DNS-Export
c3ece89984b66aa7e4efe7a9aa854accbc3afc98
[ "MIT" ]
null
null
null
TCPReassembler.cpp
xstupi00/DNS-Export
c3ece89984b66aa7e4efe7a9aa854accbc3afc98
[ "MIT" ]
null
null
null
TCPReassembler.cpp
xstupi00/DNS-Export
c3ece89984b66aa7e4efe7a9aa854accbc3afc98
[ "MIT" ]
null
null
null
/************************************************************** * Project: DNS Export * File: TCPReassembler.cpp * Author: Šimon Stupinský * University: Brno University of Technology * Faculty: Faculty of Information Technology * Course: Network Applications and Network Administration * Date: 28.09.2018 * Last change: 16.11.2018 * * Subscribe: The main module of TCPReassembler for executing the reassembling of TCP Packets. * **************************************************************/ /** * @file TCPReassembler.cpp * @brief This module implements methods from the TCPReassembler class, which are required to executing reassembling * of TCP packets. */ #include "TCPReassembler.h" /** * TCPReassembler Contructor. */ TCPReassembler::TCPReassembler(size_t link_header_length) { this->datalink_header_length = link_header_length; } /** * Default Destructor. */ TCPReassembler::~TCPReassembler() = default; unsigned char *TCPReassembler::parse_transport_protocol(const unsigned char *packet, size_t offset, u_int8_t protocol, bool tcp_parse) { unsigned char *payload = nullptr; ///< check correct access to the memory from that will be reading and the valid value of transport protocol if (protocol == IPPROTO_TCP and std::addressof(packet) + offset + sizeof(struct tcphdr) <= this->end_addr) { ///< obtaining the TCP Header const struct tcphdr *tcp_header = (struct tcphdr *) (packet + offset); ///< computing TCP Header Length size_t th_off = tcp_header->th_off << FOUR_OCTET_UNIT_TO_BYTES; ///< check the non-zero length of TCP Segment Length and correct access to the memory if (!tcp_parse and this->network_payload_len - th_off) { ///< tcp_parse = 0 if (std::addressof(packet) + offset + th_off <= this->end_addr) { ///< store the individual values required at reassembling this->tcp_sequence_number = ntohl(tcp_header->th_seq); this->tcp_segment_length = this->network_payload_len - th_off; ///< obtaining DNS Payload payload = (unsigned char *) (packet + offset + th_off); ///< obtaining the specific DNS PAYLOAD LENGTH value occurs only in TCP&DNS this->dns_length = ntohs(*((unsigned short *) payload)); ///< store the individual values required at reassembling this->last_packet_length = this->total_len; this->packet_hdr_len = offset + th_off; payload += sizeof(unsigned short); } } else if (this->network_payload_len - th_off) { ///< tcp_parse = 1 ///< check the valid sequence of the sequence number of the actual packet and the last processing packet if (ntohl(tcp_header->th_seq) % INT_RANGE == (this->tcp_sequence_number + tcp_segment_length) % INT_RANGE) { ///< check correct access to the memory if (std::addressof(packet) + offset + th_off <= this->end_addr) { ///< store the individual values required at reassembling this->tcp_sequence_number = ntohl(tcp_header->th_seq); this->tcp_segment_length = this->network_payload_len - th_off; ///< obtaining DNS Payload payload = (unsigned char *) (packet + offset + th_off); } } } ///< the summary length of the reassembled packet this->summary_length += tcp_segment_length; } return payload; } std::vector<std::pair<const unsigned char *, const unsigned char **>> TCPReassembler::reassembling_packets( std::vector<std::tuple<const unsigned char *, const unsigned char **, bool>> *tcp_packets) { std::vector<std::pair<const unsigned char *, const unsigned char **>> reassembled_tcp_packets; for (std::tuple<const unsigned char *, const unsigned char **, bool> &tcp_packet : *tcp_packets) { if (std::get<2>(tcp_packet)) continue; this->end_addr = std::get<1>(tcp_packet); unsigned char *payload = this->my_pcap_handler(std::get<0>(tcp_packet)); if (payload) { if (std::addressof(std::get<0>(tcp_packet)) + this->total_len <= this->end_addr) { auto reassembled_packet = (const unsigned char *) malloc(this->total_len); if (reassembled_packet == nullptr) { std::perror("malloc() failed: "); exit(EXIT_FAILURE); } memcpy((unsigned char *) reassembled_packet, std::get<0>(tcp_packet), this->total_len); auto j = (unsigned int) distance(&tcp_packets->at(0), &tcp_packet) + 1; ///< in-order byte stream while (this->summary_length < this->dns_length && j < tcp_packets->size()) { if (std::get<2>((*tcp_packets).at(j))) { j++; continue; } this->end_addr = std::get<1>((*tcp_packets).at(j)); payload = this->my_pcap_handler(std::get<0>((*tcp_packets).at(j)), true); if (payload and std::addressof(payload) + this->tcp_segment_length <= (unsigned char **) this->end_addr) { std::get<2>((*tcp_packets).at(j)) = true; reassembled_packet = (const unsigned char *) realloc((unsigned char *) reassembled_packet, (this->tcp_segment_length + this->last_packet_length)); if (reassembled_packet == nullptr) { std::perror("malloc() failed: "); exit(EXIT_FAILURE); } memcpy((unsigned char *) reassembled_packet + this->last_packet_length, payload, this->tcp_segment_length); this->last_packet_length += this->tcp_segment_length; } else { ///< don't found the required ACK_NUMBER, will continue on the next packet j++; } } std::pair<const unsigned char *, const unsigned char **> packet_info = std::make_pair( reassembled_packet, std::addressof(reassembled_packet) + this->packet_hdr_len + this->dns_length); if (this->summary_length >= this->dns_length) { std::get<2>(tcp_packet) = true; reassembled_tcp_packets.push_back(packet_info); } this->summary_length = 0; } } } for (unsigned i = 0; i < tcp_packets->size(); i++) { if (std::get<2>(tcp_packets->at(i))) { tcp_packets->erase(tcp_packets->begin() + i); i--; } } return reassembled_tcp_packets; }
46.432258
120
0.551202
[ "vector" ]
55e267103e38c48d867baeec77955805fa269ad5
18,088
cpp
C++
src/CQChartsImagePlot.cpp
Qt-Widgets/CQCharts
0ee923c5a2794b9e3845d0d88fa519fcdea7694a
[ "MIT" ]
null
null
null
src/CQChartsImagePlot.cpp
Qt-Widgets/CQCharts
0ee923c5a2794b9e3845d0d88fa519fcdea7694a
[ "MIT" ]
null
null
null
src/CQChartsImagePlot.cpp
Qt-Widgets/CQCharts
0ee923c5a2794b9e3845d0d88fa519fcdea7694a
[ "MIT" ]
null
null
null
#include <CQChartsImagePlot.h> #include <CQChartsView.h> #include <CQChartsAxis.h> #include <CQChartsUtil.h> #include <CQCharts.h> #include <CQChartsDrawUtil.h> #include <CQChartsTip.h> #include <CQChartsPaintDevice.h> #include <CQChartsHtml.h> #include <CQPropertyViewItem.h> #include <CQPerfMonitor.h> #include <QMenu> CQChartsImagePlotType:: CQChartsImagePlotType() { } void CQChartsImagePlotType:: addParameters() { CQChartsPlotType::addParameters(); } QString CQChartsImagePlotType:: description() const { auto IMG = [](const QString &src) { return CQChartsHtml::Str::img(src); }; return CQChartsHtml(). h2("Image Plot"). h3("Summary"). p("Draw 2d grid of 'pixels' from values in 2d table."). p("The pixels can be drawn as cells or scaled circles (balloon)."). p("The cells are colored using the scaled value."). h3("Columns"). p("All row column values of the model are used for the pixels of the image."). p("The vertical and horizontal headers are used for the row and column labels respetively."). h3("Options"). p("To scale the colors and circle sizes for the cell the user can supply a maximum and/or " "minimum value for the values in the value column. If not specifed the compured minimum " "and maximum will be used"). p("X and/or Y labels can be added to the outside of the grid."). p("Labels can be added to each grid cell and the labels can be scaled " "to represent the size of the associated value."). h3("Limitations"). p("Does not support axes."). h3("Example"). p(IMG("images/imageplot.png")); } CQChartsPlot * CQChartsImagePlotType:: create(CQChartsView *view, const ModelP &model) const { return new CQChartsImagePlot(view, model); } //------ CQChartsImagePlot:: CQChartsImagePlot(CQChartsView *view, const ModelP &model) : CQChartsPlot(view, view->charts()->plotType("image"), model), CQChartsObjCellShapeData <CQChartsImagePlot>(this), CQChartsObjCellLabelTextData<CQChartsImagePlot>(this), CQChartsObjXLabelTextData <CQChartsImagePlot>(this), CQChartsObjYLabelTextData <CQChartsImagePlot>(this) { NoUpdate noUpdate(this); addTitle(); setCellFillColor (CQChartsColor(CQChartsColor::Type::PALETTE)); setCellStroked (false); setCellLabelTextAlign(Qt::AlignHCenter | Qt::AlignVCenter); setXLabelTextAlign (Qt::AlignHCenter | Qt::AlignVCenter); setYLabelTextAlign (Qt::AlignHCenter | Qt::AlignVCenter); } CQChartsImagePlot:: ~CQChartsImagePlot() { } void CQChartsImagePlot:: addProperties() { auto addProp = [&](const QString &path, const QString &name, const QString &alias, const QString &desc) { return &(this->addProperty(path, this, name, alias)->setDesc(desc)); }; //--- CQChartsPlot::addProperties(); // cell style addProp("cell", "cellStyle", "style", "Cell style (rect or balloon)"); // cell labels //addProp("cell/labels", "scaleCellLabels", "scaled" , "Scale cell labels"); // cell fill addProp("cell/fill", "cellFilled", "visible", "Cell fill visible"); addFillProperties("cell/fill", "cellFill", "Cell"); // cell stroke addProp("cell/stroke", "cellStroked", "visible", "Cell stroke visible"); addLineProperties("cell/stroke", "cellStroke", "Cell"); // cell label text addProp("cell/text", "cellLabels", "visible", "Cell text label visible"); addAllTextProperties("cell/text", "cellLabelText", "Cell label"); // x/y axis label text addProp("xaxis/text", "xLabels", "visible", "X labels visible"); addTextProperties("xaxis/text", "xLabelText", "X label"); addProp("yaxis/text", "yLabels", "visible", "Y labels visible"); addTextProperties("yaxis/text", "yLabelText", "Y label"); } //------ void CQChartsImagePlot:: setMinValue(double r) { CQChartsUtil::testAndSet(minValue_, r, [&]() { drawObjs(); } ); } void CQChartsImagePlot:: setMaxValue(double r) { CQChartsUtil::testAndSet(maxValue_, r, [&]() { drawObjs(); } ); } //--- void CQChartsImagePlot:: setXLabels(bool b) { CQChartsUtil::testAndSet(xLabels_, b, [&]() { drawObjs(); } ); } void CQChartsImagePlot:: setYLabels(bool b) { CQChartsUtil::testAndSet(yLabels_, b, [&]() { drawObjs(); } ); } void CQChartsImagePlot:: setCellLabels(bool b) { CQChartsUtil::testAndSet(cellLabels_, b, [&]() { drawObjs(); } ); } #if 0 void CQChartsImagePlot:: setScaleCellLabels(bool b) { CQChartsUtil::testAndSet(scaleCellLabels_, b, [&]() { drawObjs(); } ); } #endif void CQChartsImagePlot:: setRectStyle(bool b) { CellStyle cellStyle = (b ? CellStyle::RECT : CellStyle::BALLOON); setCellStyle(cellStyle); } void CQChartsImagePlot:: setBalloonStyle(bool b) { CellStyle cellStyle = (b ? CellStyle::BALLOON : CellStyle::RECT); setCellStyle(cellStyle); } void CQChartsImagePlot:: setCellStyle(const CellStyle &cellStyle) { CQChartsUtil::testAndSet(cellStyle_, cellStyle, [&]() { drawObjs(); } ); } //--- CQChartsGeom::Range CQChartsImagePlot:: calcRange() const { CQPerfTrace trace("CQChartsImagePlot::calcRange"); CQChartsImagePlot *th = const_cast<CQChartsImagePlot *>(this); class RowVisitor : public ModelVisitor { public: RowVisitor(const CQChartsImagePlot *plot) : plot_(plot) { } State visit(const QAbstractItemModel *, const VisitData &data) override { for (int col = 0; col < numCols(); ++col) { bool ok; double value = plot_->modelReal(data.row, col, data.parent, ok); if (ok && ! CMathUtil::isNaN(value)) valueRange_.add(value); } return State::OK; } double minValue() const { return valueRange_.min(0.0); } double maxValue() const { return valueRange_.max(1.0); } private: const CQChartsImagePlot* plot_ { nullptr }; CQChartsGeom::RMinMax valueRange_; }; RowVisitor visitor(this); visitModel(visitor); //--- // set value range th->minValue_ = visitor.minValue(); if (xmin().isSet()) th->minValue_ = xmin().real(); th->maxValue_ = visitor.maxValue(); if (xmax().isSet()) th->maxValue_ = xmax().real(); //--- CQChartsGeom::Range dataRange; th->nr_ = visitor.numRows(); th->nc_ = visitor.numCols(); dataRange.updateRange( 0, 0); dataRange.updateRange(nc_, nr_); //--- return dataRange; } bool CQChartsImagePlot:: createObjs(PlotObjs &objs) const { CQPerfTrace trace("CQChartsImagePlot::createObjs"); NoUpdate noUpdate(this); //--- class RowVisitor : public ModelVisitor { public: RowVisitor(const CQChartsImagePlot *plot, PlotObjs &objs) : plot_(plot), objs_(objs) { } State visit(const QAbstractItemModel *, const VisitData &data) override { x_ = 0.0; for (int col = 0; col < numCols(); ++col) { QModelIndex ind = plot_->modelIndex(data.row, col, data.parent); bool ok; double value = plot_->modelReal(data.row, col, data.parent, ok); //--- plot_->addImageObj(data.row, col, x_, y_, dx_, dy_, value, ind, objs_); //--- x_ += dx_; } y_ += dy_; return State::OK; } private: const CQChartsImagePlot* plot_ { nullptr }; PlotObjs& objs_; double x_ { 0.0 }; double y_ { 0.0 }; double dx_ { 1.0 }; double dy_ { 1.0 }; }; RowVisitor visitor(this, objs); visitModel(visitor); //--- return true; } void CQChartsImagePlot:: addImageObj(int row, int col, double x, double y, double dx, double dy, double value, const QModelIndex &ind, PlotObjs &objs) const { QModelIndex ind1 = normalizeIndex(ind); CQChartsGeom::BBox bbox(x, y, x + dx, y + dy); double rv = CMathUtil::map(value, minValue(), maxValue(), 0.0, 1.0); CQChartsImageObj *imageObj = new CQChartsImageObj(this, bbox, row, col, value, ind1, ColorInd(rv)); objs.push_back(imageObj); } //--- bool CQChartsImagePlot:: probe(ProbeData &probeData) const { CQChartsPlotObj *obj; if (! objNearestPoint(probeData.p, obj)) return false; CQChartsGeom::Point c = obj->rect().getCenter(); probeData.p = c; probeData.both = true; probeData.xvals.push_back(c.x); probeData.yvals.push_back(c.y); return true; } //--- bool CQChartsImagePlot:: addMenuItems(QMenu *menu) { auto addMenuCheckedAction = [&](QMenu *menu, const QString &name, bool isSet, const char *slot) -> QAction *{ QAction *action = new QAction(name, menu); action->setCheckable(true); action->setChecked(isSet); connect(action, SIGNAL(triggered(bool)), this, slot); menu->addAction(action); return action; }; auto addCheckedAction = [&](const QString &name, bool isSet, const char *slot) -> QAction *{ return addMenuCheckedAction(menu, name, isSet, slot); }; //--- menu->addSeparator(); QMenu *styleMenu = new QMenu("Cell Style"); (void) addMenuCheckedAction(styleMenu, "Rect" , isRectStyle (), SLOT(setRectStyle (bool))); (void) addMenuCheckedAction(styleMenu, "Balloon", isBalloonStyle(), SLOT(setBalloonStyle(bool))); menu->addMenu(styleMenu); (void) addCheckedAction("Cell Labels", isCellLabels(), SLOT(setCellLabels(bool))); (void) addCheckedAction("X Labels" , isXLabels (), SLOT(setXLabels (bool))); (void) addCheckedAction("Y Labels" , isYLabels (), SLOT(setYLabels (bool))); return true; } //------ bool CQChartsImagePlot:: hasForeground() const { if (! isXLabels() && ! isYLabels()) return false; if (! isLayerActive(CQChartsLayer::Type::FOREGROUND)) return false; return true; } void CQChartsImagePlot:: execDrawForeground(CQChartsPaintDevice *device) const { if (isXLabels()) drawXLabels(device); if (isYLabels()) drawYLabels(device); } void CQChartsImagePlot:: drawXLabels(CQChartsPaintDevice *device) const { view()->setPlotPainterFont(this, device, xLabelTextFont()); //--- QPen tpen; QColor tc = interpXLabelTextColor(ColorInd()); setPen(tpen, true, tc, xLabelTextAlpha()); device->setPen(tpen); //--- CQChartsTextOptions textOptions; textOptions.contrast = isXLabelTextContrast(); textOptions.formatted = isXLabelTextFormatted(); textOptions.scaled = isXLabelTextScaled(); textOptions.html = isXLabelTextHtml(); textOptions.align = xLabelTextAlign(); textOptions.angle = xLabelTextAngle(); textOptions.scaled = isXLabelTextScaled(); //--- QFontMetricsF fm(device->font()); double tw = 0.0; double th = fm.height(); double tm = 4; for (int col = 0; col < numColumns(); ++col) { bool ok; QString name = modelHeaderString(col, Qt::Horizontal, ok); if (! name.length()) continue; tw = std::max(tw, fm.width(name)); } for (int col = 0; col < numColumns(); ++col) { bool ok; QString name = modelHeaderString(col, Qt::Horizontal, ok); if (! name.length()) continue; double tw1 = fm.width(name); QPointF p(col + 0.5, 0); QPointF p1 = windowToPixel(p); QRectF trect; if (! isInvertY()) trect = QRectF(p1.x() - tw1/2, p1.y() + tm, tw1, th); else trect = QRectF(p1.x() - tw1/2, p1.y() - th - tm, tw1, th); CQChartsTextOptions textOptions1 = adjustTextOptions(textOptions); CQChartsDrawUtil::drawTextInBox(device, device->pixelToWindow(trect), name, textOptions1); } } void CQChartsImagePlot:: drawYLabels(CQChartsPaintDevice *device) const { view()->setPlotPainterFont(this, device, yLabelTextFont()); //--- QPen tpen; QColor tc = interpYLabelTextColor(ColorInd()); setPen(tpen, true, tc, yLabelTextAlpha()); device->setPen(tpen); //--- CQChartsTextOptions textOptions; textOptions.contrast = isYLabelTextContrast(); textOptions.formatted = isYLabelTextFormatted(); textOptions.scaled = isYLabelTextScaled(); textOptions.html = isYLabelTextHtml(); textOptions.align = yLabelTextAlign(); textOptions.angle = yLabelTextAngle(); textOptions.scaled = isYLabelTextScaled(); //--- QFontMetricsF fm(device->font()); double tw = 0.0; double th = fm.height(); double tm = 4; for (int row = 0; row < numRows(); ++row) { bool ok; QString name = modelHeaderString(row, Qt::Vertical, ok); if (! name.length()) continue; tw = std::max(tw, fm.width(name)); } for (int row = 0; row < numRows(); ++row) { bool ok; QString name = modelHeaderString(row, Qt::Vertical, ok); if (! name.length()) continue; QPointF p(0, row + 0.5); QPointF p1 = windowToPixel(p); QRectF trect; if (! isInvertX()) trect = QRectF(p1.x() - tw - tm, p1.y() - th/2.0, tw, th); else trect = QRectF(p1.x() + tm, p1.y() - th/2.0, tw, th); CQChartsTextOptions textOptions1 = adjustTextOptions(textOptions); CQChartsDrawUtil::drawTextInBox(device, device->pixelToWindow(trect), name, textOptions1); } } //------ CQChartsGeom::BBox CQChartsImagePlot:: annotationBBox() const { QFont font = view()->plotFont(this, cellLabelTextFont()); QFontMetricsF fm(font); CQChartsGeom::BBox bbox; double tm = 4; if (isXLabels()) { double tw = 0.0; for (int col = 0; col < numColumns(); ++col) { bool ok; QString name = modelHeaderString(col, Qt::Horizontal, ok); if (! name.length()) continue; tw = std::max(tw, fm.width(name)); } double tw1 = pixelToWindowHeight(tw + tm); CQChartsGeom::BBox tbbox(0, -tw1, numColumns(), 0); bbox += tbbox; } if (isYLabels()) { double tw = 0.0; for (int row = 0; row < numRows(); ++row) { bool ok; QString name = modelHeaderString(row, Qt::Vertical, ok); if (! name.length()) continue; tw = std::max(tw, fm.width(name)); } double tw1 = pixelToWindowWidth(tw + tm); CQChartsGeom::BBox tbbox(-tw1, 0, 0, numRows()); bbox += tbbox; } return bbox; } //------ CQChartsImageObj:: CQChartsImageObj(const CQChartsImagePlot *plot, const CQChartsGeom::BBox &rect, int row, int col, double value, const QModelIndex &ind, const ColorInd &iv) : CQChartsPlotObj(const_cast<CQChartsImagePlot *>(plot), rect, ColorInd(), ColorInd(), iv), plot_(plot), row_(row), col_(col), value_(value) { setDetailHint(DetailHint::MAJOR); setModelInd(ind); } QString CQChartsImageObj:: calcId() const { return QString("%1:%2:%3").arg(typeName()).arg(row_).arg(col_); } QString CQChartsImageObj:: calcTipId() const { CQChartsTableTip tableTip; bool ok; QString xname = plot_->modelHeaderString(modelInd().column(), ok); QString yname = plot_->modelHeaderString(modelInd().row(), Qt::Vertical, ok); if (xname.length()) tableTip.addTableRow("X", xname); if (yname.length()) tableTip.addTableRow("Y", yname); tableTip.addTableRow("Value", value_); //--- plot()->addTipColumns(tableTip, modelInd()); //--- return tableTip.str(); } void CQChartsImageObj:: getSelectIndices(Indices &inds) const { addColumnSelectIndex(inds, modelInd().column()); } void CQChartsImageObj:: draw(CQChartsPaintDevice *device) { ColorInd ic; if (plot_->colorType() == CQChartsPlot::ColorType::AUTO) { double v = CMathUtil::norm(value_, plot_->minValue(), plot_->maxValue()); ic = ColorInd(v); } else ic = calcColorInd(); //--- // set pen and brush QColor fc = plot_->interpCellFillColor (ic); QColor bc = plot_->interpCellStrokeColor(ic); QPen pen; QBrush brush; plot_->setPen(pen, plot_->isCellStroked(), bc, plot_->cellStrokeAlpha(), plot_->cellStrokeWidth(), plot_->cellStrokeDash()); plot_->setBrush(brush, plot_->isCellFilled(), fc, plot_->cellFillAlpha(), plot_->cellFillPattern()); plot_->updateObjPenBrushState(this, pen, brush); device->setPen (pen); device->setBrush(brush); //--- if (plot_->cellStyle() == CQChartsImagePlot::CellStyle::RECT) { QRectF qrect = rect().qrect(); device->drawRect(qrect); //--- if (plot_->isCellLabels()) { // set font plot_->view()->setPlotPainterFont(plot_, device, plot_->cellLabelTextFont()); //--- // set pen QPen tpen; QBrush tbrush; QColor tc = plot_->interpCellLabelTextColor(ic); plot_->setPen(tpen, true, tc, plot_->cellLabelTextAlpha()); plot_->updateObjPenBrushState(this, tpen, tbrush); device->setPen(tpen); //--- QString valueStr = CQChartsUtil::formatReal(value_); CQChartsTextOptions textOptions; textOptions.contrast = plot_->isCellLabelTextContrast(); textOptions.formatted = plot_->isCellLabelTextFormatted(); textOptions.scaled = plot_->isCellLabelTextScaled(); textOptions.html = plot_->isCellLabelTextHtml(); textOptions.align = plot_->cellLabelTextAlign(); textOptions.scaled = plot_->isCellLabelTextScaled(); textOptions = plot_->adjustTextOptions(textOptions); CQChartsDrawUtil::drawTextInBox(device, qrect, valueStr, textOptions); } } else if (plot_->cellStyle() == CQChartsImagePlot::CellStyle::BALLOON) { CQChartsGeom::BBox prect = plot_->windowToPixel(rect()); QRectF qrect = prect.qrect(); double s = std::min(qrect.width(), qrect.height()); double minSize = s*plot_->minBalloonSize(); double maxSize = s*plot_->maxBalloonSize(); double s1 = CMathUtil::map(value_, plot_->minValue(), plot_->maxValue(), minSize, maxSize); QPointF center = qrect.center(); //--- QRectF erect(center.x() - s1/2, center.y() - s1/2, s1, s1); device->drawEllipse(device->pixelToWindow(erect)); } } double CQChartsImageObj:: xColorValue(bool relative) const { if (! relative) return col_; else return CMathUtil::map(col_, 0.0, 1.0*plot_->numColumns(), 0.0, 1.0); } double CQChartsImageObj:: yColorValue(bool relative) const { if (! relative) return col_; else return CMathUtil::map(row_, 0.0, 1.0*plot_->numRows(), 0.0, 1.0); }
22.441687
99
0.6501
[ "model" ]
55e83c270d6019036d86dd14b8d22b1873b93f14
1,299
cpp
C++
src/processor.cpp
blacksaturn1/CppND-System-Monitor-Project-Updated
4048fde198dd4807c30489e394c4993ddf3c3fbf
[ "MIT" ]
null
null
null
src/processor.cpp
blacksaturn1/CppND-System-Monitor-Project-Updated
4048fde198dd4807c30489e394c4993ddf3c3fbf
[ "MIT" ]
null
null
null
src/processor.cpp
blacksaturn1/CppND-System-Monitor-Project-Updated
4048fde198dd4807c30489e394c4993ddf3c3fbf
[ "MIT" ]
null
null
null
#include "processor.h" #include "linux_parser.h" #include <vector> #include <string> #include <iostream> #include <unistd.h> using std::cerr; // TODONE: Return the aggregate CPU utilization float Processor::Utilization() { std::vector<std::string> cpuStats2=LinuxParser::CpuUtilization(); double user_n,nice_n,system_n,idle_n,iowait_n,irq_n,softirq_n,steal_n,guest_n,guest_nice_n;//,guest_n,guest_nice_n; user_n = std::stol(cpuStats2[0]); nice_n = std::stol(cpuStats2[1]); system_n = std::stol(cpuStats2[2]); idle_n = std::stol(cpuStats2[3]); iowait_n = std::stol(cpuStats2[4]); irq_n = std::stol(cpuStats2[5]); softirq_n = std::stol(cpuStats2[6]); steal_n = std::stol(cpuStats2[7]); guest_n = std::stol(cpuStats2[8]); guest_nice_n= std::stol(cpuStats2[9]); double idle = idle_n + iowait_n; double nonIdle = user_n+nice_n+system_n+irq_n+softirq_n+steal_n+guest_n+guest_nice_n ; double total = idle + nonIdle; double totalDiff = total - previousTotal_; if(0==totalDiff)return 0; double util=( (totalDiff) - (idle-previousIdle_))/(totalDiff); previousTotal_=total; previousIdle_=idle; return util; }
34.184211
123
0.635104
[ "vector" ]
55ea87a2fc01145322e57bfc66ec6ed371d115b3
1,310
cpp
C++
src/bit_stream_tests.cpp
thousandvoices/memb
edbee1773a762d7fbe5eaebd15b95803b23254a6
[ "MIT" ]
5
2019-02-05T09:46:33.000Z
2019-02-11T12:29:41.000Z
src/bit_stream_tests.cpp
thousandvoices/memb
edbee1773a762d7fbe5eaebd15b95803b23254a6
[ "MIT" ]
null
null
null
src/bit_stream_tests.cpp
thousandvoices/memb
edbee1773a762d7fbe5eaebd15b95803b23254a6
[ "MIT" ]
1
2019-02-05T16:50:08.000Z
2019-02-05T16:50:08.000Z
#include <boost/test/unit_test.hpp> #include "bit_stream.h" using namespace memb; std::string prettyBitString(uint16_t value, size_t maxBits) { std::string result; for (size_t i = 0; i < maxBits; ++i) { result.push_back('0' + value % 2); value /= 2; } std::reverse(result.begin(), result.end()); return result; } std::string repr(const std::vector<uint8_t>& data) { std::ostringstream stream; for (auto value : data) { stream << prettyBitString(value, 8); } return stream.str(); } BOOST_AUTO_TEST_SUITE(bitStream) BOOST_AUTO_TEST_CASE(bitStreamWorks) { BitStream bitStream; std::vector<PrefixCode> prefixCodes = { {1023, 14}, {33, 6}, {0, 4}, {1234, 11}, {7, 2} }; for (const auto& code : prefixCodes) { bitStream.push(code); } std::string bitStreamRepr = repr(bitStream.data()); std::ostringstream stream; size_t totalLength = 0; for (const auto& code: prefixCodes) { stream << prettyBitString(code.code, code.bitsCount); totalLength += code.bitsCount; } stream << std::string(8 - totalLength % 8, '0'); std::string simpleRepr = stream.str(); BOOST_CHECK_EQUAL(bitStreamRepr, simpleRepr); } BOOST_AUTO_TEST_SUITE_END()
21.129032
61
0.615267
[ "vector" ]
55f2d75a6553f098e166b06a6f42be53794c942b
1,346
cc
C++
2D/Image.cc
pfederl/FEM2D-cracks
f664f7a618a7caa223ad37ed5d9d0f02e1e37ebf
[ "MIT" ]
null
null
null
2D/Image.cc
pfederl/FEM2D-cracks
f664f7a618a7caa223ad37ed5d9d0f02e1e37ebf
[ "MIT" ]
null
null
null
2D/Image.cc
pfederl/FEM2D-cracks
f664f7a618a7caa223ad37ed5d9d0f02e1e37ebf
[ "MIT" ]
1
2020-04-14T07:34:33.000Z
2020-04-14T07:34:33.000Z
#include <stdio.h> #include <stdlib.h> #include <assert.h> #include <malloc.h> #include "Image.hh" #include "readrgb.hh" Image::Image() { data = NULL; width = 0; height = 0; } int Image::load( const char * fname) { fprintf( stderr, "Image::load( %s)\n", fname); int tmp_width, tmp_height, tmp_components; unsigned * tmp_data = read_texture( fname, & tmp_width, & tmp_height, & tmp_components); fprintf( stderr, " - size: %dx%d\n", tmp_width, tmp_height); fprintf( stderr, " - components: %d\n", tmp_components); // make sure there were no errors if( tmp_data == NULL) { fprintf( stderr, "Image::load(%s): could not load.\n", fname); return -1; } // make sure this was a GREYSCALE image if( tmp_components != 1) { fprintf( stderr, "Image::load(%s): not a grey-scale image.\n", fname); free( tmp_data); return -1; } // transform the data to our own height = tmp_height; width = tmp_width; data = new unsigned char * [height]; for( long i = 0 ; i < height ; i ++) { data[i] = new unsigned char [width]; for( long j = 0 ; j < width ; j ++) data[i][j] = ((unsigned char *) tmp_data) [i*width*4 + j*4 + 0]; } free( tmp_data); return 0; } unsigned char Image::get( long row, long col) { assert( row >= 0 && row < height); assert( col >= 0 && col < width); return data[row][col]; }
21.365079
70
0.617385
[ "transform" ]
55f65cb8967650f7dd552d51ec25816514de359e
46,887
cpp
C++
src/chain/script.cpp
ccccbjcn/nuls-v2-cplusplus-sdk
3d5a76452fe0673eba490b26e5a95fea3d5788df
[ "MIT" ]
1
2020-04-26T07:32:52.000Z
2020-04-26T07:32:52.000Z
src/chain/script.cpp
CCC-NULS/nuls-cplusplus-sdk
3d5a76452fe0673eba490b26e5a95fea3d5788df
[ "MIT" ]
null
null
null
src/chain/script.cpp
CCC-NULS/nuls-cplusplus-sdk
3d5a76452fe0673eba490b26e5a95fea3d5788df
[ "MIT" ]
null
null
null
/** * Copyright (c) 2020 libnuls developers (see AUTHORS) * * This file is part of libnuls. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 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 Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include <nuls/system/chain/script.hpp> #include <algorithm> #include <cstddef> #include <cstdint> #include <iterator> #include <numeric> #include <sstream> #include <utility> #include <boost/range/adaptor/reversed.hpp> #include <nuls/system/constants.hpp> #include <nuls/system/chain/transaction.hpp> #include <nuls/system/chain/witness.hpp> #include <nuls/system/error.hpp> #include <nuls/system/formats/base_16.hpp> #include <nuls/system/math/elliptic_curve.hpp> #include <nuls/system/math/hash.hpp> #include <nuls/system/machine/opcode.hpp> #include <nuls/system/machine/operation.hpp> #include <nuls/system/machine/program.hpp> #include <nuls/system/machine/rule_fork.hpp> #include <nuls/system/machine/script_pattern.hpp> #include <nuls/system/machine/script_version.hpp> #include <nuls/system/machine/sighash_algorithm.hpp> #include <nuls/system/message/messages.hpp> #include <nuls/system/utility/assert.hpp> #include <nuls/system/utility/container_sink.hpp> #include <nuls/system/utility/container_source.hpp> #include <nuls/system/utility/data.hpp> #include <nuls/system/utility/istream_reader.hpp> #include <nuls/system/utility/ostream_writer.hpp> #include <nuls/system/utility/string.hpp> namespace libnuls { namespace system { namespace chain { using namespace nuls::system::machine; using namespace boost::adaptors; // bit.ly/2cPazSa static const auto one_hash = hash_literal( "0000000000000000000000000000000000000000000000000000000000000001"); // Constructors. //----------------------------------------------------------------------------- // A default instance is invalid (until modified). script::script() : cached_(false), valid_(false) { } script::script(script&& other) : operations_(std::move(other.operations_move())), cached_(!operations_.empty()), bytes_(std::move(other.bytes_)), valid_(other.valid_) { } script::script(const script& other) : operations_(other.operations_copy()), cached_(!operations_.empty()), bytes_(other.bytes_), valid_(other.valid_) { } script::script(const operation::list& ops) { from_operations(ops); } script::script(operation::list&& ops) { from_operations(std::move(ops)); } script::script(data_chunk&& encoded, bool prefix) { if (prefix) { valid_ = from_data(encoded, prefix); return; } // This is an optimization that avoids streaming the encoded bytes. bytes_ = std::move(encoded); cached_ = false; valid_ = true; } script::script(const data_chunk& encoded, bool prefix) { valid_ = from_data(encoded, prefix); } // Private cache access for move construction. script::operation::list& script::operations_move() { shared_lock lock(mutex_); return operations_; } // Private cache access for copy construction. const script::operation::list& script::operations_copy() const { shared_lock lock(mutex_); return operations_; } // Operators. //----------------------------------------------------------------------------- // Concurrent read/write is not supported, so no critical section. script& script::operator=(script&& other) { operations_ = other.operations_move(); cached_ = !operations_.empty(); bytes_ = std::move(other.bytes_); valid_ = other.valid_; return *this; } // Concurrent read/write is not supported, so no critical section. script& script::operator=(const script& other) { operations_ = other.operations_copy(); cached_ = !operations_.empty(); bytes_ = other.bytes_; valid_ = other.valid_; return *this; } bool script::operator==(const script& other) const { return bytes_ == other.bytes_; } bool script::operator!=(const script& other) const { return !(*this == other); } // Deserialization. //----------------------------------------------------------------------------- // static script script::factory(const data_chunk& encoded, bool prefix) { script instance; instance.from_data(encoded, prefix); return instance; } // static script script::factory(std::istream& stream, bool prefix) { script instance; instance.from_data(stream, prefix); return instance; } // static script script::factory(reader& source, bool prefix) { script instance; instance.from_data(source, prefix); return instance; } bool script::from_data(const data_chunk& encoded, bool prefix) { data_source istream(encoded); return from_data(istream, prefix); } bool script::from_data(std::istream& stream, bool prefix) { istream_reader source(stream); return from_data(source, prefix); } // Concurrent read/write is not supported, so no critical section. bool script::from_data(reader& source, bool prefix) { reset(); valid_ = true; if (prefix) { const auto size = source.read_size_little_endian(); // The max_script_size constant limits evaluation, but not all scripts // evaluate, so use max_block_size to guard memory allocation here. if (size > max_block_size) source.invalidate(); else bytes_ = source.read_bytes(size); } else { bytes_ = source.read_bytes(); } if (!source) reset(); return source; } // Concurrent read/write is not supported, so no critical section. bool script::from_string(const std::string& mnemonic) { reset(); // There is strictly one operation per string token. const auto tokens = split(mnemonic); operation::list ops; ops.resize(tokens.empty() || tokens.front().empty() ? 0 : tokens.size()); // Create an op list from the split tokens, one operation per token. for (size_t index = 0; index < ops.size(); ++index) if (!ops[index].from_string(tokens[index])) return false; from_operations(ops); return true; } // Concurrent read/write is not supported, so no critical section. void script::from_operations(operation::list&& ops) { ////reset(); bytes_ = operations_to_data(ops); operations_ = std::move(ops); cached_ = true; valid_ = true; } // Concurrent read/write is not supported, so no critical section. void script::from_operations(const operation::list& ops) { ////reset(); bytes_ = operations_to_data(ops); operations_ = ops; cached_ = true; valid_ = true; } // private/static data_chunk script::operations_to_data(const operation::list& ops) { data_chunk out; const auto size = serialized_size(ops); out.reserve(size); const auto concatenate = [&out](const operation& op) { auto bytes = op.to_data(); std::move(bytes.begin(), bytes.end(), std::back_inserter(out)); }; std::for_each(ops.begin(), ops.end(), concatenate); BITCOIN_ASSERT(out.size() == size); return out; } // private/static size_t script::serialized_size(const operation::list& ops) { const auto op_size = [](size_t total, const operation& op) { return total + op.serialized_size(); }; return std::accumulate(ops.begin(), ops.end(), size_t{0}, op_size); } // protected // Concurrent read/write is not supported, so no critical section. void script::reset() { bytes_.clear(); bytes_.shrink_to_fit(); valid_ = false; cached_ = false; operations_.clear(); operations_.shrink_to_fit(); } bool script::is_valid() const { // All script bytes are valid under some circumstance (e.g. coinbase). // This returns false if a prefix and byte count does not match. return valid_; } bool script::is_valid_operations() const { // Script validity is independent of individual operation validity. // There is a trailing invalid/default op if a push op had a size mismatch. return operations().empty() || operations_.back().is_valid(); } // Serialization. //----------------------------------------------------------------------------- data_chunk script::to_data(bool prefix) const { data_chunk data; const auto size = serialized_size(prefix); data.reserve(size); data_sink ostream(data); to_data(ostream, prefix); ostream.flush(); BITCOIN_ASSERT(data.size() == size); return data; } void script::to_data(std::ostream& stream, bool prefix) const { ostream_writer sink(stream); to_data(sink, prefix); } void script::to_data(writer& sink, bool prefix) const { // TODO: optimize by always storing the prefixed serialization. if (prefix) sink.write_variable_little_endian(serialized_size(false)); sink.write_bytes(bytes_); } std::string script::to_string(uint32_t active_forks) const { auto first = true; std::ostringstream text; for (const auto& op: operations()) { text << (first ? "" : " ") << op.to_string(active_forks); first = false; } // An invalid operation has a specialized serialization. return text.str(); } hash_digest script::to_payments_key() const { return sha256_hash(to_data(false)); } // Iteration. //----------------------------------------------------------------------------- // These are syntactic sugar that allow the caller to iterate ops directly. // The first operations access must be method-based to guarantee the cache. void script::clear() { reset(); } bool script::empty() const { return operations().empty(); } size_t script::size() const { return operations().size(); } const operation& script::front() const { BITCOIN_ASSERT(!operations().empty()); return operations().front(); } const operation& script::back() const { BITCOIN_ASSERT(!operations().empty()); return operations().back(); } const operation& script::operator[](size_t index) const { BITCOIN_ASSERT(index < operations().size()); return operations()[index]; } operation::iterator script::begin() const { return operations().begin(); } operation::iterator script::end() const { return operations().end(); } // Properties (size, accessors, cache). //----------------------------------------------------------------------------- size_t script::serialized_size(bool prefix) const { auto size = bytes_.size(); if (prefix) size += message::variable_uint_size(size); return size; } // protected const operation::list& script::operations() const { /////////////////////////////////////////////////////////////////////////// // Critical Section mutex_.lock_upgrade(); if (cached_) { mutex_.unlock_upgrade(); //--------------------------------------------------------------------- return operations_; } operation op; data_source istream(bytes_); istream_reader source(istream); const auto size = bytes_.size(); //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ mutex_.unlock_upgrade_and_lock(); // One operation per byte is the upper limit of operations. operations_.reserve(size); // ************************************************************************ // CONSENSUS: In the case of a coinbase script we must parse the entire // script, beyond just the BIP34 requirements, so that sigops can be // calculated from the script. These are counted despite being irrelevant. // In this case an invalid script is parsed to the extent possible. // ************************************************************************ // If an op fails it is pushed to operations and the loop terminates. // To validate the ops the caller must test the last op.is_valid(), or may // text script.is_valid_operations(), which is done in script metadata. while (!source.is_exhausted()) { op.from_data(source); operations_.push_back(std::move(op)); } operations_.shrink_to_fit(); cached_ = true; mutex_.unlock(); /////////////////////////////////////////////////////////////////////////// return operations_; } // Signing (unversioned). //----------------------------------------------------------------------------- inline hash_digest signature_hash(const transaction& tx, uint32_t sighash_type) { // There is no rational interpretation of a signature hash for a coinbase. BITCOIN_ASSERT(!tx.is_coinbase()); // TODO: pass overallocated stream buffer to serializer (optimization). auto serialized = tx.to_data(true, false); extend_data(serialized, to_little_endian(sighash_type)); return bitcoin_hash(serialized); } //***************************************************************************** // CONSENSUS: Due to masking of bits 6/7 (8 is the anyone_can_pay flag), // there are 4 possible 7 bit values that can set "single" and 4 others that // can set none, and yet all other values set "all". //***************************************************************************** inline sighash_algorithm to_sighash_enum(uint8_t sighash_type) { switch (sighash_type & sighash_algorithm::mask) { case sighash_algorithm::single: return sighash_algorithm::single; case sighash_algorithm::none: return sighash_algorithm::none; default: return sighash_algorithm::all; } } static hash_digest sign_none(const transaction& tx, uint32_t input_index, const script& script_code, uint8_t sighash_type) { input::list ins; const auto& inputs = tx.inputs(); const auto any = (sighash_type & sighash_algorithm::anyone_can_pay) != 0; ins.reserve(any ? 1 : inputs.size()); BITCOIN_ASSERT(input_index < inputs.size()); const auto& self = inputs[input_index]; if (any) { // Retain only self. ins.emplace_back(self.previous_output(), script_code, self.sequence()); } else { // Erase all input scripts and sequences. for (const auto& input: inputs) ins.emplace_back(input.previous_output(), script{}, 0); // Replace self that is lost in the loop. ins[input_index].set_script(script_code); ins[input_index].set_sequence(self.sequence()); } // Move new inputs to new transaction and drop outputs. return signature_hash({ tx.version(), tx.locktime(), std::move(ins), {} }, sighash_type); } static hash_digest sign_single(const transaction& tx, uint32_t input_index, const script& script_code, uint8_t sighash_type) { input::list ins; const auto& inputs = tx.inputs(); const auto any = (sighash_type & sighash_algorithm::anyone_can_pay) != 0; ins.reserve(any ? 1 : inputs.size()); BITCOIN_ASSERT(input_index < inputs.size()); const auto& self = inputs[input_index]; if (any) { // Retain only self. ins.emplace_back(self.previous_output(), script_code, self.sequence()); } else { // Erase all input scripts and sequences. for (const auto& input: inputs) ins.emplace_back(input.previous_output(), script{}, 0); // Replace self that is lost in the loop. ins[input_index].set_script(script_code); ins[input_index].set_sequence(self.sequence()); } // Trim and clear outputs except that of specified input index. const auto& outputs = tx.outputs(); output::list outs(input_index + 1); BITCOIN_ASSERT(input_index < outputs.size()); outs.back() = outputs[input_index]; // Move new inputs and new outputs to new transaction. return signature_hash({ tx.version(), tx.locktime(), std::move(ins), std::move(outs) }, sighash_type); } static hash_digest sign_all(const transaction& tx, uint32_t input_index, const script& script_code, uint8_t sighash_type) { input::list ins; const auto& inputs = tx.inputs(); const auto any = (sighash_type & sighash_algorithm::anyone_can_pay) != 0; ins.reserve(any ? 1 : inputs.size()); BITCOIN_ASSERT(input_index < inputs.size()); const auto& self = inputs[input_index]; if (any) { // Retain only self. ins.emplace_back(self.previous_output(), script_code, self.sequence()); } else { // Erase all input scripts. for (const auto& input: inputs) ins.emplace_back(input.previous_output(), script{}, input.sequence()); // Replace self that is lost in the loop. ins[input_index].set_script(script_code); ////ins[input_index].set_sequence(self.sequence()); } // Move new inputs and copy outputs to new transaction. transaction out(tx.version(), tx.locktime(), input::list{}, tx.outputs()); out.set_inputs(std::move(ins)); return signature_hash(out, sighash_type); } static bool is_index_overflow(const transaction& tx, uint32_t input_index, sighash_algorithm sighash) { return input_index >= tx.inputs().size() || (input_index >= tx.outputs().size() && sighash == sighash_algorithm::single); } // TODO: optimize to prevent script reconstruction. static script strip_code_seperators(const script& script_code) { operation::list ops; for (auto op = script_code.begin(); op != script_code.end(); ++op) if (op->code() != opcode::codeseparator) ops.push_back(*op); return { std::move(ops) }; } // private/static hash_digest script::generate_unversioned_signature_hash(const transaction& tx, uint32_t input_index, const script& script_code, uint8_t sighash_type) { const auto sighash = to_sighash_enum(sighash_type); //************************************************************************* // CONSENSUS: wacky satoshi behavior (continuing with null hash). //************************************************************************* if (is_index_overflow(tx, input_index, sighash)) return one_hash; //************************************************************************* // CONSENSUS: more wacky satoshi behavior. //************************************************************************* const auto stripped = strip_code_seperators(script_code); // The sighash serializations are isolated for clarity and optimization. switch (sighash) { case sighash_algorithm::none: return sign_none(tx, input_index, stripped, sighash_type); case sighash_algorithm::single: return sign_single(tx, input_index, stripped, sighash_type); default: case sighash_algorithm::all: return sign_all(tx, input_index, stripped, sighash_type); } } // Signing (version 0). //----------------------------------------------------------------------------- data_chunk script::to_outputs(const transaction& tx) { const auto sum = [&](size_t total, const output& output) { return total + output.serialized_size(); }; const auto& outs = tx.outputs(); auto size = std::accumulate(outs.begin(), outs.end(), size_t(0), sum); data_chunk data; data.reserve(size); data_sink ostream(data); ostream_writer sink(ostream); const auto write = [&](const output& output) { output.to_data(sink, true); }; std::for_each(outs.begin(), outs.end(), write); ostream.flush(); BITCOIN_ASSERT(data.size() == size); return data; } data_chunk script::to_inpoints(const transaction& tx) { const auto sum = [&](size_t total, const input& input) { return total + input.previous_output().serialized_size(); }; const auto& ins = tx.inputs(); auto size = std::accumulate(ins.begin(), ins.end(), size_t(0), sum); data_chunk data; data.reserve(size); data_sink ostream(data); ostream_writer sink(ostream); const auto write = [&](const input& input) { input.previous_output().to_data(sink); }; std::for_each(ins.begin(), ins.end(), write); ostream.flush(); BITCOIN_ASSERT(data.size() == size); return data; } data_chunk script::to_sequences(const transaction& tx) { const auto sum = [&](size_t total, const input& /* input */) { return total + sizeof(uint32_t); }; const auto& ins = tx.inputs(); auto size = std::accumulate(ins.begin(), ins.end(), size_t(0), sum); data_chunk data; data.reserve(size); data_sink ostream(data); ostream_writer sink(ostream); const auto write = [&](const input& input) { sink.write_4_bytes_little_endian(input.sequence()); }; std::for_each(ins.begin(), ins.end(), write); ostream.flush(); BITCOIN_ASSERT(data.size() == size); return data; } static size_t version_0_preimage_size(size_t script_size) { return sizeof(uint32_t) + hash_size + hash_size + point::satoshi_fixed_size() + script_size + sizeof(uint64_t) + sizeof(uint32_t) + hash_size + sizeof(uint32_t) + sizeof(uint32_t); } // private/static hash_digest script::generate_version_0_signature_hash(const transaction& tx, uint32_t input_index, const script& script_code, uint64_t value, uint8_t sighash_type) { const auto sighash = to_sighash_enum(sighash_type); const auto any = (sighash_type & sighash_algorithm::anyone_can_pay) != 0; const auto single = (sighash == sighash_algorithm::single); //// const auto none = (sighash == sighash_algorithm::none); const auto all = (sighash == sighash_algorithm::all); // Unlike unversioned algorithm this does not allow an invalid input index. BITCOIN_ASSERT(input_index < tx.inputs().size()); const auto& input = tx.inputs()[input_index]; const auto script_size = script_code.serialized_size(true); const auto size = version_0_preimage_size(script_size); data_chunk data; data.reserve(size); data_sink ostream(data); ostream_writer sink(ostream); // 1. transaction version (4). sink.write_little_endian(tx.version()); // 2. inpoints double sha256 hash (32). sink.write_hash(!any ? tx.inpoints_hash() : null_hash); // 3. sequences double sha256 hash (32). sink.write_hash(!any && all ? tx.sequences_hash() : null_hash); // 4. outpoint (32-byte hash + 4-byte little endian). input.previous_output().to_data(sink); // 5. script of the input (with prefix). script_code.to_data(sink, true); // 6. value of the output spent by this input (8). sink.write_little_endian(value); // 7. sequence of the input (4). sink.write_little_endian(input.sequence()); // 8. outputs (or output) double hash, or null hash (32). sink.write_hash(all ? tx.outputs_hash() : (single && input_index < tx.outputs().size() ? bitcoin_hash(tx.outputs()[input_index].to_data()) : null_hash)); // 9. transaction locktime (4). sink.write_little_endian(tx.locktime()); // 10. hash type of the signature (4 [not 1]). sink.write_4_bytes_little_endian(sighash_type); ostream.flush(); BITCOIN_ASSERT(data.size() == size); return bitcoin_hash(data); } // Signing (unversioned and version 0). //----------------------------------------------------------------------------- // static hash_digest script::generate_signature_hash(const transaction& tx, uint32_t input_index, const script& script_code, uint8_t sighash_type, script_version version, uint64_t value) { // The way of serialization is changed (bip143). switch (version) { case script_version::unversioned: return generate_unversioned_signature_hash(tx, input_index, script_code, sighash_type); case script_version::zero: return generate_version_0_signature_hash(tx, input_index, script_code, value, sighash_type); case script_version::reserved: default: BITCOIN_ASSERT_MSG(false, "invalid script version"); return {}; } } // static bool script::check_signature(const ec_signature& signature, uint8_t sighash_type, const data_chunk& public_key, const script& script_code, const transaction& tx, uint32_t input_index, script_version version, uint64_t value) { if (signature.empty() || public_key.empty()) return false; // This always produces a valid signature hash, including one_hash. const auto sighash = chain::script::generate_signature_hash(tx, input_index, script_code, sighash_type, version, value); // Validate the EC signature. return verify_signature(public_key, sighash, signature); } // static bool script::create_endorsement(endorsement& out, const ec_secret& secret, const script& prevout_script, const transaction& tx, uint32_t input_index, uint8_t sighash_type, script_version version, uint64_t value) { out.reserve(max_endorsement_size); // This always produces a valid signature hash, including one_hash. const auto sighash = chain::script::generate_signature_hash(tx, input_index, prevout_script, sighash_type, version, value); // Create the EC signature and encode as DER. ec_signature signature; if (!sign(signature, secret, sighash) || !encode_signature(out, signature)) return false; // Add the sighash type to the end of the DER signature -> endorsement. out.push_back(sighash_type); out.shrink_to_fit(); return true; } // Utilities (static). //----------------------------------------------------------------------------- bool script::is_push_only(const operation::list& ops) { const auto push = [](const operation& op) { return op.is_push(); }; return std::all_of(ops.begin(), ops.end(), push); } //***************************************************************************** // CONSENSUS: this pattern is used to activate bip16 validation rules. //***************************************************************************** bool script::is_relaxed_push(const operation::list& ops) { const auto push = [&](const operation& op) { return op.is_relaxed_push(); }; return std::all_of(ops.begin(), ops.end(), push); } //***************************************************************************** // CONSENSUS: BIP34 requires coinbase input script to begin with one byte that // indicates the height size. This is inconsistent with an extreme future where // the size byte overflows. However satoshi actually requires nominal encoding. //***************************************************************************** bool script::is_coinbase_pattern(const operation::list& ops, size_t height) { return !ops.empty() && ops[0].is_nominal_push() && ops[0].data() == number(height).data(); } //***************************************************************************** // CONSENSUS: this pattern is used to commit to bip141 witness data. //***************************************************************************** bool script::is_commitment_pattern(const operation::list& ops) { static const auto header = to_big_endian(witness_head); // Bytes after commitment are optional with no consensus meaning (bip141). // Commitment is not executable so invalid trailing operations are allowed. return ops.size() > 1 && ops[0].code() == opcode::return_ && ops[1].code() == opcode::push_size_36 && std::equal(header.begin(), header.end(), ops[1].data().begin()); } //***************************************************************************** // CONSENSUS: this pattern is used in bip141 validation rules. //***************************************************************************** bool script::is_witness_program_pattern(const operation::list& ops) { return ops.size() == 2 && ops[0].is_version() && ops[1].data().size() >= min_witness_program && ops[1].data().size() <= max_witness_program; } // The satoshi client tests for 83 bytes total. This allows for the waste of // one byte to represent up to 75 bytes using the push_one_size opcode. // It also allows any number of push ops and limits it to 0 value and 1 per tx. ////bool script::is_pay_null_data_pattern(const operation::list& ops) ////{ //// static constexpr auto op_76 = static_cast<uint8_t>(opcode::push_one_size); //// //// return ops.size() >= 2 //// && ops[0].code() == opcode::return_ //// && static_cast<uint8_t>(ops[1].code()) <= op_76 //// && ops[1].data().size() <= max_null_data_size; ////} // The satoshi client enables configurable data size for policy. bool script::is_pay_null_data_pattern(const operation::list& ops) { return ops.size() == 2 && ops[0].code() == opcode::return_ && ops[1].is_minimal_push() && ops[1].data().size() <= max_null_data_size; } // TODO: expand this to the 20 signature op_check_multisig limit. // The current 16 (or 20) limit does not affect server indexing because bare // multisig is not indexable and p2sh multisig is byte-limited to 15 sigs. // The satoshi client policy limit is 3 signatures for bare multisig. bool script::is_pay_multisig_pattern(const operation::list& ops) { static constexpr auto op_1 = static_cast<uint8_t>(opcode::push_positive_1); static constexpr auto op_16 = static_cast<uint8_t>(opcode::push_positive_16); const auto op_count = ops.size(); if (op_count < 4 || ops[op_count - 1].code() != opcode::checkmultisig) return false; const auto op_m = static_cast<uint8_t>(ops[0].code()); const auto op_n = static_cast<uint8_t>(ops[op_count - 2].code()); if (op_m < op_1 || op_m > op_n || op_n < op_1 || op_n > op_16) return false; const auto number = op_n - op_1 + 1u; const auto points = op_count - 3u; if (number != points) return false; for (auto op = ops.begin() + 1; op != ops.end() - 2; ++op) if (!is_public_key(op->data())) return false; return true; } // The satoshi client considers this non-standard for policy. bool script::is_pay_public_key_pattern(const operation::list& ops) { return ops.size() == 2 && is_public_key(ops[0].data()) && ops[1].code() == opcode::checksig; } bool script::is_pay_key_hash_pattern(const operation::list& ops) { return ops.size() == 5 && ops[0].code() == opcode::dup && ops[1].code() == opcode::hash160 && ops[2].data().size() == short_hash_size && ops[3].code() == opcode::equalverify && ops[4].code() == opcode::checksig; } //***************************************************************************** // CONSENSUS: this pattern is used to activate bip16 validation rules. //***************************************************************************** bool script::is_pay_script_hash_pattern(const operation::list& ops) { return ops.size() == 3 && ops[0].code() == opcode::hash160 && ops[1].code() == opcode::push_size_20 && ops[2].code() == opcode::equal; } //***************************************************************************** // CONSENSUS: this pattern is used to activate bip141 validation rules. //***************************************************************************** bool script::is_pay_witness_script_hash_pattern(const operation::list& ops) { return ops.size() == 2 && ops[0].code() == opcode::push_size_0 && ops[1].code() == opcode::push_size_32; } // The first push is based on wacky satoshi op_check_multisig behavior that // we must perpetuate, though it's appearance here is policy not consensus. // Limiting to push_size_0 eliminates pattern ambiguity with little downside. bool script::is_sign_multisig_pattern(const operation::list& ops) { return ops.size() >= 2 && ops[0].code() == opcode::push_size_0 && std::all_of(ops.begin() + 1, ops.end(), [](const operation& op) { return is_endorsement(op.data()); }); } bool script::is_sign_public_key_pattern(const operation::list& ops) { return ops.size() == 1 && is_endorsement(ops[0].data()); } //***************************************************************************** // CONSENSUS: this pattern is used to activate bip141 validation rules. //***************************************************************************** bool script::is_sign_key_hash_pattern(const operation::list& ops) { return ops.size() == 2 && is_endorsement(ops[0].data()) && is_public_key(ops[1].data()); } // Ambiguous with is_sign_key_hash when second/last op is a public key. // Ambiguous with is_sign_public_key_pattern when only op is an endorsement. bool script::is_sign_script_hash_pattern(const operation::list& ops) { return !ops.empty() && is_push_only(ops) && !ops.back().data().empty(); } operation::list script::to_pay_null_data_pattern(const data_slice& data) { if (data.size() > max_null_data_size) return {}; return operation::list { { opcode::return_ }, { to_chunk(data) } }; } operation::list script::to_pay_public_key_pattern(const data_slice& point) { if (!is_public_key(point)) return {}; return operation::list { { to_chunk(point) }, { opcode::checksig } }; } operation::list script::to_pay_key_hash_pattern(const short_hash& hash) { return operation::list { { opcode::dup }, { opcode::hash160 }, { to_chunk(hash) }, { opcode::equalverify }, { opcode::checksig } }; } operation::list script::to_pay_script_hash_pattern(const short_hash& hash) { return operation::list { { opcode::hash160 }, { to_chunk(hash) }, { opcode::equal } }; } // TODO: limit to 20 for consistency with op_check_multisig. operation::list script::to_pay_multisig_pattern(uint8_t signatures, const point_list& points) { data_stack chunks; chunks.reserve(points.size()); const auto conversion = [&chunks](const ec_compressed& point) { chunks.push_back(to_chunk(point)); }; // Operation ordering matters, don't use std::transform here. std::for_each(points.begin(), points.end(), conversion); return to_pay_multisig_pattern(signatures, chunks); } // TODO: expand this to a 20 signature limit. // This supports up to 16 signatures, however check_multisig is limited to 20. // The embedded script is limited to 520 bytes, an effective limit of 15 for // p2sh multisig, which can be as low as 7 when using all uncompressed keys. operation::list script::to_pay_multisig_pattern(uint8_t signatures, const data_stack& points) { static constexpr auto op_81 = static_cast<uint8_t>(opcode::push_positive_1); static constexpr auto op_96 = static_cast<uint8_t>(opcode::push_positive_16); static constexpr auto zero = op_81 - 1; static constexpr auto max = op_96 - zero; const auto m = signatures; const auto n = points.size(); if (m < 1 || m > n || n < 1 || n > max) return operation::list(); const auto op_m = static_cast<opcode>(m + zero); const auto op_n = static_cast<opcode>(points.size() + zero); operation::list ops; ops.reserve(points.size() + 3); ops.emplace_back(op_m); for (const auto point: points) { if (!is_public_key(point)) return {}; ops.emplace_back(point); } ops.emplace_back(op_n); ops.emplace_back(opcode::checkmultisig); return ops; } operation::list script::to_pay_witness_key_hash_pattern(const short_hash& hash) { return { { opcode::push_size_0 }, { to_chunk(hash) }, }; } operation::list script::to_pay_witness_script_hash_pattern(const hash_digest& hash) { return { { opcode::push_size_0 }, { to_chunk(hash) } }; } // Utilities (non-static). //----------------------------------------------------------------------------- data_chunk script::witness_program() const { // The first operations access must be method-based to guarantee the cache. const auto& ops = operations(); return is_witness_program_pattern(ops) ? ops[1].data() : data_chunk{}; } script_version script::version() const { // The first operations access must be method-based to guarantee the cache. const auto& ops = operations(); if (!is_witness_program_pattern(ops)) return script_version::unversioned; switch (ops[0].code()) { case opcode::push_size_0: return script_version::zero; default: return script_version::reserved; } } // Caller should test for is_sign_script_hash_pattern when sign_key_hash result // as it is possible for an input script to match both patterns. script_pattern script::pattern() const { const auto input = output_pattern(); return input == script_pattern::non_standard ? input_pattern() : input; } // Output patterns are mutually and input unambiguous. // The bip141 coinbase pattern is not tested here, must test independently. script_pattern script::output_pattern() const { // The first operations access must be method-based to guarantee the cache. if (is_pay_key_hash_pattern(operations())) return script_pattern::pay_key_hash; if (is_pay_script_hash_pattern(operations_)) return script_pattern::pay_script_hash; if (is_pay_null_data_pattern(operations_)) return script_pattern::pay_null_data; if (is_pay_public_key_pattern(operations_)) return script_pattern::pay_public_key; // Limited to 16 signatures though op_check_multisig allows 20. if (is_pay_multisig_pattern(operations_)) return script_pattern::pay_multisig; return script_pattern::non_standard; } // A sign_key_hash result always implies sign_script_hash as well. // The bip34 coinbase pattern is not tested here, must test independently. script_pattern script::input_pattern() const { // The first operations access must be method-based to guarantee the cache. if (is_sign_key_hash_pattern(operations())) return script_pattern::sign_key_hash; // This must follow is_sign_key_hash_pattern for ambiguity comment to hold. if (is_sign_script_hash_pattern(operations_)) return script_pattern::sign_script_hash; if (is_sign_public_key_pattern(operations_)) return script_pattern::sign_public_key; if (is_sign_multisig_pattern(operations_)) return script_pattern::sign_multisig; return script_pattern::non_standard; } bool script::is_pay_to_witness(uint32_t forks) const { // This is used internally as an optimization over using script::pattern. // The first operations access must be method-based to guarantee the cache. return is_enabled(forks, rule_fork::bip141_rule) && is_witness_program_pattern(operations()); } bool script::is_pay_to_script_hash(uint32_t forks) const { // This is used internally as an optimization over using script::pattern. // The first operations access must be method-based to guarantee the cache. return is_enabled(forks, rule_fork::bip16_rule) && is_pay_script_hash_pattern(operations()); } // Count 1..16 multisig accurately for embedded (bip16) and witness (bip141). inline size_t multisig_sigops(bool accurate, opcode code) { return accurate && operation::is_positive(code) ? operation::opcode_to_positive(code) : multisig_default_sigops; } size_t script::sigops(bool accurate) const { size_t total = 0; auto preceding = opcode::push_negative_1; // The first operations access must be method-based to guarantee the cache. for (const auto& op: operations()) { const auto code = op.code(); if (code == opcode::checksig || code == opcode::checksigverify) { ++total; } else if ( code == opcode::checkmultisig || code == opcode::checkmultisigverify) { total += multisig_sigops(accurate, preceding); } preceding = code; } return total; } //***************************************************************************** // CONSENSUS: this is a pointless, broken, premature optimization attempt. // The comparison and erase are not limited to a single operation and so can // erase arbitrary upstream data from the script. //***************************************************************************** void script::find_and_delete_(const data_chunk& endorsement) { // If this is empty it would produce an empty script but not operation. // So we test it for empty prior to operation reserialization. if (endorsement.empty()) return; // The value must be serialized to script using non-minimal encoding. // Non-minimally-encoded target values will therefore not match. const auto value = operation(endorsement, false).to_data(); operation op; data_source stream(bytes_); istream_reader source(stream); std::vector<data_chunk::iterator> found; // The exhaustion test handles stream end and op deserialization failure. for (auto it = bytes_.begin(); !source.is_exhausted(); it += source ? op.serialized_size() : 0) { // Track all found values for later deletion. for (; starts_with(it, bytes_.end(), value); it += value.size()) { source.skip(value.size()); found.push_back(it); } // Read the next op code following last found value. op.from_data(source); } // Delete any found values, reversed to prevent iterator invalidation. for (const auto it: reverse(found)) bytes_.erase(it, it + value.size()); } // Concurrent read/write is not supported, so no critical section. void script::find_and_delete(const data_stack& endorsements) { for (const auto& endorsement: endorsements) find_and_delete_(endorsement); // Invalidate the cache so that the operations may be regenerated. operations_.clear(); cached_ = false; bytes_.shrink_to_fit(); } ////// This is slightly more efficient because the script does not get parsed, ////// but the static template implementation is more self-explanatory. ////bool script::is_coinbase_pattern(size_t height) const ////{ //// const auto actual = to_data(false); //// //// // Create the expected script as a non-minimal byte vector. //// script compare(operation::list{ { number(height).data(), false } }); //// const auto expected = compare.to_data(false); //// //// // Require the actual script start with the expected coinbase script. //// return std::equal(expected.begin(), expected.end(), actual.begin()); ////} bool script::is_oversized() const { return serialized_size(false) > max_script_size; } // An unspendable script is any that can provably not be spent under any // circumstance. This allows for exclusion of the output as unspendable. // The criteria below are not be comprehensive but are fast to evaluate. bool script::is_unspendable() const { // The first operations access must be method-based to guarantee the cache. return !operations().empty() && operations_[0].code() == opcode::return_; } // Validation. //----------------------------------------------------------------------------- code script::verify(const transaction& tx, uint32_t input_index, uint32_t forks, const script& prevout_script, uint64_t value) { if (input_index >= tx.inputs().size()) return error::operation_failed; code ec; bool witnessed; const auto& in = tx.inputs()[input_index]; // Evaluate input script. program input(in.script(), tx, input_index, forks); if ((ec = input.evaluate())) return ec; // Evaluate output script using stack result from input script. program prevout(prevout_script, input); if ((ec = prevout.evaluate())) return ec; // This precludes bare witness programs of -0 (undocumented). if (!prevout.stack_result(false)) return error::stack_false; // Triggered by output script push of version and witness program (bip141). if ((witnessed = prevout_script.is_pay_to_witness(forks))) { // The input script must be empty (bip141). if (!in.script().empty()) return error::dirty_witness; // Validate the native script. if ((ec = in.witness().verify(tx, input_index, forks, prevout_script, value))) return ec; } // p2sh and p2w are mutually exclusive. else if (prevout_script.is_pay_to_script_hash(forks)) { if (!is_relaxed_push(in.script().operations())) return error::invalid_script_embed; // Embedded script must be at the top of the stack (bip16). script embedded_script(input.pop(), false); program embedded(embedded_script, std::move(input), true); if ((ec = embedded.evaluate())) return ec; // This precludes embedded witness programs of -0 (undocumented). if (!embedded.stack_result(false)) return error::stack_false; // Triggered by embedded push of version and witness program (bip141). if ((witnessed = embedded_script.is_pay_to_witness(forks))) { // The input script must be a push of the embedded_script (bip141). if (in.script().size() != 1) return error::dirty_witness; // Validate the non-native script. if ((ec = in.witness().verify(tx, input_index, forks, embedded_script, value))) return ec; } } // Witness must be empty if no bip141 or invalid witness program (bip141). if (!witnessed && !in.witness().empty()) return error::unexpected_witness; return error::success; } code script::verify(const transaction& tx, uint32_t input_index, uint32_t forks) { if (input_index >= tx.inputs().size()) return error::operation_failed; const auto& in = tx.inputs()[input_index]; const auto& prevout = in.previous_output().metadata.cache; return verify(tx, input_index, forks, prevout.script(), prevout.value()); } } // namespace chain } // namespace system } // namespace libnuls
31.154153
83
0.62721
[ "vector", "transform" ]
55fb0f183101f22e3fa4758c1bf19a35e3156477
5,507
cc
C++
tests/test-engine.cc
CS126SP20/final-project-jananir2
74e0799403fbd904ed99979b18407e654a0725e4
[ "MIT" ]
null
null
null
tests/test-engine.cc
CS126SP20/final-project-jananir2
74e0799403fbd904ed99979b18407e654a0725e4
[ "MIT" ]
null
null
null
tests/test-engine.cc
CS126SP20/final-project-jananir2
74e0799403fbd904ed99979b18407e654a0725e4
[ "MIT" ]
null
null
null
#include <catch2/catch.hpp> #include <mylibrary/setup.h> #include <mylibrary/engine.h> using namespace std; TEST_CASE("Test handles quiz choice correctly", "[retrieve question][retrieve answer]") { mylibrary::Engine engine_{"quizzes/quiz1.csv", "quizzes/quiz2.csv", "quizzes/quiz3.csv", "quizzes/quiz4.csv"}; engine_.HandleQuizChoice(1); SECTION("Test retrieve question") { vector<string> test_question; test_question.push_back( "What was the name of the band Lionel Richie was a part of?"); test_question.push_back("A) King Harvest"); test_question.push_back("B) Spectrums"); test_question.push_back("C) Commodores"); test_question.push_back("D) The Marshall Tucker Band"); REQUIRE(engine_.RetrieveQuestion(4) == test_question); } SECTION("Test retrieve answer") { REQUIRE(engine_.RetrieveAnswer(4).find("C) Commodores") != string::npos); } } TEST_CASE("Test check valid", "[handle quiz][check valid]") { SECTION("One file is invalid, handle valid file") { mylibrary::Engine engine_{"quizzes/quiz1.csv", "quizzes/quiz2.csv", "quizzes/quiz3.csv", "quizzes/quiz5.csv"}; engine_.HandleQuizChoice(2); REQUIRE(engine_.CheckIsValid()); } SECTION("One file is invalid, handle that file") { mylibrary::Engine engine_{"quizzes/quiz1.csv", "quizzes/quiz2.csv", "quizzes/quiz5.csv", "simplefile.csv"}; engine_.HandleQuizChoice(3); REQUIRE(!engine_.CheckIsValid()); } } TEST_CASE("Test current index of function", "[increase][decrease]") { mylibrary::Engine engine_{"quizzes/quiz1.csv", "quizzes/quiz2.csv", "quizzes/quiz3.csv", "quizzes/quiz4.csv"}; engine_.HandleQuizChoice(2); SECTION("Test increase index by two") { engine_.IncCurrQuestion(); engine_.IncCurrQuestion(); REQUIRE(engine_.GetCurrQuestionIndex() == 2); } SECTION("Test decrease index") { engine_.IncCurrQuestion(); engine_.IncCurrQuestion(); engine_.DecCurrQuestion(); REQUIRE(engine_.GetCurrQuestionIndex() == 1); } SECTION("Test decrease index past 0") { engine_.DecCurrQuestion(); engine_.DecCurrQuestion(); REQUIRE(engine_.GetCurrQuestionIndex() == 0); } SECTION("Test increase index past list size") { for (int i = 0; i < 50; i++) { engine_.IncCurrQuestion(); } REQUIRE(engine_.GetCurrQuestionIndex() == 29); } } TEST_CASE("Test if last question", "[increase index][decrease index]") { mylibrary::Engine engine_{"quizzes/simplefile.csv", "quizzes/quiz2.csv","quizzes/quiz3.csv", "quizzes/quiz4.csv"}; engine_.HandleQuizChoice(1); SECTION("Test is not last question") { REQUIRE(!engine_.CheckIsLastQuestion()); } SECTION("Test is last question") { engine_.IncCurrQuestion(); REQUIRE(engine_.CheckIsLastQuestion()); } } TEST_CASE("Test answer selection", "[test set answer choice][test check selected]") { mylibrary::Engine engine_{"quizzes/simplefile.csv", "quizzes/quiz5.csv","quizzes/quiz3.csv", "quizzes/badformatquiz.csv"}; engine_.HandleQuizChoice(3); SECTION("Test user's answer and selected answer are same for " "current question") { engine_.IncCurrQuestion(); engine_.IncCurrQuestion(); engine_.IncCurrQuestion(); engine_.SetAnswerChoice(2); REQUIRE(engine_.CheckIsSelected(2)); REQUIRE(!engine_.CheckIsSelected(3)); } SECTION("Test answer user selected for current question is not also selected " "for next question") { engine_.IncCurrQuestion(); engine_.IncCurrQuestion(); engine_.IncCurrQuestion(); engine_.SetAnswerChoice(2); engine_.IncCurrQuestion(); REQUIRE(!engine_.CheckIsSelected(2)); } SECTION("Test user can change answer selection") { engine_.SetAnswerChoice(3); engine_.SetAnswerChoice(4); REQUIRE(engine_.CheckIsSelected(4)); REQUIRE(!engine_.CheckIsSelected(3)); } } TEST_CASE("Get score function") { mylibrary::Engine engine_{ "quizzes/simplefile.csv", "quizzes/badformatquiz.csv", "quizzes/quiz3.csv", "quizzes/quiz4.csv"}; SECTION("Test correct score for answer all D's to quiz4") { engine_.HandleQuizChoice(4); for (int i = 0; i < 30; i++) { engine_.SetAnswerChoice(4); engine_.IncCurrQuestion(); } REQUIRE(engine_.GetScore() == (5.0 / 30.0 * 100)); } SECTION("Test correct score for not answering any questions") { engine_.HandleQuizChoice(4); for (int i = 0; i < 30; i++) { engine_.IncCurrQuestion(); } REQUIRE(engine_.GetScore() == 0); } SECTION("Test correct score for answering all questions correctly") { engine_.HandleQuizChoice(1); engine_.SetAnswerChoice(3); engine_.IncCurrQuestion(); engine_.SetAnswerChoice(1); REQUIRE(engine_.GetScore() == 100.0); } } TEST_CASE("Test reset engine", "[get current question index]") { mylibrary::Engine engine_{"quizzes/simplefile.csv", "quizzes/quiz2.csv","quizzes/quiz3.csv", "quizzes/quiz4.csv"}; engine_.HandleQuizChoice(3); engine_.IncCurrQuestion(); engine_.IncCurrQuestion(); engine_.IncCurrQuestion(); REQUIRE(engine_.GetCurrQuestionIndex() == 3); engine_.ResetEngine(); REQUIRE(engine_.GetCurrQuestionIndex() == 0); }
30.938202
80
0.65099
[ "vector" ]
3604520cb795478aaf16f90188485114f2763f92
3,039
cpp
C++
examples/DSPDemo/Source/Demos/OverdriveDemo.cpp
jpcima/DISTRHO-JUCE
08c983c6dc718b7bbdba8c0625d7a4ee2a837f4c
[ "ISC" ]
1
2020-10-23T05:31:32.000Z
2020-10-23T05:31:32.000Z
examples/DSPDemo/Source/Demos/OverdriveDemo.cpp
pierreguillot/JUCE-LV2
b12aa69c81f496d07066a603b5320601aa93fcc0
[ "ISC" ]
null
null
null
examples/DSPDemo/Source/Demos/OverdriveDemo.cpp
pierreguillot/JUCE-LV2
b12aa69c81f496d07066a603b5320601aa93fcc0
[ "ISC" ]
null
null
null
/* ============================================================================== This file is part of the JUCE library. Copyright (c) 2017 - ROLI Ltd. JUCE is an open source library subject to commercial or open-source licensing. By using JUCE, you agree to the terms of both the JUCE 5 End-User License Agreement and JUCE 5 Privacy Policy (both updated and effective as of the 27th April 2017). End User License Agreement: www.juce.com/juce-5-licence Privacy Policy: www.juce.com/juce-5-privacy-policy Or: You may also use this code under the terms of the GPL v3 (see www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE DISCLAIMED. ============================================================================== */ #include "../DSPDemo.h" //============================================================================== // @@ START_DEMO struct OverdriveDemo { void prepare (const ProcessSpec& spec) { sampleRate = spec.sampleRate; auto& gainUp = overdrive.get<0>(); gainUp.setGainDecibels (24); auto& bias = overdrive.get<1>(); bias.setBias (0.4f); auto& wavShaper = overdrive.get<2>(); wavShaper.functionToUse = std::tanh; auto& dcFilter = overdrive.get<3>(); dcFilter.state = IIR::Coefficients<float>::makeHighPass (sampleRate, 5.0); auto& gainDown = overdrive.get<4>(); gainDown.setGainDecibels (-18.0f); overdrive.prepare (spec); } void process (const ProcessContextReplacing<float>& context) { overdrive.process (context); } void reset() { overdrive.reset(); } void updateParameters() { if (sampleRate != 0) { overdrive.get<0>().setGainDecibels (static_cast<float> (inGainParam.getCurrentValue())); overdrive.get<4>().setGainDecibels (static_cast<float> (outGainParam.getCurrentValue())); } } //============================================================================== using GainProcessor = Gain<float>; using BiasProcessor = Bias<float>; using DriveProcessor = WaveShaper<float>; using DCFilter = ProcessorDuplicator<IIR::Filter<float>, IIR::Coefficients<float>>; ProcessorChain<GainProcessor, BiasProcessor, DriveProcessor, DCFilter, GainProcessor> overdrive; SliderParameter inGainParam { { -100.0, 60.0 }, 3, 24.0, "Input Gain", "dB" }; SliderParameter outGainParam { { -100.0, 20.0 }, 3, -18.0, "Output Gain", "dB" }; std::vector<DSPDemoParameterBase*> parameters { &inGainParam, &outGainParam }; double sampleRate = 0; }; // @@ END_DEMO RegisterDSPDemo<OverdriveDemo> overdriveDemo ("Overdrive", BinaryData::OverdriveDemo_cpp);
33.032609
102
0.556762
[ "vector" ]
360deb308c04f4d7747e385537ae729ef0869886
6,456
hpp
C++
src/HashTables/LinearProbing.hpp
ragoragino/partitionedhashjoin
6f3830794364ba15f3445b4518b90ac12959666b
[ "MIT" ]
null
null
null
src/HashTables/LinearProbing.hpp
ragoragino/partitionedhashjoin
6f3830794364ba15f3445b4518b90ac12959666b
[ "MIT" ]
null
null
null
src/HashTables/LinearProbing.hpp
ragoragino/partitionedhashjoin
6f3830794364ba15f3445b4518b90ac12959666b
[ "MIT" ]
null
null
null
#pragma once #include <algorithm> #include <atomic> #include <cmath> #include <cstdint> #include <map> #include <thread> #include <vector> #include "Common/IHasher.hpp" #include "Common/Table.hpp" #include "Common/XXHasher.hpp" namespace HashTables { struct LinearProbingConfiguration { double HASH_TABLE_SIZE_RATIO = 1.25; }; namespace internal { namespace LinearProbing { template <typename Value, size_t N> class alignas(64) Bucket { public: Bucket() : m_freePosition(0) {} Bucket(int64_t key, const Value* tuple) : m_freePosition(1) { m_keys[0] = key; m_values[0] = tuple; } bool Insert(int64_t key, const Value* tuple) { if (m_freePosition == N) { return false; } m_keys[m_freePosition] = key; m_values[m_freePosition] = tuple; m_freePosition++; return true; } bool Exists(int64_t key) const { size_t end = m_freePosition; for (size_t i = 0; i != end; i++) { if (m_keys[i] == key) { return true; } } return false; } bool IsFull() const { return m_freePosition == N; } const Value* Get(int64_t key) const { size_t end = m_freePosition; for (size_t i = 0; i != end; i++) { if (m_keys[i] == key) { return m_values[i]; } } return nullptr; } void GetAll(int64_t key, std::vector<const Value*>& result) const { for (size_t i = 0; i != m_freePosition; ++i) { if (m_keys[i] == key) { result.push_back(m_values[i]); } }; } private: int8_t m_freePosition; int64_t m_keys[N]; const Value* m_values[N]; }; size_t getNumberOfBuckets(const LinearProbingConfiguration& configuration, size_t numberOfObjects); } // namespace LinearProbing } // namespace internal template <typename BucketValueType, size_t BucketSize, typename HasherType> class LinearProbingHashTable { using Bucket = internal::LinearProbing::Bucket<BucketValueType, BucketSize>; public: LinearProbingHashTable(const LinearProbingConfiguration& configuration, const HasherType& hasher, size_t numberOfObjects) : m_configuration(configuration), m_numberOfBuckets( internal::LinearProbing::getNumberOfBuckets(configuration, numberOfObjects)), m_buckets(m_numberOfBuckets, Bucket{}), m_bucketLatches(m_numberOfBuckets), m_hasher(hasher) { std::for_each(m_bucketLatches.begin(), m_bucketLatches.end(), [](std::atomic_flag& latch) { latch.clear(); }); if (numberOfObjects == 0) { throw std::invalid_argument( "LinearProbingHashTable::LinearProbingHashTable: numberOfObjects must be greater " "than zero."); } } // thread-safe void Insert(int64_t key, const BucketValueType* tuple) { uint64_t hash = m_hasher.Hash(key, m_numberOfBuckets); bool insertSucceeded = false; while (true) { // Spin on latch until you succeed in locking it while (m_bucketLatches[hash].test_and_set(std::memory_order_acquire)) ; insertSucceeded = m_buckets[hash].Insert(key, tuple); // Unlock latch m_bucketLatches[hash].clear(std::memory_order_release); if (insertSucceeded) { break; } hash = ++hash == m_numberOfBuckets ? 0 : hash; } } // not thread-safe - we shouldn't need to run Exists during building of hash index bool Exists(int64_t key) { uint64_t hash = m_hasher.Hash(key, m_numberOfBuckets); bool exists = false; const Bucket* bucketPtr; while (true) { bucketPtr = &m_buckets[hash]; exists = bucketPtr->Exists(key); if (exists) { return true; } if (!bucketPtr->IsFull()) { return false; } hash = ++hash == m_numberOfBuckets ? 0 : hash; } return false; } // not thread-safe - we shouldn't need to run Get during building of hash index const BucketValueType* Get(int64_t key) { uint64_t hash = m_hasher.Hash(key, m_numberOfBuckets); const BucketValueType* bucketValue = nullptr; const Bucket* bucketPtr; while (true) { bucketPtr = &m_buckets[hash]; bucketValue = bucketPtr->Get(key); if (bucketValue) { return bucketValue; } if (!bucketPtr->IsFull()) { return bucketValue; } hash = ++hash == m_numberOfBuckets ? 0 : hash; } return bucketValue; } // not thread-safe - we shouldn't need to run GetAll during building of hash index std::vector<const BucketValueType*> GetAll(int64_t key) { uint64_t hash = m_hasher.Hash(key, m_numberOfBuckets); bool exists = false; std::vector<const BucketValueType*> bucketValues{}; const Bucket* bucketPtr; while (true) { bucketPtr = &m_buckets[hash]; bucketPtr->GetAll(key, bucketValues); if (!bucketPtr->IsFull()) { return bucketValues; } hash = ++hash == m_numberOfBuckets ? 0 : hash; } return bucketValues; } ~LinearProbingHashTable() = default; private: const LinearProbingConfiguration m_configuration; const size_t m_numberOfBuckets; std::vector<Bucket> m_buckets; std::vector<std::atomic_flag> m_bucketLatches; HasherType m_hasher; }; template <typename BucketValueType, size_t BucketSize, typename HasherType> class LinearProbingFactory { public: typedef LinearProbingHashTable<BucketValueType, BucketSize, HasherType> HashTableType; LinearProbingFactory(const LinearProbingConfiguration& configuration, HasherType hasher) : m_hasher(hasher), m_configuration(configuration) {} std::shared_ptr<HashTableType> New(size_t numberOfObjects) const { return std::make_shared<HashTableType>(m_configuration, m_hasher, numberOfObjects); } private: const HasherType m_hasher; const LinearProbingConfiguration m_configuration; }; } // namespace HashTables
28.069565
99
0.60347
[ "vector" ]
3610c36411ed15cfcaf874e14adad8716cf1fdf0
75,462
cpp
C++
dwarf/SB/Game/zEntDestructObj.cpp
stravant/bfbbdecomp
2126be355a6bb8171b850f829c1f2731c8b5de08
[ "OLDAP-2.7" ]
1
2021-01-05T11:28:55.000Z
2021-01-05T11:28:55.000Z
dwarf/SB/Game/zEntDestructObj.cpp
sonich2401/bfbbdecomp
5f58b62505f8929a72ccf2aa118a1539eb3a5bd6
[ "OLDAP-2.7" ]
null
null
null
dwarf/SB/Game/zEntDestructObj.cpp
sonich2401/bfbbdecomp
5f58b62505f8929a72ccf2aa118a1539eb3a5bd6
[ "OLDAP-2.7" ]
1
2022-03-30T15:15:08.000Z
2022-03-30T15:15:08.000Z
typedef struct RpPolygon; typedef struct RxPipelineNode; typedef struct xEntMotionMPData; typedef struct xAnimPlay; typedef struct zFrag; typedef struct zParEmitter; typedef struct xEntERData; typedef struct xAnimEffect; typedef struct xParSys; typedef struct anim_coll_data; typedef struct RwV3d; typedef struct RwObjectHasFrame; typedef struct zShrapnelAsset; typedef struct xModelInstance; typedef struct RpWorld; typedef struct RpGeometry; typedef struct xPECircle; typedef struct xClumpCollBSPVertInfo; typedef struct RpVertexNormal; typedef struct xBase; typedef struct rxHeapFreeBlock; typedef struct xAnimSingle; typedef struct xQCData; typedef struct xClumpCollBSPBranchNode; typedef struct RwRaster; typedef struct RxPipelineNodeTopSortData; typedef struct RwV2d; typedef struct xAnimState; typedef struct RwTexCoords; typedef struct RxNodeDefinition; typedef struct zFragLightningAsset; typedef struct xClumpCollBSPTriangle; typedef struct _class_0; typedef struct xAnimTable; typedef struct RwRGBA; typedef struct RpMeshHeader; typedef struct rxHeapSuperBlockDescriptor; typedef struct zScene; typedef struct RwResEntry; typedef struct xMemPool; typedef struct _tagxPad; typedef struct RxPipeline; typedef struct st_SERIAL_CLIENTINFO; typedef struct RxPipelineCluster; typedef struct xQuat; typedef struct xEnvAsset; typedef struct RxPipelineNodeParam; typedef struct xVec3; typedef struct xSpline3; typedef struct zEntDestructObj; typedef struct zJumpParam; typedef struct xEnt; typedef struct RxHeap; typedef struct xEntMotionMechData; typedef struct RwBBox; typedef struct xScene; typedef struct xMat4x3; typedef struct xEntFrame; typedef struct _tagxRumble; typedef struct RpTriangle; typedef struct zFragLightning; typedef struct _tagEmitSphere; typedef struct _zPortal; typedef struct xEntPenData; typedef struct zEntHangable; typedef struct RpAtomic; typedef struct zPlatform; typedef struct rxHeapBlockHeader; typedef struct zGlobals; typedef struct xGroup; typedef struct xModelPool; typedef struct zGlobalSettings; typedef struct RxPipelineRequiresCluster; typedef struct xUpdateCullEnt; typedef struct _tagLightningLine; typedef struct xLinkAsset; typedef struct _class_1; typedef struct xEntShadow; typedef struct zAssetPickupTable; typedef struct zFragSoundAsset; typedef struct xAnimFile; typedef struct xGroupAsset; typedef struct xEntOrbitData; typedef struct zCutsceneMgr; typedef struct zPlayerLassoInfo; typedef struct zLightning; typedef struct xAnimTransition; typedef enum _tagSDRumbleType; typedef struct xAnimTransitionList; typedef struct zLedgeGrabParams; typedef struct _tagEmitRect; typedef struct zPlatFMRunTime; typedef struct xVec4; typedef struct xEntMotion; typedef struct RpClump; typedef struct xModelTag; typedef struct RwSurfaceProperties; typedef struct xPlatformAsset; typedef struct RwMatrixTag; typedef struct xCoef; typedef struct xEntMotionAsset; typedef struct xPortalAsset; typedef struct xEntBoulder; typedef enum _zPlayerWallJumpState; typedef struct rxReq; typedef struct iEnv; typedef struct zFragSound; typedef struct _tagLightningRot; typedef struct xBaseAsset; typedef struct xEntAsset; typedef enum RxClusterValidityReq; typedef enum RpWorldRenderOrder; typedef struct xMovePointAsset; typedef struct xLightKit; typedef struct xJSPNodeInfo; typedef struct xSerial; typedef struct zEnt; typedef struct xParabola; typedef struct xCurveAsset; typedef struct RpMaterial; typedef enum _tagRumbleType; typedef enum _zPlayerType; typedef struct xUpdateCullGroup; typedef struct xBound; typedef struct xSurface; typedef struct xVec2; typedef enum zFragLocType; typedef struct xEntSplineData; typedef struct zFragShockwaveAsset; typedef struct xPEEntBound; typedef struct xAnimMultiFile; typedef struct RwTexture; typedef enum RxNodeDefEditable; typedef struct _tagEmitLine; typedef struct RpSector; typedef struct xModelBucket; typedef enum RxClusterValid; typedef struct xCoef3; typedef struct analog_data; typedef struct xBBox; typedef struct xRot; typedef struct _class_2; typedef struct xEntMotionPenData; typedef struct RpWorldSector; typedef struct xParEmitterCustomSettings; typedef struct RpMorphTarget; typedef struct xEntDrive; typedef struct zFragShockwave; typedef struct zFragParticleAsset; typedef struct xJSPHeader; typedef enum rxEmbeddedPacketState; typedef struct xSphere; typedef struct _tagLightningZeus; typedef struct RpLight; typedef struct zLasso; typedef struct zCheckPoint; typedef struct xEntMPData; typedef enum RwCameraProjection; typedef enum RxClusterForcePresent; typedef struct zPlayerGlobals; typedef struct zEntDestructObjAsset; typedef struct xCylinder; typedef struct xUpdateCullMgr; typedef struct xMovePoint; typedef struct _zEnv; typedef struct xCamera; typedef struct xBox; typedef struct _tagEmitVolume; typedef struct zPlayerCarryInfo; typedef struct RxClusterDefinition; typedef struct xGridBound; typedef struct xClumpCollBSPTree; typedef struct zFragBone; typedef struct zPlayerSettings; typedef struct xEntMotionERData; typedef struct RwCamera; typedef struct RwSphere; typedef struct xShadowSimplePoly; typedef struct RwLLLink; typedef struct RwTexDictionary; typedef struct xAnimMultiFileEntry; typedef struct xAnimActiveEffect; typedef struct RxOutputSpec; typedef struct zFragAsset; typedef struct _tagEmitOffsetPoint; typedef struct xMat3x3; typedef struct zFragGroup; typedef struct iFogParams; typedef struct zFragLocInfo; typedef struct tri_data_0; typedef struct _class_3; typedef struct tri_data_1; typedef struct RxClusterRef; typedef struct xParEmitter; typedef struct zFragInfo; typedef struct xLightKitLight; typedef struct RwObject; typedef struct xParEmitterAsset; typedef struct xShadowSimpleCache; typedef struct RxIoSpec; typedef struct xCollis; typedef struct xEntCollis; typedef struct xParGroup; typedef struct zFragProjectileAsset; typedef struct RpInterpolator; typedef struct xEntMotionOrbitData; typedef struct xEnv; typedef struct xAnimMultiFileBase; typedef struct xParEmitterPropsAsset; typedef struct RxNodeMethods; typedef struct xPEVCyl; typedef struct RwFrame; typedef struct zFragParticle; typedef struct zFragLocation; typedef struct xSFXAsset; typedef enum _tagPadState; typedef struct RwFrustumPlane; typedef struct FloatAndVoid; typedef struct _class_4; typedef struct xParInterp; typedef struct RwPlane; typedef struct xGlobals; typedef struct RpMaterialList; typedef struct RxCluster; typedef struct xFFX; typedef struct xEntMechData; typedef struct xEntMotionSplineData; typedef struct xPEEntBone; typedef struct RxPacket; typedef struct zFragProjectile; typedef enum zFragType; typedef enum RwFogType; typedef struct _tagPadAnalog; typedef struct iColor_tag; typedef struct RwRGBAReal; typedef struct _tagiPad; typedef struct RwLinkList; typedef RwCamera*(*type_1)(RwCamera*); typedef int32(*type_4)(RxPipelineNode*); typedef RpClump*(*type_5)(RpClump*, void*); typedef RwCamera*(*type_7)(RwCamera*); typedef RwObjectHasFrame*(*type_9)(RwObjectHasFrame*); typedef void(*type_10)(RxPipelineNode*); typedef void(*type_12)(xAnimPlay*, xAnimState*); typedef void(*type_15)(xEnt*, xScene*, float32, xEntCollis*); typedef uint32(*type_16)(uint32, xAnimActiveEffect*, xAnimSingle*, void*); typedef int32(*type_18)(RxPipelineNode*, RxPipeline*); typedef uint32(*type_19)(xEnt*, xEnt*, xScene*, float32, xCollis*); typedef void(*type_21)(zEntDestructObj*, xScene*, float32); typedef void(*type_22)(xAnimPlay*, xQuat*, xVec3*, int32); typedef uint32(*type_23)(void*, void*); typedef void(*type_26)(xEnt*, xVec3*, xMat4x3*); typedef int32(*type_27)(xBase*, xBase*, uint32, float32*, xBase*); typedef void(*type_31)(void*); typedef uint32(*type_34)(RxPipelineNode*, uint32, uint32, void*); typedef void(*type_35)(zEntDestructObj*, xScene*, float32, xEntFrame*); typedef RpAtomic*(*type_36)(RpAtomic*); typedef int32(*type_37)(RxPipelineNode*, RxPipelineNodeParam*); typedef xBase*(*type_39)(uint32); typedef int32(*type_40)(RxNodeDefinition*); typedef uint32(*type_41)(void*, void*); typedef void(*type_42)(RxNodeDefinition*); typedef int8*(*type_45)(xBase*); typedef uint32(*type_46)(void*, void*); typedef uint32(*type_47)(xAnimTransition*, xAnimSingle*, void*); typedef int8*(*type_48)(uint32); typedef void(*type_66)(xAnimState*, xAnimSingle*, void*); typedef RpWorldSector*(*type_71)(RpWorldSector*); typedef void(*type_87)(zFrag*, zFragAsset*); typedef void(*type_93)(xEnt*, xScene*, float32); typedef void(*type_95)(zShrapnelAsset*, xModelInstance*, xVec3*, void(*)(zFrag*, zFragAsset*)); typedef void(*type_96)(zEntDestructObj&, void*); typedef void(*type_99)(xEnt*, xVec3*); typedef void(*type_102)(xEnt*, xScene*, float32, xEntFrame*); typedef void(*type_105)(xEnt*); typedef int32(*type_108)(xBase*, xBase*, uint32, float32*, xBase*); typedef void(*type_110)(xMemPool*, void*); typedef void(*type_117)(RwResEntry*); typedef void(*type_118)(zFrag*, float32); typedef uint8 type_0[14]; typedef xModelTag type_2[4]; typedef int8 type_3[32]; typedef int8 type_6[16]; typedef xModelInstance* type_8[14]; typedef RwTexCoords* type_11[8]; typedef xCollis type_13[18]; typedef uint8 type_14[4]; typedef xVec3 type_17[16]; typedef xVec3 type_20[16]; typedef uint32 type_24[2]; typedef uint8 type_25[22]; typedef xParInterp type_28[1]; typedef uint8 type_29[22]; typedef float32 type_30[16]; typedef RwFrustumPlane type_32[6]; typedef uint16 type_33[3]; typedef RwV3d type_38[8]; typedef xVec3 type_43[5]; typedef uint8 type_44[5]; typedef float32 type_49[12]; typedef xParInterp type_50[4]; typedef uint8 type_51[2]; typedef float32 type_52[12]; typedef xVec3 type_53[60]; typedef xParInterp type_54[4]; typedef float32 type_55[4]; typedef float32 type_56[12]; typedef float32 type_57[16]; typedef float32 type_58[2]; typedef float32 type_59[12]; typedef float32 type_60[22]; typedef float32 type_61[12]; typedef float32 type_62[22]; typedef float32 type_63[12]; typedef RwTexCoords* type_64[8]; typedef float32 type_65[4]; typedef uint32 type_67[15]; typedef xVec3 type_68[2]; typedef uint8 type_69[2]; typedef uint32 type_70[15]; typedef uint32 type_72[72]; typedef int8 type_73[4]; typedef uint32 type_74[15]; typedef float32 type_75[2]; typedef xBase* type_76[72]; typedef float32 type_77[4]; typedef analog_data type_78[2]; typedef uint8 type_79[3]; typedef float32 type_80[2]; typedef float32 type_81[4]; typedef float32 type_82[2]; typedef float32 type_83[4]; typedef uint32 type_84[4]; typedef float32 type_85[4]; typedef xVec3 type_86[3]; typedef xVec4 type_88[12]; typedef uint8 type_89[2]; typedef zFrag* type_90[21]; typedef uint32 type_91[2]; typedef uint8 type_92[2]; typedef float32 type_94[6]; typedef float32 type_97[3]; typedef float32 type_98[16]; typedef float32 type_100[2]; typedef float32 type_101[3]; typedef xModelTag type_103[2]; typedef float32 type_104[3]; typedef RpLight* type_106[2]; typedef uint8 type_107[3]; typedef RwFrame* type_109[2]; typedef int8 type_111[32]; typedef float32 type_112[2]; typedef int8 type_113[32]; typedef xEnt* type_114[111]; typedef uint16 type_115[3]; typedef uint8 type_116[3]; typedef uint8 type_119[3]; typedef uint8 type_120[2]; typedef xAnimMultiFileEntry type_121[1]; typedef uint8 type_122[2]; typedef xVec3 type_123[4]; typedef int8 type_124[128]; typedef int8 type_125[16]; typedef int8 type_126[128][6]; typedef float32 type_127[4]; typedef xModelInstance* type_128[2]; typedef uint8 type_129[3]; typedef RxCluster type_130[1]; struct RpPolygon { uint16 matIndex; uint16 vertIndex[3]; }; struct RxPipelineNode { RxNodeDefinition* nodeDef; uint32 numOutputs; uint32* outputs; RxPipelineCluster** slotClusterRefs; uint32* slotsContinue; void* privateData; uint32* inputToClusterSlot; RxPipelineNodeTopSortData* topSortData; void* initializationData; uint32 initializationDataSize; }; struct xEntMotionMPData { uint32 flags; uint32 mp_id; float32 speed; }; struct xAnimPlay { xAnimPlay* Next; uint16 NumSingle; uint16 BoneCount; xAnimSingle* Single; void* Object; xAnimTable* Table; xMemPool* Pool; xModelInstance* ModelInst; void(*BeforeAnimMatrices)(xAnimPlay*, xQuat*, xVec3*, int32); }; struct zFrag { zFragType type; zFragInfo info; float32 delay; float32 alivetime; float32 lifetime; void(*update)(zFrag*, float32); xModelInstance* parent[2]; zFrag* prev; zFrag* next; }; struct zParEmitter : xParEmitter { }; struct xEntERData { xVec3 a; xVec3 b; xVec3 dir; float32 et; float32 wet; float32 rt; float32 wrt; float32 p; float32 brt; float32 ert; int32 state; }; struct xAnimEffect { xAnimEffect* Next; uint32 Flags; float32 StartTime; float32 EndTime; uint32(*Callback)(uint32, xAnimActiveEffect*, xAnimSingle*, void*); }; struct xParSys { }; struct anim_coll_data { }; struct RwV3d { float32 x; float32 y; float32 z; }; struct RwObjectHasFrame { RwObject object; RwLLLink lFrame; RwObjectHasFrame*(*sync)(RwObjectHasFrame*); }; struct zShrapnelAsset { int32 fassetCount; uint32 shrapnelID; void(*initCB)(zShrapnelAsset*, xModelInstance*, xVec3*, void(*)(zFrag*, zFragAsset*)); }; struct xModelInstance { xModelInstance* Next; xModelInstance* Parent; xModelPool* Pool; xAnimPlay* Anim; RpAtomic* Data; uint32 PipeFlags; float32 RedMultiplier; float32 GreenMultiplier; float32 BlueMultiplier; float32 Alpha; float32 FadeStart; float32 FadeEnd; xSurface* Surf; xModelBucket** Bucket; xModelInstance* BucketNext; xLightKit* LightKit; void* Object; uint16 Flags; uint8 BoneCount; uint8 BoneIndex; uint8* BoneRemap; RwMatrixTag* Mat; xVec3 Scale; uint32 modelID; uint32 shadowID; RpAtomic* shadowmapAtomic; _class_3 anim_coll; }; struct RpWorld { RwObject object; uint32 flags; RpWorldRenderOrder renderOrder; RpMaterialList matList; RpSector* rootSector; int32 numTexCoordSets; int32 numClumpsInWorld; RwLLLink* currentClumpLink; RwLinkList clumpList; RwLinkList lightList; RwLinkList directionalLightList; RwV3d worldOrigin; RwBBox boundingBox; RpWorldSector*(*renderCallBack)(RpWorldSector*); RxPipeline* pipeline; }; struct RpGeometry { RwObject object; uint32 flags; uint16 lockedSinceLastInst; int16 refCount; int32 numTriangles; int32 numVertices; int32 numMorphTargets; int32 numTexCoordSets; RpMaterialList matList; RpTriangle* triangles; RwRGBA* preLitLum; RwTexCoords* texCoords[8]; RpMeshHeader* mesh; RwResEntry* repEntry; RpMorphTarget* morphTarget; }; struct xPECircle { float32 radius; float32 deflection; xVec3 dir; }; struct xClumpCollBSPVertInfo { uint16 atomIndex; uint16 meshVertIndex; }; struct RpVertexNormal { int8 x; int8 y; int8 z; uint8 pad; }; struct xBase { uint32 id; uint8 baseType; uint8 linkCount; uint16 baseFlags; xLinkAsset* link; int32(*eventFunc)(xBase*, xBase*, uint32, float32*, xBase*); }; struct rxHeapFreeBlock { uint32 size; rxHeapBlockHeader* ptr; }; struct xAnimSingle { uint32 SingleFlags; xAnimState* State; float32 Time; float32 CurrentSpeed; float32 BilinearLerp[2]; xAnimEffect* Effect; uint32 ActiveCount; float32 LastTime; xAnimActiveEffect* ActiveList; xAnimPlay* Play; xAnimTransition* Sync; xAnimTransition* Tran; xAnimSingle* Blend; float32 BlendFactor; uint32 pad; }; struct xQCData { int8 xmin; int8 ymin; int8 zmin; int8 zmin_dup; int8 xmax; int8 ymax; int8 zmax; int8 zmax_dup; xVec3 min; xVec3 max; }; struct xClumpCollBSPBranchNode { uint32 leftInfo; uint32 rightInfo; float32 leftValue; float32 rightValue; }; struct RwRaster { RwRaster* parent; uint8* cpPixels; uint8* palette; int32 width; int32 height; int32 depth; int32 stride; int16 nOffsetX; int16 nOffsetY; uint8 cType; uint8 cFlags; uint8 privateFlags; uint8 cFormat; uint8* originalPixels; int32 originalWidth; int32 originalHeight; int32 originalStride; }; struct RxPipelineNodeTopSortData { uint32 numIns; uint32 numInsVisited; rxReq* req; }; struct RwV2d { float32 x; float32 y; }; struct xAnimState { xAnimState* Next; int8* Name; uint32 ID; uint32 Flags; uint32 UserFlags; float32 Speed; xAnimFile* Data; xAnimEffect* Effects; xAnimTransitionList* Default; xAnimTransitionList* List; float32* BoneBlend; float32* TimeSnap; float32 FadeRecip; uint16* FadeOffset; void* CallbackData; xAnimMultiFile* MultiFile; void(*BeforeEnter)(xAnimPlay*, xAnimState*); void(*StateCallback)(xAnimState*, xAnimSingle*, void*); void(*BeforeAnimMatrices)(xAnimPlay*, xQuat*, xVec3*, int32); }; struct RwTexCoords { float32 u; float32 v; }; struct RxNodeDefinition { int8* name; RxNodeMethods nodeMethods; RxIoSpec io; uint32 pipelineNodePrivateDataSize; RxNodeDefEditable editable; int32 InputPipesCnt; }; struct zFragLightningAsset : zFragAsset { zFragLocation start; zFragLocation end; uint32 startParentID; uint32 endParentID; }; struct xClumpCollBSPTriangle { _class_1 v; uint8 flags; uint8 platData; uint16 matIndex; }; struct _class_0 { xVec3 base_point[16]; xVec3 point[16]; int16 total_points; int16 end_points; float32 arc_height; xVec3 arc_normal; float32 thickness[16]; union { _tagLightningLine line; _tagLightningRot rot; _tagLightningZeus zeus; }; float32 rand_radius; }; struct xAnimTable { xAnimTable* Next; int8* Name; xAnimTransition* TransitionList; xAnimState* StateList; uint32 AnimIndex; uint32 MorphIndex; uint32 UserFlags; }; struct RwRGBA { uint8 red; uint8 green; uint8 blue; uint8 alpha; }; struct RpMeshHeader { uint32 flags; uint16 numMeshes; uint16 serialNum; uint32 totalIndicesInMesh; uint32 firstMeshOffset; }; struct rxHeapSuperBlockDescriptor { void* start; uint32 size; rxHeapSuperBlockDescriptor* next; }; struct zScene : xScene { _zPortal* pendingPortal; union { uint32 num_ents; uint32 num_base; }; union { xBase** base; zEnt** ents; }; uint32 num_update_base; xBase** update_base; uint32 baseCount[72]; xBase* baseList[72]; _zEnv* zen; }; struct RwResEntry { RwLLLink link; int32 size; void* owner; RwResEntry** ownerRef; void(*destroyNotify)(RwResEntry*); }; struct xMemPool { void* FreeList; uint16 NextOffset; uint16 Flags; void* UsedList; void(*InitCB)(xMemPool*, void*); void* Buffer; uint16 Size; uint16 NumRealloc; uint32 Total; }; struct _tagxPad { uint8 value[22]; uint8 last_value[22]; uint32 on; uint32 pressed; uint32 released; _tagPadAnalog analog1; _tagPadAnalog analog2; _tagPadState state; uint32 flags; _tagxRumble rumble_head; int16 port; int16 slot; _tagiPad context; float32 al2d_timer; float32 ar2d_timer; float32 d_timer; float32 up_tmr[22]; float32 down_tmr[22]; analog_data analog[2]; }; struct RxPipeline { int32 locked; uint32 numNodes; RxPipelineNode* nodes; uint32 packetNumClusterSlots; rxEmbeddedPacketState embeddedPacketState; RxPacket* embeddedPacket; uint32 numInputRequirements; RxPipelineRequiresCluster* inputRequirements; void* superBlock; uint32 superBlockSize; uint32 entryPoint; uint32 pluginId; uint32 pluginData; }; struct st_SERIAL_CLIENTINFO { }; struct RxPipelineCluster { RxClusterDefinition* clusterRef; uint32 creationAttributes; }; struct xQuat { xVec3 v; float32 s; }; struct xEnvAsset : xBaseAsset { uint32 bspAssetID; uint32 startCameraAssetID; uint32 climateFlags; float32 climateStrengthMin; float32 climateStrengthMax; uint32 bspLightKit; uint32 objectLightKit; float32 padF1; uint32 bspCollisionAssetID; uint32 bspFXAssetID; uint32 bspCameraAssetID; uint32 bspMapperID; uint32 bspMapperCollisionID; uint32 bspMapperFXID; float32 loldHeight; }; struct RxPipelineNodeParam { void* dataParam; RxHeap* heap; }; struct xVec3 { float32 x; float32 y; float32 z; }; struct xSpline3 { uint16 type; uint16 flags; uint32 N; uint32 allocN; xVec3* points; float32* time; xVec3* p12; xVec3* bctrl; float32* knot; xCoef3* coef; uint32 arcSample; float32* arcLength; }; struct zEntDestructObj : zEnt { zEntDestructObjAsset* dasset; uint32 state; uint32 healthCnt; float32 fx_timer; zParEmitter* fx_emitter; float32 respawn_timer; uint32 throw_target; zShrapnelAsset* shrapnel_destroy; zShrapnelAsset* shrapnel_hit; xModelInstance* base_model; xModelInstance* hit_model; xModelInstance* destroy_model; void(*destroy_notify)(zEntDestructObj&, void*); void* notify_context; xSFXAsset* sfx_destroy; xSFXAsset* sfx_hit; }; struct zJumpParam { float32 PeakHeight; float32 TimeGravChange; float32 TimeHold; float32 ImpulseVel; }; struct xEnt : xBase { xEntAsset* asset; uint16 idx; uint16 num_updates; uint8 flags; uint8 miscflags; uint8 subType; uint8 pflags; uint8 moreFlags; uint8 isCulled; uint8 driving_count; uint8 num_ffx; uint8 collType; uint8 collLev; uint8 chkby; uint8 penby; xModelInstance* model; xModelInstance* collModel; xModelInstance* camcollModel; xLightKit* lightKit; void(*update)(xEnt*, xScene*, float32); void(*endUpdate)(xEnt*, xScene*, float32); void(*bupdate)(xEnt*, xVec3*); void(*move)(xEnt*, xScene*, float32, xEntFrame*); void(*render)(xEnt*); xEntFrame* frame; xEntCollis* collis; xGridBound gridb; xBound bound; void(*transl)(xEnt*, xVec3*, xMat4x3*); xFFX* ffx; xEnt* driver; int32 driveMode; xShadowSimpleCache* simpShadow; xEntShadow* entShadow; anim_coll_data* anim_coll; void* user_data; }; struct RxHeap { uint32 superBlockSize; rxHeapSuperBlockDescriptor* head; rxHeapBlockHeader* headBlock; rxHeapFreeBlock* freeBlocks; uint32 entriesAlloced; uint32 entriesUsed; int32 dirty; }; struct xEntMotionMechData { uint8 type; uint8 flags; uint8 sld_axis; uint8 rot_axis; float32 sld_dist; float32 sld_tm; float32 sld_acc_tm; float32 sld_dec_tm; float32 rot_dist; float32 rot_tm; float32 rot_acc_tm; float32 rot_dec_tm; float32 ret_delay; float32 post_ret_delay; }; struct RwBBox { RwV3d sup; RwV3d inf; }; struct xScene { uint32 sceneID; uint16 flags; uint16 num_ents; uint16 num_trigs; uint16 num_stats; uint16 num_dyns; uint16 num_npcs; uint16 num_act_ents; uint16 num_nact_ents; float32 gravity; float32 drag; float32 friction; uint16 num_ents_allocd; uint16 num_trigs_allocd; uint16 num_stats_allocd; uint16 num_dyns_allocd; uint16 num_npcs_allocd; xEnt** trigs; xEnt** stats; xEnt** dyns; xEnt** npcs; xEnt** act_ents; xEnt** nact_ents; xEnv* env; xMemPool mempool; xBase*(*resolvID)(uint32); int8*(*base2Name)(xBase*); int8*(*id2Name)(uint32); }; struct xMat4x3 : xMat3x3 { xVec3 pos; uint32 pad3; }; struct xEntFrame { xMat4x3 mat; xMat4x3 oldmat; xVec3 oldvel; xRot oldrot; xRot drot; xRot rot; xVec3 dpos; xVec3 dvel; xVec3 vel; uint32 mode; }; struct _tagxRumble { _tagRumbleType type; float32 seconds; _tagxRumble* next; int16 active; uint16 fxflags; }; struct RpTriangle { uint16 vertIndex[3]; int16 matIndex; }; struct zFragLightning { zFragLightningAsset* fasset; xModelInstance* startParent; xModelInstance* endParent; zLightning* lightning; }; struct _tagEmitSphere { float32 radius; }; struct _zPortal : xBase { xPortalAsset* passet; }; struct xEntPenData { xVec3 top; float32 w; xMat4x3 omat; }; struct zEntHangable { }; struct RpAtomic { RwObjectHasFrame object; RwResEntry* repEntry; RpGeometry* geometry; RwSphere boundingSphere; RwSphere worldBoundingSphere; RpClump* clump; RwLLLink inClumpLink; RpAtomic*(*renderCallBack)(RpAtomic*); RpInterpolator interpolator; uint16 renderFrame; uint16 pad; RwLinkList llWorldSectorsInAtomic; RxPipeline* pipeline; }; struct zPlatform : zEnt { xPlatformAsset* passet; xEntMotion motion; uint16 state; uint16 plat_flags; float32 tmr; int32 ctr; xMovePoint* src; xModelInstance* am; xModelInstance* bm; int32 moving; xEntDrive drv; zPlatFMRunTime* fmrt; float32 pauseMult; float32 pauseDelta; }; struct rxHeapBlockHeader { rxHeapBlockHeader* prev; rxHeapBlockHeader* next; uint32 size; rxHeapFreeBlock* freeEntry; uint32 pad[4]; }; struct zGlobals : xGlobals { zPlayerGlobals player; zAssetPickupTable* pickupTable; zCutsceneMgr* cmgr; zScene* sceneCur; zScene* scenePreload; }; struct xGroup : xBase { xGroupAsset* asset; xBase** item; uint32 last_index; int32 flg_group; }; struct xModelPool { xModelPool* Next; uint32 NumMatrices; xModelInstance* List; }; struct zGlobalSettings { uint16 AnalogMin; uint16 AnalogMax; float32 SundaeTime; float32 SundaeMult; uint32 InitialShinyCount; uint32 InitialSpatulaCount; int32 ShinyValuePurple; int32 ShinyValueBlue; int32 ShinyValueGreen; int32 ShinyValueYellow; int32 ShinyValueRed; int32 ShinyValueCombo0; int32 ShinyValueCombo1; int32 ShinyValueCombo2; int32 ShinyValueCombo3; int32 ShinyValueCombo4; int32 ShinyValueCombo5; int32 ShinyValueCombo6; int32 ShinyValueCombo7; int32 ShinyValueCombo8; int32 ShinyValueCombo9; int32 ShinyValueCombo10; int32 ShinyValueCombo11; int32 ShinyValueCombo12; int32 ShinyValueCombo13; int32 ShinyValueCombo14; int32 ShinyValueCombo15; float32 ComboTimer; uint32 Initial_Specials; uint32 TakeDamage; float32 DamageTimeHit; float32 DamageTimeSurface; float32 DamageTimeEGen; float32 DamageSurfKnock; float32 DamageGiveHealthKnock; uint32 CheatSpongeball; uint32 CheatPlayerSwitch; uint32 CheatAlwaysPortal; uint32 CheatFlyToggle; uint32 DisableForceConversation; float32 StartSlideAngle; float32 StopSlideAngle; float32 RotMatchMaxAngle; float32 RotMatchMatchTime; float32 RotMatchRelaxTime; float32 Gravity; float32 BBashTime; float32 BBashHeight; float32 BBashDelay; float32 BBashCVTime; float32 BBounceSpeed; float32 BSpinMinFrame; float32 BSpinMaxFrame; float32 BSpinRadius; float32 SandyMeleeMinFrame; float32 SandyMeleeMaxFrame; float32 SandyMeleeRadius; float32 BubbleBowlTimeDelay; float32 BubbleBowlLaunchPosLeft; float32 BubbleBowlLaunchPosUp; float32 BubbleBowlLaunchPosAt; float32 BubbleBowlLaunchVelLeft; float32 BubbleBowlLaunchVelUp; float32 BubbleBowlLaunchVelAt; float32 BubbleBowlPercentIncrease; float32 BubbleBowlMinSpeed; float32 BubbleBowlMinRecoverTime; float32 SlideAccelVelMin; float32 SlideAccelVelMax; float32 SlideAccelStart; float32 SlideAccelEnd; float32 SlideAccelPlayerFwd; float32 SlideAccelPlayerBack; float32 SlideAccelPlayerSide; float32 SlideVelMaxStart; float32 SlideVelMaxEnd; float32 SlideVelMaxIncTime; float32 SlideVelMaxIncAccel; float32 SlideAirHoldTime; float32 SlideAirSlowTime; float32 SlideAirDblHoldTime; float32 SlideAirDblSlowTime; float32 SlideVelDblBoost; uint8 SlideApplyPhysics; uint8 PowerUp[2]; uint8 InitialPowerUp[2]; }; struct RxPipelineRequiresCluster { RxClusterDefinition* clusterDef; RxClusterValidityReq rqdOrOpt; uint32 slotIndex; }; struct xUpdateCullEnt { uint16 index; int16 groupIndex; uint32(*cb)(void*, void*); void* cbdata; xUpdateCullEnt* nextInGroup; }; struct _tagLightningLine { float32 unused; }; struct xLinkAsset { uint16 srcEvent; uint16 dstEvent; uint32 dstAssetID; float32 param[4]; uint32 paramWidgetAssetID; uint32 chkAssetID; }; struct _class_1 { union { xClumpCollBSPVertInfo i; RwV3d* p; }; }; struct xEntShadow { xVec3 pos; xVec3 vec; RpAtomic* shadowModel; float32 dst_cast; float32 radius[2]; }; struct zAssetPickupTable { }; struct zFragSoundAsset : zFragAsset { uint32 assetID; zFragLocation source; float32 volume; float32 innerRadius; float32 outerRadius; }; struct xAnimFile { xAnimFile* Next; int8* Name; uint32 ID; uint32 FileFlags; float32 Duration; float32 TimeOffset; uint16 BoneCount; uint8 NumAnims[2]; void** RawData; }; struct xGroupAsset : xBaseAsset { uint16 itemCount; uint16 groupFlags; }; struct xEntOrbitData { xVec3 orig; xVec3 c; float32 a; float32 b; float32 p; float32 w; }; struct zCutsceneMgr { }; struct zPlayerLassoInfo { xEnt* target; float32 dist; uint8 destroy; uint8 targetGuide; float32 lassoRot; xEnt* swingTarget; xEnt* releasedSwing; float32 copterTime; int32 canCopter; zLasso lasso; xAnimState* zeroAnim; }; struct zLightning { uint32 type; uint32 flags; union { _class_0 legacy; _class_2 func; }; iColor_tag color; float32 time_left; float32 time_total; }; struct xAnimTransition { xAnimTransition* Next; xAnimState* Dest; uint32(*Conditional)(xAnimTransition*, xAnimSingle*, void*); uint32(*Callback)(xAnimTransition*, xAnimSingle*, void*); uint32 Flags; uint32 UserFlags; float32 SrcTime; float32 DestTime; uint16 Priority; uint16 QueuePriority; float32 BlendRecip; uint16* BlendOffset; }; enum _tagSDRumbleType { SDR_None, SDR_Test, SDR_Damage, SDR_Bounce, SDR_EventLight, SDR_EventMedium, SDR_EventHeavy, SDR_DustDestroyedObj, SDR_XploDestroyedObj, SDR_WebDestroyed, SDR_Tiki, SDR_LassoDestroy, SDR_DamageByEGen, SDR_BounceHit, SDR_CruiseBubbleLaunch, SDR_CruiseBubbleExplode, SDR_TeleportStart, SDR_Teleport, SDR_TeleportEject, SDR_Total }; struct xAnimTransitionList { xAnimTransitionList* Next; xAnimTransition* T; }; struct zLedgeGrabParams { float32 animGrab; float32 zdist; xVec3 tranTable[60]; int32 tranCount; xEnt* optr; xMat4x3 omat; float32 y0det; float32 dydet; float32 r0det; float32 drdet; float32 thdet; float32 rtime; float32 ttime; float32 tmr; xVec3 spos; xVec3 epos; xVec3 tpos; int32 nrays; int32 rrand; float32 startrot; float32 endrot; }; struct _tagEmitRect { float32 x_len; float32 z_len; }; struct zPlatFMRunTime { uint32 flags; float32 tmrs[12]; float32 ttms[12]; float32 atms[12]; float32 dtms[12]; float32 vms[12]; float32 dss[12]; }; struct xVec4 { float32 x; float32 y; float32 z; float32 w; }; struct xEntMotion { xEntMotionAsset* asset; uint8 type; uint8 pad; uint16 flags; float32 t; float32 tmr; float32 d; union { xEntERData er; xEntOrbitData orb; xEntSplineData spl; xEntMPData mp; xEntMechData mech; xEntPenData pen; }; xEnt* owner; xEnt* target; }; struct RpClump { RwObject object; RwLinkList atomicList; RwLinkList lightList; RwLinkList cameraList; RwLLLink inWorldLink; RpClump*(*callback)(RpClump*, void*); }; struct xModelTag { xVec3 v; uint32 matidx; float32 wt[4]; }; struct RwSurfaceProperties { float32 ambient; float32 specular; float32 diffuse; }; struct xPlatformAsset { }; struct RwMatrixTag { RwV3d right; uint32 flags; RwV3d up; uint32 pad1; RwV3d at; uint32 pad2; RwV3d pos; uint32 pad3; }; struct xCoef { float32 a[4]; }; struct xEntMotionAsset { uint8 type; uint8 use_banking; uint16 flags; union { xEntMotionERData er; xEntMotionOrbitData orb; xEntMotionSplineData spl; xEntMotionMPData mp; xEntMotionMechData mech; xEntMotionPenData pen; }; }; struct xPortalAsset : xBaseAsset { uint32 assetCameraID; uint32 assetMarkerID; float32 ang; uint32 sceneID; }; struct xEntBoulder { }; enum _zPlayerWallJumpState { k_WALLJUMP_NOT, k_WALLJUMP_LAUNCH, k_WALLJUMP_FLIGHT, k_WALLJUMP_LAND }; struct rxReq { }; struct iEnv { RpWorld* world; RpWorld* collision; RpWorld* fx; RpWorld* camera; xJSPHeader* jsp; RpLight* light[2]; RwFrame* light_frame[2]; int32 memlvl; }; struct zFragSound { zFragSoundAsset* fasset; xVec3 location; uint32 soundID; }; struct _tagLightningRot { float32 deg[16]; float32 degrees; float32 height; }; struct xBaseAsset { uint32 id; uint8 baseType; uint8 linkCount; uint16 baseFlags; }; struct xEntAsset : xBaseAsset { uint8 flags; uint8 subtype; uint8 pflags; uint8 moreFlags; uint8 pad; uint32 surfaceID; xVec3 ang; xVec3 pos; xVec3 scale; float32 redMult; float32 greenMult; float32 blueMult; float32 seeThru; float32 seeThruSpeed; uint32 modelInfoID; uint32 animListID; }; enum RxClusterValidityReq { rxCLREQ_DONTWANT, rxCLREQ_REQUIRED, rxCLREQ_OPTIONAL, rxCLUSTERVALIDITYREQFORCEENUMSIZEINT = 0x7fffffff }; enum RpWorldRenderOrder { rpWORLDRENDERNARENDERORDER, rpWORLDRENDERFRONT2BACK, rpWORLDRENDERBACK2FRONT, rpWORLDRENDERORDERFORCEENUMSIZEINT = 0x7fffffff }; struct xMovePointAsset : xBaseAsset { xVec3 pos; uint16 wt; uint8 on; uint8 bezIndex; uint8 flg_props; uint8 pad; uint16 numPoints; float32 delay; float32 zoneRadius; float32 arenaRadius; }; struct xLightKit { uint32 tagID; uint32 groupID; uint32 lightCount; xLightKitLight* lightList; }; struct xJSPNodeInfo { int32 originalMatIndex; int32 nodeFlags; }; struct xSerial { uint32 idtag; int32 baseoff; st_SERIAL_CLIENTINFO* ctxtdata; int32 warned; int32 curele; int32 bitidx; int32 bittally; }; struct zEnt : xEnt { xAnimTable* atbl; }; struct xParabola { xVec3 initPos; xVec3 initVel; float32 gravity; float32 minTime; float32 maxTime; }; struct xCurveAsset { }; struct RpMaterial { RwTexture* texture; RwRGBA color; RxPipeline* pipeline; RwSurfaceProperties surfaceProps; int16 refCount; int16 pad; }; enum _tagRumbleType { eRumble_Off, eRumble_Hi, eRumble_VeryLightHi, eRumble_VeryLight, eRumble_LightHi, eRumble_Light, eRumble_MediumHi, eRumble_Medium, eRumble_HeavyHi, eRumble_Heavy, eRumble_VeryHeavyHi, eRumble_VeryHeavy, eRumble_Total, eRumbleForceU32 = 0x7fffffff }; enum _zPlayerType { ePlayer_SB, ePlayer_Patrick, ePlayer_Sandy, ePlayer_MAXTYPES }; struct xUpdateCullGroup { uint32 active; uint16 startIndex; uint16 endIndex; xGroup* groupObject; }; struct xBound { xQCData qcd; uint8 type; uint8 pad[3]; union { xSphere sph; xBBox box; xCylinder cyl; }; xMat4x3* mat; }; struct xSurface : xBase { uint32 idx; uint32 type; union { uint32 mat_idx; xEnt* ent; void* obj; }; float32 friction; uint8 state; uint8 pad[3]; void* moprops; }; struct xVec2 { float32 x; float32 y; }; enum zFragLocType { eFragLocBone, eFragLocBoneUpdated, eFragLocBoneLocal, eFragLocBoneLocalUpdated, eFragLocTag, eFragLocTagUpdated, eFragLocCount, eFragLocForceSize = 0x7fffffff }; struct xEntSplineData { int32 unknown; }; struct zFragShockwaveAsset : zFragAsset { uint32 modelInfoID; float32 birthRadius; float32 deathRadius; float32 birthVelocity; float32 deathVelocity; float32 birthSpin; float32 deathSpin; float32 birthColor[4]; float32 deathColor[4]; }; struct xPEEntBound { uint8 flags; uint8 type; uint8 pad1; uint8 pad2; float32 expand; float32 deflection; }; struct xAnimMultiFile : xAnimMultiFileBase { xAnimMultiFileEntry Files[1]; }; struct RwTexture { RwRaster* raster; RwTexDictionary* dict; RwLLLink lInDictionary; int8 name[32]; int8 mask[32]; uint32 filterAddressing; int32 refCount; }; enum RxNodeDefEditable { rxNODEDEFCONST, rxNODEDEFEDITABLE, rxNODEDEFEDITABLEFORCEENUMSIZEINT = 0x7fffffff }; struct _tagEmitLine { xVec3 pos1; xVec3 pos2; float32 radius; }; struct RpSector { int32 type; }; struct xModelBucket { RpAtomic* Data; RpAtomic* OriginalData; xModelInstance* List; int32 ClipFlags; uint32 PipeFlags; }; enum RxClusterValid { rxCLVALID_NOCHANGE, rxCLVALID_VALID, rxCLVALID_INVALID, rxCLUSTERVALIDFORCEENUMSIZEINT = 0x7fffffff }; struct xCoef3 { xCoef x; xCoef y; xCoef z; }; struct analog_data { xVec2 offset; xVec2 dir; float32 mag; float32 ang; }; struct xBBox { xVec3 center; xBox box; }; struct xRot { xVec3 axis; float32 angle; }; struct _class_2 { xVec3 endPoint[2]; xVec3 direction; float32 length; float32 scale; float32 width; float32 endParam[2]; float32 endVel[2]; float32 paramSpan[2]; float32 arc_height; xVec3 arc_normal; }; struct xEntMotionPenData { uint8 flags; uint8 plane; uint8 pad[2]; float32 len; float32 range; float32 period; float32 phase; }; struct RpWorldSector { int32 type; RpPolygon* polygons; RwV3d* vertices; RpVertexNormal* normals; RwTexCoords* texCoords[8]; RwRGBA* preLitLum; RwResEntry* repEntry; RwLinkList collAtomicsInWorldSector; RwLinkList noCollAtomicsInWorldSector; RwLinkList lightsInWorldSector; RwBBox boundingBox; RwBBox tightBoundingBox; RpMeshHeader* mesh; RxPipeline* pipeline; uint16 matListWindowBase; uint16 numVertices; uint16 numPolygons; uint16 pad; }; struct xParEmitterCustomSettings : xParEmitterPropsAsset { uint32 custom_flags; uint32 attachToID; xVec3 pos; xVec3 vel; float32 vel_angle_variation; uint8 rot[3]; uint8 padding; float32 radius; float32 emit_interval_current; void* emit_volume; }; struct RpMorphTarget { RpGeometry* parentGeom; RwSphere boundingSphere; RwV3d* verts; RwV3d* normals; }; struct xEntDrive { uint32 flags; float32 otm; float32 otmr; float32 os; float32 tm; float32 tmr; float32 s; xEnt* odriver; xEnt* driver; xEnt* driven; xVec3 op; xVec3 p; xVec3 q; float32 yaw; xVec3 dloc; tri_data_0 tri; }; struct zFragShockwave { zFragShockwaveAsset* fasset; float32 currSize; float32 currVelocity; float32 deltVelocity; float32 currSpin; float32 deltSpin; float32 currColor[4]; float32 deltColor[4]; }; struct zFragParticleAsset : zFragAsset { zFragLocation source; zFragLocation vel; xParEmitterCustomSettings emit; uint32 parEmitterID; zParEmitter* parEmitter; }; struct xJSPHeader { int8 idtag[4]; uint32 version; uint32 jspNodeCount; RpClump* clump; xClumpCollBSPTree* colltree; xJSPNodeInfo* jspNodeList; }; enum rxEmbeddedPacketState { rxPKST_PACKETLESS, rxPKST_UNUSED, rxPKST_INUSE, rxPKST_PENDING, rxEMBEDDEDPACKETSTATEFORCEENUMSIZEINT = 0x7fffffff }; struct xSphere { xVec3 center; float32 r; }; struct _tagLightningZeus { float32 normal_offset; float32 back_offset; float32 side_offset; }; struct RpLight { RwObjectHasFrame object; float32 radius; RwRGBAReal color; float32 minusCosAngle; RwLinkList WorldSectorsInLight; RwLLLink inWorld; uint16 lightFrame; uint16 pad; }; struct zLasso { uint32 flags; float32 secsTotal; float32 secsLeft; float32 stRadius; float32 tgRadius; float32 crRadius; xVec3 stCenter; xVec3 tgCenter; xVec3 crCenter; xVec3 stNormal; xVec3 tgNormal; xVec3 crNormal; xVec3 honda; float32 stSlack; float32 stSlackDist; float32 tgSlack; float32 tgSlackDist; float32 crSlack; float32 currDist; float32 lastDist; xVec3 lastRefs[5]; uint8 reindex[5]; xVec3 anchor; xModelTag tag; xModelInstance* model; }; struct zCheckPoint { xVec3 pos; float32 rot; uint32 initCamID; }; struct xEntMPData { float32 curdist; float32 speed; xMovePoint* dest; xMovePoint* src; xSpline3* spl; float32 dist; uint32 padalign; xQuat aquat; xQuat bquat; }; enum RwCameraProjection { rwNACAMERAPROJECTION, rwPERSPECTIVE, rwPARALLEL, rwCAMERAPROJECTIONFORCEENUMSIZEINT = 0x7fffffff }; enum RxClusterForcePresent { rxCLALLOWABSENT, rxCLFORCEPRESENT, rxCLUSTERFORCEPRESENTFORCEENUMSIZEINT = 0x7fffffff }; struct zPlayerGlobals { zEnt ent; xEntShadow entShadow_embedded; xShadowSimpleCache simpShadow_embedded; zGlobalSettings g; zPlayerSettings* s; zPlayerSettings sb; zPlayerSettings patrick; zPlayerSettings sandy; xModelInstance* model_spongebob; xModelInstance* model_patrick; xModelInstance* model_sandy; uint32 Visible; uint32 Health; int32 Speed; float32 SpeedMult; int32 Sneak; int32 Teeter; float32 SlipFadeTimer; int32 Slide; float32 SlideTimer; int32 Stepping; int32 JumpState; int32 LastJumpState; float32 JumpTimer; float32 LookAroundTimer; uint32 LookAroundRand; uint32 LastProjectile; float32 DecelRun; float32 DecelRunSpeed; float32 HotsauceTimer; float32 LeanLerp; float32 ScareTimer; xBase* ScareSource; float32 CowerTimer; float32 DamageTimer; float32 SundaeTimer; float32 ControlOffTimer; float32 HelmetTimer; uint32 WorldDisguise; uint32 Bounced; float32 FallDeathTimer; float32 HeadbuttVel; float32 HeadbuttTimer; uint32 SpecialReceived; xEnt* MountChimney; float32 MountChimOldY; uint32 MaxHealth; uint32 DoMeleeCheck; float32 VictoryTimer; float32 BadGuyNearTimer; float32 ForceSlipperyTimer; float32 ForceSlipperyFriction; float32 ShockRadius; float32 ShockRadiusOld; float32 Face_ScareTimer; uint32 Face_ScareRandom; uint32 Face_Event; float32 Face_EventTimer; float32 Face_PantTimer; uint32 Face_AnimSpecific; uint32 IdleRand; float32 IdleMinorTimer; float32 IdleMajorTimer; float32 IdleSitTimer; int32 Transparent; zEnt* FireTarget; uint32 ControlOff; uint32 ControlOnEvent; uint32 AutoMoveSpeed; float32 AutoMoveDist; xVec3 AutoMoveTarget; xBase* AutoMoveObject; zEnt* Diggable; float32 DigTimer; zPlayerCarryInfo carry; zPlayerLassoInfo lassoInfo; xModelTag BubbleWandTag[2]; xModelInstance* model_wand; xEntBoulder* bubblebowl; float32 bbowlInitVel; zEntHangable* HangFound; zEntHangable* HangEnt; zEntHangable* HangEntLast; xVec3 HangPivot; xVec3 HangVel; float32 HangLength; xVec3 HangStartPos; float32 HangStartLerp; xModelTag HangPawTag[4]; float32 HangPawOffset; float32 HangElapsed; float32 Jump_CurrGravity; float32 Jump_HoldTimer; float32 Jump_ChangeTimer; int32 Jump_CanDouble; int32 Jump_CanFloat; int32 Jump_SpringboardStart; zPlatform* Jump_Springboard; int32 CanJump; int32 CanBubbleSpin; int32 CanBubbleBounce; int32 CanBubbleBash; int32 IsJumping; int32 IsDJumping; int32 IsBubbleSpinning; int32 IsBubbleBouncing; int32 IsBubbleBashing; int32 IsBubbleBowling; int32 WasDJumping; int32 IsCoptering; _zPlayerWallJumpState WallJumpState; int32 cheat_mode; uint32 Inv_Shiny; uint32 Inv_Spatula; uint32 Inv_PatsSock[15]; uint32 Inv_PatsSock_Max[15]; uint32 Inv_PatsSock_CurrentLevel; uint32 Inv_LevelPickups[15]; uint32 Inv_LevelPickups_CurrentLevel; uint32 Inv_PatsSock_Total; xModelTag BubbleTag; xEntDrive drv; xSurface* floor_surf; xVec3 floor_norm; int32 slope; xCollis earc_coll; xSphere head_sph; xModelTag center_tag; xModelTag head_tag; uint32 TongueFlags[2]; xVec3 RootUp; xVec3 RootUpTarget; zCheckPoint cp; uint32 SlideTrackSliding; uint32 SlideTrackCount; xEnt* SlideTrackEnt[111]; uint32 SlideNotGroundedSinceSlide; xVec3 SlideTrackDir; xVec3 SlideTrackVel; float32 SlideTrackDecay; float32 SlideTrackLean; float32 SlideTrackLand; uint8 sb_model_indices[14]; xModelInstance* sb_models[14]; uint32 currentPlayer; xVec3 PredictRotate; xVec3 PredictTranslate; float32 PredictAngV; xVec3 PredictCurrDir; float32 PredictCurrVel; float32 KnockBackTimer; float32 KnockIntoAirTimer; }; struct zEntDestructObjAsset { float32 animSpeed; uint32 initAnimState; uint32 health; uint32 spawnItemID; uint32 dflags; uint8 collType; uint8 fxType; uint8 pad[2]; float32 blast_radius; float32 blast_strength; uint32 shrapnelID_destroy; uint32 shrapnelID_hit; uint32 sfx_destroy; uint32 sfx_hit; uint32 hitModel; uint32 destroyModel; }; struct xCylinder { xVec3 center; float32 r; float32 h; }; struct xUpdateCullMgr { uint32 entCount; uint32 entActive; void** ent; xUpdateCullEnt** mgr; uint32 mgrCount; uint32 mgrCurr; xUpdateCullEnt* mgrList; uint32 grpCount; xUpdateCullGroup* grpList; void(*activateCB)(void*); void(*deactivateCB)(void*); }; struct xMovePoint : xBase { xMovePointAsset* asset; xVec3* pos; xMovePoint** nodes; xMovePoint* prev; uint32 node_wt_sum; uint8 on; uint8 pad[2]; float32 delay; xSpline3* spl; }; struct _zEnv : xBase { xEnvAsset* easset; }; struct xCamera : xBase { RwCamera* lo_cam; xMat4x3 mat; xMat4x3 omat; xMat3x3 mbasis; xBound bound; xMat4x3* tgt_mat; xMat4x3* tgt_omat; xBound* tgt_bound; xVec3 focus; xScene* sc; xVec3 tran_accum; float32 fov; uint32 flags; float32 tmr; float32 tm_acc; float32 tm_dec; float32 ltmr; float32 ltm_acc; float32 ltm_dec; float32 dmin; float32 dmax; float32 dcur; float32 dgoal; float32 hmin; float32 hmax; float32 hcur; float32 hgoal; float32 pmin; float32 pmax; float32 pcur; float32 pgoal; float32 depv; float32 hepv; float32 pepv; float32 orn_epv; float32 yaw_epv; float32 pitch_epv; float32 roll_epv; xQuat orn_cur; xQuat orn_goal; xQuat orn_diff; float32 yaw_cur; float32 yaw_goal; float32 pitch_cur; float32 pitch_goal; float32 roll_cur; float32 roll_goal; float32 dct; float32 dcd; float32 dccv; float32 dcsv; float32 hct; float32 hcd; float32 hccv; float32 hcsv; float32 pct; float32 pcd; float32 pccv; float32 pcsv; float32 orn_ct; float32 orn_cd; float32 orn_ccv; float32 orn_csv; float32 yaw_ct; float32 yaw_cd; float32 yaw_ccv; float32 yaw_csv; float32 pitch_ct; float32 pitch_cd; float32 pitch_ccv; float32 pitch_csv; float32 roll_ct; float32 roll_cd; float32 roll_ccv; float32 roll_csv; xVec4 frustplane[12]; }; struct xBox { xVec3 upper; xVec3 lower; }; struct _tagEmitVolume { uint32 emit_volumeID; }; struct zPlayerCarryInfo { xEnt* grabbed; uint32 grabbedModelID; xMat4x3 spin; xEnt* throwTarget; xEnt* flyingToTarget; float32 minDist; float32 maxDist; float32 minHeight; float32 maxHeight; float32 maxCosAngle; float32 throwMinDist; float32 throwMaxDist; float32 throwMinHeight; float32 throwMaxHeight; float32 throwMaxStack; float32 throwMaxCosAngle; float32 throwTargetRotRate; float32 targetRot; uint32 grabTarget; xVec3 grabOffset; float32 grabLerpMin; float32 grabLerpMax; float32 grabLerpLast; uint32 grabYclear; float32 throwGravity; float32 throwHeight; float32 throwDistance; float32 fruitFloorDecayMin; float32 fruitFloorDecayMax; float32 fruitFloorBounce; float32 fruitFloorFriction; float32 fruitCeilingBounce; float32 fruitWallBounce; float32 fruitLifetime; xEnt* patLauncher; }; struct RxClusterDefinition { int8* name; uint32 defaultStride; uint32 defaultAttributes; int8* attributeSet; }; struct xGridBound { void* data; uint16 gx; uint16 gz; uint8 ingrid; uint8 oversize; uint8 deleted; uint8 gpad; xGridBound** head; xGridBound* next; }; struct xClumpCollBSPTree { uint32 numBranchNodes; xClumpCollBSPBranchNode* branchNodes; uint32 numTriangles; xClumpCollBSPTriangle* triangles; }; struct zFragBone { int32 index; xVec3 offset; }; struct zPlayerSettings { _zPlayerType pcType; float32 MoveSpeed[6]; float32 AnimSneak[3]; float32 AnimWalk[3]; float32 AnimRun[3]; float32 JumpGravity; float32 GravSmooth; float32 FloatSpeed; float32 ButtsmashSpeed; zJumpParam Jump; zJumpParam Bounce; zJumpParam Spring; zJumpParam Wall; zJumpParam Double; zJumpParam SlideDouble; zJumpParam SlideJump; float32 WallJumpVelocity; zLedgeGrabParams ledge; float32 spin_damp_xz; float32 spin_damp_y; uint8 talk_anims; uint8 talk_filter_size; uint8 talk_filter[4]; }; struct xEntMotionERData { xVec3 ret_pos; xVec3 ext_dpos; float32 ext_tm; float32 ext_wait_tm; float32 ret_tm; float32 ret_wait_tm; }; struct RwCamera { RwObjectHasFrame object; RwCameraProjection projectionType; RwCamera*(*beginUpdate)(RwCamera*); RwCamera*(*endUpdate)(RwCamera*); RwMatrixTag viewMatrix; RwRaster* frameBuffer; RwRaster* zBuffer; RwV2d viewWindow; RwV2d recipViewWindow; RwV2d viewOffset; float32 nearPlane; float32 farPlane; float32 fogPlane; float32 zScale; float32 zShift; RwFrustumPlane frustumPlanes[6]; RwBBox frustumBoundBox; RwV3d frustumCorners[8]; }; struct RwSphere { RwV3d center; float32 radius; }; struct xShadowSimplePoly { xVec3 vert[3]; xVec3 norm; }; struct RwLLLink { RwLLLink* next; RwLLLink* prev; }; struct RwTexDictionary { RwObject object; RwLinkList texturesInDict; RwLLLink lInInstance; }; struct xAnimMultiFileEntry { uint32 ID; xAnimFile* File; }; struct xAnimActiveEffect { xAnimEffect* Effect; uint32 Handle; }; struct RxOutputSpec { int8* name; RxClusterValid* outputClusters; RxClusterValid allOtherClusters; }; struct zFragAsset { zFragType type; uint32 id; uint32 parentID[2]; float32 lifetime; float32 delay; }; struct _tagEmitOffsetPoint { xVec3 offset; }; struct xMat3x3 { xVec3 right; int32 flags; xVec3 up; uint32 pad1; xVec3 at; uint32 pad2; }; struct zFragGroup { zFrag* list[21]; }; struct iFogParams { RwFogType type; float32 start; float32 stop; float32 density; RwRGBA fogcolor; RwRGBA bgcolor; uint8* table; }; struct zFragLocInfo { union { zFragBone bone; xModelTag tag; }; }; struct tri_data_0 : tri_data_1 { xVec3 loc; float32 yaw; xCollis* coll; }; struct _class_3 { xVec3* verts; }; struct tri_data_1 { uint32 index; float32 r; float32 d; }; struct RxClusterRef { RxClusterDefinition* clusterDef; RxClusterForcePresent forcePresent; uint32 reserved; }; struct xParEmitter : xBase { xParEmitterAsset* tasset; xParGroup* group; xParEmitterPropsAsset* prop; uint8 rate_mode; float32 rate; float32 rate_time; float32 rate_fraction; float32 rate_fraction_cull; uint8 emit_flags; uint8 emit_pad[3]; uint8 rot[3]; xModelTag tag; float32 oocull_distance_sqr; float32 distance_to_cull_sqr; void* attachTo; xParSys* parSys; void* emit_volume; xVec3 last_attach_loc; }; struct zFragInfo { union { zFragGroup group; zFragParticle particle; zFragProjectile projectile; zFragLightning lightning; zFragSound sound; zFragShockwave shockwave; }; }; struct xLightKitLight { uint32 type; RwRGBAReal color; float32 matrix[16]; float32 radius; float32 angle; RpLight* platLight; }; struct RwObject { uint8 type; uint8 subType; uint8 flags; uint8 privateFlags; void* parent; }; struct xParEmitterAsset : xBaseAsset { uint8 emit_flags; uint8 emit_type; uint16 pad; uint32 propID; union { xPECircle e_circle; _tagEmitSphere e_sphere; _tagEmitRect e_rect; _tagEmitLine e_line; _tagEmitVolume e_volume; _tagEmitOffsetPoint e_offsetp; xPEVCyl e_vcyl; xPEEntBone e_entbone; xPEEntBound e_entbound; }; uint32 attachToID; xVec3 pos; xVec3 vel; float32 vel_angle_variation; uint32 cull_mode; float32 cull_dist_sqr; }; struct xShadowSimpleCache { uint16 flags; uint8 alpha; uint8 pad; uint32 collPriority; xVec3 pos; xVec3 at; xEnt* castOnEnt; xShadowSimplePoly poly; float32 envHeight; float32 shadowHeight; uint32 raster; float32 dydx; float32 dydz; xVec3 corner[4]; }; struct RxIoSpec { uint32 numClustersOfInterest; RxClusterRef* clustersOfInterest; RxClusterValidityReq* inputRequirements; uint32 numOutputs; RxOutputSpec* outputs; }; struct xCollis { uint32 flags; uint32 oid; void* optr; xModelInstance* mptr; float32 dist; xVec3 norm; xVec3 tohit; xVec3 depen; xVec3 hdng; union { _class_4 tuv; tri_data_1 tri; }; }; struct xEntCollis { uint8 chk; uint8 pen; uint8 env_sidx; uint8 env_eidx; uint8 npc_sidx; uint8 npc_eidx; uint8 dyn_sidx; uint8 dyn_eidx; uint8 stat_sidx; uint8 stat_eidx; uint8 idx; xCollis colls[18]; void(*post)(xEnt*, xScene*, float32, xEntCollis*); uint32(*depenq)(xEnt*, xEnt*, xScene*, float32, xCollis*); }; struct xParGroup { }; struct zFragProjectileAsset : zFragAsset { uint32 modelInfoID; RpAtomic* modelFile; zFragLocation launch; zFragLocation vel; float32 bounce; int32 maxBounces; uint32 flags; uint32 childID; zShrapnelAsset* child; float32 minScale; float32 maxScale; uint32 scaleCurveID; xCurveAsset* scaleCurve; float32 gravity; }; struct RpInterpolator { int32 flags; int16 startMorphTarget; int16 endMorphTarget; float32 time; float32 recipTime; float32 position; }; struct xEntMotionOrbitData { xVec3 center; float32 w; float32 h; float32 period; }; struct xEnv { iEnv* geom; iEnv ienv; xLightKit* lightKit; }; struct xAnimMultiFileBase { uint32 Count; }; struct xParEmitterPropsAsset : xBaseAsset { uint32 parSysID; union { xParInterp rate; xParInterp value[1]; }; xParInterp life; xParInterp size_birth; xParInterp size_death; xParInterp color_birth[4]; xParInterp color_death[4]; xParInterp vel_scale; xParInterp vel_angle; xVec3 vel; uint32 emit_limit; float32 emit_limit_reset_time; }; struct RxNodeMethods { int32(*nodeBody)(RxPipelineNode*, RxPipelineNodeParam*); int32(*nodeInit)(RxNodeDefinition*); void(*nodeTerm)(RxNodeDefinition*); int32(*pipelineNodeInit)(RxPipelineNode*); void(*pipelineNodeTerm)(RxPipelineNode*); int32(*pipelineNodeConfig)(RxPipelineNode*, RxPipeline*); uint32(*configMsgHandler)(RxPipelineNode*, uint32, uint32, void*); }; struct xPEVCyl { float32 height; float32 radius; float32 deflection; }; struct RwFrame { RwObject object; RwLLLink inDirtyListLink; RwMatrixTag modelling; RwMatrixTag ltm; RwLinkList objectList; RwFrame* child; RwFrame* next; RwFrame* root; }; struct zFragParticle { zFragParticleAsset* fasset; }; struct zFragLocation { zFragLocType type; zFragLocInfo info; }; struct xSFXAsset : xBaseAsset { uint16 flagsSFX; uint16 freq; float32 freqm; uint32 soundAssetID; uint32 attachID; uint8 loopCount; uint8 priority; uint8 volume; uint8 pad; xVec3 pos; float32 innerRadius; float32 outerRadius; }; enum _tagPadState { ePad_Disabled, ePad_DisabledError, ePad_Enabled, ePad_Missing, ePad_Total }; struct RwFrustumPlane { RwPlane plane; uint8 closestX; uint8 closestY; uint8 closestZ; uint8 pad; }; struct FloatAndVoid { union { float32 f; void* v; }; }; struct _class_4 { float32 t; float32 u; float32 v; }; struct xParInterp { float32 val[2]; uint32 interp; float32 freq; float32 oofreq; }; struct RwPlane { RwV3d normal; float32 distance; }; struct xGlobals { xCamera camera; _tagxPad* pad0; _tagxPad* pad1; _tagxPad* pad2; _tagxPad* pad3; int32 profile; int8 profFunc[128][6]; xUpdateCullMgr* updateMgr; int32 sceneFirst; int8 sceneStart[32]; RpWorld* currWorld; iFogParams fog; iFogParams fogA; iFogParams fogB; long32 fog_t0; long32 fog_t1; int32 option_vibration; uint32 QuarterSpeed; float32 update_dt; int32 useHIPHOP; uint8 NoMusic; int8 currentActivePad; uint8 firstStartPressed; uint32 minVSyncCnt; uint8 dontShowPadMessageDuringLoadingOrCutScene; uint8 autoSaveFeature; }; struct RpMaterialList { RpMaterial** materials; int32 numMaterials; int32 space; }; struct RxCluster { uint16 flags; uint16 stride; void* data; void* currentData; uint32 numAlloced; uint32 numUsed; RxPipelineCluster* clusterRef; uint32 attributes; }; struct xFFX { }; struct xEntMechData { xVec3 apos; xVec3 bpos; xVec3 dir; float32 arot; float32 brot; float32 ss; float32 sr; int32 state; float32 tsfd; float32 trfd; float32 tsbd; float32 trbd; float32* rotptr; }; struct xEntMotionSplineData { int32 unknown; }; struct xPEEntBone { uint8 flags; uint8 type; uint8 bone; uint8 pad1; xVec3 offset; float32 radius; float32 deflection; }; struct RxPacket { uint16 flags; uint16 numClusters; RxPipeline* pipeline; uint32* inputToClusterSlot; uint32* slotsContinue; RxPipelineCluster** slotClusterRefs; RxCluster clusters[1]; }; struct zFragProjectile { zFragProjectileAsset* fasset; xModelInstance* model; xParabola path; float32 angVel; float32 t; float32 tColl; int32 numBounces; float32 scale; float32 parentScale; float32 alpha; xVec3 N; xVec3 axis; }; enum zFragType { eFragInactive, eFragGroup, eFragShrapnel, eFragParticle, eFragProjectile, eFragLightning, eFragSound, eFragShockwave, eFragCount, eFragForceSize = 0x7fffffff }; enum RwFogType { rwFOGTYPENAFOGTYPE, rwFOGTYPELINEAR, rwFOGTYPEEXPONENTIAL, rwFOGTYPEEXPONENTIAL2, rwFOGTYPEFORCEENUMSIZEINT = 0x7fffffff }; struct _tagPadAnalog { int8 x; int8 y; }; struct iColor_tag { uint8 r; uint8 g; uint8 b; uint8 a; }; struct RwRGBAReal { float32 red; float32 green; float32 blue; float32 alpha; }; struct _tagiPad { int32 port; }; struct RwLinkList { RwLLLink link; }; int8 buffer[16]; int8 buffer[16]; zParEmitter* sEmitDust; zParEmitter* sEmitXplo; zParEmitter* sEmitWeb; zParEmitter* sEmitFire; zParEmitter* sEmitSmoke; zShrapnelAsset* sShrapDefault; uint32(*xUpdateCull_DistanceSquaredCB)(void*, void*); uint32(*xUpdateCull_AlwaysTrueCB)(void*, void*); zGlobals globals; int32(*zEntDestructObjEventCB)(xBase*, xBase*, uint32, float32*, xBase*); void(*zEntDestructObj_Update)(zEntDestructObj*, xScene*, float32); void(*zEntDestructObj_Move)(zEntDestructObj*, xScene*, float32, xEntFrame*); int32 zEntDestructObjEventCB(xBase* to, uint32 toEvent, float32* toParam, xBase* toParamWidget); void zEntDestructObj_DestroyFX(zEntDestructObj* o); uint32 zEntDestructObj_isDestroyed(zEntDestructObj* ent); void zEntDestructObj_Reset(zEntDestructObj* ent); void zEntDestructObj_Setup(zEntDestructObj* ent); void zEntDestructObj_Load(zEntDestructObj* ent, xSerial* s); void zEntDestructObj_Save(zEntDestructObj* ent, xSerial* s); uint32 zEntDestructObj_GetHit(zEntDestructObj* ent, uint32 mask); void zEntDestructObj_Hit(zEntDestructObj* ent, uint32 mask); void zEntDestructObj_Update(zEntDestructObj* ent, xScene* sc, float32 dt); void zEntDestructObj_Move(); void zEntDestructObj_Init(zEntDestructObj* ent, xEntAsset* asset); void zEntDestructObj_Init(void* ent, void* asset); void zEntDestructObj_FindFX(); void SwapModel(zEntDestructObj* s, xModelInstance* model); // zEntDestructObjEventCB__FP5xBaseP5xBaseUiPCfP5xBase // Start address: 0x135e00 int32 zEntDestructObjEventCB(xBase* to, uint32 toEvent, float32* toParam, xBase* toParamWidget) { zEntDestructObj* s; FloatAndVoid dist; zShrapnelAsset* shrap; // Line 920, Address: 0x135e00, Func Offset: 0 // Line 929, Address: 0x135e04, Func Offset: 0x4 // Line 920, Address: 0x135e08, Func Offset: 0x8 // Line 929, Address: 0x135e18, Func Offset: 0x18 // Line 932, Address: 0x135f2c, Func Offset: 0x12c // Line 933, Address: 0x135f30, Func Offset: 0x130 // Line 934, Address: 0x135f38, Func Offset: 0x138 // Line 935, Address: 0x135f68, Func Offset: 0x168 // Line 936, Address: 0x135f78, Func Offset: 0x178 // Line 939, Address: 0x135f80, Func Offset: 0x180 // Line 940, Address: 0x135f88, Func Offset: 0x188 // Line 941, Address: 0x135fb8, Func Offset: 0x1b8 // Line 942, Address: 0x135fc8, Func Offset: 0x1c8 // Line 944, Address: 0x135fd0, Func Offset: 0x1d0 // Line 945, Address: 0x135fd4, Func Offset: 0x1d4 // Line 944, Address: 0x135fd8, Func Offset: 0x1d8 // Line 945, Address: 0x135fe0, Func Offset: 0x1e0 // Line 946, Address: 0x135ff4, Func Offset: 0x1f4 // Line 947, Address: 0x135ffc, Func Offset: 0x1fc // Line 948, Address: 0x136000, Func Offset: 0x200 // Line 949, Address: 0x136008, Func Offset: 0x208 // Line 951, Address: 0x136010, Func Offset: 0x210 // Line 953, Address: 0x136014, Func Offset: 0x214 // Line 951, Address: 0x136018, Func Offset: 0x218 // Line 952, Address: 0x136020, Func Offset: 0x220 // Line 953, Address: 0x13602c, Func Offset: 0x22c // Line 954, Address: 0x136040, Func Offset: 0x240 // Line 955, Address: 0x136070, Func Offset: 0x270 // Line 956, Address: 0x136080, Func Offset: 0x280 // Line 958, Address: 0x136088, Func Offset: 0x288 // Line 959, Address: 0x136094, Func Offset: 0x294 // Line 960, Address: 0x13609c, Func Offset: 0x29c // Line 961, Address: 0x1360cc, Func Offset: 0x2cc // Line 962, Address: 0x1360dc, Func Offset: 0x2dc // Line 964, Address: 0x1360e4, Func Offset: 0x2e4 // Line 965, Address: 0x1360e8, Func Offset: 0x2e8 // Line 966, Address: 0x1360f0, Func Offset: 0x2f0 // Line 968, Address: 0x1360f8, Func Offset: 0x2f8 // Line 969, Address: 0x136100, Func Offset: 0x300 // Line 981, Address: 0x13610c, Func Offset: 0x30c // Line 983, Address: 0x136114, Func Offset: 0x314 // Line 984, Address: 0x13611c, Func Offset: 0x31c // Line 987, Address: 0x136128, Func Offset: 0x328 // Line 988, Address: 0x136134, Func Offset: 0x334 // Line 990, Address: 0x136140, Func Offset: 0x340 // Line 991, Address: 0x136148, Func Offset: 0x348 // Line 996, Address: 0x136154, Func Offset: 0x354 // Line 997, Address: 0x136168, Func Offset: 0x368 // Line 1002, Address: 0x13617c, Func Offset: 0x37c // Line 1003, Address: 0x136184, Func Offset: 0x384 // Line 1005, Address: 0x136194, Func Offset: 0x394 // Line 1007, Address: 0x13619c, Func Offset: 0x39c // Line 1011, Address: 0x1361a8, Func Offset: 0x3a8 // Line 1014, Address: 0x1361b0, Func Offset: 0x3b0 // Line 1015, Address: 0x1361c0, Func Offset: 0x3c0 // Line 1025, Address: 0x1361c8, Func Offset: 0x3c8 // Line 1026, Address: 0x1361d8, Func Offset: 0x3d8 // Line 1030, Address: 0x1361e0, Func Offset: 0x3e0 // Line 1167, Address: 0x1361ec, Func Offset: 0x3ec // Line 1171, Address: 0x1361f4, Func Offset: 0x3f4 // Line 1172, Address: 0x13620c, Func Offset: 0x40c // Line 1176, Address: 0x136218, Func Offset: 0x418 // Line 1181, Address: 0x136224, Func Offset: 0x424 // Line 1183, Address: 0x136230, Func Offset: 0x430 // Line 1186, Address: 0x136240, Func Offset: 0x440 // Line 1187, Address: 0x13624c, Func Offset: 0x44c // Line 1188, Address: 0x136260, Func Offset: 0x460 // Line 1189, Address: 0x13626c, Func Offset: 0x46c // Line 1192, Address: 0x136278, Func Offset: 0x478 // Line 1191, Address: 0x13627c, Func Offset: 0x47c // Line 1192, Address: 0x136284, Func Offset: 0x484 // Line 1195, Address: 0x136290, Func Offset: 0x490 // Line 1201, Address: 0x136298, Func Offset: 0x498 // Line 1202, Address: 0x1362b4, Func Offset: 0x4b4 // Line 1203, Address: 0x1362bc, Func Offset: 0x4bc // Line 1204, Address: 0x1362c0, Func Offset: 0x4c0 // Line 1205, Address: 0x1362dc, Func Offset: 0x4dc // Line 1206, Address: 0x1362e4, Func Offset: 0x4e4 // Line 1207, Address: 0x1362e8, Func Offset: 0x4e8 // Line 1208, Address: 0x136304, Func Offset: 0x504 // Line 1209, Address: 0x13630c, Func Offset: 0x50c // Line 1211, Address: 0x136310, Func Offset: 0x510 // Line 1212, Address: 0x13632c, Func Offset: 0x52c // Line 1217, Address: 0x136334, Func Offset: 0x534 // Line 1220, Address: 0x136338, Func Offset: 0x538 // Line 1221, Address: 0x13634c, Func Offset: 0x54c // Line 1234, Address: 0x136360, Func Offset: 0x560 // Line 1233, Address: 0x136368, Func Offset: 0x568 // Line 1234, Address: 0x13636c, Func Offset: 0x56c // Func End, Address: 0x136378, Func Offset: 0x578 } // zEntDestructObj_DestroyFX__FP15zEntDestructObj // Start address: 0x136380 void zEntDestructObj_DestroyFX(zEntDestructObj* o) { _tagSDRumbleType rt; // Line 759, Address: 0x136380, Func Offset: 0 // Line 763, Address: 0x136390, Func Offset: 0x10 // Line 764, Address: 0x136398, Func Offset: 0x18 // Line 774, Address: 0x1363f0, Func Offset: 0x70 // Line 788, Address: 0x1363fc, Func Offset: 0x7c // Line 825, Address: 0x136434, Func Offset: 0xb4 // Line 828, Address: 0x136438, Func Offset: 0xb8 // Line 832, Address: 0x136440, Func Offset: 0xc0 // Line 833, Address: 0x136444, Func Offset: 0xc4 // Line 834, Address: 0x136448, Func Offset: 0xc8 // Line 838, Address: 0x136450, Func Offset: 0xd0 // Line 839, Address: 0x136454, Func Offset: 0xd4 // Line 840, Address: 0x136458, Func Offset: 0xd8 // Line 844, Address: 0x136460, Func Offset: 0xe0 // Line 845, Address: 0x136464, Func Offset: 0xe4 // Line 844, Address: 0x136468, Func Offset: 0xe8 // Line 855, Address: 0x13646c, Func Offset: 0xec // Line 859, Address: 0x136470, Func Offset: 0xf0 // Line 862, Address: 0x13647c, Func Offset: 0xfc // Line 864, Address: 0x136480, Func Offset: 0x100 // Line 862, Address: 0x136488, Func Offset: 0x108 // Line 864, Address: 0x1364bc, Func Offset: 0x13c // Line 865, Address: 0x1364d8, Func Offset: 0x158 // Line 867, Address: 0x1364e0, Func Offset: 0x160 // Func End, Address: 0x1364f0, Func Offset: 0x170 } // zEntDestructObj_isDestroyed__FP15zEntDestructObj // Start address: 0x1364f0 uint32 zEntDestructObj_isDestroyed(zEntDestructObj* ent) { // Line 714, Address: 0x1364f0, Func Offset: 0 // Line 717, Address: 0x1364f8, Func Offset: 0x8 // Func End, Address: 0x136500, Func Offset: 0x10 } // zEntDestructObj_Reset__FP15zEntDestructObjP6xScene // Start address: 0x136500 void zEntDestructObj_Reset(zEntDestructObj* ent) { // Line 656, Address: 0x136500, Func Offset: 0 // Line 658, Address: 0x13650c, Func Offset: 0xc // Line 661, Address: 0x136514, Func Offset: 0x14 // Line 662, Address: 0x136538, Func Offset: 0x38 // Line 664, Address: 0x136540, Func Offset: 0x40 // Line 665, Address: 0x13654c, Func Offset: 0x4c // Line 671, Address: 0x136558, Func Offset: 0x58 // Line 672, Address: 0x13656c, Func Offset: 0x6c // Line 674, Address: 0x136580, Func Offset: 0x80 // Line 675, Address: 0x136588, Func Offset: 0x88 // Line 679, Address: 0x1365a0, Func Offset: 0xa0 // Line 697, Address: 0x1365a4, Func Offset: 0xa4 // Line 679, Address: 0x1365a8, Func Offset: 0xa8 // Line 682, Address: 0x1365b0, Func Offset: 0xb0 // Line 683, Address: 0x1365b4, Func Offset: 0xb4 // Line 694, Address: 0x1365b8, Func Offset: 0xb8 // Line 697, Address: 0x1365bc, Func Offset: 0xbc // Line 699, Address: 0x1365c0, Func Offset: 0xc0 // Line 701, Address: 0x1365cc, Func Offset: 0xcc // Line 702, Address: 0x1365d0, Func Offset: 0xd0 // Line 703, Address: 0x1365d4, Func Offset: 0xd4 // Func End, Address: 0x1365e4, Func Offset: 0xe4 } // zEntDestructObj_Setup__FP15zEntDestructObj // Start address: 0x1365f0 void zEntDestructObj_Setup(zEntDestructObj* ent) { // Line 652, Address: 0x1365f0, Func Offset: 0 // Func End, Address: 0x1365f8, Func Offset: 0x8 } // zEntDestructObj_Load__FP15zEntDestructObjP7xSerial // Start address: 0x136600 void zEntDestructObj_Load(zEntDestructObj* ent, xSerial* s) { // Line 640, Address: 0x136600, Func Offset: 0 // Line 641, Address: 0x136614, Func Offset: 0x14 // Line 646, Address: 0x13661c, Func Offset: 0x1c // Line 647, Address: 0x136628, Func Offset: 0x28 // Func End, Address: 0x13663c, Func Offset: 0x3c } // zEntDestructObj_Save__FP15zEntDestructObjP7xSerial // Start address: 0x136640 void zEntDestructObj_Save(zEntDestructObj* ent, xSerial* s) { // Line 620, Address: 0x136640, Func Offset: 0 // Line 621, Address: 0x136654, Func Offset: 0x14 // Line 626, Address: 0x13665c, Func Offset: 0x1c // Line 627, Address: 0x136668, Func Offset: 0x28 // Func End, Address: 0x13667c, Func Offset: 0x3c } // zEntDestructObj_GetHit__FP15zEntDestructObjUi // Start address: 0x136680 uint32 zEntDestructObj_GetHit(zEntDestructObj* ent, uint32 mask) { // Line 603, Address: 0x136680, Func Offset: 0 // Line 606, Address: 0x13668c, Func Offset: 0xc // Func End, Address: 0x136694, Func Offset: 0x14 } // zEntDestructObj_Hit__FP15zEntDestructObjUi // Start address: 0x1366a0 void zEntDestructObj_Hit(zEntDestructObj* ent, uint32 mask) { // Line 569, Address: 0x1366a0, Func Offset: 0 // Line 570, Address: 0x1366ac, Func Offset: 0xc // Line 573, Address: 0x1366c0, Func Offset: 0x20 // Line 575, Address: 0x1366cc, Func Offset: 0x2c // Line 578, Address: 0x1366e8, Func Offset: 0x48 // Line 581, Address: 0x136708, Func Offset: 0x68 // Line 587, Address: 0x136728, Func Offset: 0x88 // Line 588, Address: 0x136734, Func Offset: 0x94 // Line 589, Address: 0x136738, Func Offset: 0x98 // Func End, Address: 0x136748, Func Offset: 0xa8 } // zEntDestructObj_Update__FP15zEntDestructObjP6xScenef // Start address: 0x136750 void zEntDestructObj_Update(zEntDestructObj* ent, xScene* sc, float32 dt) { xParEmitterCustomSettings info; // Line 456, Address: 0x136750, Func Offset: 0 // Line 458, Address: 0x136764, Func Offset: 0x14 // Line 461, Address: 0x13676c, Func Offset: 0x1c // Line 462, Address: 0x13677c, Func Offset: 0x2c // Line 543, Address: 0x136780, Func Offset: 0x30 // Line 548, Address: 0x1367a4, Func Offset: 0x54 // Line 550, Address: 0x1367a8, Func Offset: 0x58 // Line 545, Address: 0x1367ac, Func Offset: 0x5c // Line 548, Address: 0x1367b0, Func Offset: 0x60 // Line 549, Address: 0x1367b4, Func Offset: 0x64 // Line 550, Address: 0x1367cc, Func Offset: 0x7c // Line 554, Address: 0x1367d8, Func Offset: 0x88 // Line 555, Address: 0x1367f0, Func Offset: 0xa0 // Line 556, Address: 0x1367f4, Func Offset: 0xa4 // Line 557, Address: 0x136800, Func Offset: 0xb0 // Line 560, Address: 0x136810, Func Offset: 0xc0 // Func End, Address: 0x136824, Func Offset: 0xd4 } // zEntDestructObj_Move__FP15zEntDestructObjP6xScenefP9xEntFrame // Start address: 0x136830 void zEntDestructObj_Move() { // Line 306, Address: 0x136830, Func Offset: 0 // Func End, Address: 0x136838, Func Offset: 0x8 } // zEntDestructObj_Init__FP15zEntDestructObjP9xEntAsset // Start address: 0x136840 void zEntDestructObj_Init(zEntDestructObj* ent, xEntAsset* asset) { zEntDestructObjAsset* dasset; RpAtomic* imodel; RpAtomic* imodel; // Line 126, Address: 0x136840, Func Offset: 0 // Line 128, Address: 0x136844, Func Offset: 0x4 // Line 126, Address: 0x136848, Func Offset: 0x8 // Line 128, Address: 0x13684c, Func Offset: 0xc // Line 126, Address: 0x136850, Func Offset: 0x10 // Line 128, Address: 0x136860, Func Offset: 0x20 // Line 138, Address: 0x136868, Func Offset: 0x28 // Line 141, Address: 0x13686c, Func Offset: 0x2c // Line 142, Address: 0x136870, Func Offset: 0x30 // Line 145, Address: 0x13687c, Func Offset: 0x3c // Line 146, Address: 0x136884, Func Offset: 0x44 // Line 148, Address: 0x13688c, Func Offset: 0x4c // Line 149, Address: 0x136898, Func Offset: 0x58 // Line 150, Address: 0x13689c, Func Offset: 0x5c // Line 152, Address: 0x1368a0, Func Offset: 0x60 // Line 153, Address: 0x1368ac, Func Offset: 0x6c // Line 155, Address: 0x1368c4, Func Offset: 0x84 // Line 153, Address: 0x1368c8, Func Offset: 0x88 // Line 160, Address: 0x1368cc, Func Offset: 0x8c // Line 161, Address: 0x1368d4, Func Offset: 0x94 // Line 163, Address: 0x1368dc, Func Offset: 0x9c // Line 164, Address: 0x1368e8, Func Offset: 0xa8 // Line 165, Address: 0x1368ec, Func Offset: 0xac // Line 167, Address: 0x1368f0, Func Offset: 0xb0 // Line 168, Address: 0x1368fc, Func Offset: 0xbc // Line 170, Address: 0x136914, Func Offset: 0xd4 // Line 168, Address: 0x136918, Func Offset: 0xd8 // Line 176, Address: 0x13691c, Func Offset: 0xdc // Line 178, Address: 0x136924, Func Offset: 0xe4 // Line 179, Address: 0x13692c, Func Offset: 0xec // Line 180, Address: 0x136938, Func Offset: 0xf8 // Line 181, Address: 0x13693c, Func Offset: 0xfc // Line 180, Address: 0x136940, Func Offset: 0x100 // Line 187, Address: 0x136944, Func Offset: 0x104 // Line 189, Address: 0x13694c, Func Offset: 0x10c // Line 190, Address: 0x136954, Func Offset: 0x114 // Line 191, Address: 0x136960, Func Offset: 0x120 // Line 192, Address: 0x136964, Func Offset: 0x124 // Line 200, Address: 0x136968, Func Offset: 0x128 // Line 201, Address: 0x136974, Func Offset: 0x134 // Line 204, Address: 0x136978, Func Offset: 0x138 // Line 205, Address: 0x13698c, Func Offset: 0x14c // Line 207, Address: 0x1369a0, Func Offset: 0x160 // Line 211, Address: 0x1369a8, Func Offset: 0x168 // Line 215, Address: 0x1369ac, Func Offset: 0x16c // Line 216, Address: 0x1369b0, Func Offset: 0x170 // Line 217, Address: 0x1369b4, Func Offset: 0x174 // Line 215, Address: 0x1369b8, Func Offset: 0x178 // Line 216, Address: 0x1369bc, Func Offset: 0x17c // Line 217, Address: 0x1369c0, Func Offset: 0x180 // Line 211, Address: 0x1369c4, Func Offset: 0x184 // Line 215, Address: 0x1369cc, Func Offset: 0x18c // Line 216, Address: 0x1369d0, Func Offset: 0x190 // Line 217, Address: 0x1369d4, Func Offset: 0x194 // Line 219, Address: 0x1369d8, Func Offset: 0x198 // Line 223, Address: 0x1369e4, Func Offset: 0x1a4 // Line 226, Address: 0x1369f8, Func Offset: 0x1b8 // Line 228, Address: 0x136a00, Func Offset: 0x1c0 // Line 236, Address: 0x136a08, Func Offset: 0x1c8 // Line 228, Address: 0x136a0c, Func Offset: 0x1cc // Line 231, Address: 0x136a10, Func Offset: 0x1d0 // Line 236, Address: 0x136a18, Func Offset: 0x1d8 // Line 237, Address: 0x136a20, Func Offset: 0x1e0 // Line 240, Address: 0x136a3c, Func Offset: 0x1fc // Line 241, Address: 0x136a54, Func Offset: 0x214 // Line 244, Address: 0x136a70, Func Offset: 0x230 // Line 245, Address: 0x136a78, Func Offset: 0x238 // Line 247, Address: 0x136ab0, Func Offset: 0x270 // Line 249, Address: 0x136ab4, Func Offset: 0x274 // Line 260, Address: 0x136ab8, Func Offset: 0x278 // Line 261, Address: 0x136acc, Func Offset: 0x28c // Line 266, Address: 0x136ad0, Func Offset: 0x290 // Line 270, Address: 0x136ad8, Func Offset: 0x298 // Line 271, Address: 0x136ae0, Func Offset: 0x2a0 // Line 272, Address: 0x136ae8, Func Offset: 0x2a8 // Line 273, Address: 0x136af0, Func Offset: 0x2b0 // Line 274, Address: 0x136af8, Func Offset: 0x2b8 // Line 275, Address: 0x136b04, Func Offset: 0x2c4 // Line 276, Address: 0x136b94, Func Offset: 0x354 // Line 278, Address: 0x136ba4, Func Offset: 0x364 // Line 280, Address: 0x136ba8, Func Offset: 0x368 // Line 281, Address: 0x136bb0, Func Offset: 0x370 // Line 282, Address: 0x136bb8, Func Offset: 0x378 // Line 283, Address: 0x136bc0, Func Offset: 0x380 // Line 284, Address: 0x136bc8, Func Offset: 0x388 // Line 285, Address: 0x136bd4, Func Offset: 0x394 // Line 286, Address: 0x136c64, Func Offset: 0x424 // Line 288, Address: 0x136c74, Func Offset: 0x434 // Line 292, Address: 0x136c78, Func Offset: 0x438 // Line 294, Address: 0x136c80, Func Offset: 0x440 // Line 295, Address: 0x136c84, Func Offset: 0x444 // Line 302, Address: 0x136c88, Func Offset: 0x448 // Func End, Address: 0x136ca0, Func Offset: 0x460 } // zEntDestructObj_Init__FPvPv // Start address: 0x136ca0 void zEntDestructObj_Init(void* ent, void* asset) { // Line 122, Address: 0x136ca0, Func Offset: 0 // Func End, Address: 0x136ca8, Func Offset: 0x8 } // zEntDestructObj_FindFX__Fv // Start address: 0x136cb0 void zEntDestructObj_FindFX() { // Line 110, Address: 0x136cb0, Func Offset: 0 // Line 111, Address: 0x136cb4, Func Offset: 0x4 // Line 110, Address: 0x136cb8, Func Offset: 0x8 // Line 111, Address: 0x136cbc, Func Offset: 0xc // Line 112, Address: 0x136cc4, Func Offset: 0x14 // Line 111, Address: 0x136cc8, Func Offset: 0x18 // Line 112, Address: 0x136ccc, Func Offset: 0x1c // Line 113, Address: 0x136cd4, Func Offset: 0x24 // Line 112, Address: 0x136cd8, Func Offset: 0x28 // Line 113, Address: 0x136cdc, Func Offset: 0x2c // Line 114, Address: 0x136ce4, Func Offset: 0x34 // Line 113, Address: 0x136ce8, Func Offset: 0x38 // Line 114, Address: 0x136cec, Func Offset: 0x3c // Line 115, Address: 0x136cf4, Func Offset: 0x44 // Line 114, Address: 0x136cf8, Func Offset: 0x48 // Line 115, Address: 0x136cfc, Func Offset: 0x4c // Line 116, Address: 0x136d04, Func Offset: 0x54 // Line 115, Address: 0x136d08, Func Offset: 0x58 // Line 116, Address: 0x136d0c, Func Offset: 0x5c // Line 118, Address: 0x136d24, Func Offset: 0x74 // Func End, Address: 0x136d30, Func Offset: 0x80 } // SwapModel__29@unnamed@zEntDestructObj_cpp@FP15zEntDestructObjP14xModelInstance // Start address: 0x136d30 void SwapModel(zEntDestructObj* s, xModelInstance* model) { // Line 62, Address: 0x136d30, Func Offset: 0 // Line 63, Address: 0x136d48, Func Offset: 0x18 // Line 66, Address: 0x136d54, Func Offset: 0x24 // Line 67, Address: 0x136d64, Func Offset: 0x34 // Line 68, Address: 0x136d6c, Func Offset: 0x3c // Line 70, Address: 0x136d74, Func Offset: 0x44 // Line 71, Address: 0x136d88, Func Offset: 0x58 // Line 72, Address: 0x136d90, Func Offset: 0x60 // Line 73, Address: 0x136d94, Func Offset: 0x64 // Line 76, Address: 0x136d98, Func Offset: 0x68 // Line 81, Address: 0x136da0, Func Offset: 0x70 // Line 76, Address: 0x136da8, Func Offset: 0x78 // Line 78, Address: 0x136e2c, Func Offset: 0xfc // Line 79, Address: 0x136e38, Func Offset: 0x108 // Line 81, Address: 0x136e54, Func Offset: 0x124 // Line 84, Address: 0x136e5c, Func Offset: 0x12c // Line 86, Address: 0x136e68, Func Offset: 0x138 // Line 87, Address: 0x136e70, Func Offset: 0x140 // Line 97, Address: 0x136ec8, Func Offset: 0x198 // Func End, Address: 0x136edc, Func Offset: 0x1ac }
20.725625
96
0.764398
[ "mesh", "geometry", "render", "object", "model" ]
36141d571870d3443806038a8b4f5dc1481e2bdd
3,230
hh
C++
src/bindee.hh
LLNL/bindee
3df620803ef5b198a32732341e52971342493863
[ "MIT" ]
5
2020-02-19T08:10:46.000Z
2021-02-03T01:28:34.000Z
src/bindee.hh
LLNL/bindee
3df620803ef5b198a32732341e52971342493863
[ "MIT" ]
null
null
null
src/bindee.hh
LLNL/bindee
3df620803ef5b198a32732341e52971342493863
[ "MIT" ]
null
null
null
/* * Copyright (c) 2020, Lawrence Livermore National Security, LLC and other * bindee developers. See the top-level LICENSE file for details. * * SPDX-License-Identifier: MIT */ #ifndef BINDEE_HH #define BINDEE_HH #include <string> #include <vector> #include <unordered_map> #include "param.hh" namespace Bindee { struct Info; extern const std::string BINDEE; extern const std::string TARGET; std::string usingClass(const std::string &type, const Info &info); struct Bindee { Bindee(std::string qualName, std::string qualCls); virtual ~Bindee() {} virtual std::string bind(const Info &info) const = 0; const std::string qualName; const std::string qualCls; const std::string name; }; struct RecordBindee : public Bindee { RecordBindee(std::string qualName, std::string qualCls, std::vector<std::string> templateParams, std::vector<std::string> qualBases, std::vector<std::string>::size_type numBases); virtual std::string bind(const Info &info) const override; const std::vector<std::string> templateParams; const std::vector<std::string> qualBases; const std::vector<std::string>::size_type numBases; }; struct FunctionBindee : public Bindee { FunctionBindee(std::string qualName, std::string qualCls, int numTemplateParams, std::string ret, std::vector<Param> params, bool isConst, bool isStatic); static const std::unordered_map<std::string, std::string> validOps; static const std::string OPERATOR; static void registerMethod(const FunctionBindee& bindee); static void resetRegistry(); virtual std::string bind(const Info &info) const override; std::string cast(const Info &info, bool _const=false) const; std::string signature() const; bool isConstructor() const; bool isOperator() const; bool isGetter() const; bool isSetter() const; const int numTemplateParams; const std::string ret; const std::vector<Param> params; const bool isConst; const bool isStatic; private: static std::unordered_map<std::string, int> _consts; std::string _bindConstructor(const Info &info) const; }; struct VariableBindee : public Bindee { VariableBindee(std::string qualName, std::string qualCls, bool isConst, bool isStatic); virtual std::string bind(const Info &info) const override; std::string bindGlobal() const; const bool isConst; const bool isStatic; }; struct EnumBindee : public Bindee { EnumBindee(std::string qualName, std::string qualCls, std::vector<std::string> templateParams, std::vector<std::string> values, bool isScoped); virtual std::string bind(const Info &info) const override; const std::vector<std::string> templateParams; const std::vector<std::string> values; const bool isScoped; void setIndentLength(int i) { _indentLength = i; } private: int _indentLength; }; } // namespace Bindee #endif // BINDEE_HH
27.142857
74
0.64644
[ "vector" ]
361ea142add26f7ca8056c5f2c56a6c53d11df76
3,285
cpp
C++
ext/zindosteg/jpeg.cpp
zindorsky/zindosteg-ruby
95ea88b9b7b9d5b872a390f729ad4c6a07e77123
[ "MIT" ]
1
2022-01-25T17:58:47.000Z
2022-01-25T17:58:47.000Z
ext/zindosteg/jpeg.cpp
zindorsky/zindosteg-ruby
95ea88b9b7b9d5b872a390f729ad4c6a07e77123
[ "MIT" ]
null
null
null
ext/zindosteg/jpeg.cpp
zindorsky/zindosteg-ruby
95ea88b9b7b9d5b872a390f729ad4c6a07e77123
[ "MIT" ]
null
null
null
#include "jpeg.h" #include "steg_endian.h" #include "file_utils.h" #include <stdexcept> namespace zindorsky { namespace steganography { jpeg_provider::jpeg_provider( filesystem::path const& filename ) : jpeg_provider( utils::load_from_file(filename) ) { } jpeg_provider::jpeg_provider(byte_vector const& data) : jpeg_provider(data.data(), data.size()) { } jpeg_provider::jpeg_provider(byte const* data, size_t size) : jpeg_provider( byte_vector(data, data+size) ) { } jpeg_provider::jpeg_provider(byte_vector && data) : jinfo_(std::move(data)) , component_count_(0) , sz_(0) { component_count_ = static_cast<std::size_t>( jinfo_.object()->num_components ); wib_.resize(component_count_); hib_.resize(component_count_); comp_sz_.resize(component_count_); for(std::size_t i=0; i<component_count_; ++i) { wib_[i] = static_cast<std::size_t>( jinfo_.object()->comp_info[i].width_in_blocks ); hib_[i] = static_cast<std::size_t>( jinfo_.object()->comp_info[i].height_in_blocks ); comp_sz_[i] = wib_[i]*hib_[i]*DCTSIZE2; sz_ += comp_sz_[i]; } } provider_t::index_t jpeg_provider::size() const { return sz_; } #if LITTLE_ENDIAN # define INT16_LSB 0 #else # define INT16_LSB 1 #endif byte & jpeg_provider::access_indexed_data( provider_t::index_t index ) { std::size_t comp, row, col, block; index_to_coordinates(index,comp,row,col,block); JBLOCKARRAY rowblock = (*jinfo_.object()->mem->access_virt_barray)( (j_common_ptr)jinfo_.object(), jinfo_.coefficients()[comp], (JDIMENSION)row, 1, TRUE); return reinterpret_cast<byte*>( &rowblock[0][col][block] )[ INT16_LSB ]; } byte const& jpeg_provider::access_indexed_data( provider_t::index_t index ) const { std::size_t comp, row, col, block; index_to_coordinates(index,comp,row,col,block); JBLOCKARRAY rowblock = (*jinfo_.object()->mem->access_virt_barray)( (j_common_ptr)jinfo_.object(), jinfo_.coefficients()[comp], (JDIMENSION)row, 1, FALSE); return reinterpret_cast<byte const*>( &rowblock[0][col][block] )[ INT16_LSB ]; } byte_vector jpeg_provider::commit_to_memory() { return jinfo_.save_to_memory(); } void jpeg_provider::commit_to_file(filesystem::path const& file) { jinfo_.save_to_file(file); } byte_vector jpeg_provider::salt() const { byte salt[8] = {0}; std::size_t salt_index=0; for(std::size_t i=0; i<component_count_; ++i) { for(std::size_t j=0; j<hib_[i]; ++j) { JBLOCKARRAY rowblock = (*jinfo_.object()->mem->access_virt_barray)( (j_common_ptr)jinfo_.object(), jinfo_.coefficients()[i], (JDIMENSION)j, 1, FALSE); salt[ salt_index++ % sizeof(salt) ] += static_cast<byte>( rowblock[0][j%wib_[i]][j%DCTSIZE2]>>1 ); } } return byte_vector(salt, salt+sizeof(salt)); } void jpeg_provider::index_to_coordinates(provider_t::index_t index, std::size_t & comp, std::size_t & row, std::size_t & col, std::size_t & block) const { if(index >= sz_) { throw std::out_of_range("index out of range"); } for(comp=0; comp<component_count_; ++comp) { if( index < comp_sz_[comp] ) { break; } index -= comp_sz_[comp]; } if(comp==component_count_) { throw std::logic_error("computed sizes incorrect"); } std::size_t rowsz = wib_[comp] * DCTSIZE2; row = index / rowsz; col = (index % rowsz) / DCTSIZE2; block = index % DCTSIZE2; } }} //namespace zindorsky::steganography
29.330357
156
0.716895
[ "object" ]
361f605049fc709c90edf2707da4986b2841b253
6,334
cpp
C++
subcomp/neuralnetwork/test/BackpropagationTest.cpp
lekic-ai/neneta
45febf7f0edfb03575e30b0f16aa8004470bc3fa
[ "MIT" ]
1
2020-12-22T10:07:18.000Z
2020-12-22T10:07:18.000Z
subcomp/neuralnetwork/test/BackpropagationTest.cpp
lekic-ai/neneta
45febf7f0edfb03575e30b0f16aa8004470bc3fa
[ "MIT" ]
null
null
null
subcomp/neuralnetwork/test/BackpropagationTest.cpp
lekic-ai/neneta
45febf7f0edfb03575e30b0f16aa8004470bc3fa
[ "MIT" ]
1
2020-12-22T10:07:23.000Z
2020-12-22T10:07:23.000Z
#include <gtest/gtest.h> #include <Utils.h> #include <OpenCLContext.h> #include <OpenCLProgram.h> #include <OpenCLExecutionPlan.h> using namespace neneta; using namespace neneta::net; extern conf::ConfigurationReader envReader; TEST(BackPropagationTest, basic_bp_test) { gpu::OpenCLContext oclContext(envReader); oclContext.printInfo(); gpu::OpenCLProgram oclProgram(envReader); std::vector<cmn::GPUFLOAT> reInput = {1, 2}; std::vector<cmn::GPUFLOAT> imInput = {3, 4}; //two neurons std::vector<cmn::GPUFLOAT> reWeights = {0, 0}; std::vector<cmn::GPUFLOAT> imWeights = {0, 0}; std::vector<cmn::GPUFLOAT> reActDer = {1, 2}; std::vector<cmn::GPUFLOAT> imActDer = {1, 1}; //right two neurons, 10+j9 and 10+j8 are the deltas const unsigned int numOfNeuronsLeft = 2; std::vector<cmn::GPUFLOAT> rightReWeights = {0, 1, 2, 3, 10, 10, 109, 108}; std::vector<cmn::GPUFLOAT> rightImWeights = {1, 2, 1, 2, 9, 8, 199, 198}; if(oclProgram.compile(oclContext)) { gpu::OpenCLExecutionPlan uut("test", envReader, oclProgram); gpu::BufferIO input; input.m_reShMem = cl::Buffer(oclContext.getContext(), CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, rightReWeights.size()*sizeof(cmn::GPUFLOAT), rightReWeights.data()); input.m_imShMem = cl::Buffer(oclContext.getContext(), CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, rightReWeights.size()*sizeof(cmn::GPUFLOAT), rightImWeights.data()); input.m_reShMemBkp = cl::Buffer(oclContext.getContext(), CL_MEM_READ_WRITE, rightReWeights.size()*sizeof(cmn::GPUFLOAT)); input.m_imShMemBkp = cl::Buffer(oclContext.getContext(), CL_MEM_READ_WRITE, rightReWeights.size()*sizeof(cmn::GPUFLOAT)); LayerWeights weightsToUpdate; weightsToUpdate.emplace_back(cl::Buffer(oclContext.getContext(), CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, reWeights.size()*sizeof(cmn::GPUFLOAT), reWeights.data()), cl::Buffer(oclContext.getContext(), CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, reWeights.size()*sizeof(cmn::GPUFLOAT), imWeights.data()), reWeights.size()); weightsToUpdate.emplace_back(cl::Buffer(oclContext.getContext(), CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, reWeights.size()*sizeof(cmn::GPUFLOAT), reWeights.data()), cl::Buffer(oclContext.getContext(), CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, reWeights.size()*sizeof(cmn::GPUFLOAT), imWeights.data()), reWeights.size()); LayerInput layerInput(cl::Buffer(oclContext.getContext(), CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, reInput.size()*sizeof(cmn::GPUFLOAT), reInput.data()), cl::Buffer(oclContext.getContext(), CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, reInput.size()*sizeof(cmn::GPUFLOAT), imInput.data()), reInput.size()); LayerDeltas LayerDeltas(cl::Buffer(oclContext.getContext(), CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, reActDer.size()*sizeof(cmn::GPUFLOAT), reActDer.data()), cl::Buffer(oclContext.getContext(), CL_MEM_READ_WRITE | CL_MEM_COPY_HOST_PTR, reActDer.size()*sizeof(cmn::GPUFLOAT), imActDer.data()), reActDer.size()); LayerBiases layerBiases(cl::Buffer(oclContext.getContext(), CL_MEM_READ_WRITE, numOfNeuronsLeft*sizeof(cmn::GPUFLOAT)), cl::Buffer(oclContext.getContext(), CL_MEM_READ_WRITE, numOfNeuronsLeft*sizeof(cmn::GPUFLOAT)), numOfNeuronsLeft); //net::updateWeights(uut, input, weightsToUpdate, LayerDeltas, layerBiases, layerInput, // weightsToUpdate.size(), oclContext.getDevice().getInfo<CL_DEVICE_MAX_WORK_GROUP_SIZE>()); uut.runBckPropagation(oclContext); uut.printBckProfilingInfo(); int j = 0; /* result should be * neuron 1 31578 + j18326 40544 + j31972 neuron 2 77494 + j87808 90930 + j138430 neuron 0 delta = -6823 + j-4483 neuron 1 delta = -13843 + j-9093 */ for(const auto& neuronWeights: weightsToUpdate) { std::cout << "neuron " << ++j << std::endl; cmn::GPUFLOAT* rePart = new cmn::GPUFLOAT[neuronWeights.m_size]; cmn::GPUFLOAT* imPart = new cmn::GPUFLOAT[neuronWeights.m_size]; uut.readFromBuffer(oclContext.getCommandQueue(), neuronWeights.m_re, sizeof(cmn::GPUFLOAT)*neuronWeights.m_size, rePart); uut.readFromBuffer(oclContext.getCommandQueue(), neuronWeights.m_im, sizeof(cmn::GPUFLOAT)*neuronWeights.m_size, imPart); for(unsigned int i = 0; i < neuronWeights.m_size; ++i) { std::cout << "\t" << rePart[i] << " + j" << imPart[i]<< std::endl; } delete [] rePart; delete [] imPart; } //print out deltas cmn::GPUFLOAT* rePart = new cmn::GPUFLOAT[numOfNeuronsLeft]; cmn::GPUFLOAT* imPart = new cmn::GPUFLOAT[numOfNeuronsLeft]; uut.readFromBuffer(oclContext.getCommandQueue(), LayerDeltas.m_re, sizeof(cmn::GPUFLOAT)*numOfNeuronsLeft, rePart); uut.readFromBuffer(oclContext.getCommandQueue(), LayerDeltas.m_im, sizeof(cmn::GPUFLOAT)*numOfNeuronsLeft, imPart); for(unsigned int i = 0; i < numOfNeuronsLeft; ++i) { std::cout << "neuron " << i << " delta = " << rePart[i] << " + j" << imPart[i] << std::endl; } delete [] rePart; delete [] imPart; //check reshm rePart = new cmn::GPUFLOAT[rightReWeights.size()]; imPart = new cmn::GPUFLOAT[rightReWeights.size()]; uut.readFromBuffer(oclContext.getCommandQueue(), input.m_reShMem, sizeof(cmn::GPUFLOAT)*rightReWeights.size(), rePart); uut.readFromBuffer(oclContext.getCommandQueue(), input.m_imShMem, sizeof(cmn::GPUFLOAT)*rightReWeights.size(), imPart); for(unsigned int i = 0; i < rightReWeights.size(); ++i) { std::cout << "weight " << i << std::endl; std::cout << "\t" << rePart[i] << " + j" << imPart[i]<< std::endl; } delete [] rePart; delete [] imPart; } }
49.874016
203
0.630565
[ "vector" ]
362c0a5fb03835ca5df81fbb91e50121316a5489
7,988
cpp
C++
src/prod/src/data/txnreplicator/statemanager/StateManager.RemovePerfTest.cpp
gridgentoo/ServiceFabricAzure
c3e7a07617e852322d73e6cc9819d266146866a4
[ "MIT" ]
2,542
2018-03-14T21:56:12.000Z
2019-05-06T01:18:20.000Z
src/prod/src/data/txnreplicator/statemanager/StateManager.RemovePerfTest.cpp
gridgentoo/ServiceFabricAzure
c3e7a07617e852322d73e6cc9819d266146866a4
[ "MIT" ]
994
2019-05-07T02:39:30.000Z
2022-03-31T13:23:04.000Z
src/prod/src/data/txnreplicator/statemanager/StateManager.RemovePerfTest.cpp
gridgentoo/ServiceFabricAzure
c3e7a07617e852322d73e6cc9819d266146866a4
[ "MIT" ]
300
2018-03-14T21:57:17.000Z
2019-05-06T20:07:00.000Z
// ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // ------------------------------------------------------------ #include "stdafx.h" #include <stdlib.h> #include <boost/test/unit_test.hpp> #include "Common/boost-taef.h" using namespace Common; using namespace ktl; using namespace TxnReplicator; using namespace Data::StateManager; using namespace Data::Utilities; namespace StateManagerTests { class StateManagerRemovePerfTest : public StateManagerTestBase { // load the config object as its needed for the tracing to work CommonConfig config; public: StateManagerRemovePerfTest() { } ~StateManagerRemovePerfTest() { } public: // Remove Performance Test Awaitable<void> Test_ConcurrentlyRemove_Performance_Test(__in ULONG concurrentTxn) noexcept; private: Awaitable<void> ConcurrentlyRemove_Test( __in ULONG concurrentTxn, __in ULONG opersPerTxn) noexcept; Awaitable<void> ConcurrentRemoveTask( __in AwaitableCompletionSource<bool> & signalCompletion, __in KSharedArray<KUri::CSPtr> const & nameArray) noexcept; private: const ULONG itemsCount = 1024; }; // // Goal: Remove State Providers Performance Test. The time interval for removing SPs will be printed out // Takes in the concurrentTxn, and run the test with different operations per txn // Algorithm: // 1. Bring up the primary replica // 2. Set the Operations Per Task and call the ConcurrentlyRemove_Test // 3. Clean up and shut down the replica // Awaitable<void> StateManagerRemovePerfTest::Test_ConcurrentlyRemove_Performance_Test(__in ULONG concurrentTxn) noexcept { // Setup: Bring up the primary replica co_await testTransactionalReplicatorSPtr_->OpenAsync(CancellationToken::None); co_await testTransactionalReplicatorSPtr_->ChangeRoleAsync(FABRIC_REPLICA_ROLE_PRIMARY, CancellationToken::None); for (ULONG operationsPerTxn = 1; operationsPerTxn <= 1024; operationsPerTxn = operationsPerTxn * 4) { co_await this->ConcurrentlyRemove_Test(concurrentTxn, operationsPerTxn); } // Clean up and shut down the replica co_await testTransactionalReplicatorSPtr_->ChangeRoleAsync(FABRIC_REPLICA_ROLE_NONE, CancellationToken::None); co_await testTransactionalReplicatorSPtr_->CloseAsync(CancellationToken::None); } // // Algorithm: // 1. Populate the state providers // 2. Verify all the state providers exist // 3. Dispatch the tasks and run all the tasks concurrently // 4. Verify all the state providers removed // Awaitable<void> StateManagerRemovePerfTest::ConcurrentlyRemove_Test( __in ULONG concurrentTxn, __in ULONG opersPerTxn) noexcept { if (concurrentTxn * opersPerTxn > itemsCount) { co_return; } NTSTATUS status = STATUS_UNSUCCESSFUL; Common::Stopwatch stopwatch; // Setup: Populate the state providers name list KArray<KUri::CSPtr> nameList(GetAllocator(), itemsCount); for (ULONG index = 0; index < itemsCount; index++) { status = nameList.Append(GetStateProviderName(NameType::Random)); CODING_ERROR_ASSERT(NT_SUCCESS(status)); } // Add all the state providers in nameList co_await PopulateAsync(nameList); // Verify all the state provider are added VerifyExist(nameList, true); for (ULONG round = 0; round < itemsCount / (concurrentTxn * opersPerTxn); round++) { KArray<Awaitable<void>> taskArray(GetAllocator()); AwaitableCompletionSource<bool>::SPtr signalCompletion = nullptr; status = AwaitableCompletionSource<bool>::Create(GetAllocator(), 0, signalCompletion); CODING_ERROR_ASSERT(NT_SUCCESS(status)); for (ULONG i = 0; i < concurrentTxn; i++) { KSharedArray<KUri::CSPtr>::SPtr nameArray = TestHelper::CreateStateProviderNameArray(GetAllocator()); for (ULONG j = 0; j < opersPerTxn; j++) { auto index = round * (concurrentTxn * opersPerTxn) + i * opersPerTxn + j; status = nameArray->Append(nameList[index]); CODING_ERROR_ASSERT(NT_SUCCESS(status)); } status = taskArray.Append(ConcurrentRemoveTask(*signalCompletion, *nameArray)); CODING_ERROR_ASSERT(NT_SUCCESS(status)); } stopwatch.Start(); // Test signalCompletion->SetResult(true); co_await TaskUtilities<void>::WhenAll(taskArray); stopwatch.Stop(); } Trace.WriteInfo( BoostTestTrace, "ConcurrentlyRemove_Test with {0} ConcurrentTxn and each Txn has {1} operations completed in {2} ms.", concurrentTxn, opersPerTxn, stopwatch.ElapsedMilliseconds); // Verification VerifyExist(nameList, false); } // Task used to concurrently remove state providers from state manager Awaitable<void> StateManagerRemovePerfTest::ConcurrentRemoveTask( __in AwaitableCompletionSource<bool> & signalCompletion, __in KSharedArray<KUri::CSPtr> const & nameArray) noexcept { AwaitableCompletionSource<bool>::SPtr tempCompletion(&signalCompletion); auto stateManagerSPtr = testTransactionalReplicatorSPtr_->StateManager; KSharedArray<KUri::CSPtr>::CSPtr nameArraySPtr = &nameArray; co_await tempCompletion->GetAwaitable(); { Transaction::SPtr txnSPtr = testTransactionalReplicatorSPtr_->CreateTransaction(); KFinally([&] { txnSPtr->Dispose(); }); for (KUri::CSPtr nameSPtr : *nameArraySPtr) { NTSTATUS status = co_await stateManagerSPtr->RemoveAsync( *txnSPtr, *nameSPtr); VERIFY_IS_TRUE(NT_SUCCESS(status)); } co_await txnSPtr->CommitAsync(); } } BOOST_FIXTURE_TEST_SUITE(StateManagerRemovePerfTestSuite, StateManagerRemovePerfTest) // // Scenario: Remove State Provider Performance Test, // Concurrently remove 131,072 SPs // Expected Result: The time interval for removing SPs will be printed out // BOOST_AUTO_TEST_CASE(Remove_Performance_Test_ConcurrentTxn_1) { const ULONG concurrentTxn = 1; SyncAwait(this->Test_ConcurrentlyRemove_Performance_Test(concurrentTxn)); } BOOST_AUTO_TEST_CASE(Remove_Performance_Test_ConcurrentTxn_4) { const ULONG concurrentTxn = 4; SyncAwait(this->Test_ConcurrentlyRemove_Performance_Test(concurrentTxn)); } BOOST_AUTO_TEST_CASE(Remove_Performance_Test_ConcurrentTxn_16) { const ULONG concurrentTxn = 16; SyncAwait(this->Test_ConcurrentlyRemove_Performance_Test(concurrentTxn)); } BOOST_AUTO_TEST_CASE(Remove_Performance_Test_ConcurrentTxn_64) { const ULONG concurrentTxn = 64; SyncAwait(this->Test_ConcurrentlyRemove_Performance_Test(concurrentTxn)); } BOOST_AUTO_TEST_CASE(Remove_Performance_Test_ConcurrentTxn_256) { const ULONG concurrentTxn = 256; SyncAwait(this->Test_ConcurrentlyRemove_Performance_Test(concurrentTxn)); } BOOST_AUTO_TEST_CASE(Remove_Performance_Test_ConcurrentTxn_1024) { const ULONG concurrentTxn = 1024; SyncAwait(this->Test_ConcurrentlyRemove_Performance_Test(concurrentTxn)); } BOOST_AUTO_TEST_SUITE_END() }
36.309091
123
0.65323
[ "object" ]
362d0f4199e6af283d8052d31e787bc255f7a12e
10,608
cpp
C++
src/client/clientMain.cpp
jingwei87/sgxdedup
e1e9bc2a3755fa79b6477d9a4c23928dc1d80af4
[ "MIT" ]
7
2021-05-14T06:08:30.000Z
2022-03-03T06:39:36.000Z
src/client/clientMain.cpp
tinoryj/SGXDedup
43609c012b281f0a0fe8daf1ee6e11e96f165a68
[ "MIT" ]
1
2021-11-23T08:58:30.000Z
2021-11-23T08:58:30.000Z
src/client/clientMain.cpp
jingwei87/sgxdedup
e1e9bc2a3755fa79b6477d9a4c23928dc1d80af4
[ "MIT" ]
1
2021-11-05T13:43:21.000Z
2021-11-05T13:43:21.000Z
#include "../enclave/include/powClient.hpp" #include "chunker.hpp" #include "configure.hpp" #include "encoder.hpp" #include "fingerprinter.hpp" #include "keyClient.hpp" #include "recvDecode.hpp" #include "retriever.hpp" #include "sender.hpp" #include "sys/time.h" #include <bits/stdc++.h> #include <boost/thread/thread.hpp> #include <signal.h> using namespace std; Configure config("config.json"); Chunker* chunkerObj; Fingerprinter* fingerprinterObj; KeyClient* keyClientObj; Encoder* encoderObj; powClient* powClientObj; Sender* senderObj; RecvDecode* recvDecodeObj; Retriever* retrieverObj; struct timeval timestart; struct timeval timeend; struct timeval timestartBreakDown; struct timeval timeendBreakDown; void PRINT_BYTE_ARRAY_CLIENT_MAIN( FILE* file, void* mem, uint32_t len) { if (!mem || !len) { fprintf(file, "\n( null )\n"); return; } uint8_t* array = (uint8_t*)mem; fprintf(file, "%u bytes:\n{\n", len); uint32_t i = 0; for (i = 0; i < len - 1; i++) { fprintf(file, "0x%x, ", array[i]); if (i % 8 == 7) fprintf(file, "\n"); } fprintf(file, "0x%x ", array[i]); fprintf(file, "\n}\n"); } void CTRLC(int s) { cerr << "Client exit with keyboard interrupt" << endl; if (chunkerObj != nullptr) { delete chunkerObj; } if (fingerprinterObj != nullptr) { delete fingerprinterObj; } if (keyClientObj != nullptr) { delete keyClientObj; } if (encoderObj != nullptr) { delete encoderObj; } if (powClientObj != nullptr) { delete powClientObj; } if (senderObj != nullptr) { delete senderObj; } if (recvDecodeObj != nullptr) { delete recvDecodeObj; } if (retrieverObj != nullptr) { delete retrieverObj; } exit(0); } void usage() { cout << "[client --setup ] for setup system only, following input for system operation" << endl; cout << "[client -s filename] for send file" << endl; cout << "[client -r filename] for receive file" << endl; cout << "[client -k ThreadNumber keyNumber] for multi-thread key generate simluate" << endl; } int main(int argv, char* argc[]) { struct sigaction sa; sa.sa_handler = SIG_IGN; sigaction(SIGPIPE, &sa, 0); sa.sa_handler = CTRLC; sigaction(SIGKILL, &sa, 0); sigaction(SIGINT, &sa, 0); long diff; double second; if (argv != 2 && argv != 3 && argv != 4 && argv != 5) { usage(); return 0; } if (strcmp("-r", argc[1]) == 0) { vector<boost::thread*> thList; boost::thread* th; boost::thread::attributes attrs; attrs.set_stack_size(200 * 1024 * 1024); gettimeofday(&timestart, NULL); string fileName(argc[2]); recvDecodeObj = new RecvDecode(fileName); retrieverObj = new Retriever(fileName, recvDecodeObj); gettimeofday(&timeend, NULL); diff = 1000000 * (timeend.tv_sec - timestart.tv_sec) + timeend.tv_usec - timestart.tv_usec; second = diff / 1000000.0; cout << "System : Init download time is " << second << " s" << endl; gettimeofday(&timestart, NULL); // start recv data & decrypt thread th = new boost::thread(attrs, boost::bind(&RecvDecode::run, recvDecodeObj)); thList.push_back(th); // start write file thread th = new boost::thread(attrs, boost::bind(&Retriever::run, retrieverObj)); thList.push_back(th); for (auto it : thList) { it->join(); } gettimeofday(&timeend, NULL); diff = 1000000 * (timeend.tv_sec - timestart.tv_sec) + timeend.tv_usec - timestart.tv_usec; second = diff / 1000000.0; delete recvDecodeObj; delete retrieverObj; cout << "System : total work time is " << second << " s" << endl; #if MULTI_CLIENT_UPLOAD_TEST == 1 cout << "System : start work time is " << timestart.tv_sec << " s, " << timestart.tv_usec << " us" << endl; cout << "System : finish work time is " << timeend.tv_sec << " s, " << timeend.tv_usec << " us" << endl; #endif cout << endl; return 0; } else if (strcmp("-k", argc[1]) == 0) { vector<boost::thread*> thList; boost::thread* th; boost::thread::attributes attrs; attrs.set_stack_size(10 * 1024 * 1024); gettimeofday(&timestart, NULL); int threadNumber = atoi(argc[2]); int keyGenNumber = atoi(argc[3]); int batchNumber = atoi(argc[4]); if (threadNumber == 0) { threadNumber = 1; } #if SYSTEM_BREAK_DOWN == 1 gettimeofday(&timestartBreakDown, NULL); #endif u_char sessionKey[KEY_SERVER_SESSION_KEY_SIZE]; senderObj = new Sender(); if (!senderObj->getKeyServerSK(sessionKey)) { cerr << "Client : get key server session key failed" << endl; delete senderObj; return 0; } else { delete senderObj; } #if SYSTEM_BREAK_DOWN == 1 gettimeofday(&timeendBreakDown, NULL); diff = 1000000 * (timeendBreakDown.tv_sec - timestartBreakDown.tv_sec) + timeendBreakDown.tv_usec - timestartBreakDown.tv_usec; second = diff / 1000000.0; cout << "System : download key exchange session key time is " << second << " s" << endl; #endif #if SYSTEM_DEBUG_FLAG == 1 cout << "System : recved key enclave session key = " << endl; PRINT_BYTE_ARRAY_CLIENT_MAIN(stderr, sessionKey, 32); #endif cout << "Key Generate Test : target thread number = " << threadNumber << ", target key number per thread = " << keyGenNumber << endl; keyClientObj = new KeyClient(sessionKey, threadNumber, keyGenNumber, batchNumber); gettimeofday(&timeend, NULL); diff = 1000000 * (timeend.tv_sec - timestart.tv_sec) + timeend.tv_usec - timestart.tv_usec; second = diff / 1000000.0; cout << "System : Init key generate simulator time is " << second << " s" << endl; gettimeofday(&timestart, NULL); for (int i = 0; i < threadNumber; i++) { th = new boost::thread(attrs, boost::bind(&KeyClient::runKeyGenSimulator, keyClientObj, i)); thList.push_back(th); } for (auto it : thList) { it->join(); } gettimeofday(&timeend, NULL); diff = 1000000 * (timeend.tv_sec - timestart.tv_sec) + timeend.tv_usec - timestart.tv_usec; second = diff / 1000000.0; keyClientObj->outputKeyGenSimulatorRunningTime(); delete keyClientObj; cout << "System : total work time is " << second << " s" << endl; #if MULTI_CLIENT_UPLOAD_TEST == 1 cout << "System : start work time is " << timestart.tv_sec << " s, " << timestart.tv_usec << " us" << endl; cout << "System : finish work time is " << timeend.tv_sec << " s, " << timeend.tv_usec << " us" << endl; #endif cout << endl; return 0; } else if (strcmp("-s", argc[1]) == 0) { vector<boost::thread*> thList; boost::thread* th; boost::thread::attributes attrs; attrs.set_stack_size(200 * 1024 * 1024); gettimeofday(&timestart, NULL); senderObj = new Sender(); powClientObj = new powClient(senderObj); #if SYSTEM_BREAK_DOWN == 1 gettimeofday(&timestartBreakDown, NULL); #endif u_char sessionKey[KEY_SERVER_SESSION_KEY_SIZE]; #if KEY_GEN_METHOD_TYPE == KEY_GEN_SGX_CFB || KEY_GEN_METHOD_TYPE == KEY_GEN_SGX_CTR if (!senderObj->getKeyServerSK(sessionKey)) { cerr << "Client : get key server session key failed" << endl; delete senderObj; delete powClientObj; return 0; } #endif #if SYSTEM_BREAK_DOWN == 1 gettimeofday(&timeendBreakDown, NULL); diff = 1000000 * (timeendBreakDown.tv_sec - timestartBreakDown.tv_sec) + timeendBreakDown.tv_usec - timestartBreakDown.tv_usec; second = diff / 1000000.0; cout << "System : download key exchange session key time is " << second << " s" << endl; #endif #if SYSTEM_DEBUG_FLAG == 1 cout << "System : recved key enclave session key = " << endl; PRINT_BYTE_ARRAY_CLIENT_MAIN(stderr, sessionKey, 32); #endif keyClientObj = new KeyClient(powClientObj, sessionKey); fingerprinterObj = new Fingerprinter(keyClientObj); string inputFile(argc[2]); chunkerObj = new Chunker(inputFile, fingerprinterObj); gettimeofday(&timeend, NULL); diff = 1000000 * (timeend.tv_sec - timestart.tv_sec) + timeend.tv_usec - timestart.tv_usec; second = diff / 1000000.0; cout << "System : Init upload time is " << second << " s" << endl; #if MULTI_CLIENT_UPLOAD_TEST == 1 cerr << "System : input sync number for multi client test" << endl; int inputNumberUsedForSyncInMultiClientTest = 0; cin >> inputNumberUsedForSyncInMultiClientTest; #endif gettimeofday(&timestart, NULL); //start chunking thread th = new boost::thread(attrs, boost::bind(&Chunker::chunking, chunkerObj)); thList.push_back(th); //start fingerprinting thread th = new boost::thread(attrs, boost::bind(&Fingerprinter::run, fingerprinterObj)); thList.push_back(th); //start key client thread th = new boost::thread(attrs, boost::bind(&KeyClient::run, keyClientObj)); thList.push_back(th); //start pow thread th = new boost::thread(attrs, boost::bind(&powClient::run, powClientObj)); thList.push_back(th); //start sender thread th = new boost::thread(attrs, boost::bind(&Sender::run, senderObj)); thList.push_back(th); for (auto it : thList) { it->join(); } gettimeofday(&timeend, NULL); diff = 1000000 * (timeend.tv_sec - timestart.tv_sec) + timeend.tv_usec - timestart.tv_usec; second = diff / 1000000.0; delete senderObj; delete powClientObj; delete keyClientObj; delete fingerprinterObj; delete chunkerObj; cout << "System : upload total work time is " << second << " s" << endl; #if MULTI_CLIENT_UPLOAD_TEST == 1 cout << "System : start work time is " << timestart.tv_sec << " s, " << timestart.tv_usec << " us" << endl; cout << "System : finish work time is " << timeend.tv_sec << " s, " << timeend.tv_usec << " us" << endl; #endif cout << endl; return 0; } else { usage(); return 0; } }
34.780328
141
0.604638
[ "vector" ]
15734e050de70cf579c62455ebfc643170eb3df8
2,958
cpp
C++
src/Src/utilidades.cpp
chestacio/PPP-greedy-tabusearch
e120f4c696cd7a58c0e6ab1200bf0dc74c306ead
[ "MIT" ]
null
null
null
src/Src/utilidades.cpp
chestacio/PPP-greedy-tabusearch
e120f4c696cd7a58c0e6ab1200bf0dc74c306ead
[ "MIT" ]
null
null
null
src/Src/utilidades.cpp
chestacio/PPP-greedy-tabusearch
e120f4c696cd7a58c0e6ab1200bf0dc74c306ead
[ "MIT" ]
1
2020-02-04T19:10:48.000Z
2020-02-04T19:10:48.000Z
#include <iostream> #include <fstream> #include <stdlib.h> #include <vector> #include <string> #include <string.h> #include <map> #include <sstream> #include <time.h> #include <iomanip> #include <unistd.h> using namespace std; typedef map <pair<string, string>, int> Dict; typedef vector< vector<int> > matrix; struct PPP { int Y; // Cantidad de Yates int T; // Cantidad de Tiempos vector<int> vtrK; // Capacidad del yate i vector<int> vtrC; // Tripulación del yate i }; string getCurrentDir() { char cwd[1024]; getcwd(cwd, sizeof(cwd)); return cwd; } int contarLineasArchivo(string nombre) { ifstream arch(nombre.c_str()); int lin = 0; while(arch.good()) if(arch.get() == '\n') lin++; arch.close(); return lin; } void printearMap(map<int,int> m) { for(map<int, int>::iterator it = m.begin(); it != m.end(); ++it) cout << it->first << " => " << it->second << endl; cout << endl; } void printearVector(vector<int> v) { for(unsigned i = 0; i < v.size(); ++i) cout << v[i] << "\t"; cout << endl; } void printearMatriz(matrix m){ cout << "\t"; for (int i = 0; i < m[0].size(); ++i) cout << "T" << i << "\t"; cout << endl; for (int i = 0; i < m.size(); ++i) { cout << "G" << i << "\t"; for (int j = 0; j < m[i].size(); ++j) cout << m[i][j] << "\t"; cout << endl; } cout << endl; } int abs(int x) { if (x > 0) return x; else return -x; } vector< vector<int> > inicializarMatriz(int valorInicial, int filas, int columnas) { vector< vector<int> > matriz; for (int i = 0; i < filas; ++i) { vector<int> fila; for (int j = 0; j < columnas; ++j) fila.push_back(valorInicial); matriz.push_back(fila); } return matriz; } int getCapacidadYate(int yate, vector<int> vtrK) { return vtrK[yate]; } int getTripulacionYate(int yate, vector<int> vtrC) { return vtrC[yate]; } int exist(int n, vector<int> v) { for(unsigned i = 0; i < v.size(); ++i) { if (n == v[i]) return 1; } return 0; } int existMovTabu(pair<int, int> par, vector<pair<int, int> > v) { for(unsigned i = 0; i < v.size(); ++i) { if (par == v[i]) return 1; } return 0; } // Retorna una lista de tuplas (n,k) con el elemento n en la posicion k del vector v vector< pair<int, int> > getNMayores(int n, vector<int> v) { vector<pair<int, int> > retorno; vector<int> vCopia = v, mayoresYaRevisados; int posicion; for(unsigned i = 0; i < n; ++i) { int mayor = -9999; for(unsigned j = 0; j < v.size(); ++j) { if (!exist(j, mayoresYaRevisados) && mayor < v[j]) { mayor = v[j]; posicion = j; } } //cout << "(" << mayor << ", " << posicion << "),\t"; retorno.push_back(make_pair(mayor, posicion)); mayoresYaRevisados.push_back(posicion); } return retorno; } map<int, int> getPosicionGuests(int Y, vector<int> hosts) { map<int, int> retorno; int contador = 0; for(unsigned i = 0; i < Y; ++i) { if (!exist(i, hosts)) { retorno[contador] = i; contador++; } } return retorno; }
20.541667
84
0.596687
[ "vector" ]
1576ab987b33122d8a05c6f428b93db6e0879d3c
20,184
cc
C++
crypto/implementation/dragonfly_v1.cc
technoglub/ssc
9c3cf70cf4c5c2d8187fbd30f0dc950854bd4995
[ "BSD-2-Clause" ]
1
2021-05-27T10:31:02.000Z
2021-05-27T10:31:02.000Z
crypto/implementation/dragonfly_v1.cc
technoglub/ssc
9c3cf70cf4c5c2d8187fbd30f0dc950854bd4995
[ "BSD-2-Clause" ]
null
null
null
crypto/implementation/dragonfly_v1.cc
technoglub/ssc
9c3cf70cf4c5c2d8187fbd30f0dc950854bd4995
[ "BSD-2-Clause" ]
null
null
null
/* Copyright (c) 2019-2020 Stuart Steven Calder * All rights reserved. * See accompanying LICENSE file for licensing information. */ #include "dragonfly_v1.hh" using namespace std; // Just in case we need to do this. #define __STDC_FORMAT_MACROS #include <cinttypes> #if defined (LOCK_MEMORY_) || defined (UNLOCK_MEMORY_) # error 'Some MACRO we need was already defined' #endif #ifdef SHIM_FEATURE_MEMORYLOCKING # define LOCK_MEMORY_(address, size) shim_lock_memory( address, size ) # define UNLOCK_MEMORY_(address, size) shim_unlock_memory( address, size ) #else # define LOCK_MEMORY_(none_0,none_1) # define UNLOCK_MEMORY_(non_0,none_1) #endif #define CLEANUP_MAP_(map) \ shim_unmap_memory( &map ); \ shim_close_file( map.shim_file ) #define CLEANUP_ERROR_(secret_object) \ shim_secure_zero( &secret_object, sizeof(secret_object) ); \ UNLOCK_MEMORY_ (&secret_object, sizeof(secret_object)); \ CLEANUP_MAP_ (output_map); \ CLEANUP_MAP_ (input_map); \ remove( output_filename ) #define CLEANUP_SUCCESS_(secret_object) \ shim_secure_zero( &secret_object, sizeof(secret_object) ); \ UNLOCK_MEMORY_ (&secret_object, sizeof(secret_object)); \ shim_sync_map( &output_map ); \ CLEANUP_MAP_ (output_map); \ CLEANUP_MAP_ (input_map) namespace ssc::crypto_impl::dragonfly_v1 { void encrypt (Catena_Input const & SHIM_RESTRICT catena_input, Shim_Map & SHIM_RESTRICT input_map, Shim_Map & SHIM_RESTRICT output_map, char const * SHIM_RESTRICT output_filename) { {// Setup the output map. // Assume the output file's size to be the plaintext size with a visible header. output_map.size = input_map.size + Visible_Metadata_Bytes + catena_input.padding_bytes; shim_set_file_size( output_map.shim_file, output_map.size ); // Set the output file's size. shim_map_memory( &output_map, false ); } static_assert (Block_Bytes == Threefish_f::Block_Bytes); struct { // Secret data, that will be memory-locked and destroyed after use. CTR_Data_t ctr_data; union { // Only one variant of CATENA will be used (with Phi or without Phi). typename Catena_Strong_f::Data strong; typename Catena_Safe_f::Data safe; } catena; // One key for encryption, large enough to hold the parity word computed during the Threefish keyschedule generation. uint64_t enc_key [Threefish_f::External_Key_Words]; // One key for authenticaiton, just large enough for the authentication code in Skein_f::mac(). alignas(uint64_t) uint8_t auth_key [Threefish_f::Block_Bytes]; typename UBI_f::Data ubi_data; // Two password buffers. One for the initial input, the second to compare and ensure the intended password is used without error. uint8_t first_password [Password_Buffer_Bytes]; uint8_t second_password [Password_Buffer_Bytes]; typename CSPRNG_f::Data csprng_data; // A buffer used to temporarily hold random input from the keyboard, that will be hashed into the CSPRNG's seed buffer to strengthen it. uint8_t entropy_data [Supplement_Entropy_Buffer_Bytes]; // A buffer to hold the output of CATENA in the first `Block_Bytes` of memory, that will then be hashed into `Block_Bytes*2` bytes of memory, // where the first `Block_Bytes` of memory will be used as the encryption key, and the second `Block_Bytes` of memory will be used as the // authentication key. alignas(uint64_t) uint8_t hash_output [Block_Bytes * 2]; } secret; struct { // Public data, that need not be destroyed after use. // Threefish tweak buffer; large enough to store the parity word during generation of the Threefish keyschedule. uint64_t tf_tweak [Threefish_f::External_Tweak_Words]; // Enough bytes to copy into the nonce portion of the counter-mode's keystream buffer. alignas(uint64_t) uint8_t ctr_nonce [CTR_f::IV_Bytes]; // Enough salt bytes to harden CATENA against adversaries with dedicated hardware. alignas(uint64_t) uint8_t catena_salt [Salt_Bytes]; } pub; LOCK_MEMORY_ (&secret,sizeof(secret)); // Lock the secret object into memory; do not swap it to disk. int password_size; // Store the number of bytes in the password we're about to get. {// Obtain the password. Terminal_UI_f::init(); password_size = Terminal_UI_f::obtain_password( secret.first_password, secret.second_password, Password_Prompt, Password_Reentry_Prompt ); shim_secure_zero( secret.second_password, Password_Buffer_Bytes ); // Destroy. } CSPRNG_f::initialize_seed( &secret.csprng_data ); // Initialize the random number generator. if( catena_input.supplement_os_entropy ) { // Supplement the RNG's entropy if specified to do so. supplement_entropy( &secret.csprng_data, secret.entropy_data, secret.entropy_data + Block_Bytes ); shim_secure_zero( secret.entropy_data, sizeof(secret.entropy_data) ); } Terminal_UI_f::end(); {// 3 calls to the RNG to generate the tweak, nonce, and salt. CSPRNG_f::get( &secret.csprng_data, reinterpret_cast<uint8_t*>(pub.tf_tweak), Tweak_Bytes ); // Generate 16 bytes of tweak material. CSPRNG_f::get( &secret.csprng_data, pub.ctr_nonce, sizeof(pub.ctr_nonce) ); // Generate 32 bytes of nonce material for counter-mode. CSPRNG_f::get( &secret.csprng_data, pub.catena_salt, sizeof(pub.catena_salt) ); // Generate 32 bytes of salt material for CATENA. shim_secure_zero( &secret.csprng_data, sizeof(secret.csprng_data) ); } { // Generate the catena output, that we will then hash into encryption and authentication keys. if( !catena_input.use_phi ) { // Resistance to cache-timing adversaries branch. memcpy( secret.catena.safe.salt, pub.catena_salt, sizeof(pub.catena_salt) ); // Copy the salt into CATENA's salt buffer. auto r = Catena_Safe_f::call( &secret.catena.safe, // Use the safe member of the CATENA union. secret.hash_output, // Output into the first `Block_Bytes` of secret.hash_output. secret.first_password, // Process the password buffer. password_size, // Process `password_size` bytes of the password buffer. catena_input.g_low, // Pass in the lower memory-bound, g_low. catena_input.g_high, // Pass in the upper memory-bound, g_high. catena_input.lambda ); // Pass in the time-cost parameter, lambda. if( r != Catena_Safe_f::Return_E::Success ) { // CATENA failed to allocate memory branch. CLEANUP_ERROR_ (secret); SHIM_ERRX ("Error: Catena_Safe_f failed with error code %d...\n" "Allocating too much memory?\n", static_cast<int>(r)); } shim_secure_zero( &secret.catena.safe, sizeof(secret.catena.safe) ); } else { // Resistance to massively-parallel adversaries branch. // Copy the salt in. memcpy( secret.catena.strong.salt, pub.catena_salt, sizeof(pub.catena_salt) ); // Copy the salt into CATENA's salt buffer. auto r = Catena_Strong_f::call( &secret.catena.strong, // Use the strong member of the CATENA union. secret.hash_output, // Output into the first `Block_Bytes` of secret.hash_output. secret.first_password, // Process the password buffer. password_size, // Proces `password_size` bytes of the password buffer. catena_input.g_low, // Pass in the lower memory-bound, g_low. catena_input.g_high, // Pass in the upper memory-bound, g_high. catena_input.lambda ); // Pass in the time-cost parameter, lambda. if( r != Catena_Strong_f::Return_E::Success ) { // CATENA failed to allocate memory branch. CLEANUP_ERROR_ (secret); SHIM_ERRX ("Error: Catena_Strong_f failed with error code %d...\n" "Allocating too much memory?\n", static_cast<int>(r)); } shim_secure_zero( &secret.catena.strong, sizeof(secret.catena.strong) ); } shim_secure_zero( &secret.first_password, sizeof(secret.first_password) ); static_assert (sizeof(secret.hash_output) == (Block_Bytes * 2)); // Hash the output into encryption and authentication keys. Skein_f::hash( &secret.ubi_data, secret.hash_output, // Output into itself. secret.hash_output, // Use the output of CATENA as input to Skein. Block_Bytes, // Process the first `Block_Bytes` of data, as output by CATENA. (Block_Bytes * 2) );// Output `Block_Bytes * 2` bytes of pseudorandom data into the buffer. memcpy( secret.enc_key, secret.hash_output, Block_Bytes ); // Copy the first Block into the encryption key buffer. memcpy( secret.auth_key, secret.hash_output + Block_Bytes, Block_Bytes ); // Copy the second Block into the authentication key buffer. shim_secure_zero( secret.hash_output, sizeof(secret.hash_output) ); Threefish_f::rekey( &secret.ctr_data.threefish_data, secret.enc_key, pub.tf_tweak ); // Compute the Threefish_f keyschedule with the encryption key and tweak. } // Setup the public portion of the header uint8_t *out = output_map.ptr; // Get a pointer to the beginning of the memory-mapped output file. memcpy( out, Dragonfly_V1_ID, sizeof(Dragonfly_V1_ID) ); // Copy the Dragonfly_V1 identifier in. out += sizeof(Dragonfly_V1_ID); std::memcpy( out, &output_map.size, sizeof(output_map.size) ); out += sizeof(uint64_t); (*out++) = catena_input.g_low; // Copy the lower memory-bound in. (*out++) = catena_input.g_high; // Copy the upper memory-bound in. (*out++) = catena_input.lambda; // Copy the time-cost parameter in. (*out++) = catena_input.use_phi; // Copy the phi-usage parameter in. memcpy( out, pub.tf_tweak, Tweak_Bytes ); // Copy the Threefish tweak in. out += Tweak_Bytes; memcpy( out, pub.catena_salt, Salt_Bytes ); // Copy the CATENA salt in. out += Salt_Bytes; memcpy( out, pub.ctr_nonce, CTR_f::IV_Bytes); // Copy the CTR mode nonce in. out += CTR_f::IV_Bytes; { uint64_t crypt_header [2] = { 0 }; crypt_header[ 0 ] = catena_input.padding_bytes; CTR_f::set_iv( &secret.ctr_data, pub.ctr_nonce ); CTR_f::xorcrypt( &secret.ctr_data, out, reinterpret_cast<uint8_t*>(crypt_header), sizeof(crypt_header) ); out += sizeof(crypt_header); if( catena_input.padding_bytes != 0 ) { CTR_f::xorcrypt( &secret.ctr_data, out, out, catena_input.padding_bytes, sizeof(crypt_header) ); out += catena_input.padding_bytes; } CTR_f::xorcrypt( &secret.ctr_data, out, input_map.ptr, input_map.size, sizeof(crypt_header) + catena_input.padding_bytes ); out += input_map.size; } { Skein_f::mac( &secret.ubi_data, out, output_map.ptr, secret.auth_key, MAC_Bytes, output_map.size - MAC_Bytes ); // Authenticate the ciphertext with the auth key we generated earlier. } CLEANUP_SUCCESS_ (secret); }/* ~ void encrypt (...) */ void decrypt (Shim_Map & SHIM_RESTRICT input_map, Shim_Map & SHIM_RESTRICT output_map, char const * SHIM_RESTRICT output_filename) { output_map.size = input_map.size - Visible_Metadata_Bytes; static constexpr int Minimum_Possible_File_Size = Visible_Metadata_Bytes + 1; if( input_map.size < Minimum_Possible_File_Size ) { shim_close_file( output_map.shim_file ); remove( output_filename ); CLEANUP_MAP_ (input_map); SHIM_ERRX ("Error: Input file doesn't appear to be large enough to be a SSC_DRAGONFLY_V1 encrypted file\n"); } uint8_t const *in = input_map.ptr; struct { uint64_t tweak [Threefish_f::External_Key_Words]; alignas(uint64_t) uint8_t catena_salt [Salt_Bytes]; alignas(uint64_t) uint8_t ctr_nonce [CTR_f::IV_Bytes]; uint64_t header_size; uint8_t header_id [sizeof(Dragonfly_V1_ID)]; uint8_t g_low; uint8_t g_high; uint8_t lambda; uint8_t use_phi; } pub; // Copy all the fields of the Dragonfly_V1 header from the memory-mapped input file into the pub struct. { memcpy( pub.header_id, in, sizeof(pub.header_id) ); in += sizeof(pub.header_id); std::memcpy( &pub.header_size, in, sizeof(pub.header_size) ); in += sizeof(uint64_t); pub.g_low = (*in++); pub.g_high = (*in++); pub.lambda = (*in++); pub.use_phi = (*in++); memcpy( pub.tweak, in, Tweak_Bytes ); in += Tweak_Bytes; memcpy( pub.catena_salt, in, Salt_Bytes ); in += Salt_Bytes; memcpy( pub.ctr_nonce, in, CTR_f::IV_Bytes); in += CTR_f::IV_Bytes; } if( memcmp( pub.header_id, Dragonfly_V1_ID, sizeof(Dragonfly_V1_ID) ) != 0 ) { shim_unmap_memory( &input_map ); shim_close_file( input_map.shim_file ); shim_close_file( output_map.shim_file ); remove( output_filename ); SHIM_ERRX ("Error: Not a Dragonfly_V1 encrypted file.\n"); } struct { CTR_Data_t ctr_data; typename UBI_f::Data ubi_data; union { typename Catena_Strong_f::Data strong; typename Catena_Safe_f::Data safe; } catena; uint64_t enc_key [Threefish_f::External_Key_Words]; alignas(uint64_t) uint8_t auth_key [Block_Bytes]; alignas(uint64_t) uint8_t hash_buf [Block_Bytes * 2]; uint8_t password [Password_Buffer_Bytes]; alignas(uint64_t) uint8_t gen_mac [MAC_Bytes]; } secret; LOCK_MEMORY_ (&secret, sizeof(secret)); Terminal_UI_f::init(); int password_size = Terminal_UI_f::obtain_password( secret.password, Password_Prompt ); Terminal_UI_f::end(); if( !pub.use_phi ) { memcpy( secret.catena.safe.salt, pub.catena_salt, sizeof(pub.catena_salt) ); auto r = Catena_Safe_f::call( &secret.catena.safe, secret.hash_buf, secret.password, password_size, pub.g_low, pub.g_high, pub.lambda ); if( r != Catena_Safe_f::Return_E::Success ) { shim_secure_zero( &secret, sizeof(secret) ); UNLOCK_MEMORY_ (&secret, sizeof(secret)); CLEANUP_MAP_ (input_map); shim_close_file( output_map.shim_file ); remove( output_filename ); SHIM_ERRX ("Error: Catena_Safe_f failed with error code %d...\n" "Do you have enough memory to decrypt this file?\n", static_cast<int>(r)); } shim_secure_zero( &secret.catena.safe, sizeof(secret.catena.safe) ); } else { memcpy( secret.catena.strong.salt, pub.catena_salt, sizeof(pub.catena_salt) ); auto r = Catena_Strong_f::call( &secret.catena.strong, secret.hash_buf, secret.password, password_size, pub.g_low, pub.g_high, pub.lambda ); if( r != Catena_Strong_f::Return_E::Success ) { shim_secure_zero( &secret, sizeof(secret) ); UNLOCK_MEMORY_ (&secret, sizeof(secret)); CLEANUP_MAP_ (input_map); shim_close_file( output_map.shim_file ); remove( output_filename ); SHIM_ERRX ("Error: Catena_Strong_f failed with error code %d...\n" "Do you have enough memory to decrypt this file?\n", static_cast<int>(r)); } shim_secure_zero( &secret.catena.strong, sizeof(secret.catena.strong) ); } {// Generate the keys. Skein_f::hash( &secret.ubi_data, secret.hash_buf, secret.hash_buf, Block_Bytes, (Block_Bytes * 2) ); memcpy( secret.enc_key, secret.hash_buf, Block_Bytes ); memcpy( secret.auth_key, secret.hash_buf + Block_Bytes, Block_Bytes ); shim_secure_zero( secret.hash_buf, sizeof(secret.hash_buf) ); { Skein_f::mac( &secret.ubi_data, secret.gen_mac, input_map.ptr, secret.auth_key, sizeof(secret.gen_mac), input_map.size - MAC_Bytes ); if( shim_ctime_memcmp( secret.gen_mac, (input_map.ptr + input_map.size - MAC_Bytes), MAC_Bytes ) != 0 ) { shim_secure_zero( &secret, sizeof(secret) ); UNLOCK_MEMORY_ (&secret, sizeof(secret)); CLEANUP_MAP_ (input_map); shim_close_file( output_map.shim_file ); remove( output_filename ); SHIM_ERRX ("Error: Authentication failed.\n" "Possibilities: Wrong password, the file is corrupted, or it has been tampered with.\n"); } } Threefish_f::rekey( &secret.ctr_data.threefish_data, secret.enc_key, pub.tweak ); } { // Set the nonce. CTR_f::set_iv( &secret.ctr_data, pub.ctr_nonce ); uint64_t padding_bytes; // Decrypt the padding bytes. CTR_f::xorcrypt( &secret.ctr_data, reinterpret_cast<uint8_t*>(&padding_bytes), in, sizeof(padding_bytes) ); output_map.size -= padding_bytes; shim_set_file_size( output_map.shim_file, output_map.size ); shim_map_memory( &output_map, false ); in += (padding_bytes + (sizeof(uint64_t) * 2)); // Skip the second word. It is reserved. CTR_f::xorcrypt( &secret.ctr_data, output_map.ptr, in, output_map.size, (sizeof(uint64_t) * 2) + padding_bytes ); } shim_secure_zero( &secret, sizeof(secret) ); UNLOCK_MEMORY_ (&secret, sizeof(secret)); shim_sync_map( &output_map ); CLEANUP_MAP_ (output_map); CLEANUP_MAP_ (input_map); }/* ~ void decrypt (...) */ void dump_header (Shim_Map & input_map, char const * SHIM_RESTRICT input_filename) { static constexpr int Minimum_Size = Visible_Metadata_Bytes + 1; if( input_map.size < Minimum_Size ) { CLEANUP_MAP_ (input_map); SHIM_ERRX ("File %s looks too small to be SSC_Dragonfly_V1 encrypted\n", input_filename); } struct { uint8_t id [sizeof(Dragonfly_V1_ID)]; uint64_t total_size; uint8_t g_low; uint8_t g_high; uint8_t lambda; uint8_t use_phi; uint8_t tweak [Tweak_Bytes]; uint8_t salt [Salt_Bytes]; uint8_t nonce [CTR_f::IV_Bytes]; } header; uint8_t mac [MAC_Bytes]; { uint8_t const *p = input_map.ptr; memcpy( header.id, p, sizeof(header.id) ); p += sizeof(header.id); memcpy( &header.total_size, p, sizeof(header.total_size) ); p += sizeof(header.total_size); header.g_low = (*p++); header.g_high = (*p++); header.lambda = (*p++); header.use_phi = (*p++); memcpy( header.tweak, p, sizeof(header.tweak) ); p += sizeof(header.tweak); memcpy( header.salt, p, sizeof(header.salt) ); p += sizeof(header.salt); memcpy( header.nonce, p, sizeof(header.nonce) ); p += sizeof(header.nonce); p = input_map.ptr + input_map.size - MAC_Bytes; memcpy( mac, p, sizeof(mac) ); } CLEANUP_MAP_ (input_map); header.id[ sizeof(header.id) - 1 ] = '\0'; fprintf( stdout, "File Header ID : %s\n", reinterpret_cast<char*>(header.id) ); fprintf( stdout, "File Size : %" PRIu64 "\n", header.total_size ); fprintf( stdout, "Garlic Low : %d\n", static_cast<int>(header.g_low) ); fprintf( stdout, "Garlic High : %d\n", static_cast<int>(header.g_high) ); fprintf( stdout, "Lambda : %d\n", static_cast<int>(header.lambda) ); if( !header.use_phi ) fprintf( stdout, "The Phi function is not used.\n" ); else fprintf( stdout, "The Phi function is used!\n" ); fputs( "Threefish Tweak :\n", stdout ); shim_print_byte_buffer( header.tweak, sizeof(header.tweak) ); fputs( "\nCatena Salt :\n", stdout ); shim_print_byte_buffer( header.salt, sizeof(header.salt) ); fputs( "\nCTR Initialization Vector:\n", stdout ); shim_print_byte_buffer( header.nonce, sizeof(header.nonce) ); fputs( "\nSkein-MAC:\n", stdout ); shim_print_byte_buffer( mac, sizeof(mac) ); fputs( "\n", stdout ); } }/* ~ namespace ssc::crypto_impl::dragonfly_v1 */ #undef UNLOCK_MEMORY_ #undef LOCK_MEMORY_
43.406452
144
0.664685
[ "object", "vector" ]
1576b2bec9c0a1f47a8b46219510fddbfa78aa57
16,495
hpp
C++
cisco-ios-xe/ydk/models/cisco_ios_xe/CISCO_ATM_QOS_MIB.hpp
CiscoDevNet/ydk-cpp
ef7d75970f2ef1154100e0f7b0a2ee823609b481
[ "ECL-2.0", "Apache-2.0" ]
17
2016-12-02T05:45:49.000Z
2022-02-10T19:32:54.000Z
cisco-ios-xe/ydk/models/cisco_ios_xe/CISCO_ATM_QOS_MIB.hpp
CiscoDevNet/ydk-cpp
ef7d75970f2ef1154100e0f7b0a2ee823609b481
[ "ECL-2.0", "Apache-2.0" ]
2
2017-03-27T15:22:38.000Z
2019-11-05T08:30:16.000Z
cisco-ios-xe/ydk/models/cisco_ios_xe/CISCO_ATM_QOS_MIB.hpp
CiscoDevNet/ydk-cpp
ef7d75970f2ef1154100e0f7b0a2ee823609b481
[ "ECL-2.0", "Apache-2.0" ]
11
2016-12-02T05:45:52.000Z
2019-11-07T08:28:17.000Z
#ifndef _CISCO_ATM_QOS_MIB_ #define _CISCO_ATM_QOS_MIB_ #include <memory> #include <vector> #include <string> #include <ydk/types.hpp> #include <ydk/errors.hpp> namespace cisco_ios_xe { namespace CISCO_ATM_QOS_MIB { class CISCOATMQOSMIB : public ydk::Entity { public: CISCOATMQOSMIB(); ~CISCOATMQOSMIB(); bool has_data() const override; bool has_operation() const override; std::vector<std::pair<std::string, ydk::LeafData> > get_name_leaf_data() const override; std::string get_segment_path() const override; std::shared_ptr<ydk::Entity> get_child_by_name(const std::string & yang_name, const std::string & segment_path) override; void set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix) override; void set_filter(const std::string & value_path, ydk::YFilter yfliter) override; std::map<std::string, std::shared_ptr<ydk::Entity>> get_children() const override; bool has_leaf_or_child_of_name(const std::string & name) const override; std::shared_ptr<ydk::Entity> clone_ptr() const override; ydk::augment_capabilities_function get_augment_capabilities_function() const override; std::string get_bundle_yang_models_location() const override; std::string get_bundle_name() const override; std::map<std::pair<std::string, std::string>, std::string> get_namespace_identity_lookup() const override; class CaqVccParamsTable; //type: CISCOATMQOSMIB::CaqVccParamsTable class CaqVpcParamsTable; //type: CISCOATMQOSMIB::CaqVpcParamsTable class CaqQueuingParamsTable; //type: CISCOATMQOSMIB::CaqQueuingParamsTable class CaqQueuingParamsClassTable; //type: CISCOATMQOSMIB::CaqQueuingParamsClassTable std::shared_ptr<cisco_ios_xe::CISCO_ATM_QOS_MIB::CISCOATMQOSMIB::CaqVccParamsTable> caqvccparamstable; std::shared_ptr<cisco_ios_xe::CISCO_ATM_QOS_MIB::CISCOATMQOSMIB::CaqVpcParamsTable> caqvpcparamstable; std::shared_ptr<cisco_ios_xe::CISCO_ATM_QOS_MIB::CISCOATMQOSMIB::CaqQueuingParamsTable> caqqueuingparamstable; std::shared_ptr<cisco_ios_xe::CISCO_ATM_QOS_MIB::CISCOATMQOSMIB::CaqQueuingParamsClassTable> caqqueuingparamsclasstable; }; // CISCOATMQOSMIB class CISCOATMQOSMIB::CaqVccParamsTable : public ydk::Entity { public: CaqVccParamsTable(); ~CaqVccParamsTable(); bool has_data() const override; bool has_operation() const override; std::vector<std::pair<std::string, ydk::LeafData> > get_name_leaf_data() const override; std::string get_segment_path() const override; std::shared_ptr<ydk::Entity> get_child_by_name(const std::string & yang_name, const std::string & segment_path) override; void set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix) override; void set_filter(const std::string & value_path, ydk::YFilter yfliter) override; std::map<std::string, std::shared_ptr<ydk::Entity>> get_children() const override; bool has_leaf_or_child_of_name(const std::string & name) const override; std::string get_absolute_path() const override; class CaqVccParamsEntry; //type: CISCOATMQOSMIB::CaqVccParamsTable::CaqVccParamsEntry ydk::YList caqvccparamsentry; }; // CISCOATMQOSMIB::CaqVccParamsTable class CISCOATMQOSMIB::CaqVccParamsTable::CaqVccParamsEntry : public ydk::Entity { public: CaqVccParamsEntry(); ~CaqVccParamsEntry(); bool has_data() const override; bool has_operation() const override; std::vector<std::pair<std::string, ydk::LeafData> > get_name_leaf_data() const override; std::string get_segment_path() const override; std::shared_ptr<ydk::Entity> get_child_by_name(const std::string & yang_name, const std::string & segment_path) override; void set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix) override; void set_filter(const std::string & value_path, ydk::YFilter yfliter) override; std::map<std::string, std::shared_ptr<ydk::Entity>> get_children() const override; bool has_leaf_or_child_of_name(const std::string & name) const override; std::string get_absolute_path() const override; //type: int32 (refers to cisco_ios_xe::IF_MIB::IFMIB::IfTable::IfEntry::ifindex) ydk::YLeaf ifindex; //type: int32 (refers to cisco_ios_xe::ATM_MIB::ATMMIB::AtmVclTable::AtmVclEntry::atmvclvpi) ydk::YLeaf atmvclvpi; //type: int32 (refers to cisco_ios_xe::ATM_MIB::ATMMIB::AtmVclTable::AtmVclEntry::atmvclvci) ydk::YLeaf atmvclvci; ydk::YLeaf caqvccparamstype; //type: AtmServiceCategory ydk::YLeaf caqvccparamspcrin0; //type: uint32 ydk::YLeaf caqvccparamspcrin01; //type: uint32 ydk::YLeaf caqvccparamspcrout0; //type: uint32 ydk::YLeaf caqvccparamspcrout01; //type: uint32 ydk::YLeaf caqvccparamsscrin0; //type: uint32 ydk::YLeaf caqvccparamsscrin01; //type: uint32 ydk::YLeaf caqvccparamsscrout0; //type: uint32 ydk::YLeaf caqvccparamsscrout01; //type: uint32 ydk::YLeaf caqvccparamsbcsin0; //type: uint32 ydk::YLeaf caqvccparamsbcsin01; //type: uint32 ydk::YLeaf caqvccparamsbcsout0; //type: uint32 ydk::YLeaf caqvccparamsbcsout01; //type: uint32 ydk::YLeaf caqvccparamsinheritlevel; //type: VcParamConfigLocation ydk::YLeaf caqvccparamsmcrin; //type: uint32 ydk::YLeaf caqvccparamsmcrout; //type: uint32 ydk::YLeaf caqvccparamsinvrdf; //type: uint32 ydk::YLeaf caqvccparamsinvrif; //type: uint32 ydk::YLeaf caqvccparamsrfl; //type: VcParamConfigLocation ydk::YLeaf caqvccparamscdv; //type: uint32 ydk::YLeaf caqvccparamscdvt; //type: uint32 ydk::YLeaf caqvccparamsicr; //type: uint32 ydk::YLeaf caqvccparamstbe; //type: uint32 ydk::YLeaf caqvccparamsfrtt; //type: uint32 ydk::YLeaf caqvccparamsnrm; //type: uint32 ydk::YLeaf caqvccparamsinvtrm; //type: uint32 ydk::YLeaf caqvccparamsinvcdf; //type: uint32 ydk::YLeaf caqvccparamsadtf; //type: uint32 }; // CISCOATMQOSMIB::CaqVccParamsTable::CaqVccParamsEntry class CISCOATMQOSMIB::CaqVpcParamsTable : public ydk::Entity { public: CaqVpcParamsTable(); ~CaqVpcParamsTable(); bool has_data() const override; bool has_operation() const override; std::vector<std::pair<std::string, ydk::LeafData> > get_name_leaf_data() const override; std::string get_segment_path() const override; std::shared_ptr<ydk::Entity> get_child_by_name(const std::string & yang_name, const std::string & segment_path) override; void set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix) override; void set_filter(const std::string & value_path, ydk::YFilter yfliter) override; std::map<std::string, std::shared_ptr<ydk::Entity>> get_children() const override; bool has_leaf_or_child_of_name(const std::string & name) const override; std::string get_absolute_path() const override; class CaqVpcParamsEntry; //type: CISCOATMQOSMIB::CaqVpcParamsTable::CaqVpcParamsEntry ydk::YList caqvpcparamsentry; }; // CISCOATMQOSMIB::CaqVpcParamsTable class CISCOATMQOSMIB::CaqVpcParamsTable::CaqVpcParamsEntry : public ydk::Entity { public: CaqVpcParamsEntry(); ~CaqVpcParamsEntry(); bool has_data() const override; bool has_operation() const override; std::vector<std::pair<std::string, ydk::LeafData> > get_name_leaf_data() const override; std::string get_segment_path() const override; std::shared_ptr<ydk::Entity> get_child_by_name(const std::string & yang_name, const std::string & segment_path) override; void set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix) override; void set_filter(const std::string & value_path, ydk::YFilter yfliter) override; std::map<std::string, std::shared_ptr<ydk::Entity>> get_children() const override; bool has_leaf_or_child_of_name(const std::string & name) const override; std::string get_absolute_path() const override; //type: int32 (refers to cisco_ios_xe::IF_MIB::IFMIB::IfTable::IfEntry::ifindex) ydk::YLeaf ifindex; //type: int32 (refers to cisco_ios_xe::ATM_MIB::ATMMIB::AtmVplTable::AtmVplEntry::atmvplvpi) ydk::YLeaf atmvplvpi; ydk::YLeaf caqvpcparamsvpstate; //type: VpState ydk::YLeaf caqvpcparamspeakrate; //type: uint32 ydk::YLeaf caqvpcparamscesrate; //type: uint32 ydk::YLeaf caqvpcparamsdatavccount; //type: int32 ydk::YLeaf caqvpcparamscesvccount; //type: int32 ydk::YLeaf caqvpcparamsvcdf4seg; //type: int32 ydk::YLeaf caqvpcparamsvcdf4ete; //type: int32 ydk::YLeaf caqvpcparamsscr; //type: uint32 ydk::YLeaf caqvpcparamsmbs; //type: uint32 ydk::YLeaf caqvpcparamsavailbw; //type: uint32 }; // CISCOATMQOSMIB::CaqVpcParamsTable::CaqVpcParamsEntry class CISCOATMQOSMIB::CaqQueuingParamsTable : public ydk::Entity { public: CaqQueuingParamsTable(); ~CaqQueuingParamsTable(); bool has_data() const override; bool has_operation() const override; std::vector<std::pair<std::string, ydk::LeafData> > get_name_leaf_data() const override; std::string get_segment_path() const override; std::shared_ptr<ydk::Entity> get_child_by_name(const std::string & yang_name, const std::string & segment_path) override; void set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix) override; void set_filter(const std::string & value_path, ydk::YFilter yfliter) override; std::map<std::string, std::shared_ptr<ydk::Entity>> get_children() const override; bool has_leaf_or_child_of_name(const std::string & name) const override; std::string get_absolute_path() const override; class CaqQueuingParamsEntry; //type: CISCOATMQOSMIB::CaqQueuingParamsTable::CaqQueuingParamsEntry ydk::YList caqqueuingparamsentry; }; // CISCOATMQOSMIB::CaqQueuingParamsTable class CISCOATMQOSMIB::CaqQueuingParamsTable::CaqQueuingParamsEntry : public ydk::Entity { public: CaqQueuingParamsEntry(); ~CaqQueuingParamsEntry(); bool has_data() const override; bool has_operation() const override; std::vector<std::pair<std::string, ydk::LeafData> > get_name_leaf_data() const override; std::string get_segment_path() const override; std::shared_ptr<ydk::Entity> get_child_by_name(const std::string & yang_name, const std::string & segment_path) override; void set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix) override; void set_filter(const std::string & value_path, ydk::YFilter yfliter) override; std::map<std::string, std::shared_ptr<ydk::Entity>> get_children() const override; bool has_leaf_or_child_of_name(const std::string & name) const override; std::string get_absolute_path() const override; //type: int32 (refers to cisco_ios_xe::IF_MIB::IFMIB::IfTable::IfEntry::ifindex) ydk::YLeaf ifindex; //type: int32 (refers to cisco_ios_xe::ATM_MIB::ATMMIB::AtmVclTable::AtmVclEntry::atmvclvpi) ydk::YLeaf atmvclvpi; //type: int32 (refers to cisco_ios_xe::ATM_MIB::ATMMIB::AtmVclTable::AtmVclEntry::atmvclvci) ydk::YLeaf atmvclvci; ydk::YLeaf caqqueuingparamsmeanqdepth; //type: uint32 }; // CISCOATMQOSMIB::CaqQueuingParamsTable::CaqQueuingParamsEntry class CISCOATMQOSMIB::CaqQueuingParamsClassTable : public ydk::Entity { public: CaqQueuingParamsClassTable(); ~CaqQueuingParamsClassTable(); bool has_data() const override; bool has_operation() const override; std::vector<std::pair<std::string, ydk::LeafData> > get_name_leaf_data() const override; std::string get_segment_path() const override; std::shared_ptr<ydk::Entity> get_child_by_name(const std::string & yang_name, const std::string & segment_path) override; void set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix) override; void set_filter(const std::string & value_path, ydk::YFilter yfliter) override; std::map<std::string, std::shared_ptr<ydk::Entity>> get_children() const override; bool has_leaf_or_child_of_name(const std::string & name) const override; std::string get_absolute_path() const override; class CaqQueuingParamsClassEntry; //type: CISCOATMQOSMIB::CaqQueuingParamsClassTable::CaqQueuingParamsClassEntry ydk::YList caqqueuingparamsclassentry; }; // CISCOATMQOSMIB::CaqQueuingParamsClassTable class CISCOATMQOSMIB::CaqQueuingParamsClassTable::CaqQueuingParamsClassEntry : public ydk::Entity { public: CaqQueuingParamsClassEntry(); ~CaqQueuingParamsClassEntry(); bool has_data() const override; bool has_operation() const override; std::vector<std::pair<std::string, ydk::LeafData> > get_name_leaf_data() const override; std::string get_segment_path() const override; std::shared_ptr<ydk::Entity> get_child_by_name(const std::string & yang_name, const std::string & segment_path) override; void set_value(const std::string & value_path, const std::string & value, const std::string & name_space, const std::string & name_space_prefix) override; void set_filter(const std::string & value_path, ydk::YFilter yfliter) override; std::map<std::string, std::shared_ptr<ydk::Entity>> get_children() const override; bool has_leaf_or_child_of_name(const std::string & name) const override; std::string get_absolute_path() const override; //type: int32 (refers to cisco_ios_xe::IF_MIB::IFMIB::IfTable::IfEntry::ifindex) ydk::YLeaf ifindex; //type: int32 (refers to cisco_ios_xe::ATM_MIB::ATMMIB::AtmVclTable::AtmVclEntry::atmvclvpi) ydk::YLeaf atmvclvpi; //type: int32 (refers to cisco_ios_xe::ATM_MIB::ATMMIB::AtmVclTable::AtmVclEntry::atmvclvci) ydk::YLeaf atmvclvci; ydk::YLeaf caqqueuingparamsclassindex; //type: int32 ydk::YLeaf caqqueuingparamsclassranddrp; //type: uint32 ydk::YLeaf caqqueuingparamsclasstaildrp; //type: uint32 ydk::YLeaf caqqueuingparamsclassminthre; //type: uint32 ydk::YLeaf caqqueuingparamsclassmaxthre; //type: uint32 ydk::YLeaf caqqueuingparamsclassmrkprob; //type: uint32 }; // CISCOATMQOSMIB::CaqQueuingParamsClassTable::CaqQueuingParamsClassEntry class VcParamConfigLocation : public ydk::Enum { public: static const ydk::Enum::YLeaf configDefault; static const ydk::Enum::YLeaf configVcDirect; static const ydk::Enum::YLeaf configVcClass; static const ydk::Enum::YLeaf configVcClassSubInterface; static const ydk::Enum::YLeaf configVcClassInterface; static int get_enum_value(const std::string & name) { if (name == "configDefault") return 1; if (name == "configVcDirect") return 2; if (name == "configVcClass") return 3; if (name == "configVcClassSubInterface") return 4; if (name == "configVcClassInterface") return 5; return -1; } }; class VpState : public ydk::Enum { public: static const ydk::Enum::YLeaf vpStateInactive; static const ydk::Enum::YLeaf vpStateActive; static int get_enum_value(const std::string & name) { if (name == "vpStateInactive") return 1; if (name == "vpStateActive") return 2; return -1; } }; } } #endif /* _CISCO_ATM_QOS_MIB_ */
49.683735
162
0.701607
[ "vector" ]
1577a45e95eb335877c8d332435945efd3d8be78
4,710
cpp
C++
src/scenes/editor/gui/button.cpp
olekolek1000/MPS
30461844febb50fadf744cfbaeef88fbfdd5538f
[ "MIT" ]
9
2018-05-15T06:03:51.000Z
2022-01-30T01:23:24.000Z
src/scenes/editor/gui/button.cpp
olekolek1000/MPS
30461844febb50fadf744cfbaeef88fbfdd5538f
[ "MIT" ]
5
2018-06-28T16:48:04.000Z
2021-06-05T21:24:32.000Z
src/scenes/editor/gui/button.cpp
olekolek1000/MPS
30461844febb50fadf744cfbaeef88fbfdd5538f
[ "MIT" ]
9
2018-05-03T19:40:54.000Z
2021-06-05T17:54:32.000Z
#include "button.hpp" #include "lib/opengl.hpp" #include "transform.hpp" #include "../editor.hpp" #include "text.hpp" #include "lib/glm.hpp" #include "render/func.hpp" #include "timestep.hpp" int GuiButton::getWidth(){ return width; } int GuiButton::getHeight(){ return height; } int GuiButton::getPosX(){ return posX; } int GuiButton::getPosY(){ return posY; } GuiButton & GuiButton::init(sceneEditor * scene){ this->scene = scene; return *this; } GuiButton & GuiButton::init(sceneEditor * scene, int posX, int posY, int width, int height){ this->scene=scene; setPosition(posX,posY); setSize(width,height); return *this; } GuiButton & GuiButton::setPosition(int posX, int posY){ this->posX=posX; this->posY=posY; return *this; } GuiButton & GuiButton::setSize(int width, int height){ this->width=width; this->height=height; return *this; } GuiButton & GuiButton::setBackgroundVisible(bool n){ background = n; return *this; } bool GuiButton::pushEvent(SDL_Event * evt){ bool used=false; switch(evt->type){ case SDL_MOUSEBUTTONDOWN:{ if(evt->button.button==SDL_BUTTON_LEFT){ if(evt->button.x*scene->a.getAreaMultiplier()>=posX&&evt->button.y*scene->a.getAreaMultiplier()>=posY&&evt->button.x*scene->a.getAreaMultiplier()<posX+width&&evt->button.y*scene->a.getAreaMultiplier()<posY+height){ used=true; pressed=true; } } break; } case SDL_MOUSEBUTTONUP:{ if(evt->button.button==SDL_BUTTON_LEFT){ if(pressed){ if(evt->button.x*scene->a.getAreaMultiplier()>=posX&&evt->button.y*scene->a.getAreaMultiplier()>=posY&&evt->button.x*scene->a.getAreaMultiplier()<posX+width&&evt->button.y*scene->a.getAreaMultiplier()<posY+height){ used=true; clicked=true; } pressed=false; } } break; } case SDL_MOUSEMOTION:{ if(evt->motion.x*scene->a.getAreaMultiplier()>=posX&&evt->motion.y*scene->a.getAreaMultiplier()>=posY&&evt->motion.x*scene->a.getAreaMultiplier()<posX+width&&evt->motion.y*scene->a.getAreaMultiplier()<posY+height){ hovered=true; } else{ hovered=false; } if(pressed){ used=true; } break; } } return used; } bool GuiButton::isClicked(){ if(clicked){ clicked=false; return true; } else{ return false; } } bool GuiButton::isPressed(){ return pressed; } GuiButton::GuiButton(){ model = new glm::mat4; } GuiButton::~GuiButton(){ delete (glm::mat4*)model; if(text!=NULL){ delete text; } } GuiButton & GuiButton::update(){ scale_smooth_prev=scale_smooth; scale_smooth+= (scale-scale_smooth)*0.5f; if(hovered){ scale=1.15f; } else{ scale=1.0f; } return *this; } GuiButton & GuiButton::render(float alpha){ xReset((glm::mat4*)model); if(!pressed){ xTranslate((glm::mat4*)model, posX,posY); } else{ xTranslate((glm::mat4*)model, posX+2,posY+2); } xScale((glm::mat4*)model,width, height); scene->shGui.select(); scene->shGui.setM((glm::mat4*)model); scene->a.square_vert->bind().attrib(0,2,GL_FLOAT); scene->a.square_uv->bind().attrib(1,2,GL_FLOAT); if(background){ scene->thMan["button"].select(); scene->a.square_vert->draw(GL_TRIANGLES); } float scale = alphize(alpha, scale_smooth_prev, scale_smooth); if(texture!=NULL){ texture->select(); xReset((glm::mat4*)model); xTranslate((glm::mat4*)model, posX-width*(scale-1.0f)/2.0f+(pressed==1 ? 2 : 0), posY-height*(scale-1.0f)/2.0f+(pressed==1 ? 2 : 0)); xScale((glm::mat4*)model, width*scale, height*scale); scene->shGui.setM((glm::mat4*)model); scene->a.square_vert->draw(GL_TRIANGLES); } if(text!=NULL){ text->setBackgroundColor(0.0f,0.0f,0.0f,(scale-1.0f)*2.0f).setPosition(posX+width/2+(pressed==1 ? 2 : 0), posY+height/2+(pressed==1 ? 2 : 0)).render(); } return *this; } GuiButton & GuiButton::setTexture(Texture * texture){ this->texture = texture; return *this; } GuiButton & GuiButton::setText(std::string text, TTF_Font * font, char r, char g, char b){ if(this->text!=NULL){ delete this->text; } this->text = new GuiText(scene, text, font, r, g, b); this->text->setAlign(1,1); return *this; }
26.460674
234
0.583439
[ "render", "model", "transform" ]
157c987e07e83ddb6f0ecdcb98e4ed37a0bb5f79
1,611
cpp
C++
207-Course-Schedule/Course-Schedule.cpp
xta0/LeetCode-Solutions
ab0de97b35fb54c24bcef0398a9d75bdac9ee8b2
[ "MIT" ]
4
2018-08-07T11:45:32.000Z
2019-05-19T08:52:19.000Z
207-Course-Schedule/Course-Schedule.cpp
xta0/LeetCode-Solutions
ab0de97b35fb54c24bcef0398a9d75bdac9ee8b2
[ "MIT" ]
null
null
null
207-Course-Schedule/Course-Schedule.cpp
xta0/LeetCode-Solutions
ab0de97b35fb54c24bcef0398a9d75bdac9ee8b2
[ "MIT" ]
null
null
null
#include <iostream> #include <vector> #include <string> #include <stack> #include <queue> #include <map> #include <set> #include <unordered_set> #include <unordered_map> using namespace std; /* Solution: TopoSort + BFS Time: O(N) Space: O(N) */ class Solution { public: bool canFinish(int numCourses, vector<pair<int, int>>& prerequisites) { unordered_map<int, unordered_set<int>> graph; unordered_map<int,int> degrees; for(auto& p : prerequisites){ //初始化每个点的入度为0 if(!degrees.count(p.first)){ degrees[p.first] = 0; } graph[p.first].insert(p.second); degrees[p.second] += 1; } queue<int> q; //1. 入度为0的节点先入队 for(auto& d:degrees){ if(d.second == 0){ q.push(d.first); } } if(q.empty()){ return false; } //出队入度为0的 while(!q.empty()){ int id = q.front(); q.pop(); auto children = graph[id]; for(auto c : children){ degrees[c] -=1; if(degrees[c] == 0){ q.push(c); } } } //3. 判断是否要有入度不为0的点, for(auto& p:degrees){ if(p.second != 0){ return false; } } return true; } }; int main(){ Solution s; vector<pair<int,int>> p = {{1,0},{0,1}}; bool b = s.canFinish(2,p); cout<<b<<endl; return 0; }
20.1375
75
0.443824
[ "vector" ]
157d0fe9ed7fb43ad21aa18bfb5d85956e005b08
486
cpp
C++
Algorithms/Implementation/Easy/The-Hurdle-Race.cpp
Justin-Teng/HackerRank
bb501715d4fb0322ccffa70b75c4d6df1463a334
[ "MIT" ]
null
null
null
Algorithms/Implementation/Easy/The-Hurdle-Race.cpp
Justin-Teng/HackerRank
bb501715d4fb0322ccffa70b75c4d6df1463a334
[ "MIT" ]
null
null
null
Algorithms/Implementation/Easy/The-Hurdle-Race.cpp
Justin-Teng/HackerRank
bb501715d4fb0322ccffa70b75c4d6df1463a334
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> using namespace std; int hurdleRace(int k, vector <int> height) { int maxH = 1; for (int i = 0; i < height.size(); i++) { maxH = max(maxH, height[i]); } return max(maxH-k, 0); } int main() { int n; int k; cin >> n >> k; vector<int> height(n); for(int height_i = 0; height_i < n; height_i++){ cin >> height[height_i]; } int result = hurdleRace(k, height); cout << result << endl; return 0; }
19.44
52
0.530864
[ "vector" ]
157d4c9c8d1816dd8675e6c5a368aa0bd87bb5bf
17,875
hpp
C++
staticdb/execution.hpp
TyRoXx/staticdb
de855406252198729deb3f9b5a677ab965398df4
[ "MIT" ]
null
null
null
staticdb/execution.hpp
TyRoXx/staticdb
de855406252198729deb3f9b5a677ab965398df4
[ "MIT" ]
null
null
null
staticdb/execution.hpp
TyRoXx/staticdb
de855406252198729deb3f9b5a677ab965398df4
[ "MIT" ]
null
null
null
#ifndef STATICDB_EXECUTION_HPP #define STATICDB_EXECUTION_HPP #include <staticdb/expressions.hpp> #include <staticdb/layout.hpp> #include <staticdb/storage.hpp> #include <staticdb/bit_source.hpp> #include <staticdb/multiply.hpp> namespace staticdb { namespace execution { template <class Storage> struct storage_pointer { Storage *storage; address where; explicit storage_pointer(Storage &storage, address where) : storage(&storage) , where(where) { } }; template <class Storage> struct basic_array_accessor { storage_pointer<Storage> begin; layouts::layout element_layout; explicit basic_array_accessor(storage_pointer<Storage> begin, layouts::layout element_layout) : begin(begin) , element_layout(std::move(element_layout)) { } basic_array_accessor copy() const { return basic_array_accessor(begin, element_layout.copy()); } #if SILICIUM_COMPILER_GENERATES_MOVES SILICIUM_DEFAULT_MOVE(basic_array_accessor) #else basic_array_accessor(basic_array_accessor &&other) BOOST_NOEXCEPT : begin(other.begin), element_layout(std::move(other.element_layout)) { } basic_array_accessor &operator=(basic_array_accessor &&other) BOOST_NOEXCEPT { begin = other.begin; element_layout = std::move(other.element_layout); return *this; } #endif SILICIUM_DISABLE_COPY(basic_array_accessor) }; template <class PseudoValue> struct basic_tuple { std::vector<PseudoValue> elements; basic_tuple() { } explicit basic_tuple(std::vector<PseudoValue> elements) : elements(std::move(elements)) { } basic_tuple copy() const { basic_tuple result; result.elements = staticdb::copy(elements); return result; } #if SILICIUM_COMPILER_GENERATES_MOVES SILICIUM_DEFAULT_MOVE(basic_tuple) #else basic_tuple(basic_tuple &&other) BOOST_NOEXCEPT : elements(std::move(other.elements)) { } basic_tuple &operator=(basic_tuple &&other) BOOST_NOEXCEPT { elements = std::move(other.elements); return *this; } #endif SILICIUM_DISABLE_COPY(basic_tuple) }; template <class PseudoValue> struct basic_closure { std::unique_ptr<expressions::expression> body; std::unique_ptr<PseudoValue> bound; basic_closure() { } basic_closure copy() const { basic_closure result; result.body = Si::to_unique(body->copy()); result.bound = Si::to_unique(bound->copy()); return result; } #if SILICIUM_COMPILER_GENERATES_MOVES SILICIUM_DEFAULT_MOVE(basic_closure) #else basic_closure(basic_closure &&other) BOOST_NOEXCEPT : body(std::move(other.body)), bound(std::move(other.bound)) { } basic_closure &operator=(basic_closure &&other) BOOST_NOEXCEPT { body = std::move(other.body); bound = std::move(other.bound); return *this; } #endif SILICIUM_DISABLE_COPY(basic_closure) }; template <class Storage> struct pseudo_value : Si::non_copyable_variant<values::value, basic_array_accessor<Storage>, basic_tuple<pseudo_value<Storage>>, basic_closure<pseudo_value<Storage>>> { typedef Si::non_copyable_variant<values::value, basic_array_accessor<Storage>, basic_tuple<pseudo_value<Storage>>, basic_closure<pseudo_value<Storage>>> base; template <class A0 #ifdef _MSC_VER , class = typename std::enable_if< !std::is_same<typename std::decay<A0>::type, pseudo_value<Storage>>::value, void>::type #endif > pseudo_value(A0 &&a0) : base(std::forward<A0>(a0)) { } base &as_variant() { return *this; } base const &as_variant() const { return *this; } pseudo_value copy() const { return as_variant().apply_visitor(copying_visitor<pseudo_value>()); } #if SILICIUM_COMPILER_GENERATES_MOVES SILICIUM_DEFAULT_MOVE(pseudo_value) #else pseudo_value(pseudo_value &&other) BOOST_NOEXCEPT : base(std::move(other.as_variant())) { } pseudo_value &operator=(pseudo_value &&other) BOOST_NOEXCEPT { as_variant() = std::move(other.as_variant()); return *this; } #endif SILICIUM_DISABLE_COPY(pseudo_value) }; template <class Storage> address extract_address(pseudo_value<Storage> const &address_value) { return Si::visit<address>( address_value, [](basic_array_accessor<Storage> const &) -> address { throw std::invalid_argument("extract_address called on an array"); }, [](basic_tuple<pseudo_value<Storage>> const &indirect_tuple) -> address { boost::ignore_unused_variable_warning(indirect_tuple); throw std::logic_error("not implemented"); }, [](basic_closure<pseudo_value<Storage>> const &) -> address { throw std::invalid_argument("extract_address called on a closure"); }, [](values::value const &direct_value) -> address { values::tuple const *const direct_tuple = Si::try_get_ptr<values::tuple>(direct_value.as_variant()); if (!direct_tuple) { throw std::invalid_argument("extract_address called on not-a-tuple"); } Si::optional<address> parsed = values::parse_unsigned_integer<address>(*direct_tuple); if (!parsed) { throw std::invalid_argument("extract_address called with non-bitset or too long tuple"); } return *parsed; }); } template <class Storage> pseudo_value<Storage> tuple_at(pseudo_value<Storage> const &tuple, pseudo_value<Storage> const &index) { address index_int = extract_address(index); return Si::visit<pseudo_value<Storage>>( tuple, [](basic_array_accessor<Storage> const &) -> pseudo_value<Storage> { throw std::invalid_argument("tuple_at called on an array"); }, [index_int](basic_tuple<pseudo_value<Storage>> const &indirect_tuple) -> pseudo_value<Storage> { if (index_int >= indirect_tuple.elements.size()) { throw std::invalid_argument("tuple_at called with index out of range"); } return indirect_tuple.elements[static_cast<size_t>(index_int)].copy(); }, [](basic_closure<pseudo_value<Storage>> const &) -> pseudo_value<Storage> { throw std::invalid_argument("tuple_at called on a closure"); }, [index_int](values::value const &direct_value) -> pseudo_value<Storage> { values::tuple const *const direct_tuple = Si::try_get_ptr<values::tuple>(direct_value.as_variant()); if (!direct_tuple) { throw std::invalid_argument("tuple_at called on not-a-tuple"); } if (index_int >= direct_tuple->elements.size()) { throw std::invalid_argument("tuple_at called with index out of range"); } return pseudo_value<Storage>(direct_tuple->elements[static_cast<size_t>(index_int)].copy()); }); } template <class Storage> values::value reduce_value(pseudo_value<Storage> const &complex_value) { return Si::visit<values::value>(complex_value, [](basic_array_accessor<Storage> const &) -> values::value { throw std::logic_error("not implemented"); }, [](basic_tuple<pseudo_value<Storage>> const &tuple) -> values::value { std::vector<values::value> simple_elements; simple_elements.reserve(tuple.elements.size()); for (pseudo_value<Storage> const &element : tuple.elements) { simple_elements.emplace_back(reduce_value(element)); } return values::value(values::tuple(std::move(simple_elements))); }, [](basic_closure<pseudo_value<Storage>> const &) -> values::value { throw std::invalid_argument("Cannot reduce closure to a simple value"); }, [](values::value const &direct_value) -> values::value { return direct_value.copy(); }); } template <class Storage> pseudo_value<Storage> execute_closure(pseudo_value<Storage> const &maybe_closure, pseudo_value<Storage> const &argument_) { typedef pseudo_value<Storage> value_type; typedef execution::basic_closure<value_type> closure_type; closure_type const *const is_closure = Si::try_get_ptr<closure_type>(maybe_closure); if (!is_closure) { throw std::logic_error("not implemented"); } values::value const *const simple_argument = Si::try_get_ptr<values::value>(argument_); if (!simple_argument) { throw std::logic_error("not implemented"); } values::value const *const simple_bound = Si::try_get_ptr<values::value>(*is_closure->bound); if (!simple_bound) { throw std::logic_error("not implemented"); } return expressions::execute(*is_closure->body, *simple_argument, *simple_bound); } template <class Storage> bool extract_bool(pseudo_value<Storage> const &boolean) { values::value const *const simple_value = Si::try_get_ptr<values::value>(boolean); if (!simple_value) { throw std::logic_error("not implemented"); } values::bit const *const bit = Si::try_get_ptr<values::bit>(simple_value->as_variant()); if (!bit) { throw std::logic_error("not implemented"); } return bit->is_set; } const address address_size_in_bytes(8); template <class Storage> address deserialize_address(storage_pointer<Storage> const &begin) { address result = 0; assert(sizeof(result) == address_size_in_bytes); auto byte_source = begin.storage->read_at(begin.where); for (address i = 0; i < address_size_in_bytes; ++i) { Si::optional<byte> digit = Si::get(byte_source); if (!digit) { throw std::invalid_argument("deserialize_address needs more bytes"); } result |= (*digit << (address_size_in_bytes - 1 - i)); } return result; } template <class Storage> address array_length(storage_pointer<Storage> const &array_begin) { address length = deserialize_address(array_begin); return length; } template <class Storage> pseudo_value<Storage> access_value(storage_pointer<Storage> const &element_begin, layouts::layout const &element_layout) { return Si::visit<pseudo_value<Storage>>( element_layout.as_variant(), [](layouts::unit) -> pseudo_value<Storage> { throw std::logic_error("not implemented"); }, [](layouts::tuple const &) -> pseudo_value<Storage> { throw std::logic_error("not implemented"); }, [](layouts::array const &) -> pseudo_value<Storage> { throw std::logic_error("not implemented"); }, [&element_begin](layouts::bitset const &bitset_) -> pseudo_value<Storage> { std::vector<values::value> bits; bits.reserve(bitset_.length); assert(element_begin.where % 8 == 0); auto byte_reader = element_begin.storage->read_at(element_begin.where / address(8)); auto bit_reader = make_byte_to_bit_source(byte_reader); for (address i = 0; i < bitset_.length; ++i) { Si::optional<values::bit> const bit_read = Si::get(bit_reader); if (!bit_read) { throw std::logic_error("not implemented"); } bits.emplace_back(*bit_read); } return pseudo_value<Storage>(values::value(values::tuple(std::move(bits)))); }, [](layouts::variant const &) -> pseudo_value<Storage> { throw std::logic_error("not implemented"); }); } template <class Storage> Si::optional<pseudo_value<Storage>> array_get(storage_pointer<Storage> const &array_begin, address index, layouts::layout const &element) { Si::overflow_or<address> first_element = array_begin.where + (address_size_in_bytes * address(8)); Si::overflow_or<address> element_size_in_bits = layout_size_in_bits(element); Si::overflow_or<address> wanted_element = first_element + (element_size_in_bits * index); if (wanted_element.is_overflow()) { return Si::none; } return access_value(storage_pointer<Storage>(*array_begin.storage, *wanted_element.value()), element); } template <class Storage> Si::optional<pseudo_value<Storage>> run_filter(pseudo_value<Storage> const &container, pseudo_value<Storage> const &predicate) { return Si::visit<Si::optional<pseudo_value<Storage>>>( container, [&predicate](basic_array_accessor<Storage> const &array) -> Si::optional<pseudo_value<Storage>> { std::vector<pseudo_value<Storage>> results; for (address index = 0, length = array_length(array.begin); index < length; ++index) { Si::optional<pseudo_value<Storage>> element = array_get(array.begin, index, array.element_layout); if (!element) { return Si::none; } pseudo_value<Storage> const is_good = execute_closure(predicate, *element); if (!extract_bool(is_good)) { continue; } results.emplace_back(std::move(*element)); } return pseudo_value<Storage>(basic_tuple<pseudo_value<Storage>>(std::move(results))); }, [](basic_tuple<pseudo_value<Storage>> const &) -> Si::optional<pseudo_value<Storage>> { throw std::logic_error("not implemented"); }, [](basic_closure<pseudo_value<Storage>> const &) -> Si::optional<pseudo_value<Storage>> { throw std::invalid_argument("run_filter called on a closure"); }, [](values::value const &) -> Si::optional<pseudo_value<Storage>> { throw std::logic_error("not implemented"); }); } template <class Storage> Si::optional<pseudo_value<Storage>> execute(expressions::expression const &program, pseudo_value<Storage> const &argument_, pseudo_value<Storage> const &bound_) { typedef pseudo_value<Storage> value_type; return Si::visit<Si::optional<value_type>>( program, [](expressions::literal const &literal_) -> Si::optional<value_type> { return value_type(literal_.value.copy()); }, [&argument_](expressions::argument) -> Si::optional<value_type> { return argument_.copy(); }, [&bound_](expressions::bound) -> Si::optional<value_type> { return bound_.copy(); }, [&argument_, &bound_](expressions::make_tuple const &make_tuple_) -> Si::optional<value_type> { basic_tuple<value_type> result; result.elements.reserve(make_tuple_.elements.size()); for (expressions::expression const &element : make_tuple_.elements) { Si::optional<value_type> evaluated_element = execute(element, argument_, bound_); if (!evaluated_element) { return Si::none; } result.elements.emplace_back(std::move(*evaluated_element)); } return value_type(std::move(result)); }, [&argument_, &bound_](expressions::tuple_at const &tuple_at_) -> Si::optional<value_type> { Si::optional<value_type> const tuple_ = execute(*tuple_at_.tuple, argument_, bound_); if (!tuple_) { return Si::none; } Si::optional<value_type> const index = execute(*tuple_at_.index, argument_, bound_); if (!index) { return Si::none; } Si::optional<value_type> element = tuple_at(*tuple_, *index); return element; }, [&argument_](expressions::branch const &) -> Si::optional<value_type> { throw std::logic_error("not implemented"); }, [&argument_, &bound_](expressions::lambda const &lambda_) -> Si::optional<value_type> { basic_closure<value_type> closure; closure.body = Si::to_unique(lambda_.body->copy()); Si::optional<value_type> bound = execute(*lambda_.bound, argument_, bound_); if (!bound) { return Si::none; } closure.bound = Si::to_unique(std::move(*bound)); return value_type(std::move(closure)); }, [](expressions::call const &) -> Si::optional<value_type> { throw std::logic_error("not implemented"); }, [&argument_, &bound_](expressions::filter const &filter_) -> Si::optional<value_type> { Si::optional<value_type> const input = execute(*filter_.input, argument_, bound_); if (!input) { return Si::none; } Si::optional<value_type> const predicate = execute(*filter_.predicate, argument_, bound_); if (!predicate) { return Si::none; } return run_filter(*input, *predicate); }, [](expressions::equals const &) -> Si::optional<value_type> { throw std::logic_error("not implemented"); }); } } } #endif
32.918969
114
0.613203
[ "vector" ]
1583ab6625bfceca11f583880bf7a3f084ae15e6
1,025
cc
C++
src/printer.cc
were/json-parser
41364252e300843835822763002ef2d40addbd84
[ "MIT" ]
null
null
null
src/printer.cc
were/json-parser
41364252e300843835822763002ef2d40addbd84
[ "MIT" ]
null
null
null
src/printer.cc
were/json-parser
41364252e300843835822763002ef2d40addbd84
[ "MIT" ]
null
null
null
#include "json/visitor.h" namespace json { void JSONPrinter::PrintIndent() { os << std::string(indent, ' '); } void JSONPrinter::Visit(Object* node) { os << "{\n"; indent += 2; bool first = true; for (auto& elem : *node->As<plain::Object>()) { if (!first) os << ",\n"; PrintIndent(); os << '"' << elem.first << '"' << ": "; elem.second->Accept(this); first = false; } os << "\n"; indent -= 2; PrintIndent(); os << "}"; } void JSONPrinter::Visit(Array* node) { bool first = true; os << "["; for (auto& elem : *node->As<plain::Array>()) { if (!first) os << ", "; elem->Accept(this); first = false; } os << "]"; } void JSONPrinter::Visit(Int* node) { os << *node->As<int64_t>(); } void JSONPrinter::Visit(Bool* node) { os << ((*node->As<bool>()) ? "\"true\"" : "\"false\""); } void JSONPrinter::Visit(Float* node) { os << (*node->As<double>()); } void JSONPrinter::Visit(String* node) { os << '"' << (*node->As<std::string>()) << '"'; } } // namespace json
22.777778
89
0.527805
[ "object" ]
1586e46dfa8e21485eb7cc325ff84cebde3fb7c0
488
cpp
C++
Code/shapes/plane.cpp
TheVeggydude/raytracer
5d927a3f7ab680dfe54810f8c0e00ad7e055cee0
[ "MIT" ]
null
null
null
Code/shapes/plane.cpp
TheVeggydude/raytracer
5d927a3f7ab680dfe54810f8c0e00ad7e055cee0
[ "MIT" ]
null
null
null
Code/shapes/plane.cpp
TheVeggydude/raytracer
5d927a3f7ab680dfe54810f8c0e00ad7e055cee0
[ "MIT" ]
null
null
null
#include "plane.h" #include <iostream> #include <math.h> /************************** Plane **********************************/ void Plane::computeTexCoords(Point center, double* u, double* v) { *u = 0.0; *v = 0.0; } Hit Plane::intersect(const Ray &ray) { float d = normal.dot(ray.D); Vector p = origin - ray.O; double t = p.dot(normal) / d; if (t >= 0) { if(d < -1e-6){ return Hit(t, -normal); } return Hit(t, normal); } return Hit::NO_HIT(); }
16.827586
69
0.491803
[ "vector" ]
1588144b7526b792eec3adf80f6a01e9a5130c93
457
cpp
C++
src/common/string.cpp
metthal/ccool
5b26208fbd61c0f115e37fbbce57716ceaed398b
[ "MIT" ]
null
null
null
src/common/string.cpp
metthal/ccool
5b26208fbd61c0f115e37fbbce57716ceaed398b
[ "MIT" ]
null
null
null
src/common/string.cpp
metthal/ccool
5b26208fbd61c0f115e37fbbce57716ceaed398b
[ "MIT" ]
null
null
null
#include "string.hpp" namespace ccool { std::vector<std::string_view> split(std::string_view str, char delim) { std::vector<std::string_view> result; std::string::size_type pos = 0, last_pos = 0; while ((pos = str.find(delim, last_pos)) != std::string::npos) { result.emplace_back(str.begin() + last_pos, str.begin() + pos); last_pos = pos + 1; } result.emplace_back(str.begin() + last_pos, str.end()); return result; } } // namespace ccool
21.761905
69
0.673961
[ "vector" ]
158948bd0469a6325538ec9647f3c137189debff
15,659
cpp
C++
multimedia/directx/dmusic/dmusic/dmksclk.cpp
npocmaka/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
17
2020-11-13T13:42:52.000Z
2021-09-16T09:13:13.000Z
multimedia/directx/dmusic/dmusic/dmksclk.cpp
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
2
2020-10-19T08:02:06.000Z
2020-10-19T08:23:18.000Z
multimedia/directx/dmusic/dmusic/dmksclk.cpp
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
14
2020-11-14T09:43:20.000Z
2021-08-28T08:59:57.000Z
// // DMKSClk.CPP // // Copyright (c) 1997-1999 Microsoft Corporation // // Wrapper for using a KS clock as the DirectMusic master clock // // // #include <objbase.h> #include <winerror.h> #include "dmusicp.h" #include "debug.h" #include "resource.h" // Since we only allocate one of these clocks in the entire system, // this stuff is global. // // We have to be able to get the process id of someone with a handle to // the clock. Since the original creator might go away before other users, // we store the process id of everyone who uses the clock. This implies // a max limit on concurrent processes using it. // #define MAX_CLOCK_SHARERS 64 // Max processes who can access clock // at once. typedef struct KSCLOCKSHARE { LONG cRef; // Count of processes using handle struct { HANDLE hKsClock; // This user's handle and DWORD dwProcessId; // process id } aUsers[MAX_CLOCK_SHARERS]; } *PKSCLOCKSHARE; class CKsClock : public IReferenceClock, public IMasterClockPrivate { public: // IUnknown // STDMETHODIMP QueryInterface(const IID &iid, void **ppv); STDMETHODIMP_(ULONG) AddRef(); STDMETHODIMP_(ULONG) Release(); // IReferenceClock // STDMETHODIMP GetTime(REFERENCE_TIME *pTime); STDMETHODIMP AdviseTime(REFERENCE_TIME baseTime, REFERENCE_TIME streamTime, HANDLE hEvent, DWORD * pdwAdviseCookie); STDMETHODIMP AdvisePeriodic(REFERENCE_TIME startTime, REFERENCE_TIME periodTime, HANDLE hSemaphore, DWORD * pdwAdviseCookie); STDMETHODIMP Unadvise(DWORD dwAdviseCookie); // IMasterClockPrivate STDMETHODIMP GetParam(REFGUID rguidType, LPVOID pBuffer, DWORD cbSize); // Class // CKsClock(); ~CKsClock(); HRESULT Init(); private: long m_cRef; HRESULT CreateKsClockShared(); void DeleteKsClockShared(); HRESULT CreateKsClockHandle(); HRESULT DuplicateKsClockHandle(); private: static const char m_cszKsClockMemory[]; // Name of shared memory object static const char m_cszKsClockMutex[]; // Name of mutex protecting shared memory static LONG m_lSharedMemoryInitialized; // Has this process initialized shared memory? static HANDLE m_hFileMapping; // File mapping handle for shared memory static PKSCLOCKSHARE m_pShared; // Pointer to shared memory static HANDLE m_hKsClockMutex; // Mutex for shared memory access static HANDLE m_hClock; // Clock handle in this process }; static HRESULT CreateKsClock(IReferenceClock **ppClock, CMasterClock *pMasterClock); const char CKsClock::m_cszKsClockMemory[] = "DirectMusicKsClock"; const char CKsClock::m_cszKsClockMutex[] = "DirectMusicKsClockMutex"; LONG CKsClock::m_lSharedMemoryInitialized = 0; HANDLE CKsClock::m_hFileMapping = NULL; PKSCLOCKSHARE CKsClock::m_pShared = NULL; HANDLE CKsClock::m_hKsClockMutex = NULL; HANDLE CKsClock::m_hClock; #ifdef DEAD_CODE // AddKsClocks // // Add Ks clock to the list of clocks. // HRESULT AddKsClocks(CMasterClock *pMasterClock) { HANDLE hClock; // Make sure we can create a default Ks clock // if (!OpenDefaultDevice(KSCATEGORY_CLOCK, &hClock)) { TraceI(0, "Could not create Ks clock\n"); return S_FALSE; } CloseHandle(hClock); CLOCKENTRY ce; ZeroMemory(&ce, sizeof(ce)); ce.cc.dwSize = sizeof(ce); ce.cc.guidClock = GUID_SysClock; ce.cc.ctType = DMUS_CLOCK_SYSTEM; ce.dwFlags = DMUS_CLOCKF_GLOBAL; ce.pfnGetInstance = CreateKsClock; int cch; int cchMax = sizeof(ce.cc.wszDescription) / sizeof(WCHAR); char sz[sizeof(ce.cc.wszDescription) / sizeof(WCHAR)]; cch = LoadString(g_hModule, IDS_SYSTEMCLOCK, sz, sizeof(sz)); if (cch) { MultiByteToWideChar( CP_OEMCP, 0, sz, -1, ce.cc.wszDescription, sizeof(ce.cc.wszDescription)); } else { *ce.cc.wszDescription = 0; } return pMasterClock->AddClock(&ce); } #endif // CreateKsClock // // Return an IReferenceClock based on the one Ks clock in the system // static HRESULT CreateKsClock(IReferenceClock **ppClock) { HRESULT hr; TraceI(0, "Creating KS clock\n"); CKsClock *pClock = new CKsClock(); hr = pClock->Init(); if (FAILED(hr)) { delete pClock; return hr; } hr = pClock->QueryInterface(IID_IReferenceClock, (void**)ppClock); pClock->Release(); return hr; } // CKsClock::CKsClock() // // CKsClock::CKsClock() : m_cRef(1) { } // CKsClock::~CKsClock() // // CKsClock::~CKsClock() { if (InterlockedDecrement(&m_lSharedMemoryInitialized) == 0) { DeleteKsClockShared(); } } // CKsClock::QueryInterface // // Standard COM implementation // STDMETHODIMP CKsClock::QueryInterface(const IID &iid, void **ppv) { V_INAME(IDirectMusic::QueryInterface); V_REFGUID(iid); V_PTRPTR_WRITE(ppv); if (iid == IID_IUnknown || iid == IID_IReferenceClock) { *ppv = static_cast<IReferenceClock*>(this); } else if (iid == IID_IMasterClockPrivate) { *ppv = static_cast<IMasterClockPrivate*>(this); } else { *ppv = NULL; return E_NOINTERFACE; } AddRef(); return S_OK; } // CKsClock::AddRef // STDMETHODIMP_(ULONG) CKsClock::AddRef() { InterlockedIncrement(&m_cRef); return m_cRef; } // CKsClock::Release // STDMETHODIMP_(ULONG) CKsClock::Release() { if (InterlockedDecrement(&m_cRef) == 0) { delete this; return 0; } return m_cRef; } // CKsClock::Init // HRESULT CKsClock::Init() { HRESULT hr; if (InterlockedIncrement(&m_lSharedMemoryInitialized) == 1) { hr = CreateKsClockShared(); if (FAILED(hr)) { return hr; } } return S_OK; } // CKsClock::CreateKsClockShared // // Initialize the shared memory object in this process. // Make sure a handle to the Ks clock exists in this process. // HRESULT CKsClock::CreateKsClockShared() { HRESULT hr; DWORD dwErr; // Create and take the mutex up front. This is neccesary to guarantee that if // we are the first process in the system to create this object, then we do // initialization before anyone else can access the shared memory object. // m_hKsClockMutex = CreateMutex(NULL, // Default security descriptor FALSE, // Own mutex if we are first instance m_cszKsClockMutex); if (m_hKsClockMutex == NULL) { TraceI(0, "CreateMutex failed! [%d]\n", GetLastError()); return E_OUTOFMEMORY; } WaitForSingleObject(m_hKsClockMutex, INFINITE); // Create the file mapping and view of the shared memory, noticing if we are the first // object to create it. // m_hFileMapping = CreateFileMapping(INVALID_HANDLE_VALUE, // Use paging file NULL, // Default security descriptor PAGE_READWRITE, 0, // High DWORD of size sizeof(KSCLOCKSHARE), m_cszKsClockMemory); dwErr = GetLastError(); if (m_hFileMapping == NULL) { ReleaseMutex(m_hKsClockMutex); return HRESULT_FROM_WIN32(dwErr); } BOOL fFirst = (dwErr != ERROR_ALREADY_EXISTS); m_pShared = (PKSCLOCKSHARE)MapViewOfFile(m_hFileMapping, FILE_MAP_WRITE, 0, 0, // Start mapping at the beginning 0); // Map entire file if (m_pShared == NULL) { TraceI(0, "MapViewOfFile failed! [%d]\n", GetLastError()); ReleaseMutex(m_hKsClockMutex); return E_OUTOFMEMORY; } // Initialize the refernce count if we are the first process, and increment // it in any case. (Note we're still in the mutex, so we don't need // InterlockedIncrement. // if (fFirst) { m_pShared->cRef = 0; ZeroMemory(m_pShared->aUsers, sizeof(m_pShared->aUsers)); } ++m_pShared->cRef; // If the clock handle doesn't exist yet, create it; else duplicate it. // if (m_pShared->cRef == 1) { hr = CreateKsClockHandle(); } else { hr = DuplicateKsClockHandle(); } // Release the mutex and return success or failure. // ReleaseMutex(m_hKsClockMutex); return hr; } // CKsClock::DeleteKsClockShared // // The last instance of CKsClock in this process is being deleted. // void CKsClock::DeleteKsClockShared() { // If the mutex was never created, then none of the other objects could have // been created. // if (m_hKsClockMutex) { WaitForSingleObject(m_hKsClockMutex, INFINITE); if (m_pShared) { for (int i = 0; i < MAX_CLOCK_SHARERS; i++) { if (m_pShared->aUsers[i].dwProcessId == GetCurrentProcessId()) { m_pShared->aUsers[i].dwProcessId = 0; m_pShared->aUsers[i].hKsClock = NULL; break; } } } if (m_hClock) { CloseHandle(m_hClock); m_hClock = NULL; } if (m_pShared) { UnmapViewOfFile(m_pShared); m_pShared = NULL; } if (m_hFileMapping) { CloseHandle(m_hFileMapping); m_hFileMapping = NULL; } ReleaseMutex(m_hKsClockMutex); CloseHandle(m_hKsClockMutex); } } // CKsClock::CreateKsClockHandle // // Create the first and only Ks clock handle in the system // HRESULT CKsClock::CreateKsClockHandle() { // Attempt to open the clock // if (!OpenDefaultDevice(KSCATEGORY_CLOCK, &m_hClock)) { m_hClock = NULL; TraceI(0, "Could not create Ks clock\n"); return E_FAIL; } KSPROPERTY ksp; KSSTATE state; ksp.Set = KSPROPSETID_Clock; ksp.Id = KSPROPERTY_CLOCK_STATE; ksp.Flags = KSPROPERTY_TYPE_SET; state = KSSTATE_RUN; if (!Property(m_hClock, sizeof(ksp), (PKSIDENTIFIER)&ksp, sizeof(state), &state, NULL)) { CloseHandle(m_hClock); m_hClock = NULL; TraceI(0, "Could not set clock into run state\n"); return E_FAIL; } // Successful clock open. Since we're creating, we know we're the first // instance of the clock and therefore the users array is empty. // m_pShared->aUsers[0].hKsClock = m_hClock; m_pShared->aUsers[0].dwProcessId = GetCurrentProcessId(); return S_OK; } // CKsClock::DuplicateKsClockHandle // // There is already a Ks clock in the system. Duplicate the handle in this process // context. // HRESULT CKsClock::DuplicateKsClockHandle() { // Find another user of the clock; also, find a slot in the users array for // this process // int iEmptySlot = -1; int iOtherProcess = -1; HANDLE hClock = NULL; for (int i = 0; (i < MAX_CLOCK_SHARERS) && (iEmptySlot == -1 || !hClock); i++) { if (m_pShared->aUsers[i].dwProcessId == 0 && iEmptySlot == -1) { iEmptySlot = i; continue; } if (hClock) { continue; } HANDLE hOtherProcess = OpenProcess(PROCESS_DUP_HANDLE, FALSE, m_pShared->aUsers[i].dwProcessId); if (hOtherProcess == NULL) { TraceI(0, "OpenProcess: %d\n", GetLastError()); m_pShared->aUsers[i].dwProcessId = 0; m_pShared->aUsers[i].hKsClock = NULL; continue; } BOOL fSuccess = DuplicateHandle(hOtherProcess, m_pShared->aUsers[i].hKsClock, GetCurrentProcess(), &hClock, GENERIC_READ|GENERIC_WRITE, FALSE, 0); if (!fSuccess) { TraceI(0, "DuplicateHandle: %d\n", GetLastError()); } CloseHandle(hOtherProcess); if (!fSuccess) { // Other process exists, but could not duplicate handle // m_pShared->aUsers[i].dwProcessId = 0; m_pShared->aUsers[i].hKsClock = NULL; hClock = NULL; } } assert(iEmptySlot != -1); assert(hClock); m_hClock = hClock; m_pShared->aUsers[iEmptySlot].dwProcessId = GetCurrentProcessId(); m_pShared->aUsers[iEmptySlot].hKsClock = hClock; return S_OK; } STDMETHODIMP CKsClock::GetTime(REFERENCE_TIME *pTime) { KSPROPERTY ksp; ksp.Set = KSPROPSETID_Clock; ksp.Id = KSPROPERTY_CLOCK_TIME; ksp.Flags = KSPROPERTY_TYPE_GET; if (!Property(m_hClock, sizeof(ksp), (PKSIDENTIFIER)&ksp, sizeof(*pTime), pTime, NULL)) { return WIN32ERRORtoHRESULT(GetLastError()); } return S_OK; } STDMETHODIMP CKsClock::AdviseTime(REFERENCE_TIME baseTime, REFERENCE_TIME streamTime, HANDLE hEvent, DWORD * pdwAdviseCookie) { return E_NOTIMPL; } STDMETHODIMP CKsClock::AdvisePeriodic(REFERENCE_TIME startTime, REFERENCE_TIME periodTime, HANDLE hSemaphore, DWORD * pdwAdviseCookie) { return E_NOTIMPL; } STDMETHODIMP CKsClock::Unadvise(DWORD dwAdviseCookie) { return E_NOTIMPL; } // // CKsClock::GetParam (IMasterClockPrivate) // // This method is used internally by the port to get the user mode handle of the Ks clock // we're using. The handle is then downloaded to kernel mode where it is referenced as a // file object and used by the filters as the timebase as well. // STDMETHODIMP CKsClock::GetParam(REFGUID rguidType, LPVOID pBuffer, DWORD cbSize) { if (rguidType == GUID_KsClockHandle) { if (cbSize != sizeof(HANDLE)) { return E_INVALIDARG; } *(LPHANDLE)pBuffer = m_hClock; return S_OK; } return DMUS_E_TYPE_UNSUPPORTED; }
26.859348
130
0.555272
[ "object" ]
159167314e7ec36f0b59a5b5194dbf98d362f1d8
5,546
cpp
C++
test/conv_bias.cpp
luxteam/MIOpen
f7b73815c1f9c3ccb95ed759590277de0be74cef
[ "MIT" ]
2
2020-01-13T10:34:34.000Z
2020-04-21T13:35:47.000Z
test/conv_bias.cpp
luxteam/MIOpen
f7b73815c1f9c3ccb95ed759590277de0be74cef
[ "MIT" ]
5
2019-07-22T09:45:51.000Z
2019-10-21T08:35:47.000Z
test/conv_bias.cpp
luxteam/MIOpen
f7b73815c1f9c3ccb95ed759590277de0be74cef
[ "MIT" ]
2
2021-04-12T08:27:15.000Z
2021-05-11T12:01:20.000Z
/******************************************************************************* * * MIT License * * Copyright (c) 2018 Advanced Micro Devices, Inc. * * 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. * *******************************************************************************/ #include "test.hpp" #include <array> #include <iostream> #include <iterator> #include <limits> #include <memory> #include <miopen/convolution.hpp> #include <miopen/miopen.h> #include <miopen/tensor.hpp> #include <miopen/stringutils.hpp> #include <utility> #include "network_data.hpp" #include "driver.hpp" #include "get_handle.hpp" #include "tensor_holder.hpp" #include "verify.hpp" #include "cpu_bias.hpp" struct scalar_gen_random_integer { unsigned long min_val = 1; unsigned long max_val = 16; double operator()() const { return static_cast<double>(min_val + std::rand() % (max_val - min_val + 1)); } }; template <class T> struct verify_backwards_bias { tensor<T> output; tensor<T> bias; tensor<T> cpu() const { auto rbias = bias; cpu_bias_backward_data(output, rbias); return rbias; } tensor<T> gpu() const { auto&& handle = get_handle(); auto rbias = bias; auto out_dev = handle.Write(output.data); auto bias_dev = handle.Write(rbias.data); float alpha = 1, beta = 0; ConvolutionBackwardBias( handle, &alpha, output.desc, out_dev.get(), &beta, rbias.desc, bias_dev.get()); rbias.data = handle.Read<T>(bias_dev, rbias.data.size()); return rbias; } void fail(int = 0) const { std::cout << "Backwards bias: " << std::endl; std::cout << "Output tensor: " << output.desc.ToString() << std::endl; std::cout << "Bias tensor: " << bias.desc.ToString() << std::endl; } }; template <class T, std::size_t ConvDim> struct conv_bias_driver : test_driver { tensor<T> output; void run() { std::vector<std::size_t> bias_lens(2 + ConvDim, 1); bias_lens[1] = output.desc.GetLengths()[1]; tensor<T> bias(bias_lens); size_t total_mem = bias.desc.GetNumBytes() + output.desc.GetNumBytes(); // estimate based on backward pass size_t device_mem = get_handle().GetGlobalMemorySize(); if(total_mem >= device_mem) { show_command(); std::cout << "Config requires " << total_mem << " Bytes to write all necessary tensors to GPU. GPU has " << device_mem << " Bytes of memory." << std::endl; return; } verify(verify_backwards_bias<T>{output, bias}); } }; template <class T> struct conv2d_bias_driver : public conv_bias_driver<T, 2> { std::string conv_dim_type; conv2d_bias_driver() { this->add(conv_dim_type, "conv_dim_type", this->generate_data({"conv2d"})); auto gen_value = [](auto... is) { return scalar_gen_random_integer{1, miopen_type<T>{} == miopenHalf ? 5 : 17}() * tensor_elem_gen_checkboard_sign{}(is...); }; this->add(this->output, "output", this->get_tensor(get_inputs, gen_value)); } }; template <class T> struct conv3d_bias_driver : public conv_bias_driver<T, 3> { std::string conv_dim_type; conv3d_bias_driver() { this->add(conv_dim_type, "conv_dim_type", this->generate_data({"conv3d"})); auto gen_value = [](auto... is) { return scalar_gen_random_integer{1, miopen_type<T>{} == miopenHalf ? 5 : 17}() * tensor_elem_gen_checkboard_sign{}(is...); }; this->add(this->output, "output", this->get_tensor(get_3d_conv_input_shapes, gen_value)); } }; int main(int argc, const char* argv[]) { std::vector<std::string> as(argv + 1, argv + argc); bool do_conv2d = std::any_of(as.begin(), as.end(), [](auto&& arg) { return arg == "conv2d"; }); bool do_conv3d = std::any_of(as.begin(), as.end(), [](auto&& arg) { return arg == "conv3d"; }); bool do_all = std::any_of(as.begin(), as.end(), [](auto&& arg) { return arg == "--all"; }); if(!do_conv2d and do_conv3d) { test_drive<conv3d_bias_driver>(argc, argv); } else if((do_conv2d and do_conv3d) or do_all) { test_drive<conv2d_bias_driver>(argc, argv); test_drive<conv3d_bias_driver>(argc, argv); } else { test_drive<conv2d_bias_driver>(argc, argv); } }
30.98324
99
0.614858
[ "vector" ]
15924231ba451f845d8aa55336c9fcdd78f7d673
1,086
cpp
C++
array/Factorial_of_large_number/CPP/CPP_Factorial_of_large_number.cpp
leonardrizta/Problem-Solving
66df1df75f582a93ab783de621c1f2bb7e0d2841
[ "Apache-2.0" ]
1
2021-10-01T05:04:15.000Z
2021-10-01T05:04:15.000Z
array/Factorial_of_large_number/CPP/CPP_Factorial_of_large_number.cpp
leonardrizta/Problem-Solving
66df1df75f582a93ab783de621c1f2bb7e0d2841
[ "Apache-2.0" ]
null
null
null
array/Factorial_of_large_number/CPP/CPP_Factorial_of_large_number.cpp
leonardrizta/Problem-Solving
66df1df75f582a93ab783de621c1f2bb7e0d2841
[ "Apache-2.0" ]
null
null
null
#include <bits/stdc++.h> #define ln "\n" #define ll long long int #define vll vector<ll> using namespace std; void solve() { ll n; cin >> n; // for which number you want the factorial vll v; //declaring a vector to store a number in reverse order v.push_back(1); for (ll i = 2; i <= n; i++) { ll carry = 0; for (ll j = 0; j < v.size(); j++) { ll temp = v[j] * i + carry; v[j] = temp % 10; carry = temp / 10; } // push carry to end of the vector while (carry) { v.push_back(carry % 10); carry /= 10; } } // as the number are stored in end to begin, we have to print in this manner for (auto i = v.rbegin(); i != v.rend(); i++) { cout <<*i; } cout << ln; // v.clear(); } int main() { std::ios::sync_with_stdio(false); ll T =1; // cin >> T; // N test cases remove comment while (T--) { solve(); } return 0; }
20.490566
81
0.449355
[ "vector" ]
1592f57f375e923e38760ec0007c3a7af6febc03
19,974
cpp
C++
Game/SystemApi.cpp
RMDarth/Chewman-Vulkan
7ebd3fb378b78c67844055c5bf1dc51c54a48324
[ "MIT" ]
65
2019-10-22T01:06:07.000Z
2022-03-26T14:41:28.000Z
Game/SystemApi.cpp
heitaoflower/Chewman-Vulkan
dfd4d8b4e58b8a01e5f41f256795ec6e0d2b633e
[ "MIT" ]
9
2019-09-24T15:51:14.000Z
2021-08-19T09:52:03.000Z
Game/SystemApi.cpp
heitaoflower/Chewman-Vulkan
dfd4d8b4e58b8a01e5f41f256795ec6e0d2b633e
[ "MIT" ]
6
2020-01-31T08:51:14.000Z
2021-01-08T05:49:47.000Z
// Chewman Vulkan game // Copyright (c) 2018-2019, Igor Barinov // Licensed under the MIT License #include "SystemApi.h" #include <SDL2/SDL.h> #include <iostream> #ifdef __ANDROID__ #include <jni.h> #endif namespace Chewman { namespace System { #ifdef __ANDROID__ void callVoidMethod(const char* const name) { JNIEnv* env = (JNIEnv*)SDL_AndroidGetJNIEnv(); jobject activity = (jobject)SDL_AndroidGetActivity(); jclass activityClass = env->GetObjectClass(activity); jmethodID methodId = env->GetMethodID(activityClass, name, "()V"); env->CallVoidMethod(activity, methodId); env->DeleteLocalRef(activity); env->DeleteLocalRef(activityClass); } bool callBoolMethod(const std::string& name) { JNIEnv* env = (JNIEnv*)SDL_AndroidGetJNIEnv(); jobject activity = (jobject)SDL_AndroidGetActivity(); jclass activityClass = env->GetObjectClass(activity); jmethodID methodId = env->GetMethodID(activityClass, name.c_str(), "()Z"); bool result = env->CallBooleanMethod(activity, methodId); env->DeleteLocalRef(activity); env->DeleteLocalRef(activityClass); return result; } #endif int getSystemVersion() { #ifdef __ANDROID__ JNIEnv* env = (JNIEnv*)SDL_AndroidGetJNIEnv(); jobject activity = (jobject)SDL_AndroidGetActivity(); jclass activityClass = env->GetObjectClass(activity); jmethodID methodId = env->GetMethodID(activityClass, "getAndroidVersion", "()I"); int version = env->CallIntMethod(activity, methodId); env->DeleteLocalRef(activity); env->DeleteLocalRef(activityClass); return version; #endif return 0; } bool acceptQuary(const std::string& message, const std::string& title, const std::string& accept, const std::string& decline) { const SDL_MessageBoxButtonData buttons[] = { { 0, 0, accept.c_str()}, { 0, 1, decline.c_str()} }; const SDL_MessageBoxData messageBoxData = { SDL_MESSAGEBOX_INFORMATION, /* .flags */ nullptr, /* .window */ title.c_str(), /* .title */ message.c_str(), /* .message */ SDL_arraysize(buttons), /* .numbuttons */ buttons, /* .buttons */ nullptr }; int buttonId; if (SDL_ShowMessageBox(&messageBoxData, &buttonId) < 0) { SDL_Log("Error displaying message box"); return false; } return !(buttonId == -1 || buttonId == 1); } void restartApp() { #ifdef __ANDROID__ callVoidMethod("restartApp"); #else // TODO: Add Desktop restart functionality exit(0); #endif } void exitApp() { SDL_Quit(); exit(0); } // This is temporary to test buying functionality on Desktop build bool isBought = false; bool isLogged = false; void buyItem(const std::string& id) { #ifdef __ANDROID__ if (id == "levels") callVoidMethod("purchaseCampaign"); #else isBought = !isBought; #endif } bool isItemBought(const std::string& id) { #ifdef __ANDROID__ if (id == "levels") return callBoolMethod("isCampaignPurchased"); return false; #else return isBought; #endif } void initServices() { } void logInServices() { #ifdef __ANDROID__ callVoidMethod("logInGoogle"); #else isLogged = true; #endif } void logOutServices() { #ifdef __ANDROID__ callVoidMethod("logOutGoogle"); #else isLogged = false; #endif } bool isLoggedServices() { #ifdef __ANDROID__ return callBoolMethod("isGoogleLogged"); #else return isLogged; #endif } bool isSignedServices() { #ifdef __ANDROID__ return callBoolMethod("isGoogleEverSigned"); #else return false; #endif } bool isServicesAvailable() { #ifdef __ANDROID__ return callBoolMethod("isGoogleServicesAvailable"); #else return true; #endif } void showLeaderboard(bool weekly) { #ifdef __ANDROID__ JNIEnv* env = (JNIEnv*)SDL_AndroidGetJNIEnv(); jobject activity = (jobject)SDL_AndroidGetActivity(); jclass activityClass = env->GetObjectClass(activity); jmethodID methodId = env->GetMethodID(activityClass, "showLeaderboard", "(Z)V"); env->CallVoidMethod(activity, methodId, weekly); env->DeleteLocalRef(activity); env->DeleteLocalRef(activityClass); #endif } void showTimeLeaderboard(int level, bool weekly) { #ifdef __ANDROID__ JNIEnv* env = (JNIEnv*)SDL_AndroidGetJNIEnv(); jobject activity = (jobject)SDL_AndroidGetActivity(); jclass activityClass = env->GetObjectClass(activity); jmethodID methodId = env->GetMethodID(activityClass, "showTimeLeaderboard", "(IZ)V"); env->CallVoidMethod(activity, methodId, level, weekly); env->DeleteLocalRef(activity); env->DeleteLocalRef(activityClass); #endif } void showAds(AdHorizontalLayout horizontalLayout, AdVerticalLayout verticalLayout) { #ifdef __ANDROID__ JNIEnv* env = (JNIEnv*)SDL_AndroidGetJNIEnv(); jobject activity = (jobject)SDL_AndroidGetActivity(); jclass activityClass = env->GetObjectClass(activity); jmethodID methodId = env->GetMethodID(activityClass, "showAds", "(II)V"); env->CallVoidMethod(activity, methodId, static_cast<int>(horizontalLayout), static_cast<int>(verticalLayout)); env->DeleteLocalRef(activity); env->DeleteLocalRef(activityClass); #endif } void hideAds() { #ifdef __ANDROID__ callVoidMethod("hideAds"); #endif } bool showVideoAds() { #ifdef __ANDROID__ return callBoolMethod("showVideoAds"); #else return false; #endif } bool wasVideoAdsWatched() { #ifdef __ANDROID__ return callBoolMethod("wasVideoAdsWatched"); #else return false; #endif } std::string achivementTypeToId(AchievementType type) { switch (type) { case AchievementType::Newcomer: return "achievement_newcomer"; case AchievementType::Good_start: return "achievement_good_start"; case AchievementType::Treasure_hunter: return "achievement_treasure_hunter"; case AchievementType::Dungeon_master: return "achievement_dungeon_master"; case AchievementType::Dungeon_emperor: return "achievement_dungeon_emperor"; case AchievementType::Star_collector: return "achievement_star_collector"; case AchievementType::Star_hunter: return "achievement_star_hunter"; case AchievementType::Supernova: return "achievement_supernova"; case AchievementType::Gold_rush: return "achievement_gold_rush"; case AchievementType::Mission_accomplished: return "achievement_mission_accomplished"; case AchievementType::Predator: return "achievement_predator"; case AchievementType::Bomberman: return "achievement_bomberman"; } return ""; } void unlockAchievement(AchievementType achievementType) { #ifdef __ANDROID__ JNIEnv* env = (JNIEnv*)SDL_AndroidGetJNIEnv(); jobject activity = (jobject)SDL_AndroidGetActivity(); jclass activityClass = env->GetObjectClass(activity); jmethodID methodId = env->GetMethodID(activityClass, "unlockAchievement", "(Ljava/lang/String;)V"); // Strings passed to the function need to be converted to a java string object auto achievementId = achivementTypeToId(achievementType); jstring jstr = env->NewStringUTF(achievementId.c_str()); env->CallVoidMethod(activity, methodId, jstr); env->DeleteLocalRef(jstr); env->DeleteLocalRef(activity); env->DeleteLocalRef(activityClass); #endif } void updateAchievement(AchievementType achievementType, int score) { #ifdef __ANDROID__ JNIEnv* env = (JNIEnv*)SDL_AndroidGetJNIEnv(); jobject activity = (jobject)SDL_AndroidGetActivity(); jclass activityClass = env->GetObjectClass(activity); jmethodID methodId = env->GetMethodID(activityClass, "updateAchievement", "(Ljava/lang/String;I)V"); auto achievementId = achivementTypeToId(achievementType); jstring jstr = env->NewStringUTF(achievementId.c_str()); env->CallVoidMethod(activity, methodId, jstr, score); env->DeleteLocalRef(jstr); env->DeleteLocalRef(activity); env->DeleteLocalRef(activityClass); #endif } void showAchievementUI() { #ifdef __ANDROID__ callVoidMethod("showAchievementUI"); #endif } bool isScoresUpdated() { #ifdef __ANDROID__ return callBoolMethod("isScoresUpdated"); #else return false; #endif } void updateScores() { #ifdef __ANDROID__ callVoidMethod("getTopScores"); callVoidMethod("getTopTimeScores"); #endif } void refreshScores() { #ifdef __ANDROID__ callVoidMethod("refreshScores"); #endif } void submitScore(int score, bool best) { #ifdef __ANDROID__ JNIEnv* env = (JNIEnv*)SDL_AndroidGetJNIEnv(); jobject activity = (jobject)SDL_AndroidGetActivity(); jclass activityClass = env->GetObjectClass(activity); jmethodID methodId = env->GetMethodID(activityClass, "submitScore", "(IZ)V"); env->CallVoidMethod(activity, methodId, score, best); env->DeleteLocalRef(activity); env->DeleteLocalRef(activityClass); #endif } void submitLevelTime(int level, int timeSeconds, bool best) { #ifdef __ANDROID__ JNIEnv* env = (JNIEnv*)SDL_AndroidGetJNIEnv(); jobject activity = (jobject)SDL_AndroidGetActivity(); jclass activityClass = env->GetObjectClass(activity); jmethodID methodId = env->GetMethodID(activityClass, "submitTimeScore", "(IIZ)V"); env->CallVoidMethod(activity, methodId, level, timeSeconds, best); env->DeleteLocalRef(activity); env->DeleteLocalRef(activityClass); #endif } std::vector<bool> getIsScoresSubmitted() { std::vector<bool> scores(37, true); #ifdef __ANDROID__ JNIEnv* env = (JNIEnv*)SDL_AndroidGetJNIEnv(); jobject activity = (jobject)SDL_AndroidGetActivity(); jclass activityClass = env->GetObjectClass(activity); jmethodID methodIdName = env->GetMethodID(activityClass, "getSubmitState", "()[Z"); auto resultArray = (jbooleanArray)env->CallObjectMethod(activity, methodIdName); if (resultArray == nullptr) { env->DeleteLocalRef(activity); env->DeleteLocalRef(activityClass); return scores; } jsize resultSize = env->GetArrayLength(resultArray); jboolean* resultElements = env->GetBooleanArrayElements(resultArray, nullptr); if (resultElements && resultSize == scores.size()) { for (auto i = 0; i < scores.size(); ++i) scores[i] = resultElements[i]; } env->ReleaseBooleanArrayElements(resultArray, resultElements, JNI_ABORT); env->DeleteLocalRef(activity); env->DeleteLocalRef(activityClass); #endif return scores; } std::vector<std::pair<std::string, int>> getScores(bool weekly) { std::vector<std::pair<std::string, int>> scoresList; #ifdef __ANDROID__ JNIEnv* env = (JNIEnv*)SDL_AndroidGetJNIEnv(); jobject activity = (jobject)SDL_AndroidGetActivity(); jclass activityClass = env->GetObjectClass(activity); jmethodID methodIdName = env->GetMethodID(activityClass, "getTopScoresName", "(IZ)Ljava/lang/String;"); jmethodID methodIdScore = env->GetMethodID(activityClass, "getTopScoresScore", "(IZ)I"); for (auto i = 0; i < 5; ++i) { auto nameObj = (jstring)env->CallObjectMethod(activity, methodIdName, i, weekly); if (nameObj == nullptr) { scoresList.emplace_back("", 0); continue; } const char *name = env->GetStringUTFChars(nameObj, nullptr); int score = env->CallIntMethod(activity, methodIdScore, i, weekly); scoresList.emplace_back(name, score); env->ReleaseStringUTFChars(nameObj, name); env->DeleteLocalRef(nameObj); } env->DeleteLocalRef(activity); env->DeleteLocalRef(activityClass); #endif return scoresList; } int getPlayerPlace(bool weekly) { #ifdef __ANDROID__ JNIEnv* env = (JNIEnv*)SDL_AndroidGetJNIEnv(); jobject activity = (jobject)SDL_AndroidGetActivity(); jclass activityClass = env->GetObjectClass(activity); jmethodID methodId = env->GetMethodID(activityClass, "getPlayerPlace", "(Z)I"); int result = env->CallIntMethod(activity, methodId, weekly); env->DeleteLocalRef(activity); env->DeleteLocalRef(activityClass); return result; #else return 10; #endif } std::pair<std::string, int> getPlayerScore(bool weekly) { #ifdef __ANDROID__ JNIEnv* env = (JNIEnv*)SDL_AndroidGetJNIEnv(); jobject activity = (jobject)SDL_AndroidGetActivity(); jclass activityClass = env->GetObjectClass(activity); jmethodID methodIdName = env->GetMethodID(activityClass, "getPlayerName", "(Z)Ljava/lang/String;"); jmethodID methodIdScore = env->GetMethodID(activityClass, "getPlayerScore", "(Z)I"); auto nameObj = (jstring)env->CallObjectMethod(activity, methodIdName, weekly); if (nameObj != nullptr) { const char *name = env->GetStringUTFChars(nameObj, nullptr); int score = env->CallIntMethod(activity, methodIdScore, weekly); std::pair<std::string, int> result = {name, score}; env->ReleaseStringUTFChars(nameObj, name); env->DeleteLocalRef(nameObj); env->DeleteLocalRef(activity); env->DeleteLocalRef(activityClass); return result; } else { env->DeleteLocalRef(activity); env->DeleteLocalRef(activityClass); return {"Player", 0}; } #else return {"Player", 0}; #endif } std::string getPlayerName() { #ifdef __ANDROID__ JNIEnv* env = (JNIEnv*)SDL_AndroidGetJNIEnv(); jobject activity = (jobject)SDL_AndroidGetActivity(); jclass activityClass = env->GetObjectClass(activity); jmethodID methodIdName = env->GetMethodID(activityClass, "getPlayerDisplayName", "()Ljava/lang/String;"); auto nameObj = (jstring)env->CallObjectMethod(activity, methodIdName); if (nameObj != nullptr) { const char *name = env->GetStringUTFChars(nameObj, nullptr); std::string result = name; env->ReleaseStringUTFChars(nameObj, name); env->DeleteLocalRef(nameObj); env->DeleteLocalRef(activity); env->DeleteLocalRef(activityClass); return result; } else { env->DeleteLocalRef(activity); env->DeleteLocalRef(activityClass); return "Player"; } #else return "Player"; #endif } std::string getLanguage() { #ifdef __ANDROID__ JNIEnv* env = (JNIEnv*)SDL_AndroidGetJNIEnv(); jobject activity = (jobject)SDL_AndroidGetActivity(); jclass activityClass = env->GetObjectClass(activity); jmethodID methodIdName = env->GetMethodID(activityClass, "getLanguage", "()Ljava/lang/String;"); auto nameObj = (jstring)env->CallObjectMethod(activity, methodIdName); if (nameObj != nullptr) { const char *name = env->GetStringUTFChars(nameObj, nullptr); std::string result = name; env->ReleaseStringUTFChars(nameObj, name); env->DeleteLocalRef(nameObj); env->DeleteLocalRef(activity); env->DeleteLocalRef(activityClass); return result; } else { env->DeleteLocalRef(activity); env->DeleteLocalRef(activityClass); return "en"; } #elif __linux__ std::string locale = setlocale(LC_CTYPE, ""); if (locale == "C") return "en"; return locale.substr(0, 2); #else return "en"; #endif } std::vector<std::pair<std::string, int>> getTimes(bool weekly) { std::vector<std::pair<std::string, int>> scoresList; #ifdef __ANDROID__ JNIEnv* env = (JNIEnv*)SDL_AndroidGetJNIEnv(); jobject activity = (jobject)SDL_AndroidGetActivity(); jclass activityClass = env->GetObjectClass(activity); jmethodID methodIdName = env->GetMethodID(activityClass, "getTopTimeScoresName", "(IZ)Ljava/lang/String;"); jmethodID methodIdScore = env->GetMethodID(activityClass, "getTopTimeScoresValue", "(IZ)I"); for (auto i = 0; i < 36; ++i) { auto nameObj = (jstring)env->CallObjectMethod(activity, methodIdName, i, weekly); if (nameObj == nullptr) { scoresList.emplace_back("", 0); } else { const char *name = env->GetStringUTFChars(nameObj, nullptr); int version = env->CallIntMethod(activity, methodIdScore, i, weekly); scoresList.emplace_back(name, version); env->ReleaseStringUTFChars(nameObj, name); env->DeleteLocalRef(nameObj); } } env->DeleteLocalRef(activity); env->DeleteLocalRef(activityClass); #endif return scoresList; } bool hasNewTimeScores() { #ifdef __ANDROID__ return callBoolMethod("hasNewTimeScoreChanges"); #else return false; #endif } void requestBackup() { } void requestRestore() { } #ifdef __ANDROID__ std::vector<uint8_t> callByteArrayMethod(const std::vector<uint8_t>& data, const char* const name) { JNIEnv* env = (JNIEnv*)SDL_AndroidGetJNIEnv(); jobject activity = (jobject)SDL_AndroidGetActivity(); jclass activityClass = env->GetObjectClass(activity); jbyteArray byteArray = env->NewByteArray(data.size()); env->SetByteArrayRegion(byteArray, 0, data.size(), reinterpret_cast<const jbyte*>(data.data())); jmethodID methodIdName = env->GetMethodID(activityClass, name, "([B)[B"); auto resultArray = (jbyteArray)env->CallObjectMethod(activity, methodIdName, byteArray); if (resultArray == nullptr) { env->DeleteLocalRef(activity); env->DeleteLocalRef(activityClass); return std::vector<uint8_t>(); } jsize resultSize = env->GetArrayLength(resultArray); jbyte* resultElements = env->GetByteArrayElements(resultArray, nullptr); if (!resultElements) resultSize = 0; std::vector<uint8_t> result(resultSize); if (resultSize > 0) std::memcpy(result.data(), resultElements, resultSize); env->ReleaseByteArrayElements(resultArray, resultElements, JNI_ABORT); env->DeleteLocalRef(byteArray); env->DeleteLocalRef(activity); env->DeleteLocalRef(activityClass); return result; } #endif std::vector<uint8_t> encryptData(const std::vector<uint8_t>& data) { #ifdef __ANDROID__ return callByteArrayMethod(data, "encrypt"); #else // TODO: Add some basic encryption return data; #endif } std::vector<uint8_t> decryptData(const std::vector<uint8_t>& data) { #ifdef __ANDROID__ return callByteArrayMethod(data, "decrypt"); #else return data; #endif } void syncAchievements() { } void rateApp() { } void openLink(const std::string& link) { #ifdef __ANDROID__ JNIEnv* env = (JNIEnv*)SDL_AndroidGetJNIEnv(); jobject activity = (jobject)SDL_AndroidGetActivity(); jclass activityClass = env->GetObjectClass(activity); jmethodID methodId = env->GetMethodID(activityClass, "openLink", "(Ljava/lang/String;)V"); jstring jstr = env->NewStringUTF(link.c_str()); env->CallVoidMethod(activity, methodId, jstr); env->DeleteLocalRef(jstr); env->DeleteLocalRef(activity); env->DeleteLocalRef(activityClass); #else std::string openCommand = #ifdef WIN32 "start "; #elif __linux__ "xdg-open "; #else "open "; #endif auto result = system((openCommand + link).c_str()); if (result != 0) { std::cerr << "Can't open link" << std::endl; } #endif } bool hasTimeScoresUpdated() { #ifdef __ANDROID__ return callBoolMethod("hasTimescoresUpdated"); #else return false; #endif } void showMoreInfo() { #ifdef __ANDROID__ callVoidMethod("showManual"); #else openLink("./resources/manual/readme.html"); #endif } bool initAccelerometer() { #ifdef __ANDROID__ static bool accelInitialized = false; if (accelInitialized) return true; for (auto i = 0; i < SDL_NumSensors(); ++i) { if (SDL_SensorGetDeviceType(i) == SDL_SENSOR_ACCEL) { SDL_Sensor *sensor = SDL_SensorOpen(i); if (sensor == nullptr) { return false; } else { accelInitialized = true; return true; } } } #endif return false; } } // namespace System } // namespace Chewman
25.477041
125
0.688395
[ "object", "vector" ]
15954be6a48f7e400982826c9c2cae3fb0469b0d
1,543
cpp
C++
answers/hackerrank/Sherlock and Valid String.cpp
FeiZhan/Algo-Collection
708c4a38112e0b381864809788b9e44ac5ae4d05
[ "MIT" ]
3
2015-09-04T21:32:31.000Z
2020-12-06T00:37:32.000Z
answers/hackerrank/Sherlock and Valid String.cpp
FeiZhan/Algo-Collection
708c4a38112e0b381864809788b9e44ac5ae4d05
[ "MIT" ]
null
null
null
answers/hackerrank/Sherlock and Valid String.cpp
FeiZhan/Algo-Collection
708c4a38112e0b381864809788b9e44ac5ae4d05
[ "MIT" ]
null
null
null
//@result Submitted a few seconds ago • Score: 100.00 Status: Accepted Test Case #0: 0s Test Case #1: 0s Test Case #2: 0s Test Case #3: 0s Test Case #4: 0s Test Case #5: 0s Test Case #6: 0s Test Case #7: 0s Test Case #8: 0s Test Case #9: 0s Test Case #10: 0s Test Case #11: 0s Test Case #12: 0s Test Case #13: 0s Test Case #14: 0s Test Case #15: 0s #include <cmath> #include <cstdio> #include <vector> #include <unordered_map> #include <iostream> #include <algorithm> using namespace std; int main() { /* Enter your code here. Read input from STDIN. Print output to STDOUT */ string input; while (cin >> input) { unordered_map<char, int> char_map; for (size_t i = 0; i < input.length(); ++ i) { ++ char_map[input[i]]; } int max_value = 0; int max_count = 0; unordered_map<int, int> count_map; for (unordered_map<char, int>::iterator it = char_map.begin(); it != char_map.end(); ++ it) { ++ count_map[it->second]; if (max_count < count_map[it->second]) { max_count = count_map[it->second]; max_value = it->second; } } int count = 0; for (unordered_map<char, int>::iterator it = char_map.begin(); it != char_map.end(); ++ it) { count += min(it->second, abs(it->second - max_value)); //cout << "debug " << it->second << " " << max_value << " " << count << endl; } cout << (count <= 1 ? "YES" : "NO") << endl; } return 0; }
39.564103
348
0.558652
[ "vector" ]
15976cd6f801f9904d015004281fd88aa8a74efd
4,108
hpp
C++
src/evaluation/asymptotic.hpp
Thanduriel/StableNN
2457fbadee8491eaa3d52ff76d66dc45c27cb84a
[ "MIT" ]
null
null
null
src/evaluation/asymptotic.hpp
Thanduriel/StableNN
2457fbadee8491eaa3d52ff76d66dc45c27cb84a
[ "MIT" ]
null
null
null
src/evaluation/asymptotic.hpp
Thanduriel/StableNN
2457fbadee8491eaa3d52ff76d66dc45c27cb84a
[ "MIT" ]
null
null
null
#pragma once namespace eval { // energy level indicating that the simulation grows unbounded constexpr double INF_ENERGY = 4.0; constexpr double THRESHOLD = 0.02; // @return energy of attractors and intervals bounding the position // of possible initial states for bifurcation points template<typename System, typename Integrator> auto findAttractors(const System& _system, const Integrator& _integrator, bool computeBifurcations = true) -> std::pair<std::vector<double>, std::vector<std::pair<double,double>>> { using State = typename System::State; System system(_system); Integrator integrator(_integrator); std::vector<double> attractors; // energy std::vector<std::pair<double, double>> repellers; // position [lower, upper] constexpr double stepSize = PI / 16.0; // integrate until asymptotic energy can be identified auto integrate = [&system, &integrator](double x) { State state{ x, 0.0 }; double e0 = std::min(INF_ENERGY, system.energy(state)); double d0 = 0.0; double d1 = 0.0; int steps = 0; do { d0 = d1; for (int i = 0; i < 5000; ++i) state = integrator(state); const double e1 = std::min(INF_ENERGY, system.energy(state)); d1 = e1 - e0; e0 = e1; ++steps; // switch of sign indicates oscillation around attractor // second rule is for infinity and 0 } while (d0 * d1 >= 0.0 && d1 != 0.0 && steps < 256);//256 return e0; }; std::cout << "attractors: energy, position\n"; for (double x = 0.0; x < PI; x += stepSize) { const double e = integrate(x); if (attractors.empty() || std::abs(attractors.back() - e) > THRESHOLD) { std::cout << e << ", " << x << std::endl; attractors.push_back(e); repellers.push_back({ 0.0, x }); } // early out if simulation already explodes if (e == INF_ENERGY) break; } // refine repellers / bifurcations if (computeBifurcations) { for (size_t j = 1; j < repellers.size(); ++j) { double x = repellers[j].second; double step = stepSize * 0.5; double sign = -1.0; for (int i = 0; i < 8; ++i) { x += step * sign; step *= 0.5; constexpr int maxRetries = 4; double e0 = 0.0; int k = 0; for (; k < maxRetries; ++i) { const double e = integrate(x); if (std::abs(e - attractors[j - 1]) <= THRESHOLD) { sign = 1.0; repellers[j].first = x; break; } else if (std::abs(e - attractors[j]) <= THRESHOLD) { sign = -1.0; repellers[j].second = x; break; } if (e == e0) k = maxRetries; e0 = e; } if(k == maxRetries) // very close to the bifurcation { repellers[j].first = x; repellers[j].second = x; break; } } } for (auto& [min, max] : repellers) { std::cout << "[" << min << ", " << max << "]" << "\n"; } } return { attractors, repellers }; } // determine frequency of a periodic motion // @param _periods Number of periods to average over // @return period length in steps / periods or 0 if no period could be detected. template<typename State, typename Integrator> double computePeriodLength(const State& _initialState, const Integrator& _integrator, int _periods = 1, int _maxSteps = 20048) { Integrator integrator(_integrator); State state(_initialState); State prev = state; state = integrator(state); for(int i = 0; i < 512; ++i) state = integrator(state); size_t steps = 0; // one extra period because the first one may not be complete for (int period = 0; period <= _periods; ++period) { bool foundMax = false; for(int i = 0; i < _maxSteps; ++i) { State next = integrator(state); // local maximum if (state.position > next.position && state.position > prev.position) { foundMax = true; break; } prev = state; state = next; ++steps; } if (!foundMax) return 0.0; prev = state; // reset steps at first peak if (!period) steps = 0; } return static_cast<double>(steps) / static_cast<double>(_periods); } }
27.205298
127
0.604187
[ "vector" ]
159894176197bea44693564b677d0f77bde0ed6b
7,790
cpp
C++
final/image_saver/src/image_saver_node.cpp
songdaegeun/school-zone-enforcement-system
b5680909fd5a348575563534428d2117f8dc2e3f
[ "MIT" ]
null
null
null
final/image_saver/src/image_saver_node.cpp
songdaegeun/school-zone-enforcement-system
b5680909fd5a348575563534428d2117f8dc2e3f
[ "MIT" ]
null
null
null
final/image_saver/src/image_saver_node.cpp
songdaegeun/school-zone-enforcement-system
b5680909fd5a348575563534428d2117f8dc2e3f
[ "MIT" ]
null
null
null
#include <ros/ros.h> #include "std_msgs/Byte.h" #include <image_transport/image_transport.h> //package.xml에 추가. 이미지데이터를 받고 보내기위해 사용. #include <cv_bridge/cv_bridge.h> //package.xml에 추가 #include <sensor_msgs/image_encodings.h> //package.xml에 추가. cv_bridge::CvImagePtr에 값을 대입하기 위한 인자로 사용된다. #include <opencv2/imgproc/imgproc.hpp> //OpenCV's image processing를 사용하기위해 필요하다. #include <opencv2/highgui/highgui.hpp> //OpenCV's GUI modules를 사용하기위해 필요하다. (cv::namedWindow(OPENCV_WINDOW);) #include <darknet_ros_msgs/BoundingBoxes.h> // darknet_ros_msgs::BoundingBoxes를 쓰기위해 필요하다. #include <darknet_ros_msgs/BoundingBox.h> #include <stdlib.h> //system() #include <cmath> #include <boost/thread/thread.hpp> //use thread in ros #include <image_saver/image_saver.h> int image_save_flag=1; int image_save_tag=0; int captured_car_count=1; bool is_car=false; bool is_plastic_person=false; int flag_illegal=0; int buzzer_stop_flag=0; std_msgs::Byte buzzer_tag; std::vector<std::string> detected_bboxes_class_; darknet_ros_msgs::BoundingBox car_box; darknet_ros_msgs::BoundingBox plastic_man_box; int main(int argc, char** argv) { ros::init(argc, argv, "image_saver_node"); //shell script로 py3_cut_plate.py실행. std::string buffer; buffer="bash py3_cut_plate.sh &"; system(buffer.c_str()); ImageSaver ic; DetectLine dl; boost::thread t1(check_man_illegal); //check_man_illegal은 thread로 돌린다. ros::spin(); return 0; } void ImageSaver::savetag(const std_msgs::Byte::ConstPtr& msg) { if(msg->data==1) { image_save_tag=1; } else if(msg->data==2) { image_save_tag=2; } else { image_save_tag=0; image_save_flag=1; } } void ImageSaver::detect_box(const darknet_ros_msgs::BoundingBoxes::ConstPtr& msg) { std::vector<darknet_ros_msgs::BoundingBox> detected_bboxes_; detected_bboxes_ = msg->bounding_boxes; //BoundingBox3d[]. 즉, array형태이다. int size =detected_bboxes_.size(); std::string element_to_check_car="car"; std::string element_to_check_plastic_man="plastic_man"; for(int i=0;i<size;i++) { detected_bboxes_class_.insert(detected_bboxes_class_.begin() + i, detected_bboxes_[i].Class); if(detected_bboxes_[i].Class=="car") { car_box= detected_bboxes_[i]; } if(detected_bboxes_[i].Class=="plastic_man") { plastic_man_box= detected_bboxes_[i]; } } if (any_of(detected_bboxes_class_.begin(), detected_bboxes_class_.end(), [&](const std::string& elem) { return elem == element_to_check_car; })) { //printf("%s is present in the vector\n", element_to_check_car.c_str()); is_car=true; } else { //printf("%s isn't present in the vector\n", element_to_check_car.c_str()); is_car=false; // car_box.xmax=0; car_box.xmin=0; // car_box.ymax=0; car_box.ymin=0; } if (any_of(detected_bboxes_class_.begin(), detected_bboxes_class_.end(), [&](const std::string& elem) { return elem == element_to_check_plastic_man; })) { //printf("%s is present in the vector\n", element_to_check_plastic_man.c_str()); is_plastic_person=true; } else { //printf("%s isn't present in the vector\n", element_to_check_plastic_man.c_str()); is_plastic_person=false; } for(int i=0;i<size;i++) { detected_bboxes_class_.erase(detected_bboxes_class_.begin() + i); } } void ImageSaver::imageCb(const sensor_msgs::ImageConstPtr& msg) { cv_bridge::CvImagePtr cv_ptr, cv_ptr_bound_img; cv::Mat cut_img, show_cut_img; try { cv_ptr = cv_bridge::toCvCopy(msg, sensor_msgs::image_encodings::BGR8); cv_ptr_bound_img = cv_bridge::toCvCopy(msg, sensor_msgs::image_encodings::BGR8); //받은 이미지를 opencv에 맞는 format으로 변환한다. //const std::string BGR8 = "bgr8". 채널당 8bit 메모리 할당. opencv는 bgr 채널 순서를 사용한다! } catch (cv_bridge::Exception& e) //toCvCopy나 toCvShared를 쓸때는 항상 이런식으로 에러를 잡는다. { ROS_ERROR("cv_bridge exception: %s", e.what()); return; } if(image_save_tag==1 || image_save_tag==2) //차가 발견되었을 때 { if(cv_ptr->image.rows > 60 && cv_ptr->image.cols > 60) { cv::circle(cv_ptr->image, cv::Point(50, 50), 10, CV_RGB(255,0,0)); if(is_car==true && image_save_flag==1) { //차가 발견되고 image_save_flag가 1일 때 char buff[256]; int offset=5; cut_img=cv_ptr->image(cv::Range(car_box.ymin-offset,car_box.ymax+offset), cv::Range(car_box.xmin-offset,car_box.xmax+offset)); sprintf(buff,"/home/sdg/catkin_ws/src/image_saver/image/car_image/captured car%d.jpg",captured_car_count); if(image_save_tag==1) //차가 처음으로 발견될 때 { // show_cut_img. //cv::rectangle(cv_ptr_bound_img->image,cv::Rect(cv::Point(car_box.xmin,car_box.ymin),cv::Point(car_box.xmax,car_box.ymax)), cv::Scalar(0,0,255),2,8,0); //cv::putText(cv_ptr_bound_img->image,"Warning",cv::Point(car_box.xmin,car_box.ymin),5,4,cv::Scalar(0,220,255),5,8); show_cut_img=cv_ptr_bound_img->image(cv::Range(car_box.ymin-offset,car_box.ymax+offset), cv::Range(car_box.xmin-offset,car_box.xmax+offset)); cv::imwrite(buff,show_cut_img); } else if(image_save_tag==2) //차가 불법주정차로 의심될 때 { // show_cut_img. //cv::rectangle(cv_ptr_bound_img->image,cv::Rect(cv::Point(car_box.xmin,car_box.ymin),cv::Point(car_box.xmax,car_box.ymax)), cv::Scalar(0,0,255),2,8,0); //cv::putText(cv_ptr_bound_img->image,"confirm",cv::Point(car_box.xmin,car_box.ymin),5,4,cv::Scalar(0,220,255),5,8); show_cut_img=cv_ptr_bound_img->image(cv::Range(car_box.ymin-offset,car_box.ymax+offset), cv::Range(car_box.xmin-offset,car_box.xmax+offset)); cv::imwrite(buff,show_cut_img); } image_save_flag=0; //image_save_flag를 끈다. captured_car_count++; } cv::waitKey(1); //image_pub_.publish(cv_ptr->toImageMsg()); //cutting된 이미지를 publish한다. } } ros::Duration(0.1).sleep(); } void check_man_illegal() { ros::NodeHandlePtr n = boost::make_shared<ros::NodeHandle>(); ros::Publisher buzzer_pub = n->advertise<std_msgs::Byte>("/buzzer_tag", 1000); ros::Rate loop_rate(10); while(ros::ok()) { if(no_cross_mat.size()!=0 && is_plastic_person==true && buzzer_stop_flag==0) //no_cross_mat가 존재하고 사람이 존재하고 buzzer_stop_flag가 0일 때 { printf("no_cross_mat_row: %d, no_cross_mat_col: %d \n",no_cross_mat.size(), no_cross_mat[0].size()); for(int i=0; i<no_cross_mat.size(); i++) { for(int j=0; j<no_cross_mat[i].size(); j++) { float dist_illegal=calc_distance(&no_cross_mat[i][j],plastic_man_box); //no_cross_mat의 각 요소와 사람과의 거리 dist_illegal를 계산한다. if(dist_illegal<10.0) //@ //dist_illegal가 가까우면 { printf("dist_illegal: %f \n",dist_illegal); flag_illegal=1; } if(flag_illegal==1){break;} } if(flag_illegal==1){break;} } if(flag_illegal==1) { flag_illegal=0; buzzer_tag.data=1; //buzzer를 울린다. } } buzzer_pub.publish(buzzer_tag); buzzer_tag.data=0; loop_rate.sleep(); } } float calc_distance(Data_position *d1, darknet_ros_msgs::BoundingBox d2) //d1은 상대좌표, d2는 절대좌표이다. { float box_x_mean=(float)(d2.xmax+d2.xmin)/2; float box_y_mean=(float)(d2.ymax+d2.ymin)/2; float mat_pix_x=(float)ORG_X+d1->x; float mat_pix_y=(float)ORG_Y+d1->y; float dist=sqrt(pow((mat_pix_x-box_x_mean),2)+pow((mat_pix_y-box_y_mean),2)); //객체와 no_cross_mat의 요소간 거리를 계산한다. return dist; } void ImageSaver::buzzer_stop_cb(const std_msgs::Byte::ConstPtr& msg) //buzzer기능을 켤껀지 말껀지를 결정한다. { if(msg->data==0) { buzzer_stop_flag=0; } else { buzzer_stop_flag=1; } }
33.148936
162
0.666239
[ "vector" ]
15a0b54367fcc80c2bc81e731d3e4ac847cde8dd
428,576
cxx
C++
dune/xt/data/spherical_quadratures/octant_quadrature/data/order_54.cxx
dune-community/dune-xt-data
32593bbcd52ed69b0a11963400a9173740089a75
[ "BSD-2-Clause" ]
1
2020-02-08T04:09:11.000Z
2020-02-08T04:09:11.000Z
dune/xt/data/spherical_quadratures/octant_quadrature/data/order_54.cxx
dune-community/dune-xt-data
32593bbcd52ed69b0a11963400a9173740089a75
[ "BSD-2-Clause" ]
40
2018-08-26T08:34:34.000Z
2021-09-28T13:01:55.000Z
dune/xt/data/spherical_quadratures/octant_quadrature/data/order_54.cxx
dune-community/dune-xt-data
32593bbcd52ed69b0a11963400a9173740089a75
[ "BSD-2-Clause" ]
1
2020-02-08T04:10:14.000Z
2020-02-08T04:10:14.000Z
// This file is part of the dune-xt-data project: // https://github.com/dune-community/dune-xt-data // Copyright 2009-2018 dune-xt-data developers and contributors. All rights reserved. // License: Dual licensed as BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) // or GPL-2.0+ (http://opensource.org/licenses/gpl-license) // with "runtime exception" (http://www.dune-project.org/license.html) // Authors: // Tobias Leibner (2019) #include "../octant_quadrature_data.hh" namespace Dune::XT::Data { template <> std::vector<std::vector<std::vector<double>>> OctantQuadratureData<54>::get() { return { {{1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056}, {0.00077633, 0.00077633, 0.00077633, 0.00077633, 0.00077633, 0.00077633, 0.00077633, 0.00077633, 0.00077633, 0.00077633, 0.00077633, 0.00077633, 0.00077633, 0.00077633, 0.00077633, 0.00077633, 0.00077633, 0.00077633, 0.00077633, 0.00077633, 0.00077633, 0.00077633, 0.00077633, 0.00077633, 0.00077633, 0.00077633, 0.00077633, 0.00077633, 0.00077633, 0.0040864, 0.0040864, 0.0040864, 0.0040864, 0.0040864, 0.0040864, 0.0040864, 0.0040864, 0.0040864, 0.0040864, 0.0040864, 0.0040864, 0.0040864, 0.0040864, 0.0040864, 0.0040864, 0.0040864, 0.0040864, 0.0040864, 0.0040864, 0.0040864, 0.0040864, 0.0040864, 0.0040864, 0.0040864, 0.0040864, 0.0040864, 0.0040864, 0.0040864, 0.010025, 0.010025, 0.010025, 0.010025, 0.010025, 0.010025, 0.010025, 0.010025, 0.010025, 0.010025, 0.010025, 0.010025, 0.010025, 0.010025, 0.010025, 0.010025, 0.010025, 0.010025, 0.010025, 0.010025, 0.010025, 0.010025, 0.010025, 0.010025, 0.010025, 0.010025, 0.010025, 0.010025, 0.010025, 0.018565, 0.018565, 0.018565, 0.018565, 0.018565, 0.018565, 0.018565, 0.018565, 0.018565, 0.018565, 0.018565, 0.018565, 0.018565, 0.018565, 0.018565, 0.018565, 0.018565, 0.018565, 0.018565, 0.018565, 0.018565, 0.018565, 0.018565, 0.018565, 0.018565, 0.018565, 0.018565, 0.018565, 0.018565, 0.029666, 0.029666, 0.029666, 0.029666, 0.029666, 0.029666, 0.029666, 0.029666, 0.029666, 0.029666, 0.029666, 0.029666, 0.029666, 0.029666, 0.029666, 0.029666, 0.029666, 0.029666, 0.029666, 0.029666, 0.029666, 0.029666, 0.029666, 0.029666, 0.029666, 0.029666, 0.029666, 0.029666, 0.029666, 0.043277, 0.043277, 0.043277, 0.043277, 0.043277, 0.043277, 0.043277, 0.043277, 0.043277, 0.043277, 0.043277, 0.043277, 0.043277, 0.043277, 0.043277, 0.043277, 0.043277, 0.043277, 0.043277, 0.043277, 0.043277, 0.043277, 0.043277, 0.043277, 0.043277, 0.043277, 0.043277, 0.043277, 0.043277, 0.059336, 0.059336, 0.059336, 0.059336, 0.059336, 0.059336, 0.059336, 0.059336, 0.059336, 0.059336, 0.059336, 0.059336, 0.059336, 0.059336, 0.059336, 0.059336, 0.059336, 0.059336, 0.059336, 0.059336, 0.059336, 0.059336, 0.059336, 0.059336, 0.059336, 0.059336, 0.059336, 0.059336, 0.059336, 0.07777, 0.07777, 0.07777, 0.07777, 0.07777, 0.07777, 0.07777, 0.07777, 0.07777, 0.07777, 0.07777, 0.07777, 0.07777, 0.07777, 0.07777, 0.07777, 0.07777, 0.07777, 0.07777, 0.07777, 0.07777, 0.07777, 0.07777, 0.07777, 0.07777, 0.07777, 0.07777, 0.07777, 0.07777, 0.098499, 0.098499, 0.098499, 0.098499, 0.098499, 0.098499, 0.098499, 0.098499, 0.098499, 0.098499, 0.098499, 0.098499, 0.098499, 0.098499, 0.098499, 0.098499, 0.098499, 0.098499, 0.098499, 0.098499, 0.098499, 0.098499, 0.098499, 0.098499, 0.098499, 0.098499, 0.098499, 0.098499, 0.098499, 0.12143, 0.12143, 0.12143, 0.12143, 0.12143, 0.12143, 0.12143, 0.12143, 0.12143, 0.12143, 0.12143, 0.12143, 0.12143, 0.12143, 0.12143, 0.12143, 0.12143, 0.12143, 0.12143, 0.12143, 0.12143, 0.12143, 0.12143, 0.12143, 0.12143, 0.12143, 0.12143, 0.12143, 0.12143, 0.14648, 0.14648, 0.14648, 0.14648, 0.14648, 0.14648, 0.14648, 0.14648, 0.14648, 0.14648, 0.14648, 0.14648, 0.14648, 0.14648, 0.14648, 0.14648, 0.14648, 0.14648, 0.14648, 0.14648, 0.14648, 0.14648, 0.14648, 0.14648, 0.14648, 0.14648, 0.14648, 0.14648, 0.14648, 0.17353, 0.17353, 0.17353, 0.17353, 0.17353, 0.17353, 0.17353, 0.17353, 0.17353, 0.17353, 0.17353, 0.17353, 0.17353, 0.17353, 0.17353, 0.17353, 0.17353, 0.17353, 0.17353, 0.17353, 0.17353, 0.17353, 0.17353, 0.17353, 0.17353, 0.17353, 0.17353, 0.17353, 0.17353, 0.20248, 0.20248, 0.20248, 0.20248, 0.20248, 0.20248, 0.20248, 0.20248, 0.20248, 0.20248, 0.20248, 0.20248, 0.20248, 0.20248, 0.20248, 0.20248, 0.20248, 0.20248, 0.20248, 0.20248, 0.20248, 0.20248, 0.20248, 0.20248, 0.20248, 0.20248, 0.20248, 0.20248, 0.20248, 0.23323, 0.23323, 0.23323, 0.23323, 0.23323, 0.23323, 0.23323, 0.23323, 0.23323, 0.23323, 0.23323, 0.23323, 0.23323, 0.23323, 0.23323, 0.23323, 0.23323, 0.23323, 0.23323, 0.23323, 0.23323, 0.23323, 0.23323, 0.23323, 0.23323, 0.23323, 0.23323, 0.23323, 0.23323, 0.26565, 0.26565, 0.26565, 0.26565, 0.26565, 0.26565, 0.26565, 0.26565, 0.26565, 0.26565, 0.26565, 0.26565, 0.26565, 0.26565, 0.26565, 0.26565, 0.26565, 0.26565, 0.26565, 0.26565, 0.26565, 0.26565, 0.26565, 0.26565, 0.26565, 0.26565, 0.26565, 0.26565, 0.26565, 0.29963, 0.29963, 0.29963, 0.29963, 0.29963, 0.29963, 0.29963, 0.29963, 0.29963, 0.29963, 0.29963, 0.29963, 0.29963, 0.29963, 0.29963, 0.29963, 0.29963, 0.29963, 0.29963, 0.29963, 0.29963, 0.29963, 0.29963, 0.29963, 0.29963, 0.29963, 0.29963, 0.29963, 0.29963, 0.33505, 0.33505, 0.33505, 0.33505, 0.33505, 0.33505, 0.33505, 0.33505, 0.33505, 0.33505, 0.33505, 0.33505, 0.33505, 0.33505, 0.33505, 0.33505, 0.33505, 0.33505, 0.33505, 0.33505, 0.33505, 0.33505, 0.33505, 0.33505, 0.33505, 0.33505, 0.33505, 0.33505, 0.33505, 0.3718, 0.3718, 0.3718, 0.3718, 0.3718, 0.3718, 0.3718, 0.3718, 0.3718, 0.3718, 0.3718, 0.3718, 0.3718, 0.3718, 0.3718, 0.3718, 0.3718, 0.3718, 0.3718, 0.3718, 0.3718, 0.3718, 0.3718, 0.3718, 0.3718, 0.3718, 0.3718, 0.3718, 0.3718, 0.40974, 0.40974, 0.40974, 0.40974, 0.40974, 0.40974, 0.40974, 0.40974, 0.40974, 0.40974, 0.40974, 0.40974, 0.40974, 0.40974, 0.40974, 0.40974, 0.40974, 0.40974, 0.40974, 0.40974, 0.40974, 0.40974, 0.40974, 0.40974, 0.40974, 0.40974, 0.40974, 0.40974, 0.40974, 0.44877, 0.44877, 0.44877, 0.44877, 0.44877, 0.44877, 0.44877, 0.44877, 0.44877, 0.44877, 0.44877, 0.44877, 0.44877, 0.44877, 0.44877, 0.44877, 0.44877, 0.44877, 0.44877, 0.44877, 0.44877, 0.44877, 0.44877, 0.44877, 0.44877, 0.44877, 0.44877, 0.44877, 0.44877, 0.48876, 0.48876, 0.48876, 0.48876, 0.48876, 0.48876, 0.48876, 0.48876, 0.48876, 0.48876, 0.48876, 0.48876, 0.48876, 0.48876, 0.48876, 0.48876, 0.48876, 0.48876, 0.48876, 0.48876, 0.48876, 0.48876, 0.48876, 0.48876, 0.48876, 0.48876, 0.48876, 0.48876, 0.48876, 0.52958, 0.52958, 0.52958, 0.52958, 0.52958, 0.52958, 0.52958, 0.52958, 0.52958, 0.52958, 0.52958, 0.52958, 0.52958, 0.52958, 0.52958, 0.52958, 0.52958, 0.52958, 0.52958, 0.52958, 0.52958, 0.52958, 0.52958, 0.52958, 0.52958, 0.52958, 0.52958, 0.52958, 0.52958, 0.57112, 0.57112, 0.57112, 0.57112, 0.57112, 0.57112, 0.57112, 0.57112, 0.57112, 0.57112, 0.57112, 0.57112, 0.57112, 0.57112, 0.57112, 0.57112, 0.57112, 0.57112, 0.57112, 0.57112, 0.57112, 0.57112, 0.57112, 0.57112, 0.57112, 0.57112, 0.57112, 0.57112, 0.57112, 0.61326, 0.61326, 0.61326, 0.61326, 0.61326, 0.61326, 0.61326, 0.61326, 0.61326, 0.61326, 0.61326, 0.61326, 0.61326, 0.61326, 0.61326, 0.61326, 0.61326, 0.61326, 0.61326, 0.61326, 0.61326, 0.61326, 0.61326, 0.61326, 0.61326, 0.61326, 0.61326, 0.61326, 0.61326, 0.65588, 0.65588, 0.65588, 0.65588, 0.65588, 0.65588, 0.65588, 0.65588, 0.65588, 0.65588, 0.65588, 0.65588, 0.65588, 0.65588, 0.65588, 0.65588, 0.65588, 0.65588, 0.65588, 0.65588, 0.65588, 0.65588, 0.65588, 0.65588, 0.65588, 0.65588, 0.65588, 0.65588, 0.65588, 0.69885, 0.69885, 0.69885, 0.69885, 0.69885, 0.69885, 0.69885, 0.69885, 0.69885, 0.69885, 0.69885, 0.69885, 0.69885, 0.69885, 0.69885, 0.69885, 0.69885, 0.69885, 0.69885, 0.69885, 0.69885, 0.69885, 0.69885, 0.69885, 0.69885, 0.69885, 0.69885, 0.69885, 0.69885, 0.74207, 0.74207, 0.74207, 0.74207, 0.74207, 0.74207, 0.74207, 0.74207, 0.74207, 0.74207, 0.74207, 0.74207, 0.74207, 0.74207, 0.74207, 0.74207, 0.74207, 0.74207, 0.74207, 0.74207, 0.74207, 0.74207, 0.74207, 0.74207, 0.74207, 0.74207, 0.74207, 0.74207, 0.74207, 0.7854, 0.7854, 0.7854, 0.7854, 0.7854, 0.7854, 0.7854, 0.7854, 0.7854, 0.7854, 0.7854, 0.7854, 0.7854, 0.7854, 0.7854, 0.7854, 0.7854, 0.7854, 0.7854, 0.7854, 0.7854, 0.7854, 0.7854, 0.7854, 0.7854, 0.7854, 0.7854, 0.7854, 0.7854, 0.82873, 0.82873, 0.82873, 0.82873, 0.82873, 0.82873, 0.82873, 0.82873, 0.82873, 0.82873, 0.82873, 0.82873, 0.82873, 0.82873, 0.82873, 0.82873, 0.82873, 0.82873, 0.82873, 0.82873, 0.82873, 0.82873, 0.82873, 0.82873, 0.82873, 0.82873, 0.82873, 0.82873, 0.82873, 0.87194, 0.87194, 0.87194, 0.87194, 0.87194, 0.87194, 0.87194, 0.87194, 0.87194, 0.87194, 0.87194, 0.87194, 0.87194, 0.87194, 0.87194, 0.87194, 0.87194, 0.87194, 0.87194, 0.87194, 0.87194, 0.87194, 0.87194, 0.87194, 0.87194, 0.87194, 0.87194, 0.87194, 0.87194, 0.91492, 0.91492, 0.91492, 0.91492, 0.91492, 0.91492, 0.91492, 0.91492, 0.91492, 0.91492, 0.91492, 0.91492, 0.91492, 0.91492, 0.91492, 0.91492, 0.91492, 0.91492, 0.91492, 0.91492, 0.91492, 0.91492, 0.91492, 0.91492, 0.91492, 0.91492, 0.91492, 0.91492, 0.91492, 0.95753, 0.95753, 0.95753, 0.95753, 0.95753, 0.95753, 0.95753, 0.95753, 0.95753, 0.95753, 0.95753, 0.95753, 0.95753, 0.95753, 0.95753, 0.95753, 0.95753, 0.95753, 0.95753, 0.95753, 0.95753, 0.95753, 0.95753, 0.95753, 0.95753, 0.95753, 0.95753, 0.95753, 0.95753, 0.99967, 0.99967, 0.99967, 0.99967, 0.99967, 0.99967, 0.99967, 0.99967, 0.99967, 0.99967, 0.99967, 0.99967, 0.99967, 0.99967, 0.99967, 0.99967, 0.99967, 0.99967, 0.99967, 0.99967, 0.99967, 0.99967, 0.99967, 0.99967, 0.99967, 0.99967, 0.99967, 0.99967, 0.99967, 1.0412, 1.0412, 1.0412, 1.0412, 1.0412, 1.0412, 1.0412, 1.0412, 1.0412, 1.0412, 1.0412, 1.0412, 1.0412, 1.0412, 1.0412, 1.0412, 1.0412, 1.0412, 1.0412, 1.0412, 1.0412, 1.0412, 1.0412, 1.0412, 1.0412, 1.0412, 1.0412, 1.0412, 1.0412, 1.082, 1.082, 1.082, 1.082, 1.082, 1.082, 1.082, 1.082, 1.082, 1.082, 1.082, 1.082, 1.082, 1.082, 1.082, 1.082, 1.082, 1.082, 1.082, 1.082, 1.082, 1.082, 1.082, 1.082, 1.082, 1.082, 1.082, 1.082, 1.082, 1.122, 1.122, 1.122, 1.122, 1.122, 1.122, 1.122, 1.122, 1.122, 1.122, 1.122, 1.122, 1.122, 1.122, 1.122, 1.122, 1.122, 1.122, 1.122, 1.122, 1.122, 1.122, 1.122, 1.122, 1.122, 1.122, 1.122, 1.122, 1.122, 1.1611, 1.1611, 1.1611, 1.1611, 1.1611, 1.1611, 1.1611, 1.1611, 1.1611, 1.1611, 1.1611, 1.1611, 1.1611, 1.1611, 1.1611, 1.1611, 1.1611, 1.1611, 1.1611, 1.1611, 1.1611, 1.1611, 1.1611, 1.1611, 1.1611, 1.1611, 1.1611, 1.1611, 1.1611, 1.199, 1.199, 1.199, 1.199, 1.199, 1.199, 1.199, 1.199, 1.199, 1.199, 1.199, 1.199, 1.199, 1.199, 1.199, 1.199, 1.199, 1.199, 1.199, 1.199, 1.199, 1.199, 1.199, 1.199, 1.199, 1.199, 1.199, 1.199, 1.199, 1.2357, 1.2357, 1.2357, 1.2357, 1.2357, 1.2357, 1.2357, 1.2357, 1.2357, 1.2357, 1.2357, 1.2357, 1.2357, 1.2357, 1.2357, 1.2357, 1.2357, 1.2357, 1.2357, 1.2357, 1.2357, 1.2357, 1.2357, 1.2357, 1.2357, 1.2357, 1.2357, 1.2357, 1.2357, 1.2712, 1.2712, 1.2712, 1.2712, 1.2712, 1.2712, 1.2712, 1.2712, 1.2712, 1.2712, 1.2712, 1.2712, 1.2712, 1.2712, 1.2712, 1.2712, 1.2712, 1.2712, 1.2712, 1.2712, 1.2712, 1.2712, 1.2712, 1.2712, 1.2712, 1.2712, 1.2712, 1.2712, 1.2712, 1.3051, 1.3051, 1.3051, 1.3051, 1.3051, 1.3051, 1.3051, 1.3051, 1.3051, 1.3051, 1.3051, 1.3051, 1.3051, 1.3051, 1.3051, 1.3051, 1.3051, 1.3051, 1.3051, 1.3051, 1.3051, 1.3051, 1.3051, 1.3051, 1.3051, 1.3051, 1.3051, 1.3051, 1.3051, 1.3376, 1.3376, 1.3376, 1.3376, 1.3376, 1.3376, 1.3376, 1.3376, 1.3376, 1.3376, 1.3376, 1.3376, 1.3376, 1.3376, 1.3376, 1.3376, 1.3376, 1.3376, 1.3376, 1.3376, 1.3376, 1.3376, 1.3376, 1.3376, 1.3376, 1.3376, 1.3376, 1.3376, 1.3376, 1.3683, 1.3683, 1.3683, 1.3683, 1.3683, 1.3683, 1.3683, 1.3683, 1.3683, 1.3683, 1.3683, 1.3683, 1.3683, 1.3683, 1.3683, 1.3683, 1.3683, 1.3683, 1.3683, 1.3683, 1.3683, 1.3683, 1.3683, 1.3683, 1.3683, 1.3683, 1.3683, 1.3683, 1.3683, 1.3973, 1.3973, 1.3973, 1.3973, 1.3973, 1.3973, 1.3973, 1.3973, 1.3973, 1.3973, 1.3973, 1.3973, 1.3973, 1.3973, 1.3973, 1.3973, 1.3973, 1.3973, 1.3973, 1.3973, 1.3973, 1.3973, 1.3973, 1.3973, 1.3973, 1.3973, 1.3973, 1.3973, 1.3973, 1.4243, 1.4243, 1.4243, 1.4243, 1.4243, 1.4243, 1.4243, 1.4243, 1.4243, 1.4243, 1.4243, 1.4243, 1.4243, 1.4243, 1.4243, 1.4243, 1.4243, 1.4243, 1.4243, 1.4243, 1.4243, 1.4243, 1.4243, 1.4243, 1.4243, 1.4243, 1.4243, 1.4243, 1.4243, 1.4494, 1.4494, 1.4494, 1.4494, 1.4494, 1.4494, 1.4494, 1.4494, 1.4494, 1.4494, 1.4494, 1.4494, 1.4494, 1.4494, 1.4494, 1.4494, 1.4494, 1.4494, 1.4494, 1.4494, 1.4494, 1.4494, 1.4494, 1.4494, 1.4494, 1.4494, 1.4494, 1.4494, 1.4494, 1.4723, 1.4723, 1.4723, 1.4723, 1.4723, 1.4723, 1.4723, 1.4723, 1.4723, 1.4723, 1.4723, 1.4723, 1.4723, 1.4723, 1.4723, 1.4723, 1.4723, 1.4723, 1.4723, 1.4723, 1.4723, 1.4723, 1.4723, 1.4723, 1.4723, 1.4723, 1.4723, 1.4723, 1.4723, 1.493, 1.493, 1.493, 1.493, 1.493, 1.493, 1.493, 1.493, 1.493, 1.493, 1.493, 1.493, 1.493, 1.493, 1.493, 1.493, 1.493, 1.493, 1.493, 1.493, 1.493, 1.493, 1.493, 1.493, 1.493, 1.493, 1.493, 1.493, 1.493, 1.5115, 1.5115, 1.5115, 1.5115, 1.5115, 1.5115, 1.5115, 1.5115, 1.5115, 1.5115, 1.5115, 1.5115, 1.5115, 1.5115, 1.5115, 1.5115, 1.5115, 1.5115, 1.5115, 1.5115, 1.5115, 1.5115, 1.5115, 1.5115, 1.5115, 1.5115, 1.5115, 1.5115, 1.5115, 1.5275, 1.5275, 1.5275, 1.5275, 1.5275, 1.5275, 1.5275, 1.5275, 1.5275, 1.5275, 1.5275, 1.5275, 1.5275, 1.5275, 1.5275, 1.5275, 1.5275, 1.5275, 1.5275, 1.5275, 1.5275, 1.5275, 1.5275, 1.5275, 1.5275, 1.5275, 1.5275, 1.5275, 1.5275, 1.5411, 1.5411, 1.5411, 1.5411, 1.5411, 1.5411, 1.5411, 1.5411, 1.5411, 1.5411, 1.5411, 1.5411, 1.5411, 1.5411, 1.5411, 1.5411, 1.5411, 1.5411, 1.5411, 1.5411, 1.5411, 1.5411, 1.5411, 1.5411, 1.5411, 1.5411, 1.5411, 1.5411, 1.5411, 1.5522, 1.5522, 1.5522, 1.5522, 1.5522, 1.5522, 1.5522, 1.5522, 1.5522, 1.5522, 1.5522, 1.5522, 1.5522, 1.5522, 1.5522, 1.5522, 1.5522, 1.5522, 1.5522, 1.5522, 1.5522, 1.5522, 1.5522, 1.5522, 1.5522, 1.5522, 1.5522, 1.5522, 1.5522, 1.5608, 1.5608, 1.5608, 1.5608, 1.5608, 1.5608, 1.5608, 1.5608, 1.5608, 1.5608, 1.5608, 1.5608, 1.5608, 1.5608, 1.5608, 1.5608, 1.5608, 1.5608, 1.5608, 1.5608, 1.5608, 1.5608, 1.5608, 1.5608, 1.5608, 1.5608, 1.5608, 1.5608, 1.5608, 1.5667, 1.5667, 1.5667, 1.5667, 1.5667, 1.5667, 1.5667, 1.5667, 1.5667, 1.5667, 1.5667, 1.5667, 1.5667, 1.5667, 1.5667, 1.5667, 1.5667, 1.5667, 1.5667, 1.5667, 1.5667, 1.5667, 1.5667, 1.5667, 1.5667, 1.5667, 1.5667, 1.5667, 1.5667, 1.57, 1.57, 1.57, 1.57, 1.57, 1.57, 1.57, 1.57, 1.57, 1.57, 1.57, 1.57, 1.57, 1.57, 1.57, 1.57, 1.57, 1.57, 1.57, 1.57, 1.57, 1.57, 1.57, 1.57, 1.57, 1.57, 1.57, 1.57, 1.57}, {1.4368e-08, 1.7501e-07, 6.6745e-07, 1.6601e-06, 3.2952e-06, 5.6833e-06, 8.8995e-06, 1.2983e-05, 1.7938e-05, 2.3736e-05, 3.0322e-05, 3.7614e-05, 4.5514e-05, 5.3904e-05, 6.2659e-05, 7.1645e-05, 8.0723e-05, 8.9753e-05, 9.8597e-05, 0.00010712, 0.0001152, 0.00012271, 0.00012954, 0.00013558, 0.00014076, 0.000145, 0.00014823, 0.00015041, 0.00015151, 3.338e-08, 4.0657e-07, 1.5506e-06, 3.8566e-06, 7.6554e-06, 1.3203e-05, 2.0675e-05, 3.0161e-05, 4.1672e-05, 5.5143e-05, 7.0443e-05, 8.7384e-05, 0.00010574, 0.00012523, 0.00014557, 0.00016644, 0.00018753, 0.00020851, 0.00022906, 0.00024886, 0.00026763, 0.00028507, 0.00030093, 0.00031498, 0.00032702, 0.00033686, 0.00034437, 0.00034943, 0.00035198, 5.2261e-08, 6.3653e-07, 2.4276e-06, 6.0381e-06, 1.1985e-05, 2.0671e-05, 3.2369e-05, 4.7222e-05, 6.5244e-05, 8.6334e-05, 0.00011029, 0.00013681, 0.00016554, 0.00019606, 0.0002279, 0.00026059, 0.0002936, 0.00032645, 0.00035862, 0.00038963, 0.000419, 0.00044631, 0.00047115, 0.00049315, 0.00051199, 0.0005274, 0.00053915, 0.00054708, 0.00055108, 7.0896e-08, 8.6352e-07, 3.2933e-06, 8.1912e-06, 1.6259e-05, 2.8043e-05, 4.3912e-05, 6.4061e-05, 8.8509e-05, 0.00011712, 0.00014961, 0.0001856, 0.00022457, 0.00026597, 0.00030917, 0.00035351, 0.0003983, 0.00044286, 0.0004865, 0.00052856, 0.00056841, 0.00060546, 0.00063915, 0.000669, 0.00069456, 0.00071546, 0.00073141, 0.00074217, 0.00074759, 8.9201e-08, 1.0865e-06, 4.1436e-06, 1.0306e-05, 2.0457e-05, 3.5283e-05, 5.5249e-05, 8.06e-05, 0.00011136, 0.00014736, 0.00018824, 0.00023352, 0.00028255, 0.00033464, 0.000389, 0.00044478, 0.00050114, 0.0005572, 0.00061211, 0.00066503, 0.00071517, 0.00076178, 0.00080417, 0.00084172, 0.00087388, 0.00090018, 0.00092025, 0.00093378, 0.0009406, 1.0709e-07, 1.3044e-06, 4.9748e-06, 1.2373e-05, 2.4561e-05, 4.236e-05, 6.6332e-05, 9.6768e-05, 0.0001337, 0.00017692, 0.000226, 0.00028036, 0.00033923, 0.00040177, 0.00046703, 0.000534, 0.00060166, 0.00066897, 0.00073489, 0.00079843, 0.00085863, 0.00091459, 0.00096548, 0.0010106, 0.0010492, 0.0010808, 0.0011048, 0.0011211, 0.0011293, 1.245e-07, 1.5164e-06, 5.7834e-06, 1.4385e-05, 2.8553e-05, 4.9246e-05, 7.7114e-05, 0.0001125, 0.00015543, 0.00020567, 0.00026274, 0.00032593, 0.00039437, 0.00046708, 0.00054294, 0.0006208, 0.00069946, 0.0007777, 0.00085434, 0.00092821, 0.00099819, 0.0010633, 0.0011224, 0.0011748, 0.0012197, 0.0012564, 0.0012844, 0.0013033, 0.0013128, 1.4136e-07, 1.7217e-06, 6.5663e-06, 1.6332e-05, 3.2418e-05, 5.5912e-05, 8.7553e-05, 0.00012773, 0.00017647, 0.00023352, 0.00029831, 0.00037005, 0.00044776, 0.00053031, 0.00061644, 0.00070484, 0.00079415, 0.00088298, 0.00097, 0.0010539, 0.0011333, 0.0012072, 0.0012744, 0.0013339, 0.0013848, 0.0014265, 0.0014583, 0.0014798, 0.0014906, 1.576e-07, 1.9195e-06, 7.3207e-06, 1.8208e-05, 3.6143e-05, 6.2336e-05, 9.7612e-05, 0.0001424, 0.00019675, 0.00026035, 0.00033258, 0.00041256, 0.00049921, 0.00059123, 0.00068726, 0.00078582, 0.00088539, 0.00098443, 0.0010814, 0.0011749, 0.0012635, 0.0013459, 0.0014208, 0.0014871, 0.0015439, 0.0015904, 0.0016258, 0.0016498, 0.0016618, 1.7317e-07, 2.1092e-06, 8.0442e-06, 2.0008e-05, 3.9715e-05, 6.8496e-05, 0.00010726, 0.00015647, 0.00021619, 0.00028607, 0.00036544, 0.00045333, 0.00054854, 0.00064966, 0.00075518, 0.00086347, 0.00097288, 0.0010817, 0.0011883, 0.001291, 0.0013884, 0.0014789, 0.0015612, 0.0016341, 0.0016965, 0.0017476, 0.0017865, 0.0018128, 0.001826, 1.8803e-07, 2.2902e-06, 8.7344e-06, 2.1724e-05, 4.3122e-05, 7.4374e-05, 0.00011646, 0.0001699, 0.00023474, 0.00031062, 0.0003968, 0.00049223, 0.0005956, 0.00070541, 0.00081998, 0.00093757, 0.0010564, 0.0011745, 0.0012903, 0.0014018, 0.0015075, 0.0016058, 0.0016951, 0.0017743, 0.0018421, 0.0018975, 0.0019398, 0.0019683, 0.0019827, 2.0214e-07, 2.462e-06, 9.3897e-06, 2.3354e-05, 4.6358e-05, 7.9953e-05, 0.0001252, 0.00018264, 0.00025235, 0.00033392, 0.00042657, 0.00052916, 0.00064029, 0.00075833, 0.00088149, 0.0010079, 0.0011356, 0.0012626, 0.0013871, 0.001507, 0.0016206, 0.0017262, 0.0018223, 0.0019074, 0.0019803, 0.0020399, 0.0020853, 0.002116, 0.0021315, 2.1546e-07, 2.6242e-06, 1.0008e-05, 2.4893e-05, 4.9413e-05, 8.5222e-05, 0.00013345, 0.00019468, 0.00026898, 0.00035593, 0.00045468, 0.00056403, 0.00068248, 0.0008083, 0.00093958, 0.0010743, 0.0012104, 0.0013459, 0.0014785, 0.0016063, 0.0017274, 0.00184, 0.0019424, 0.0020331, 0.0021108, 0.0021743, 0.0022228, 0.0022555, 0.0022719, 2.2796e-07, 2.7766e-06, 1.059e-05, 2.6338e-05, 5.2281e-05, 9.017e-05, 0.0001412, 0.00020598, 0.0002846, 0.00037659, 0.00048108, 0.00059678, 0.00072211, 0.00085523, 0.00099413, 0.0011367, 0.0012807, 0.001424, 0.0015643, 0.0016996, 0.0018277, 0.0019468, 0.0020552, 0.0021511, 0.0022333, 0.0023005, 0.0023518, 0.0023864, 0.0024038, 2.3964e-07, 2.9188e-06, 1.1132e-05, 2.7687e-05, 5.4959e-05, 9.4788e-05, 0.00014843, 0.00021653, 0.00029917, 0.00039588, 0.00050572, 0.00062734, 0.00075909, 0.00089903, 0.0010451, 0.0011949, 0.0013463, 0.0014969, 0.0016444, 0.0017866, 0.0019213, 0.0020465, 0.0021604, 0.0022613, 0.0023477, 0.0024184, 0.0024723, 0.0025086, 0.0025269, 2.5047e-07, 3.0507e-06, 1.1635e-05, 2.8938e-05, 5.7442e-05, 9.9071e-05, 0.00015514, 0.00022632, 0.00031269, 0.00041377, 0.00052857, 0.00065569, 0.00079339, 0.00093965, 0.0010923, 0.0012489, 0.0014071, 0.0015646, 0.0017187, 0.0018673, 0.0020081, 0.002139, 0.002258, 0.0023635, 0.0024538, 0.0025276, 0.002584, 0.002622, 0.0026411, 2.6044e-07, 3.1721e-06, 1.2098e-05, 3.009e-05, 5.9728e-05, 0.00010301, 0.00016131, 0.00023532, 0.00032514, 0.00043024, 0.0005496, 0.00068179, 0.00082496, 0.00097705, 0.0011357, 0.0012986, 0.0014631, 0.0016268, 0.0017871, 0.0019417, 0.0020881, 0.0022241, 0.0023479, 0.0024575, 0.0025514, 0.0026282, 0.0026868, 0.0027263, 0.0027462, 2.6954e-07, 3.283e-06, 1.2521e-05, 3.1142e-05, 6.1816e-05, 0.00010661, 0.00016695, 0.00024355, 0.0003365, 0.00044527, 0.00056881, 0.00070561, 0.00085379, 0.0010112, 0.0011754, 0.001344, 0.0015143, 0.0016837, 0.0018496, 0.0020095, 0.002161, 0.0023019, 0.00243, 0.0025434, 0.0026406, 0.0027201, 0.0027807, 0.0028216, 0.0028422, 2.7777e-07, 3.3832e-06, 1.2903e-05, 3.2093e-05, 6.3703e-05, 0.00010987, 0.00017204, 0.00025099, 0.00034677, 0.00045887, 0.00058618, 0.00072716, 0.00087987, 0.0010421, 0.0012113, 0.001385, 0.0015605, 0.0017351, 0.0019061, 0.0020709, 0.002227, 0.0023722, 0.0025042, 0.0026211, 0.0027212, 0.0028031, 0.0028656, 0.0029078, 0.002929, 2.8513e-07, 3.4728e-06, 1.3245e-05, 3.2943e-05, 6.5391e-05, 0.00011278, 0.0001766, 0.00025763, 0.00035596, 0.00047102, 0.00060171, 0.00074642, 0.00090317, 0.0010697, 0.0012434, 0.0014217, 0.0016019, 0.0017811, 0.0019566, 0.0021257, 0.002286, 0.002435, 0.0025705, 0.0026905, 0.0027933, 0.0028774, 0.0029415, 0.0029848, 0.0030066, 2.9161e-07, 3.5518e-06, 1.3546e-05, 3.3692e-05, 6.6878e-05, 0.00011534, 0.00018062, 0.00026349, 0.00036405, 0.00048173, 0.00061539, 0.00076339, 0.00092371, 0.001094, 0.0012717, 0.0014541, 0.0016383, 0.0018216, 0.0020011, 0.0021741, 0.002338, 0.0024904, 0.002629, 0.0027517, 0.0028568, 0.0029428, 0.0030084, 0.0030527, 0.003075, 2.9722e-07, 3.6202e-06, 1.3807e-05, 3.434e-05, 6.8165e-05, 0.00011756, 0.00018409, 0.00026856, 0.00037106, 0.00049101, 0.00062724, 0.00077809, 0.00094149, 0.0011151, 0.0012962, 0.001482, 0.0016698, 0.0018566, 0.0020396, 0.0022159, 0.002383, 0.0025383, 0.0026796, 0.0028047, 0.0029118, 0.0029995, 0.0030663, 0.0031114, 0.0031341, 3.0197e-07, 3.6779e-06, 1.4027e-05, 3.4888e-05, 6.9253e-05, 0.00011944, 0.00018703, 0.00027285, 0.00037698, 0.00049884, 0.00063725, 0.00079051, 0.00095652, 0.0011329, 0.0013168, 0.0015057, 0.0016965, 0.0018862, 0.0020721, 0.0022513, 0.002421, 0.0025788, 0.0027223, 0.0028494, 0.0029583, 0.0030473, 0.0031152, 0.0031611, 0.0031842, 3.0584e-07, 3.7252e-06, 1.4207e-05, 3.5336e-05, 7.0142e-05, 0.00012097, 0.00018943, 0.00027635, 0.00038182, 0.00050525, 0.00064543, 0.00080065, 0.00096879, 0.0011474, 0.0013338, 0.001525, 0.0017182, 0.0019105, 0.0020987, 0.0022802, 0.0024521, 0.0026119, 0.0027573, 0.002886, 0.0029963, 0.0030864, 0.0031552, 0.0032017, 0.003225, 3.0885e-07, 3.7618e-06, 1.4347e-05, 3.5684e-05, 7.0832e-05, 0.00012217, 0.0001913, 0.00027907, 0.00038558, 0.00051022, 0.00065178, 0.00080854, 0.00097833, 0.0011587, 0.0013469, 0.00154, 0.0017352, 0.0019293, 0.0021194, 0.0023026, 0.0024762, 0.0026376, 0.0027844, 0.0029144, 0.0030258, 0.0031168, 0.0031863, 0.0032332, 0.0032568, 3.11e-07, 3.788e-06, 1.4447e-05, 3.5932e-05, 7.1325e-05, 0.00012302, 0.00019263, 0.00028102, 0.00038826, 0.00051377, 0.00065632, 0.00081416, 0.00098514, 0.0011668, 0.0013563, 0.0015508, 0.0017472, 0.0019427, 0.0021341, 0.0023187, 0.0024935, 0.002656, 0.0028038, 0.0029347, 0.0030468, 0.0031385, 0.0032085, 0.0032557, 0.0032795, 3.1229e-07, 3.8037e-06, 1.4507e-05, 3.6081e-05, 7.1621e-05, 0.00012353, 0.00019343, 0.00028218, 0.00038987, 0.0005159, 0.00065904, 0.00081754, 0.00098922, 0.0011716, 0.0013619, 0.0015572, 0.0017545, 0.0019507, 0.002143, 0.0023283, 0.0025038, 0.002667, 0.0028154, 0.0029469, 0.0030595, 0.0031515, 0.0032218, 0.0032692, 0.003293, 3.1272e-07, 3.8089e-06, 1.4527e-05, 3.6131e-05, 7.1719e-05, 0.0001237, 0.00019369, 0.00028257, 0.00039041, 0.00051661, 0.00065994, 0.00081866, 0.00099058, 0.0011732, 0.0013638, 0.0015593, 0.0017569, 0.0019534, 0.0021459, 0.0023315, 0.0025073, 0.0026707, 0.0028193, 0.0029509, 0.0030637, 0.0031559, 0.0032262, 0.0032737, 0.0032976, 3.1229e-07, 3.8037e-06, 1.4507e-05, 3.6081e-05, 7.1621e-05, 0.00012353, 0.00019343, 0.00028218, 0.00038987, 0.0005159, 0.00065904, 0.00081754, 0.00098922, 0.0011716, 0.0013619, 0.0015572, 0.0017545, 0.0019507, 0.002143, 0.0023283, 0.0025038, 0.002667, 0.0028154, 0.0029469, 0.0030595, 0.0031515, 0.0032218, 0.0032692, 0.003293, 3.11e-07, 3.788e-06, 1.4447e-05, 3.5932e-05, 7.1325e-05, 0.00012302, 0.00019263, 0.00028102, 0.00038826, 0.00051377, 0.00065632, 0.00081416, 0.00098514, 0.0011668, 0.0013563, 0.0015508, 0.0017472, 0.0019427, 0.0021341, 0.0023187, 0.0024935, 0.002656, 0.0028038, 0.0029347, 0.0030468, 0.0031385, 0.0032085, 0.0032557, 0.0032795, 3.0885e-07, 3.7618e-06, 1.4347e-05, 3.5684e-05, 7.0832e-05, 0.00012217, 0.0001913, 0.00027907, 0.00038558, 0.00051022, 0.00065178, 0.00080854, 0.00097833, 0.0011587, 0.0013469, 0.00154, 0.0017352, 0.0019293, 0.0021194, 0.0023026, 0.0024762, 0.0026376, 0.0027844, 0.0029144, 0.0030258, 0.0031168, 0.0031863, 0.0032332, 0.0032568, 3.0584e-07, 3.7252e-06, 1.4207e-05, 3.5336e-05, 7.0142e-05, 0.00012097, 0.00018943, 0.00027635, 0.00038182, 0.00050525, 0.00064543, 0.00080065, 0.00096879, 0.0011474, 0.0013338, 0.001525, 0.0017182, 0.0019105, 0.0020987, 0.0022802, 0.0024521, 0.0026119, 0.0027573, 0.002886, 0.0029963, 0.0030864, 0.0031552, 0.0032017, 0.003225, 3.0197e-07, 3.6779e-06, 1.4027e-05, 3.4888e-05, 6.9253e-05, 0.00011944, 0.00018703, 0.00027285, 0.00037698, 0.00049884, 0.00063725, 0.00079051, 0.00095652, 0.0011329, 0.0013168, 0.0015057, 0.0016965, 0.0018862, 0.0020721, 0.0022513, 0.002421, 0.0025788, 0.0027223, 0.0028494, 0.0029583, 0.0030473, 0.0031152, 0.0031611, 0.0031842, 2.9722e-07, 3.6202e-06, 1.3807e-05, 3.434e-05, 6.8165e-05, 0.00011756, 0.00018409, 0.00026856, 0.00037106, 0.00049101, 0.00062724, 0.00077809, 0.00094149, 0.0011151, 0.0012962, 0.001482, 0.0016698, 0.0018566, 0.0020396, 0.0022159, 0.002383, 0.0025383, 0.0026796, 0.0028047, 0.0029118, 0.0029995, 0.0030663, 0.0031114, 0.0031341, 2.9161e-07, 3.5518e-06, 1.3546e-05, 3.3692e-05, 6.6878e-05, 0.00011534, 0.00018062, 0.00026349, 0.00036405, 0.00048173, 0.00061539, 0.00076339, 0.00092371, 0.001094, 0.0012717, 0.0014541, 0.0016383, 0.0018216, 0.0020011, 0.0021741, 0.002338, 0.0024904, 0.002629, 0.0027517, 0.0028568, 0.0029428, 0.0030084, 0.0030527, 0.003075, 2.8513e-07, 3.4728e-06, 1.3245e-05, 3.2943e-05, 6.5391e-05, 0.00011278, 0.0001766, 0.00025763, 0.00035596, 0.00047102, 0.00060171, 0.00074642, 0.00090317, 0.0010697, 0.0012434, 0.0014217, 0.0016019, 0.0017811, 0.0019566, 0.0021257, 0.002286, 0.002435, 0.0025705, 0.0026905, 0.0027933, 0.0028774, 0.0029415, 0.0029848, 0.0030066, 2.7777e-07, 3.3832e-06, 1.2903e-05, 3.2093e-05, 6.3703e-05, 0.00010987, 0.00017204, 0.00025099, 0.00034677, 0.00045887, 0.00058618, 0.00072716, 0.00087987, 0.0010421, 0.0012113, 0.001385, 0.0015605, 0.0017351, 0.0019061, 0.0020709, 0.002227, 0.0023722, 0.0025042, 0.0026211, 0.0027212, 0.0028031, 0.0028656, 0.0029078, 0.002929, 2.6954e-07, 3.283e-06, 1.2521e-05, 3.1142e-05, 6.1816e-05, 0.00010661, 0.00016695, 0.00024355, 0.0003365, 0.00044527, 0.00056881, 0.00070561, 0.00085379, 0.0010112, 0.0011754, 0.001344, 0.0015143, 0.0016837, 0.0018496, 0.0020095, 0.002161, 0.0023019, 0.00243, 0.0025434, 0.0026406, 0.0027201, 0.0027807, 0.0028216, 0.0028422, 2.6044e-07, 3.1721e-06, 1.2098e-05, 3.009e-05, 5.9728e-05, 0.00010301, 0.00016131, 0.00023532, 0.00032514, 0.00043024, 0.0005496, 0.00068179, 0.00082496, 0.00097705, 0.0011357, 0.0012986, 0.0014631, 0.0016268, 0.0017871, 0.0019417, 0.0020881, 0.0022241, 0.0023479, 0.0024575, 0.0025514, 0.0026282, 0.0026868, 0.0027263, 0.0027462, 2.5047e-07, 3.0507e-06, 1.1635e-05, 2.8938e-05, 5.7442e-05, 9.9071e-05, 0.00015514, 0.00022632, 0.00031269, 0.00041377, 0.00052857, 0.00065569, 0.00079339, 0.00093965, 0.0010923, 0.0012489, 0.0014071, 0.0015646, 0.0017187, 0.0018673, 0.0020081, 0.002139, 0.002258, 0.0023635, 0.0024538, 0.0025276, 0.002584, 0.002622, 0.0026411, 2.3964e-07, 2.9188e-06, 1.1132e-05, 2.7687e-05, 5.4959e-05, 9.4788e-05, 0.00014843, 0.00021653, 0.00029917, 0.00039588, 0.00050572, 0.00062734, 0.00075909, 0.00089903, 0.0010451, 0.0011949, 0.0013463, 0.0014969, 0.0016444, 0.0017866, 0.0019213, 0.0020465, 0.0021604, 0.0022613, 0.0023477, 0.0024184, 0.0024723, 0.0025086, 0.0025269, 2.2796e-07, 2.7766e-06, 1.059e-05, 2.6338e-05, 5.2281e-05, 9.017e-05, 0.0001412, 0.00020598, 0.0002846, 0.00037659, 0.00048108, 0.00059678, 0.00072211, 0.00085523, 0.00099413, 0.0011367, 0.0012807, 0.001424, 0.0015643, 0.0016996, 0.0018277, 0.0019468, 0.0020552, 0.0021511, 0.0022333, 0.0023005, 0.0023518, 0.0023864, 0.0024038, 2.1546e-07, 2.6242e-06, 1.0008e-05, 2.4893e-05, 4.9413e-05, 8.5222e-05, 0.00013345, 0.00019468, 0.00026898, 0.00035593, 0.00045468, 0.00056403, 0.00068248, 0.0008083, 0.00093958, 0.0010743, 0.0012104, 0.0013459, 0.0014785, 0.0016063, 0.0017274, 0.00184, 0.0019424, 0.0020331, 0.0021108, 0.0021743, 0.0022228, 0.0022555, 0.0022719, 2.0214e-07, 2.462e-06, 9.3897e-06, 2.3354e-05, 4.6358e-05, 7.9953e-05, 0.0001252, 0.00018264, 0.00025235, 0.00033392, 0.00042657, 0.00052916, 0.00064029, 0.00075833, 0.00088149, 0.0010079, 0.0011356, 0.0012626, 0.0013871, 0.001507, 0.0016206, 0.0017262, 0.0018223, 0.0019074, 0.0019803, 0.0020399, 0.0020853, 0.002116, 0.0021315, 1.8803e-07, 2.2902e-06, 8.7344e-06, 2.1724e-05, 4.3122e-05, 7.4374e-05, 0.00011646, 0.0001699, 0.00023474, 0.00031062, 0.0003968, 0.00049223, 0.0005956, 0.00070541, 0.00081998, 0.00093757, 0.0010564, 0.0011745, 0.0012903, 0.0014018, 0.0015075, 0.0016058, 0.0016951, 0.0017743, 0.0018421, 0.0018975, 0.0019398, 0.0019683, 0.0019827, 1.7317e-07, 2.1092e-06, 8.0442e-06, 2.0008e-05, 3.9715e-05, 6.8496e-05, 0.00010726, 0.00015647, 0.00021619, 0.00028607, 0.00036544, 0.00045333, 0.00054854, 0.00064966, 0.00075518, 0.00086347, 0.00097288, 0.0010817, 0.0011883, 0.001291, 0.0013884, 0.0014789, 0.0015612, 0.0016341, 0.0016965, 0.0017476, 0.0017865, 0.0018128, 0.001826, 1.576e-07, 1.9195e-06, 7.3207e-06, 1.8208e-05, 3.6143e-05, 6.2336e-05, 9.7612e-05, 0.0001424, 0.00019675, 0.00026035, 0.00033258, 0.00041256, 0.00049921, 0.00059123, 0.00068726, 0.00078582, 0.00088539, 0.00098443, 0.0010814, 0.0011749, 0.0012635, 0.0013459, 0.0014208, 0.0014871, 0.0015439, 0.0015904, 0.0016258, 0.0016498, 0.0016618, 1.4136e-07, 1.7217e-06, 6.5663e-06, 1.6332e-05, 3.2418e-05, 5.5912e-05, 8.7553e-05, 0.00012773, 0.00017647, 0.00023352, 0.00029831, 0.00037005, 0.00044776, 0.00053031, 0.00061644, 0.00070484, 0.00079415, 0.00088298, 0.00097, 0.0010539, 0.0011333, 0.0012072, 0.0012744, 0.0013339, 0.0013848, 0.0014265, 0.0014583, 0.0014798, 0.0014906, 1.245e-07, 1.5164e-06, 5.7834e-06, 1.4385e-05, 2.8553e-05, 4.9246e-05, 7.7114e-05, 0.0001125, 0.00015543, 0.00020567, 0.00026274, 0.00032593, 0.00039437, 0.00046708, 0.00054294, 0.0006208, 0.00069946, 0.0007777, 0.00085434, 0.00092821, 0.00099819, 0.0010633, 0.0011224, 0.0011748, 0.0012197, 0.0012564, 0.0012844, 0.0013033, 0.0013128, 1.0709e-07, 1.3044e-06, 4.9748e-06, 1.2373e-05, 2.4561e-05, 4.236e-05, 6.6332e-05, 9.6768e-05, 0.0001337, 0.00017692, 0.000226, 0.00028036, 0.00033923, 0.00040177, 0.00046703, 0.000534, 0.00060166, 0.00066897, 0.00073489, 0.00079843, 0.00085863, 0.00091459, 0.00096548, 0.0010106, 0.0010492, 0.0010808, 0.0011048, 0.0011211, 0.0011293, 8.9201e-08, 1.0865e-06, 4.1436e-06, 1.0306e-05, 2.0457e-05, 3.5283e-05, 5.5249e-05, 8.06e-05, 0.00011136, 0.00014736, 0.00018824, 0.00023352, 0.00028255, 0.00033464, 0.000389, 0.00044478, 0.00050114, 0.0005572, 0.00061211, 0.00066503, 0.00071517, 0.00076178, 0.00080417, 0.00084172, 0.00087388, 0.00090018, 0.00092025, 0.00093378, 0.0009406, 7.0896e-08, 8.6352e-07, 3.2933e-06, 8.1912e-06, 1.6259e-05, 2.8043e-05, 4.3912e-05, 6.4061e-05, 8.8509e-05, 0.00011712, 0.00014961, 0.0001856, 0.00022457, 0.00026597, 0.00030917, 0.00035351, 0.0003983, 0.00044286, 0.0004865, 0.00052856, 0.00056841, 0.00060546, 0.00063915, 0.000669, 0.00069456, 0.00071546, 0.00073141, 0.00074217, 0.00074759, 5.2261e-08, 6.3653e-07, 2.4276e-06, 6.0381e-06, 1.1985e-05, 2.0671e-05, 3.2369e-05, 4.7222e-05, 6.5244e-05, 8.6334e-05, 0.00011029, 0.00013681, 0.00016554, 0.00019606, 0.0002279, 0.00026059, 0.0002936, 0.00032645, 0.00035862, 0.00038963, 0.000419, 0.00044631, 0.00047115, 0.00049315, 0.00051199, 0.0005274, 0.00053915, 0.00054708, 0.00055108, 3.338e-08, 4.0657e-07, 1.5506e-06, 3.8566e-06, 7.6554e-06, 1.3203e-05, 2.0675e-05, 3.0161e-05, 4.1672e-05, 5.5143e-05, 7.0443e-05, 8.7384e-05, 0.00010574, 0.00012523, 0.00014557, 0.00016644, 0.00018753, 0.00020851, 0.00022906, 0.00024886, 0.00026763, 0.00028507, 0.00030093, 0.00031498, 0.00032702, 0.00033686, 0.00034437, 0.00034943, 0.00035198, 1.4368e-08, 1.7501e-07, 6.6745e-07, 1.6601e-06, 3.2952e-06, 5.6833e-06, 8.8995e-06, 1.2983e-05, 1.7938e-05, 2.3736e-05, 3.0322e-05, 3.7614e-05, 4.5514e-05, 5.3904e-05, 6.2659e-05, 7.1645e-05, 8.0723e-05, 8.9753e-05, 9.8597e-05, 0.00010712, 0.0001152, 0.00012271, 0.00012954, 0.00013558, 0.00014076, 0.000145, 0.00014823, 0.00015041, 0.00015151}}, {{1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056}, {1.5716, 1.5716, 1.5716, 1.5716, 1.5716, 1.5716, 1.5716, 1.5716, 1.5716, 1.5716, 1.5716, 1.5716, 1.5716, 1.5716, 1.5716, 1.5716, 1.5716, 1.5716, 1.5716, 1.5716, 1.5716, 1.5716, 1.5716, 1.5716, 1.5716, 1.5716, 1.5716, 1.5716, 1.5716, 1.5749, 1.5749, 1.5749, 1.5749, 1.5749, 1.5749, 1.5749, 1.5749, 1.5749, 1.5749, 1.5749, 1.5749, 1.5749, 1.5749, 1.5749, 1.5749, 1.5749, 1.5749, 1.5749, 1.5749, 1.5749, 1.5749, 1.5749, 1.5749, 1.5749, 1.5749, 1.5749, 1.5749, 1.5749, 1.5808, 1.5808, 1.5808, 1.5808, 1.5808, 1.5808, 1.5808, 1.5808, 1.5808, 1.5808, 1.5808, 1.5808, 1.5808, 1.5808, 1.5808, 1.5808, 1.5808, 1.5808, 1.5808, 1.5808, 1.5808, 1.5808, 1.5808, 1.5808, 1.5808, 1.5808, 1.5808, 1.5808, 1.5808, 1.5894, 1.5894, 1.5894, 1.5894, 1.5894, 1.5894, 1.5894, 1.5894, 1.5894, 1.5894, 1.5894, 1.5894, 1.5894, 1.5894, 1.5894, 1.5894, 1.5894, 1.5894, 1.5894, 1.5894, 1.5894, 1.5894, 1.5894, 1.5894, 1.5894, 1.5894, 1.5894, 1.5894, 1.5894, 1.6005, 1.6005, 1.6005, 1.6005, 1.6005, 1.6005, 1.6005, 1.6005, 1.6005, 1.6005, 1.6005, 1.6005, 1.6005, 1.6005, 1.6005, 1.6005, 1.6005, 1.6005, 1.6005, 1.6005, 1.6005, 1.6005, 1.6005, 1.6005, 1.6005, 1.6005, 1.6005, 1.6005, 1.6005, 1.6141, 1.6141, 1.6141, 1.6141, 1.6141, 1.6141, 1.6141, 1.6141, 1.6141, 1.6141, 1.6141, 1.6141, 1.6141, 1.6141, 1.6141, 1.6141, 1.6141, 1.6141, 1.6141, 1.6141, 1.6141, 1.6141, 1.6141, 1.6141, 1.6141, 1.6141, 1.6141, 1.6141, 1.6141, 1.6301, 1.6301, 1.6301, 1.6301, 1.6301, 1.6301, 1.6301, 1.6301, 1.6301, 1.6301, 1.6301, 1.6301, 1.6301, 1.6301, 1.6301, 1.6301, 1.6301, 1.6301, 1.6301, 1.6301, 1.6301, 1.6301, 1.6301, 1.6301, 1.6301, 1.6301, 1.6301, 1.6301, 1.6301, 1.6486, 1.6486, 1.6486, 1.6486, 1.6486, 1.6486, 1.6486, 1.6486, 1.6486, 1.6486, 1.6486, 1.6486, 1.6486, 1.6486, 1.6486, 1.6486, 1.6486, 1.6486, 1.6486, 1.6486, 1.6486, 1.6486, 1.6486, 1.6486, 1.6486, 1.6486, 1.6486, 1.6486, 1.6486, 1.6693, 1.6693, 1.6693, 1.6693, 1.6693, 1.6693, 1.6693, 1.6693, 1.6693, 1.6693, 1.6693, 1.6693, 1.6693, 1.6693, 1.6693, 1.6693, 1.6693, 1.6693, 1.6693, 1.6693, 1.6693, 1.6693, 1.6693, 1.6693, 1.6693, 1.6693, 1.6693, 1.6693, 1.6693, 1.6922, 1.6922, 1.6922, 1.6922, 1.6922, 1.6922, 1.6922, 1.6922, 1.6922, 1.6922, 1.6922, 1.6922, 1.6922, 1.6922, 1.6922, 1.6922, 1.6922, 1.6922, 1.6922, 1.6922, 1.6922, 1.6922, 1.6922, 1.6922, 1.6922, 1.6922, 1.6922, 1.6922, 1.6922, 1.7173, 1.7173, 1.7173, 1.7173, 1.7173, 1.7173, 1.7173, 1.7173, 1.7173, 1.7173, 1.7173, 1.7173, 1.7173, 1.7173, 1.7173, 1.7173, 1.7173, 1.7173, 1.7173, 1.7173, 1.7173, 1.7173, 1.7173, 1.7173, 1.7173, 1.7173, 1.7173, 1.7173, 1.7173, 1.7443, 1.7443, 1.7443, 1.7443, 1.7443, 1.7443, 1.7443, 1.7443, 1.7443, 1.7443, 1.7443, 1.7443, 1.7443, 1.7443, 1.7443, 1.7443, 1.7443, 1.7443, 1.7443, 1.7443, 1.7443, 1.7443, 1.7443, 1.7443, 1.7443, 1.7443, 1.7443, 1.7443, 1.7443, 1.7733, 1.7733, 1.7733, 1.7733, 1.7733, 1.7733, 1.7733, 1.7733, 1.7733, 1.7733, 1.7733, 1.7733, 1.7733, 1.7733, 1.7733, 1.7733, 1.7733, 1.7733, 1.7733, 1.7733, 1.7733, 1.7733, 1.7733, 1.7733, 1.7733, 1.7733, 1.7733, 1.7733, 1.7733, 1.804, 1.804, 1.804, 1.804, 1.804, 1.804, 1.804, 1.804, 1.804, 1.804, 1.804, 1.804, 1.804, 1.804, 1.804, 1.804, 1.804, 1.804, 1.804, 1.804, 1.804, 1.804, 1.804, 1.804, 1.804, 1.804, 1.804, 1.804, 1.804, 1.8364, 1.8364, 1.8364, 1.8364, 1.8364, 1.8364, 1.8364, 1.8364, 1.8364, 1.8364, 1.8364, 1.8364, 1.8364, 1.8364, 1.8364, 1.8364, 1.8364, 1.8364, 1.8364, 1.8364, 1.8364, 1.8364, 1.8364, 1.8364, 1.8364, 1.8364, 1.8364, 1.8364, 1.8364, 1.8704, 1.8704, 1.8704, 1.8704, 1.8704, 1.8704, 1.8704, 1.8704, 1.8704, 1.8704, 1.8704, 1.8704, 1.8704, 1.8704, 1.8704, 1.8704, 1.8704, 1.8704, 1.8704, 1.8704, 1.8704, 1.8704, 1.8704, 1.8704, 1.8704, 1.8704, 1.8704, 1.8704, 1.8704, 1.9059, 1.9059, 1.9059, 1.9059, 1.9059, 1.9059, 1.9059, 1.9059, 1.9059, 1.9059, 1.9059, 1.9059, 1.9059, 1.9059, 1.9059, 1.9059, 1.9059, 1.9059, 1.9059, 1.9059, 1.9059, 1.9059, 1.9059, 1.9059, 1.9059, 1.9059, 1.9059, 1.9059, 1.9059, 1.9426, 1.9426, 1.9426, 1.9426, 1.9426, 1.9426, 1.9426, 1.9426, 1.9426, 1.9426, 1.9426, 1.9426, 1.9426, 1.9426, 1.9426, 1.9426, 1.9426, 1.9426, 1.9426, 1.9426, 1.9426, 1.9426, 1.9426, 1.9426, 1.9426, 1.9426, 1.9426, 1.9426, 1.9426, 1.9805, 1.9805, 1.9805, 1.9805, 1.9805, 1.9805, 1.9805, 1.9805, 1.9805, 1.9805, 1.9805, 1.9805, 1.9805, 1.9805, 1.9805, 1.9805, 1.9805, 1.9805, 1.9805, 1.9805, 1.9805, 1.9805, 1.9805, 1.9805, 1.9805, 1.9805, 1.9805, 1.9805, 1.9805, 2.0196, 2.0196, 2.0196, 2.0196, 2.0196, 2.0196, 2.0196, 2.0196, 2.0196, 2.0196, 2.0196, 2.0196, 2.0196, 2.0196, 2.0196, 2.0196, 2.0196, 2.0196, 2.0196, 2.0196, 2.0196, 2.0196, 2.0196, 2.0196, 2.0196, 2.0196, 2.0196, 2.0196, 2.0196, 2.0596, 2.0596, 2.0596, 2.0596, 2.0596, 2.0596, 2.0596, 2.0596, 2.0596, 2.0596, 2.0596, 2.0596, 2.0596, 2.0596, 2.0596, 2.0596, 2.0596, 2.0596, 2.0596, 2.0596, 2.0596, 2.0596, 2.0596, 2.0596, 2.0596, 2.0596, 2.0596, 2.0596, 2.0596, 2.1004, 2.1004, 2.1004, 2.1004, 2.1004, 2.1004, 2.1004, 2.1004, 2.1004, 2.1004, 2.1004, 2.1004, 2.1004, 2.1004, 2.1004, 2.1004, 2.1004, 2.1004, 2.1004, 2.1004, 2.1004, 2.1004, 2.1004, 2.1004, 2.1004, 2.1004, 2.1004, 2.1004, 2.1004, 2.1419, 2.1419, 2.1419, 2.1419, 2.1419, 2.1419, 2.1419, 2.1419, 2.1419, 2.1419, 2.1419, 2.1419, 2.1419, 2.1419, 2.1419, 2.1419, 2.1419, 2.1419, 2.1419, 2.1419, 2.1419, 2.1419, 2.1419, 2.1419, 2.1419, 2.1419, 2.1419, 2.1419, 2.1419, 2.1841, 2.1841, 2.1841, 2.1841, 2.1841, 2.1841, 2.1841, 2.1841, 2.1841, 2.1841, 2.1841, 2.1841, 2.1841, 2.1841, 2.1841, 2.1841, 2.1841, 2.1841, 2.1841, 2.1841, 2.1841, 2.1841, 2.1841, 2.1841, 2.1841, 2.1841, 2.1841, 2.1841, 2.1841, 2.2267, 2.2267, 2.2267, 2.2267, 2.2267, 2.2267, 2.2267, 2.2267, 2.2267, 2.2267, 2.2267, 2.2267, 2.2267, 2.2267, 2.2267, 2.2267, 2.2267, 2.2267, 2.2267, 2.2267, 2.2267, 2.2267, 2.2267, 2.2267, 2.2267, 2.2267, 2.2267, 2.2267, 2.2267, 2.2696, 2.2696, 2.2696, 2.2696, 2.2696, 2.2696, 2.2696, 2.2696, 2.2696, 2.2696, 2.2696, 2.2696, 2.2696, 2.2696, 2.2696, 2.2696, 2.2696, 2.2696, 2.2696, 2.2696, 2.2696, 2.2696, 2.2696, 2.2696, 2.2696, 2.2696, 2.2696, 2.2696, 2.2696, 2.3129, 2.3129, 2.3129, 2.3129, 2.3129, 2.3129, 2.3129, 2.3129, 2.3129, 2.3129, 2.3129, 2.3129, 2.3129, 2.3129, 2.3129, 2.3129, 2.3129, 2.3129, 2.3129, 2.3129, 2.3129, 2.3129, 2.3129, 2.3129, 2.3129, 2.3129, 2.3129, 2.3129, 2.3129, 2.3562, 2.3562, 2.3562, 2.3562, 2.3562, 2.3562, 2.3562, 2.3562, 2.3562, 2.3562, 2.3562, 2.3562, 2.3562, 2.3562, 2.3562, 2.3562, 2.3562, 2.3562, 2.3562, 2.3562, 2.3562, 2.3562, 2.3562, 2.3562, 2.3562, 2.3562, 2.3562, 2.3562, 2.3562, 2.3995, 2.3995, 2.3995, 2.3995, 2.3995, 2.3995, 2.3995, 2.3995, 2.3995, 2.3995, 2.3995, 2.3995, 2.3995, 2.3995, 2.3995, 2.3995, 2.3995, 2.3995, 2.3995, 2.3995, 2.3995, 2.3995, 2.3995, 2.3995, 2.3995, 2.3995, 2.3995, 2.3995, 2.3995, 2.4427, 2.4427, 2.4427, 2.4427, 2.4427, 2.4427, 2.4427, 2.4427, 2.4427, 2.4427, 2.4427, 2.4427, 2.4427, 2.4427, 2.4427, 2.4427, 2.4427, 2.4427, 2.4427, 2.4427, 2.4427, 2.4427, 2.4427, 2.4427, 2.4427, 2.4427, 2.4427, 2.4427, 2.4427, 2.4857, 2.4857, 2.4857, 2.4857, 2.4857, 2.4857, 2.4857, 2.4857, 2.4857, 2.4857, 2.4857, 2.4857, 2.4857, 2.4857, 2.4857, 2.4857, 2.4857, 2.4857, 2.4857, 2.4857, 2.4857, 2.4857, 2.4857, 2.4857, 2.4857, 2.4857, 2.4857, 2.4857, 2.4857, 2.5283, 2.5283, 2.5283, 2.5283, 2.5283, 2.5283, 2.5283, 2.5283, 2.5283, 2.5283, 2.5283, 2.5283, 2.5283, 2.5283, 2.5283, 2.5283, 2.5283, 2.5283, 2.5283, 2.5283, 2.5283, 2.5283, 2.5283, 2.5283, 2.5283, 2.5283, 2.5283, 2.5283, 2.5283, 2.5705, 2.5705, 2.5705, 2.5705, 2.5705, 2.5705, 2.5705, 2.5705, 2.5705, 2.5705, 2.5705, 2.5705, 2.5705, 2.5705, 2.5705, 2.5705, 2.5705, 2.5705, 2.5705, 2.5705, 2.5705, 2.5705, 2.5705, 2.5705, 2.5705, 2.5705, 2.5705, 2.5705, 2.5705, 2.612, 2.612, 2.612, 2.612, 2.612, 2.612, 2.612, 2.612, 2.612, 2.612, 2.612, 2.612, 2.612, 2.612, 2.612, 2.612, 2.612, 2.612, 2.612, 2.612, 2.612, 2.612, 2.612, 2.612, 2.612, 2.612, 2.612, 2.612, 2.612, 2.6528, 2.6528, 2.6528, 2.6528, 2.6528, 2.6528, 2.6528, 2.6528, 2.6528, 2.6528, 2.6528, 2.6528, 2.6528, 2.6528, 2.6528, 2.6528, 2.6528, 2.6528, 2.6528, 2.6528, 2.6528, 2.6528, 2.6528, 2.6528, 2.6528, 2.6528, 2.6528, 2.6528, 2.6528, 2.6928, 2.6928, 2.6928, 2.6928, 2.6928, 2.6928, 2.6928, 2.6928, 2.6928, 2.6928, 2.6928, 2.6928, 2.6928, 2.6928, 2.6928, 2.6928, 2.6928, 2.6928, 2.6928, 2.6928, 2.6928, 2.6928, 2.6928, 2.6928, 2.6928, 2.6928, 2.6928, 2.6928, 2.6928, 2.7318, 2.7318, 2.7318, 2.7318, 2.7318, 2.7318, 2.7318, 2.7318, 2.7318, 2.7318, 2.7318, 2.7318, 2.7318, 2.7318, 2.7318, 2.7318, 2.7318, 2.7318, 2.7318, 2.7318, 2.7318, 2.7318, 2.7318, 2.7318, 2.7318, 2.7318, 2.7318, 2.7318, 2.7318, 2.7698, 2.7698, 2.7698, 2.7698, 2.7698, 2.7698, 2.7698, 2.7698, 2.7698, 2.7698, 2.7698, 2.7698, 2.7698, 2.7698, 2.7698, 2.7698, 2.7698, 2.7698, 2.7698, 2.7698, 2.7698, 2.7698, 2.7698, 2.7698, 2.7698, 2.7698, 2.7698, 2.7698, 2.7698, 2.8065, 2.8065, 2.8065, 2.8065, 2.8065, 2.8065, 2.8065, 2.8065, 2.8065, 2.8065, 2.8065, 2.8065, 2.8065, 2.8065, 2.8065, 2.8065, 2.8065, 2.8065, 2.8065, 2.8065, 2.8065, 2.8065, 2.8065, 2.8065, 2.8065, 2.8065, 2.8065, 2.8065, 2.8065, 2.842, 2.842, 2.842, 2.842, 2.842, 2.842, 2.842, 2.842, 2.842, 2.842, 2.842, 2.842, 2.842, 2.842, 2.842, 2.842, 2.842, 2.842, 2.842, 2.842, 2.842, 2.842, 2.842, 2.842, 2.842, 2.842, 2.842, 2.842, 2.842, 2.8759, 2.8759, 2.8759, 2.8759, 2.8759, 2.8759, 2.8759, 2.8759, 2.8759, 2.8759, 2.8759, 2.8759, 2.8759, 2.8759, 2.8759, 2.8759, 2.8759, 2.8759, 2.8759, 2.8759, 2.8759, 2.8759, 2.8759, 2.8759, 2.8759, 2.8759, 2.8759, 2.8759, 2.8759, 2.9084, 2.9084, 2.9084, 2.9084, 2.9084, 2.9084, 2.9084, 2.9084, 2.9084, 2.9084, 2.9084, 2.9084, 2.9084, 2.9084, 2.9084, 2.9084, 2.9084, 2.9084, 2.9084, 2.9084, 2.9084, 2.9084, 2.9084, 2.9084, 2.9084, 2.9084, 2.9084, 2.9084, 2.9084, 2.9391, 2.9391, 2.9391, 2.9391, 2.9391, 2.9391, 2.9391, 2.9391, 2.9391, 2.9391, 2.9391, 2.9391, 2.9391, 2.9391, 2.9391, 2.9391, 2.9391, 2.9391, 2.9391, 2.9391, 2.9391, 2.9391, 2.9391, 2.9391, 2.9391, 2.9391, 2.9391, 2.9391, 2.9391, 2.9681, 2.9681, 2.9681, 2.9681, 2.9681, 2.9681, 2.9681, 2.9681, 2.9681, 2.9681, 2.9681, 2.9681, 2.9681, 2.9681, 2.9681, 2.9681, 2.9681, 2.9681, 2.9681, 2.9681, 2.9681, 2.9681, 2.9681, 2.9681, 2.9681, 2.9681, 2.9681, 2.9681, 2.9681, 2.9951, 2.9951, 2.9951, 2.9951, 2.9951, 2.9951, 2.9951, 2.9951, 2.9951, 2.9951, 2.9951, 2.9951, 2.9951, 2.9951, 2.9951, 2.9951, 2.9951, 2.9951, 2.9951, 2.9951, 2.9951, 2.9951, 2.9951, 2.9951, 2.9951, 2.9951, 2.9951, 2.9951, 2.9951, 3.0202, 3.0202, 3.0202, 3.0202, 3.0202, 3.0202, 3.0202, 3.0202, 3.0202, 3.0202, 3.0202, 3.0202, 3.0202, 3.0202, 3.0202, 3.0202, 3.0202, 3.0202, 3.0202, 3.0202, 3.0202, 3.0202, 3.0202, 3.0202, 3.0202, 3.0202, 3.0202, 3.0202, 3.0202, 3.0431, 3.0431, 3.0431, 3.0431, 3.0431, 3.0431, 3.0431, 3.0431, 3.0431, 3.0431, 3.0431, 3.0431, 3.0431, 3.0431, 3.0431, 3.0431, 3.0431, 3.0431, 3.0431, 3.0431, 3.0431, 3.0431, 3.0431, 3.0431, 3.0431, 3.0431, 3.0431, 3.0431, 3.0431, 3.0638, 3.0638, 3.0638, 3.0638, 3.0638, 3.0638, 3.0638, 3.0638, 3.0638, 3.0638, 3.0638, 3.0638, 3.0638, 3.0638, 3.0638, 3.0638, 3.0638, 3.0638, 3.0638, 3.0638, 3.0638, 3.0638, 3.0638, 3.0638, 3.0638, 3.0638, 3.0638, 3.0638, 3.0638, 3.0823, 3.0823, 3.0823, 3.0823, 3.0823, 3.0823, 3.0823, 3.0823, 3.0823, 3.0823, 3.0823, 3.0823, 3.0823, 3.0823, 3.0823, 3.0823, 3.0823, 3.0823, 3.0823, 3.0823, 3.0823, 3.0823, 3.0823, 3.0823, 3.0823, 3.0823, 3.0823, 3.0823, 3.0823, 3.0983, 3.0983, 3.0983, 3.0983, 3.0983, 3.0983, 3.0983, 3.0983, 3.0983, 3.0983, 3.0983, 3.0983, 3.0983, 3.0983, 3.0983, 3.0983, 3.0983, 3.0983, 3.0983, 3.0983, 3.0983, 3.0983, 3.0983, 3.0983, 3.0983, 3.0983, 3.0983, 3.0983, 3.0983, 3.1119, 3.1119, 3.1119, 3.1119, 3.1119, 3.1119, 3.1119, 3.1119, 3.1119, 3.1119, 3.1119, 3.1119, 3.1119, 3.1119, 3.1119, 3.1119, 3.1119, 3.1119, 3.1119, 3.1119, 3.1119, 3.1119, 3.1119, 3.1119, 3.1119, 3.1119, 3.1119, 3.1119, 3.1119, 3.123, 3.123, 3.123, 3.123, 3.123, 3.123, 3.123, 3.123, 3.123, 3.123, 3.123, 3.123, 3.123, 3.123, 3.123, 3.123, 3.123, 3.123, 3.123, 3.123, 3.123, 3.123, 3.123, 3.123, 3.123, 3.123, 3.123, 3.123, 3.123, 3.1316, 3.1316, 3.1316, 3.1316, 3.1316, 3.1316, 3.1316, 3.1316, 3.1316, 3.1316, 3.1316, 3.1316, 3.1316, 3.1316, 3.1316, 3.1316, 3.1316, 3.1316, 3.1316, 3.1316, 3.1316, 3.1316, 3.1316, 3.1316, 3.1316, 3.1316, 3.1316, 3.1316, 3.1316, 3.1375, 3.1375, 3.1375, 3.1375, 3.1375, 3.1375, 3.1375, 3.1375, 3.1375, 3.1375, 3.1375, 3.1375, 3.1375, 3.1375, 3.1375, 3.1375, 3.1375, 3.1375, 3.1375, 3.1375, 3.1375, 3.1375, 3.1375, 3.1375, 3.1375, 3.1375, 3.1375, 3.1375, 3.1375, 3.1408, 3.1408, 3.1408, 3.1408, 3.1408, 3.1408, 3.1408, 3.1408, 3.1408, 3.1408, 3.1408, 3.1408, 3.1408, 3.1408, 3.1408, 3.1408, 3.1408, 3.1408, 3.1408, 3.1408, 3.1408, 3.1408, 3.1408, 3.1408, 3.1408, 3.1408, 3.1408, 3.1408, 3.1408}, {1.4368e-08, 1.7501e-07, 6.6745e-07, 1.6601e-06, 3.2952e-06, 5.6833e-06, 8.8995e-06, 1.2983e-05, 1.7938e-05, 2.3736e-05, 3.0322e-05, 3.7614e-05, 4.5514e-05, 5.3904e-05, 6.2659e-05, 7.1645e-05, 8.0723e-05, 8.9753e-05, 9.8597e-05, 0.00010712, 0.0001152, 0.00012271, 0.00012954, 0.00013558, 0.00014076, 0.000145, 0.00014823, 0.00015041, 0.00015151, 3.338e-08, 4.0657e-07, 1.5506e-06, 3.8566e-06, 7.6554e-06, 1.3203e-05, 2.0675e-05, 3.0161e-05, 4.1672e-05, 5.5143e-05, 7.0443e-05, 8.7384e-05, 0.00010574, 0.00012523, 0.00014557, 0.00016644, 0.00018753, 0.00020851, 0.00022906, 0.00024886, 0.00026763, 0.00028507, 0.00030093, 0.00031498, 0.00032702, 0.00033686, 0.00034437, 0.00034943, 0.00035198, 5.2261e-08, 6.3653e-07, 2.4276e-06, 6.0381e-06, 1.1985e-05, 2.0671e-05, 3.2369e-05, 4.7222e-05, 6.5244e-05, 8.6334e-05, 0.00011029, 0.00013681, 0.00016554, 0.00019606, 0.0002279, 0.00026059, 0.0002936, 0.00032645, 0.00035862, 0.00038963, 0.000419, 0.00044631, 0.00047115, 0.00049315, 0.00051199, 0.0005274, 0.00053915, 0.00054708, 0.00055108, 7.0896e-08, 8.6352e-07, 3.2933e-06, 8.1912e-06, 1.6259e-05, 2.8043e-05, 4.3912e-05, 6.4061e-05, 8.8509e-05, 0.00011712, 0.00014961, 0.0001856, 0.00022457, 0.00026597, 0.00030917, 0.00035351, 0.0003983, 0.00044286, 0.0004865, 0.00052856, 0.00056841, 0.00060546, 0.00063915, 0.000669, 0.00069456, 0.00071546, 0.00073141, 0.00074217, 0.00074759, 8.9201e-08, 1.0865e-06, 4.1436e-06, 1.0306e-05, 2.0457e-05, 3.5283e-05, 5.5249e-05, 8.06e-05, 0.00011136, 0.00014736, 0.00018824, 0.00023352, 0.00028255, 0.00033464, 0.000389, 0.00044478, 0.00050114, 0.0005572, 0.00061211, 0.00066503, 0.00071517, 0.00076178, 0.00080417, 0.00084172, 0.00087388, 0.00090018, 0.00092025, 0.00093378, 0.0009406, 1.0709e-07, 1.3044e-06, 4.9748e-06, 1.2373e-05, 2.4561e-05, 4.236e-05, 6.6332e-05, 9.6768e-05, 0.0001337, 0.00017692, 0.000226, 0.00028036, 0.00033923, 0.00040177, 0.00046703, 0.000534, 0.00060166, 0.00066897, 0.00073489, 0.00079843, 0.00085863, 0.00091459, 0.00096548, 0.0010106, 0.0010492, 0.0010808, 0.0011048, 0.0011211, 0.0011293, 1.245e-07, 1.5164e-06, 5.7834e-06, 1.4385e-05, 2.8553e-05, 4.9246e-05, 7.7114e-05, 0.0001125, 0.00015543, 0.00020567, 0.00026274, 0.00032593, 0.00039437, 0.00046708, 0.00054294, 0.0006208, 0.00069946, 0.0007777, 0.00085434, 0.00092821, 0.00099819, 0.0010633, 0.0011224, 0.0011748, 0.0012197, 0.0012564, 0.0012844, 0.0013033, 0.0013128, 1.4136e-07, 1.7217e-06, 6.5663e-06, 1.6332e-05, 3.2418e-05, 5.5912e-05, 8.7553e-05, 0.00012773, 0.00017647, 0.00023352, 0.00029831, 0.00037005, 0.00044776, 0.00053031, 0.00061644, 0.00070484, 0.00079415, 0.00088298, 0.00097, 0.0010539, 0.0011333, 0.0012072, 0.0012744, 0.0013339, 0.0013848, 0.0014265, 0.0014583, 0.0014798, 0.0014906, 1.576e-07, 1.9195e-06, 7.3207e-06, 1.8208e-05, 3.6143e-05, 6.2336e-05, 9.7612e-05, 0.0001424, 0.00019675, 0.00026035, 0.00033258, 0.00041256, 0.00049921, 0.00059123, 0.00068726, 0.00078582, 0.00088539, 0.00098443, 0.0010814, 0.0011749, 0.0012635, 0.0013459, 0.0014208, 0.0014871, 0.0015439, 0.0015904, 0.0016258, 0.0016498, 0.0016618, 1.7317e-07, 2.1092e-06, 8.0442e-06, 2.0008e-05, 3.9715e-05, 6.8496e-05, 0.00010726, 0.00015647, 0.00021619, 0.00028607, 0.00036544, 0.00045333, 0.00054854, 0.00064966, 0.00075518, 0.00086347, 0.00097288, 0.0010817, 0.0011883, 0.001291, 0.0013884, 0.0014789, 0.0015612, 0.0016341, 0.0016965, 0.0017476, 0.0017865, 0.0018128, 0.001826, 1.8803e-07, 2.2902e-06, 8.7344e-06, 2.1724e-05, 4.3122e-05, 7.4374e-05, 0.00011646, 0.0001699, 0.00023474, 0.00031062, 0.0003968, 0.00049223, 0.0005956, 0.00070541, 0.00081998, 0.00093757, 0.0010564, 0.0011745, 0.0012903, 0.0014018, 0.0015075, 0.0016058, 0.0016951, 0.0017743, 0.0018421, 0.0018975, 0.0019398, 0.0019683, 0.0019827, 2.0214e-07, 2.462e-06, 9.3897e-06, 2.3354e-05, 4.6358e-05, 7.9953e-05, 0.0001252, 0.00018264, 0.00025235, 0.00033392, 0.00042657, 0.00052916, 0.00064029, 0.00075833, 0.00088149, 0.0010079, 0.0011356, 0.0012626, 0.0013871, 0.001507, 0.0016206, 0.0017262, 0.0018223, 0.0019074, 0.0019803, 0.0020399, 0.0020853, 0.002116, 0.0021315, 2.1546e-07, 2.6242e-06, 1.0008e-05, 2.4893e-05, 4.9413e-05, 8.5222e-05, 0.00013345, 0.00019468, 0.00026898, 0.00035593, 0.00045468, 0.00056403, 0.00068248, 0.0008083, 0.00093958, 0.0010743, 0.0012104, 0.0013459, 0.0014785, 0.0016063, 0.0017274, 0.00184, 0.0019424, 0.0020331, 0.0021108, 0.0021743, 0.0022228, 0.0022555, 0.0022719, 2.2796e-07, 2.7766e-06, 1.059e-05, 2.6338e-05, 5.2281e-05, 9.017e-05, 0.0001412, 0.00020598, 0.0002846, 0.00037659, 0.00048108, 0.00059678, 0.00072211, 0.00085523, 0.00099413, 0.0011367, 0.0012807, 0.001424, 0.0015643, 0.0016996, 0.0018277, 0.0019468, 0.0020552, 0.0021511, 0.0022333, 0.0023005, 0.0023518, 0.0023864, 0.0024038, 2.3964e-07, 2.9188e-06, 1.1132e-05, 2.7687e-05, 5.4959e-05, 9.4788e-05, 0.00014843, 0.00021653, 0.00029917, 0.00039588, 0.00050572, 0.00062734, 0.00075909, 0.00089903, 0.0010451, 0.0011949, 0.0013463, 0.0014969, 0.0016444, 0.0017866, 0.0019213, 0.0020465, 0.0021604, 0.0022613, 0.0023477, 0.0024184, 0.0024723, 0.0025086, 0.0025269, 2.5047e-07, 3.0507e-06, 1.1635e-05, 2.8938e-05, 5.7442e-05, 9.9071e-05, 0.00015514, 0.00022632, 0.00031269, 0.00041377, 0.00052857, 0.00065569, 0.00079339, 0.00093965, 0.0010923, 0.0012489, 0.0014071, 0.0015646, 0.0017187, 0.0018673, 0.0020081, 0.002139, 0.002258, 0.0023635, 0.0024538, 0.0025276, 0.002584, 0.002622, 0.0026411, 2.6044e-07, 3.1721e-06, 1.2098e-05, 3.009e-05, 5.9728e-05, 0.00010301, 0.00016131, 0.00023532, 0.00032514, 0.00043024, 0.0005496, 0.00068179, 0.00082496, 0.00097705, 0.0011357, 0.0012986, 0.0014631, 0.0016268, 0.0017871, 0.0019417, 0.0020881, 0.0022241, 0.0023479, 0.0024575, 0.0025514, 0.0026282, 0.0026868, 0.0027263, 0.0027462, 2.6954e-07, 3.283e-06, 1.2521e-05, 3.1142e-05, 6.1816e-05, 0.00010661, 0.00016695, 0.00024355, 0.0003365, 0.00044527, 0.00056881, 0.00070561, 0.00085379, 0.0010112, 0.0011754, 0.001344, 0.0015143, 0.0016837, 0.0018496, 0.0020095, 0.002161, 0.0023019, 0.00243, 0.0025434, 0.0026406, 0.0027201, 0.0027807, 0.0028216, 0.0028422, 2.7777e-07, 3.3832e-06, 1.2903e-05, 3.2093e-05, 6.3703e-05, 0.00010987, 0.00017204, 0.00025099, 0.00034677, 0.00045887, 0.00058618, 0.00072716, 0.00087987, 0.0010421, 0.0012113, 0.001385, 0.0015605, 0.0017351, 0.0019061, 0.0020709, 0.002227, 0.0023722, 0.0025042, 0.0026211, 0.0027212, 0.0028031, 0.0028656, 0.0029078, 0.002929, 2.8513e-07, 3.4728e-06, 1.3245e-05, 3.2943e-05, 6.5391e-05, 0.00011278, 0.0001766, 0.00025763, 0.00035596, 0.00047102, 0.00060171, 0.00074642, 0.00090317, 0.0010697, 0.0012434, 0.0014217, 0.0016019, 0.0017811, 0.0019566, 0.0021257, 0.002286, 0.002435, 0.0025705, 0.0026905, 0.0027933, 0.0028774, 0.0029415, 0.0029848, 0.0030066, 2.9161e-07, 3.5518e-06, 1.3546e-05, 3.3692e-05, 6.6878e-05, 0.00011534, 0.00018062, 0.00026349, 0.00036405, 0.00048173, 0.00061539, 0.00076339, 0.00092371, 0.001094, 0.0012717, 0.0014541, 0.0016383, 0.0018216, 0.0020011, 0.0021741, 0.002338, 0.0024904, 0.002629, 0.0027517, 0.0028568, 0.0029428, 0.0030084, 0.0030527, 0.003075, 2.9722e-07, 3.6202e-06, 1.3807e-05, 3.434e-05, 6.8165e-05, 0.00011756, 0.00018409, 0.00026856, 0.00037106, 0.00049101, 0.00062724, 0.00077809, 0.00094149, 0.0011151, 0.0012962, 0.001482, 0.0016698, 0.0018566, 0.0020396, 0.0022159, 0.002383, 0.0025383, 0.0026796, 0.0028047, 0.0029118, 0.0029995, 0.0030663, 0.0031114, 0.0031341, 3.0197e-07, 3.6779e-06, 1.4027e-05, 3.4888e-05, 6.9253e-05, 0.00011944, 0.00018703, 0.00027285, 0.00037698, 0.00049884, 0.00063725, 0.00079051, 0.00095652, 0.0011329, 0.0013168, 0.0015057, 0.0016965, 0.0018862, 0.0020721, 0.0022513, 0.002421, 0.0025788, 0.0027223, 0.0028494, 0.0029583, 0.0030473, 0.0031152, 0.0031611, 0.0031842, 3.0584e-07, 3.7252e-06, 1.4207e-05, 3.5336e-05, 7.0142e-05, 0.00012097, 0.00018943, 0.00027635, 0.00038182, 0.00050525, 0.00064543, 0.00080065, 0.00096879, 0.0011474, 0.0013338, 0.001525, 0.0017182, 0.0019105, 0.0020987, 0.0022802, 0.0024521, 0.0026119, 0.0027573, 0.002886, 0.0029963, 0.0030864, 0.0031552, 0.0032017, 0.003225, 3.0885e-07, 3.7618e-06, 1.4347e-05, 3.5684e-05, 7.0832e-05, 0.00012217, 0.0001913, 0.00027907, 0.00038558, 0.00051022, 0.00065178, 0.00080854, 0.00097833, 0.0011587, 0.0013469, 0.00154, 0.0017352, 0.0019293, 0.0021194, 0.0023026, 0.0024762, 0.0026376, 0.0027844, 0.0029144, 0.0030258, 0.0031168, 0.0031863, 0.0032332, 0.0032568, 3.11e-07, 3.788e-06, 1.4447e-05, 3.5932e-05, 7.1325e-05, 0.00012302, 0.00019263, 0.00028102, 0.00038826, 0.00051377, 0.00065632, 0.00081416, 0.00098514, 0.0011668, 0.0013563, 0.0015508, 0.0017472, 0.0019427, 0.0021341, 0.0023187, 0.0024935, 0.002656, 0.0028038, 0.0029347, 0.0030468, 0.0031385, 0.0032085, 0.0032557, 0.0032795, 3.1229e-07, 3.8037e-06, 1.4507e-05, 3.6081e-05, 7.1621e-05, 0.00012353, 0.00019343, 0.00028218, 0.00038987, 0.0005159, 0.00065904, 0.00081754, 0.00098922, 0.0011716, 0.0013619, 0.0015572, 0.0017545, 0.0019507, 0.002143, 0.0023283, 0.0025038, 0.002667, 0.0028154, 0.0029469, 0.0030595, 0.0031515, 0.0032218, 0.0032692, 0.003293, 3.1272e-07, 3.8089e-06, 1.4527e-05, 3.6131e-05, 7.1719e-05, 0.0001237, 0.00019369, 0.00028257, 0.00039041, 0.00051661, 0.00065994, 0.00081866, 0.00099058, 0.0011732, 0.0013638, 0.0015593, 0.0017569, 0.0019534, 0.0021459, 0.0023315, 0.0025073, 0.0026707, 0.0028193, 0.0029509, 0.0030637, 0.0031559, 0.0032262, 0.0032737, 0.0032976, 3.1229e-07, 3.8037e-06, 1.4507e-05, 3.6081e-05, 7.1621e-05, 0.00012353, 0.00019343, 0.00028218, 0.00038987, 0.0005159, 0.00065904, 0.00081754, 0.00098922, 0.0011716, 0.0013619, 0.0015572, 0.0017545, 0.0019507, 0.002143, 0.0023283, 0.0025038, 0.002667, 0.0028154, 0.0029469, 0.0030595, 0.0031515, 0.0032218, 0.0032692, 0.003293, 3.11e-07, 3.788e-06, 1.4447e-05, 3.5932e-05, 7.1325e-05, 0.00012302, 0.00019263, 0.00028102, 0.00038826, 0.00051377, 0.00065632, 0.00081416, 0.00098514, 0.0011668, 0.0013563, 0.0015508, 0.0017472, 0.0019427, 0.0021341, 0.0023187, 0.0024935, 0.002656, 0.0028038, 0.0029347, 0.0030468, 0.0031385, 0.0032085, 0.0032557, 0.0032795, 3.0885e-07, 3.7618e-06, 1.4347e-05, 3.5684e-05, 7.0832e-05, 0.00012217, 0.0001913, 0.00027907, 0.00038558, 0.00051022, 0.00065178, 0.00080854, 0.00097833, 0.0011587, 0.0013469, 0.00154, 0.0017352, 0.0019293, 0.0021194, 0.0023026, 0.0024762, 0.0026376, 0.0027844, 0.0029144, 0.0030258, 0.0031168, 0.0031863, 0.0032332, 0.0032568, 3.0584e-07, 3.7252e-06, 1.4207e-05, 3.5336e-05, 7.0142e-05, 0.00012097, 0.00018943, 0.00027635, 0.00038182, 0.00050525, 0.00064543, 0.00080065, 0.00096879, 0.0011474, 0.0013338, 0.001525, 0.0017182, 0.0019105, 0.0020987, 0.0022802, 0.0024521, 0.0026119, 0.0027573, 0.002886, 0.0029963, 0.0030864, 0.0031552, 0.0032017, 0.003225, 3.0197e-07, 3.6779e-06, 1.4027e-05, 3.4888e-05, 6.9253e-05, 0.00011944, 0.00018703, 0.00027285, 0.00037698, 0.00049884, 0.00063725, 0.00079051, 0.00095652, 0.0011329, 0.0013168, 0.0015057, 0.0016965, 0.0018862, 0.0020721, 0.0022513, 0.002421, 0.0025788, 0.0027223, 0.0028494, 0.0029583, 0.0030473, 0.0031152, 0.0031611, 0.0031842, 2.9722e-07, 3.6202e-06, 1.3807e-05, 3.434e-05, 6.8165e-05, 0.00011756, 0.00018409, 0.00026856, 0.00037106, 0.00049101, 0.00062724, 0.00077809, 0.00094149, 0.0011151, 0.0012962, 0.001482, 0.0016698, 0.0018566, 0.0020396, 0.0022159, 0.002383, 0.0025383, 0.0026796, 0.0028047, 0.0029118, 0.0029995, 0.0030663, 0.0031114, 0.0031341, 2.9161e-07, 3.5518e-06, 1.3546e-05, 3.3692e-05, 6.6878e-05, 0.00011534, 0.00018062, 0.00026349, 0.00036405, 0.00048173, 0.00061539, 0.00076339, 0.00092371, 0.001094, 0.0012717, 0.0014541, 0.0016383, 0.0018216, 0.0020011, 0.0021741, 0.002338, 0.0024904, 0.002629, 0.0027517, 0.0028568, 0.0029428, 0.0030084, 0.0030527, 0.003075, 2.8513e-07, 3.4728e-06, 1.3245e-05, 3.2943e-05, 6.5391e-05, 0.00011278, 0.0001766, 0.00025763, 0.00035596, 0.00047102, 0.00060171, 0.00074642, 0.00090317, 0.0010697, 0.0012434, 0.0014217, 0.0016019, 0.0017811, 0.0019566, 0.0021257, 0.002286, 0.002435, 0.0025705, 0.0026905, 0.0027933, 0.0028774, 0.0029415, 0.0029848, 0.0030066, 2.7777e-07, 3.3832e-06, 1.2903e-05, 3.2093e-05, 6.3703e-05, 0.00010987, 0.00017204, 0.00025099, 0.00034677, 0.00045887, 0.00058618, 0.00072716, 0.00087987, 0.0010421, 0.0012113, 0.001385, 0.0015605, 0.0017351, 0.0019061, 0.0020709, 0.002227, 0.0023722, 0.0025042, 0.0026211, 0.0027212, 0.0028031, 0.0028656, 0.0029078, 0.002929, 2.6954e-07, 3.283e-06, 1.2521e-05, 3.1142e-05, 6.1816e-05, 0.00010661, 0.00016695, 0.00024355, 0.0003365, 0.00044527, 0.00056881, 0.00070561, 0.00085379, 0.0010112, 0.0011754, 0.001344, 0.0015143, 0.0016837, 0.0018496, 0.0020095, 0.002161, 0.0023019, 0.00243, 0.0025434, 0.0026406, 0.0027201, 0.0027807, 0.0028216, 0.0028422, 2.6044e-07, 3.1721e-06, 1.2098e-05, 3.009e-05, 5.9728e-05, 0.00010301, 0.00016131, 0.00023532, 0.00032514, 0.00043024, 0.0005496, 0.00068179, 0.00082496, 0.00097705, 0.0011357, 0.0012986, 0.0014631, 0.0016268, 0.0017871, 0.0019417, 0.0020881, 0.0022241, 0.0023479, 0.0024575, 0.0025514, 0.0026282, 0.0026868, 0.0027263, 0.0027462, 2.5047e-07, 3.0507e-06, 1.1635e-05, 2.8938e-05, 5.7442e-05, 9.9071e-05, 0.00015514, 0.00022632, 0.00031269, 0.00041377, 0.00052857, 0.00065569, 0.00079339, 0.00093965, 0.0010923, 0.0012489, 0.0014071, 0.0015646, 0.0017187, 0.0018673, 0.0020081, 0.002139, 0.002258, 0.0023635, 0.0024538, 0.0025276, 0.002584, 0.002622, 0.0026411, 2.3964e-07, 2.9188e-06, 1.1132e-05, 2.7687e-05, 5.4959e-05, 9.4788e-05, 0.00014843, 0.00021653, 0.00029917, 0.00039588, 0.00050572, 0.00062734, 0.00075909, 0.00089903, 0.0010451, 0.0011949, 0.0013463, 0.0014969, 0.0016444, 0.0017866, 0.0019213, 0.0020465, 0.0021604, 0.0022613, 0.0023477, 0.0024184, 0.0024723, 0.0025086, 0.0025269, 2.2796e-07, 2.7766e-06, 1.059e-05, 2.6338e-05, 5.2281e-05, 9.017e-05, 0.0001412, 0.00020598, 0.0002846, 0.00037659, 0.00048108, 0.00059678, 0.00072211, 0.00085523, 0.00099413, 0.0011367, 0.0012807, 0.001424, 0.0015643, 0.0016996, 0.0018277, 0.0019468, 0.0020552, 0.0021511, 0.0022333, 0.0023005, 0.0023518, 0.0023864, 0.0024038, 2.1546e-07, 2.6242e-06, 1.0008e-05, 2.4893e-05, 4.9413e-05, 8.5222e-05, 0.00013345, 0.00019468, 0.00026898, 0.00035593, 0.00045468, 0.00056403, 0.00068248, 0.0008083, 0.00093958, 0.0010743, 0.0012104, 0.0013459, 0.0014785, 0.0016063, 0.0017274, 0.00184, 0.0019424, 0.0020331, 0.0021108, 0.0021743, 0.0022228, 0.0022555, 0.0022719, 2.0214e-07, 2.462e-06, 9.3897e-06, 2.3354e-05, 4.6358e-05, 7.9953e-05, 0.0001252, 0.00018264, 0.00025235, 0.00033392, 0.00042657, 0.00052916, 0.00064029, 0.00075833, 0.00088149, 0.0010079, 0.0011356, 0.0012626, 0.0013871, 0.001507, 0.0016206, 0.0017262, 0.0018223, 0.0019074, 0.0019803, 0.0020399, 0.0020853, 0.002116, 0.0021315, 1.8803e-07, 2.2902e-06, 8.7344e-06, 2.1724e-05, 4.3122e-05, 7.4374e-05, 0.00011646, 0.0001699, 0.00023474, 0.00031062, 0.0003968, 0.00049223, 0.0005956, 0.00070541, 0.00081998, 0.00093757, 0.0010564, 0.0011745, 0.0012903, 0.0014018, 0.0015075, 0.0016058, 0.0016951, 0.0017743, 0.0018421, 0.0018975, 0.0019398, 0.0019683, 0.0019827, 1.7317e-07, 2.1092e-06, 8.0442e-06, 2.0008e-05, 3.9715e-05, 6.8496e-05, 0.00010726, 0.00015647, 0.00021619, 0.00028607, 0.00036544, 0.00045333, 0.00054854, 0.00064966, 0.00075518, 0.00086347, 0.00097288, 0.0010817, 0.0011883, 0.001291, 0.0013884, 0.0014789, 0.0015612, 0.0016341, 0.0016965, 0.0017476, 0.0017865, 0.0018128, 0.001826, 1.576e-07, 1.9195e-06, 7.3207e-06, 1.8208e-05, 3.6143e-05, 6.2336e-05, 9.7612e-05, 0.0001424, 0.00019675, 0.00026035, 0.00033258, 0.00041256, 0.00049921, 0.00059123, 0.00068726, 0.00078582, 0.00088539, 0.00098443, 0.0010814, 0.0011749, 0.0012635, 0.0013459, 0.0014208, 0.0014871, 0.0015439, 0.0015904, 0.0016258, 0.0016498, 0.0016618, 1.4136e-07, 1.7217e-06, 6.5663e-06, 1.6332e-05, 3.2418e-05, 5.5912e-05, 8.7553e-05, 0.00012773, 0.00017647, 0.00023352, 0.00029831, 0.00037005, 0.00044776, 0.00053031, 0.00061644, 0.00070484, 0.00079415, 0.00088298, 0.00097, 0.0010539, 0.0011333, 0.0012072, 0.0012744, 0.0013339, 0.0013848, 0.0014265, 0.0014583, 0.0014798, 0.0014906, 1.245e-07, 1.5164e-06, 5.7834e-06, 1.4385e-05, 2.8553e-05, 4.9246e-05, 7.7114e-05, 0.0001125, 0.00015543, 0.00020567, 0.00026274, 0.00032593, 0.00039437, 0.00046708, 0.00054294, 0.0006208, 0.00069946, 0.0007777, 0.00085434, 0.00092821, 0.00099819, 0.0010633, 0.0011224, 0.0011748, 0.0012197, 0.0012564, 0.0012844, 0.0013033, 0.0013128, 1.0709e-07, 1.3044e-06, 4.9748e-06, 1.2373e-05, 2.4561e-05, 4.236e-05, 6.6332e-05, 9.6768e-05, 0.0001337, 0.00017692, 0.000226, 0.00028036, 0.00033923, 0.00040177, 0.00046703, 0.000534, 0.00060166, 0.00066897, 0.00073489, 0.00079843, 0.00085863, 0.00091459, 0.00096548, 0.0010106, 0.0010492, 0.0010808, 0.0011048, 0.0011211, 0.0011293, 8.9201e-08, 1.0865e-06, 4.1436e-06, 1.0306e-05, 2.0457e-05, 3.5283e-05, 5.5249e-05, 8.06e-05, 0.00011136, 0.00014736, 0.00018824, 0.00023352, 0.00028255, 0.00033464, 0.000389, 0.00044478, 0.00050114, 0.0005572, 0.00061211, 0.00066503, 0.00071517, 0.00076178, 0.00080417, 0.00084172, 0.00087388, 0.00090018, 0.00092025, 0.00093378, 0.0009406, 7.0896e-08, 8.6352e-07, 3.2933e-06, 8.1912e-06, 1.6259e-05, 2.8043e-05, 4.3912e-05, 6.4061e-05, 8.8509e-05, 0.00011712, 0.00014961, 0.0001856, 0.00022457, 0.00026597, 0.00030917, 0.00035351, 0.0003983, 0.00044286, 0.0004865, 0.00052856, 0.00056841, 0.00060546, 0.00063915, 0.000669, 0.00069456, 0.00071546, 0.00073141, 0.00074217, 0.00074759, 5.2261e-08, 6.3653e-07, 2.4276e-06, 6.0381e-06, 1.1985e-05, 2.0671e-05, 3.2369e-05, 4.7222e-05, 6.5244e-05, 8.6334e-05, 0.00011029, 0.00013681, 0.00016554, 0.00019606, 0.0002279, 0.00026059, 0.0002936, 0.00032645, 0.00035862, 0.00038963, 0.000419, 0.00044631, 0.00047115, 0.00049315, 0.00051199, 0.0005274, 0.00053915, 0.00054708, 0.00055108, 3.338e-08, 4.0657e-07, 1.5506e-06, 3.8566e-06, 7.6554e-06, 1.3203e-05, 2.0675e-05, 3.0161e-05, 4.1672e-05, 5.5143e-05, 7.0443e-05, 8.7384e-05, 0.00010574, 0.00012523, 0.00014557, 0.00016644, 0.00018753, 0.00020851, 0.00022906, 0.00024886, 0.00026763, 0.00028507, 0.00030093, 0.00031498, 0.00032702, 0.00033686, 0.00034437, 0.00034943, 0.00035198, 1.4368e-08, 1.7501e-07, 6.6745e-07, 1.6601e-06, 3.2952e-06, 5.6833e-06, 8.8995e-06, 1.2983e-05, 1.7938e-05, 2.3736e-05, 3.0322e-05, 3.7614e-05, 4.5514e-05, 5.3904e-05, 6.2659e-05, 7.1645e-05, 8.0723e-05, 8.9753e-05, 9.8597e-05, 0.00010712, 0.0001152, 0.00012271, 0.00012954, 0.00013558, 0.00014076, 0.000145, 0.00014823, 0.00015041, 0.00015151}}, {{1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056}, {3.1424, 3.1424, 3.1424, 3.1424, 3.1424, 3.1424, 3.1424, 3.1424, 3.1424, 3.1424, 3.1424, 3.1424, 3.1424, 3.1424, 3.1424, 3.1424, 3.1424, 3.1424, 3.1424, 3.1424, 3.1424, 3.1424, 3.1424, 3.1424, 3.1424, 3.1424, 3.1424, 3.1424, 3.1424, 3.1457, 3.1457, 3.1457, 3.1457, 3.1457, 3.1457, 3.1457, 3.1457, 3.1457, 3.1457, 3.1457, 3.1457, 3.1457, 3.1457, 3.1457, 3.1457, 3.1457, 3.1457, 3.1457, 3.1457, 3.1457, 3.1457, 3.1457, 3.1457, 3.1457, 3.1457, 3.1457, 3.1457, 3.1457, 3.1516, 3.1516, 3.1516, 3.1516, 3.1516, 3.1516, 3.1516, 3.1516, 3.1516, 3.1516, 3.1516, 3.1516, 3.1516, 3.1516, 3.1516, 3.1516, 3.1516, 3.1516, 3.1516, 3.1516, 3.1516, 3.1516, 3.1516, 3.1516, 3.1516, 3.1516, 3.1516, 3.1516, 3.1516, 3.1602, 3.1602, 3.1602, 3.1602, 3.1602, 3.1602, 3.1602, 3.1602, 3.1602, 3.1602, 3.1602, 3.1602, 3.1602, 3.1602, 3.1602, 3.1602, 3.1602, 3.1602, 3.1602, 3.1602, 3.1602, 3.1602, 3.1602, 3.1602, 3.1602, 3.1602, 3.1602, 3.1602, 3.1602, 3.1713, 3.1713, 3.1713, 3.1713, 3.1713, 3.1713, 3.1713, 3.1713, 3.1713, 3.1713, 3.1713, 3.1713, 3.1713, 3.1713, 3.1713, 3.1713, 3.1713, 3.1713, 3.1713, 3.1713, 3.1713, 3.1713, 3.1713, 3.1713, 3.1713, 3.1713, 3.1713, 3.1713, 3.1713, 3.1849, 3.1849, 3.1849, 3.1849, 3.1849, 3.1849, 3.1849, 3.1849, 3.1849, 3.1849, 3.1849, 3.1849, 3.1849, 3.1849, 3.1849, 3.1849, 3.1849, 3.1849, 3.1849, 3.1849, 3.1849, 3.1849, 3.1849, 3.1849, 3.1849, 3.1849, 3.1849, 3.1849, 3.1849, 3.2009, 3.2009, 3.2009, 3.2009, 3.2009, 3.2009, 3.2009, 3.2009, 3.2009, 3.2009, 3.2009, 3.2009, 3.2009, 3.2009, 3.2009, 3.2009, 3.2009, 3.2009, 3.2009, 3.2009, 3.2009, 3.2009, 3.2009, 3.2009, 3.2009, 3.2009, 3.2009, 3.2009, 3.2009, 3.2194, 3.2194, 3.2194, 3.2194, 3.2194, 3.2194, 3.2194, 3.2194, 3.2194, 3.2194, 3.2194, 3.2194, 3.2194, 3.2194, 3.2194, 3.2194, 3.2194, 3.2194, 3.2194, 3.2194, 3.2194, 3.2194, 3.2194, 3.2194, 3.2194, 3.2194, 3.2194, 3.2194, 3.2194, 3.2401, 3.2401, 3.2401, 3.2401, 3.2401, 3.2401, 3.2401, 3.2401, 3.2401, 3.2401, 3.2401, 3.2401, 3.2401, 3.2401, 3.2401, 3.2401, 3.2401, 3.2401, 3.2401, 3.2401, 3.2401, 3.2401, 3.2401, 3.2401, 3.2401, 3.2401, 3.2401, 3.2401, 3.2401, 3.263, 3.263, 3.263, 3.263, 3.263, 3.263, 3.263, 3.263, 3.263, 3.263, 3.263, 3.263, 3.263, 3.263, 3.263, 3.263, 3.263, 3.263, 3.263, 3.263, 3.263, 3.263, 3.263, 3.263, 3.263, 3.263, 3.263, 3.263, 3.263, 3.2881, 3.2881, 3.2881, 3.2881, 3.2881, 3.2881, 3.2881, 3.2881, 3.2881, 3.2881, 3.2881, 3.2881, 3.2881, 3.2881, 3.2881, 3.2881, 3.2881, 3.2881, 3.2881, 3.2881, 3.2881, 3.2881, 3.2881, 3.2881, 3.2881, 3.2881, 3.2881, 3.2881, 3.2881, 3.3151, 3.3151, 3.3151, 3.3151, 3.3151, 3.3151, 3.3151, 3.3151, 3.3151, 3.3151, 3.3151, 3.3151, 3.3151, 3.3151, 3.3151, 3.3151, 3.3151, 3.3151, 3.3151, 3.3151, 3.3151, 3.3151, 3.3151, 3.3151, 3.3151, 3.3151, 3.3151, 3.3151, 3.3151, 3.3441, 3.3441, 3.3441, 3.3441, 3.3441, 3.3441, 3.3441, 3.3441, 3.3441, 3.3441, 3.3441, 3.3441, 3.3441, 3.3441, 3.3441, 3.3441, 3.3441, 3.3441, 3.3441, 3.3441, 3.3441, 3.3441, 3.3441, 3.3441, 3.3441, 3.3441, 3.3441, 3.3441, 3.3441, 3.3748, 3.3748, 3.3748, 3.3748, 3.3748, 3.3748, 3.3748, 3.3748, 3.3748, 3.3748, 3.3748, 3.3748, 3.3748, 3.3748, 3.3748, 3.3748, 3.3748, 3.3748, 3.3748, 3.3748, 3.3748, 3.3748, 3.3748, 3.3748, 3.3748, 3.3748, 3.3748, 3.3748, 3.3748, 3.4072, 3.4072, 3.4072, 3.4072, 3.4072, 3.4072, 3.4072, 3.4072, 3.4072, 3.4072, 3.4072, 3.4072, 3.4072, 3.4072, 3.4072, 3.4072, 3.4072, 3.4072, 3.4072, 3.4072, 3.4072, 3.4072, 3.4072, 3.4072, 3.4072, 3.4072, 3.4072, 3.4072, 3.4072, 3.4412, 3.4412, 3.4412, 3.4412, 3.4412, 3.4412, 3.4412, 3.4412, 3.4412, 3.4412, 3.4412, 3.4412, 3.4412, 3.4412, 3.4412, 3.4412, 3.4412, 3.4412, 3.4412, 3.4412, 3.4412, 3.4412, 3.4412, 3.4412, 3.4412, 3.4412, 3.4412, 3.4412, 3.4412, 3.4766, 3.4766, 3.4766, 3.4766, 3.4766, 3.4766, 3.4766, 3.4766, 3.4766, 3.4766, 3.4766, 3.4766, 3.4766, 3.4766, 3.4766, 3.4766, 3.4766, 3.4766, 3.4766, 3.4766, 3.4766, 3.4766, 3.4766, 3.4766, 3.4766, 3.4766, 3.4766, 3.4766, 3.4766, 3.5134, 3.5134, 3.5134, 3.5134, 3.5134, 3.5134, 3.5134, 3.5134, 3.5134, 3.5134, 3.5134, 3.5134, 3.5134, 3.5134, 3.5134, 3.5134, 3.5134, 3.5134, 3.5134, 3.5134, 3.5134, 3.5134, 3.5134, 3.5134, 3.5134, 3.5134, 3.5134, 3.5134, 3.5134, 3.5513, 3.5513, 3.5513, 3.5513, 3.5513, 3.5513, 3.5513, 3.5513, 3.5513, 3.5513, 3.5513, 3.5513, 3.5513, 3.5513, 3.5513, 3.5513, 3.5513, 3.5513, 3.5513, 3.5513, 3.5513, 3.5513, 3.5513, 3.5513, 3.5513, 3.5513, 3.5513, 3.5513, 3.5513, 3.5904, 3.5904, 3.5904, 3.5904, 3.5904, 3.5904, 3.5904, 3.5904, 3.5904, 3.5904, 3.5904, 3.5904, 3.5904, 3.5904, 3.5904, 3.5904, 3.5904, 3.5904, 3.5904, 3.5904, 3.5904, 3.5904, 3.5904, 3.5904, 3.5904, 3.5904, 3.5904, 3.5904, 3.5904, 3.6303, 3.6303, 3.6303, 3.6303, 3.6303, 3.6303, 3.6303, 3.6303, 3.6303, 3.6303, 3.6303, 3.6303, 3.6303, 3.6303, 3.6303, 3.6303, 3.6303, 3.6303, 3.6303, 3.6303, 3.6303, 3.6303, 3.6303, 3.6303, 3.6303, 3.6303, 3.6303, 3.6303, 3.6303, 3.6712, 3.6712, 3.6712, 3.6712, 3.6712, 3.6712, 3.6712, 3.6712, 3.6712, 3.6712, 3.6712, 3.6712, 3.6712, 3.6712, 3.6712, 3.6712, 3.6712, 3.6712, 3.6712, 3.6712, 3.6712, 3.6712, 3.6712, 3.6712, 3.6712, 3.6712, 3.6712, 3.6712, 3.6712, 3.7127, 3.7127, 3.7127, 3.7127, 3.7127, 3.7127, 3.7127, 3.7127, 3.7127, 3.7127, 3.7127, 3.7127, 3.7127, 3.7127, 3.7127, 3.7127, 3.7127, 3.7127, 3.7127, 3.7127, 3.7127, 3.7127, 3.7127, 3.7127, 3.7127, 3.7127, 3.7127, 3.7127, 3.7127, 3.7549, 3.7549, 3.7549, 3.7549, 3.7549, 3.7549, 3.7549, 3.7549, 3.7549, 3.7549, 3.7549, 3.7549, 3.7549, 3.7549, 3.7549, 3.7549, 3.7549, 3.7549, 3.7549, 3.7549, 3.7549, 3.7549, 3.7549, 3.7549, 3.7549, 3.7549, 3.7549, 3.7549, 3.7549, 3.7975, 3.7975, 3.7975, 3.7975, 3.7975, 3.7975, 3.7975, 3.7975, 3.7975, 3.7975, 3.7975, 3.7975, 3.7975, 3.7975, 3.7975, 3.7975, 3.7975, 3.7975, 3.7975, 3.7975, 3.7975, 3.7975, 3.7975, 3.7975, 3.7975, 3.7975, 3.7975, 3.7975, 3.7975, 3.8404, 3.8404, 3.8404, 3.8404, 3.8404, 3.8404, 3.8404, 3.8404, 3.8404, 3.8404, 3.8404, 3.8404, 3.8404, 3.8404, 3.8404, 3.8404, 3.8404, 3.8404, 3.8404, 3.8404, 3.8404, 3.8404, 3.8404, 3.8404, 3.8404, 3.8404, 3.8404, 3.8404, 3.8404, 3.8837, 3.8837, 3.8837, 3.8837, 3.8837, 3.8837, 3.8837, 3.8837, 3.8837, 3.8837, 3.8837, 3.8837, 3.8837, 3.8837, 3.8837, 3.8837, 3.8837, 3.8837, 3.8837, 3.8837, 3.8837, 3.8837, 3.8837, 3.8837, 3.8837, 3.8837, 3.8837, 3.8837, 3.8837, 3.927, 3.927, 3.927, 3.927, 3.927, 3.927, 3.927, 3.927, 3.927, 3.927, 3.927, 3.927, 3.927, 3.927, 3.927, 3.927, 3.927, 3.927, 3.927, 3.927, 3.927, 3.927, 3.927, 3.927, 3.927, 3.927, 3.927, 3.927, 3.927, 3.9703, 3.9703, 3.9703, 3.9703, 3.9703, 3.9703, 3.9703, 3.9703, 3.9703, 3.9703, 3.9703, 3.9703, 3.9703, 3.9703, 3.9703, 3.9703, 3.9703, 3.9703, 3.9703, 3.9703, 3.9703, 3.9703, 3.9703, 3.9703, 3.9703, 3.9703, 3.9703, 3.9703, 3.9703, 4.0135, 4.0135, 4.0135, 4.0135, 4.0135, 4.0135, 4.0135, 4.0135, 4.0135, 4.0135, 4.0135, 4.0135, 4.0135, 4.0135, 4.0135, 4.0135, 4.0135, 4.0135, 4.0135, 4.0135, 4.0135, 4.0135, 4.0135, 4.0135, 4.0135, 4.0135, 4.0135, 4.0135, 4.0135, 4.0565, 4.0565, 4.0565, 4.0565, 4.0565, 4.0565, 4.0565, 4.0565, 4.0565, 4.0565, 4.0565, 4.0565, 4.0565, 4.0565, 4.0565, 4.0565, 4.0565, 4.0565, 4.0565, 4.0565, 4.0565, 4.0565, 4.0565, 4.0565, 4.0565, 4.0565, 4.0565, 4.0565, 4.0565, 4.0991, 4.0991, 4.0991, 4.0991, 4.0991, 4.0991, 4.0991, 4.0991, 4.0991, 4.0991, 4.0991, 4.0991, 4.0991, 4.0991, 4.0991, 4.0991, 4.0991, 4.0991, 4.0991, 4.0991, 4.0991, 4.0991, 4.0991, 4.0991, 4.0991, 4.0991, 4.0991, 4.0991, 4.0991, 4.1413, 4.1413, 4.1413, 4.1413, 4.1413, 4.1413, 4.1413, 4.1413, 4.1413, 4.1413, 4.1413, 4.1413, 4.1413, 4.1413, 4.1413, 4.1413, 4.1413, 4.1413, 4.1413, 4.1413, 4.1413, 4.1413, 4.1413, 4.1413, 4.1413, 4.1413, 4.1413, 4.1413, 4.1413, 4.1828, 4.1828, 4.1828, 4.1828, 4.1828, 4.1828, 4.1828, 4.1828, 4.1828, 4.1828, 4.1828, 4.1828, 4.1828, 4.1828, 4.1828, 4.1828, 4.1828, 4.1828, 4.1828, 4.1828, 4.1828, 4.1828, 4.1828, 4.1828, 4.1828, 4.1828, 4.1828, 4.1828, 4.1828, 4.2236, 4.2236, 4.2236, 4.2236, 4.2236, 4.2236, 4.2236, 4.2236, 4.2236, 4.2236, 4.2236, 4.2236, 4.2236, 4.2236, 4.2236, 4.2236, 4.2236, 4.2236, 4.2236, 4.2236, 4.2236, 4.2236, 4.2236, 4.2236, 4.2236, 4.2236, 4.2236, 4.2236, 4.2236, 4.2636, 4.2636, 4.2636, 4.2636, 4.2636, 4.2636, 4.2636, 4.2636, 4.2636, 4.2636, 4.2636, 4.2636, 4.2636, 4.2636, 4.2636, 4.2636, 4.2636, 4.2636, 4.2636, 4.2636, 4.2636, 4.2636, 4.2636, 4.2636, 4.2636, 4.2636, 4.2636, 4.2636, 4.2636, 4.3026, 4.3026, 4.3026, 4.3026, 4.3026, 4.3026, 4.3026, 4.3026, 4.3026, 4.3026, 4.3026, 4.3026, 4.3026, 4.3026, 4.3026, 4.3026, 4.3026, 4.3026, 4.3026, 4.3026, 4.3026, 4.3026, 4.3026, 4.3026, 4.3026, 4.3026, 4.3026, 4.3026, 4.3026, 4.3406, 4.3406, 4.3406, 4.3406, 4.3406, 4.3406, 4.3406, 4.3406, 4.3406, 4.3406, 4.3406, 4.3406, 4.3406, 4.3406, 4.3406, 4.3406, 4.3406, 4.3406, 4.3406, 4.3406, 4.3406, 4.3406, 4.3406, 4.3406, 4.3406, 4.3406, 4.3406, 4.3406, 4.3406, 4.3773, 4.3773, 4.3773, 4.3773, 4.3773, 4.3773, 4.3773, 4.3773, 4.3773, 4.3773, 4.3773, 4.3773, 4.3773, 4.3773, 4.3773, 4.3773, 4.3773, 4.3773, 4.3773, 4.3773, 4.3773, 4.3773, 4.3773, 4.3773, 4.3773, 4.3773, 4.3773, 4.3773, 4.3773, 4.4128, 4.4128, 4.4128, 4.4128, 4.4128, 4.4128, 4.4128, 4.4128, 4.4128, 4.4128, 4.4128, 4.4128, 4.4128, 4.4128, 4.4128, 4.4128, 4.4128, 4.4128, 4.4128, 4.4128, 4.4128, 4.4128, 4.4128, 4.4128, 4.4128, 4.4128, 4.4128, 4.4128, 4.4128, 4.4467, 4.4467, 4.4467, 4.4467, 4.4467, 4.4467, 4.4467, 4.4467, 4.4467, 4.4467, 4.4467, 4.4467, 4.4467, 4.4467, 4.4467, 4.4467, 4.4467, 4.4467, 4.4467, 4.4467, 4.4467, 4.4467, 4.4467, 4.4467, 4.4467, 4.4467, 4.4467, 4.4467, 4.4467, 4.4792, 4.4792, 4.4792, 4.4792, 4.4792, 4.4792, 4.4792, 4.4792, 4.4792, 4.4792, 4.4792, 4.4792, 4.4792, 4.4792, 4.4792, 4.4792, 4.4792, 4.4792, 4.4792, 4.4792, 4.4792, 4.4792, 4.4792, 4.4792, 4.4792, 4.4792, 4.4792, 4.4792, 4.4792, 4.5099, 4.5099, 4.5099, 4.5099, 4.5099, 4.5099, 4.5099, 4.5099, 4.5099, 4.5099, 4.5099, 4.5099, 4.5099, 4.5099, 4.5099, 4.5099, 4.5099, 4.5099, 4.5099, 4.5099, 4.5099, 4.5099, 4.5099, 4.5099, 4.5099, 4.5099, 4.5099, 4.5099, 4.5099, 4.5389, 4.5389, 4.5389, 4.5389, 4.5389, 4.5389, 4.5389, 4.5389, 4.5389, 4.5389, 4.5389, 4.5389, 4.5389, 4.5389, 4.5389, 4.5389, 4.5389, 4.5389, 4.5389, 4.5389, 4.5389, 4.5389, 4.5389, 4.5389, 4.5389, 4.5389, 4.5389, 4.5389, 4.5389, 4.5659, 4.5659, 4.5659, 4.5659, 4.5659, 4.5659, 4.5659, 4.5659, 4.5659, 4.5659, 4.5659, 4.5659, 4.5659, 4.5659, 4.5659, 4.5659, 4.5659, 4.5659, 4.5659, 4.5659, 4.5659, 4.5659, 4.5659, 4.5659, 4.5659, 4.5659, 4.5659, 4.5659, 4.5659, 4.591, 4.591, 4.591, 4.591, 4.591, 4.591, 4.591, 4.591, 4.591, 4.591, 4.591, 4.591, 4.591, 4.591, 4.591, 4.591, 4.591, 4.591, 4.591, 4.591, 4.591, 4.591, 4.591, 4.591, 4.591, 4.591, 4.591, 4.591, 4.591, 4.6139, 4.6139, 4.6139, 4.6139, 4.6139, 4.6139, 4.6139, 4.6139, 4.6139, 4.6139, 4.6139, 4.6139, 4.6139, 4.6139, 4.6139, 4.6139, 4.6139, 4.6139, 4.6139, 4.6139, 4.6139, 4.6139, 4.6139, 4.6139, 4.6139, 4.6139, 4.6139, 4.6139, 4.6139, 4.6346, 4.6346, 4.6346, 4.6346, 4.6346, 4.6346, 4.6346, 4.6346, 4.6346, 4.6346, 4.6346, 4.6346, 4.6346, 4.6346, 4.6346, 4.6346, 4.6346, 4.6346, 4.6346, 4.6346, 4.6346, 4.6346, 4.6346, 4.6346, 4.6346, 4.6346, 4.6346, 4.6346, 4.6346, 4.6531, 4.6531, 4.6531, 4.6531, 4.6531, 4.6531, 4.6531, 4.6531, 4.6531, 4.6531, 4.6531, 4.6531, 4.6531, 4.6531, 4.6531, 4.6531, 4.6531, 4.6531, 4.6531, 4.6531, 4.6531, 4.6531, 4.6531, 4.6531, 4.6531, 4.6531, 4.6531, 4.6531, 4.6531, 4.6691, 4.6691, 4.6691, 4.6691, 4.6691, 4.6691, 4.6691, 4.6691, 4.6691, 4.6691, 4.6691, 4.6691, 4.6691, 4.6691, 4.6691, 4.6691, 4.6691, 4.6691, 4.6691, 4.6691, 4.6691, 4.6691, 4.6691, 4.6691, 4.6691, 4.6691, 4.6691, 4.6691, 4.6691, 4.6827, 4.6827, 4.6827, 4.6827, 4.6827, 4.6827, 4.6827, 4.6827, 4.6827, 4.6827, 4.6827, 4.6827, 4.6827, 4.6827, 4.6827, 4.6827, 4.6827, 4.6827, 4.6827, 4.6827, 4.6827, 4.6827, 4.6827, 4.6827, 4.6827, 4.6827, 4.6827, 4.6827, 4.6827, 4.6938, 4.6938, 4.6938, 4.6938, 4.6938, 4.6938, 4.6938, 4.6938, 4.6938, 4.6938, 4.6938, 4.6938, 4.6938, 4.6938, 4.6938, 4.6938, 4.6938, 4.6938, 4.6938, 4.6938, 4.6938, 4.6938, 4.6938, 4.6938, 4.6938, 4.6938, 4.6938, 4.6938, 4.6938, 4.7024, 4.7024, 4.7024, 4.7024, 4.7024, 4.7024, 4.7024, 4.7024, 4.7024, 4.7024, 4.7024, 4.7024, 4.7024, 4.7024, 4.7024, 4.7024, 4.7024, 4.7024, 4.7024, 4.7024, 4.7024, 4.7024, 4.7024, 4.7024, 4.7024, 4.7024, 4.7024, 4.7024, 4.7024, 4.7083, 4.7083, 4.7083, 4.7083, 4.7083, 4.7083, 4.7083, 4.7083, 4.7083, 4.7083, 4.7083, 4.7083, 4.7083, 4.7083, 4.7083, 4.7083, 4.7083, 4.7083, 4.7083, 4.7083, 4.7083, 4.7083, 4.7083, 4.7083, 4.7083, 4.7083, 4.7083, 4.7083, 4.7083, 4.7116, 4.7116, 4.7116, 4.7116, 4.7116, 4.7116, 4.7116, 4.7116, 4.7116, 4.7116, 4.7116, 4.7116, 4.7116, 4.7116, 4.7116, 4.7116, 4.7116, 4.7116, 4.7116, 4.7116, 4.7116, 4.7116, 4.7116, 4.7116, 4.7116, 4.7116, 4.7116, 4.7116, 4.7116}, {1.4368e-08, 1.7501e-07, 6.6745e-07, 1.6601e-06, 3.2952e-06, 5.6833e-06, 8.8995e-06, 1.2983e-05, 1.7938e-05, 2.3736e-05, 3.0322e-05, 3.7614e-05, 4.5514e-05, 5.3904e-05, 6.2659e-05, 7.1645e-05, 8.0723e-05, 8.9753e-05, 9.8597e-05, 0.00010712, 0.0001152, 0.00012271, 0.00012954, 0.00013558, 0.00014076, 0.000145, 0.00014823, 0.00015041, 0.00015151, 3.338e-08, 4.0657e-07, 1.5506e-06, 3.8566e-06, 7.6554e-06, 1.3203e-05, 2.0675e-05, 3.0161e-05, 4.1672e-05, 5.5143e-05, 7.0443e-05, 8.7384e-05, 0.00010574, 0.00012523, 0.00014557, 0.00016644, 0.00018753, 0.00020851, 0.00022906, 0.00024886, 0.00026763, 0.00028507, 0.00030093, 0.00031498, 0.00032702, 0.00033686, 0.00034437, 0.00034943, 0.00035198, 5.2261e-08, 6.3653e-07, 2.4276e-06, 6.0381e-06, 1.1985e-05, 2.0671e-05, 3.2369e-05, 4.7222e-05, 6.5244e-05, 8.6334e-05, 0.00011029, 0.00013681, 0.00016554, 0.00019606, 0.0002279, 0.00026059, 0.0002936, 0.00032645, 0.00035862, 0.00038963, 0.000419, 0.00044631, 0.00047115, 0.00049315, 0.00051199, 0.0005274, 0.00053915, 0.00054708, 0.00055108, 7.0896e-08, 8.6352e-07, 3.2933e-06, 8.1912e-06, 1.6259e-05, 2.8043e-05, 4.3912e-05, 6.4061e-05, 8.8509e-05, 0.00011712, 0.00014961, 0.0001856, 0.00022457, 0.00026597, 0.00030917, 0.00035351, 0.0003983, 0.00044286, 0.0004865, 0.00052856, 0.00056841, 0.00060546, 0.00063915, 0.000669, 0.00069456, 0.00071546, 0.00073141, 0.00074217, 0.00074759, 8.9201e-08, 1.0865e-06, 4.1436e-06, 1.0306e-05, 2.0457e-05, 3.5283e-05, 5.5249e-05, 8.06e-05, 0.00011136, 0.00014736, 0.00018824, 0.00023352, 0.00028255, 0.00033464, 0.000389, 0.00044478, 0.00050114, 0.0005572, 0.00061211, 0.00066503, 0.00071517, 0.00076178, 0.00080417, 0.00084172, 0.00087388, 0.00090018, 0.00092025, 0.00093378, 0.0009406, 1.0709e-07, 1.3044e-06, 4.9748e-06, 1.2373e-05, 2.4561e-05, 4.236e-05, 6.6332e-05, 9.6768e-05, 0.0001337, 0.00017692, 0.000226, 0.00028036, 0.00033923, 0.00040177, 0.00046703, 0.000534, 0.00060166, 0.00066897, 0.00073489, 0.00079843, 0.00085863, 0.00091459, 0.00096548, 0.0010106, 0.0010492, 0.0010808, 0.0011048, 0.0011211, 0.0011293, 1.245e-07, 1.5164e-06, 5.7834e-06, 1.4385e-05, 2.8553e-05, 4.9246e-05, 7.7114e-05, 0.0001125, 0.00015543, 0.00020567, 0.00026274, 0.00032593, 0.00039437, 0.00046708, 0.00054294, 0.0006208, 0.00069946, 0.0007777, 0.00085434, 0.00092821, 0.00099819, 0.0010633, 0.0011224, 0.0011748, 0.0012197, 0.0012564, 0.0012844, 0.0013033, 0.0013128, 1.4136e-07, 1.7217e-06, 6.5663e-06, 1.6332e-05, 3.2418e-05, 5.5912e-05, 8.7553e-05, 0.00012773, 0.00017647, 0.00023352, 0.00029831, 0.00037005, 0.00044776, 0.00053031, 0.00061644, 0.00070484, 0.00079415, 0.00088298, 0.00097, 0.0010539, 0.0011333, 0.0012072, 0.0012744, 0.0013339, 0.0013848, 0.0014265, 0.0014583, 0.0014798, 0.0014906, 1.576e-07, 1.9195e-06, 7.3207e-06, 1.8208e-05, 3.6143e-05, 6.2336e-05, 9.7612e-05, 0.0001424, 0.00019675, 0.00026035, 0.00033258, 0.00041256, 0.00049921, 0.00059123, 0.00068726, 0.00078582, 0.00088539, 0.00098443, 0.0010814, 0.0011749, 0.0012635, 0.0013459, 0.0014208, 0.0014871, 0.0015439, 0.0015904, 0.0016258, 0.0016498, 0.0016618, 1.7317e-07, 2.1092e-06, 8.0442e-06, 2.0008e-05, 3.9715e-05, 6.8496e-05, 0.00010726, 0.00015647, 0.00021619, 0.00028607, 0.00036544, 0.00045333, 0.00054854, 0.00064966, 0.00075518, 0.00086347, 0.00097288, 0.0010817, 0.0011883, 0.001291, 0.0013884, 0.0014789, 0.0015612, 0.0016341, 0.0016965, 0.0017476, 0.0017865, 0.0018128, 0.001826, 1.8803e-07, 2.2902e-06, 8.7344e-06, 2.1724e-05, 4.3122e-05, 7.4374e-05, 0.00011646, 0.0001699, 0.00023474, 0.00031062, 0.0003968, 0.00049223, 0.0005956, 0.00070541, 0.00081998, 0.00093757, 0.0010564, 0.0011745, 0.0012903, 0.0014018, 0.0015075, 0.0016058, 0.0016951, 0.0017743, 0.0018421, 0.0018975, 0.0019398, 0.0019683, 0.0019827, 2.0214e-07, 2.462e-06, 9.3897e-06, 2.3354e-05, 4.6358e-05, 7.9953e-05, 0.0001252, 0.00018264, 0.00025235, 0.00033392, 0.00042657, 0.00052916, 0.00064029, 0.00075833, 0.00088149, 0.0010079, 0.0011356, 0.0012626, 0.0013871, 0.001507, 0.0016206, 0.0017262, 0.0018223, 0.0019074, 0.0019803, 0.0020399, 0.0020853, 0.002116, 0.0021315, 2.1546e-07, 2.6242e-06, 1.0008e-05, 2.4893e-05, 4.9413e-05, 8.5222e-05, 0.00013345, 0.00019468, 0.00026898, 0.00035593, 0.00045468, 0.00056403, 0.00068248, 0.0008083, 0.00093958, 0.0010743, 0.0012104, 0.0013459, 0.0014785, 0.0016063, 0.0017274, 0.00184, 0.0019424, 0.0020331, 0.0021108, 0.0021743, 0.0022228, 0.0022555, 0.0022719, 2.2796e-07, 2.7766e-06, 1.059e-05, 2.6338e-05, 5.2281e-05, 9.017e-05, 0.0001412, 0.00020598, 0.0002846, 0.00037659, 0.00048108, 0.00059678, 0.00072211, 0.00085523, 0.00099413, 0.0011367, 0.0012807, 0.001424, 0.0015643, 0.0016996, 0.0018277, 0.0019468, 0.0020552, 0.0021511, 0.0022333, 0.0023005, 0.0023518, 0.0023864, 0.0024038, 2.3964e-07, 2.9188e-06, 1.1132e-05, 2.7687e-05, 5.4959e-05, 9.4788e-05, 0.00014843, 0.00021653, 0.00029917, 0.00039588, 0.00050572, 0.00062734, 0.00075909, 0.00089903, 0.0010451, 0.0011949, 0.0013463, 0.0014969, 0.0016444, 0.0017866, 0.0019213, 0.0020465, 0.0021604, 0.0022613, 0.0023477, 0.0024184, 0.0024723, 0.0025086, 0.0025269, 2.5047e-07, 3.0507e-06, 1.1635e-05, 2.8938e-05, 5.7442e-05, 9.9071e-05, 0.00015514, 0.00022632, 0.00031269, 0.00041377, 0.00052857, 0.00065569, 0.00079339, 0.00093965, 0.0010923, 0.0012489, 0.0014071, 0.0015646, 0.0017187, 0.0018673, 0.0020081, 0.002139, 0.002258, 0.0023635, 0.0024538, 0.0025276, 0.002584, 0.002622, 0.0026411, 2.6044e-07, 3.1721e-06, 1.2098e-05, 3.009e-05, 5.9728e-05, 0.00010301, 0.00016131, 0.00023532, 0.00032514, 0.00043024, 0.0005496, 0.00068179, 0.00082496, 0.00097705, 0.0011357, 0.0012986, 0.0014631, 0.0016268, 0.0017871, 0.0019417, 0.0020881, 0.0022241, 0.0023479, 0.0024575, 0.0025514, 0.0026282, 0.0026868, 0.0027263, 0.0027462, 2.6954e-07, 3.283e-06, 1.2521e-05, 3.1142e-05, 6.1816e-05, 0.00010661, 0.00016695, 0.00024355, 0.0003365, 0.00044527, 0.00056881, 0.00070561, 0.00085379, 0.0010112, 0.0011754, 0.001344, 0.0015143, 0.0016837, 0.0018496, 0.0020095, 0.002161, 0.0023019, 0.00243, 0.0025434, 0.0026406, 0.0027201, 0.0027807, 0.0028216, 0.0028422, 2.7777e-07, 3.3832e-06, 1.2903e-05, 3.2093e-05, 6.3703e-05, 0.00010987, 0.00017204, 0.00025099, 0.00034677, 0.00045887, 0.00058618, 0.00072716, 0.00087987, 0.0010421, 0.0012113, 0.001385, 0.0015605, 0.0017351, 0.0019061, 0.0020709, 0.002227, 0.0023722, 0.0025042, 0.0026211, 0.0027212, 0.0028031, 0.0028656, 0.0029078, 0.002929, 2.8513e-07, 3.4728e-06, 1.3245e-05, 3.2943e-05, 6.5391e-05, 0.00011278, 0.0001766, 0.00025763, 0.00035596, 0.00047102, 0.00060171, 0.00074642, 0.00090317, 0.0010697, 0.0012434, 0.0014217, 0.0016019, 0.0017811, 0.0019566, 0.0021257, 0.002286, 0.002435, 0.0025705, 0.0026905, 0.0027933, 0.0028774, 0.0029415, 0.0029848, 0.0030066, 2.9161e-07, 3.5518e-06, 1.3546e-05, 3.3692e-05, 6.6878e-05, 0.00011534, 0.00018062, 0.00026349, 0.00036405, 0.00048173, 0.00061539, 0.00076339, 0.00092371, 0.001094, 0.0012717, 0.0014541, 0.0016383, 0.0018216, 0.0020011, 0.0021741, 0.002338, 0.0024904, 0.002629, 0.0027517, 0.0028568, 0.0029428, 0.0030084, 0.0030527, 0.003075, 2.9722e-07, 3.6202e-06, 1.3807e-05, 3.434e-05, 6.8165e-05, 0.00011756, 0.00018409, 0.00026856, 0.00037106, 0.00049101, 0.00062724, 0.00077809, 0.00094149, 0.0011151, 0.0012962, 0.001482, 0.0016698, 0.0018566, 0.0020396, 0.0022159, 0.002383, 0.0025383, 0.0026796, 0.0028047, 0.0029118, 0.0029995, 0.0030663, 0.0031114, 0.0031341, 3.0197e-07, 3.6779e-06, 1.4027e-05, 3.4888e-05, 6.9253e-05, 0.00011944, 0.00018703, 0.00027285, 0.00037698, 0.00049884, 0.00063725, 0.00079051, 0.00095652, 0.0011329, 0.0013168, 0.0015057, 0.0016965, 0.0018862, 0.0020721, 0.0022513, 0.002421, 0.0025788, 0.0027223, 0.0028494, 0.0029583, 0.0030473, 0.0031152, 0.0031611, 0.0031842, 3.0584e-07, 3.7252e-06, 1.4207e-05, 3.5336e-05, 7.0142e-05, 0.00012097, 0.00018943, 0.00027635, 0.00038182, 0.00050525, 0.00064543, 0.00080065, 0.00096879, 0.0011474, 0.0013338, 0.001525, 0.0017182, 0.0019105, 0.0020987, 0.0022802, 0.0024521, 0.0026119, 0.0027573, 0.002886, 0.0029963, 0.0030864, 0.0031552, 0.0032017, 0.003225, 3.0885e-07, 3.7618e-06, 1.4347e-05, 3.5684e-05, 7.0832e-05, 0.00012217, 0.0001913, 0.00027907, 0.00038558, 0.00051022, 0.00065178, 0.00080854, 0.00097833, 0.0011587, 0.0013469, 0.00154, 0.0017352, 0.0019293, 0.0021194, 0.0023026, 0.0024762, 0.0026376, 0.0027844, 0.0029144, 0.0030258, 0.0031168, 0.0031863, 0.0032332, 0.0032568, 3.11e-07, 3.788e-06, 1.4447e-05, 3.5932e-05, 7.1325e-05, 0.00012302, 0.00019263, 0.00028102, 0.00038826, 0.00051377, 0.00065632, 0.00081416, 0.00098514, 0.0011668, 0.0013563, 0.0015508, 0.0017472, 0.0019427, 0.0021341, 0.0023187, 0.0024935, 0.002656, 0.0028038, 0.0029347, 0.0030468, 0.0031385, 0.0032085, 0.0032557, 0.0032795, 3.1229e-07, 3.8037e-06, 1.4507e-05, 3.6081e-05, 7.1621e-05, 0.00012353, 0.00019343, 0.00028218, 0.00038987, 0.0005159, 0.00065904, 0.00081754, 0.00098922, 0.0011716, 0.0013619, 0.0015572, 0.0017545, 0.0019507, 0.002143, 0.0023283, 0.0025038, 0.002667, 0.0028154, 0.0029469, 0.0030595, 0.0031515, 0.0032218, 0.0032692, 0.003293, 3.1272e-07, 3.8089e-06, 1.4527e-05, 3.6131e-05, 7.1719e-05, 0.0001237, 0.00019369, 0.00028257, 0.00039041, 0.00051661, 0.00065994, 0.00081866, 0.00099058, 0.0011732, 0.0013638, 0.0015593, 0.0017569, 0.0019534, 0.0021459, 0.0023315, 0.0025073, 0.0026707, 0.0028193, 0.0029509, 0.0030637, 0.0031559, 0.0032262, 0.0032737, 0.0032976, 3.1229e-07, 3.8037e-06, 1.4507e-05, 3.6081e-05, 7.1621e-05, 0.00012353, 0.00019343, 0.00028218, 0.00038987, 0.0005159, 0.00065904, 0.00081754, 0.00098922, 0.0011716, 0.0013619, 0.0015572, 0.0017545, 0.0019507, 0.002143, 0.0023283, 0.0025038, 0.002667, 0.0028154, 0.0029469, 0.0030595, 0.0031515, 0.0032218, 0.0032692, 0.003293, 3.11e-07, 3.788e-06, 1.4447e-05, 3.5932e-05, 7.1325e-05, 0.00012302, 0.00019263, 0.00028102, 0.00038826, 0.00051377, 0.00065632, 0.00081416, 0.00098514, 0.0011668, 0.0013563, 0.0015508, 0.0017472, 0.0019427, 0.0021341, 0.0023187, 0.0024935, 0.002656, 0.0028038, 0.0029347, 0.0030468, 0.0031385, 0.0032085, 0.0032557, 0.0032795, 3.0885e-07, 3.7618e-06, 1.4347e-05, 3.5684e-05, 7.0832e-05, 0.00012217, 0.0001913, 0.00027907, 0.00038558, 0.00051022, 0.00065178, 0.00080854, 0.00097833, 0.0011587, 0.0013469, 0.00154, 0.0017352, 0.0019293, 0.0021194, 0.0023026, 0.0024762, 0.0026376, 0.0027844, 0.0029144, 0.0030258, 0.0031168, 0.0031863, 0.0032332, 0.0032568, 3.0584e-07, 3.7252e-06, 1.4207e-05, 3.5336e-05, 7.0142e-05, 0.00012097, 0.00018943, 0.00027635, 0.00038182, 0.00050525, 0.00064543, 0.00080065, 0.00096879, 0.0011474, 0.0013338, 0.001525, 0.0017182, 0.0019105, 0.0020987, 0.0022802, 0.0024521, 0.0026119, 0.0027573, 0.002886, 0.0029963, 0.0030864, 0.0031552, 0.0032017, 0.003225, 3.0197e-07, 3.6779e-06, 1.4027e-05, 3.4888e-05, 6.9253e-05, 0.00011944, 0.00018703, 0.00027285, 0.00037698, 0.00049884, 0.00063725, 0.00079051, 0.00095652, 0.0011329, 0.0013168, 0.0015057, 0.0016965, 0.0018862, 0.0020721, 0.0022513, 0.002421, 0.0025788, 0.0027223, 0.0028494, 0.0029583, 0.0030473, 0.0031152, 0.0031611, 0.0031842, 2.9722e-07, 3.6202e-06, 1.3807e-05, 3.434e-05, 6.8165e-05, 0.00011756, 0.00018409, 0.00026856, 0.00037106, 0.00049101, 0.00062724, 0.00077809, 0.00094149, 0.0011151, 0.0012962, 0.001482, 0.0016698, 0.0018566, 0.0020396, 0.0022159, 0.002383, 0.0025383, 0.0026796, 0.0028047, 0.0029118, 0.0029995, 0.0030663, 0.0031114, 0.0031341, 2.9161e-07, 3.5518e-06, 1.3546e-05, 3.3692e-05, 6.6878e-05, 0.00011534, 0.00018062, 0.00026349, 0.00036405, 0.00048173, 0.00061539, 0.00076339, 0.00092371, 0.001094, 0.0012717, 0.0014541, 0.0016383, 0.0018216, 0.0020011, 0.0021741, 0.002338, 0.0024904, 0.002629, 0.0027517, 0.0028568, 0.0029428, 0.0030084, 0.0030527, 0.003075, 2.8513e-07, 3.4728e-06, 1.3245e-05, 3.2943e-05, 6.5391e-05, 0.00011278, 0.0001766, 0.00025763, 0.00035596, 0.00047102, 0.00060171, 0.00074642, 0.00090317, 0.0010697, 0.0012434, 0.0014217, 0.0016019, 0.0017811, 0.0019566, 0.0021257, 0.002286, 0.002435, 0.0025705, 0.0026905, 0.0027933, 0.0028774, 0.0029415, 0.0029848, 0.0030066, 2.7777e-07, 3.3832e-06, 1.2903e-05, 3.2093e-05, 6.3703e-05, 0.00010987, 0.00017204, 0.00025099, 0.00034677, 0.00045887, 0.00058618, 0.00072716, 0.00087987, 0.0010421, 0.0012113, 0.001385, 0.0015605, 0.0017351, 0.0019061, 0.0020709, 0.002227, 0.0023722, 0.0025042, 0.0026211, 0.0027212, 0.0028031, 0.0028656, 0.0029078, 0.002929, 2.6954e-07, 3.283e-06, 1.2521e-05, 3.1142e-05, 6.1816e-05, 0.00010661, 0.00016695, 0.00024355, 0.0003365, 0.00044527, 0.00056881, 0.00070561, 0.00085379, 0.0010112, 0.0011754, 0.001344, 0.0015143, 0.0016837, 0.0018496, 0.0020095, 0.002161, 0.0023019, 0.00243, 0.0025434, 0.0026406, 0.0027201, 0.0027807, 0.0028216, 0.0028422, 2.6044e-07, 3.1721e-06, 1.2098e-05, 3.009e-05, 5.9728e-05, 0.00010301, 0.00016131, 0.00023532, 0.00032514, 0.00043024, 0.0005496, 0.00068179, 0.00082496, 0.00097705, 0.0011357, 0.0012986, 0.0014631, 0.0016268, 0.0017871, 0.0019417, 0.0020881, 0.0022241, 0.0023479, 0.0024575, 0.0025514, 0.0026282, 0.0026868, 0.0027263, 0.0027462, 2.5047e-07, 3.0507e-06, 1.1635e-05, 2.8938e-05, 5.7442e-05, 9.9071e-05, 0.00015514, 0.00022632, 0.00031269, 0.00041377, 0.00052857, 0.00065569, 0.00079339, 0.00093965, 0.0010923, 0.0012489, 0.0014071, 0.0015646, 0.0017187, 0.0018673, 0.0020081, 0.002139, 0.002258, 0.0023635, 0.0024538, 0.0025276, 0.002584, 0.002622, 0.0026411, 2.3964e-07, 2.9188e-06, 1.1132e-05, 2.7687e-05, 5.4959e-05, 9.4788e-05, 0.00014843, 0.00021653, 0.00029917, 0.00039588, 0.00050572, 0.00062734, 0.00075909, 0.00089903, 0.0010451, 0.0011949, 0.0013463, 0.0014969, 0.0016444, 0.0017866, 0.0019213, 0.0020465, 0.0021604, 0.0022613, 0.0023477, 0.0024184, 0.0024723, 0.0025086, 0.0025269, 2.2796e-07, 2.7766e-06, 1.059e-05, 2.6338e-05, 5.2281e-05, 9.017e-05, 0.0001412, 0.00020598, 0.0002846, 0.00037659, 0.00048108, 0.00059678, 0.00072211, 0.00085523, 0.00099413, 0.0011367, 0.0012807, 0.001424, 0.0015643, 0.0016996, 0.0018277, 0.0019468, 0.0020552, 0.0021511, 0.0022333, 0.0023005, 0.0023518, 0.0023864, 0.0024038, 2.1546e-07, 2.6242e-06, 1.0008e-05, 2.4893e-05, 4.9413e-05, 8.5222e-05, 0.00013345, 0.00019468, 0.00026898, 0.00035593, 0.00045468, 0.00056403, 0.00068248, 0.0008083, 0.00093958, 0.0010743, 0.0012104, 0.0013459, 0.0014785, 0.0016063, 0.0017274, 0.00184, 0.0019424, 0.0020331, 0.0021108, 0.0021743, 0.0022228, 0.0022555, 0.0022719, 2.0214e-07, 2.462e-06, 9.3897e-06, 2.3354e-05, 4.6358e-05, 7.9953e-05, 0.0001252, 0.00018264, 0.00025235, 0.00033392, 0.00042657, 0.00052916, 0.00064029, 0.00075833, 0.00088149, 0.0010079, 0.0011356, 0.0012626, 0.0013871, 0.001507, 0.0016206, 0.0017262, 0.0018223, 0.0019074, 0.0019803, 0.0020399, 0.0020853, 0.002116, 0.0021315, 1.8803e-07, 2.2902e-06, 8.7344e-06, 2.1724e-05, 4.3122e-05, 7.4374e-05, 0.00011646, 0.0001699, 0.00023474, 0.00031062, 0.0003968, 0.00049223, 0.0005956, 0.00070541, 0.00081998, 0.00093757, 0.0010564, 0.0011745, 0.0012903, 0.0014018, 0.0015075, 0.0016058, 0.0016951, 0.0017743, 0.0018421, 0.0018975, 0.0019398, 0.0019683, 0.0019827, 1.7317e-07, 2.1092e-06, 8.0442e-06, 2.0008e-05, 3.9715e-05, 6.8496e-05, 0.00010726, 0.00015647, 0.00021619, 0.00028607, 0.00036544, 0.00045333, 0.00054854, 0.00064966, 0.00075518, 0.00086347, 0.00097288, 0.0010817, 0.0011883, 0.001291, 0.0013884, 0.0014789, 0.0015612, 0.0016341, 0.0016965, 0.0017476, 0.0017865, 0.0018128, 0.001826, 1.576e-07, 1.9195e-06, 7.3207e-06, 1.8208e-05, 3.6143e-05, 6.2336e-05, 9.7612e-05, 0.0001424, 0.00019675, 0.00026035, 0.00033258, 0.00041256, 0.00049921, 0.00059123, 0.00068726, 0.00078582, 0.00088539, 0.00098443, 0.0010814, 0.0011749, 0.0012635, 0.0013459, 0.0014208, 0.0014871, 0.0015439, 0.0015904, 0.0016258, 0.0016498, 0.0016618, 1.4136e-07, 1.7217e-06, 6.5663e-06, 1.6332e-05, 3.2418e-05, 5.5912e-05, 8.7553e-05, 0.00012773, 0.00017647, 0.00023352, 0.00029831, 0.00037005, 0.00044776, 0.00053031, 0.00061644, 0.00070484, 0.00079415, 0.00088298, 0.00097, 0.0010539, 0.0011333, 0.0012072, 0.0012744, 0.0013339, 0.0013848, 0.0014265, 0.0014583, 0.0014798, 0.0014906, 1.245e-07, 1.5164e-06, 5.7834e-06, 1.4385e-05, 2.8553e-05, 4.9246e-05, 7.7114e-05, 0.0001125, 0.00015543, 0.00020567, 0.00026274, 0.00032593, 0.00039437, 0.00046708, 0.00054294, 0.0006208, 0.00069946, 0.0007777, 0.00085434, 0.00092821, 0.00099819, 0.0010633, 0.0011224, 0.0011748, 0.0012197, 0.0012564, 0.0012844, 0.0013033, 0.0013128, 1.0709e-07, 1.3044e-06, 4.9748e-06, 1.2373e-05, 2.4561e-05, 4.236e-05, 6.6332e-05, 9.6768e-05, 0.0001337, 0.00017692, 0.000226, 0.00028036, 0.00033923, 0.00040177, 0.00046703, 0.000534, 0.00060166, 0.00066897, 0.00073489, 0.00079843, 0.00085863, 0.00091459, 0.00096548, 0.0010106, 0.0010492, 0.0010808, 0.0011048, 0.0011211, 0.0011293, 8.9201e-08, 1.0865e-06, 4.1436e-06, 1.0306e-05, 2.0457e-05, 3.5283e-05, 5.5249e-05, 8.06e-05, 0.00011136, 0.00014736, 0.00018824, 0.00023352, 0.00028255, 0.00033464, 0.000389, 0.00044478, 0.00050114, 0.0005572, 0.00061211, 0.00066503, 0.00071517, 0.00076178, 0.00080417, 0.00084172, 0.00087388, 0.00090018, 0.00092025, 0.00093378, 0.0009406, 7.0896e-08, 8.6352e-07, 3.2933e-06, 8.1912e-06, 1.6259e-05, 2.8043e-05, 4.3912e-05, 6.4061e-05, 8.8509e-05, 0.00011712, 0.00014961, 0.0001856, 0.00022457, 0.00026597, 0.00030917, 0.00035351, 0.0003983, 0.00044286, 0.0004865, 0.00052856, 0.00056841, 0.00060546, 0.00063915, 0.000669, 0.00069456, 0.00071546, 0.00073141, 0.00074217, 0.00074759, 5.2261e-08, 6.3653e-07, 2.4276e-06, 6.0381e-06, 1.1985e-05, 2.0671e-05, 3.2369e-05, 4.7222e-05, 6.5244e-05, 8.6334e-05, 0.00011029, 0.00013681, 0.00016554, 0.00019606, 0.0002279, 0.00026059, 0.0002936, 0.00032645, 0.00035862, 0.00038963, 0.000419, 0.00044631, 0.00047115, 0.00049315, 0.00051199, 0.0005274, 0.00053915, 0.00054708, 0.00055108, 3.338e-08, 4.0657e-07, 1.5506e-06, 3.8566e-06, 7.6554e-06, 1.3203e-05, 2.0675e-05, 3.0161e-05, 4.1672e-05, 5.5143e-05, 7.0443e-05, 8.7384e-05, 0.00010574, 0.00012523, 0.00014557, 0.00016644, 0.00018753, 0.00020851, 0.00022906, 0.00024886, 0.00026763, 0.00028507, 0.00030093, 0.00031498, 0.00032702, 0.00033686, 0.00034437, 0.00034943, 0.00035198, 1.4368e-08, 1.7501e-07, 6.6745e-07, 1.6601e-06, 3.2952e-06, 5.6833e-06, 8.8995e-06, 1.2983e-05, 1.7938e-05, 2.3736e-05, 3.0322e-05, 3.7614e-05, 4.5514e-05, 5.3904e-05, 6.2659e-05, 7.1645e-05, 8.0723e-05, 8.9753e-05, 9.8597e-05, 0.00010712, 0.0001152, 0.00012271, 0.00012954, 0.00013558, 0.00014076, 0.000145, 0.00014823, 0.00015041, 0.00015151}}, {{1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056, 1, 0.99996, 0.99977, 0.99921, 0.99799, 0.99577, 0.99215, 0.98669, 0.97897, 0.96854, 0.955, 0.93797, 0.91713, 0.89219, 0.86294, 0.82924, 0.79099, 0.74819, 0.7009, 0.64925, 0.59342, 0.53367, 0.47032, 0.40374, 0.33433, 0.26255, 0.1889, 0.11389, 0.038056}, {4.7132, 4.7132, 4.7132, 4.7132, 4.7132, 4.7132, 4.7132, 4.7132, 4.7132, 4.7132, 4.7132, 4.7132, 4.7132, 4.7132, 4.7132, 4.7132, 4.7132, 4.7132, 4.7132, 4.7132, 4.7132, 4.7132, 4.7132, 4.7132, 4.7132, 4.7132, 4.7132, 4.7132, 4.7132, 4.7165, 4.7165, 4.7165, 4.7165, 4.7165, 4.7165, 4.7165, 4.7165, 4.7165, 4.7165, 4.7165, 4.7165, 4.7165, 4.7165, 4.7165, 4.7165, 4.7165, 4.7165, 4.7165, 4.7165, 4.7165, 4.7165, 4.7165, 4.7165, 4.7165, 4.7165, 4.7165, 4.7165, 4.7165, 4.7224, 4.7224, 4.7224, 4.7224, 4.7224, 4.7224, 4.7224, 4.7224, 4.7224, 4.7224, 4.7224, 4.7224, 4.7224, 4.7224, 4.7224, 4.7224, 4.7224, 4.7224, 4.7224, 4.7224, 4.7224, 4.7224, 4.7224, 4.7224, 4.7224, 4.7224, 4.7224, 4.7224, 4.7224, 4.731, 4.731, 4.731, 4.731, 4.731, 4.731, 4.731, 4.731, 4.731, 4.731, 4.731, 4.731, 4.731, 4.731, 4.731, 4.731, 4.731, 4.731, 4.731, 4.731, 4.731, 4.731, 4.731, 4.731, 4.731, 4.731, 4.731, 4.731, 4.731, 4.7421, 4.7421, 4.7421, 4.7421, 4.7421, 4.7421, 4.7421, 4.7421, 4.7421, 4.7421, 4.7421, 4.7421, 4.7421, 4.7421, 4.7421, 4.7421, 4.7421, 4.7421, 4.7421, 4.7421, 4.7421, 4.7421, 4.7421, 4.7421, 4.7421, 4.7421, 4.7421, 4.7421, 4.7421, 4.7557, 4.7557, 4.7557, 4.7557, 4.7557, 4.7557, 4.7557, 4.7557, 4.7557, 4.7557, 4.7557, 4.7557, 4.7557, 4.7557, 4.7557, 4.7557, 4.7557, 4.7557, 4.7557, 4.7557, 4.7557, 4.7557, 4.7557, 4.7557, 4.7557, 4.7557, 4.7557, 4.7557, 4.7557, 4.7717, 4.7717, 4.7717, 4.7717, 4.7717, 4.7717, 4.7717, 4.7717, 4.7717, 4.7717, 4.7717, 4.7717, 4.7717, 4.7717, 4.7717, 4.7717, 4.7717, 4.7717, 4.7717, 4.7717, 4.7717, 4.7717, 4.7717, 4.7717, 4.7717, 4.7717, 4.7717, 4.7717, 4.7717, 4.7902, 4.7902, 4.7902, 4.7902, 4.7902, 4.7902, 4.7902, 4.7902, 4.7902, 4.7902, 4.7902, 4.7902, 4.7902, 4.7902, 4.7902, 4.7902, 4.7902, 4.7902, 4.7902, 4.7902, 4.7902, 4.7902, 4.7902, 4.7902, 4.7902, 4.7902, 4.7902, 4.7902, 4.7902, 4.8109, 4.8109, 4.8109, 4.8109, 4.8109, 4.8109, 4.8109, 4.8109, 4.8109, 4.8109, 4.8109, 4.8109, 4.8109, 4.8109, 4.8109, 4.8109, 4.8109, 4.8109, 4.8109, 4.8109, 4.8109, 4.8109, 4.8109, 4.8109, 4.8109, 4.8109, 4.8109, 4.8109, 4.8109, 4.8338, 4.8338, 4.8338, 4.8338, 4.8338, 4.8338, 4.8338, 4.8338, 4.8338, 4.8338, 4.8338, 4.8338, 4.8338, 4.8338, 4.8338, 4.8338, 4.8338, 4.8338, 4.8338, 4.8338, 4.8338, 4.8338, 4.8338, 4.8338, 4.8338, 4.8338, 4.8338, 4.8338, 4.8338, 4.8589, 4.8589, 4.8589, 4.8589, 4.8589, 4.8589, 4.8589, 4.8589, 4.8589, 4.8589, 4.8589, 4.8589, 4.8589, 4.8589, 4.8589, 4.8589, 4.8589, 4.8589, 4.8589, 4.8589, 4.8589, 4.8589, 4.8589, 4.8589, 4.8589, 4.8589, 4.8589, 4.8589, 4.8589, 4.8859, 4.8859, 4.8859, 4.8859, 4.8859, 4.8859, 4.8859, 4.8859, 4.8859, 4.8859, 4.8859, 4.8859, 4.8859, 4.8859, 4.8859, 4.8859, 4.8859, 4.8859, 4.8859, 4.8859, 4.8859, 4.8859, 4.8859, 4.8859, 4.8859, 4.8859, 4.8859, 4.8859, 4.8859, 4.9149, 4.9149, 4.9149, 4.9149, 4.9149, 4.9149, 4.9149, 4.9149, 4.9149, 4.9149, 4.9149, 4.9149, 4.9149, 4.9149, 4.9149, 4.9149, 4.9149, 4.9149, 4.9149, 4.9149, 4.9149, 4.9149, 4.9149, 4.9149, 4.9149, 4.9149, 4.9149, 4.9149, 4.9149, 4.9456, 4.9456, 4.9456, 4.9456, 4.9456, 4.9456, 4.9456, 4.9456, 4.9456, 4.9456, 4.9456, 4.9456, 4.9456, 4.9456, 4.9456, 4.9456, 4.9456, 4.9456, 4.9456, 4.9456, 4.9456, 4.9456, 4.9456, 4.9456, 4.9456, 4.9456, 4.9456, 4.9456, 4.9456, 4.978, 4.978, 4.978, 4.978, 4.978, 4.978, 4.978, 4.978, 4.978, 4.978, 4.978, 4.978, 4.978, 4.978, 4.978, 4.978, 4.978, 4.978, 4.978, 4.978, 4.978, 4.978, 4.978, 4.978, 4.978, 4.978, 4.978, 4.978, 4.978, 5.012, 5.012, 5.012, 5.012, 5.012, 5.012, 5.012, 5.012, 5.012, 5.012, 5.012, 5.012, 5.012, 5.012, 5.012, 5.012, 5.012, 5.012, 5.012, 5.012, 5.012, 5.012, 5.012, 5.012, 5.012, 5.012, 5.012, 5.012, 5.012, 5.0474, 5.0474, 5.0474, 5.0474, 5.0474, 5.0474, 5.0474, 5.0474, 5.0474, 5.0474, 5.0474, 5.0474, 5.0474, 5.0474, 5.0474, 5.0474, 5.0474, 5.0474, 5.0474, 5.0474, 5.0474, 5.0474, 5.0474, 5.0474, 5.0474, 5.0474, 5.0474, 5.0474, 5.0474, 5.0842, 5.0842, 5.0842, 5.0842, 5.0842, 5.0842, 5.0842, 5.0842, 5.0842, 5.0842, 5.0842, 5.0842, 5.0842, 5.0842, 5.0842, 5.0842, 5.0842, 5.0842, 5.0842, 5.0842, 5.0842, 5.0842, 5.0842, 5.0842, 5.0842, 5.0842, 5.0842, 5.0842, 5.0842, 5.1221, 5.1221, 5.1221, 5.1221, 5.1221, 5.1221, 5.1221, 5.1221, 5.1221, 5.1221, 5.1221, 5.1221, 5.1221, 5.1221, 5.1221, 5.1221, 5.1221, 5.1221, 5.1221, 5.1221, 5.1221, 5.1221, 5.1221, 5.1221, 5.1221, 5.1221, 5.1221, 5.1221, 5.1221, 5.1612, 5.1612, 5.1612, 5.1612, 5.1612, 5.1612, 5.1612, 5.1612, 5.1612, 5.1612, 5.1612, 5.1612, 5.1612, 5.1612, 5.1612, 5.1612, 5.1612, 5.1612, 5.1612, 5.1612, 5.1612, 5.1612, 5.1612, 5.1612, 5.1612, 5.1612, 5.1612, 5.1612, 5.1612, 5.2011, 5.2011, 5.2011, 5.2011, 5.2011, 5.2011, 5.2011, 5.2011, 5.2011, 5.2011, 5.2011, 5.2011, 5.2011, 5.2011, 5.2011, 5.2011, 5.2011, 5.2011, 5.2011, 5.2011, 5.2011, 5.2011, 5.2011, 5.2011, 5.2011, 5.2011, 5.2011, 5.2011, 5.2011, 5.242, 5.242, 5.242, 5.242, 5.242, 5.242, 5.242, 5.242, 5.242, 5.242, 5.242, 5.242, 5.242, 5.242, 5.242, 5.242, 5.242, 5.242, 5.242, 5.242, 5.242, 5.242, 5.242, 5.242, 5.242, 5.242, 5.242, 5.242, 5.242, 5.2835, 5.2835, 5.2835, 5.2835, 5.2835, 5.2835, 5.2835, 5.2835, 5.2835, 5.2835, 5.2835, 5.2835, 5.2835, 5.2835, 5.2835, 5.2835, 5.2835, 5.2835, 5.2835, 5.2835, 5.2835, 5.2835, 5.2835, 5.2835, 5.2835, 5.2835, 5.2835, 5.2835, 5.2835, 5.3257, 5.3257, 5.3257, 5.3257, 5.3257, 5.3257, 5.3257, 5.3257, 5.3257, 5.3257, 5.3257, 5.3257, 5.3257, 5.3257, 5.3257, 5.3257, 5.3257, 5.3257, 5.3257, 5.3257, 5.3257, 5.3257, 5.3257, 5.3257, 5.3257, 5.3257, 5.3257, 5.3257, 5.3257, 5.3683, 5.3683, 5.3683, 5.3683, 5.3683, 5.3683, 5.3683, 5.3683, 5.3683, 5.3683, 5.3683, 5.3683, 5.3683, 5.3683, 5.3683, 5.3683, 5.3683, 5.3683, 5.3683, 5.3683, 5.3683, 5.3683, 5.3683, 5.3683, 5.3683, 5.3683, 5.3683, 5.3683, 5.3683, 5.4112, 5.4112, 5.4112, 5.4112, 5.4112, 5.4112, 5.4112, 5.4112, 5.4112, 5.4112, 5.4112, 5.4112, 5.4112, 5.4112, 5.4112, 5.4112, 5.4112, 5.4112, 5.4112, 5.4112, 5.4112, 5.4112, 5.4112, 5.4112, 5.4112, 5.4112, 5.4112, 5.4112, 5.4112, 5.4545, 5.4545, 5.4545, 5.4545, 5.4545, 5.4545, 5.4545, 5.4545, 5.4545, 5.4545, 5.4545, 5.4545, 5.4545, 5.4545, 5.4545, 5.4545, 5.4545, 5.4545, 5.4545, 5.4545, 5.4545, 5.4545, 5.4545, 5.4545, 5.4545, 5.4545, 5.4545, 5.4545, 5.4545, 5.4978, 5.4978, 5.4978, 5.4978, 5.4978, 5.4978, 5.4978, 5.4978, 5.4978, 5.4978, 5.4978, 5.4978, 5.4978, 5.4978, 5.4978, 5.4978, 5.4978, 5.4978, 5.4978, 5.4978, 5.4978, 5.4978, 5.4978, 5.4978, 5.4978, 5.4978, 5.4978, 5.4978, 5.4978, 5.5411, 5.5411, 5.5411, 5.5411, 5.5411, 5.5411, 5.5411, 5.5411, 5.5411, 5.5411, 5.5411, 5.5411, 5.5411, 5.5411, 5.5411, 5.5411, 5.5411, 5.5411, 5.5411, 5.5411, 5.5411, 5.5411, 5.5411, 5.5411, 5.5411, 5.5411, 5.5411, 5.5411, 5.5411, 5.5843, 5.5843, 5.5843, 5.5843, 5.5843, 5.5843, 5.5843, 5.5843, 5.5843, 5.5843, 5.5843, 5.5843, 5.5843, 5.5843, 5.5843, 5.5843, 5.5843, 5.5843, 5.5843, 5.5843, 5.5843, 5.5843, 5.5843, 5.5843, 5.5843, 5.5843, 5.5843, 5.5843, 5.5843, 5.6273, 5.6273, 5.6273, 5.6273, 5.6273, 5.6273, 5.6273, 5.6273, 5.6273, 5.6273, 5.6273, 5.6273, 5.6273, 5.6273, 5.6273, 5.6273, 5.6273, 5.6273, 5.6273, 5.6273, 5.6273, 5.6273, 5.6273, 5.6273, 5.6273, 5.6273, 5.6273, 5.6273, 5.6273, 5.6699, 5.6699, 5.6699, 5.6699, 5.6699, 5.6699, 5.6699, 5.6699, 5.6699, 5.6699, 5.6699, 5.6699, 5.6699, 5.6699, 5.6699, 5.6699, 5.6699, 5.6699, 5.6699, 5.6699, 5.6699, 5.6699, 5.6699, 5.6699, 5.6699, 5.6699, 5.6699, 5.6699, 5.6699, 5.7121, 5.7121, 5.7121, 5.7121, 5.7121, 5.7121, 5.7121, 5.7121, 5.7121, 5.7121, 5.7121, 5.7121, 5.7121, 5.7121, 5.7121, 5.7121, 5.7121, 5.7121, 5.7121, 5.7121, 5.7121, 5.7121, 5.7121, 5.7121, 5.7121, 5.7121, 5.7121, 5.7121, 5.7121, 5.7536, 5.7536, 5.7536, 5.7536, 5.7536, 5.7536, 5.7536, 5.7536, 5.7536, 5.7536, 5.7536, 5.7536, 5.7536, 5.7536, 5.7536, 5.7536, 5.7536, 5.7536, 5.7536, 5.7536, 5.7536, 5.7536, 5.7536, 5.7536, 5.7536, 5.7536, 5.7536, 5.7536, 5.7536, 5.7944, 5.7944, 5.7944, 5.7944, 5.7944, 5.7944, 5.7944, 5.7944, 5.7944, 5.7944, 5.7944, 5.7944, 5.7944, 5.7944, 5.7944, 5.7944, 5.7944, 5.7944, 5.7944, 5.7944, 5.7944, 5.7944, 5.7944, 5.7944, 5.7944, 5.7944, 5.7944, 5.7944, 5.7944, 5.8344, 5.8344, 5.8344, 5.8344, 5.8344, 5.8344, 5.8344, 5.8344, 5.8344, 5.8344, 5.8344, 5.8344, 5.8344, 5.8344, 5.8344, 5.8344, 5.8344, 5.8344, 5.8344, 5.8344, 5.8344, 5.8344, 5.8344, 5.8344, 5.8344, 5.8344, 5.8344, 5.8344, 5.8344, 5.8734, 5.8734, 5.8734, 5.8734, 5.8734, 5.8734, 5.8734, 5.8734, 5.8734, 5.8734, 5.8734, 5.8734, 5.8734, 5.8734, 5.8734, 5.8734, 5.8734, 5.8734, 5.8734, 5.8734, 5.8734, 5.8734, 5.8734, 5.8734, 5.8734, 5.8734, 5.8734, 5.8734, 5.8734, 5.9114, 5.9114, 5.9114, 5.9114, 5.9114, 5.9114, 5.9114, 5.9114, 5.9114, 5.9114, 5.9114, 5.9114, 5.9114, 5.9114, 5.9114, 5.9114, 5.9114, 5.9114, 5.9114, 5.9114, 5.9114, 5.9114, 5.9114, 5.9114, 5.9114, 5.9114, 5.9114, 5.9114, 5.9114, 5.9481, 5.9481, 5.9481, 5.9481, 5.9481, 5.9481, 5.9481, 5.9481, 5.9481, 5.9481, 5.9481, 5.9481, 5.9481, 5.9481, 5.9481, 5.9481, 5.9481, 5.9481, 5.9481, 5.9481, 5.9481, 5.9481, 5.9481, 5.9481, 5.9481, 5.9481, 5.9481, 5.9481, 5.9481, 5.9836, 5.9836, 5.9836, 5.9836, 5.9836, 5.9836, 5.9836, 5.9836, 5.9836, 5.9836, 5.9836, 5.9836, 5.9836, 5.9836, 5.9836, 5.9836, 5.9836, 5.9836, 5.9836, 5.9836, 5.9836, 5.9836, 5.9836, 5.9836, 5.9836, 5.9836, 5.9836, 5.9836, 5.9836, 6.0175, 6.0175, 6.0175, 6.0175, 6.0175, 6.0175, 6.0175, 6.0175, 6.0175, 6.0175, 6.0175, 6.0175, 6.0175, 6.0175, 6.0175, 6.0175, 6.0175, 6.0175, 6.0175, 6.0175, 6.0175, 6.0175, 6.0175, 6.0175, 6.0175, 6.0175, 6.0175, 6.0175, 6.0175, 6.05, 6.05, 6.05, 6.05, 6.05, 6.05, 6.05, 6.05, 6.05, 6.05, 6.05, 6.05, 6.05, 6.05, 6.05, 6.05, 6.05, 6.05, 6.05, 6.05, 6.05, 6.05, 6.05, 6.05, 6.05, 6.05, 6.05, 6.05, 6.05, 6.0807, 6.0807, 6.0807, 6.0807, 6.0807, 6.0807, 6.0807, 6.0807, 6.0807, 6.0807, 6.0807, 6.0807, 6.0807, 6.0807, 6.0807, 6.0807, 6.0807, 6.0807, 6.0807, 6.0807, 6.0807, 6.0807, 6.0807, 6.0807, 6.0807, 6.0807, 6.0807, 6.0807, 6.0807, 6.1097, 6.1097, 6.1097, 6.1097, 6.1097, 6.1097, 6.1097, 6.1097, 6.1097, 6.1097, 6.1097, 6.1097, 6.1097, 6.1097, 6.1097, 6.1097, 6.1097, 6.1097, 6.1097, 6.1097, 6.1097, 6.1097, 6.1097, 6.1097, 6.1097, 6.1097, 6.1097, 6.1097, 6.1097, 6.1367, 6.1367, 6.1367, 6.1367, 6.1367, 6.1367, 6.1367, 6.1367, 6.1367, 6.1367, 6.1367, 6.1367, 6.1367, 6.1367, 6.1367, 6.1367, 6.1367, 6.1367, 6.1367, 6.1367, 6.1367, 6.1367, 6.1367, 6.1367, 6.1367, 6.1367, 6.1367, 6.1367, 6.1367, 6.1618, 6.1618, 6.1618, 6.1618, 6.1618, 6.1618, 6.1618, 6.1618, 6.1618, 6.1618, 6.1618, 6.1618, 6.1618, 6.1618, 6.1618, 6.1618, 6.1618, 6.1618, 6.1618, 6.1618, 6.1618, 6.1618, 6.1618, 6.1618, 6.1618, 6.1618, 6.1618, 6.1618, 6.1618, 6.1847, 6.1847, 6.1847, 6.1847, 6.1847, 6.1847, 6.1847, 6.1847, 6.1847, 6.1847, 6.1847, 6.1847, 6.1847, 6.1847, 6.1847, 6.1847, 6.1847, 6.1847, 6.1847, 6.1847, 6.1847, 6.1847, 6.1847, 6.1847, 6.1847, 6.1847, 6.1847, 6.1847, 6.1847, 6.2054, 6.2054, 6.2054, 6.2054, 6.2054, 6.2054, 6.2054, 6.2054, 6.2054, 6.2054, 6.2054, 6.2054, 6.2054, 6.2054, 6.2054, 6.2054, 6.2054, 6.2054, 6.2054, 6.2054, 6.2054, 6.2054, 6.2054, 6.2054, 6.2054, 6.2054, 6.2054, 6.2054, 6.2054, 6.2238, 6.2238, 6.2238, 6.2238, 6.2238, 6.2238, 6.2238, 6.2238, 6.2238, 6.2238, 6.2238, 6.2238, 6.2238, 6.2238, 6.2238, 6.2238, 6.2238, 6.2238, 6.2238, 6.2238, 6.2238, 6.2238, 6.2238, 6.2238, 6.2238, 6.2238, 6.2238, 6.2238, 6.2238, 6.2399, 6.2399, 6.2399, 6.2399, 6.2399, 6.2399, 6.2399, 6.2399, 6.2399, 6.2399, 6.2399, 6.2399, 6.2399, 6.2399, 6.2399, 6.2399, 6.2399, 6.2399, 6.2399, 6.2399, 6.2399, 6.2399, 6.2399, 6.2399, 6.2399, 6.2399, 6.2399, 6.2399, 6.2399, 6.2535, 6.2535, 6.2535, 6.2535, 6.2535, 6.2535, 6.2535, 6.2535, 6.2535, 6.2535, 6.2535, 6.2535, 6.2535, 6.2535, 6.2535, 6.2535, 6.2535, 6.2535, 6.2535, 6.2535, 6.2535, 6.2535, 6.2535, 6.2535, 6.2535, 6.2535, 6.2535, 6.2535, 6.2535, 6.2646, 6.2646, 6.2646, 6.2646, 6.2646, 6.2646, 6.2646, 6.2646, 6.2646, 6.2646, 6.2646, 6.2646, 6.2646, 6.2646, 6.2646, 6.2646, 6.2646, 6.2646, 6.2646, 6.2646, 6.2646, 6.2646, 6.2646, 6.2646, 6.2646, 6.2646, 6.2646, 6.2646, 6.2646, 6.2732, 6.2732, 6.2732, 6.2732, 6.2732, 6.2732, 6.2732, 6.2732, 6.2732, 6.2732, 6.2732, 6.2732, 6.2732, 6.2732, 6.2732, 6.2732, 6.2732, 6.2732, 6.2732, 6.2732, 6.2732, 6.2732, 6.2732, 6.2732, 6.2732, 6.2732, 6.2732, 6.2732, 6.2732, 6.2791, 6.2791, 6.2791, 6.2791, 6.2791, 6.2791, 6.2791, 6.2791, 6.2791, 6.2791, 6.2791, 6.2791, 6.2791, 6.2791, 6.2791, 6.2791, 6.2791, 6.2791, 6.2791, 6.2791, 6.2791, 6.2791, 6.2791, 6.2791, 6.2791, 6.2791, 6.2791, 6.2791, 6.2791, 6.2824, 6.2824, 6.2824, 6.2824, 6.2824, 6.2824, 6.2824, 6.2824, 6.2824, 6.2824, 6.2824, 6.2824, 6.2824, 6.2824, 6.2824, 6.2824, 6.2824, 6.2824, 6.2824, 6.2824, 6.2824, 6.2824, 6.2824, 6.2824, 6.2824, 6.2824, 6.2824, 6.2824, 6.2824}, {1.4368e-08, 1.7501e-07, 6.6745e-07, 1.6601e-06, 3.2952e-06, 5.6833e-06, 8.8995e-06, 1.2983e-05, 1.7938e-05, 2.3736e-05, 3.0322e-05, 3.7614e-05, 4.5514e-05, 5.3904e-05, 6.2659e-05, 7.1645e-05, 8.0723e-05, 8.9753e-05, 9.8597e-05, 0.00010712, 0.0001152, 0.00012271, 0.00012954, 0.00013558, 0.00014076, 0.000145, 0.00014823, 0.00015041, 0.00015151, 3.338e-08, 4.0657e-07, 1.5506e-06, 3.8566e-06, 7.6554e-06, 1.3203e-05, 2.0675e-05, 3.0161e-05, 4.1672e-05, 5.5143e-05, 7.0443e-05, 8.7384e-05, 0.00010574, 0.00012523, 0.00014557, 0.00016644, 0.00018753, 0.00020851, 0.00022906, 0.00024886, 0.00026763, 0.00028507, 0.00030093, 0.00031498, 0.00032702, 0.00033686, 0.00034437, 0.00034943, 0.00035198, 5.2261e-08, 6.3653e-07, 2.4276e-06, 6.0381e-06, 1.1985e-05, 2.0671e-05, 3.2369e-05, 4.7222e-05, 6.5244e-05, 8.6334e-05, 0.00011029, 0.00013681, 0.00016554, 0.00019606, 0.0002279, 0.00026059, 0.0002936, 0.00032645, 0.00035862, 0.00038963, 0.000419, 0.00044631, 0.00047115, 0.00049315, 0.00051199, 0.0005274, 0.00053915, 0.00054708, 0.00055108, 7.0896e-08, 8.6352e-07, 3.2933e-06, 8.1912e-06, 1.6259e-05, 2.8043e-05, 4.3912e-05, 6.4061e-05, 8.8509e-05, 0.00011712, 0.00014961, 0.0001856, 0.00022457, 0.00026597, 0.00030917, 0.00035351, 0.0003983, 0.00044286, 0.0004865, 0.00052856, 0.00056841, 0.00060546, 0.00063915, 0.000669, 0.00069456, 0.00071546, 0.00073141, 0.00074217, 0.00074759, 8.9201e-08, 1.0865e-06, 4.1436e-06, 1.0306e-05, 2.0457e-05, 3.5283e-05, 5.5249e-05, 8.06e-05, 0.00011136, 0.00014736, 0.00018824, 0.00023352, 0.00028255, 0.00033464, 0.000389, 0.00044478, 0.00050114, 0.0005572, 0.00061211, 0.00066503, 0.00071517, 0.00076178, 0.00080417, 0.00084172, 0.00087388, 0.00090018, 0.00092025, 0.00093378, 0.0009406, 1.0709e-07, 1.3044e-06, 4.9748e-06, 1.2373e-05, 2.4561e-05, 4.236e-05, 6.6332e-05, 9.6768e-05, 0.0001337, 0.00017692, 0.000226, 0.00028036, 0.00033923, 0.00040177, 0.00046703, 0.000534, 0.00060166, 0.00066897, 0.00073489, 0.00079843, 0.00085863, 0.00091459, 0.00096548, 0.0010106, 0.0010492, 0.0010808, 0.0011048, 0.0011211, 0.0011293, 1.245e-07, 1.5164e-06, 5.7834e-06, 1.4385e-05, 2.8553e-05, 4.9246e-05, 7.7114e-05, 0.0001125, 0.00015543, 0.00020567, 0.00026274, 0.00032593, 0.00039437, 0.00046708, 0.00054294, 0.0006208, 0.00069946, 0.0007777, 0.00085434, 0.00092821, 0.00099819, 0.0010633, 0.0011224, 0.0011748, 0.0012197, 0.0012564, 0.0012844, 0.0013033, 0.0013128, 1.4136e-07, 1.7217e-06, 6.5663e-06, 1.6332e-05, 3.2418e-05, 5.5912e-05, 8.7553e-05, 0.00012773, 0.00017647, 0.00023352, 0.00029831, 0.00037005, 0.00044776, 0.00053031, 0.00061644, 0.00070484, 0.00079415, 0.00088298, 0.00097, 0.0010539, 0.0011333, 0.0012072, 0.0012744, 0.0013339, 0.0013848, 0.0014265, 0.0014583, 0.0014798, 0.0014906, 1.576e-07, 1.9195e-06, 7.3207e-06, 1.8208e-05, 3.6143e-05, 6.2336e-05, 9.7612e-05, 0.0001424, 0.00019675, 0.00026035, 0.00033258, 0.00041256, 0.00049921, 0.00059123, 0.00068726, 0.00078582, 0.00088539, 0.00098443, 0.0010814, 0.0011749, 0.0012635, 0.0013459, 0.0014208, 0.0014871, 0.0015439, 0.0015904, 0.0016258, 0.0016498, 0.0016618, 1.7317e-07, 2.1092e-06, 8.0442e-06, 2.0008e-05, 3.9715e-05, 6.8496e-05, 0.00010726, 0.00015647, 0.00021619, 0.00028607, 0.00036544, 0.00045333, 0.00054854, 0.00064966, 0.00075518, 0.00086347, 0.00097288, 0.0010817, 0.0011883, 0.001291, 0.0013884, 0.0014789, 0.0015612, 0.0016341, 0.0016965, 0.0017476, 0.0017865, 0.0018128, 0.001826, 1.8803e-07, 2.2902e-06, 8.7344e-06, 2.1724e-05, 4.3122e-05, 7.4374e-05, 0.00011646, 0.0001699, 0.00023474, 0.00031062, 0.0003968, 0.00049223, 0.0005956, 0.00070541, 0.00081998, 0.00093757, 0.0010564, 0.0011745, 0.0012903, 0.0014018, 0.0015075, 0.0016058, 0.0016951, 0.0017743, 0.0018421, 0.0018975, 0.0019398, 0.0019683, 0.0019827, 2.0214e-07, 2.462e-06, 9.3897e-06, 2.3354e-05, 4.6358e-05, 7.9953e-05, 0.0001252, 0.00018264, 0.00025235, 0.00033392, 0.00042657, 0.00052916, 0.00064029, 0.00075833, 0.00088149, 0.0010079, 0.0011356, 0.0012626, 0.0013871, 0.001507, 0.0016206, 0.0017262, 0.0018223, 0.0019074, 0.0019803, 0.0020399, 0.0020853, 0.002116, 0.0021315, 2.1546e-07, 2.6242e-06, 1.0008e-05, 2.4893e-05, 4.9413e-05, 8.5222e-05, 0.00013345, 0.00019468, 0.00026898, 0.00035593, 0.00045468, 0.00056403, 0.00068248, 0.0008083, 0.00093958, 0.0010743, 0.0012104, 0.0013459, 0.0014785, 0.0016063, 0.0017274, 0.00184, 0.0019424, 0.0020331, 0.0021108, 0.0021743, 0.0022228, 0.0022555, 0.0022719, 2.2796e-07, 2.7766e-06, 1.059e-05, 2.6338e-05, 5.2281e-05, 9.017e-05, 0.0001412, 0.00020598, 0.0002846, 0.00037659, 0.00048108, 0.00059678, 0.00072211, 0.00085523, 0.00099413, 0.0011367, 0.0012807, 0.001424, 0.0015643, 0.0016996, 0.0018277, 0.0019468, 0.0020552, 0.0021511, 0.0022333, 0.0023005, 0.0023518, 0.0023864, 0.0024038, 2.3964e-07, 2.9188e-06, 1.1132e-05, 2.7687e-05, 5.4959e-05, 9.4788e-05, 0.00014843, 0.00021653, 0.00029917, 0.00039588, 0.00050572, 0.00062734, 0.00075909, 0.00089903, 0.0010451, 0.0011949, 0.0013463, 0.0014969, 0.0016444, 0.0017866, 0.0019213, 0.0020465, 0.0021604, 0.0022613, 0.0023477, 0.0024184, 0.0024723, 0.0025086, 0.0025269, 2.5047e-07, 3.0507e-06, 1.1635e-05, 2.8938e-05, 5.7442e-05, 9.9071e-05, 0.00015514, 0.00022632, 0.00031269, 0.00041377, 0.00052857, 0.00065569, 0.00079339, 0.00093965, 0.0010923, 0.0012489, 0.0014071, 0.0015646, 0.0017187, 0.0018673, 0.0020081, 0.002139, 0.002258, 0.0023635, 0.0024538, 0.0025276, 0.002584, 0.002622, 0.0026411, 2.6044e-07, 3.1721e-06, 1.2098e-05, 3.009e-05, 5.9728e-05, 0.00010301, 0.00016131, 0.00023532, 0.00032514, 0.00043024, 0.0005496, 0.00068179, 0.00082496, 0.00097705, 0.0011357, 0.0012986, 0.0014631, 0.0016268, 0.0017871, 0.0019417, 0.0020881, 0.0022241, 0.0023479, 0.0024575, 0.0025514, 0.0026282, 0.0026868, 0.0027263, 0.0027462, 2.6954e-07, 3.283e-06, 1.2521e-05, 3.1142e-05, 6.1816e-05, 0.00010661, 0.00016695, 0.00024355, 0.0003365, 0.00044527, 0.00056881, 0.00070561, 0.00085379, 0.0010112, 0.0011754, 0.001344, 0.0015143, 0.0016837, 0.0018496, 0.0020095, 0.002161, 0.0023019, 0.00243, 0.0025434, 0.0026406, 0.0027201, 0.0027807, 0.0028216, 0.0028422, 2.7777e-07, 3.3832e-06, 1.2903e-05, 3.2093e-05, 6.3703e-05, 0.00010987, 0.00017204, 0.00025099, 0.00034677, 0.00045887, 0.00058618, 0.00072716, 0.00087987, 0.0010421, 0.0012113, 0.001385, 0.0015605, 0.0017351, 0.0019061, 0.0020709, 0.002227, 0.0023722, 0.0025042, 0.0026211, 0.0027212, 0.0028031, 0.0028656, 0.0029078, 0.002929, 2.8513e-07, 3.4728e-06, 1.3245e-05, 3.2943e-05, 6.5391e-05, 0.00011278, 0.0001766, 0.00025763, 0.00035596, 0.00047102, 0.00060171, 0.00074642, 0.00090317, 0.0010697, 0.0012434, 0.0014217, 0.0016019, 0.0017811, 0.0019566, 0.0021257, 0.002286, 0.002435, 0.0025705, 0.0026905, 0.0027933, 0.0028774, 0.0029415, 0.0029848, 0.0030066, 2.9161e-07, 3.5518e-06, 1.3546e-05, 3.3692e-05, 6.6878e-05, 0.00011534, 0.00018062, 0.00026349, 0.00036405, 0.00048173, 0.00061539, 0.00076339, 0.00092371, 0.001094, 0.0012717, 0.0014541, 0.0016383, 0.0018216, 0.0020011, 0.0021741, 0.002338, 0.0024904, 0.002629, 0.0027517, 0.0028568, 0.0029428, 0.0030084, 0.0030527, 0.003075, 2.9722e-07, 3.6202e-06, 1.3807e-05, 3.434e-05, 6.8165e-05, 0.00011756, 0.00018409, 0.00026856, 0.00037106, 0.00049101, 0.00062724, 0.00077809, 0.00094149, 0.0011151, 0.0012962, 0.001482, 0.0016698, 0.0018566, 0.0020396, 0.0022159, 0.002383, 0.0025383, 0.0026796, 0.0028047, 0.0029118, 0.0029995, 0.0030663, 0.0031114, 0.0031341, 3.0197e-07, 3.6779e-06, 1.4027e-05, 3.4888e-05, 6.9253e-05, 0.00011944, 0.00018703, 0.00027285, 0.00037698, 0.00049884, 0.00063725, 0.00079051, 0.00095652, 0.0011329, 0.0013168, 0.0015057, 0.0016965, 0.0018862, 0.0020721, 0.0022513, 0.002421, 0.0025788, 0.0027223, 0.0028494, 0.0029583, 0.0030473, 0.0031152, 0.0031611, 0.0031842, 3.0584e-07, 3.7252e-06, 1.4207e-05, 3.5336e-05, 7.0142e-05, 0.00012097, 0.00018943, 0.00027635, 0.00038182, 0.00050525, 0.00064543, 0.00080065, 0.00096879, 0.0011474, 0.0013338, 0.001525, 0.0017182, 0.0019105, 0.0020987, 0.0022802, 0.0024521, 0.0026119, 0.0027573, 0.002886, 0.0029963, 0.0030864, 0.0031552, 0.0032017, 0.003225, 3.0885e-07, 3.7618e-06, 1.4347e-05, 3.5684e-05, 7.0832e-05, 0.00012217, 0.0001913, 0.00027907, 0.00038558, 0.00051022, 0.00065178, 0.00080854, 0.00097833, 0.0011587, 0.0013469, 0.00154, 0.0017352, 0.0019293, 0.0021194, 0.0023026, 0.0024762, 0.0026376, 0.0027844, 0.0029144, 0.0030258, 0.0031168, 0.0031863, 0.0032332, 0.0032568, 3.11e-07, 3.788e-06, 1.4447e-05, 3.5932e-05, 7.1325e-05, 0.00012302, 0.00019263, 0.00028102, 0.00038826, 0.00051377, 0.00065632, 0.00081416, 0.00098514, 0.0011668, 0.0013563, 0.0015508, 0.0017472, 0.0019427, 0.0021341, 0.0023187, 0.0024935, 0.002656, 0.0028038, 0.0029347, 0.0030468, 0.0031385, 0.0032085, 0.0032557, 0.0032795, 3.1229e-07, 3.8037e-06, 1.4507e-05, 3.6081e-05, 7.1621e-05, 0.00012353, 0.00019343, 0.00028218, 0.00038987, 0.0005159, 0.00065904, 0.00081754, 0.00098922, 0.0011716, 0.0013619, 0.0015572, 0.0017545, 0.0019507, 0.002143, 0.0023283, 0.0025038, 0.002667, 0.0028154, 0.0029469, 0.0030595, 0.0031515, 0.0032218, 0.0032692, 0.003293, 3.1272e-07, 3.8089e-06, 1.4527e-05, 3.6131e-05, 7.1719e-05, 0.0001237, 0.00019369, 0.00028257, 0.00039041, 0.00051661, 0.00065994, 0.00081866, 0.00099058, 0.0011732, 0.0013638, 0.0015593, 0.0017569, 0.0019534, 0.0021459, 0.0023315, 0.0025073, 0.0026707, 0.0028193, 0.0029509, 0.0030637, 0.0031559, 0.0032262, 0.0032737, 0.0032976, 3.1229e-07, 3.8037e-06, 1.4507e-05, 3.6081e-05, 7.1621e-05, 0.00012353, 0.00019343, 0.00028218, 0.00038987, 0.0005159, 0.00065904, 0.00081754, 0.00098922, 0.0011716, 0.0013619, 0.0015572, 0.0017545, 0.0019507, 0.002143, 0.0023283, 0.0025038, 0.002667, 0.0028154, 0.0029469, 0.0030595, 0.0031515, 0.0032218, 0.0032692, 0.003293, 3.11e-07, 3.788e-06, 1.4447e-05, 3.5932e-05, 7.1325e-05, 0.00012302, 0.00019263, 0.00028102, 0.00038826, 0.00051377, 0.00065632, 0.00081416, 0.00098514, 0.0011668, 0.0013563, 0.0015508, 0.0017472, 0.0019427, 0.0021341, 0.0023187, 0.0024935, 0.002656, 0.0028038, 0.0029347, 0.0030468, 0.0031385, 0.0032085, 0.0032557, 0.0032795, 3.0885e-07, 3.7618e-06, 1.4347e-05, 3.5684e-05, 7.0832e-05, 0.00012217, 0.0001913, 0.00027907, 0.00038558, 0.00051022, 0.00065178, 0.00080854, 0.00097833, 0.0011587, 0.0013469, 0.00154, 0.0017352, 0.0019293, 0.0021194, 0.0023026, 0.0024762, 0.0026376, 0.0027844, 0.0029144, 0.0030258, 0.0031168, 0.0031863, 0.0032332, 0.0032568, 3.0584e-07, 3.7252e-06, 1.4207e-05, 3.5336e-05, 7.0142e-05, 0.00012097, 0.00018943, 0.00027635, 0.00038182, 0.00050525, 0.00064543, 0.00080065, 0.00096879, 0.0011474, 0.0013338, 0.001525, 0.0017182, 0.0019105, 0.0020987, 0.0022802, 0.0024521, 0.0026119, 0.0027573, 0.002886, 0.0029963, 0.0030864, 0.0031552, 0.0032017, 0.003225, 3.0197e-07, 3.6779e-06, 1.4027e-05, 3.4888e-05, 6.9253e-05, 0.00011944, 0.00018703, 0.00027285, 0.00037698, 0.00049884, 0.00063725, 0.00079051, 0.00095652, 0.0011329, 0.0013168, 0.0015057, 0.0016965, 0.0018862, 0.0020721, 0.0022513, 0.002421, 0.0025788, 0.0027223, 0.0028494, 0.0029583, 0.0030473, 0.0031152, 0.0031611, 0.0031842, 2.9722e-07, 3.6202e-06, 1.3807e-05, 3.434e-05, 6.8165e-05, 0.00011756, 0.00018409, 0.00026856, 0.00037106, 0.00049101, 0.00062724, 0.00077809, 0.00094149, 0.0011151, 0.0012962, 0.001482, 0.0016698, 0.0018566, 0.0020396, 0.0022159, 0.002383, 0.0025383, 0.0026796, 0.0028047, 0.0029118, 0.0029995, 0.0030663, 0.0031114, 0.0031341, 2.9161e-07, 3.5518e-06, 1.3546e-05, 3.3692e-05, 6.6878e-05, 0.00011534, 0.00018062, 0.00026349, 0.00036405, 0.00048173, 0.00061539, 0.00076339, 0.00092371, 0.001094, 0.0012717, 0.0014541, 0.0016383, 0.0018216, 0.0020011, 0.0021741, 0.002338, 0.0024904, 0.002629, 0.0027517, 0.0028568, 0.0029428, 0.0030084, 0.0030527, 0.003075, 2.8513e-07, 3.4728e-06, 1.3245e-05, 3.2943e-05, 6.5391e-05, 0.00011278, 0.0001766, 0.00025763, 0.00035596, 0.00047102, 0.00060171, 0.00074642, 0.00090317, 0.0010697, 0.0012434, 0.0014217, 0.0016019, 0.0017811, 0.0019566, 0.0021257, 0.002286, 0.002435, 0.0025705, 0.0026905, 0.0027933, 0.0028774, 0.0029415, 0.0029848, 0.0030066, 2.7777e-07, 3.3832e-06, 1.2903e-05, 3.2093e-05, 6.3703e-05, 0.00010987, 0.00017204, 0.00025099, 0.00034677, 0.00045887, 0.00058618, 0.00072716, 0.00087987, 0.0010421, 0.0012113, 0.001385, 0.0015605, 0.0017351, 0.0019061, 0.0020709, 0.002227, 0.0023722, 0.0025042, 0.0026211, 0.0027212, 0.0028031, 0.0028656, 0.0029078, 0.002929, 2.6954e-07, 3.283e-06, 1.2521e-05, 3.1142e-05, 6.1816e-05, 0.00010661, 0.00016695, 0.00024355, 0.0003365, 0.00044527, 0.00056881, 0.00070561, 0.00085379, 0.0010112, 0.0011754, 0.001344, 0.0015143, 0.0016837, 0.0018496, 0.0020095, 0.002161, 0.0023019, 0.00243, 0.0025434, 0.0026406, 0.0027201, 0.0027807, 0.0028216, 0.0028422, 2.6044e-07, 3.1721e-06, 1.2098e-05, 3.009e-05, 5.9728e-05, 0.00010301, 0.00016131, 0.00023532, 0.00032514, 0.00043024, 0.0005496, 0.00068179, 0.00082496, 0.00097705, 0.0011357, 0.0012986, 0.0014631, 0.0016268, 0.0017871, 0.0019417, 0.0020881, 0.0022241, 0.0023479, 0.0024575, 0.0025514, 0.0026282, 0.0026868, 0.0027263, 0.0027462, 2.5047e-07, 3.0507e-06, 1.1635e-05, 2.8938e-05, 5.7442e-05, 9.9071e-05, 0.00015514, 0.00022632, 0.00031269, 0.00041377, 0.00052857, 0.00065569, 0.00079339, 0.00093965, 0.0010923, 0.0012489, 0.0014071, 0.0015646, 0.0017187, 0.0018673, 0.0020081, 0.002139, 0.002258, 0.0023635, 0.0024538, 0.0025276, 0.002584, 0.002622, 0.0026411, 2.3964e-07, 2.9188e-06, 1.1132e-05, 2.7687e-05, 5.4959e-05, 9.4788e-05, 0.00014843, 0.00021653, 0.00029917, 0.00039588, 0.00050572, 0.00062734, 0.00075909, 0.00089903, 0.0010451, 0.0011949, 0.0013463, 0.0014969, 0.0016444, 0.0017866, 0.0019213, 0.0020465, 0.0021604, 0.0022613, 0.0023477, 0.0024184, 0.0024723, 0.0025086, 0.0025269, 2.2796e-07, 2.7766e-06, 1.059e-05, 2.6338e-05, 5.2281e-05, 9.017e-05, 0.0001412, 0.00020598, 0.0002846, 0.00037659, 0.00048108, 0.00059678, 0.00072211, 0.00085523, 0.00099413, 0.0011367, 0.0012807, 0.001424, 0.0015643, 0.0016996, 0.0018277, 0.0019468, 0.0020552, 0.0021511, 0.0022333, 0.0023005, 0.0023518, 0.0023864, 0.0024038, 2.1546e-07, 2.6242e-06, 1.0008e-05, 2.4893e-05, 4.9413e-05, 8.5222e-05, 0.00013345, 0.00019468, 0.00026898, 0.00035593, 0.00045468, 0.00056403, 0.00068248, 0.0008083, 0.00093958, 0.0010743, 0.0012104, 0.0013459, 0.0014785, 0.0016063, 0.0017274, 0.00184, 0.0019424, 0.0020331, 0.0021108, 0.0021743, 0.0022228, 0.0022555, 0.0022719, 2.0214e-07, 2.462e-06, 9.3897e-06, 2.3354e-05, 4.6358e-05, 7.9953e-05, 0.0001252, 0.00018264, 0.00025235, 0.00033392, 0.00042657, 0.00052916, 0.00064029, 0.00075833, 0.00088149, 0.0010079, 0.0011356, 0.0012626, 0.0013871, 0.001507, 0.0016206, 0.0017262, 0.0018223, 0.0019074, 0.0019803, 0.0020399, 0.0020853, 0.002116, 0.0021315, 1.8803e-07, 2.2902e-06, 8.7344e-06, 2.1724e-05, 4.3122e-05, 7.4374e-05, 0.00011646, 0.0001699, 0.00023474, 0.00031062, 0.0003968, 0.00049223, 0.0005956, 0.00070541, 0.00081998, 0.00093757, 0.0010564, 0.0011745, 0.0012903, 0.0014018, 0.0015075, 0.0016058, 0.0016951, 0.0017743, 0.0018421, 0.0018975, 0.0019398, 0.0019683, 0.0019827, 1.7317e-07, 2.1092e-06, 8.0442e-06, 2.0008e-05, 3.9715e-05, 6.8496e-05, 0.00010726, 0.00015647, 0.00021619, 0.00028607, 0.00036544, 0.00045333, 0.00054854, 0.00064966, 0.00075518, 0.00086347, 0.00097288, 0.0010817, 0.0011883, 0.001291, 0.0013884, 0.0014789, 0.0015612, 0.0016341, 0.0016965, 0.0017476, 0.0017865, 0.0018128, 0.001826, 1.576e-07, 1.9195e-06, 7.3207e-06, 1.8208e-05, 3.6143e-05, 6.2336e-05, 9.7612e-05, 0.0001424, 0.00019675, 0.00026035, 0.00033258, 0.00041256, 0.00049921, 0.00059123, 0.00068726, 0.00078582, 0.00088539, 0.00098443, 0.0010814, 0.0011749, 0.0012635, 0.0013459, 0.0014208, 0.0014871, 0.0015439, 0.0015904, 0.0016258, 0.0016498, 0.0016618, 1.4136e-07, 1.7217e-06, 6.5663e-06, 1.6332e-05, 3.2418e-05, 5.5912e-05, 8.7553e-05, 0.00012773, 0.00017647, 0.00023352, 0.00029831, 0.00037005, 0.00044776, 0.00053031, 0.00061644, 0.00070484, 0.00079415, 0.00088298, 0.00097, 0.0010539, 0.0011333, 0.0012072, 0.0012744, 0.0013339, 0.0013848, 0.0014265, 0.0014583, 0.0014798, 0.0014906, 1.245e-07, 1.5164e-06, 5.7834e-06, 1.4385e-05, 2.8553e-05, 4.9246e-05, 7.7114e-05, 0.0001125, 0.00015543, 0.00020567, 0.00026274, 0.00032593, 0.00039437, 0.00046708, 0.00054294, 0.0006208, 0.00069946, 0.0007777, 0.00085434, 0.00092821, 0.00099819, 0.0010633, 0.0011224, 0.0011748, 0.0012197, 0.0012564, 0.0012844, 0.0013033, 0.0013128, 1.0709e-07, 1.3044e-06, 4.9748e-06, 1.2373e-05, 2.4561e-05, 4.236e-05, 6.6332e-05, 9.6768e-05, 0.0001337, 0.00017692, 0.000226, 0.00028036, 0.00033923, 0.00040177, 0.00046703, 0.000534, 0.00060166, 0.00066897, 0.00073489, 0.00079843, 0.00085863, 0.00091459, 0.00096548, 0.0010106, 0.0010492, 0.0010808, 0.0011048, 0.0011211, 0.0011293, 8.9201e-08, 1.0865e-06, 4.1436e-06, 1.0306e-05, 2.0457e-05, 3.5283e-05, 5.5249e-05, 8.06e-05, 0.00011136, 0.00014736, 0.00018824, 0.00023352, 0.00028255, 0.00033464, 0.000389, 0.00044478, 0.00050114, 0.0005572, 0.00061211, 0.00066503, 0.00071517, 0.00076178, 0.00080417, 0.00084172, 0.00087388, 0.00090018, 0.00092025, 0.00093378, 0.0009406, 7.0896e-08, 8.6352e-07, 3.2933e-06, 8.1912e-06, 1.6259e-05, 2.8043e-05, 4.3912e-05, 6.4061e-05, 8.8509e-05, 0.00011712, 0.00014961, 0.0001856, 0.00022457, 0.00026597, 0.00030917, 0.00035351, 0.0003983, 0.00044286, 0.0004865, 0.00052856, 0.00056841, 0.00060546, 0.00063915, 0.000669, 0.00069456, 0.00071546, 0.00073141, 0.00074217, 0.00074759, 5.2261e-08, 6.3653e-07, 2.4276e-06, 6.0381e-06, 1.1985e-05, 2.0671e-05, 3.2369e-05, 4.7222e-05, 6.5244e-05, 8.6334e-05, 0.00011029, 0.00013681, 0.00016554, 0.00019606, 0.0002279, 0.00026059, 0.0002936, 0.00032645, 0.00035862, 0.00038963, 0.000419, 0.00044631, 0.00047115, 0.00049315, 0.00051199, 0.0005274, 0.00053915, 0.00054708, 0.00055108, 3.338e-08, 4.0657e-07, 1.5506e-06, 3.8566e-06, 7.6554e-06, 1.3203e-05, 2.0675e-05, 3.0161e-05, 4.1672e-05, 5.5143e-05, 7.0443e-05, 8.7384e-05, 0.00010574, 0.00012523, 0.00014557, 0.00016644, 0.00018753, 0.00020851, 0.00022906, 0.00024886, 0.00026763, 0.00028507, 0.00030093, 0.00031498, 0.00032702, 0.00033686, 0.00034437, 0.00034943, 0.00035198, 1.4368e-08, 1.7501e-07, 6.6745e-07, 1.6601e-06, 3.2952e-06, 5.6833e-06, 8.8995e-06, 1.2983e-05, 1.7938e-05, 2.3736e-05, 3.0322e-05, 3.7614e-05, 4.5514e-05, 5.3904e-05, 6.2659e-05, 7.1645e-05, 8.0723e-05, 8.9753e-05, 9.8597e-05, 0.00010712, 0.0001152, 0.00012271, 0.00012954, 0.00013558, 0.00014076, 0.000145, 0.00014823, 0.00015041, 0.00015151}}, {{-1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056}, {0.00077633, 0.00077633, 0.00077633, 0.00077633, 0.00077633, 0.00077633, 0.00077633, 0.00077633, 0.00077633, 0.00077633, 0.00077633, 0.00077633, 0.00077633, 0.00077633, 0.00077633, 0.00077633, 0.00077633, 0.00077633, 0.00077633, 0.00077633, 0.00077633, 0.00077633, 0.00077633, 0.00077633, 0.00077633, 0.00077633, 0.00077633, 0.00077633, 0.00077633, 0.0040864, 0.0040864, 0.0040864, 0.0040864, 0.0040864, 0.0040864, 0.0040864, 0.0040864, 0.0040864, 0.0040864, 0.0040864, 0.0040864, 0.0040864, 0.0040864, 0.0040864, 0.0040864, 0.0040864, 0.0040864, 0.0040864, 0.0040864, 0.0040864, 0.0040864, 0.0040864, 0.0040864, 0.0040864, 0.0040864, 0.0040864, 0.0040864, 0.0040864, 0.010025, 0.010025, 0.010025, 0.010025, 0.010025, 0.010025, 0.010025, 0.010025, 0.010025, 0.010025, 0.010025, 0.010025, 0.010025, 0.010025, 0.010025, 0.010025, 0.010025, 0.010025, 0.010025, 0.010025, 0.010025, 0.010025, 0.010025, 0.010025, 0.010025, 0.010025, 0.010025, 0.010025, 0.010025, 0.018565, 0.018565, 0.018565, 0.018565, 0.018565, 0.018565, 0.018565, 0.018565, 0.018565, 0.018565, 0.018565, 0.018565, 0.018565, 0.018565, 0.018565, 0.018565, 0.018565, 0.018565, 0.018565, 0.018565, 0.018565, 0.018565, 0.018565, 0.018565, 0.018565, 0.018565, 0.018565, 0.018565, 0.018565, 0.029666, 0.029666, 0.029666, 0.029666, 0.029666, 0.029666, 0.029666, 0.029666, 0.029666, 0.029666, 0.029666, 0.029666, 0.029666, 0.029666, 0.029666, 0.029666, 0.029666, 0.029666, 0.029666, 0.029666, 0.029666, 0.029666, 0.029666, 0.029666, 0.029666, 0.029666, 0.029666, 0.029666, 0.029666, 0.043277, 0.043277, 0.043277, 0.043277, 0.043277, 0.043277, 0.043277, 0.043277, 0.043277, 0.043277, 0.043277, 0.043277, 0.043277, 0.043277, 0.043277, 0.043277, 0.043277, 0.043277, 0.043277, 0.043277, 0.043277, 0.043277, 0.043277, 0.043277, 0.043277, 0.043277, 0.043277, 0.043277, 0.043277, 0.059336, 0.059336, 0.059336, 0.059336, 0.059336, 0.059336, 0.059336, 0.059336, 0.059336, 0.059336, 0.059336, 0.059336, 0.059336, 0.059336, 0.059336, 0.059336, 0.059336, 0.059336, 0.059336, 0.059336, 0.059336, 0.059336, 0.059336, 0.059336, 0.059336, 0.059336, 0.059336, 0.059336, 0.059336, 0.07777, 0.07777, 0.07777, 0.07777, 0.07777, 0.07777, 0.07777, 0.07777, 0.07777, 0.07777, 0.07777, 0.07777, 0.07777, 0.07777, 0.07777, 0.07777, 0.07777, 0.07777, 0.07777, 0.07777, 0.07777, 0.07777, 0.07777, 0.07777, 0.07777, 0.07777, 0.07777, 0.07777, 0.07777, 0.098499, 0.098499, 0.098499, 0.098499, 0.098499, 0.098499, 0.098499, 0.098499, 0.098499, 0.098499, 0.098499, 0.098499, 0.098499, 0.098499, 0.098499, 0.098499, 0.098499, 0.098499, 0.098499, 0.098499, 0.098499, 0.098499, 0.098499, 0.098499, 0.098499, 0.098499, 0.098499, 0.098499, 0.098499, 0.12143, 0.12143, 0.12143, 0.12143, 0.12143, 0.12143, 0.12143, 0.12143, 0.12143, 0.12143, 0.12143, 0.12143, 0.12143, 0.12143, 0.12143, 0.12143, 0.12143, 0.12143, 0.12143, 0.12143, 0.12143, 0.12143, 0.12143, 0.12143, 0.12143, 0.12143, 0.12143, 0.12143, 0.12143, 0.14648, 0.14648, 0.14648, 0.14648, 0.14648, 0.14648, 0.14648, 0.14648, 0.14648, 0.14648, 0.14648, 0.14648, 0.14648, 0.14648, 0.14648, 0.14648, 0.14648, 0.14648, 0.14648, 0.14648, 0.14648, 0.14648, 0.14648, 0.14648, 0.14648, 0.14648, 0.14648, 0.14648, 0.14648, 0.17353, 0.17353, 0.17353, 0.17353, 0.17353, 0.17353, 0.17353, 0.17353, 0.17353, 0.17353, 0.17353, 0.17353, 0.17353, 0.17353, 0.17353, 0.17353, 0.17353, 0.17353, 0.17353, 0.17353, 0.17353, 0.17353, 0.17353, 0.17353, 0.17353, 0.17353, 0.17353, 0.17353, 0.17353, 0.20248, 0.20248, 0.20248, 0.20248, 0.20248, 0.20248, 0.20248, 0.20248, 0.20248, 0.20248, 0.20248, 0.20248, 0.20248, 0.20248, 0.20248, 0.20248, 0.20248, 0.20248, 0.20248, 0.20248, 0.20248, 0.20248, 0.20248, 0.20248, 0.20248, 0.20248, 0.20248, 0.20248, 0.20248, 0.23323, 0.23323, 0.23323, 0.23323, 0.23323, 0.23323, 0.23323, 0.23323, 0.23323, 0.23323, 0.23323, 0.23323, 0.23323, 0.23323, 0.23323, 0.23323, 0.23323, 0.23323, 0.23323, 0.23323, 0.23323, 0.23323, 0.23323, 0.23323, 0.23323, 0.23323, 0.23323, 0.23323, 0.23323, 0.26565, 0.26565, 0.26565, 0.26565, 0.26565, 0.26565, 0.26565, 0.26565, 0.26565, 0.26565, 0.26565, 0.26565, 0.26565, 0.26565, 0.26565, 0.26565, 0.26565, 0.26565, 0.26565, 0.26565, 0.26565, 0.26565, 0.26565, 0.26565, 0.26565, 0.26565, 0.26565, 0.26565, 0.26565, 0.29963, 0.29963, 0.29963, 0.29963, 0.29963, 0.29963, 0.29963, 0.29963, 0.29963, 0.29963, 0.29963, 0.29963, 0.29963, 0.29963, 0.29963, 0.29963, 0.29963, 0.29963, 0.29963, 0.29963, 0.29963, 0.29963, 0.29963, 0.29963, 0.29963, 0.29963, 0.29963, 0.29963, 0.29963, 0.33505, 0.33505, 0.33505, 0.33505, 0.33505, 0.33505, 0.33505, 0.33505, 0.33505, 0.33505, 0.33505, 0.33505, 0.33505, 0.33505, 0.33505, 0.33505, 0.33505, 0.33505, 0.33505, 0.33505, 0.33505, 0.33505, 0.33505, 0.33505, 0.33505, 0.33505, 0.33505, 0.33505, 0.33505, 0.3718, 0.3718, 0.3718, 0.3718, 0.3718, 0.3718, 0.3718, 0.3718, 0.3718, 0.3718, 0.3718, 0.3718, 0.3718, 0.3718, 0.3718, 0.3718, 0.3718, 0.3718, 0.3718, 0.3718, 0.3718, 0.3718, 0.3718, 0.3718, 0.3718, 0.3718, 0.3718, 0.3718, 0.3718, 0.40974, 0.40974, 0.40974, 0.40974, 0.40974, 0.40974, 0.40974, 0.40974, 0.40974, 0.40974, 0.40974, 0.40974, 0.40974, 0.40974, 0.40974, 0.40974, 0.40974, 0.40974, 0.40974, 0.40974, 0.40974, 0.40974, 0.40974, 0.40974, 0.40974, 0.40974, 0.40974, 0.40974, 0.40974, 0.44877, 0.44877, 0.44877, 0.44877, 0.44877, 0.44877, 0.44877, 0.44877, 0.44877, 0.44877, 0.44877, 0.44877, 0.44877, 0.44877, 0.44877, 0.44877, 0.44877, 0.44877, 0.44877, 0.44877, 0.44877, 0.44877, 0.44877, 0.44877, 0.44877, 0.44877, 0.44877, 0.44877, 0.44877, 0.48876, 0.48876, 0.48876, 0.48876, 0.48876, 0.48876, 0.48876, 0.48876, 0.48876, 0.48876, 0.48876, 0.48876, 0.48876, 0.48876, 0.48876, 0.48876, 0.48876, 0.48876, 0.48876, 0.48876, 0.48876, 0.48876, 0.48876, 0.48876, 0.48876, 0.48876, 0.48876, 0.48876, 0.48876, 0.52958, 0.52958, 0.52958, 0.52958, 0.52958, 0.52958, 0.52958, 0.52958, 0.52958, 0.52958, 0.52958, 0.52958, 0.52958, 0.52958, 0.52958, 0.52958, 0.52958, 0.52958, 0.52958, 0.52958, 0.52958, 0.52958, 0.52958, 0.52958, 0.52958, 0.52958, 0.52958, 0.52958, 0.52958, 0.57112, 0.57112, 0.57112, 0.57112, 0.57112, 0.57112, 0.57112, 0.57112, 0.57112, 0.57112, 0.57112, 0.57112, 0.57112, 0.57112, 0.57112, 0.57112, 0.57112, 0.57112, 0.57112, 0.57112, 0.57112, 0.57112, 0.57112, 0.57112, 0.57112, 0.57112, 0.57112, 0.57112, 0.57112, 0.61326, 0.61326, 0.61326, 0.61326, 0.61326, 0.61326, 0.61326, 0.61326, 0.61326, 0.61326, 0.61326, 0.61326, 0.61326, 0.61326, 0.61326, 0.61326, 0.61326, 0.61326, 0.61326, 0.61326, 0.61326, 0.61326, 0.61326, 0.61326, 0.61326, 0.61326, 0.61326, 0.61326, 0.61326, 0.65588, 0.65588, 0.65588, 0.65588, 0.65588, 0.65588, 0.65588, 0.65588, 0.65588, 0.65588, 0.65588, 0.65588, 0.65588, 0.65588, 0.65588, 0.65588, 0.65588, 0.65588, 0.65588, 0.65588, 0.65588, 0.65588, 0.65588, 0.65588, 0.65588, 0.65588, 0.65588, 0.65588, 0.65588, 0.69885, 0.69885, 0.69885, 0.69885, 0.69885, 0.69885, 0.69885, 0.69885, 0.69885, 0.69885, 0.69885, 0.69885, 0.69885, 0.69885, 0.69885, 0.69885, 0.69885, 0.69885, 0.69885, 0.69885, 0.69885, 0.69885, 0.69885, 0.69885, 0.69885, 0.69885, 0.69885, 0.69885, 0.69885, 0.74207, 0.74207, 0.74207, 0.74207, 0.74207, 0.74207, 0.74207, 0.74207, 0.74207, 0.74207, 0.74207, 0.74207, 0.74207, 0.74207, 0.74207, 0.74207, 0.74207, 0.74207, 0.74207, 0.74207, 0.74207, 0.74207, 0.74207, 0.74207, 0.74207, 0.74207, 0.74207, 0.74207, 0.74207, 0.7854, 0.7854, 0.7854, 0.7854, 0.7854, 0.7854, 0.7854, 0.7854, 0.7854, 0.7854, 0.7854, 0.7854, 0.7854, 0.7854, 0.7854, 0.7854, 0.7854, 0.7854, 0.7854, 0.7854, 0.7854, 0.7854, 0.7854, 0.7854, 0.7854, 0.7854, 0.7854, 0.7854, 0.7854, 0.82873, 0.82873, 0.82873, 0.82873, 0.82873, 0.82873, 0.82873, 0.82873, 0.82873, 0.82873, 0.82873, 0.82873, 0.82873, 0.82873, 0.82873, 0.82873, 0.82873, 0.82873, 0.82873, 0.82873, 0.82873, 0.82873, 0.82873, 0.82873, 0.82873, 0.82873, 0.82873, 0.82873, 0.82873, 0.87194, 0.87194, 0.87194, 0.87194, 0.87194, 0.87194, 0.87194, 0.87194, 0.87194, 0.87194, 0.87194, 0.87194, 0.87194, 0.87194, 0.87194, 0.87194, 0.87194, 0.87194, 0.87194, 0.87194, 0.87194, 0.87194, 0.87194, 0.87194, 0.87194, 0.87194, 0.87194, 0.87194, 0.87194, 0.91492, 0.91492, 0.91492, 0.91492, 0.91492, 0.91492, 0.91492, 0.91492, 0.91492, 0.91492, 0.91492, 0.91492, 0.91492, 0.91492, 0.91492, 0.91492, 0.91492, 0.91492, 0.91492, 0.91492, 0.91492, 0.91492, 0.91492, 0.91492, 0.91492, 0.91492, 0.91492, 0.91492, 0.91492, 0.95753, 0.95753, 0.95753, 0.95753, 0.95753, 0.95753, 0.95753, 0.95753, 0.95753, 0.95753, 0.95753, 0.95753, 0.95753, 0.95753, 0.95753, 0.95753, 0.95753, 0.95753, 0.95753, 0.95753, 0.95753, 0.95753, 0.95753, 0.95753, 0.95753, 0.95753, 0.95753, 0.95753, 0.95753, 0.99967, 0.99967, 0.99967, 0.99967, 0.99967, 0.99967, 0.99967, 0.99967, 0.99967, 0.99967, 0.99967, 0.99967, 0.99967, 0.99967, 0.99967, 0.99967, 0.99967, 0.99967, 0.99967, 0.99967, 0.99967, 0.99967, 0.99967, 0.99967, 0.99967, 0.99967, 0.99967, 0.99967, 0.99967, 1.0412, 1.0412, 1.0412, 1.0412, 1.0412, 1.0412, 1.0412, 1.0412, 1.0412, 1.0412, 1.0412, 1.0412, 1.0412, 1.0412, 1.0412, 1.0412, 1.0412, 1.0412, 1.0412, 1.0412, 1.0412, 1.0412, 1.0412, 1.0412, 1.0412, 1.0412, 1.0412, 1.0412, 1.0412, 1.082, 1.082, 1.082, 1.082, 1.082, 1.082, 1.082, 1.082, 1.082, 1.082, 1.082, 1.082, 1.082, 1.082, 1.082, 1.082, 1.082, 1.082, 1.082, 1.082, 1.082, 1.082, 1.082, 1.082, 1.082, 1.082, 1.082, 1.082, 1.082, 1.122, 1.122, 1.122, 1.122, 1.122, 1.122, 1.122, 1.122, 1.122, 1.122, 1.122, 1.122, 1.122, 1.122, 1.122, 1.122, 1.122, 1.122, 1.122, 1.122, 1.122, 1.122, 1.122, 1.122, 1.122, 1.122, 1.122, 1.122, 1.122, 1.1611, 1.1611, 1.1611, 1.1611, 1.1611, 1.1611, 1.1611, 1.1611, 1.1611, 1.1611, 1.1611, 1.1611, 1.1611, 1.1611, 1.1611, 1.1611, 1.1611, 1.1611, 1.1611, 1.1611, 1.1611, 1.1611, 1.1611, 1.1611, 1.1611, 1.1611, 1.1611, 1.1611, 1.1611, 1.199, 1.199, 1.199, 1.199, 1.199, 1.199, 1.199, 1.199, 1.199, 1.199, 1.199, 1.199, 1.199, 1.199, 1.199, 1.199, 1.199, 1.199, 1.199, 1.199, 1.199, 1.199, 1.199, 1.199, 1.199, 1.199, 1.199, 1.199, 1.199, 1.2357, 1.2357, 1.2357, 1.2357, 1.2357, 1.2357, 1.2357, 1.2357, 1.2357, 1.2357, 1.2357, 1.2357, 1.2357, 1.2357, 1.2357, 1.2357, 1.2357, 1.2357, 1.2357, 1.2357, 1.2357, 1.2357, 1.2357, 1.2357, 1.2357, 1.2357, 1.2357, 1.2357, 1.2357, 1.2712, 1.2712, 1.2712, 1.2712, 1.2712, 1.2712, 1.2712, 1.2712, 1.2712, 1.2712, 1.2712, 1.2712, 1.2712, 1.2712, 1.2712, 1.2712, 1.2712, 1.2712, 1.2712, 1.2712, 1.2712, 1.2712, 1.2712, 1.2712, 1.2712, 1.2712, 1.2712, 1.2712, 1.2712, 1.3051, 1.3051, 1.3051, 1.3051, 1.3051, 1.3051, 1.3051, 1.3051, 1.3051, 1.3051, 1.3051, 1.3051, 1.3051, 1.3051, 1.3051, 1.3051, 1.3051, 1.3051, 1.3051, 1.3051, 1.3051, 1.3051, 1.3051, 1.3051, 1.3051, 1.3051, 1.3051, 1.3051, 1.3051, 1.3376, 1.3376, 1.3376, 1.3376, 1.3376, 1.3376, 1.3376, 1.3376, 1.3376, 1.3376, 1.3376, 1.3376, 1.3376, 1.3376, 1.3376, 1.3376, 1.3376, 1.3376, 1.3376, 1.3376, 1.3376, 1.3376, 1.3376, 1.3376, 1.3376, 1.3376, 1.3376, 1.3376, 1.3376, 1.3683, 1.3683, 1.3683, 1.3683, 1.3683, 1.3683, 1.3683, 1.3683, 1.3683, 1.3683, 1.3683, 1.3683, 1.3683, 1.3683, 1.3683, 1.3683, 1.3683, 1.3683, 1.3683, 1.3683, 1.3683, 1.3683, 1.3683, 1.3683, 1.3683, 1.3683, 1.3683, 1.3683, 1.3683, 1.3973, 1.3973, 1.3973, 1.3973, 1.3973, 1.3973, 1.3973, 1.3973, 1.3973, 1.3973, 1.3973, 1.3973, 1.3973, 1.3973, 1.3973, 1.3973, 1.3973, 1.3973, 1.3973, 1.3973, 1.3973, 1.3973, 1.3973, 1.3973, 1.3973, 1.3973, 1.3973, 1.3973, 1.3973, 1.4243, 1.4243, 1.4243, 1.4243, 1.4243, 1.4243, 1.4243, 1.4243, 1.4243, 1.4243, 1.4243, 1.4243, 1.4243, 1.4243, 1.4243, 1.4243, 1.4243, 1.4243, 1.4243, 1.4243, 1.4243, 1.4243, 1.4243, 1.4243, 1.4243, 1.4243, 1.4243, 1.4243, 1.4243, 1.4494, 1.4494, 1.4494, 1.4494, 1.4494, 1.4494, 1.4494, 1.4494, 1.4494, 1.4494, 1.4494, 1.4494, 1.4494, 1.4494, 1.4494, 1.4494, 1.4494, 1.4494, 1.4494, 1.4494, 1.4494, 1.4494, 1.4494, 1.4494, 1.4494, 1.4494, 1.4494, 1.4494, 1.4494, 1.4723, 1.4723, 1.4723, 1.4723, 1.4723, 1.4723, 1.4723, 1.4723, 1.4723, 1.4723, 1.4723, 1.4723, 1.4723, 1.4723, 1.4723, 1.4723, 1.4723, 1.4723, 1.4723, 1.4723, 1.4723, 1.4723, 1.4723, 1.4723, 1.4723, 1.4723, 1.4723, 1.4723, 1.4723, 1.493, 1.493, 1.493, 1.493, 1.493, 1.493, 1.493, 1.493, 1.493, 1.493, 1.493, 1.493, 1.493, 1.493, 1.493, 1.493, 1.493, 1.493, 1.493, 1.493, 1.493, 1.493, 1.493, 1.493, 1.493, 1.493, 1.493, 1.493, 1.493, 1.5115, 1.5115, 1.5115, 1.5115, 1.5115, 1.5115, 1.5115, 1.5115, 1.5115, 1.5115, 1.5115, 1.5115, 1.5115, 1.5115, 1.5115, 1.5115, 1.5115, 1.5115, 1.5115, 1.5115, 1.5115, 1.5115, 1.5115, 1.5115, 1.5115, 1.5115, 1.5115, 1.5115, 1.5115, 1.5275, 1.5275, 1.5275, 1.5275, 1.5275, 1.5275, 1.5275, 1.5275, 1.5275, 1.5275, 1.5275, 1.5275, 1.5275, 1.5275, 1.5275, 1.5275, 1.5275, 1.5275, 1.5275, 1.5275, 1.5275, 1.5275, 1.5275, 1.5275, 1.5275, 1.5275, 1.5275, 1.5275, 1.5275, 1.5411, 1.5411, 1.5411, 1.5411, 1.5411, 1.5411, 1.5411, 1.5411, 1.5411, 1.5411, 1.5411, 1.5411, 1.5411, 1.5411, 1.5411, 1.5411, 1.5411, 1.5411, 1.5411, 1.5411, 1.5411, 1.5411, 1.5411, 1.5411, 1.5411, 1.5411, 1.5411, 1.5411, 1.5411, 1.5522, 1.5522, 1.5522, 1.5522, 1.5522, 1.5522, 1.5522, 1.5522, 1.5522, 1.5522, 1.5522, 1.5522, 1.5522, 1.5522, 1.5522, 1.5522, 1.5522, 1.5522, 1.5522, 1.5522, 1.5522, 1.5522, 1.5522, 1.5522, 1.5522, 1.5522, 1.5522, 1.5522, 1.5522, 1.5608, 1.5608, 1.5608, 1.5608, 1.5608, 1.5608, 1.5608, 1.5608, 1.5608, 1.5608, 1.5608, 1.5608, 1.5608, 1.5608, 1.5608, 1.5608, 1.5608, 1.5608, 1.5608, 1.5608, 1.5608, 1.5608, 1.5608, 1.5608, 1.5608, 1.5608, 1.5608, 1.5608, 1.5608, 1.5667, 1.5667, 1.5667, 1.5667, 1.5667, 1.5667, 1.5667, 1.5667, 1.5667, 1.5667, 1.5667, 1.5667, 1.5667, 1.5667, 1.5667, 1.5667, 1.5667, 1.5667, 1.5667, 1.5667, 1.5667, 1.5667, 1.5667, 1.5667, 1.5667, 1.5667, 1.5667, 1.5667, 1.5667, 1.57, 1.57, 1.57, 1.57, 1.57, 1.57, 1.57, 1.57, 1.57, 1.57, 1.57, 1.57, 1.57, 1.57, 1.57, 1.57, 1.57, 1.57, 1.57, 1.57, 1.57, 1.57, 1.57, 1.57, 1.57, 1.57, 1.57, 1.57, 1.57}, {1.4368e-08, 1.7501e-07, 6.6745e-07, 1.6601e-06, 3.2952e-06, 5.6833e-06, 8.8995e-06, 1.2983e-05, 1.7938e-05, 2.3736e-05, 3.0322e-05, 3.7614e-05, 4.5514e-05, 5.3904e-05, 6.2659e-05, 7.1645e-05, 8.0723e-05, 8.9753e-05, 9.8597e-05, 0.00010712, 0.0001152, 0.00012271, 0.00012954, 0.00013558, 0.00014076, 0.000145, 0.00014823, 0.00015041, 0.00015151, 3.338e-08, 4.0657e-07, 1.5506e-06, 3.8566e-06, 7.6554e-06, 1.3203e-05, 2.0675e-05, 3.0161e-05, 4.1672e-05, 5.5143e-05, 7.0443e-05, 8.7384e-05, 0.00010574, 0.00012523, 0.00014557, 0.00016644, 0.00018753, 0.00020851, 0.00022906, 0.00024886, 0.00026763, 0.00028507, 0.00030093, 0.00031498, 0.00032702, 0.00033686, 0.00034437, 0.00034943, 0.00035198, 5.2261e-08, 6.3653e-07, 2.4276e-06, 6.0381e-06, 1.1985e-05, 2.0671e-05, 3.2369e-05, 4.7222e-05, 6.5244e-05, 8.6334e-05, 0.00011029, 0.00013681, 0.00016554, 0.00019606, 0.0002279, 0.00026059, 0.0002936, 0.00032645, 0.00035862, 0.00038963, 0.000419, 0.00044631, 0.00047115, 0.00049315, 0.00051199, 0.0005274, 0.00053915, 0.00054708, 0.00055108, 7.0896e-08, 8.6352e-07, 3.2933e-06, 8.1912e-06, 1.6259e-05, 2.8043e-05, 4.3912e-05, 6.4061e-05, 8.8509e-05, 0.00011712, 0.00014961, 0.0001856, 0.00022457, 0.00026597, 0.00030917, 0.00035351, 0.0003983, 0.00044286, 0.0004865, 0.00052856, 0.00056841, 0.00060546, 0.00063915, 0.000669, 0.00069456, 0.00071546, 0.00073141, 0.00074217, 0.00074759, 8.9201e-08, 1.0865e-06, 4.1436e-06, 1.0306e-05, 2.0457e-05, 3.5283e-05, 5.5249e-05, 8.06e-05, 0.00011136, 0.00014736, 0.00018824, 0.00023352, 0.00028255, 0.00033464, 0.000389, 0.00044478, 0.00050114, 0.0005572, 0.00061211, 0.00066503, 0.00071517, 0.00076178, 0.00080417, 0.00084172, 0.00087388, 0.00090018, 0.00092025, 0.00093378, 0.0009406, 1.0709e-07, 1.3044e-06, 4.9748e-06, 1.2373e-05, 2.4561e-05, 4.236e-05, 6.6332e-05, 9.6768e-05, 0.0001337, 0.00017692, 0.000226, 0.00028036, 0.00033923, 0.00040177, 0.00046703, 0.000534, 0.00060166, 0.00066897, 0.00073489, 0.00079843, 0.00085863, 0.00091459, 0.00096548, 0.0010106, 0.0010492, 0.0010808, 0.0011048, 0.0011211, 0.0011293, 1.245e-07, 1.5164e-06, 5.7834e-06, 1.4385e-05, 2.8553e-05, 4.9246e-05, 7.7114e-05, 0.0001125, 0.00015543, 0.00020567, 0.00026274, 0.00032593, 0.00039437, 0.00046708, 0.00054294, 0.0006208, 0.00069946, 0.0007777, 0.00085434, 0.00092821, 0.00099819, 0.0010633, 0.0011224, 0.0011748, 0.0012197, 0.0012564, 0.0012844, 0.0013033, 0.0013128, 1.4136e-07, 1.7217e-06, 6.5663e-06, 1.6332e-05, 3.2418e-05, 5.5912e-05, 8.7553e-05, 0.00012773, 0.00017647, 0.00023352, 0.00029831, 0.00037005, 0.00044776, 0.00053031, 0.00061644, 0.00070484, 0.00079415, 0.00088298, 0.00097, 0.0010539, 0.0011333, 0.0012072, 0.0012744, 0.0013339, 0.0013848, 0.0014265, 0.0014583, 0.0014798, 0.0014906, 1.576e-07, 1.9195e-06, 7.3207e-06, 1.8208e-05, 3.6143e-05, 6.2336e-05, 9.7612e-05, 0.0001424, 0.00019675, 0.00026035, 0.00033258, 0.00041256, 0.00049921, 0.00059123, 0.00068726, 0.00078582, 0.00088539, 0.00098443, 0.0010814, 0.0011749, 0.0012635, 0.0013459, 0.0014208, 0.0014871, 0.0015439, 0.0015904, 0.0016258, 0.0016498, 0.0016618, 1.7317e-07, 2.1092e-06, 8.0442e-06, 2.0008e-05, 3.9715e-05, 6.8496e-05, 0.00010726, 0.00015647, 0.00021619, 0.00028607, 0.00036544, 0.00045333, 0.00054854, 0.00064966, 0.00075518, 0.00086347, 0.00097288, 0.0010817, 0.0011883, 0.001291, 0.0013884, 0.0014789, 0.0015612, 0.0016341, 0.0016965, 0.0017476, 0.0017865, 0.0018128, 0.001826, 1.8803e-07, 2.2902e-06, 8.7344e-06, 2.1724e-05, 4.3122e-05, 7.4374e-05, 0.00011646, 0.0001699, 0.00023474, 0.00031062, 0.0003968, 0.00049223, 0.0005956, 0.00070541, 0.00081998, 0.00093757, 0.0010564, 0.0011745, 0.0012903, 0.0014018, 0.0015075, 0.0016058, 0.0016951, 0.0017743, 0.0018421, 0.0018975, 0.0019398, 0.0019683, 0.0019827, 2.0214e-07, 2.462e-06, 9.3897e-06, 2.3354e-05, 4.6358e-05, 7.9953e-05, 0.0001252, 0.00018264, 0.00025235, 0.00033392, 0.00042657, 0.00052916, 0.00064029, 0.00075833, 0.00088149, 0.0010079, 0.0011356, 0.0012626, 0.0013871, 0.001507, 0.0016206, 0.0017262, 0.0018223, 0.0019074, 0.0019803, 0.0020399, 0.0020853, 0.002116, 0.0021315, 2.1546e-07, 2.6242e-06, 1.0008e-05, 2.4893e-05, 4.9413e-05, 8.5222e-05, 0.00013345, 0.00019468, 0.00026898, 0.00035593, 0.00045468, 0.00056403, 0.00068248, 0.0008083, 0.00093958, 0.0010743, 0.0012104, 0.0013459, 0.0014785, 0.0016063, 0.0017274, 0.00184, 0.0019424, 0.0020331, 0.0021108, 0.0021743, 0.0022228, 0.0022555, 0.0022719, 2.2796e-07, 2.7766e-06, 1.059e-05, 2.6338e-05, 5.2281e-05, 9.017e-05, 0.0001412, 0.00020598, 0.0002846, 0.00037659, 0.00048108, 0.00059678, 0.00072211, 0.00085523, 0.00099413, 0.0011367, 0.0012807, 0.001424, 0.0015643, 0.0016996, 0.0018277, 0.0019468, 0.0020552, 0.0021511, 0.0022333, 0.0023005, 0.0023518, 0.0023864, 0.0024038, 2.3964e-07, 2.9188e-06, 1.1132e-05, 2.7687e-05, 5.4959e-05, 9.4788e-05, 0.00014843, 0.00021653, 0.00029917, 0.00039588, 0.00050572, 0.00062734, 0.00075909, 0.00089903, 0.0010451, 0.0011949, 0.0013463, 0.0014969, 0.0016444, 0.0017866, 0.0019213, 0.0020465, 0.0021604, 0.0022613, 0.0023477, 0.0024184, 0.0024723, 0.0025086, 0.0025269, 2.5047e-07, 3.0507e-06, 1.1635e-05, 2.8938e-05, 5.7442e-05, 9.9071e-05, 0.00015514, 0.00022632, 0.00031269, 0.00041377, 0.00052857, 0.00065569, 0.00079339, 0.00093965, 0.0010923, 0.0012489, 0.0014071, 0.0015646, 0.0017187, 0.0018673, 0.0020081, 0.002139, 0.002258, 0.0023635, 0.0024538, 0.0025276, 0.002584, 0.002622, 0.0026411, 2.6044e-07, 3.1721e-06, 1.2098e-05, 3.009e-05, 5.9728e-05, 0.00010301, 0.00016131, 0.00023532, 0.00032514, 0.00043024, 0.0005496, 0.00068179, 0.00082496, 0.00097705, 0.0011357, 0.0012986, 0.0014631, 0.0016268, 0.0017871, 0.0019417, 0.0020881, 0.0022241, 0.0023479, 0.0024575, 0.0025514, 0.0026282, 0.0026868, 0.0027263, 0.0027462, 2.6954e-07, 3.283e-06, 1.2521e-05, 3.1142e-05, 6.1816e-05, 0.00010661, 0.00016695, 0.00024355, 0.0003365, 0.00044527, 0.00056881, 0.00070561, 0.00085379, 0.0010112, 0.0011754, 0.001344, 0.0015143, 0.0016837, 0.0018496, 0.0020095, 0.002161, 0.0023019, 0.00243, 0.0025434, 0.0026406, 0.0027201, 0.0027807, 0.0028216, 0.0028422, 2.7777e-07, 3.3832e-06, 1.2903e-05, 3.2093e-05, 6.3703e-05, 0.00010987, 0.00017204, 0.00025099, 0.00034677, 0.00045887, 0.00058618, 0.00072716, 0.00087987, 0.0010421, 0.0012113, 0.001385, 0.0015605, 0.0017351, 0.0019061, 0.0020709, 0.002227, 0.0023722, 0.0025042, 0.0026211, 0.0027212, 0.0028031, 0.0028656, 0.0029078, 0.002929, 2.8513e-07, 3.4728e-06, 1.3245e-05, 3.2943e-05, 6.5391e-05, 0.00011278, 0.0001766, 0.00025763, 0.00035596, 0.00047102, 0.00060171, 0.00074642, 0.00090317, 0.0010697, 0.0012434, 0.0014217, 0.0016019, 0.0017811, 0.0019566, 0.0021257, 0.002286, 0.002435, 0.0025705, 0.0026905, 0.0027933, 0.0028774, 0.0029415, 0.0029848, 0.0030066, 2.9161e-07, 3.5518e-06, 1.3546e-05, 3.3692e-05, 6.6878e-05, 0.00011534, 0.00018062, 0.00026349, 0.00036405, 0.00048173, 0.00061539, 0.00076339, 0.00092371, 0.001094, 0.0012717, 0.0014541, 0.0016383, 0.0018216, 0.0020011, 0.0021741, 0.002338, 0.0024904, 0.002629, 0.0027517, 0.0028568, 0.0029428, 0.0030084, 0.0030527, 0.003075, 2.9722e-07, 3.6202e-06, 1.3807e-05, 3.434e-05, 6.8165e-05, 0.00011756, 0.00018409, 0.00026856, 0.00037106, 0.00049101, 0.00062724, 0.00077809, 0.00094149, 0.0011151, 0.0012962, 0.001482, 0.0016698, 0.0018566, 0.0020396, 0.0022159, 0.002383, 0.0025383, 0.0026796, 0.0028047, 0.0029118, 0.0029995, 0.0030663, 0.0031114, 0.0031341, 3.0197e-07, 3.6779e-06, 1.4027e-05, 3.4888e-05, 6.9253e-05, 0.00011944, 0.00018703, 0.00027285, 0.00037698, 0.00049884, 0.00063725, 0.00079051, 0.00095652, 0.0011329, 0.0013168, 0.0015057, 0.0016965, 0.0018862, 0.0020721, 0.0022513, 0.002421, 0.0025788, 0.0027223, 0.0028494, 0.0029583, 0.0030473, 0.0031152, 0.0031611, 0.0031842, 3.0584e-07, 3.7252e-06, 1.4207e-05, 3.5336e-05, 7.0142e-05, 0.00012097, 0.00018943, 0.00027635, 0.00038182, 0.00050525, 0.00064543, 0.00080065, 0.00096879, 0.0011474, 0.0013338, 0.001525, 0.0017182, 0.0019105, 0.0020987, 0.0022802, 0.0024521, 0.0026119, 0.0027573, 0.002886, 0.0029963, 0.0030864, 0.0031552, 0.0032017, 0.003225, 3.0885e-07, 3.7618e-06, 1.4347e-05, 3.5684e-05, 7.0832e-05, 0.00012217, 0.0001913, 0.00027907, 0.00038558, 0.00051022, 0.00065178, 0.00080854, 0.00097833, 0.0011587, 0.0013469, 0.00154, 0.0017352, 0.0019293, 0.0021194, 0.0023026, 0.0024762, 0.0026376, 0.0027844, 0.0029144, 0.0030258, 0.0031168, 0.0031863, 0.0032332, 0.0032568, 3.11e-07, 3.788e-06, 1.4447e-05, 3.5932e-05, 7.1325e-05, 0.00012302, 0.00019263, 0.00028102, 0.00038826, 0.00051377, 0.00065632, 0.00081416, 0.00098514, 0.0011668, 0.0013563, 0.0015508, 0.0017472, 0.0019427, 0.0021341, 0.0023187, 0.0024935, 0.002656, 0.0028038, 0.0029347, 0.0030468, 0.0031385, 0.0032085, 0.0032557, 0.0032795, 3.1229e-07, 3.8037e-06, 1.4507e-05, 3.6081e-05, 7.1621e-05, 0.00012353, 0.00019343, 0.00028218, 0.00038987, 0.0005159, 0.00065904, 0.00081754, 0.00098922, 0.0011716, 0.0013619, 0.0015572, 0.0017545, 0.0019507, 0.002143, 0.0023283, 0.0025038, 0.002667, 0.0028154, 0.0029469, 0.0030595, 0.0031515, 0.0032218, 0.0032692, 0.003293, 3.1272e-07, 3.8089e-06, 1.4527e-05, 3.6131e-05, 7.1719e-05, 0.0001237, 0.00019369, 0.00028257, 0.00039041, 0.00051661, 0.00065994, 0.00081866, 0.00099058, 0.0011732, 0.0013638, 0.0015593, 0.0017569, 0.0019534, 0.0021459, 0.0023315, 0.0025073, 0.0026707, 0.0028193, 0.0029509, 0.0030637, 0.0031559, 0.0032262, 0.0032737, 0.0032976, 3.1229e-07, 3.8037e-06, 1.4507e-05, 3.6081e-05, 7.1621e-05, 0.00012353, 0.00019343, 0.00028218, 0.00038987, 0.0005159, 0.00065904, 0.00081754, 0.00098922, 0.0011716, 0.0013619, 0.0015572, 0.0017545, 0.0019507, 0.002143, 0.0023283, 0.0025038, 0.002667, 0.0028154, 0.0029469, 0.0030595, 0.0031515, 0.0032218, 0.0032692, 0.003293, 3.11e-07, 3.788e-06, 1.4447e-05, 3.5932e-05, 7.1325e-05, 0.00012302, 0.00019263, 0.00028102, 0.00038826, 0.00051377, 0.00065632, 0.00081416, 0.00098514, 0.0011668, 0.0013563, 0.0015508, 0.0017472, 0.0019427, 0.0021341, 0.0023187, 0.0024935, 0.002656, 0.0028038, 0.0029347, 0.0030468, 0.0031385, 0.0032085, 0.0032557, 0.0032795, 3.0885e-07, 3.7618e-06, 1.4347e-05, 3.5684e-05, 7.0832e-05, 0.00012217, 0.0001913, 0.00027907, 0.00038558, 0.00051022, 0.00065178, 0.00080854, 0.00097833, 0.0011587, 0.0013469, 0.00154, 0.0017352, 0.0019293, 0.0021194, 0.0023026, 0.0024762, 0.0026376, 0.0027844, 0.0029144, 0.0030258, 0.0031168, 0.0031863, 0.0032332, 0.0032568, 3.0584e-07, 3.7252e-06, 1.4207e-05, 3.5336e-05, 7.0142e-05, 0.00012097, 0.00018943, 0.00027635, 0.00038182, 0.00050525, 0.00064543, 0.00080065, 0.00096879, 0.0011474, 0.0013338, 0.001525, 0.0017182, 0.0019105, 0.0020987, 0.0022802, 0.0024521, 0.0026119, 0.0027573, 0.002886, 0.0029963, 0.0030864, 0.0031552, 0.0032017, 0.003225, 3.0197e-07, 3.6779e-06, 1.4027e-05, 3.4888e-05, 6.9253e-05, 0.00011944, 0.00018703, 0.00027285, 0.00037698, 0.00049884, 0.00063725, 0.00079051, 0.00095652, 0.0011329, 0.0013168, 0.0015057, 0.0016965, 0.0018862, 0.0020721, 0.0022513, 0.002421, 0.0025788, 0.0027223, 0.0028494, 0.0029583, 0.0030473, 0.0031152, 0.0031611, 0.0031842, 2.9722e-07, 3.6202e-06, 1.3807e-05, 3.434e-05, 6.8165e-05, 0.00011756, 0.00018409, 0.00026856, 0.00037106, 0.00049101, 0.00062724, 0.00077809, 0.00094149, 0.0011151, 0.0012962, 0.001482, 0.0016698, 0.0018566, 0.0020396, 0.0022159, 0.002383, 0.0025383, 0.0026796, 0.0028047, 0.0029118, 0.0029995, 0.0030663, 0.0031114, 0.0031341, 2.9161e-07, 3.5518e-06, 1.3546e-05, 3.3692e-05, 6.6878e-05, 0.00011534, 0.00018062, 0.00026349, 0.00036405, 0.00048173, 0.00061539, 0.00076339, 0.00092371, 0.001094, 0.0012717, 0.0014541, 0.0016383, 0.0018216, 0.0020011, 0.0021741, 0.002338, 0.0024904, 0.002629, 0.0027517, 0.0028568, 0.0029428, 0.0030084, 0.0030527, 0.003075, 2.8513e-07, 3.4728e-06, 1.3245e-05, 3.2943e-05, 6.5391e-05, 0.00011278, 0.0001766, 0.00025763, 0.00035596, 0.00047102, 0.00060171, 0.00074642, 0.00090317, 0.0010697, 0.0012434, 0.0014217, 0.0016019, 0.0017811, 0.0019566, 0.0021257, 0.002286, 0.002435, 0.0025705, 0.0026905, 0.0027933, 0.0028774, 0.0029415, 0.0029848, 0.0030066, 2.7777e-07, 3.3832e-06, 1.2903e-05, 3.2093e-05, 6.3703e-05, 0.00010987, 0.00017204, 0.00025099, 0.00034677, 0.00045887, 0.00058618, 0.00072716, 0.00087987, 0.0010421, 0.0012113, 0.001385, 0.0015605, 0.0017351, 0.0019061, 0.0020709, 0.002227, 0.0023722, 0.0025042, 0.0026211, 0.0027212, 0.0028031, 0.0028656, 0.0029078, 0.002929, 2.6954e-07, 3.283e-06, 1.2521e-05, 3.1142e-05, 6.1816e-05, 0.00010661, 0.00016695, 0.00024355, 0.0003365, 0.00044527, 0.00056881, 0.00070561, 0.00085379, 0.0010112, 0.0011754, 0.001344, 0.0015143, 0.0016837, 0.0018496, 0.0020095, 0.002161, 0.0023019, 0.00243, 0.0025434, 0.0026406, 0.0027201, 0.0027807, 0.0028216, 0.0028422, 2.6044e-07, 3.1721e-06, 1.2098e-05, 3.009e-05, 5.9728e-05, 0.00010301, 0.00016131, 0.00023532, 0.00032514, 0.00043024, 0.0005496, 0.00068179, 0.00082496, 0.00097705, 0.0011357, 0.0012986, 0.0014631, 0.0016268, 0.0017871, 0.0019417, 0.0020881, 0.0022241, 0.0023479, 0.0024575, 0.0025514, 0.0026282, 0.0026868, 0.0027263, 0.0027462, 2.5047e-07, 3.0507e-06, 1.1635e-05, 2.8938e-05, 5.7442e-05, 9.9071e-05, 0.00015514, 0.00022632, 0.00031269, 0.00041377, 0.00052857, 0.00065569, 0.00079339, 0.00093965, 0.0010923, 0.0012489, 0.0014071, 0.0015646, 0.0017187, 0.0018673, 0.0020081, 0.002139, 0.002258, 0.0023635, 0.0024538, 0.0025276, 0.002584, 0.002622, 0.0026411, 2.3964e-07, 2.9188e-06, 1.1132e-05, 2.7687e-05, 5.4959e-05, 9.4788e-05, 0.00014843, 0.00021653, 0.00029917, 0.00039588, 0.00050572, 0.00062734, 0.00075909, 0.00089903, 0.0010451, 0.0011949, 0.0013463, 0.0014969, 0.0016444, 0.0017866, 0.0019213, 0.0020465, 0.0021604, 0.0022613, 0.0023477, 0.0024184, 0.0024723, 0.0025086, 0.0025269, 2.2796e-07, 2.7766e-06, 1.059e-05, 2.6338e-05, 5.2281e-05, 9.017e-05, 0.0001412, 0.00020598, 0.0002846, 0.00037659, 0.00048108, 0.00059678, 0.00072211, 0.00085523, 0.00099413, 0.0011367, 0.0012807, 0.001424, 0.0015643, 0.0016996, 0.0018277, 0.0019468, 0.0020552, 0.0021511, 0.0022333, 0.0023005, 0.0023518, 0.0023864, 0.0024038, 2.1546e-07, 2.6242e-06, 1.0008e-05, 2.4893e-05, 4.9413e-05, 8.5222e-05, 0.00013345, 0.00019468, 0.00026898, 0.00035593, 0.00045468, 0.00056403, 0.00068248, 0.0008083, 0.00093958, 0.0010743, 0.0012104, 0.0013459, 0.0014785, 0.0016063, 0.0017274, 0.00184, 0.0019424, 0.0020331, 0.0021108, 0.0021743, 0.0022228, 0.0022555, 0.0022719, 2.0214e-07, 2.462e-06, 9.3897e-06, 2.3354e-05, 4.6358e-05, 7.9953e-05, 0.0001252, 0.00018264, 0.00025235, 0.00033392, 0.00042657, 0.00052916, 0.00064029, 0.00075833, 0.00088149, 0.0010079, 0.0011356, 0.0012626, 0.0013871, 0.001507, 0.0016206, 0.0017262, 0.0018223, 0.0019074, 0.0019803, 0.0020399, 0.0020853, 0.002116, 0.0021315, 1.8803e-07, 2.2902e-06, 8.7344e-06, 2.1724e-05, 4.3122e-05, 7.4374e-05, 0.00011646, 0.0001699, 0.00023474, 0.00031062, 0.0003968, 0.00049223, 0.0005956, 0.00070541, 0.00081998, 0.00093757, 0.0010564, 0.0011745, 0.0012903, 0.0014018, 0.0015075, 0.0016058, 0.0016951, 0.0017743, 0.0018421, 0.0018975, 0.0019398, 0.0019683, 0.0019827, 1.7317e-07, 2.1092e-06, 8.0442e-06, 2.0008e-05, 3.9715e-05, 6.8496e-05, 0.00010726, 0.00015647, 0.00021619, 0.00028607, 0.00036544, 0.00045333, 0.00054854, 0.00064966, 0.00075518, 0.00086347, 0.00097288, 0.0010817, 0.0011883, 0.001291, 0.0013884, 0.0014789, 0.0015612, 0.0016341, 0.0016965, 0.0017476, 0.0017865, 0.0018128, 0.001826, 1.576e-07, 1.9195e-06, 7.3207e-06, 1.8208e-05, 3.6143e-05, 6.2336e-05, 9.7612e-05, 0.0001424, 0.00019675, 0.00026035, 0.00033258, 0.00041256, 0.00049921, 0.00059123, 0.00068726, 0.00078582, 0.00088539, 0.00098443, 0.0010814, 0.0011749, 0.0012635, 0.0013459, 0.0014208, 0.0014871, 0.0015439, 0.0015904, 0.0016258, 0.0016498, 0.0016618, 1.4136e-07, 1.7217e-06, 6.5663e-06, 1.6332e-05, 3.2418e-05, 5.5912e-05, 8.7553e-05, 0.00012773, 0.00017647, 0.00023352, 0.00029831, 0.00037005, 0.00044776, 0.00053031, 0.00061644, 0.00070484, 0.00079415, 0.00088298, 0.00097, 0.0010539, 0.0011333, 0.0012072, 0.0012744, 0.0013339, 0.0013848, 0.0014265, 0.0014583, 0.0014798, 0.0014906, 1.245e-07, 1.5164e-06, 5.7834e-06, 1.4385e-05, 2.8553e-05, 4.9246e-05, 7.7114e-05, 0.0001125, 0.00015543, 0.00020567, 0.00026274, 0.00032593, 0.00039437, 0.00046708, 0.00054294, 0.0006208, 0.00069946, 0.0007777, 0.00085434, 0.00092821, 0.00099819, 0.0010633, 0.0011224, 0.0011748, 0.0012197, 0.0012564, 0.0012844, 0.0013033, 0.0013128, 1.0709e-07, 1.3044e-06, 4.9748e-06, 1.2373e-05, 2.4561e-05, 4.236e-05, 6.6332e-05, 9.6768e-05, 0.0001337, 0.00017692, 0.000226, 0.00028036, 0.00033923, 0.00040177, 0.00046703, 0.000534, 0.00060166, 0.00066897, 0.00073489, 0.00079843, 0.00085863, 0.00091459, 0.00096548, 0.0010106, 0.0010492, 0.0010808, 0.0011048, 0.0011211, 0.0011293, 8.9201e-08, 1.0865e-06, 4.1436e-06, 1.0306e-05, 2.0457e-05, 3.5283e-05, 5.5249e-05, 8.06e-05, 0.00011136, 0.00014736, 0.00018824, 0.00023352, 0.00028255, 0.00033464, 0.000389, 0.00044478, 0.00050114, 0.0005572, 0.00061211, 0.00066503, 0.00071517, 0.00076178, 0.00080417, 0.00084172, 0.00087388, 0.00090018, 0.00092025, 0.00093378, 0.0009406, 7.0896e-08, 8.6352e-07, 3.2933e-06, 8.1912e-06, 1.6259e-05, 2.8043e-05, 4.3912e-05, 6.4061e-05, 8.8509e-05, 0.00011712, 0.00014961, 0.0001856, 0.00022457, 0.00026597, 0.00030917, 0.00035351, 0.0003983, 0.00044286, 0.0004865, 0.00052856, 0.00056841, 0.00060546, 0.00063915, 0.000669, 0.00069456, 0.00071546, 0.00073141, 0.00074217, 0.00074759, 5.2261e-08, 6.3653e-07, 2.4276e-06, 6.0381e-06, 1.1985e-05, 2.0671e-05, 3.2369e-05, 4.7222e-05, 6.5244e-05, 8.6334e-05, 0.00011029, 0.00013681, 0.00016554, 0.00019606, 0.0002279, 0.00026059, 0.0002936, 0.00032645, 0.00035862, 0.00038963, 0.000419, 0.00044631, 0.00047115, 0.00049315, 0.00051199, 0.0005274, 0.00053915, 0.00054708, 0.00055108, 3.338e-08, 4.0657e-07, 1.5506e-06, 3.8566e-06, 7.6554e-06, 1.3203e-05, 2.0675e-05, 3.0161e-05, 4.1672e-05, 5.5143e-05, 7.0443e-05, 8.7384e-05, 0.00010574, 0.00012523, 0.00014557, 0.00016644, 0.00018753, 0.00020851, 0.00022906, 0.00024886, 0.00026763, 0.00028507, 0.00030093, 0.00031498, 0.00032702, 0.00033686, 0.00034437, 0.00034943, 0.00035198, 1.4368e-08, 1.7501e-07, 6.6745e-07, 1.6601e-06, 3.2952e-06, 5.6833e-06, 8.8995e-06, 1.2983e-05, 1.7938e-05, 2.3736e-05, 3.0322e-05, 3.7614e-05, 4.5514e-05, 5.3904e-05, 6.2659e-05, 7.1645e-05, 8.0723e-05, 8.9753e-05, 9.8597e-05, 0.00010712, 0.0001152, 0.00012271, 0.00012954, 0.00013558, 0.00014076, 0.000145, 0.00014823, 0.00015041, 0.00015151}}, {{-1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056}, {1.5716, 1.5716, 1.5716, 1.5716, 1.5716, 1.5716, 1.5716, 1.5716, 1.5716, 1.5716, 1.5716, 1.5716, 1.5716, 1.5716, 1.5716, 1.5716, 1.5716, 1.5716, 1.5716, 1.5716, 1.5716, 1.5716, 1.5716, 1.5716, 1.5716, 1.5716, 1.5716, 1.5716, 1.5716, 1.5749, 1.5749, 1.5749, 1.5749, 1.5749, 1.5749, 1.5749, 1.5749, 1.5749, 1.5749, 1.5749, 1.5749, 1.5749, 1.5749, 1.5749, 1.5749, 1.5749, 1.5749, 1.5749, 1.5749, 1.5749, 1.5749, 1.5749, 1.5749, 1.5749, 1.5749, 1.5749, 1.5749, 1.5749, 1.5808, 1.5808, 1.5808, 1.5808, 1.5808, 1.5808, 1.5808, 1.5808, 1.5808, 1.5808, 1.5808, 1.5808, 1.5808, 1.5808, 1.5808, 1.5808, 1.5808, 1.5808, 1.5808, 1.5808, 1.5808, 1.5808, 1.5808, 1.5808, 1.5808, 1.5808, 1.5808, 1.5808, 1.5808, 1.5894, 1.5894, 1.5894, 1.5894, 1.5894, 1.5894, 1.5894, 1.5894, 1.5894, 1.5894, 1.5894, 1.5894, 1.5894, 1.5894, 1.5894, 1.5894, 1.5894, 1.5894, 1.5894, 1.5894, 1.5894, 1.5894, 1.5894, 1.5894, 1.5894, 1.5894, 1.5894, 1.5894, 1.5894, 1.6005, 1.6005, 1.6005, 1.6005, 1.6005, 1.6005, 1.6005, 1.6005, 1.6005, 1.6005, 1.6005, 1.6005, 1.6005, 1.6005, 1.6005, 1.6005, 1.6005, 1.6005, 1.6005, 1.6005, 1.6005, 1.6005, 1.6005, 1.6005, 1.6005, 1.6005, 1.6005, 1.6005, 1.6005, 1.6141, 1.6141, 1.6141, 1.6141, 1.6141, 1.6141, 1.6141, 1.6141, 1.6141, 1.6141, 1.6141, 1.6141, 1.6141, 1.6141, 1.6141, 1.6141, 1.6141, 1.6141, 1.6141, 1.6141, 1.6141, 1.6141, 1.6141, 1.6141, 1.6141, 1.6141, 1.6141, 1.6141, 1.6141, 1.6301, 1.6301, 1.6301, 1.6301, 1.6301, 1.6301, 1.6301, 1.6301, 1.6301, 1.6301, 1.6301, 1.6301, 1.6301, 1.6301, 1.6301, 1.6301, 1.6301, 1.6301, 1.6301, 1.6301, 1.6301, 1.6301, 1.6301, 1.6301, 1.6301, 1.6301, 1.6301, 1.6301, 1.6301, 1.6486, 1.6486, 1.6486, 1.6486, 1.6486, 1.6486, 1.6486, 1.6486, 1.6486, 1.6486, 1.6486, 1.6486, 1.6486, 1.6486, 1.6486, 1.6486, 1.6486, 1.6486, 1.6486, 1.6486, 1.6486, 1.6486, 1.6486, 1.6486, 1.6486, 1.6486, 1.6486, 1.6486, 1.6486, 1.6693, 1.6693, 1.6693, 1.6693, 1.6693, 1.6693, 1.6693, 1.6693, 1.6693, 1.6693, 1.6693, 1.6693, 1.6693, 1.6693, 1.6693, 1.6693, 1.6693, 1.6693, 1.6693, 1.6693, 1.6693, 1.6693, 1.6693, 1.6693, 1.6693, 1.6693, 1.6693, 1.6693, 1.6693, 1.6922, 1.6922, 1.6922, 1.6922, 1.6922, 1.6922, 1.6922, 1.6922, 1.6922, 1.6922, 1.6922, 1.6922, 1.6922, 1.6922, 1.6922, 1.6922, 1.6922, 1.6922, 1.6922, 1.6922, 1.6922, 1.6922, 1.6922, 1.6922, 1.6922, 1.6922, 1.6922, 1.6922, 1.6922, 1.7173, 1.7173, 1.7173, 1.7173, 1.7173, 1.7173, 1.7173, 1.7173, 1.7173, 1.7173, 1.7173, 1.7173, 1.7173, 1.7173, 1.7173, 1.7173, 1.7173, 1.7173, 1.7173, 1.7173, 1.7173, 1.7173, 1.7173, 1.7173, 1.7173, 1.7173, 1.7173, 1.7173, 1.7173, 1.7443, 1.7443, 1.7443, 1.7443, 1.7443, 1.7443, 1.7443, 1.7443, 1.7443, 1.7443, 1.7443, 1.7443, 1.7443, 1.7443, 1.7443, 1.7443, 1.7443, 1.7443, 1.7443, 1.7443, 1.7443, 1.7443, 1.7443, 1.7443, 1.7443, 1.7443, 1.7443, 1.7443, 1.7443, 1.7733, 1.7733, 1.7733, 1.7733, 1.7733, 1.7733, 1.7733, 1.7733, 1.7733, 1.7733, 1.7733, 1.7733, 1.7733, 1.7733, 1.7733, 1.7733, 1.7733, 1.7733, 1.7733, 1.7733, 1.7733, 1.7733, 1.7733, 1.7733, 1.7733, 1.7733, 1.7733, 1.7733, 1.7733, 1.804, 1.804, 1.804, 1.804, 1.804, 1.804, 1.804, 1.804, 1.804, 1.804, 1.804, 1.804, 1.804, 1.804, 1.804, 1.804, 1.804, 1.804, 1.804, 1.804, 1.804, 1.804, 1.804, 1.804, 1.804, 1.804, 1.804, 1.804, 1.804, 1.8364, 1.8364, 1.8364, 1.8364, 1.8364, 1.8364, 1.8364, 1.8364, 1.8364, 1.8364, 1.8364, 1.8364, 1.8364, 1.8364, 1.8364, 1.8364, 1.8364, 1.8364, 1.8364, 1.8364, 1.8364, 1.8364, 1.8364, 1.8364, 1.8364, 1.8364, 1.8364, 1.8364, 1.8364, 1.8704, 1.8704, 1.8704, 1.8704, 1.8704, 1.8704, 1.8704, 1.8704, 1.8704, 1.8704, 1.8704, 1.8704, 1.8704, 1.8704, 1.8704, 1.8704, 1.8704, 1.8704, 1.8704, 1.8704, 1.8704, 1.8704, 1.8704, 1.8704, 1.8704, 1.8704, 1.8704, 1.8704, 1.8704, 1.9059, 1.9059, 1.9059, 1.9059, 1.9059, 1.9059, 1.9059, 1.9059, 1.9059, 1.9059, 1.9059, 1.9059, 1.9059, 1.9059, 1.9059, 1.9059, 1.9059, 1.9059, 1.9059, 1.9059, 1.9059, 1.9059, 1.9059, 1.9059, 1.9059, 1.9059, 1.9059, 1.9059, 1.9059, 1.9426, 1.9426, 1.9426, 1.9426, 1.9426, 1.9426, 1.9426, 1.9426, 1.9426, 1.9426, 1.9426, 1.9426, 1.9426, 1.9426, 1.9426, 1.9426, 1.9426, 1.9426, 1.9426, 1.9426, 1.9426, 1.9426, 1.9426, 1.9426, 1.9426, 1.9426, 1.9426, 1.9426, 1.9426, 1.9805, 1.9805, 1.9805, 1.9805, 1.9805, 1.9805, 1.9805, 1.9805, 1.9805, 1.9805, 1.9805, 1.9805, 1.9805, 1.9805, 1.9805, 1.9805, 1.9805, 1.9805, 1.9805, 1.9805, 1.9805, 1.9805, 1.9805, 1.9805, 1.9805, 1.9805, 1.9805, 1.9805, 1.9805, 2.0196, 2.0196, 2.0196, 2.0196, 2.0196, 2.0196, 2.0196, 2.0196, 2.0196, 2.0196, 2.0196, 2.0196, 2.0196, 2.0196, 2.0196, 2.0196, 2.0196, 2.0196, 2.0196, 2.0196, 2.0196, 2.0196, 2.0196, 2.0196, 2.0196, 2.0196, 2.0196, 2.0196, 2.0196, 2.0596, 2.0596, 2.0596, 2.0596, 2.0596, 2.0596, 2.0596, 2.0596, 2.0596, 2.0596, 2.0596, 2.0596, 2.0596, 2.0596, 2.0596, 2.0596, 2.0596, 2.0596, 2.0596, 2.0596, 2.0596, 2.0596, 2.0596, 2.0596, 2.0596, 2.0596, 2.0596, 2.0596, 2.0596, 2.1004, 2.1004, 2.1004, 2.1004, 2.1004, 2.1004, 2.1004, 2.1004, 2.1004, 2.1004, 2.1004, 2.1004, 2.1004, 2.1004, 2.1004, 2.1004, 2.1004, 2.1004, 2.1004, 2.1004, 2.1004, 2.1004, 2.1004, 2.1004, 2.1004, 2.1004, 2.1004, 2.1004, 2.1004, 2.1419, 2.1419, 2.1419, 2.1419, 2.1419, 2.1419, 2.1419, 2.1419, 2.1419, 2.1419, 2.1419, 2.1419, 2.1419, 2.1419, 2.1419, 2.1419, 2.1419, 2.1419, 2.1419, 2.1419, 2.1419, 2.1419, 2.1419, 2.1419, 2.1419, 2.1419, 2.1419, 2.1419, 2.1419, 2.1841, 2.1841, 2.1841, 2.1841, 2.1841, 2.1841, 2.1841, 2.1841, 2.1841, 2.1841, 2.1841, 2.1841, 2.1841, 2.1841, 2.1841, 2.1841, 2.1841, 2.1841, 2.1841, 2.1841, 2.1841, 2.1841, 2.1841, 2.1841, 2.1841, 2.1841, 2.1841, 2.1841, 2.1841, 2.2267, 2.2267, 2.2267, 2.2267, 2.2267, 2.2267, 2.2267, 2.2267, 2.2267, 2.2267, 2.2267, 2.2267, 2.2267, 2.2267, 2.2267, 2.2267, 2.2267, 2.2267, 2.2267, 2.2267, 2.2267, 2.2267, 2.2267, 2.2267, 2.2267, 2.2267, 2.2267, 2.2267, 2.2267, 2.2696, 2.2696, 2.2696, 2.2696, 2.2696, 2.2696, 2.2696, 2.2696, 2.2696, 2.2696, 2.2696, 2.2696, 2.2696, 2.2696, 2.2696, 2.2696, 2.2696, 2.2696, 2.2696, 2.2696, 2.2696, 2.2696, 2.2696, 2.2696, 2.2696, 2.2696, 2.2696, 2.2696, 2.2696, 2.3129, 2.3129, 2.3129, 2.3129, 2.3129, 2.3129, 2.3129, 2.3129, 2.3129, 2.3129, 2.3129, 2.3129, 2.3129, 2.3129, 2.3129, 2.3129, 2.3129, 2.3129, 2.3129, 2.3129, 2.3129, 2.3129, 2.3129, 2.3129, 2.3129, 2.3129, 2.3129, 2.3129, 2.3129, 2.3562, 2.3562, 2.3562, 2.3562, 2.3562, 2.3562, 2.3562, 2.3562, 2.3562, 2.3562, 2.3562, 2.3562, 2.3562, 2.3562, 2.3562, 2.3562, 2.3562, 2.3562, 2.3562, 2.3562, 2.3562, 2.3562, 2.3562, 2.3562, 2.3562, 2.3562, 2.3562, 2.3562, 2.3562, 2.3995, 2.3995, 2.3995, 2.3995, 2.3995, 2.3995, 2.3995, 2.3995, 2.3995, 2.3995, 2.3995, 2.3995, 2.3995, 2.3995, 2.3995, 2.3995, 2.3995, 2.3995, 2.3995, 2.3995, 2.3995, 2.3995, 2.3995, 2.3995, 2.3995, 2.3995, 2.3995, 2.3995, 2.3995, 2.4427, 2.4427, 2.4427, 2.4427, 2.4427, 2.4427, 2.4427, 2.4427, 2.4427, 2.4427, 2.4427, 2.4427, 2.4427, 2.4427, 2.4427, 2.4427, 2.4427, 2.4427, 2.4427, 2.4427, 2.4427, 2.4427, 2.4427, 2.4427, 2.4427, 2.4427, 2.4427, 2.4427, 2.4427, 2.4857, 2.4857, 2.4857, 2.4857, 2.4857, 2.4857, 2.4857, 2.4857, 2.4857, 2.4857, 2.4857, 2.4857, 2.4857, 2.4857, 2.4857, 2.4857, 2.4857, 2.4857, 2.4857, 2.4857, 2.4857, 2.4857, 2.4857, 2.4857, 2.4857, 2.4857, 2.4857, 2.4857, 2.4857, 2.5283, 2.5283, 2.5283, 2.5283, 2.5283, 2.5283, 2.5283, 2.5283, 2.5283, 2.5283, 2.5283, 2.5283, 2.5283, 2.5283, 2.5283, 2.5283, 2.5283, 2.5283, 2.5283, 2.5283, 2.5283, 2.5283, 2.5283, 2.5283, 2.5283, 2.5283, 2.5283, 2.5283, 2.5283, 2.5705, 2.5705, 2.5705, 2.5705, 2.5705, 2.5705, 2.5705, 2.5705, 2.5705, 2.5705, 2.5705, 2.5705, 2.5705, 2.5705, 2.5705, 2.5705, 2.5705, 2.5705, 2.5705, 2.5705, 2.5705, 2.5705, 2.5705, 2.5705, 2.5705, 2.5705, 2.5705, 2.5705, 2.5705, 2.612, 2.612, 2.612, 2.612, 2.612, 2.612, 2.612, 2.612, 2.612, 2.612, 2.612, 2.612, 2.612, 2.612, 2.612, 2.612, 2.612, 2.612, 2.612, 2.612, 2.612, 2.612, 2.612, 2.612, 2.612, 2.612, 2.612, 2.612, 2.612, 2.6528, 2.6528, 2.6528, 2.6528, 2.6528, 2.6528, 2.6528, 2.6528, 2.6528, 2.6528, 2.6528, 2.6528, 2.6528, 2.6528, 2.6528, 2.6528, 2.6528, 2.6528, 2.6528, 2.6528, 2.6528, 2.6528, 2.6528, 2.6528, 2.6528, 2.6528, 2.6528, 2.6528, 2.6528, 2.6928, 2.6928, 2.6928, 2.6928, 2.6928, 2.6928, 2.6928, 2.6928, 2.6928, 2.6928, 2.6928, 2.6928, 2.6928, 2.6928, 2.6928, 2.6928, 2.6928, 2.6928, 2.6928, 2.6928, 2.6928, 2.6928, 2.6928, 2.6928, 2.6928, 2.6928, 2.6928, 2.6928, 2.6928, 2.7318, 2.7318, 2.7318, 2.7318, 2.7318, 2.7318, 2.7318, 2.7318, 2.7318, 2.7318, 2.7318, 2.7318, 2.7318, 2.7318, 2.7318, 2.7318, 2.7318, 2.7318, 2.7318, 2.7318, 2.7318, 2.7318, 2.7318, 2.7318, 2.7318, 2.7318, 2.7318, 2.7318, 2.7318, 2.7698, 2.7698, 2.7698, 2.7698, 2.7698, 2.7698, 2.7698, 2.7698, 2.7698, 2.7698, 2.7698, 2.7698, 2.7698, 2.7698, 2.7698, 2.7698, 2.7698, 2.7698, 2.7698, 2.7698, 2.7698, 2.7698, 2.7698, 2.7698, 2.7698, 2.7698, 2.7698, 2.7698, 2.7698, 2.8065, 2.8065, 2.8065, 2.8065, 2.8065, 2.8065, 2.8065, 2.8065, 2.8065, 2.8065, 2.8065, 2.8065, 2.8065, 2.8065, 2.8065, 2.8065, 2.8065, 2.8065, 2.8065, 2.8065, 2.8065, 2.8065, 2.8065, 2.8065, 2.8065, 2.8065, 2.8065, 2.8065, 2.8065, 2.842, 2.842, 2.842, 2.842, 2.842, 2.842, 2.842, 2.842, 2.842, 2.842, 2.842, 2.842, 2.842, 2.842, 2.842, 2.842, 2.842, 2.842, 2.842, 2.842, 2.842, 2.842, 2.842, 2.842, 2.842, 2.842, 2.842, 2.842, 2.842, 2.8759, 2.8759, 2.8759, 2.8759, 2.8759, 2.8759, 2.8759, 2.8759, 2.8759, 2.8759, 2.8759, 2.8759, 2.8759, 2.8759, 2.8759, 2.8759, 2.8759, 2.8759, 2.8759, 2.8759, 2.8759, 2.8759, 2.8759, 2.8759, 2.8759, 2.8759, 2.8759, 2.8759, 2.8759, 2.9084, 2.9084, 2.9084, 2.9084, 2.9084, 2.9084, 2.9084, 2.9084, 2.9084, 2.9084, 2.9084, 2.9084, 2.9084, 2.9084, 2.9084, 2.9084, 2.9084, 2.9084, 2.9084, 2.9084, 2.9084, 2.9084, 2.9084, 2.9084, 2.9084, 2.9084, 2.9084, 2.9084, 2.9084, 2.9391, 2.9391, 2.9391, 2.9391, 2.9391, 2.9391, 2.9391, 2.9391, 2.9391, 2.9391, 2.9391, 2.9391, 2.9391, 2.9391, 2.9391, 2.9391, 2.9391, 2.9391, 2.9391, 2.9391, 2.9391, 2.9391, 2.9391, 2.9391, 2.9391, 2.9391, 2.9391, 2.9391, 2.9391, 2.9681, 2.9681, 2.9681, 2.9681, 2.9681, 2.9681, 2.9681, 2.9681, 2.9681, 2.9681, 2.9681, 2.9681, 2.9681, 2.9681, 2.9681, 2.9681, 2.9681, 2.9681, 2.9681, 2.9681, 2.9681, 2.9681, 2.9681, 2.9681, 2.9681, 2.9681, 2.9681, 2.9681, 2.9681, 2.9951, 2.9951, 2.9951, 2.9951, 2.9951, 2.9951, 2.9951, 2.9951, 2.9951, 2.9951, 2.9951, 2.9951, 2.9951, 2.9951, 2.9951, 2.9951, 2.9951, 2.9951, 2.9951, 2.9951, 2.9951, 2.9951, 2.9951, 2.9951, 2.9951, 2.9951, 2.9951, 2.9951, 2.9951, 3.0202, 3.0202, 3.0202, 3.0202, 3.0202, 3.0202, 3.0202, 3.0202, 3.0202, 3.0202, 3.0202, 3.0202, 3.0202, 3.0202, 3.0202, 3.0202, 3.0202, 3.0202, 3.0202, 3.0202, 3.0202, 3.0202, 3.0202, 3.0202, 3.0202, 3.0202, 3.0202, 3.0202, 3.0202, 3.0431, 3.0431, 3.0431, 3.0431, 3.0431, 3.0431, 3.0431, 3.0431, 3.0431, 3.0431, 3.0431, 3.0431, 3.0431, 3.0431, 3.0431, 3.0431, 3.0431, 3.0431, 3.0431, 3.0431, 3.0431, 3.0431, 3.0431, 3.0431, 3.0431, 3.0431, 3.0431, 3.0431, 3.0431, 3.0638, 3.0638, 3.0638, 3.0638, 3.0638, 3.0638, 3.0638, 3.0638, 3.0638, 3.0638, 3.0638, 3.0638, 3.0638, 3.0638, 3.0638, 3.0638, 3.0638, 3.0638, 3.0638, 3.0638, 3.0638, 3.0638, 3.0638, 3.0638, 3.0638, 3.0638, 3.0638, 3.0638, 3.0638, 3.0823, 3.0823, 3.0823, 3.0823, 3.0823, 3.0823, 3.0823, 3.0823, 3.0823, 3.0823, 3.0823, 3.0823, 3.0823, 3.0823, 3.0823, 3.0823, 3.0823, 3.0823, 3.0823, 3.0823, 3.0823, 3.0823, 3.0823, 3.0823, 3.0823, 3.0823, 3.0823, 3.0823, 3.0823, 3.0983, 3.0983, 3.0983, 3.0983, 3.0983, 3.0983, 3.0983, 3.0983, 3.0983, 3.0983, 3.0983, 3.0983, 3.0983, 3.0983, 3.0983, 3.0983, 3.0983, 3.0983, 3.0983, 3.0983, 3.0983, 3.0983, 3.0983, 3.0983, 3.0983, 3.0983, 3.0983, 3.0983, 3.0983, 3.1119, 3.1119, 3.1119, 3.1119, 3.1119, 3.1119, 3.1119, 3.1119, 3.1119, 3.1119, 3.1119, 3.1119, 3.1119, 3.1119, 3.1119, 3.1119, 3.1119, 3.1119, 3.1119, 3.1119, 3.1119, 3.1119, 3.1119, 3.1119, 3.1119, 3.1119, 3.1119, 3.1119, 3.1119, 3.123, 3.123, 3.123, 3.123, 3.123, 3.123, 3.123, 3.123, 3.123, 3.123, 3.123, 3.123, 3.123, 3.123, 3.123, 3.123, 3.123, 3.123, 3.123, 3.123, 3.123, 3.123, 3.123, 3.123, 3.123, 3.123, 3.123, 3.123, 3.123, 3.1316, 3.1316, 3.1316, 3.1316, 3.1316, 3.1316, 3.1316, 3.1316, 3.1316, 3.1316, 3.1316, 3.1316, 3.1316, 3.1316, 3.1316, 3.1316, 3.1316, 3.1316, 3.1316, 3.1316, 3.1316, 3.1316, 3.1316, 3.1316, 3.1316, 3.1316, 3.1316, 3.1316, 3.1316, 3.1375, 3.1375, 3.1375, 3.1375, 3.1375, 3.1375, 3.1375, 3.1375, 3.1375, 3.1375, 3.1375, 3.1375, 3.1375, 3.1375, 3.1375, 3.1375, 3.1375, 3.1375, 3.1375, 3.1375, 3.1375, 3.1375, 3.1375, 3.1375, 3.1375, 3.1375, 3.1375, 3.1375, 3.1375, 3.1408, 3.1408, 3.1408, 3.1408, 3.1408, 3.1408, 3.1408, 3.1408, 3.1408, 3.1408, 3.1408, 3.1408, 3.1408, 3.1408, 3.1408, 3.1408, 3.1408, 3.1408, 3.1408, 3.1408, 3.1408, 3.1408, 3.1408, 3.1408, 3.1408, 3.1408, 3.1408, 3.1408, 3.1408}, {1.4368e-08, 1.7501e-07, 6.6745e-07, 1.6601e-06, 3.2952e-06, 5.6833e-06, 8.8995e-06, 1.2983e-05, 1.7938e-05, 2.3736e-05, 3.0322e-05, 3.7614e-05, 4.5514e-05, 5.3904e-05, 6.2659e-05, 7.1645e-05, 8.0723e-05, 8.9753e-05, 9.8597e-05, 0.00010712, 0.0001152, 0.00012271, 0.00012954, 0.00013558, 0.00014076, 0.000145, 0.00014823, 0.00015041, 0.00015151, 3.338e-08, 4.0657e-07, 1.5506e-06, 3.8566e-06, 7.6554e-06, 1.3203e-05, 2.0675e-05, 3.0161e-05, 4.1672e-05, 5.5143e-05, 7.0443e-05, 8.7384e-05, 0.00010574, 0.00012523, 0.00014557, 0.00016644, 0.00018753, 0.00020851, 0.00022906, 0.00024886, 0.00026763, 0.00028507, 0.00030093, 0.00031498, 0.00032702, 0.00033686, 0.00034437, 0.00034943, 0.00035198, 5.2261e-08, 6.3653e-07, 2.4276e-06, 6.0381e-06, 1.1985e-05, 2.0671e-05, 3.2369e-05, 4.7222e-05, 6.5244e-05, 8.6334e-05, 0.00011029, 0.00013681, 0.00016554, 0.00019606, 0.0002279, 0.00026059, 0.0002936, 0.00032645, 0.00035862, 0.00038963, 0.000419, 0.00044631, 0.00047115, 0.00049315, 0.00051199, 0.0005274, 0.00053915, 0.00054708, 0.00055108, 7.0896e-08, 8.6352e-07, 3.2933e-06, 8.1912e-06, 1.6259e-05, 2.8043e-05, 4.3912e-05, 6.4061e-05, 8.8509e-05, 0.00011712, 0.00014961, 0.0001856, 0.00022457, 0.00026597, 0.00030917, 0.00035351, 0.0003983, 0.00044286, 0.0004865, 0.00052856, 0.00056841, 0.00060546, 0.00063915, 0.000669, 0.00069456, 0.00071546, 0.00073141, 0.00074217, 0.00074759, 8.9201e-08, 1.0865e-06, 4.1436e-06, 1.0306e-05, 2.0457e-05, 3.5283e-05, 5.5249e-05, 8.06e-05, 0.00011136, 0.00014736, 0.00018824, 0.00023352, 0.00028255, 0.00033464, 0.000389, 0.00044478, 0.00050114, 0.0005572, 0.00061211, 0.00066503, 0.00071517, 0.00076178, 0.00080417, 0.00084172, 0.00087388, 0.00090018, 0.00092025, 0.00093378, 0.0009406, 1.0709e-07, 1.3044e-06, 4.9748e-06, 1.2373e-05, 2.4561e-05, 4.236e-05, 6.6332e-05, 9.6768e-05, 0.0001337, 0.00017692, 0.000226, 0.00028036, 0.00033923, 0.00040177, 0.00046703, 0.000534, 0.00060166, 0.00066897, 0.00073489, 0.00079843, 0.00085863, 0.00091459, 0.00096548, 0.0010106, 0.0010492, 0.0010808, 0.0011048, 0.0011211, 0.0011293, 1.245e-07, 1.5164e-06, 5.7834e-06, 1.4385e-05, 2.8553e-05, 4.9246e-05, 7.7114e-05, 0.0001125, 0.00015543, 0.00020567, 0.00026274, 0.00032593, 0.00039437, 0.00046708, 0.00054294, 0.0006208, 0.00069946, 0.0007777, 0.00085434, 0.00092821, 0.00099819, 0.0010633, 0.0011224, 0.0011748, 0.0012197, 0.0012564, 0.0012844, 0.0013033, 0.0013128, 1.4136e-07, 1.7217e-06, 6.5663e-06, 1.6332e-05, 3.2418e-05, 5.5912e-05, 8.7553e-05, 0.00012773, 0.00017647, 0.00023352, 0.00029831, 0.00037005, 0.00044776, 0.00053031, 0.00061644, 0.00070484, 0.00079415, 0.00088298, 0.00097, 0.0010539, 0.0011333, 0.0012072, 0.0012744, 0.0013339, 0.0013848, 0.0014265, 0.0014583, 0.0014798, 0.0014906, 1.576e-07, 1.9195e-06, 7.3207e-06, 1.8208e-05, 3.6143e-05, 6.2336e-05, 9.7612e-05, 0.0001424, 0.00019675, 0.00026035, 0.00033258, 0.00041256, 0.00049921, 0.00059123, 0.00068726, 0.00078582, 0.00088539, 0.00098443, 0.0010814, 0.0011749, 0.0012635, 0.0013459, 0.0014208, 0.0014871, 0.0015439, 0.0015904, 0.0016258, 0.0016498, 0.0016618, 1.7317e-07, 2.1092e-06, 8.0442e-06, 2.0008e-05, 3.9715e-05, 6.8496e-05, 0.00010726, 0.00015647, 0.00021619, 0.00028607, 0.00036544, 0.00045333, 0.00054854, 0.00064966, 0.00075518, 0.00086347, 0.00097288, 0.0010817, 0.0011883, 0.001291, 0.0013884, 0.0014789, 0.0015612, 0.0016341, 0.0016965, 0.0017476, 0.0017865, 0.0018128, 0.001826, 1.8803e-07, 2.2902e-06, 8.7344e-06, 2.1724e-05, 4.3122e-05, 7.4374e-05, 0.00011646, 0.0001699, 0.00023474, 0.00031062, 0.0003968, 0.00049223, 0.0005956, 0.00070541, 0.00081998, 0.00093757, 0.0010564, 0.0011745, 0.0012903, 0.0014018, 0.0015075, 0.0016058, 0.0016951, 0.0017743, 0.0018421, 0.0018975, 0.0019398, 0.0019683, 0.0019827, 2.0214e-07, 2.462e-06, 9.3897e-06, 2.3354e-05, 4.6358e-05, 7.9953e-05, 0.0001252, 0.00018264, 0.00025235, 0.00033392, 0.00042657, 0.00052916, 0.00064029, 0.00075833, 0.00088149, 0.0010079, 0.0011356, 0.0012626, 0.0013871, 0.001507, 0.0016206, 0.0017262, 0.0018223, 0.0019074, 0.0019803, 0.0020399, 0.0020853, 0.002116, 0.0021315, 2.1546e-07, 2.6242e-06, 1.0008e-05, 2.4893e-05, 4.9413e-05, 8.5222e-05, 0.00013345, 0.00019468, 0.00026898, 0.00035593, 0.00045468, 0.00056403, 0.00068248, 0.0008083, 0.00093958, 0.0010743, 0.0012104, 0.0013459, 0.0014785, 0.0016063, 0.0017274, 0.00184, 0.0019424, 0.0020331, 0.0021108, 0.0021743, 0.0022228, 0.0022555, 0.0022719, 2.2796e-07, 2.7766e-06, 1.059e-05, 2.6338e-05, 5.2281e-05, 9.017e-05, 0.0001412, 0.00020598, 0.0002846, 0.00037659, 0.00048108, 0.00059678, 0.00072211, 0.00085523, 0.00099413, 0.0011367, 0.0012807, 0.001424, 0.0015643, 0.0016996, 0.0018277, 0.0019468, 0.0020552, 0.0021511, 0.0022333, 0.0023005, 0.0023518, 0.0023864, 0.0024038, 2.3964e-07, 2.9188e-06, 1.1132e-05, 2.7687e-05, 5.4959e-05, 9.4788e-05, 0.00014843, 0.00021653, 0.00029917, 0.00039588, 0.00050572, 0.00062734, 0.00075909, 0.00089903, 0.0010451, 0.0011949, 0.0013463, 0.0014969, 0.0016444, 0.0017866, 0.0019213, 0.0020465, 0.0021604, 0.0022613, 0.0023477, 0.0024184, 0.0024723, 0.0025086, 0.0025269, 2.5047e-07, 3.0507e-06, 1.1635e-05, 2.8938e-05, 5.7442e-05, 9.9071e-05, 0.00015514, 0.00022632, 0.00031269, 0.00041377, 0.00052857, 0.00065569, 0.00079339, 0.00093965, 0.0010923, 0.0012489, 0.0014071, 0.0015646, 0.0017187, 0.0018673, 0.0020081, 0.002139, 0.002258, 0.0023635, 0.0024538, 0.0025276, 0.002584, 0.002622, 0.0026411, 2.6044e-07, 3.1721e-06, 1.2098e-05, 3.009e-05, 5.9728e-05, 0.00010301, 0.00016131, 0.00023532, 0.00032514, 0.00043024, 0.0005496, 0.00068179, 0.00082496, 0.00097705, 0.0011357, 0.0012986, 0.0014631, 0.0016268, 0.0017871, 0.0019417, 0.0020881, 0.0022241, 0.0023479, 0.0024575, 0.0025514, 0.0026282, 0.0026868, 0.0027263, 0.0027462, 2.6954e-07, 3.283e-06, 1.2521e-05, 3.1142e-05, 6.1816e-05, 0.00010661, 0.00016695, 0.00024355, 0.0003365, 0.00044527, 0.00056881, 0.00070561, 0.00085379, 0.0010112, 0.0011754, 0.001344, 0.0015143, 0.0016837, 0.0018496, 0.0020095, 0.002161, 0.0023019, 0.00243, 0.0025434, 0.0026406, 0.0027201, 0.0027807, 0.0028216, 0.0028422, 2.7777e-07, 3.3832e-06, 1.2903e-05, 3.2093e-05, 6.3703e-05, 0.00010987, 0.00017204, 0.00025099, 0.00034677, 0.00045887, 0.00058618, 0.00072716, 0.00087987, 0.0010421, 0.0012113, 0.001385, 0.0015605, 0.0017351, 0.0019061, 0.0020709, 0.002227, 0.0023722, 0.0025042, 0.0026211, 0.0027212, 0.0028031, 0.0028656, 0.0029078, 0.002929, 2.8513e-07, 3.4728e-06, 1.3245e-05, 3.2943e-05, 6.5391e-05, 0.00011278, 0.0001766, 0.00025763, 0.00035596, 0.00047102, 0.00060171, 0.00074642, 0.00090317, 0.0010697, 0.0012434, 0.0014217, 0.0016019, 0.0017811, 0.0019566, 0.0021257, 0.002286, 0.002435, 0.0025705, 0.0026905, 0.0027933, 0.0028774, 0.0029415, 0.0029848, 0.0030066, 2.9161e-07, 3.5518e-06, 1.3546e-05, 3.3692e-05, 6.6878e-05, 0.00011534, 0.00018062, 0.00026349, 0.00036405, 0.00048173, 0.00061539, 0.00076339, 0.00092371, 0.001094, 0.0012717, 0.0014541, 0.0016383, 0.0018216, 0.0020011, 0.0021741, 0.002338, 0.0024904, 0.002629, 0.0027517, 0.0028568, 0.0029428, 0.0030084, 0.0030527, 0.003075, 2.9722e-07, 3.6202e-06, 1.3807e-05, 3.434e-05, 6.8165e-05, 0.00011756, 0.00018409, 0.00026856, 0.00037106, 0.00049101, 0.00062724, 0.00077809, 0.00094149, 0.0011151, 0.0012962, 0.001482, 0.0016698, 0.0018566, 0.0020396, 0.0022159, 0.002383, 0.0025383, 0.0026796, 0.0028047, 0.0029118, 0.0029995, 0.0030663, 0.0031114, 0.0031341, 3.0197e-07, 3.6779e-06, 1.4027e-05, 3.4888e-05, 6.9253e-05, 0.00011944, 0.00018703, 0.00027285, 0.00037698, 0.00049884, 0.00063725, 0.00079051, 0.00095652, 0.0011329, 0.0013168, 0.0015057, 0.0016965, 0.0018862, 0.0020721, 0.0022513, 0.002421, 0.0025788, 0.0027223, 0.0028494, 0.0029583, 0.0030473, 0.0031152, 0.0031611, 0.0031842, 3.0584e-07, 3.7252e-06, 1.4207e-05, 3.5336e-05, 7.0142e-05, 0.00012097, 0.00018943, 0.00027635, 0.00038182, 0.00050525, 0.00064543, 0.00080065, 0.00096879, 0.0011474, 0.0013338, 0.001525, 0.0017182, 0.0019105, 0.0020987, 0.0022802, 0.0024521, 0.0026119, 0.0027573, 0.002886, 0.0029963, 0.0030864, 0.0031552, 0.0032017, 0.003225, 3.0885e-07, 3.7618e-06, 1.4347e-05, 3.5684e-05, 7.0832e-05, 0.00012217, 0.0001913, 0.00027907, 0.00038558, 0.00051022, 0.00065178, 0.00080854, 0.00097833, 0.0011587, 0.0013469, 0.00154, 0.0017352, 0.0019293, 0.0021194, 0.0023026, 0.0024762, 0.0026376, 0.0027844, 0.0029144, 0.0030258, 0.0031168, 0.0031863, 0.0032332, 0.0032568, 3.11e-07, 3.788e-06, 1.4447e-05, 3.5932e-05, 7.1325e-05, 0.00012302, 0.00019263, 0.00028102, 0.00038826, 0.00051377, 0.00065632, 0.00081416, 0.00098514, 0.0011668, 0.0013563, 0.0015508, 0.0017472, 0.0019427, 0.0021341, 0.0023187, 0.0024935, 0.002656, 0.0028038, 0.0029347, 0.0030468, 0.0031385, 0.0032085, 0.0032557, 0.0032795, 3.1229e-07, 3.8037e-06, 1.4507e-05, 3.6081e-05, 7.1621e-05, 0.00012353, 0.00019343, 0.00028218, 0.00038987, 0.0005159, 0.00065904, 0.00081754, 0.00098922, 0.0011716, 0.0013619, 0.0015572, 0.0017545, 0.0019507, 0.002143, 0.0023283, 0.0025038, 0.002667, 0.0028154, 0.0029469, 0.0030595, 0.0031515, 0.0032218, 0.0032692, 0.003293, 3.1272e-07, 3.8089e-06, 1.4527e-05, 3.6131e-05, 7.1719e-05, 0.0001237, 0.00019369, 0.00028257, 0.00039041, 0.00051661, 0.00065994, 0.00081866, 0.00099058, 0.0011732, 0.0013638, 0.0015593, 0.0017569, 0.0019534, 0.0021459, 0.0023315, 0.0025073, 0.0026707, 0.0028193, 0.0029509, 0.0030637, 0.0031559, 0.0032262, 0.0032737, 0.0032976, 3.1229e-07, 3.8037e-06, 1.4507e-05, 3.6081e-05, 7.1621e-05, 0.00012353, 0.00019343, 0.00028218, 0.00038987, 0.0005159, 0.00065904, 0.00081754, 0.00098922, 0.0011716, 0.0013619, 0.0015572, 0.0017545, 0.0019507, 0.002143, 0.0023283, 0.0025038, 0.002667, 0.0028154, 0.0029469, 0.0030595, 0.0031515, 0.0032218, 0.0032692, 0.003293, 3.11e-07, 3.788e-06, 1.4447e-05, 3.5932e-05, 7.1325e-05, 0.00012302, 0.00019263, 0.00028102, 0.00038826, 0.00051377, 0.00065632, 0.00081416, 0.00098514, 0.0011668, 0.0013563, 0.0015508, 0.0017472, 0.0019427, 0.0021341, 0.0023187, 0.0024935, 0.002656, 0.0028038, 0.0029347, 0.0030468, 0.0031385, 0.0032085, 0.0032557, 0.0032795, 3.0885e-07, 3.7618e-06, 1.4347e-05, 3.5684e-05, 7.0832e-05, 0.00012217, 0.0001913, 0.00027907, 0.00038558, 0.00051022, 0.00065178, 0.00080854, 0.00097833, 0.0011587, 0.0013469, 0.00154, 0.0017352, 0.0019293, 0.0021194, 0.0023026, 0.0024762, 0.0026376, 0.0027844, 0.0029144, 0.0030258, 0.0031168, 0.0031863, 0.0032332, 0.0032568, 3.0584e-07, 3.7252e-06, 1.4207e-05, 3.5336e-05, 7.0142e-05, 0.00012097, 0.00018943, 0.00027635, 0.00038182, 0.00050525, 0.00064543, 0.00080065, 0.00096879, 0.0011474, 0.0013338, 0.001525, 0.0017182, 0.0019105, 0.0020987, 0.0022802, 0.0024521, 0.0026119, 0.0027573, 0.002886, 0.0029963, 0.0030864, 0.0031552, 0.0032017, 0.003225, 3.0197e-07, 3.6779e-06, 1.4027e-05, 3.4888e-05, 6.9253e-05, 0.00011944, 0.00018703, 0.00027285, 0.00037698, 0.00049884, 0.00063725, 0.00079051, 0.00095652, 0.0011329, 0.0013168, 0.0015057, 0.0016965, 0.0018862, 0.0020721, 0.0022513, 0.002421, 0.0025788, 0.0027223, 0.0028494, 0.0029583, 0.0030473, 0.0031152, 0.0031611, 0.0031842, 2.9722e-07, 3.6202e-06, 1.3807e-05, 3.434e-05, 6.8165e-05, 0.00011756, 0.00018409, 0.00026856, 0.00037106, 0.00049101, 0.00062724, 0.00077809, 0.00094149, 0.0011151, 0.0012962, 0.001482, 0.0016698, 0.0018566, 0.0020396, 0.0022159, 0.002383, 0.0025383, 0.0026796, 0.0028047, 0.0029118, 0.0029995, 0.0030663, 0.0031114, 0.0031341, 2.9161e-07, 3.5518e-06, 1.3546e-05, 3.3692e-05, 6.6878e-05, 0.00011534, 0.00018062, 0.00026349, 0.00036405, 0.00048173, 0.00061539, 0.00076339, 0.00092371, 0.001094, 0.0012717, 0.0014541, 0.0016383, 0.0018216, 0.0020011, 0.0021741, 0.002338, 0.0024904, 0.002629, 0.0027517, 0.0028568, 0.0029428, 0.0030084, 0.0030527, 0.003075, 2.8513e-07, 3.4728e-06, 1.3245e-05, 3.2943e-05, 6.5391e-05, 0.00011278, 0.0001766, 0.00025763, 0.00035596, 0.00047102, 0.00060171, 0.00074642, 0.00090317, 0.0010697, 0.0012434, 0.0014217, 0.0016019, 0.0017811, 0.0019566, 0.0021257, 0.002286, 0.002435, 0.0025705, 0.0026905, 0.0027933, 0.0028774, 0.0029415, 0.0029848, 0.0030066, 2.7777e-07, 3.3832e-06, 1.2903e-05, 3.2093e-05, 6.3703e-05, 0.00010987, 0.00017204, 0.00025099, 0.00034677, 0.00045887, 0.00058618, 0.00072716, 0.00087987, 0.0010421, 0.0012113, 0.001385, 0.0015605, 0.0017351, 0.0019061, 0.0020709, 0.002227, 0.0023722, 0.0025042, 0.0026211, 0.0027212, 0.0028031, 0.0028656, 0.0029078, 0.002929, 2.6954e-07, 3.283e-06, 1.2521e-05, 3.1142e-05, 6.1816e-05, 0.00010661, 0.00016695, 0.00024355, 0.0003365, 0.00044527, 0.00056881, 0.00070561, 0.00085379, 0.0010112, 0.0011754, 0.001344, 0.0015143, 0.0016837, 0.0018496, 0.0020095, 0.002161, 0.0023019, 0.00243, 0.0025434, 0.0026406, 0.0027201, 0.0027807, 0.0028216, 0.0028422, 2.6044e-07, 3.1721e-06, 1.2098e-05, 3.009e-05, 5.9728e-05, 0.00010301, 0.00016131, 0.00023532, 0.00032514, 0.00043024, 0.0005496, 0.00068179, 0.00082496, 0.00097705, 0.0011357, 0.0012986, 0.0014631, 0.0016268, 0.0017871, 0.0019417, 0.0020881, 0.0022241, 0.0023479, 0.0024575, 0.0025514, 0.0026282, 0.0026868, 0.0027263, 0.0027462, 2.5047e-07, 3.0507e-06, 1.1635e-05, 2.8938e-05, 5.7442e-05, 9.9071e-05, 0.00015514, 0.00022632, 0.00031269, 0.00041377, 0.00052857, 0.00065569, 0.00079339, 0.00093965, 0.0010923, 0.0012489, 0.0014071, 0.0015646, 0.0017187, 0.0018673, 0.0020081, 0.002139, 0.002258, 0.0023635, 0.0024538, 0.0025276, 0.002584, 0.002622, 0.0026411, 2.3964e-07, 2.9188e-06, 1.1132e-05, 2.7687e-05, 5.4959e-05, 9.4788e-05, 0.00014843, 0.00021653, 0.00029917, 0.00039588, 0.00050572, 0.00062734, 0.00075909, 0.00089903, 0.0010451, 0.0011949, 0.0013463, 0.0014969, 0.0016444, 0.0017866, 0.0019213, 0.0020465, 0.0021604, 0.0022613, 0.0023477, 0.0024184, 0.0024723, 0.0025086, 0.0025269, 2.2796e-07, 2.7766e-06, 1.059e-05, 2.6338e-05, 5.2281e-05, 9.017e-05, 0.0001412, 0.00020598, 0.0002846, 0.00037659, 0.00048108, 0.00059678, 0.00072211, 0.00085523, 0.00099413, 0.0011367, 0.0012807, 0.001424, 0.0015643, 0.0016996, 0.0018277, 0.0019468, 0.0020552, 0.0021511, 0.0022333, 0.0023005, 0.0023518, 0.0023864, 0.0024038, 2.1546e-07, 2.6242e-06, 1.0008e-05, 2.4893e-05, 4.9413e-05, 8.5222e-05, 0.00013345, 0.00019468, 0.00026898, 0.00035593, 0.00045468, 0.00056403, 0.00068248, 0.0008083, 0.00093958, 0.0010743, 0.0012104, 0.0013459, 0.0014785, 0.0016063, 0.0017274, 0.00184, 0.0019424, 0.0020331, 0.0021108, 0.0021743, 0.0022228, 0.0022555, 0.0022719, 2.0214e-07, 2.462e-06, 9.3897e-06, 2.3354e-05, 4.6358e-05, 7.9953e-05, 0.0001252, 0.00018264, 0.00025235, 0.00033392, 0.00042657, 0.00052916, 0.00064029, 0.00075833, 0.00088149, 0.0010079, 0.0011356, 0.0012626, 0.0013871, 0.001507, 0.0016206, 0.0017262, 0.0018223, 0.0019074, 0.0019803, 0.0020399, 0.0020853, 0.002116, 0.0021315, 1.8803e-07, 2.2902e-06, 8.7344e-06, 2.1724e-05, 4.3122e-05, 7.4374e-05, 0.00011646, 0.0001699, 0.00023474, 0.00031062, 0.0003968, 0.00049223, 0.0005956, 0.00070541, 0.00081998, 0.00093757, 0.0010564, 0.0011745, 0.0012903, 0.0014018, 0.0015075, 0.0016058, 0.0016951, 0.0017743, 0.0018421, 0.0018975, 0.0019398, 0.0019683, 0.0019827, 1.7317e-07, 2.1092e-06, 8.0442e-06, 2.0008e-05, 3.9715e-05, 6.8496e-05, 0.00010726, 0.00015647, 0.00021619, 0.00028607, 0.00036544, 0.00045333, 0.00054854, 0.00064966, 0.00075518, 0.00086347, 0.00097288, 0.0010817, 0.0011883, 0.001291, 0.0013884, 0.0014789, 0.0015612, 0.0016341, 0.0016965, 0.0017476, 0.0017865, 0.0018128, 0.001826, 1.576e-07, 1.9195e-06, 7.3207e-06, 1.8208e-05, 3.6143e-05, 6.2336e-05, 9.7612e-05, 0.0001424, 0.00019675, 0.00026035, 0.00033258, 0.00041256, 0.00049921, 0.00059123, 0.00068726, 0.00078582, 0.00088539, 0.00098443, 0.0010814, 0.0011749, 0.0012635, 0.0013459, 0.0014208, 0.0014871, 0.0015439, 0.0015904, 0.0016258, 0.0016498, 0.0016618, 1.4136e-07, 1.7217e-06, 6.5663e-06, 1.6332e-05, 3.2418e-05, 5.5912e-05, 8.7553e-05, 0.00012773, 0.00017647, 0.00023352, 0.00029831, 0.00037005, 0.00044776, 0.00053031, 0.00061644, 0.00070484, 0.00079415, 0.00088298, 0.00097, 0.0010539, 0.0011333, 0.0012072, 0.0012744, 0.0013339, 0.0013848, 0.0014265, 0.0014583, 0.0014798, 0.0014906, 1.245e-07, 1.5164e-06, 5.7834e-06, 1.4385e-05, 2.8553e-05, 4.9246e-05, 7.7114e-05, 0.0001125, 0.00015543, 0.00020567, 0.00026274, 0.00032593, 0.00039437, 0.00046708, 0.00054294, 0.0006208, 0.00069946, 0.0007777, 0.00085434, 0.00092821, 0.00099819, 0.0010633, 0.0011224, 0.0011748, 0.0012197, 0.0012564, 0.0012844, 0.0013033, 0.0013128, 1.0709e-07, 1.3044e-06, 4.9748e-06, 1.2373e-05, 2.4561e-05, 4.236e-05, 6.6332e-05, 9.6768e-05, 0.0001337, 0.00017692, 0.000226, 0.00028036, 0.00033923, 0.00040177, 0.00046703, 0.000534, 0.00060166, 0.00066897, 0.00073489, 0.00079843, 0.00085863, 0.00091459, 0.00096548, 0.0010106, 0.0010492, 0.0010808, 0.0011048, 0.0011211, 0.0011293, 8.9201e-08, 1.0865e-06, 4.1436e-06, 1.0306e-05, 2.0457e-05, 3.5283e-05, 5.5249e-05, 8.06e-05, 0.00011136, 0.00014736, 0.00018824, 0.00023352, 0.00028255, 0.00033464, 0.000389, 0.00044478, 0.00050114, 0.0005572, 0.00061211, 0.00066503, 0.00071517, 0.00076178, 0.00080417, 0.00084172, 0.00087388, 0.00090018, 0.00092025, 0.00093378, 0.0009406, 7.0896e-08, 8.6352e-07, 3.2933e-06, 8.1912e-06, 1.6259e-05, 2.8043e-05, 4.3912e-05, 6.4061e-05, 8.8509e-05, 0.00011712, 0.00014961, 0.0001856, 0.00022457, 0.00026597, 0.00030917, 0.00035351, 0.0003983, 0.00044286, 0.0004865, 0.00052856, 0.00056841, 0.00060546, 0.00063915, 0.000669, 0.00069456, 0.00071546, 0.00073141, 0.00074217, 0.00074759, 5.2261e-08, 6.3653e-07, 2.4276e-06, 6.0381e-06, 1.1985e-05, 2.0671e-05, 3.2369e-05, 4.7222e-05, 6.5244e-05, 8.6334e-05, 0.00011029, 0.00013681, 0.00016554, 0.00019606, 0.0002279, 0.00026059, 0.0002936, 0.00032645, 0.00035862, 0.00038963, 0.000419, 0.00044631, 0.00047115, 0.00049315, 0.00051199, 0.0005274, 0.00053915, 0.00054708, 0.00055108, 3.338e-08, 4.0657e-07, 1.5506e-06, 3.8566e-06, 7.6554e-06, 1.3203e-05, 2.0675e-05, 3.0161e-05, 4.1672e-05, 5.5143e-05, 7.0443e-05, 8.7384e-05, 0.00010574, 0.00012523, 0.00014557, 0.00016644, 0.00018753, 0.00020851, 0.00022906, 0.00024886, 0.00026763, 0.00028507, 0.00030093, 0.00031498, 0.00032702, 0.00033686, 0.00034437, 0.00034943, 0.00035198, 1.4368e-08, 1.7501e-07, 6.6745e-07, 1.6601e-06, 3.2952e-06, 5.6833e-06, 8.8995e-06, 1.2983e-05, 1.7938e-05, 2.3736e-05, 3.0322e-05, 3.7614e-05, 4.5514e-05, 5.3904e-05, 6.2659e-05, 7.1645e-05, 8.0723e-05, 8.9753e-05, 9.8597e-05, 0.00010712, 0.0001152, 0.00012271, 0.00012954, 0.00013558, 0.00014076, 0.000145, 0.00014823, 0.00015041, 0.00015151}}, {{-1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056}, {3.1424, 3.1424, 3.1424, 3.1424, 3.1424, 3.1424, 3.1424, 3.1424, 3.1424, 3.1424, 3.1424, 3.1424, 3.1424, 3.1424, 3.1424, 3.1424, 3.1424, 3.1424, 3.1424, 3.1424, 3.1424, 3.1424, 3.1424, 3.1424, 3.1424, 3.1424, 3.1424, 3.1424, 3.1424, 3.1457, 3.1457, 3.1457, 3.1457, 3.1457, 3.1457, 3.1457, 3.1457, 3.1457, 3.1457, 3.1457, 3.1457, 3.1457, 3.1457, 3.1457, 3.1457, 3.1457, 3.1457, 3.1457, 3.1457, 3.1457, 3.1457, 3.1457, 3.1457, 3.1457, 3.1457, 3.1457, 3.1457, 3.1457, 3.1516, 3.1516, 3.1516, 3.1516, 3.1516, 3.1516, 3.1516, 3.1516, 3.1516, 3.1516, 3.1516, 3.1516, 3.1516, 3.1516, 3.1516, 3.1516, 3.1516, 3.1516, 3.1516, 3.1516, 3.1516, 3.1516, 3.1516, 3.1516, 3.1516, 3.1516, 3.1516, 3.1516, 3.1516, 3.1602, 3.1602, 3.1602, 3.1602, 3.1602, 3.1602, 3.1602, 3.1602, 3.1602, 3.1602, 3.1602, 3.1602, 3.1602, 3.1602, 3.1602, 3.1602, 3.1602, 3.1602, 3.1602, 3.1602, 3.1602, 3.1602, 3.1602, 3.1602, 3.1602, 3.1602, 3.1602, 3.1602, 3.1602, 3.1713, 3.1713, 3.1713, 3.1713, 3.1713, 3.1713, 3.1713, 3.1713, 3.1713, 3.1713, 3.1713, 3.1713, 3.1713, 3.1713, 3.1713, 3.1713, 3.1713, 3.1713, 3.1713, 3.1713, 3.1713, 3.1713, 3.1713, 3.1713, 3.1713, 3.1713, 3.1713, 3.1713, 3.1713, 3.1849, 3.1849, 3.1849, 3.1849, 3.1849, 3.1849, 3.1849, 3.1849, 3.1849, 3.1849, 3.1849, 3.1849, 3.1849, 3.1849, 3.1849, 3.1849, 3.1849, 3.1849, 3.1849, 3.1849, 3.1849, 3.1849, 3.1849, 3.1849, 3.1849, 3.1849, 3.1849, 3.1849, 3.1849, 3.2009, 3.2009, 3.2009, 3.2009, 3.2009, 3.2009, 3.2009, 3.2009, 3.2009, 3.2009, 3.2009, 3.2009, 3.2009, 3.2009, 3.2009, 3.2009, 3.2009, 3.2009, 3.2009, 3.2009, 3.2009, 3.2009, 3.2009, 3.2009, 3.2009, 3.2009, 3.2009, 3.2009, 3.2009, 3.2194, 3.2194, 3.2194, 3.2194, 3.2194, 3.2194, 3.2194, 3.2194, 3.2194, 3.2194, 3.2194, 3.2194, 3.2194, 3.2194, 3.2194, 3.2194, 3.2194, 3.2194, 3.2194, 3.2194, 3.2194, 3.2194, 3.2194, 3.2194, 3.2194, 3.2194, 3.2194, 3.2194, 3.2194, 3.2401, 3.2401, 3.2401, 3.2401, 3.2401, 3.2401, 3.2401, 3.2401, 3.2401, 3.2401, 3.2401, 3.2401, 3.2401, 3.2401, 3.2401, 3.2401, 3.2401, 3.2401, 3.2401, 3.2401, 3.2401, 3.2401, 3.2401, 3.2401, 3.2401, 3.2401, 3.2401, 3.2401, 3.2401, 3.263, 3.263, 3.263, 3.263, 3.263, 3.263, 3.263, 3.263, 3.263, 3.263, 3.263, 3.263, 3.263, 3.263, 3.263, 3.263, 3.263, 3.263, 3.263, 3.263, 3.263, 3.263, 3.263, 3.263, 3.263, 3.263, 3.263, 3.263, 3.263, 3.2881, 3.2881, 3.2881, 3.2881, 3.2881, 3.2881, 3.2881, 3.2881, 3.2881, 3.2881, 3.2881, 3.2881, 3.2881, 3.2881, 3.2881, 3.2881, 3.2881, 3.2881, 3.2881, 3.2881, 3.2881, 3.2881, 3.2881, 3.2881, 3.2881, 3.2881, 3.2881, 3.2881, 3.2881, 3.3151, 3.3151, 3.3151, 3.3151, 3.3151, 3.3151, 3.3151, 3.3151, 3.3151, 3.3151, 3.3151, 3.3151, 3.3151, 3.3151, 3.3151, 3.3151, 3.3151, 3.3151, 3.3151, 3.3151, 3.3151, 3.3151, 3.3151, 3.3151, 3.3151, 3.3151, 3.3151, 3.3151, 3.3151, 3.3441, 3.3441, 3.3441, 3.3441, 3.3441, 3.3441, 3.3441, 3.3441, 3.3441, 3.3441, 3.3441, 3.3441, 3.3441, 3.3441, 3.3441, 3.3441, 3.3441, 3.3441, 3.3441, 3.3441, 3.3441, 3.3441, 3.3441, 3.3441, 3.3441, 3.3441, 3.3441, 3.3441, 3.3441, 3.3748, 3.3748, 3.3748, 3.3748, 3.3748, 3.3748, 3.3748, 3.3748, 3.3748, 3.3748, 3.3748, 3.3748, 3.3748, 3.3748, 3.3748, 3.3748, 3.3748, 3.3748, 3.3748, 3.3748, 3.3748, 3.3748, 3.3748, 3.3748, 3.3748, 3.3748, 3.3748, 3.3748, 3.3748, 3.4072, 3.4072, 3.4072, 3.4072, 3.4072, 3.4072, 3.4072, 3.4072, 3.4072, 3.4072, 3.4072, 3.4072, 3.4072, 3.4072, 3.4072, 3.4072, 3.4072, 3.4072, 3.4072, 3.4072, 3.4072, 3.4072, 3.4072, 3.4072, 3.4072, 3.4072, 3.4072, 3.4072, 3.4072, 3.4412, 3.4412, 3.4412, 3.4412, 3.4412, 3.4412, 3.4412, 3.4412, 3.4412, 3.4412, 3.4412, 3.4412, 3.4412, 3.4412, 3.4412, 3.4412, 3.4412, 3.4412, 3.4412, 3.4412, 3.4412, 3.4412, 3.4412, 3.4412, 3.4412, 3.4412, 3.4412, 3.4412, 3.4412, 3.4766, 3.4766, 3.4766, 3.4766, 3.4766, 3.4766, 3.4766, 3.4766, 3.4766, 3.4766, 3.4766, 3.4766, 3.4766, 3.4766, 3.4766, 3.4766, 3.4766, 3.4766, 3.4766, 3.4766, 3.4766, 3.4766, 3.4766, 3.4766, 3.4766, 3.4766, 3.4766, 3.4766, 3.4766, 3.5134, 3.5134, 3.5134, 3.5134, 3.5134, 3.5134, 3.5134, 3.5134, 3.5134, 3.5134, 3.5134, 3.5134, 3.5134, 3.5134, 3.5134, 3.5134, 3.5134, 3.5134, 3.5134, 3.5134, 3.5134, 3.5134, 3.5134, 3.5134, 3.5134, 3.5134, 3.5134, 3.5134, 3.5134, 3.5513, 3.5513, 3.5513, 3.5513, 3.5513, 3.5513, 3.5513, 3.5513, 3.5513, 3.5513, 3.5513, 3.5513, 3.5513, 3.5513, 3.5513, 3.5513, 3.5513, 3.5513, 3.5513, 3.5513, 3.5513, 3.5513, 3.5513, 3.5513, 3.5513, 3.5513, 3.5513, 3.5513, 3.5513, 3.5904, 3.5904, 3.5904, 3.5904, 3.5904, 3.5904, 3.5904, 3.5904, 3.5904, 3.5904, 3.5904, 3.5904, 3.5904, 3.5904, 3.5904, 3.5904, 3.5904, 3.5904, 3.5904, 3.5904, 3.5904, 3.5904, 3.5904, 3.5904, 3.5904, 3.5904, 3.5904, 3.5904, 3.5904, 3.6303, 3.6303, 3.6303, 3.6303, 3.6303, 3.6303, 3.6303, 3.6303, 3.6303, 3.6303, 3.6303, 3.6303, 3.6303, 3.6303, 3.6303, 3.6303, 3.6303, 3.6303, 3.6303, 3.6303, 3.6303, 3.6303, 3.6303, 3.6303, 3.6303, 3.6303, 3.6303, 3.6303, 3.6303, 3.6712, 3.6712, 3.6712, 3.6712, 3.6712, 3.6712, 3.6712, 3.6712, 3.6712, 3.6712, 3.6712, 3.6712, 3.6712, 3.6712, 3.6712, 3.6712, 3.6712, 3.6712, 3.6712, 3.6712, 3.6712, 3.6712, 3.6712, 3.6712, 3.6712, 3.6712, 3.6712, 3.6712, 3.6712, 3.7127, 3.7127, 3.7127, 3.7127, 3.7127, 3.7127, 3.7127, 3.7127, 3.7127, 3.7127, 3.7127, 3.7127, 3.7127, 3.7127, 3.7127, 3.7127, 3.7127, 3.7127, 3.7127, 3.7127, 3.7127, 3.7127, 3.7127, 3.7127, 3.7127, 3.7127, 3.7127, 3.7127, 3.7127, 3.7549, 3.7549, 3.7549, 3.7549, 3.7549, 3.7549, 3.7549, 3.7549, 3.7549, 3.7549, 3.7549, 3.7549, 3.7549, 3.7549, 3.7549, 3.7549, 3.7549, 3.7549, 3.7549, 3.7549, 3.7549, 3.7549, 3.7549, 3.7549, 3.7549, 3.7549, 3.7549, 3.7549, 3.7549, 3.7975, 3.7975, 3.7975, 3.7975, 3.7975, 3.7975, 3.7975, 3.7975, 3.7975, 3.7975, 3.7975, 3.7975, 3.7975, 3.7975, 3.7975, 3.7975, 3.7975, 3.7975, 3.7975, 3.7975, 3.7975, 3.7975, 3.7975, 3.7975, 3.7975, 3.7975, 3.7975, 3.7975, 3.7975, 3.8404, 3.8404, 3.8404, 3.8404, 3.8404, 3.8404, 3.8404, 3.8404, 3.8404, 3.8404, 3.8404, 3.8404, 3.8404, 3.8404, 3.8404, 3.8404, 3.8404, 3.8404, 3.8404, 3.8404, 3.8404, 3.8404, 3.8404, 3.8404, 3.8404, 3.8404, 3.8404, 3.8404, 3.8404, 3.8837, 3.8837, 3.8837, 3.8837, 3.8837, 3.8837, 3.8837, 3.8837, 3.8837, 3.8837, 3.8837, 3.8837, 3.8837, 3.8837, 3.8837, 3.8837, 3.8837, 3.8837, 3.8837, 3.8837, 3.8837, 3.8837, 3.8837, 3.8837, 3.8837, 3.8837, 3.8837, 3.8837, 3.8837, 3.927, 3.927, 3.927, 3.927, 3.927, 3.927, 3.927, 3.927, 3.927, 3.927, 3.927, 3.927, 3.927, 3.927, 3.927, 3.927, 3.927, 3.927, 3.927, 3.927, 3.927, 3.927, 3.927, 3.927, 3.927, 3.927, 3.927, 3.927, 3.927, 3.9703, 3.9703, 3.9703, 3.9703, 3.9703, 3.9703, 3.9703, 3.9703, 3.9703, 3.9703, 3.9703, 3.9703, 3.9703, 3.9703, 3.9703, 3.9703, 3.9703, 3.9703, 3.9703, 3.9703, 3.9703, 3.9703, 3.9703, 3.9703, 3.9703, 3.9703, 3.9703, 3.9703, 3.9703, 4.0135, 4.0135, 4.0135, 4.0135, 4.0135, 4.0135, 4.0135, 4.0135, 4.0135, 4.0135, 4.0135, 4.0135, 4.0135, 4.0135, 4.0135, 4.0135, 4.0135, 4.0135, 4.0135, 4.0135, 4.0135, 4.0135, 4.0135, 4.0135, 4.0135, 4.0135, 4.0135, 4.0135, 4.0135, 4.0565, 4.0565, 4.0565, 4.0565, 4.0565, 4.0565, 4.0565, 4.0565, 4.0565, 4.0565, 4.0565, 4.0565, 4.0565, 4.0565, 4.0565, 4.0565, 4.0565, 4.0565, 4.0565, 4.0565, 4.0565, 4.0565, 4.0565, 4.0565, 4.0565, 4.0565, 4.0565, 4.0565, 4.0565, 4.0991, 4.0991, 4.0991, 4.0991, 4.0991, 4.0991, 4.0991, 4.0991, 4.0991, 4.0991, 4.0991, 4.0991, 4.0991, 4.0991, 4.0991, 4.0991, 4.0991, 4.0991, 4.0991, 4.0991, 4.0991, 4.0991, 4.0991, 4.0991, 4.0991, 4.0991, 4.0991, 4.0991, 4.0991, 4.1413, 4.1413, 4.1413, 4.1413, 4.1413, 4.1413, 4.1413, 4.1413, 4.1413, 4.1413, 4.1413, 4.1413, 4.1413, 4.1413, 4.1413, 4.1413, 4.1413, 4.1413, 4.1413, 4.1413, 4.1413, 4.1413, 4.1413, 4.1413, 4.1413, 4.1413, 4.1413, 4.1413, 4.1413, 4.1828, 4.1828, 4.1828, 4.1828, 4.1828, 4.1828, 4.1828, 4.1828, 4.1828, 4.1828, 4.1828, 4.1828, 4.1828, 4.1828, 4.1828, 4.1828, 4.1828, 4.1828, 4.1828, 4.1828, 4.1828, 4.1828, 4.1828, 4.1828, 4.1828, 4.1828, 4.1828, 4.1828, 4.1828, 4.2236, 4.2236, 4.2236, 4.2236, 4.2236, 4.2236, 4.2236, 4.2236, 4.2236, 4.2236, 4.2236, 4.2236, 4.2236, 4.2236, 4.2236, 4.2236, 4.2236, 4.2236, 4.2236, 4.2236, 4.2236, 4.2236, 4.2236, 4.2236, 4.2236, 4.2236, 4.2236, 4.2236, 4.2236, 4.2636, 4.2636, 4.2636, 4.2636, 4.2636, 4.2636, 4.2636, 4.2636, 4.2636, 4.2636, 4.2636, 4.2636, 4.2636, 4.2636, 4.2636, 4.2636, 4.2636, 4.2636, 4.2636, 4.2636, 4.2636, 4.2636, 4.2636, 4.2636, 4.2636, 4.2636, 4.2636, 4.2636, 4.2636, 4.3026, 4.3026, 4.3026, 4.3026, 4.3026, 4.3026, 4.3026, 4.3026, 4.3026, 4.3026, 4.3026, 4.3026, 4.3026, 4.3026, 4.3026, 4.3026, 4.3026, 4.3026, 4.3026, 4.3026, 4.3026, 4.3026, 4.3026, 4.3026, 4.3026, 4.3026, 4.3026, 4.3026, 4.3026, 4.3406, 4.3406, 4.3406, 4.3406, 4.3406, 4.3406, 4.3406, 4.3406, 4.3406, 4.3406, 4.3406, 4.3406, 4.3406, 4.3406, 4.3406, 4.3406, 4.3406, 4.3406, 4.3406, 4.3406, 4.3406, 4.3406, 4.3406, 4.3406, 4.3406, 4.3406, 4.3406, 4.3406, 4.3406, 4.3773, 4.3773, 4.3773, 4.3773, 4.3773, 4.3773, 4.3773, 4.3773, 4.3773, 4.3773, 4.3773, 4.3773, 4.3773, 4.3773, 4.3773, 4.3773, 4.3773, 4.3773, 4.3773, 4.3773, 4.3773, 4.3773, 4.3773, 4.3773, 4.3773, 4.3773, 4.3773, 4.3773, 4.3773, 4.4128, 4.4128, 4.4128, 4.4128, 4.4128, 4.4128, 4.4128, 4.4128, 4.4128, 4.4128, 4.4128, 4.4128, 4.4128, 4.4128, 4.4128, 4.4128, 4.4128, 4.4128, 4.4128, 4.4128, 4.4128, 4.4128, 4.4128, 4.4128, 4.4128, 4.4128, 4.4128, 4.4128, 4.4128, 4.4467, 4.4467, 4.4467, 4.4467, 4.4467, 4.4467, 4.4467, 4.4467, 4.4467, 4.4467, 4.4467, 4.4467, 4.4467, 4.4467, 4.4467, 4.4467, 4.4467, 4.4467, 4.4467, 4.4467, 4.4467, 4.4467, 4.4467, 4.4467, 4.4467, 4.4467, 4.4467, 4.4467, 4.4467, 4.4792, 4.4792, 4.4792, 4.4792, 4.4792, 4.4792, 4.4792, 4.4792, 4.4792, 4.4792, 4.4792, 4.4792, 4.4792, 4.4792, 4.4792, 4.4792, 4.4792, 4.4792, 4.4792, 4.4792, 4.4792, 4.4792, 4.4792, 4.4792, 4.4792, 4.4792, 4.4792, 4.4792, 4.4792, 4.5099, 4.5099, 4.5099, 4.5099, 4.5099, 4.5099, 4.5099, 4.5099, 4.5099, 4.5099, 4.5099, 4.5099, 4.5099, 4.5099, 4.5099, 4.5099, 4.5099, 4.5099, 4.5099, 4.5099, 4.5099, 4.5099, 4.5099, 4.5099, 4.5099, 4.5099, 4.5099, 4.5099, 4.5099, 4.5389, 4.5389, 4.5389, 4.5389, 4.5389, 4.5389, 4.5389, 4.5389, 4.5389, 4.5389, 4.5389, 4.5389, 4.5389, 4.5389, 4.5389, 4.5389, 4.5389, 4.5389, 4.5389, 4.5389, 4.5389, 4.5389, 4.5389, 4.5389, 4.5389, 4.5389, 4.5389, 4.5389, 4.5389, 4.5659, 4.5659, 4.5659, 4.5659, 4.5659, 4.5659, 4.5659, 4.5659, 4.5659, 4.5659, 4.5659, 4.5659, 4.5659, 4.5659, 4.5659, 4.5659, 4.5659, 4.5659, 4.5659, 4.5659, 4.5659, 4.5659, 4.5659, 4.5659, 4.5659, 4.5659, 4.5659, 4.5659, 4.5659, 4.591, 4.591, 4.591, 4.591, 4.591, 4.591, 4.591, 4.591, 4.591, 4.591, 4.591, 4.591, 4.591, 4.591, 4.591, 4.591, 4.591, 4.591, 4.591, 4.591, 4.591, 4.591, 4.591, 4.591, 4.591, 4.591, 4.591, 4.591, 4.591, 4.6139, 4.6139, 4.6139, 4.6139, 4.6139, 4.6139, 4.6139, 4.6139, 4.6139, 4.6139, 4.6139, 4.6139, 4.6139, 4.6139, 4.6139, 4.6139, 4.6139, 4.6139, 4.6139, 4.6139, 4.6139, 4.6139, 4.6139, 4.6139, 4.6139, 4.6139, 4.6139, 4.6139, 4.6139, 4.6346, 4.6346, 4.6346, 4.6346, 4.6346, 4.6346, 4.6346, 4.6346, 4.6346, 4.6346, 4.6346, 4.6346, 4.6346, 4.6346, 4.6346, 4.6346, 4.6346, 4.6346, 4.6346, 4.6346, 4.6346, 4.6346, 4.6346, 4.6346, 4.6346, 4.6346, 4.6346, 4.6346, 4.6346, 4.6531, 4.6531, 4.6531, 4.6531, 4.6531, 4.6531, 4.6531, 4.6531, 4.6531, 4.6531, 4.6531, 4.6531, 4.6531, 4.6531, 4.6531, 4.6531, 4.6531, 4.6531, 4.6531, 4.6531, 4.6531, 4.6531, 4.6531, 4.6531, 4.6531, 4.6531, 4.6531, 4.6531, 4.6531, 4.6691, 4.6691, 4.6691, 4.6691, 4.6691, 4.6691, 4.6691, 4.6691, 4.6691, 4.6691, 4.6691, 4.6691, 4.6691, 4.6691, 4.6691, 4.6691, 4.6691, 4.6691, 4.6691, 4.6691, 4.6691, 4.6691, 4.6691, 4.6691, 4.6691, 4.6691, 4.6691, 4.6691, 4.6691, 4.6827, 4.6827, 4.6827, 4.6827, 4.6827, 4.6827, 4.6827, 4.6827, 4.6827, 4.6827, 4.6827, 4.6827, 4.6827, 4.6827, 4.6827, 4.6827, 4.6827, 4.6827, 4.6827, 4.6827, 4.6827, 4.6827, 4.6827, 4.6827, 4.6827, 4.6827, 4.6827, 4.6827, 4.6827, 4.6938, 4.6938, 4.6938, 4.6938, 4.6938, 4.6938, 4.6938, 4.6938, 4.6938, 4.6938, 4.6938, 4.6938, 4.6938, 4.6938, 4.6938, 4.6938, 4.6938, 4.6938, 4.6938, 4.6938, 4.6938, 4.6938, 4.6938, 4.6938, 4.6938, 4.6938, 4.6938, 4.6938, 4.6938, 4.7024, 4.7024, 4.7024, 4.7024, 4.7024, 4.7024, 4.7024, 4.7024, 4.7024, 4.7024, 4.7024, 4.7024, 4.7024, 4.7024, 4.7024, 4.7024, 4.7024, 4.7024, 4.7024, 4.7024, 4.7024, 4.7024, 4.7024, 4.7024, 4.7024, 4.7024, 4.7024, 4.7024, 4.7024, 4.7083, 4.7083, 4.7083, 4.7083, 4.7083, 4.7083, 4.7083, 4.7083, 4.7083, 4.7083, 4.7083, 4.7083, 4.7083, 4.7083, 4.7083, 4.7083, 4.7083, 4.7083, 4.7083, 4.7083, 4.7083, 4.7083, 4.7083, 4.7083, 4.7083, 4.7083, 4.7083, 4.7083, 4.7083, 4.7116, 4.7116, 4.7116, 4.7116, 4.7116, 4.7116, 4.7116, 4.7116, 4.7116, 4.7116, 4.7116, 4.7116, 4.7116, 4.7116, 4.7116, 4.7116, 4.7116, 4.7116, 4.7116, 4.7116, 4.7116, 4.7116, 4.7116, 4.7116, 4.7116, 4.7116, 4.7116, 4.7116, 4.7116}, {1.4368e-08, 1.7501e-07, 6.6745e-07, 1.6601e-06, 3.2952e-06, 5.6833e-06, 8.8995e-06, 1.2983e-05, 1.7938e-05, 2.3736e-05, 3.0322e-05, 3.7614e-05, 4.5514e-05, 5.3904e-05, 6.2659e-05, 7.1645e-05, 8.0723e-05, 8.9753e-05, 9.8597e-05, 0.00010712, 0.0001152, 0.00012271, 0.00012954, 0.00013558, 0.00014076, 0.000145, 0.00014823, 0.00015041, 0.00015151, 3.338e-08, 4.0657e-07, 1.5506e-06, 3.8566e-06, 7.6554e-06, 1.3203e-05, 2.0675e-05, 3.0161e-05, 4.1672e-05, 5.5143e-05, 7.0443e-05, 8.7384e-05, 0.00010574, 0.00012523, 0.00014557, 0.00016644, 0.00018753, 0.00020851, 0.00022906, 0.00024886, 0.00026763, 0.00028507, 0.00030093, 0.00031498, 0.00032702, 0.00033686, 0.00034437, 0.00034943, 0.00035198, 5.2261e-08, 6.3653e-07, 2.4276e-06, 6.0381e-06, 1.1985e-05, 2.0671e-05, 3.2369e-05, 4.7222e-05, 6.5244e-05, 8.6334e-05, 0.00011029, 0.00013681, 0.00016554, 0.00019606, 0.0002279, 0.00026059, 0.0002936, 0.00032645, 0.00035862, 0.00038963, 0.000419, 0.00044631, 0.00047115, 0.00049315, 0.00051199, 0.0005274, 0.00053915, 0.00054708, 0.00055108, 7.0896e-08, 8.6352e-07, 3.2933e-06, 8.1912e-06, 1.6259e-05, 2.8043e-05, 4.3912e-05, 6.4061e-05, 8.8509e-05, 0.00011712, 0.00014961, 0.0001856, 0.00022457, 0.00026597, 0.00030917, 0.00035351, 0.0003983, 0.00044286, 0.0004865, 0.00052856, 0.00056841, 0.00060546, 0.00063915, 0.000669, 0.00069456, 0.00071546, 0.00073141, 0.00074217, 0.00074759, 8.9201e-08, 1.0865e-06, 4.1436e-06, 1.0306e-05, 2.0457e-05, 3.5283e-05, 5.5249e-05, 8.06e-05, 0.00011136, 0.00014736, 0.00018824, 0.00023352, 0.00028255, 0.00033464, 0.000389, 0.00044478, 0.00050114, 0.0005572, 0.00061211, 0.00066503, 0.00071517, 0.00076178, 0.00080417, 0.00084172, 0.00087388, 0.00090018, 0.00092025, 0.00093378, 0.0009406, 1.0709e-07, 1.3044e-06, 4.9748e-06, 1.2373e-05, 2.4561e-05, 4.236e-05, 6.6332e-05, 9.6768e-05, 0.0001337, 0.00017692, 0.000226, 0.00028036, 0.00033923, 0.00040177, 0.00046703, 0.000534, 0.00060166, 0.00066897, 0.00073489, 0.00079843, 0.00085863, 0.00091459, 0.00096548, 0.0010106, 0.0010492, 0.0010808, 0.0011048, 0.0011211, 0.0011293, 1.245e-07, 1.5164e-06, 5.7834e-06, 1.4385e-05, 2.8553e-05, 4.9246e-05, 7.7114e-05, 0.0001125, 0.00015543, 0.00020567, 0.00026274, 0.00032593, 0.00039437, 0.00046708, 0.00054294, 0.0006208, 0.00069946, 0.0007777, 0.00085434, 0.00092821, 0.00099819, 0.0010633, 0.0011224, 0.0011748, 0.0012197, 0.0012564, 0.0012844, 0.0013033, 0.0013128, 1.4136e-07, 1.7217e-06, 6.5663e-06, 1.6332e-05, 3.2418e-05, 5.5912e-05, 8.7553e-05, 0.00012773, 0.00017647, 0.00023352, 0.00029831, 0.00037005, 0.00044776, 0.00053031, 0.00061644, 0.00070484, 0.00079415, 0.00088298, 0.00097, 0.0010539, 0.0011333, 0.0012072, 0.0012744, 0.0013339, 0.0013848, 0.0014265, 0.0014583, 0.0014798, 0.0014906, 1.576e-07, 1.9195e-06, 7.3207e-06, 1.8208e-05, 3.6143e-05, 6.2336e-05, 9.7612e-05, 0.0001424, 0.00019675, 0.00026035, 0.00033258, 0.00041256, 0.00049921, 0.00059123, 0.00068726, 0.00078582, 0.00088539, 0.00098443, 0.0010814, 0.0011749, 0.0012635, 0.0013459, 0.0014208, 0.0014871, 0.0015439, 0.0015904, 0.0016258, 0.0016498, 0.0016618, 1.7317e-07, 2.1092e-06, 8.0442e-06, 2.0008e-05, 3.9715e-05, 6.8496e-05, 0.00010726, 0.00015647, 0.00021619, 0.00028607, 0.00036544, 0.00045333, 0.00054854, 0.00064966, 0.00075518, 0.00086347, 0.00097288, 0.0010817, 0.0011883, 0.001291, 0.0013884, 0.0014789, 0.0015612, 0.0016341, 0.0016965, 0.0017476, 0.0017865, 0.0018128, 0.001826, 1.8803e-07, 2.2902e-06, 8.7344e-06, 2.1724e-05, 4.3122e-05, 7.4374e-05, 0.00011646, 0.0001699, 0.00023474, 0.00031062, 0.0003968, 0.00049223, 0.0005956, 0.00070541, 0.00081998, 0.00093757, 0.0010564, 0.0011745, 0.0012903, 0.0014018, 0.0015075, 0.0016058, 0.0016951, 0.0017743, 0.0018421, 0.0018975, 0.0019398, 0.0019683, 0.0019827, 2.0214e-07, 2.462e-06, 9.3897e-06, 2.3354e-05, 4.6358e-05, 7.9953e-05, 0.0001252, 0.00018264, 0.00025235, 0.00033392, 0.00042657, 0.00052916, 0.00064029, 0.00075833, 0.00088149, 0.0010079, 0.0011356, 0.0012626, 0.0013871, 0.001507, 0.0016206, 0.0017262, 0.0018223, 0.0019074, 0.0019803, 0.0020399, 0.0020853, 0.002116, 0.0021315, 2.1546e-07, 2.6242e-06, 1.0008e-05, 2.4893e-05, 4.9413e-05, 8.5222e-05, 0.00013345, 0.00019468, 0.00026898, 0.00035593, 0.00045468, 0.00056403, 0.00068248, 0.0008083, 0.00093958, 0.0010743, 0.0012104, 0.0013459, 0.0014785, 0.0016063, 0.0017274, 0.00184, 0.0019424, 0.0020331, 0.0021108, 0.0021743, 0.0022228, 0.0022555, 0.0022719, 2.2796e-07, 2.7766e-06, 1.059e-05, 2.6338e-05, 5.2281e-05, 9.017e-05, 0.0001412, 0.00020598, 0.0002846, 0.00037659, 0.00048108, 0.00059678, 0.00072211, 0.00085523, 0.00099413, 0.0011367, 0.0012807, 0.001424, 0.0015643, 0.0016996, 0.0018277, 0.0019468, 0.0020552, 0.0021511, 0.0022333, 0.0023005, 0.0023518, 0.0023864, 0.0024038, 2.3964e-07, 2.9188e-06, 1.1132e-05, 2.7687e-05, 5.4959e-05, 9.4788e-05, 0.00014843, 0.00021653, 0.00029917, 0.00039588, 0.00050572, 0.00062734, 0.00075909, 0.00089903, 0.0010451, 0.0011949, 0.0013463, 0.0014969, 0.0016444, 0.0017866, 0.0019213, 0.0020465, 0.0021604, 0.0022613, 0.0023477, 0.0024184, 0.0024723, 0.0025086, 0.0025269, 2.5047e-07, 3.0507e-06, 1.1635e-05, 2.8938e-05, 5.7442e-05, 9.9071e-05, 0.00015514, 0.00022632, 0.00031269, 0.00041377, 0.00052857, 0.00065569, 0.00079339, 0.00093965, 0.0010923, 0.0012489, 0.0014071, 0.0015646, 0.0017187, 0.0018673, 0.0020081, 0.002139, 0.002258, 0.0023635, 0.0024538, 0.0025276, 0.002584, 0.002622, 0.0026411, 2.6044e-07, 3.1721e-06, 1.2098e-05, 3.009e-05, 5.9728e-05, 0.00010301, 0.00016131, 0.00023532, 0.00032514, 0.00043024, 0.0005496, 0.00068179, 0.00082496, 0.00097705, 0.0011357, 0.0012986, 0.0014631, 0.0016268, 0.0017871, 0.0019417, 0.0020881, 0.0022241, 0.0023479, 0.0024575, 0.0025514, 0.0026282, 0.0026868, 0.0027263, 0.0027462, 2.6954e-07, 3.283e-06, 1.2521e-05, 3.1142e-05, 6.1816e-05, 0.00010661, 0.00016695, 0.00024355, 0.0003365, 0.00044527, 0.00056881, 0.00070561, 0.00085379, 0.0010112, 0.0011754, 0.001344, 0.0015143, 0.0016837, 0.0018496, 0.0020095, 0.002161, 0.0023019, 0.00243, 0.0025434, 0.0026406, 0.0027201, 0.0027807, 0.0028216, 0.0028422, 2.7777e-07, 3.3832e-06, 1.2903e-05, 3.2093e-05, 6.3703e-05, 0.00010987, 0.00017204, 0.00025099, 0.00034677, 0.00045887, 0.00058618, 0.00072716, 0.00087987, 0.0010421, 0.0012113, 0.001385, 0.0015605, 0.0017351, 0.0019061, 0.0020709, 0.002227, 0.0023722, 0.0025042, 0.0026211, 0.0027212, 0.0028031, 0.0028656, 0.0029078, 0.002929, 2.8513e-07, 3.4728e-06, 1.3245e-05, 3.2943e-05, 6.5391e-05, 0.00011278, 0.0001766, 0.00025763, 0.00035596, 0.00047102, 0.00060171, 0.00074642, 0.00090317, 0.0010697, 0.0012434, 0.0014217, 0.0016019, 0.0017811, 0.0019566, 0.0021257, 0.002286, 0.002435, 0.0025705, 0.0026905, 0.0027933, 0.0028774, 0.0029415, 0.0029848, 0.0030066, 2.9161e-07, 3.5518e-06, 1.3546e-05, 3.3692e-05, 6.6878e-05, 0.00011534, 0.00018062, 0.00026349, 0.00036405, 0.00048173, 0.00061539, 0.00076339, 0.00092371, 0.001094, 0.0012717, 0.0014541, 0.0016383, 0.0018216, 0.0020011, 0.0021741, 0.002338, 0.0024904, 0.002629, 0.0027517, 0.0028568, 0.0029428, 0.0030084, 0.0030527, 0.003075, 2.9722e-07, 3.6202e-06, 1.3807e-05, 3.434e-05, 6.8165e-05, 0.00011756, 0.00018409, 0.00026856, 0.00037106, 0.00049101, 0.00062724, 0.00077809, 0.00094149, 0.0011151, 0.0012962, 0.001482, 0.0016698, 0.0018566, 0.0020396, 0.0022159, 0.002383, 0.0025383, 0.0026796, 0.0028047, 0.0029118, 0.0029995, 0.0030663, 0.0031114, 0.0031341, 3.0197e-07, 3.6779e-06, 1.4027e-05, 3.4888e-05, 6.9253e-05, 0.00011944, 0.00018703, 0.00027285, 0.00037698, 0.00049884, 0.00063725, 0.00079051, 0.00095652, 0.0011329, 0.0013168, 0.0015057, 0.0016965, 0.0018862, 0.0020721, 0.0022513, 0.002421, 0.0025788, 0.0027223, 0.0028494, 0.0029583, 0.0030473, 0.0031152, 0.0031611, 0.0031842, 3.0584e-07, 3.7252e-06, 1.4207e-05, 3.5336e-05, 7.0142e-05, 0.00012097, 0.00018943, 0.00027635, 0.00038182, 0.00050525, 0.00064543, 0.00080065, 0.00096879, 0.0011474, 0.0013338, 0.001525, 0.0017182, 0.0019105, 0.0020987, 0.0022802, 0.0024521, 0.0026119, 0.0027573, 0.002886, 0.0029963, 0.0030864, 0.0031552, 0.0032017, 0.003225, 3.0885e-07, 3.7618e-06, 1.4347e-05, 3.5684e-05, 7.0832e-05, 0.00012217, 0.0001913, 0.00027907, 0.00038558, 0.00051022, 0.00065178, 0.00080854, 0.00097833, 0.0011587, 0.0013469, 0.00154, 0.0017352, 0.0019293, 0.0021194, 0.0023026, 0.0024762, 0.0026376, 0.0027844, 0.0029144, 0.0030258, 0.0031168, 0.0031863, 0.0032332, 0.0032568, 3.11e-07, 3.788e-06, 1.4447e-05, 3.5932e-05, 7.1325e-05, 0.00012302, 0.00019263, 0.00028102, 0.00038826, 0.00051377, 0.00065632, 0.00081416, 0.00098514, 0.0011668, 0.0013563, 0.0015508, 0.0017472, 0.0019427, 0.0021341, 0.0023187, 0.0024935, 0.002656, 0.0028038, 0.0029347, 0.0030468, 0.0031385, 0.0032085, 0.0032557, 0.0032795, 3.1229e-07, 3.8037e-06, 1.4507e-05, 3.6081e-05, 7.1621e-05, 0.00012353, 0.00019343, 0.00028218, 0.00038987, 0.0005159, 0.00065904, 0.00081754, 0.00098922, 0.0011716, 0.0013619, 0.0015572, 0.0017545, 0.0019507, 0.002143, 0.0023283, 0.0025038, 0.002667, 0.0028154, 0.0029469, 0.0030595, 0.0031515, 0.0032218, 0.0032692, 0.003293, 3.1272e-07, 3.8089e-06, 1.4527e-05, 3.6131e-05, 7.1719e-05, 0.0001237, 0.00019369, 0.00028257, 0.00039041, 0.00051661, 0.00065994, 0.00081866, 0.00099058, 0.0011732, 0.0013638, 0.0015593, 0.0017569, 0.0019534, 0.0021459, 0.0023315, 0.0025073, 0.0026707, 0.0028193, 0.0029509, 0.0030637, 0.0031559, 0.0032262, 0.0032737, 0.0032976, 3.1229e-07, 3.8037e-06, 1.4507e-05, 3.6081e-05, 7.1621e-05, 0.00012353, 0.00019343, 0.00028218, 0.00038987, 0.0005159, 0.00065904, 0.00081754, 0.00098922, 0.0011716, 0.0013619, 0.0015572, 0.0017545, 0.0019507, 0.002143, 0.0023283, 0.0025038, 0.002667, 0.0028154, 0.0029469, 0.0030595, 0.0031515, 0.0032218, 0.0032692, 0.003293, 3.11e-07, 3.788e-06, 1.4447e-05, 3.5932e-05, 7.1325e-05, 0.00012302, 0.00019263, 0.00028102, 0.00038826, 0.00051377, 0.00065632, 0.00081416, 0.00098514, 0.0011668, 0.0013563, 0.0015508, 0.0017472, 0.0019427, 0.0021341, 0.0023187, 0.0024935, 0.002656, 0.0028038, 0.0029347, 0.0030468, 0.0031385, 0.0032085, 0.0032557, 0.0032795, 3.0885e-07, 3.7618e-06, 1.4347e-05, 3.5684e-05, 7.0832e-05, 0.00012217, 0.0001913, 0.00027907, 0.00038558, 0.00051022, 0.00065178, 0.00080854, 0.00097833, 0.0011587, 0.0013469, 0.00154, 0.0017352, 0.0019293, 0.0021194, 0.0023026, 0.0024762, 0.0026376, 0.0027844, 0.0029144, 0.0030258, 0.0031168, 0.0031863, 0.0032332, 0.0032568, 3.0584e-07, 3.7252e-06, 1.4207e-05, 3.5336e-05, 7.0142e-05, 0.00012097, 0.00018943, 0.00027635, 0.00038182, 0.00050525, 0.00064543, 0.00080065, 0.00096879, 0.0011474, 0.0013338, 0.001525, 0.0017182, 0.0019105, 0.0020987, 0.0022802, 0.0024521, 0.0026119, 0.0027573, 0.002886, 0.0029963, 0.0030864, 0.0031552, 0.0032017, 0.003225, 3.0197e-07, 3.6779e-06, 1.4027e-05, 3.4888e-05, 6.9253e-05, 0.00011944, 0.00018703, 0.00027285, 0.00037698, 0.00049884, 0.00063725, 0.00079051, 0.00095652, 0.0011329, 0.0013168, 0.0015057, 0.0016965, 0.0018862, 0.0020721, 0.0022513, 0.002421, 0.0025788, 0.0027223, 0.0028494, 0.0029583, 0.0030473, 0.0031152, 0.0031611, 0.0031842, 2.9722e-07, 3.6202e-06, 1.3807e-05, 3.434e-05, 6.8165e-05, 0.00011756, 0.00018409, 0.00026856, 0.00037106, 0.00049101, 0.00062724, 0.00077809, 0.00094149, 0.0011151, 0.0012962, 0.001482, 0.0016698, 0.0018566, 0.0020396, 0.0022159, 0.002383, 0.0025383, 0.0026796, 0.0028047, 0.0029118, 0.0029995, 0.0030663, 0.0031114, 0.0031341, 2.9161e-07, 3.5518e-06, 1.3546e-05, 3.3692e-05, 6.6878e-05, 0.00011534, 0.00018062, 0.00026349, 0.00036405, 0.00048173, 0.00061539, 0.00076339, 0.00092371, 0.001094, 0.0012717, 0.0014541, 0.0016383, 0.0018216, 0.0020011, 0.0021741, 0.002338, 0.0024904, 0.002629, 0.0027517, 0.0028568, 0.0029428, 0.0030084, 0.0030527, 0.003075, 2.8513e-07, 3.4728e-06, 1.3245e-05, 3.2943e-05, 6.5391e-05, 0.00011278, 0.0001766, 0.00025763, 0.00035596, 0.00047102, 0.00060171, 0.00074642, 0.00090317, 0.0010697, 0.0012434, 0.0014217, 0.0016019, 0.0017811, 0.0019566, 0.0021257, 0.002286, 0.002435, 0.0025705, 0.0026905, 0.0027933, 0.0028774, 0.0029415, 0.0029848, 0.0030066, 2.7777e-07, 3.3832e-06, 1.2903e-05, 3.2093e-05, 6.3703e-05, 0.00010987, 0.00017204, 0.00025099, 0.00034677, 0.00045887, 0.00058618, 0.00072716, 0.00087987, 0.0010421, 0.0012113, 0.001385, 0.0015605, 0.0017351, 0.0019061, 0.0020709, 0.002227, 0.0023722, 0.0025042, 0.0026211, 0.0027212, 0.0028031, 0.0028656, 0.0029078, 0.002929, 2.6954e-07, 3.283e-06, 1.2521e-05, 3.1142e-05, 6.1816e-05, 0.00010661, 0.00016695, 0.00024355, 0.0003365, 0.00044527, 0.00056881, 0.00070561, 0.00085379, 0.0010112, 0.0011754, 0.001344, 0.0015143, 0.0016837, 0.0018496, 0.0020095, 0.002161, 0.0023019, 0.00243, 0.0025434, 0.0026406, 0.0027201, 0.0027807, 0.0028216, 0.0028422, 2.6044e-07, 3.1721e-06, 1.2098e-05, 3.009e-05, 5.9728e-05, 0.00010301, 0.00016131, 0.00023532, 0.00032514, 0.00043024, 0.0005496, 0.00068179, 0.00082496, 0.00097705, 0.0011357, 0.0012986, 0.0014631, 0.0016268, 0.0017871, 0.0019417, 0.0020881, 0.0022241, 0.0023479, 0.0024575, 0.0025514, 0.0026282, 0.0026868, 0.0027263, 0.0027462, 2.5047e-07, 3.0507e-06, 1.1635e-05, 2.8938e-05, 5.7442e-05, 9.9071e-05, 0.00015514, 0.00022632, 0.00031269, 0.00041377, 0.00052857, 0.00065569, 0.00079339, 0.00093965, 0.0010923, 0.0012489, 0.0014071, 0.0015646, 0.0017187, 0.0018673, 0.0020081, 0.002139, 0.002258, 0.0023635, 0.0024538, 0.0025276, 0.002584, 0.002622, 0.0026411, 2.3964e-07, 2.9188e-06, 1.1132e-05, 2.7687e-05, 5.4959e-05, 9.4788e-05, 0.00014843, 0.00021653, 0.00029917, 0.00039588, 0.00050572, 0.00062734, 0.00075909, 0.00089903, 0.0010451, 0.0011949, 0.0013463, 0.0014969, 0.0016444, 0.0017866, 0.0019213, 0.0020465, 0.0021604, 0.0022613, 0.0023477, 0.0024184, 0.0024723, 0.0025086, 0.0025269, 2.2796e-07, 2.7766e-06, 1.059e-05, 2.6338e-05, 5.2281e-05, 9.017e-05, 0.0001412, 0.00020598, 0.0002846, 0.00037659, 0.00048108, 0.00059678, 0.00072211, 0.00085523, 0.00099413, 0.0011367, 0.0012807, 0.001424, 0.0015643, 0.0016996, 0.0018277, 0.0019468, 0.0020552, 0.0021511, 0.0022333, 0.0023005, 0.0023518, 0.0023864, 0.0024038, 2.1546e-07, 2.6242e-06, 1.0008e-05, 2.4893e-05, 4.9413e-05, 8.5222e-05, 0.00013345, 0.00019468, 0.00026898, 0.00035593, 0.00045468, 0.00056403, 0.00068248, 0.0008083, 0.00093958, 0.0010743, 0.0012104, 0.0013459, 0.0014785, 0.0016063, 0.0017274, 0.00184, 0.0019424, 0.0020331, 0.0021108, 0.0021743, 0.0022228, 0.0022555, 0.0022719, 2.0214e-07, 2.462e-06, 9.3897e-06, 2.3354e-05, 4.6358e-05, 7.9953e-05, 0.0001252, 0.00018264, 0.00025235, 0.00033392, 0.00042657, 0.00052916, 0.00064029, 0.00075833, 0.00088149, 0.0010079, 0.0011356, 0.0012626, 0.0013871, 0.001507, 0.0016206, 0.0017262, 0.0018223, 0.0019074, 0.0019803, 0.0020399, 0.0020853, 0.002116, 0.0021315, 1.8803e-07, 2.2902e-06, 8.7344e-06, 2.1724e-05, 4.3122e-05, 7.4374e-05, 0.00011646, 0.0001699, 0.00023474, 0.00031062, 0.0003968, 0.00049223, 0.0005956, 0.00070541, 0.00081998, 0.00093757, 0.0010564, 0.0011745, 0.0012903, 0.0014018, 0.0015075, 0.0016058, 0.0016951, 0.0017743, 0.0018421, 0.0018975, 0.0019398, 0.0019683, 0.0019827, 1.7317e-07, 2.1092e-06, 8.0442e-06, 2.0008e-05, 3.9715e-05, 6.8496e-05, 0.00010726, 0.00015647, 0.00021619, 0.00028607, 0.00036544, 0.00045333, 0.00054854, 0.00064966, 0.00075518, 0.00086347, 0.00097288, 0.0010817, 0.0011883, 0.001291, 0.0013884, 0.0014789, 0.0015612, 0.0016341, 0.0016965, 0.0017476, 0.0017865, 0.0018128, 0.001826, 1.576e-07, 1.9195e-06, 7.3207e-06, 1.8208e-05, 3.6143e-05, 6.2336e-05, 9.7612e-05, 0.0001424, 0.00019675, 0.00026035, 0.00033258, 0.00041256, 0.00049921, 0.00059123, 0.00068726, 0.00078582, 0.00088539, 0.00098443, 0.0010814, 0.0011749, 0.0012635, 0.0013459, 0.0014208, 0.0014871, 0.0015439, 0.0015904, 0.0016258, 0.0016498, 0.0016618, 1.4136e-07, 1.7217e-06, 6.5663e-06, 1.6332e-05, 3.2418e-05, 5.5912e-05, 8.7553e-05, 0.00012773, 0.00017647, 0.00023352, 0.00029831, 0.00037005, 0.00044776, 0.00053031, 0.00061644, 0.00070484, 0.00079415, 0.00088298, 0.00097, 0.0010539, 0.0011333, 0.0012072, 0.0012744, 0.0013339, 0.0013848, 0.0014265, 0.0014583, 0.0014798, 0.0014906, 1.245e-07, 1.5164e-06, 5.7834e-06, 1.4385e-05, 2.8553e-05, 4.9246e-05, 7.7114e-05, 0.0001125, 0.00015543, 0.00020567, 0.00026274, 0.00032593, 0.00039437, 0.00046708, 0.00054294, 0.0006208, 0.00069946, 0.0007777, 0.00085434, 0.00092821, 0.00099819, 0.0010633, 0.0011224, 0.0011748, 0.0012197, 0.0012564, 0.0012844, 0.0013033, 0.0013128, 1.0709e-07, 1.3044e-06, 4.9748e-06, 1.2373e-05, 2.4561e-05, 4.236e-05, 6.6332e-05, 9.6768e-05, 0.0001337, 0.00017692, 0.000226, 0.00028036, 0.00033923, 0.00040177, 0.00046703, 0.000534, 0.00060166, 0.00066897, 0.00073489, 0.00079843, 0.00085863, 0.00091459, 0.00096548, 0.0010106, 0.0010492, 0.0010808, 0.0011048, 0.0011211, 0.0011293, 8.9201e-08, 1.0865e-06, 4.1436e-06, 1.0306e-05, 2.0457e-05, 3.5283e-05, 5.5249e-05, 8.06e-05, 0.00011136, 0.00014736, 0.00018824, 0.00023352, 0.00028255, 0.00033464, 0.000389, 0.00044478, 0.00050114, 0.0005572, 0.00061211, 0.00066503, 0.00071517, 0.00076178, 0.00080417, 0.00084172, 0.00087388, 0.00090018, 0.00092025, 0.00093378, 0.0009406, 7.0896e-08, 8.6352e-07, 3.2933e-06, 8.1912e-06, 1.6259e-05, 2.8043e-05, 4.3912e-05, 6.4061e-05, 8.8509e-05, 0.00011712, 0.00014961, 0.0001856, 0.00022457, 0.00026597, 0.00030917, 0.00035351, 0.0003983, 0.00044286, 0.0004865, 0.00052856, 0.00056841, 0.00060546, 0.00063915, 0.000669, 0.00069456, 0.00071546, 0.00073141, 0.00074217, 0.00074759, 5.2261e-08, 6.3653e-07, 2.4276e-06, 6.0381e-06, 1.1985e-05, 2.0671e-05, 3.2369e-05, 4.7222e-05, 6.5244e-05, 8.6334e-05, 0.00011029, 0.00013681, 0.00016554, 0.00019606, 0.0002279, 0.00026059, 0.0002936, 0.00032645, 0.00035862, 0.00038963, 0.000419, 0.00044631, 0.00047115, 0.00049315, 0.00051199, 0.0005274, 0.00053915, 0.00054708, 0.00055108, 3.338e-08, 4.0657e-07, 1.5506e-06, 3.8566e-06, 7.6554e-06, 1.3203e-05, 2.0675e-05, 3.0161e-05, 4.1672e-05, 5.5143e-05, 7.0443e-05, 8.7384e-05, 0.00010574, 0.00012523, 0.00014557, 0.00016644, 0.00018753, 0.00020851, 0.00022906, 0.00024886, 0.00026763, 0.00028507, 0.00030093, 0.00031498, 0.00032702, 0.00033686, 0.00034437, 0.00034943, 0.00035198, 1.4368e-08, 1.7501e-07, 6.6745e-07, 1.6601e-06, 3.2952e-06, 5.6833e-06, 8.8995e-06, 1.2983e-05, 1.7938e-05, 2.3736e-05, 3.0322e-05, 3.7614e-05, 4.5514e-05, 5.3904e-05, 6.2659e-05, 7.1645e-05, 8.0723e-05, 8.9753e-05, 9.8597e-05, 0.00010712, 0.0001152, 0.00012271, 0.00012954, 0.00013558, 0.00014076, 0.000145, 0.00014823, 0.00015041, 0.00015151}}, {{-1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056, -1, -0.99996, -0.99977, -0.99921, -0.99799, -0.99577, -0.99215, -0.98669, -0.97897, -0.96854, -0.955, -0.93797, -0.91713, -0.89219, -0.86294, -0.82924, -0.79099, -0.74819, -0.7009, -0.64925, -0.59342, -0.53367, -0.47032, -0.40374, -0.33433, -0.26255, -0.1889, -0.11389, -0.038056}, {4.7132, 4.7132, 4.7132, 4.7132, 4.7132, 4.7132, 4.7132, 4.7132, 4.7132, 4.7132, 4.7132, 4.7132, 4.7132, 4.7132, 4.7132, 4.7132, 4.7132, 4.7132, 4.7132, 4.7132, 4.7132, 4.7132, 4.7132, 4.7132, 4.7132, 4.7132, 4.7132, 4.7132, 4.7132, 4.7165, 4.7165, 4.7165, 4.7165, 4.7165, 4.7165, 4.7165, 4.7165, 4.7165, 4.7165, 4.7165, 4.7165, 4.7165, 4.7165, 4.7165, 4.7165, 4.7165, 4.7165, 4.7165, 4.7165, 4.7165, 4.7165, 4.7165, 4.7165, 4.7165, 4.7165, 4.7165, 4.7165, 4.7165, 4.7224, 4.7224, 4.7224, 4.7224, 4.7224, 4.7224, 4.7224, 4.7224, 4.7224, 4.7224, 4.7224, 4.7224, 4.7224, 4.7224, 4.7224, 4.7224, 4.7224, 4.7224, 4.7224, 4.7224, 4.7224, 4.7224, 4.7224, 4.7224, 4.7224, 4.7224, 4.7224, 4.7224, 4.7224, 4.731, 4.731, 4.731, 4.731, 4.731, 4.731, 4.731, 4.731, 4.731, 4.731, 4.731, 4.731, 4.731, 4.731, 4.731, 4.731, 4.731, 4.731, 4.731, 4.731, 4.731, 4.731, 4.731, 4.731, 4.731, 4.731, 4.731, 4.731, 4.731, 4.7421, 4.7421, 4.7421, 4.7421, 4.7421, 4.7421, 4.7421, 4.7421, 4.7421, 4.7421, 4.7421, 4.7421, 4.7421, 4.7421, 4.7421, 4.7421, 4.7421, 4.7421, 4.7421, 4.7421, 4.7421, 4.7421, 4.7421, 4.7421, 4.7421, 4.7421, 4.7421, 4.7421, 4.7421, 4.7557, 4.7557, 4.7557, 4.7557, 4.7557, 4.7557, 4.7557, 4.7557, 4.7557, 4.7557, 4.7557, 4.7557, 4.7557, 4.7557, 4.7557, 4.7557, 4.7557, 4.7557, 4.7557, 4.7557, 4.7557, 4.7557, 4.7557, 4.7557, 4.7557, 4.7557, 4.7557, 4.7557, 4.7557, 4.7717, 4.7717, 4.7717, 4.7717, 4.7717, 4.7717, 4.7717, 4.7717, 4.7717, 4.7717, 4.7717, 4.7717, 4.7717, 4.7717, 4.7717, 4.7717, 4.7717, 4.7717, 4.7717, 4.7717, 4.7717, 4.7717, 4.7717, 4.7717, 4.7717, 4.7717, 4.7717, 4.7717, 4.7717, 4.7902, 4.7902, 4.7902, 4.7902, 4.7902, 4.7902, 4.7902, 4.7902, 4.7902, 4.7902, 4.7902, 4.7902, 4.7902, 4.7902, 4.7902, 4.7902, 4.7902, 4.7902, 4.7902, 4.7902, 4.7902, 4.7902, 4.7902, 4.7902, 4.7902, 4.7902, 4.7902, 4.7902, 4.7902, 4.8109, 4.8109, 4.8109, 4.8109, 4.8109, 4.8109, 4.8109, 4.8109, 4.8109, 4.8109, 4.8109, 4.8109, 4.8109, 4.8109, 4.8109, 4.8109, 4.8109, 4.8109, 4.8109, 4.8109, 4.8109, 4.8109, 4.8109, 4.8109, 4.8109, 4.8109, 4.8109, 4.8109, 4.8109, 4.8338, 4.8338, 4.8338, 4.8338, 4.8338, 4.8338, 4.8338, 4.8338, 4.8338, 4.8338, 4.8338, 4.8338, 4.8338, 4.8338, 4.8338, 4.8338, 4.8338, 4.8338, 4.8338, 4.8338, 4.8338, 4.8338, 4.8338, 4.8338, 4.8338, 4.8338, 4.8338, 4.8338, 4.8338, 4.8589, 4.8589, 4.8589, 4.8589, 4.8589, 4.8589, 4.8589, 4.8589, 4.8589, 4.8589, 4.8589, 4.8589, 4.8589, 4.8589, 4.8589, 4.8589, 4.8589, 4.8589, 4.8589, 4.8589, 4.8589, 4.8589, 4.8589, 4.8589, 4.8589, 4.8589, 4.8589, 4.8589, 4.8589, 4.8859, 4.8859, 4.8859, 4.8859, 4.8859, 4.8859, 4.8859, 4.8859, 4.8859, 4.8859, 4.8859, 4.8859, 4.8859, 4.8859, 4.8859, 4.8859, 4.8859, 4.8859, 4.8859, 4.8859, 4.8859, 4.8859, 4.8859, 4.8859, 4.8859, 4.8859, 4.8859, 4.8859, 4.8859, 4.9149, 4.9149, 4.9149, 4.9149, 4.9149, 4.9149, 4.9149, 4.9149, 4.9149, 4.9149, 4.9149, 4.9149, 4.9149, 4.9149, 4.9149, 4.9149, 4.9149, 4.9149, 4.9149, 4.9149, 4.9149, 4.9149, 4.9149, 4.9149, 4.9149, 4.9149, 4.9149, 4.9149, 4.9149, 4.9456, 4.9456, 4.9456, 4.9456, 4.9456, 4.9456, 4.9456, 4.9456, 4.9456, 4.9456, 4.9456, 4.9456, 4.9456, 4.9456, 4.9456, 4.9456, 4.9456, 4.9456, 4.9456, 4.9456, 4.9456, 4.9456, 4.9456, 4.9456, 4.9456, 4.9456, 4.9456, 4.9456, 4.9456, 4.978, 4.978, 4.978, 4.978, 4.978, 4.978, 4.978, 4.978, 4.978, 4.978, 4.978, 4.978, 4.978, 4.978, 4.978, 4.978, 4.978, 4.978, 4.978, 4.978, 4.978, 4.978, 4.978, 4.978, 4.978, 4.978, 4.978, 4.978, 4.978, 5.012, 5.012, 5.012, 5.012, 5.012, 5.012, 5.012, 5.012, 5.012, 5.012, 5.012, 5.012, 5.012, 5.012, 5.012, 5.012, 5.012, 5.012, 5.012, 5.012, 5.012, 5.012, 5.012, 5.012, 5.012, 5.012, 5.012, 5.012, 5.012, 5.0474, 5.0474, 5.0474, 5.0474, 5.0474, 5.0474, 5.0474, 5.0474, 5.0474, 5.0474, 5.0474, 5.0474, 5.0474, 5.0474, 5.0474, 5.0474, 5.0474, 5.0474, 5.0474, 5.0474, 5.0474, 5.0474, 5.0474, 5.0474, 5.0474, 5.0474, 5.0474, 5.0474, 5.0474, 5.0842, 5.0842, 5.0842, 5.0842, 5.0842, 5.0842, 5.0842, 5.0842, 5.0842, 5.0842, 5.0842, 5.0842, 5.0842, 5.0842, 5.0842, 5.0842, 5.0842, 5.0842, 5.0842, 5.0842, 5.0842, 5.0842, 5.0842, 5.0842, 5.0842, 5.0842, 5.0842, 5.0842, 5.0842, 5.1221, 5.1221, 5.1221, 5.1221, 5.1221, 5.1221, 5.1221, 5.1221, 5.1221, 5.1221, 5.1221, 5.1221, 5.1221, 5.1221, 5.1221, 5.1221, 5.1221, 5.1221, 5.1221, 5.1221, 5.1221, 5.1221, 5.1221, 5.1221, 5.1221, 5.1221, 5.1221, 5.1221, 5.1221, 5.1612, 5.1612, 5.1612, 5.1612, 5.1612, 5.1612, 5.1612, 5.1612, 5.1612, 5.1612, 5.1612, 5.1612, 5.1612, 5.1612, 5.1612, 5.1612, 5.1612, 5.1612, 5.1612, 5.1612, 5.1612, 5.1612, 5.1612, 5.1612, 5.1612, 5.1612, 5.1612, 5.1612, 5.1612, 5.2011, 5.2011, 5.2011, 5.2011, 5.2011, 5.2011, 5.2011, 5.2011, 5.2011, 5.2011, 5.2011, 5.2011, 5.2011, 5.2011, 5.2011, 5.2011, 5.2011, 5.2011, 5.2011, 5.2011, 5.2011, 5.2011, 5.2011, 5.2011, 5.2011, 5.2011, 5.2011, 5.2011, 5.2011, 5.242, 5.242, 5.242, 5.242, 5.242, 5.242, 5.242, 5.242, 5.242, 5.242, 5.242, 5.242, 5.242, 5.242, 5.242, 5.242, 5.242, 5.242, 5.242, 5.242, 5.242, 5.242, 5.242, 5.242, 5.242, 5.242, 5.242, 5.242, 5.242, 5.2835, 5.2835, 5.2835, 5.2835, 5.2835, 5.2835, 5.2835, 5.2835, 5.2835, 5.2835, 5.2835, 5.2835, 5.2835, 5.2835, 5.2835, 5.2835, 5.2835, 5.2835, 5.2835, 5.2835, 5.2835, 5.2835, 5.2835, 5.2835, 5.2835, 5.2835, 5.2835, 5.2835, 5.2835, 5.3257, 5.3257, 5.3257, 5.3257, 5.3257, 5.3257, 5.3257, 5.3257, 5.3257, 5.3257, 5.3257, 5.3257, 5.3257, 5.3257, 5.3257, 5.3257, 5.3257, 5.3257, 5.3257, 5.3257, 5.3257, 5.3257, 5.3257, 5.3257, 5.3257, 5.3257, 5.3257, 5.3257, 5.3257, 5.3683, 5.3683, 5.3683, 5.3683, 5.3683, 5.3683, 5.3683, 5.3683, 5.3683, 5.3683, 5.3683, 5.3683, 5.3683, 5.3683, 5.3683, 5.3683, 5.3683, 5.3683, 5.3683, 5.3683, 5.3683, 5.3683, 5.3683, 5.3683, 5.3683, 5.3683, 5.3683, 5.3683, 5.3683, 5.4112, 5.4112, 5.4112, 5.4112, 5.4112, 5.4112, 5.4112, 5.4112, 5.4112, 5.4112, 5.4112, 5.4112, 5.4112, 5.4112, 5.4112, 5.4112, 5.4112, 5.4112, 5.4112, 5.4112, 5.4112, 5.4112, 5.4112, 5.4112, 5.4112, 5.4112, 5.4112, 5.4112, 5.4112, 5.4545, 5.4545, 5.4545, 5.4545, 5.4545, 5.4545, 5.4545, 5.4545, 5.4545, 5.4545, 5.4545, 5.4545, 5.4545, 5.4545, 5.4545, 5.4545, 5.4545, 5.4545, 5.4545, 5.4545, 5.4545, 5.4545, 5.4545, 5.4545, 5.4545, 5.4545, 5.4545, 5.4545, 5.4545, 5.4978, 5.4978, 5.4978, 5.4978, 5.4978, 5.4978, 5.4978, 5.4978, 5.4978, 5.4978, 5.4978, 5.4978, 5.4978, 5.4978, 5.4978, 5.4978, 5.4978, 5.4978, 5.4978, 5.4978, 5.4978, 5.4978, 5.4978, 5.4978, 5.4978, 5.4978, 5.4978, 5.4978, 5.4978, 5.5411, 5.5411, 5.5411, 5.5411, 5.5411, 5.5411, 5.5411, 5.5411, 5.5411, 5.5411, 5.5411, 5.5411, 5.5411, 5.5411, 5.5411, 5.5411, 5.5411, 5.5411, 5.5411, 5.5411, 5.5411, 5.5411, 5.5411, 5.5411, 5.5411, 5.5411, 5.5411, 5.5411, 5.5411, 5.5843, 5.5843, 5.5843, 5.5843, 5.5843, 5.5843, 5.5843, 5.5843, 5.5843, 5.5843, 5.5843, 5.5843, 5.5843, 5.5843, 5.5843, 5.5843, 5.5843, 5.5843, 5.5843, 5.5843, 5.5843, 5.5843, 5.5843, 5.5843, 5.5843, 5.5843, 5.5843, 5.5843, 5.5843, 5.6273, 5.6273, 5.6273, 5.6273, 5.6273, 5.6273, 5.6273, 5.6273, 5.6273, 5.6273, 5.6273, 5.6273, 5.6273, 5.6273, 5.6273, 5.6273, 5.6273, 5.6273, 5.6273, 5.6273, 5.6273, 5.6273, 5.6273, 5.6273, 5.6273, 5.6273, 5.6273, 5.6273, 5.6273, 5.6699, 5.6699, 5.6699, 5.6699, 5.6699, 5.6699, 5.6699, 5.6699, 5.6699, 5.6699, 5.6699, 5.6699, 5.6699, 5.6699, 5.6699, 5.6699, 5.6699, 5.6699, 5.6699, 5.6699, 5.6699, 5.6699, 5.6699, 5.6699, 5.6699, 5.6699, 5.6699, 5.6699, 5.6699, 5.7121, 5.7121, 5.7121, 5.7121, 5.7121, 5.7121, 5.7121, 5.7121, 5.7121, 5.7121, 5.7121, 5.7121, 5.7121, 5.7121, 5.7121, 5.7121, 5.7121, 5.7121, 5.7121, 5.7121, 5.7121, 5.7121, 5.7121, 5.7121, 5.7121, 5.7121, 5.7121, 5.7121, 5.7121, 5.7536, 5.7536, 5.7536, 5.7536, 5.7536, 5.7536, 5.7536, 5.7536, 5.7536, 5.7536, 5.7536, 5.7536, 5.7536, 5.7536, 5.7536, 5.7536, 5.7536, 5.7536, 5.7536, 5.7536, 5.7536, 5.7536, 5.7536, 5.7536, 5.7536, 5.7536, 5.7536, 5.7536, 5.7536, 5.7944, 5.7944, 5.7944, 5.7944, 5.7944, 5.7944, 5.7944, 5.7944, 5.7944, 5.7944, 5.7944, 5.7944, 5.7944, 5.7944, 5.7944, 5.7944, 5.7944, 5.7944, 5.7944, 5.7944, 5.7944, 5.7944, 5.7944, 5.7944, 5.7944, 5.7944, 5.7944, 5.7944, 5.7944, 5.8344, 5.8344, 5.8344, 5.8344, 5.8344, 5.8344, 5.8344, 5.8344, 5.8344, 5.8344, 5.8344, 5.8344, 5.8344, 5.8344, 5.8344, 5.8344, 5.8344, 5.8344, 5.8344, 5.8344, 5.8344, 5.8344, 5.8344, 5.8344, 5.8344, 5.8344, 5.8344, 5.8344, 5.8344, 5.8734, 5.8734, 5.8734, 5.8734, 5.8734, 5.8734, 5.8734, 5.8734, 5.8734, 5.8734, 5.8734, 5.8734, 5.8734, 5.8734, 5.8734, 5.8734, 5.8734, 5.8734, 5.8734, 5.8734, 5.8734, 5.8734, 5.8734, 5.8734, 5.8734, 5.8734, 5.8734, 5.8734, 5.8734, 5.9114, 5.9114, 5.9114, 5.9114, 5.9114, 5.9114, 5.9114, 5.9114, 5.9114, 5.9114, 5.9114, 5.9114, 5.9114, 5.9114, 5.9114, 5.9114, 5.9114, 5.9114, 5.9114, 5.9114, 5.9114, 5.9114, 5.9114, 5.9114, 5.9114, 5.9114, 5.9114, 5.9114, 5.9114, 5.9481, 5.9481, 5.9481, 5.9481, 5.9481, 5.9481, 5.9481, 5.9481, 5.9481, 5.9481, 5.9481, 5.9481, 5.9481, 5.9481, 5.9481, 5.9481, 5.9481, 5.9481, 5.9481, 5.9481, 5.9481, 5.9481, 5.9481, 5.9481, 5.9481, 5.9481, 5.9481, 5.9481, 5.9481, 5.9836, 5.9836, 5.9836, 5.9836, 5.9836, 5.9836, 5.9836, 5.9836, 5.9836, 5.9836, 5.9836, 5.9836, 5.9836, 5.9836, 5.9836, 5.9836, 5.9836, 5.9836, 5.9836, 5.9836, 5.9836, 5.9836, 5.9836, 5.9836, 5.9836, 5.9836, 5.9836, 5.9836, 5.9836, 6.0175, 6.0175, 6.0175, 6.0175, 6.0175, 6.0175, 6.0175, 6.0175, 6.0175, 6.0175, 6.0175, 6.0175, 6.0175, 6.0175, 6.0175, 6.0175, 6.0175, 6.0175, 6.0175, 6.0175, 6.0175, 6.0175, 6.0175, 6.0175, 6.0175, 6.0175, 6.0175, 6.0175, 6.0175, 6.05, 6.05, 6.05, 6.05, 6.05, 6.05, 6.05, 6.05, 6.05, 6.05, 6.05, 6.05, 6.05, 6.05, 6.05, 6.05, 6.05, 6.05, 6.05, 6.05, 6.05, 6.05, 6.05, 6.05, 6.05, 6.05, 6.05, 6.05, 6.05, 6.0807, 6.0807, 6.0807, 6.0807, 6.0807, 6.0807, 6.0807, 6.0807, 6.0807, 6.0807, 6.0807, 6.0807, 6.0807, 6.0807, 6.0807, 6.0807, 6.0807, 6.0807, 6.0807, 6.0807, 6.0807, 6.0807, 6.0807, 6.0807, 6.0807, 6.0807, 6.0807, 6.0807, 6.0807, 6.1097, 6.1097, 6.1097, 6.1097, 6.1097, 6.1097, 6.1097, 6.1097, 6.1097, 6.1097, 6.1097, 6.1097, 6.1097, 6.1097, 6.1097, 6.1097, 6.1097, 6.1097, 6.1097, 6.1097, 6.1097, 6.1097, 6.1097, 6.1097, 6.1097, 6.1097, 6.1097, 6.1097, 6.1097, 6.1367, 6.1367, 6.1367, 6.1367, 6.1367, 6.1367, 6.1367, 6.1367, 6.1367, 6.1367, 6.1367, 6.1367, 6.1367, 6.1367, 6.1367, 6.1367, 6.1367, 6.1367, 6.1367, 6.1367, 6.1367, 6.1367, 6.1367, 6.1367, 6.1367, 6.1367, 6.1367, 6.1367, 6.1367, 6.1618, 6.1618, 6.1618, 6.1618, 6.1618, 6.1618, 6.1618, 6.1618, 6.1618, 6.1618, 6.1618, 6.1618, 6.1618, 6.1618, 6.1618, 6.1618, 6.1618, 6.1618, 6.1618, 6.1618, 6.1618, 6.1618, 6.1618, 6.1618, 6.1618, 6.1618, 6.1618, 6.1618, 6.1618, 6.1847, 6.1847, 6.1847, 6.1847, 6.1847, 6.1847, 6.1847, 6.1847, 6.1847, 6.1847, 6.1847, 6.1847, 6.1847, 6.1847, 6.1847, 6.1847, 6.1847, 6.1847, 6.1847, 6.1847, 6.1847, 6.1847, 6.1847, 6.1847, 6.1847, 6.1847, 6.1847, 6.1847, 6.1847, 6.2054, 6.2054, 6.2054, 6.2054, 6.2054, 6.2054, 6.2054, 6.2054, 6.2054, 6.2054, 6.2054, 6.2054, 6.2054, 6.2054, 6.2054, 6.2054, 6.2054, 6.2054, 6.2054, 6.2054, 6.2054, 6.2054, 6.2054, 6.2054, 6.2054, 6.2054, 6.2054, 6.2054, 6.2054, 6.2238, 6.2238, 6.2238, 6.2238, 6.2238, 6.2238, 6.2238, 6.2238, 6.2238, 6.2238, 6.2238, 6.2238, 6.2238, 6.2238, 6.2238, 6.2238, 6.2238, 6.2238, 6.2238, 6.2238, 6.2238, 6.2238, 6.2238, 6.2238, 6.2238, 6.2238, 6.2238, 6.2238, 6.2238, 6.2399, 6.2399, 6.2399, 6.2399, 6.2399, 6.2399, 6.2399, 6.2399, 6.2399, 6.2399, 6.2399, 6.2399, 6.2399, 6.2399, 6.2399, 6.2399, 6.2399, 6.2399, 6.2399, 6.2399, 6.2399, 6.2399, 6.2399, 6.2399, 6.2399, 6.2399, 6.2399, 6.2399, 6.2399, 6.2535, 6.2535, 6.2535, 6.2535, 6.2535, 6.2535, 6.2535, 6.2535, 6.2535, 6.2535, 6.2535, 6.2535, 6.2535, 6.2535, 6.2535, 6.2535, 6.2535, 6.2535, 6.2535, 6.2535, 6.2535, 6.2535, 6.2535, 6.2535, 6.2535, 6.2535, 6.2535, 6.2535, 6.2535, 6.2646, 6.2646, 6.2646, 6.2646, 6.2646, 6.2646, 6.2646, 6.2646, 6.2646, 6.2646, 6.2646, 6.2646, 6.2646, 6.2646, 6.2646, 6.2646, 6.2646, 6.2646, 6.2646, 6.2646, 6.2646, 6.2646, 6.2646, 6.2646, 6.2646, 6.2646, 6.2646, 6.2646, 6.2646, 6.2732, 6.2732, 6.2732, 6.2732, 6.2732, 6.2732, 6.2732, 6.2732, 6.2732, 6.2732, 6.2732, 6.2732, 6.2732, 6.2732, 6.2732, 6.2732, 6.2732, 6.2732, 6.2732, 6.2732, 6.2732, 6.2732, 6.2732, 6.2732, 6.2732, 6.2732, 6.2732, 6.2732, 6.2732, 6.2791, 6.2791, 6.2791, 6.2791, 6.2791, 6.2791, 6.2791, 6.2791, 6.2791, 6.2791, 6.2791, 6.2791, 6.2791, 6.2791, 6.2791, 6.2791, 6.2791, 6.2791, 6.2791, 6.2791, 6.2791, 6.2791, 6.2791, 6.2791, 6.2791, 6.2791, 6.2791, 6.2791, 6.2791, 6.2824, 6.2824, 6.2824, 6.2824, 6.2824, 6.2824, 6.2824, 6.2824, 6.2824, 6.2824, 6.2824, 6.2824, 6.2824, 6.2824, 6.2824, 6.2824, 6.2824, 6.2824, 6.2824, 6.2824, 6.2824, 6.2824, 6.2824, 6.2824, 6.2824, 6.2824, 6.2824, 6.2824, 6.2824}, {1.4368e-08, 1.7501e-07, 6.6745e-07, 1.6601e-06, 3.2952e-06, 5.6833e-06, 8.8995e-06, 1.2983e-05, 1.7938e-05, 2.3736e-05, 3.0322e-05, 3.7614e-05, 4.5514e-05, 5.3904e-05, 6.2659e-05, 7.1645e-05, 8.0723e-05, 8.9753e-05, 9.8597e-05, 0.00010712, 0.0001152, 0.00012271, 0.00012954, 0.00013558, 0.00014076, 0.000145, 0.00014823, 0.00015041, 0.00015151, 3.338e-08, 4.0657e-07, 1.5506e-06, 3.8566e-06, 7.6554e-06, 1.3203e-05, 2.0675e-05, 3.0161e-05, 4.1672e-05, 5.5143e-05, 7.0443e-05, 8.7384e-05, 0.00010574, 0.00012523, 0.00014557, 0.00016644, 0.00018753, 0.00020851, 0.00022906, 0.00024886, 0.00026763, 0.00028507, 0.00030093, 0.00031498, 0.00032702, 0.00033686, 0.00034437, 0.00034943, 0.00035198, 5.2261e-08, 6.3653e-07, 2.4276e-06, 6.0381e-06, 1.1985e-05, 2.0671e-05, 3.2369e-05, 4.7222e-05, 6.5244e-05, 8.6334e-05, 0.00011029, 0.00013681, 0.00016554, 0.00019606, 0.0002279, 0.00026059, 0.0002936, 0.00032645, 0.00035862, 0.00038963, 0.000419, 0.00044631, 0.00047115, 0.00049315, 0.00051199, 0.0005274, 0.00053915, 0.00054708, 0.00055108, 7.0896e-08, 8.6352e-07, 3.2933e-06, 8.1912e-06, 1.6259e-05, 2.8043e-05, 4.3912e-05, 6.4061e-05, 8.8509e-05, 0.00011712, 0.00014961, 0.0001856, 0.00022457, 0.00026597, 0.00030917, 0.00035351, 0.0003983, 0.00044286, 0.0004865, 0.00052856, 0.00056841, 0.00060546, 0.00063915, 0.000669, 0.00069456, 0.00071546, 0.00073141, 0.00074217, 0.00074759, 8.9201e-08, 1.0865e-06, 4.1436e-06, 1.0306e-05, 2.0457e-05, 3.5283e-05, 5.5249e-05, 8.06e-05, 0.00011136, 0.00014736, 0.00018824, 0.00023352, 0.00028255, 0.00033464, 0.000389, 0.00044478, 0.00050114, 0.0005572, 0.00061211, 0.00066503, 0.00071517, 0.00076178, 0.00080417, 0.00084172, 0.00087388, 0.00090018, 0.00092025, 0.00093378, 0.0009406, 1.0709e-07, 1.3044e-06, 4.9748e-06, 1.2373e-05, 2.4561e-05, 4.236e-05, 6.6332e-05, 9.6768e-05, 0.0001337, 0.00017692, 0.000226, 0.00028036, 0.00033923, 0.00040177, 0.00046703, 0.000534, 0.00060166, 0.00066897, 0.00073489, 0.00079843, 0.00085863, 0.00091459, 0.00096548, 0.0010106, 0.0010492, 0.0010808, 0.0011048, 0.0011211, 0.0011293, 1.245e-07, 1.5164e-06, 5.7834e-06, 1.4385e-05, 2.8553e-05, 4.9246e-05, 7.7114e-05, 0.0001125, 0.00015543, 0.00020567, 0.00026274, 0.00032593, 0.00039437, 0.00046708, 0.00054294, 0.0006208, 0.00069946, 0.0007777, 0.00085434, 0.00092821, 0.00099819, 0.0010633, 0.0011224, 0.0011748, 0.0012197, 0.0012564, 0.0012844, 0.0013033, 0.0013128, 1.4136e-07, 1.7217e-06, 6.5663e-06, 1.6332e-05, 3.2418e-05, 5.5912e-05, 8.7553e-05, 0.00012773, 0.00017647, 0.00023352, 0.00029831, 0.00037005, 0.00044776, 0.00053031, 0.00061644, 0.00070484, 0.00079415, 0.00088298, 0.00097, 0.0010539, 0.0011333, 0.0012072, 0.0012744, 0.0013339, 0.0013848, 0.0014265, 0.0014583, 0.0014798, 0.0014906, 1.576e-07, 1.9195e-06, 7.3207e-06, 1.8208e-05, 3.6143e-05, 6.2336e-05, 9.7612e-05, 0.0001424, 0.00019675, 0.00026035, 0.00033258, 0.00041256, 0.00049921, 0.00059123, 0.00068726, 0.00078582, 0.00088539, 0.00098443, 0.0010814, 0.0011749, 0.0012635, 0.0013459, 0.0014208, 0.0014871, 0.0015439, 0.0015904, 0.0016258, 0.0016498, 0.0016618, 1.7317e-07, 2.1092e-06, 8.0442e-06, 2.0008e-05, 3.9715e-05, 6.8496e-05, 0.00010726, 0.00015647, 0.00021619, 0.00028607, 0.00036544, 0.00045333, 0.00054854, 0.00064966, 0.00075518, 0.00086347, 0.00097288, 0.0010817, 0.0011883, 0.001291, 0.0013884, 0.0014789, 0.0015612, 0.0016341, 0.0016965, 0.0017476, 0.0017865, 0.0018128, 0.001826, 1.8803e-07, 2.2902e-06, 8.7344e-06, 2.1724e-05, 4.3122e-05, 7.4374e-05, 0.00011646, 0.0001699, 0.00023474, 0.00031062, 0.0003968, 0.00049223, 0.0005956, 0.00070541, 0.00081998, 0.00093757, 0.0010564, 0.0011745, 0.0012903, 0.0014018, 0.0015075, 0.0016058, 0.0016951, 0.0017743, 0.0018421, 0.0018975, 0.0019398, 0.0019683, 0.0019827, 2.0214e-07, 2.462e-06, 9.3897e-06, 2.3354e-05, 4.6358e-05, 7.9953e-05, 0.0001252, 0.00018264, 0.00025235, 0.00033392, 0.00042657, 0.00052916, 0.00064029, 0.00075833, 0.00088149, 0.0010079, 0.0011356, 0.0012626, 0.0013871, 0.001507, 0.0016206, 0.0017262, 0.0018223, 0.0019074, 0.0019803, 0.0020399, 0.0020853, 0.002116, 0.0021315, 2.1546e-07, 2.6242e-06, 1.0008e-05, 2.4893e-05, 4.9413e-05, 8.5222e-05, 0.00013345, 0.00019468, 0.00026898, 0.00035593, 0.00045468, 0.00056403, 0.00068248, 0.0008083, 0.00093958, 0.0010743, 0.0012104, 0.0013459, 0.0014785, 0.0016063, 0.0017274, 0.00184, 0.0019424, 0.0020331, 0.0021108, 0.0021743, 0.0022228, 0.0022555, 0.0022719, 2.2796e-07, 2.7766e-06, 1.059e-05, 2.6338e-05, 5.2281e-05, 9.017e-05, 0.0001412, 0.00020598, 0.0002846, 0.00037659, 0.00048108, 0.00059678, 0.00072211, 0.00085523, 0.00099413, 0.0011367, 0.0012807, 0.001424, 0.0015643, 0.0016996, 0.0018277, 0.0019468, 0.0020552, 0.0021511, 0.0022333, 0.0023005, 0.0023518, 0.0023864, 0.0024038, 2.3964e-07, 2.9188e-06, 1.1132e-05, 2.7687e-05, 5.4959e-05, 9.4788e-05, 0.00014843, 0.00021653, 0.00029917, 0.00039588, 0.00050572, 0.00062734, 0.00075909, 0.00089903, 0.0010451, 0.0011949, 0.0013463, 0.0014969, 0.0016444, 0.0017866, 0.0019213, 0.0020465, 0.0021604, 0.0022613, 0.0023477, 0.0024184, 0.0024723, 0.0025086, 0.0025269, 2.5047e-07, 3.0507e-06, 1.1635e-05, 2.8938e-05, 5.7442e-05, 9.9071e-05, 0.00015514, 0.00022632, 0.00031269, 0.00041377, 0.00052857, 0.00065569, 0.00079339, 0.00093965, 0.0010923, 0.0012489, 0.0014071, 0.0015646, 0.0017187, 0.0018673, 0.0020081, 0.002139, 0.002258, 0.0023635, 0.0024538, 0.0025276, 0.002584, 0.002622, 0.0026411, 2.6044e-07, 3.1721e-06, 1.2098e-05, 3.009e-05, 5.9728e-05, 0.00010301, 0.00016131, 0.00023532, 0.00032514, 0.00043024, 0.0005496, 0.00068179, 0.00082496, 0.00097705, 0.0011357, 0.0012986, 0.0014631, 0.0016268, 0.0017871, 0.0019417, 0.0020881, 0.0022241, 0.0023479, 0.0024575, 0.0025514, 0.0026282, 0.0026868, 0.0027263, 0.0027462, 2.6954e-07, 3.283e-06, 1.2521e-05, 3.1142e-05, 6.1816e-05, 0.00010661, 0.00016695, 0.00024355, 0.0003365, 0.00044527, 0.00056881, 0.00070561, 0.00085379, 0.0010112, 0.0011754, 0.001344, 0.0015143, 0.0016837, 0.0018496, 0.0020095, 0.002161, 0.0023019, 0.00243, 0.0025434, 0.0026406, 0.0027201, 0.0027807, 0.0028216, 0.0028422, 2.7777e-07, 3.3832e-06, 1.2903e-05, 3.2093e-05, 6.3703e-05, 0.00010987, 0.00017204, 0.00025099, 0.00034677, 0.00045887, 0.00058618, 0.00072716, 0.00087987, 0.0010421, 0.0012113, 0.001385, 0.0015605, 0.0017351, 0.0019061, 0.0020709, 0.002227, 0.0023722, 0.0025042, 0.0026211, 0.0027212, 0.0028031, 0.0028656, 0.0029078, 0.002929, 2.8513e-07, 3.4728e-06, 1.3245e-05, 3.2943e-05, 6.5391e-05, 0.00011278, 0.0001766, 0.00025763, 0.00035596, 0.00047102, 0.00060171, 0.00074642, 0.00090317, 0.0010697, 0.0012434, 0.0014217, 0.0016019, 0.0017811, 0.0019566, 0.0021257, 0.002286, 0.002435, 0.0025705, 0.0026905, 0.0027933, 0.0028774, 0.0029415, 0.0029848, 0.0030066, 2.9161e-07, 3.5518e-06, 1.3546e-05, 3.3692e-05, 6.6878e-05, 0.00011534, 0.00018062, 0.00026349, 0.00036405, 0.00048173, 0.00061539, 0.00076339, 0.00092371, 0.001094, 0.0012717, 0.0014541, 0.0016383, 0.0018216, 0.0020011, 0.0021741, 0.002338, 0.0024904, 0.002629, 0.0027517, 0.0028568, 0.0029428, 0.0030084, 0.0030527, 0.003075, 2.9722e-07, 3.6202e-06, 1.3807e-05, 3.434e-05, 6.8165e-05, 0.00011756, 0.00018409, 0.00026856, 0.00037106, 0.00049101, 0.00062724, 0.00077809, 0.00094149, 0.0011151, 0.0012962, 0.001482, 0.0016698, 0.0018566, 0.0020396, 0.0022159, 0.002383, 0.0025383, 0.0026796, 0.0028047, 0.0029118, 0.0029995, 0.0030663, 0.0031114, 0.0031341, 3.0197e-07, 3.6779e-06, 1.4027e-05, 3.4888e-05, 6.9253e-05, 0.00011944, 0.00018703, 0.00027285, 0.00037698, 0.00049884, 0.00063725, 0.00079051, 0.00095652, 0.0011329, 0.0013168, 0.0015057, 0.0016965, 0.0018862, 0.0020721, 0.0022513, 0.002421, 0.0025788, 0.0027223, 0.0028494, 0.0029583, 0.0030473, 0.0031152, 0.0031611, 0.0031842, 3.0584e-07, 3.7252e-06, 1.4207e-05, 3.5336e-05, 7.0142e-05, 0.00012097, 0.00018943, 0.00027635, 0.00038182, 0.00050525, 0.00064543, 0.00080065, 0.00096879, 0.0011474, 0.0013338, 0.001525, 0.0017182, 0.0019105, 0.0020987, 0.0022802, 0.0024521, 0.0026119, 0.0027573, 0.002886, 0.0029963, 0.0030864, 0.0031552, 0.0032017, 0.003225, 3.0885e-07, 3.7618e-06, 1.4347e-05, 3.5684e-05, 7.0832e-05, 0.00012217, 0.0001913, 0.00027907, 0.00038558, 0.00051022, 0.00065178, 0.00080854, 0.00097833, 0.0011587, 0.0013469, 0.00154, 0.0017352, 0.0019293, 0.0021194, 0.0023026, 0.0024762, 0.0026376, 0.0027844, 0.0029144, 0.0030258, 0.0031168, 0.0031863, 0.0032332, 0.0032568, 3.11e-07, 3.788e-06, 1.4447e-05, 3.5932e-05, 7.1325e-05, 0.00012302, 0.00019263, 0.00028102, 0.00038826, 0.00051377, 0.00065632, 0.00081416, 0.00098514, 0.0011668, 0.0013563, 0.0015508, 0.0017472, 0.0019427, 0.0021341, 0.0023187, 0.0024935, 0.002656, 0.0028038, 0.0029347, 0.0030468, 0.0031385, 0.0032085, 0.0032557, 0.0032795, 3.1229e-07, 3.8037e-06, 1.4507e-05, 3.6081e-05, 7.1621e-05, 0.00012353, 0.00019343, 0.00028218, 0.00038987, 0.0005159, 0.00065904, 0.00081754, 0.00098922, 0.0011716, 0.0013619, 0.0015572, 0.0017545, 0.0019507, 0.002143, 0.0023283, 0.0025038, 0.002667, 0.0028154, 0.0029469, 0.0030595, 0.0031515, 0.0032218, 0.0032692, 0.003293, 3.1272e-07, 3.8089e-06, 1.4527e-05, 3.6131e-05, 7.1719e-05, 0.0001237, 0.00019369, 0.00028257, 0.00039041, 0.00051661, 0.00065994, 0.00081866, 0.00099058, 0.0011732, 0.0013638, 0.0015593, 0.0017569, 0.0019534, 0.0021459, 0.0023315, 0.0025073, 0.0026707, 0.0028193, 0.0029509, 0.0030637, 0.0031559, 0.0032262, 0.0032737, 0.0032976, 3.1229e-07, 3.8037e-06, 1.4507e-05, 3.6081e-05, 7.1621e-05, 0.00012353, 0.00019343, 0.00028218, 0.00038987, 0.0005159, 0.00065904, 0.00081754, 0.00098922, 0.0011716, 0.0013619, 0.0015572, 0.0017545, 0.0019507, 0.002143, 0.0023283, 0.0025038, 0.002667, 0.0028154, 0.0029469, 0.0030595, 0.0031515, 0.0032218, 0.0032692, 0.003293, 3.11e-07, 3.788e-06, 1.4447e-05, 3.5932e-05, 7.1325e-05, 0.00012302, 0.00019263, 0.00028102, 0.00038826, 0.00051377, 0.00065632, 0.00081416, 0.00098514, 0.0011668, 0.0013563, 0.0015508, 0.0017472, 0.0019427, 0.0021341, 0.0023187, 0.0024935, 0.002656, 0.0028038, 0.0029347, 0.0030468, 0.0031385, 0.0032085, 0.0032557, 0.0032795, 3.0885e-07, 3.7618e-06, 1.4347e-05, 3.5684e-05, 7.0832e-05, 0.00012217, 0.0001913, 0.00027907, 0.00038558, 0.00051022, 0.00065178, 0.00080854, 0.00097833, 0.0011587, 0.0013469, 0.00154, 0.0017352, 0.0019293, 0.0021194, 0.0023026, 0.0024762, 0.0026376, 0.0027844, 0.0029144, 0.0030258, 0.0031168, 0.0031863, 0.0032332, 0.0032568, 3.0584e-07, 3.7252e-06, 1.4207e-05, 3.5336e-05, 7.0142e-05, 0.00012097, 0.00018943, 0.00027635, 0.00038182, 0.00050525, 0.00064543, 0.00080065, 0.00096879, 0.0011474, 0.0013338, 0.001525, 0.0017182, 0.0019105, 0.0020987, 0.0022802, 0.0024521, 0.0026119, 0.0027573, 0.002886, 0.0029963, 0.0030864, 0.0031552, 0.0032017, 0.003225, 3.0197e-07, 3.6779e-06, 1.4027e-05, 3.4888e-05, 6.9253e-05, 0.00011944, 0.00018703, 0.00027285, 0.00037698, 0.00049884, 0.00063725, 0.00079051, 0.00095652, 0.0011329, 0.0013168, 0.0015057, 0.0016965, 0.0018862, 0.0020721, 0.0022513, 0.002421, 0.0025788, 0.0027223, 0.0028494, 0.0029583, 0.0030473, 0.0031152, 0.0031611, 0.0031842, 2.9722e-07, 3.6202e-06, 1.3807e-05, 3.434e-05, 6.8165e-05, 0.00011756, 0.00018409, 0.00026856, 0.00037106, 0.00049101, 0.00062724, 0.00077809, 0.00094149, 0.0011151, 0.0012962, 0.001482, 0.0016698, 0.0018566, 0.0020396, 0.0022159, 0.002383, 0.0025383, 0.0026796, 0.0028047, 0.0029118, 0.0029995, 0.0030663, 0.0031114, 0.0031341, 2.9161e-07, 3.5518e-06, 1.3546e-05, 3.3692e-05, 6.6878e-05, 0.00011534, 0.00018062, 0.00026349, 0.00036405, 0.00048173, 0.00061539, 0.00076339, 0.00092371, 0.001094, 0.0012717, 0.0014541, 0.0016383, 0.0018216, 0.0020011, 0.0021741, 0.002338, 0.0024904, 0.002629, 0.0027517, 0.0028568, 0.0029428, 0.0030084, 0.0030527, 0.003075, 2.8513e-07, 3.4728e-06, 1.3245e-05, 3.2943e-05, 6.5391e-05, 0.00011278, 0.0001766, 0.00025763, 0.00035596, 0.00047102, 0.00060171, 0.00074642, 0.00090317, 0.0010697, 0.0012434, 0.0014217, 0.0016019, 0.0017811, 0.0019566, 0.0021257, 0.002286, 0.002435, 0.0025705, 0.0026905, 0.0027933, 0.0028774, 0.0029415, 0.0029848, 0.0030066, 2.7777e-07, 3.3832e-06, 1.2903e-05, 3.2093e-05, 6.3703e-05, 0.00010987, 0.00017204, 0.00025099, 0.00034677, 0.00045887, 0.00058618, 0.00072716, 0.00087987, 0.0010421, 0.0012113, 0.001385, 0.0015605, 0.0017351, 0.0019061, 0.0020709, 0.002227, 0.0023722, 0.0025042, 0.0026211, 0.0027212, 0.0028031, 0.0028656, 0.0029078, 0.002929, 2.6954e-07, 3.283e-06, 1.2521e-05, 3.1142e-05, 6.1816e-05, 0.00010661, 0.00016695, 0.00024355, 0.0003365, 0.00044527, 0.00056881, 0.00070561, 0.00085379, 0.0010112, 0.0011754, 0.001344, 0.0015143, 0.0016837, 0.0018496, 0.0020095, 0.002161, 0.0023019, 0.00243, 0.0025434, 0.0026406, 0.0027201, 0.0027807, 0.0028216, 0.0028422, 2.6044e-07, 3.1721e-06, 1.2098e-05, 3.009e-05, 5.9728e-05, 0.00010301, 0.00016131, 0.00023532, 0.00032514, 0.00043024, 0.0005496, 0.00068179, 0.00082496, 0.00097705, 0.0011357, 0.0012986, 0.0014631, 0.0016268, 0.0017871, 0.0019417, 0.0020881, 0.0022241, 0.0023479, 0.0024575, 0.0025514, 0.0026282, 0.0026868, 0.0027263, 0.0027462, 2.5047e-07, 3.0507e-06, 1.1635e-05, 2.8938e-05, 5.7442e-05, 9.9071e-05, 0.00015514, 0.00022632, 0.00031269, 0.00041377, 0.00052857, 0.00065569, 0.00079339, 0.00093965, 0.0010923, 0.0012489, 0.0014071, 0.0015646, 0.0017187, 0.0018673, 0.0020081, 0.002139, 0.002258, 0.0023635, 0.0024538, 0.0025276, 0.002584, 0.002622, 0.0026411, 2.3964e-07, 2.9188e-06, 1.1132e-05, 2.7687e-05, 5.4959e-05, 9.4788e-05, 0.00014843, 0.00021653, 0.00029917, 0.00039588, 0.00050572, 0.00062734, 0.00075909, 0.00089903, 0.0010451, 0.0011949, 0.0013463, 0.0014969, 0.0016444, 0.0017866, 0.0019213, 0.0020465, 0.0021604, 0.0022613, 0.0023477, 0.0024184, 0.0024723, 0.0025086, 0.0025269, 2.2796e-07, 2.7766e-06, 1.059e-05, 2.6338e-05, 5.2281e-05, 9.017e-05, 0.0001412, 0.00020598, 0.0002846, 0.00037659, 0.00048108, 0.00059678, 0.00072211, 0.00085523, 0.00099413, 0.0011367, 0.0012807, 0.001424, 0.0015643, 0.0016996, 0.0018277, 0.0019468, 0.0020552, 0.0021511, 0.0022333, 0.0023005, 0.0023518, 0.0023864, 0.0024038, 2.1546e-07, 2.6242e-06, 1.0008e-05, 2.4893e-05, 4.9413e-05, 8.5222e-05, 0.00013345, 0.00019468, 0.00026898, 0.00035593, 0.00045468, 0.00056403, 0.00068248, 0.0008083, 0.00093958, 0.0010743, 0.0012104, 0.0013459, 0.0014785, 0.0016063, 0.0017274, 0.00184, 0.0019424, 0.0020331, 0.0021108, 0.0021743, 0.0022228, 0.0022555, 0.0022719, 2.0214e-07, 2.462e-06, 9.3897e-06, 2.3354e-05, 4.6358e-05, 7.9953e-05, 0.0001252, 0.00018264, 0.00025235, 0.00033392, 0.00042657, 0.00052916, 0.00064029, 0.00075833, 0.00088149, 0.0010079, 0.0011356, 0.0012626, 0.0013871, 0.001507, 0.0016206, 0.0017262, 0.0018223, 0.0019074, 0.0019803, 0.0020399, 0.0020853, 0.002116, 0.0021315, 1.8803e-07, 2.2902e-06, 8.7344e-06, 2.1724e-05, 4.3122e-05, 7.4374e-05, 0.00011646, 0.0001699, 0.00023474, 0.00031062, 0.0003968, 0.00049223, 0.0005956, 0.00070541, 0.00081998, 0.00093757, 0.0010564, 0.0011745, 0.0012903, 0.0014018, 0.0015075, 0.0016058, 0.0016951, 0.0017743, 0.0018421, 0.0018975, 0.0019398, 0.0019683, 0.0019827, 1.7317e-07, 2.1092e-06, 8.0442e-06, 2.0008e-05, 3.9715e-05, 6.8496e-05, 0.00010726, 0.00015647, 0.00021619, 0.00028607, 0.00036544, 0.00045333, 0.00054854, 0.00064966, 0.00075518, 0.00086347, 0.00097288, 0.0010817, 0.0011883, 0.001291, 0.0013884, 0.0014789, 0.0015612, 0.0016341, 0.0016965, 0.0017476, 0.0017865, 0.0018128, 0.001826, 1.576e-07, 1.9195e-06, 7.3207e-06, 1.8208e-05, 3.6143e-05, 6.2336e-05, 9.7612e-05, 0.0001424, 0.00019675, 0.00026035, 0.00033258, 0.00041256, 0.00049921, 0.00059123, 0.00068726, 0.00078582, 0.00088539, 0.00098443, 0.0010814, 0.0011749, 0.0012635, 0.0013459, 0.0014208, 0.0014871, 0.0015439, 0.0015904, 0.0016258, 0.0016498, 0.0016618, 1.4136e-07, 1.7217e-06, 6.5663e-06, 1.6332e-05, 3.2418e-05, 5.5912e-05, 8.7553e-05, 0.00012773, 0.00017647, 0.00023352, 0.00029831, 0.00037005, 0.00044776, 0.00053031, 0.00061644, 0.00070484, 0.00079415, 0.00088298, 0.00097, 0.0010539, 0.0011333, 0.0012072, 0.0012744, 0.0013339, 0.0013848, 0.0014265, 0.0014583, 0.0014798, 0.0014906, 1.245e-07, 1.5164e-06, 5.7834e-06, 1.4385e-05, 2.8553e-05, 4.9246e-05, 7.7114e-05, 0.0001125, 0.00015543, 0.00020567, 0.00026274, 0.00032593, 0.00039437, 0.00046708, 0.00054294, 0.0006208, 0.00069946, 0.0007777, 0.00085434, 0.00092821, 0.00099819, 0.0010633, 0.0011224, 0.0011748, 0.0012197, 0.0012564, 0.0012844, 0.0013033, 0.0013128, 1.0709e-07, 1.3044e-06, 4.9748e-06, 1.2373e-05, 2.4561e-05, 4.236e-05, 6.6332e-05, 9.6768e-05, 0.0001337, 0.00017692, 0.000226, 0.00028036, 0.00033923, 0.00040177, 0.00046703, 0.000534, 0.00060166, 0.00066897, 0.00073489, 0.00079843, 0.00085863, 0.00091459, 0.00096548, 0.0010106, 0.0010492, 0.0010808, 0.0011048, 0.0011211, 0.0011293, 8.9201e-08, 1.0865e-06, 4.1436e-06, 1.0306e-05, 2.0457e-05, 3.5283e-05, 5.5249e-05, 8.06e-05, 0.00011136, 0.00014736, 0.00018824, 0.00023352, 0.00028255, 0.00033464, 0.000389, 0.00044478, 0.00050114, 0.0005572, 0.00061211, 0.00066503, 0.00071517, 0.00076178, 0.00080417, 0.00084172, 0.00087388, 0.00090018, 0.00092025, 0.00093378, 0.0009406, 7.0896e-08, 8.6352e-07, 3.2933e-06, 8.1912e-06, 1.6259e-05, 2.8043e-05, 4.3912e-05, 6.4061e-05, 8.8509e-05, 0.00011712, 0.00014961, 0.0001856, 0.00022457, 0.00026597, 0.00030917, 0.00035351, 0.0003983, 0.00044286, 0.0004865, 0.00052856, 0.00056841, 0.00060546, 0.00063915, 0.000669, 0.00069456, 0.00071546, 0.00073141, 0.00074217, 0.00074759, 5.2261e-08, 6.3653e-07, 2.4276e-06, 6.0381e-06, 1.1985e-05, 2.0671e-05, 3.2369e-05, 4.7222e-05, 6.5244e-05, 8.6334e-05, 0.00011029, 0.00013681, 0.00016554, 0.00019606, 0.0002279, 0.00026059, 0.0002936, 0.00032645, 0.00035862, 0.00038963, 0.000419, 0.00044631, 0.00047115, 0.00049315, 0.00051199, 0.0005274, 0.00053915, 0.00054708, 0.00055108, 3.338e-08, 4.0657e-07, 1.5506e-06, 3.8566e-06, 7.6554e-06, 1.3203e-05, 2.0675e-05, 3.0161e-05, 4.1672e-05, 5.5143e-05, 7.0443e-05, 8.7384e-05, 0.00010574, 0.00012523, 0.00014557, 0.00016644, 0.00018753, 0.00020851, 0.00022906, 0.00024886, 0.00026763, 0.00028507, 0.00030093, 0.00031498, 0.00032702, 0.00033686, 0.00034437, 0.00034943, 0.00035198, 1.4368e-08, 1.7501e-07, 6.6745e-07, 1.6601e-06, 3.2952e-06, 5.6833e-06, 8.8995e-06, 1.2983e-05, 1.7938e-05, 2.3736e-05, 3.0322e-05, 3.7614e-05, 4.5514e-05, 5.3904e-05, 6.2659e-05, 7.1645e-05, 8.0723e-05, 8.9753e-05, 9.8597e-05, 0.00010712, 0.0001152, 0.00012271, 0.00012954, 0.00013558, 0.00014076, 0.000145, 0.00014823, 0.00015041, 0.00015151}}}; } } // namespace Dune::XT::Data
115.612625
119
0.56929
[ "vector" ]
15a2fd721b5b2fcd4711ee1fa7211167e3e706ba
1,024
cpp
C++
src/source/zombye/rendering/screen_quad.cpp
kasoki/project-zombye
30d3dc0b7e6a929162fa0ddfb77dd10bc9bf4f05
[ "MIT" ]
1
2019-05-29T01:37:44.000Z
2019-05-29T01:37:44.000Z
src/source/zombye/rendering/screen_quad.cpp
atomicptr/project-zombye
30d3dc0b7e6a929162fa0ddfb77dd10bc9bf4f05
[ "MIT" ]
1
2015-08-31T22:44:27.000Z
2015-08-31T22:44:27.000Z
src/source/zombye/rendering/screen_quad.cpp
kasoki/project-zombye
30d3dc0b7e6a929162fa0ddfb77dd10bc9bf4f05
[ "MIT" ]
null
null
null
#include <glm/glm.hpp> #include <zombye/rendering/rendering_system.hpp> #include <zombye/rendering/screen_quad.hpp> #include <zombye/rendering/mesh.hpp> namespace zombye { screen_quad::screen_quad(vertex_layout& layout, const glm::vec2& top_left, const glm::vec2& bottom_right) : vbo_{6 * sizeof(vertex), GL_STATIC_DRAW} { glm::vec3 zero{0.f}; vertex vertices[6] = { {glm::vec3{top_left, 0.f}, glm::vec2{0.f, 1.f}, zero, zero}, {glm::vec3{top_left.x, bottom_right.y, 0.f}, glm::vec2{0.f, 0.f}, zero, zero}, {glm::vec3{bottom_right.x, top_left.y, 0.f}, glm::vec2{1.f, 1.f}, zero, zero}, {glm::vec3{top_left.x, bottom_right.y, 0.f}, glm::vec2{0.f, 0.f}, zero, zero}, {glm::vec3{bottom_right, 0.f}, glm::vec2{1.f, 0.f}, zero, zero}, {glm::vec3{bottom_right.x, top_left.y, 0.f}, glm::vec2{1.f, 1.f}, zero, zero} }; vbo_.data(6 * sizeof(vertex), vertices); layout.setup_layout(vao_, &vbo_); } void screen_quad::draw() const { vao_.bind(); glDrawArrays(GL_TRIANGLES, 0, 6); } }
36.571429
106
0.654297
[ "mesh" ]
15ad7175817ce73508be9254703bba607ae4f797
1,015
cpp
C++
src/fireengine.native.player/src/core/object.cpp
iamkevinf/FireEngine
abf440f7a1e5596165b08fcc691ce894dfe2faef
[ "MIT" ]
1
2021-12-15T07:14:53.000Z
2021-12-15T07:14:53.000Z
src/fireengine.native.player/src/core/object.cpp
iamkevinf/FireEngine
abf440f7a1e5596165b08fcc691ce894dfe2faef
[ "MIT" ]
null
null
null
src/fireengine.native.player/src/core/object.cpp
iamkevinf/FireEngine
abf440f7a1e5596165b08fcc691ce894dfe2faef
[ "MIT" ]
null
null
null
#include "object.h" #include "transform.h" #include <memory> #include <iostream> namespace FireEngine { std::map<uint16_t, ObjectWeakPtr> ObjectManager::objPool; uint16_t ObjectManager::s_cur = 1; ObjectHandle ObjectManager::Register(ObjectPtr obj, ObjectType type) { uint16_t id = ObjectManager::s_cur++; obj->objectID = id; obj->type = type; ObjectManager::objPool[id] = obj; return {id}; } void ObjectManager::UnRegister(ObjectHandle handle) { ObjectManager::objPool.erase(ObjectManager::objPool.find(handle.idx)); } ObjectPtr ObjectManager::GetRef(uint16_t objectId) { return ObjectManager::objPool[objectId].lock(); } ObjectPtr ObjectManager::Get(ObjectHandle handle) { return ObjectManager::objPool[handle.idx].lock(); } TransformPtr ObjectManager::Get(TransformHandle handle) { ObjectPtr objPtr = ObjectManager::objPool[handle.idx].lock(); TransformPtr ret = std::static_pointer_cast<Transform>(objPtr); return ret; } }
23.604651
73
0.710345
[ "object", "transform" ]
15b3f052f06fef825e4e985ae6c52f7dfc1bac9e
697
cpp
C++
src/SkyEffect.cpp
nmaks293/sbisolet
b9acabe48e3d5cf72e19cc0565f8164331a888c7
[ "MIT" ]
3
2019-04-20T11:25:37.000Z
2019-10-22T07:15:19.000Z
src/SkyEffect.cpp
nmaks293/sbisolet
b9acabe48e3d5cf72e19cc0565f8164331a888c7
[ "MIT" ]
null
null
null
src/SkyEffect.cpp
nmaks293/sbisolet
b9acabe48e3d5cf72e19cc0565f8164331a888c7
[ "MIT" ]
2
2019-04-19T09:16:32.000Z
2019-04-21T16:33:09.000Z
#include "precomp.h" #include "SkyEffect.h" #include "Scene.h" #include "Camera.h" SkyEffect::SkyEffect() { effectDuration = 0; activeTime=0; FloatRect rect = Camera::instance->getRect(); effect.setSize(Vector2f(rect.width,rect.height)); } void SkyEffect::startEffect(Color color,float duration) { activeTime=0; effect.setFillColor(color); effectDuration=duration; } void SkyEffect::update(float deltaTime) { activeTime+=deltaTime; FloatRect rect = Camera::instance->getRect(); effect.setPosition(Vector2f(rect.left,rect.top)); } void SkyEffect::render(RenderWindow &window) { if(activeTime < effectDuration) { window.draw(effect); } }
22.483871
57
0.695839
[ "render" ]
15c4a65dd8586581305893ed2f45a341bb06cd45
29,675
cpp
C++
lib/parser/parse/expression.cpp
rtlayzell/rush
a11392f2f81518835db4a95c5ccd81542b70f9bb
[ "ECL-2.0", "Apache-2.0" ]
7
2020-05-08T01:57:35.000Z
2022-01-16T03:14:49.000Z
lib/parser/parse/expression.cpp
rtlayzell/rush
a11392f2f81518835db4a95c5ccd81542b70f9bb
[ "ECL-2.0", "Apache-2.0" ]
1
2020-05-27T08:45:52.000Z
2020-05-27T08:45:52.000Z
lib/parser/parse/expression.cpp
rush-lang/rush
e1e2173452715ff92f58c0f333b74403dd06a815
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
/************************************************************************* * Copyright 2018 Reegan Troy Layzell * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * 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 "rush/parser/parser.hpp" #include "rush/parser/string_parser.hpp" #include "rush/ast/patterns.hpp" #include "rush/ast/expressions.hpp" #include "rush/ast/declarations.hpp" #include "rush/diag/syntax_error.hpp" namespace ast = rush::ast; namespace errs = rush::diag::errs; namespace exprs = rush::ast::exprs; namespace ptrns = rush::ast::ptrns; namespace rush { #define RUSH_IS_UNARY_PREFIX_OP_FUNC #define RUSH_IS_UNARY_POSTFIX_OP_FUNC #define RUSH_IS_BINARY_OP_FUNC #define RUSH_PRECEDENCE_FUNC #define RUSH_ASSOCIATIVITY_FUNC #include "rush/ast/exprs/_operators.hpp" int compare_operator_precedence(lexical_token const& lhs, lexical_token const& rhs) { return is_binary_operator(lhs) && is_binary_operator(rhs) ? binary_precedence(lhs) - binary_precedence(rhs) : 0; } rush::parse_result<ast::expression> parser::parse_expr() { auto result = parse_primary_expr(); while (result.success() && is_binary_operator(peek_skip_indent())) result = parse_binary_expr(std::move(result)); return std::move(result); } rush::parse_result<ast::expression> parser::parse_paren_expr() { assert(peek_skip_indent().is(symbols::left_parenthesis) && "expected token to be \'(\'"); if (peek_skip_indent(1).is(symbols::underscore)) { return parse_lambda_expr(); } else if (peek_skip_indent(1).is_identifier()) { auto next = peek_skip_indent(2); if (next.is_symbol()) { switch (next.symbol()) { default: break; case symbols::comma: case symbols::colon: case symbols::equals: return parse_complex_paren_expr(); case symbols::right_parenthesis: if (peek_skip_indent(3).is_any(symbols::thick_arrow, symbols::colon_equals, symbols::thin_arrow)) return parse_lambda_expr(); } } } return parse_simple_paren_expr(); } rush::parse_result<ast::expression> parser::parse_simple_paren_expr() { assert(peek_skip_indent().is(symbols::left_parenthesis) && "expected token to be \'(\'"); if (peek_skip_indent(1).is(symbols::right_parenthesis) || peek_skip_indent(1).is(symbols::left_brace)) return parse_lambda_expr(); next_skip_indent(); // consume '(' auto result = parse_expr(); if (result.failed()) return std::move(result); auto next = peek_skip_indent(); if (next.is(symbols::comma)) { return parse_tuple_literal_expr(std::move(result)); } else { if (next.is_not(symbols::right_parenthesis)) return errs::expected_closing_parenthesis(next); next_skip_indent(); // consume ')' } return exprs::parens(std::move(result)); } rush::parse_result<ast::expression> parser::parse_complex_paren_expr() { assert(peek_skip_indent().is(symbols::left_parenthesis) && "expected token to be \'(\'"); auto ident = peek_skip_indent(1); auto next = peek_skip_indent(2); // named tuple or equals expression edge-case. if (next.is(symbols::equals)) { next_skip_indent(); // consume '(' next_skip_indent(); // consume ident. next_skip_indent(); // consume '=' auto expr_result = parse_expr(); if (expr_result.failed()) return std::move(expr_result); auto tok = peek_skip_indent(); if (!tok.is_symbol()) return errs::expected_closing_parenthesis_or_tuple(tok); switch (tok.symbol()) { default: return errs::expected_closing_parenthesis_or_tuple(tok); case symbols::comma: // tuple expression return parse_tuple_literal_expr(ptrns::binding( ptrns::name(ident.text()), std::move(expr_result))); case symbols::right_parenthesis: // assignment expression next_skip_indent(); // consume ')' return exprs::parens( exprs::assignment( exprs::identifier(ident.text()), std::move(expr_result))); } } return is_lambda_expr_ahead() ? parse_lambda_expr() : parse_tuple_literal_expr(); } rush::parse_result<ast::expression> parser::parse_array_literal_expr() { assert(peek_skip_indent().is(symbols::left_bracket) && "expected left square bracket to start array expression."); next_skip_indent(); // consume '[' symbol if (consume_skip_indent(symbols::right_bracket)) return exprs::array(exprs::list()); auto expr_list_result = parse_expr_list(); if (expr_list_result.failed()) return std::move(expr_list_result).as<ast::expression>(); // consume possible trailing comma. consume_skip_indent(symbols::comma); return consume_skip_indent(symbols::right_bracket) ? rush::parse_result<ast::expression> { exprs::array(std::move(expr_list_result)) } : errs::expected_closing_square_bracket_or_comma(peek_skip_indent()); } rush::parse_result<ast::expression> parser::parse_tuple_literal_expr() { assert(peek_skip_indent().is(symbols::left_parenthesis) && "expected token to be \'(\'"); next_skip_indent(); // consume '(' auto first = parse_tuple_element_expr(); if (first.failed()) return std::move(first); return parse_tuple_literal_expr(std::move(first)); } rush::parse_result<ast::expression> parser::parse_tuple_literal_expr(rush::parse_result<ast::expression> result) { assert(peek_skip_indent().is(symbols::comma) && "expected comma to start tuple expression."); auto elist = parse_tuple_element_list(std::move(result)); return elist.failed() ? std::move(elist).as<ast::expression>() : exprs::tuple(std::move(elist)); } rush::parse_result<ast::expression> parser::parse_tuple_element_expr() { if (peek_skip_indent().is_identifier() && peek_skip_indent(1).is_any(symbols::colon, symbols::equals)) { auto ident = next_skip_indent(); std::unique_ptr<ast::pattern> ptrn = ptrns::name(ident.text()); if (consume_skip_indent(symbols::colon)) { auto type_result = parse_type(); if (type_result.failed()) return std::move(type_result).errors(); ptrn = ptrns::annotation( std::move(ptrn), type_result.type()); } if (!consume_skip_indent(symbols::equals)) return errs::expected(peek_skip_indent(), "="); auto expr_result = parse_expr(); if (expr_result.failed()) return std::move(expr_result); return ptrns::binding( std::move(ptrn), std::move(expr_result)); } else { auto expr_result = parse_expr(); return std::move(expr_result); } } rush::parse_result<ast::expression_list> parser::parse_tuple_element_list(rush::parse_result<ast::expression> first) { if (peek_skip_indent().is(symbols::comma)) { next_skip_indent(); // consume ',' std::vector<std::unique_ptr<ast::expression>> results; results.push_back(std::move(first)); do { auto elem_result = parse_tuple_element_expr(); if (elem_result.failed()) return std::move(elem_result).as<ast::expression_list>(); results.push_back(std::move(elem_result)); } while (consume_skip_indent(symbols::comma)); return consume_skip_indent(symbols::right_parenthesis) ? rush::parse_result<ast::expression_list> { exprs::list(std::move(results)) } : errs::expected_closing_parenthesis(peek_skip_indent()); } else { if (!consume_skip_indent(symbols::right_parenthesis)) return errs::expected_closing_parenthesis(peek_skip_indent()); std::vector<std::unique_ptr<ast::expression>> args; args.push_back(std::move(first)); return exprs::list(std::move(args)); } } rush::parse_result<ast::expression> parser::parse_lambda_expr() { auto params = std::unique_ptr<ast::pattern> {}; if (peek_skip_indent().is_identifier()) { auto result = parse_named_pattern(); if (result.failed()) return std::move(result).as<ast::expression>(); params = std::move(result); } else if (peek_skip_indent().is(symbols::underscore)) { auto result = parse_discard_pattern(); if (result.failed()) return std::move(result).as<ast::expression>(); params = std::move(result); } else if (peek_skip_indent().is(symbols::left_bracket)) { auto result = parse_array_destructure_pattern(); if (result.failed()) return std::move(result).as<ast::expression>(); params = std::move(result); } else if (peek_skip_indent().is(symbols::left_brace)) { auto result = parse_object_destructure_pattern(); if (result.failed()) return std::move(result).as<ast::expression>(); params = std::move(result); } else { auto result = parse_parameter_list(); if (result.failed()) return std::move(result).as<ast::expression>(); params = std::move(result); } auto return_type = rush::parse_type_result {}; if (consume_skip_indent(symbols::thin_arrow)) { return_type = parse_type(); if (return_type.failed()) return std::move(return_type).errors(); } if (!peek_skip_indent().is_any(symbols::thick_arrow, symbols::colon_equals)) return errs::expected_function_expr_body(peek_skip_indent()); auto body_result = parse_function_expr_body(); if (body_result.failed()) return std::move(body_result).as<ast::expression>(); return return_type.failed() ? exprs::lambda(std::move(params), std::move(body_result)) : exprs::lambda(return_type.type(), std::move(params), std::move(body_result)); } rush::parse_result<ast::expression> parser::parse_primary_expr() { auto tok = peek_skip_indent(); rush::parse_result<ast::expression> result; switch (tok.type()) { default: return errs::expected_primary_expr(tok); case lexical_token_type::string_literal: result = parse_string_expr(); break; case lexical_token_type::integer_literal: result = parse_integer_expr(); break; case lexical_token_type::floating_literal: result = parse_floating_expr(); break; case lexical_token_type::identifier: result = peek_skip_indent(1).is(symbols::thick_arrow) ? parse_lambda_expr() : parse_identifier_expr(); break; case lexical_token_type::keyword: switch (tok.keyword()) { default: return errs::unexpected_keyword_expr(tok); case keywords::nil_: next_skip_indent(); result = exprs::nil(); break; case keywords::true_: next_skip_indent(); result = exprs::literal(true, *_context); break; case keywords::false_: next_skip_indent(); result = exprs::literal(false, *_context); break; case keywords::this_: next_skip_indent(); result = exprs::this_(); break; case keywords::base_: next_skip_indent(); result = exprs::base_(); break; case keywords::new_: result = parse_new_expr(); break; } break; case lexical_token_type::symbol: if (is_unary_prefix_operator(tok)) result = parse_unary_expr(); else switch (tok.symbol()) { case symbols::underscore: if (peek_skip_indent(1).is(symbols::thick_arrow)) result = parse_lambda_expr(); break; case symbols::ellipses: result = parse_spread_expr(); break; case symbols::left_parenthesis: result = parse_paren_expr(); break; case symbols::left_brace: result = is_lambda_expr_ahead() ? parse_lambda_expr() : errs::unexpected_symbol_expr(tok); break; case symbols::left_bracket: result = is_lambda_expr_ahead() ? parse_lambda_expr() : parse_array_literal_expr(); break; default: return errs::unexpected_symbol_expr(tok); } break; } while (result.success() && is_unary_postfix_operator(peek_skip_indent())) result = parse_unary_postfix_expr(std::move(result)); while (result.success() && peek_skip_indent().is(symbols::period)) result = parse_member_access_expr(std::move(result)); while (result.success() && peek_skip_indent().is(symbols::left_bracket)) result = parse_subscript_expr(std::move(result)); return std::move(result); } rush::parse_result<ast::expression> parser::parse_string_expr() { assert(peek_skip_indent().is_string_literal() && "expected token to be a string literal."); auto tok = next_skip_indent(); auto sp = rush::string_parser { *this }; return sp.parse(tok); } rush::parse_result<ast::expression> parser::parse_integer_expr() { assert(peek_skip_indent().is_integer_literal() && "expected token to be an integer literal."); auto tok = next_skip_indent(); auto val = tok.integer_value(); switch (tok.suffix()) { case lexical_token_suffix::none: return exprs::literal(static_cast<int>(val), *_context); case lexical_token_suffix::long_literal: return exprs::literal(static_cast<long>(val), *_context); case lexical_token_suffix::unsigned_literal: return exprs::literal(static_cast<unsigned>(val), *_context); case lexical_token_suffix::unsigned_long_literal: return exprs::literal(static_cast<unsigned long>(val), *_context); default: throw; } } rush::parse_result<ast::expression> parser::parse_floating_expr() { assert(peek_skip_indent().is_floating_literal() && "expected token to be a floating literal."); auto tok = next_skip_indent(); auto val = tok.floating_value(); switch (tok.suffix()) { case lexical_token_suffix::none: return exprs::literal(static_cast<double>(val), *_context); case lexical_token_suffix::float_literal: return exprs::literal(static_cast<float>(val), *_context); default: throw; } } rush::parse_result<ast::expression> parser::parse_identifier_expr() { assert(peek_skip_indent().is_identifier() && "expected token to be an identifier."); auto tok = next_skip_indent(); return exprs::identifier(tok.text()); } rush::parse_result<ast::expression> parser::parse_subscript_expr(rush::parse_result<ast::expression> operand_expr) { assert(peek_skip_indent().is(symbols::left_bracket) && "expected token to be a '['."); next_skip_indent(); // consume '['. auto subscript_expr = parse_expr(); if (subscript_expr.failed()) return std::move(subscript_expr).as<ast::expression>(); auto expr_result = exprs::subscript( std::move(operand_expr), std::move(subscript_expr)); return consume_skip_indent(symbols::right_bracket) ? rush::parse_result<ast::expression> { std::move(expr_result) } : errs::expected_closing_square_bracket_or_comma(peek_skip_indent()); } rush::parse_result<ast::expression> parser::parse_member_access_expr(rush::parse_result<ast::expression> expr) { assert(peek_skip_indent().is(symbols::period) && "expected token to be a '.'."); next_skip_indent(); // consume period. auto ident_result = parse_primary_expr(); auto ma_expr = exprs::member_access( std::move(expr), std::move(ident_result)); return std::move(ma_expr); } rush::parse_result<ast::expression> parser::parse_unary_expr() { assert(is_unary_prefix_operator(peek_skip_indent()) && "expected unary operator."); auto tok = next_skip_indent(); // consume unary operator token. auto operand_result = parse_primary_expr(); if (operand_result.failed()) return std::move(operand_result); auto next = peek_skip_indent(); if (is_unary_postfix_operator(next)) { operand_result = parse_unary_postfix_expr(std::move(operand_result)); if (operand_result.failed()) return std::move(operand_result); } else if (is_binary_operator(next) && unary_precedence(tok) > binary_precedence(next)) { operand_result = parse_binary_expr(std::move(operand_result)); if (operand_result.failed()) return std::move(operand_result); } switch (tok.symbol()) { default: return errs::not_supported(tok, fmt::format("unary operator '{}'", tok.text())); case symbols::plus: return exprs::positive(std::move(operand_result)); case symbols::minus: return exprs::negative(std::move(operand_result)); case symbols::plus_plus: return exprs::pre_increment(std::move(operand_result)); case symbols::minus_minus: return exprs::pre_decrement(std::move(operand_result)); case symbols::exclamation_mark: return exprs::logical_negation(std::move(operand_result)); case symbols::tilde_exclamation: return exprs::bitwise_negation(std::move(operand_result)); } } rush::parse_result<ast::expression> parser::parse_unary_postfix_expr(rush::parse_result<ast::expression> operand_result) { assert(is_unary_postfix_operator(peek_skip_indent()) && "expected unary postfix operator."); auto tok = peek_skip_indent(); switch (tok.symbol()) { default: return errs::not_supported(tok, fmt::format("unary postfix operator '{}'", tok.text())); case symbols::plus_plus: operand_result = exprs::post_increment(std::move(operand_result)); next_skip_indent(); break; case symbols::minus_minus: operand_result = exprs::post_decrement(std::move(operand_result)); next_skip_indent(); break; case symbols::left_parenthesis: operand_result = parse_invoke_expr(std::move(operand_result)); if (operand_result.failed()) return std::move(operand_result); break; } return is_unary_postfix_operator(peek_skip_indent()) ? parse_unary_postfix_expr(std::move(operand_result)) : std::move(operand_result); } rush::parse_result<ast::expression> parser::parse_binary_expr(rush::parse_result<ast::expression> lhs) { assert(is_binary_operator(peek_skip_indent()) && "expected binary operator."); auto tok = peek_skip_indent(); if (tok.is(symbols::question_mark)) return parse_ternary_expr(std::move(lhs)); auto rhs = parse_binary_expr_rhs(); if (lhs.failed() || rhs.failed()) { lhs = std::move(rhs); return std::move(lhs); } rush::parse_result<ast::expression> result; if (tok.is_symbol()) { switch (tok.symbol()) { default: return errs::not_supported(tok, fmt::format("binary operator '{}'", tok.text())); case symbols::equals: result = exprs::assignment(std::move(lhs), std::move(rhs)); break; case symbols::colon_equals: result = exprs::assignment(std::move(lhs), std::move(rhs)); break; // arithmetic binary operators case symbols::plus: result = exprs::addition(std::move(lhs), std::move(rhs)); break; case symbols::minus: result = exprs::subtraction(std::move(lhs), std::move(rhs)); break; case symbols::percent: result = exprs::modulo(std::move(lhs), std::move(rhs)); break; case symbols::asterisk: result = exprs::multiplication(std::move(lhs), std::move(rhs)); break; case symbols::caret: result = exprs::exponentiation(std::move(lhs), std::move(rhs)); break; case symbols::forward_slash: result = exprs::division(std::move(lhs), std::move(rhs)); break; // compound arithmetic binary operators case symbols::plus_equals: result = exprs::compound_addition(std::move(lhs), std::move(rhs)); break; case symbols::minus_equals: result = exprs::compound_subtraction(std::move(lhs), std::move(rhs)); break; case symbols::percent_equals: result = exprs::compound_modulo(std::move(lhs), std::move(rhs)); break; case symbols::asterisk_equals: result = exprs::compound_multiplication(std::move(lhs), std::move(rhs)); break; case symbols::forward_slash_equals: result = exprs::compound_division(std::move(lhs), std::move(rhs)); break; // bit-wise binary operators case symbols::tilde_pipe: result = exprs::bitwise_or(std::move(lhs), std::move(rhs)); break; case symbols::tilde_caret: result = exprs::bitwise_xor(std::move(lhs), std::move(rhs)); break; case symbols::tilde_ampersand: result = exprs::bitwise_and(std::move(lhs), std::move(rhs)); break; case symbols::double_left_chevron: result = exprs::left_shift(std::move(lhs), std::move(rhs)); break; case symbols::double_right_chevron: result = exprs::right_shift(std::move(lhs), std::move(rhs)); break; // compound bit-wise binary operators case symbols::tilde_pipe_equals: result = exprs::compound_bitwise_or(std::move(lhs), std::move(rhs)); break; case symbols::tilde_caret_equals: result = exprs::compound_bitwise_xor(std::move(lhs), std::move(rhs)); break; case symbols::tilde_ampersand_equals: result = exprs::compound_bitwise_and(std::move(lhs), std::move(rhs)); break; case symbols::double_left_chevron_equals: result = exprs::compound_left_shift(std::move(lhs), std::move(rhs)); break; case symbols::double_right_chevron_equals: result = exprs::compound_right_shift(std::move(lhs), std::move(rhs)); break; // special operators case symbols::ellipses: result = exprs::inclusive_range(std::move(lhs), std::move(rhs)); break; case symbols::ellipses_caret: result = exprs::exclusive_range(std::move(lhs), std::move(rhs)); break; // logical binary operators case symbols::double_pipe: result = exprs::logical_or(std::move(lhs), std::move(rhs)); break; case symbols::double_ampersand: result = exprs::logical_and(std::move(lhs), std::move(rhs)); break; case symbols::equals_equals: result = exprs::equal(std::move(lhs), std::move(rhs)); break; case symbols::exclamation_mark_equals: result = exprs::not_equal(std::move(lhs), std::move(rhs)); break; case symbols::left_chevron: result = exprs::less_than(std::move(lhs), std::move(rhs)); break; case symbols::right_chevron: result = exprs::greater_than(std::move(lhs), std::move(rhs)); break; case symbols::left_chevron_equals: result = exprs::less_equals(std::move(lhs), std::move(rhs)); break; case symbols::right_chevron_equals: result = exprs::greater_equals(std::move(lhs), std::move(rhs)); break; } } else { switch (tok.keyword()) { default: return errs::not_supported(tok, fmt::format("binary operator '{}'", tok.text())); // case keywords::is_: result = exprs::is(std::move(lhs), std::move(rhs)); break; // case keywords::as_: result = exprs::as(std::move(lhs), std::move(rhs)); break; } } return std::move(result); } rush::parse_result<ast::expression> parser::parse_binary_expr_rhs() { assert(is_binary_operator(peek_skip_indent()) && "expected binary operator."); auto prev = next_skip_indent(); // consume binary operator symbol. if (prev.is(symbols::ellipses)) { consume_skip_indent(symbols::left_chevron); } auto rhs_result = parse_primary_expr(); if (rhs_result.success()) { auto next = peek_skip_indent(); // look-ahead for possible binary operator. while (is_binary_operator(next)) { auto opcmp = compare_operator_precedence(next, prev); if (opcmp < 0 || (opcmp == 0 && binary_associativity(next) > 0)) { rhs_result = parse_binary_expr(std::move(rhs_result)); next = peek_skip_indent(); } else break; } } return std::move(rhs_result); } rush::parse_result<ast::expression> parser::parse_ternary_expr(rush::parse_result<ast::expression> cond_result) { assert(peek_skip_indent().is(symbols::question_mark) && "expected ternary expression sequence."); next_skip_indent(); // consume '?' symbol. auto true_result = parse_expr(); if (true_result.failed()) return std::move(true_result); if (peek_skip_indent().is_not(symbols::colon)) return errs::expected(peek_skip_indent(), ":"); next_skip_indent(); // consume ':' symbol. auto false_result = parse_expr(); if (false_result.failed()) return std::move(false_result); return exprs::ternary( std::move(cond_result), std::move(true_result), std::move(false_result)); } rush::parse_result<ast::expression> parser::parse_argument() { if (peek_skip_indent().is_identifier() && peek_skip_indent(1).is(symbols::colon)) { auto ident = next_skip_indent(); next_skip_indent(); // skip ':'; auto expr_result = parse_expr(); if (expr_result.failed()) return std::move(expr_result); return ptrns::binding( ptrns::name(ident.text()), std::move(expr_result)); } else { auto expr_result = parse_expr(); return std::move(expr_result); } } rush::parse_result<ast::expression_list> parser::parse_expr_list() { std::vector<std::unique_ptr<ast::expression>> results; do { auto result = parse_expr(); if (result.failed()) return std::move(result) .as<ast::expression_list>(); results.push_back(std::move(result)); } while ( consume_skip_indent(symbols::comma) && peek_skip_indent().is_not_any( symbols::right_parenthesis, symbols::right_bracket, symbols::right_brace)); return exprs::list(std::move(results)); } rush::parse_result<ast::expression_list> parser::parse_argument_list() { assert(peek_skip_indent().is(symbols::left_parenthesis) && "expected '(' start of argument list."); next_skip_indent(); // consume '(' symbol // try consume ')' symbol if (consume_skip_indent(symbols::right_parenthesis)) return exprs::list(); auto arg_result = parse_argument(); if (arg_result.failed()) return std::move(arg_result).as<ast::expression_list>(); if (peek_skip_indent().is(symbols::comma)) return parse_argument_list(std::move(arg_result)); if (!consume_skip_indent(symbols::right_parenthesis)) return errs::expected_closing_parenthesis(peek_skip_indent()); std::vector<std::unique_ptr<ast::expression>> args; args.push_back(std::move(arg_result)); return exprs::list(std::move(args)); } rush::parse_result<ast::expression_list> parser::parse_argument_list(rush::parse_result<ast::expression> first) { assert(peek_skip_indent().is(symbols::comma) && "expected comma to start argument list."); next_skip_indent(); // consume ',' std::vector<std::unique_ptr<ast::expression>> results; results.push_back(std::move(first)); do { auto arg_result = parse_argument(); if (arg_result.failed()) return std::move(arg_result).as<ast::expression_list>(); results.push_back(std::move(arg_result)); } while (consume_skip_indent(symbols::comma)); return consume_skip_indent(symbols::right_parenthesis) ? rush::parse_result<ast::expression_list> { exprs::list(std::move(results)) } : errs::expected_closing_parenthesis(peek_skip_indent()); } rush::parse_result<ast::expression> parser::parse_invoke_expr(rush::parse_result<ast::expression> expr_result) { assert(peek_skip_indent().is(symbols::left_parenthesis) && "expected ternary expression sequence."); auto result = parse_argument_list(); if (result.failed()) return std::move(result).as<ast::expression>(); return exprs::invoke( std::move(expr_result), std::move(result)); } rush::parse_result<ast::expression> parser::parse_new_expr() { assert(peek_skip_indent().is(keywords::new_) && "expected 'new' keyword."); next_skip_indent(); // consume 'new' keyword. if (!peek_skip_indent().is_identifier()) return errs::expected(peek_skip_indent(), "type"); auto ident = parse_identifier_expr(); if (ident.failed()) return std::move(ident); if (!peek_skip_indent().is(symbols::left_parenthesis)) return errs::expected(peek_skip_indent(), "("); auto expr = parse_invoke_expr(std::move(ident)); if (expr.failed()) return std::move(expr); return exprs::new_(std::move(expr)); } rush::parse_result<ast::expression> parser::parse_spread_expr() { assert(consume_skip_indent(symbols::ellipses) && "expected '...' symbol."); auto expr_result = parse_primary_expr(); if (expr_result.failed()) return std::move(expr_result); return exprs::spread(std::move(expr_result)); } }
42.453505
125
0.65604
[ "vector" ]
15cb12c4d7d0ce6287cd032018a607e071af5049
4,087
hpp
C++
src/libraries/dynamicMesh/meshMotion/fvMotionSolver/fvMotionSolvers/displacement/laplacian/displacementLaplacianFvMotionSolver.hpp
MrAwesomeRocks/caelus-cml
55b6dc5ba47d0e95c07412d9446ac72ac11d7fd7
[ "mpich2" ]
null
null
null
src/libraries/dynamicMesh/meshMotion/fvMotionSolver/fvMotionSolvers/displacement/laplacian/displacementLaplacianFvMotionSolver.hpp
MrAwesomeRocks/caelus-cml
55b6dc5ba47d0e95c07412d9446ac72ac11d7fd7
[ "mpich2" ]
null
null
null
src/libraries/dynamicMesh/meshMotion/fvMotionSolver/fvMotionSolvers/displacement/laplacian/displacementLaplacianFvMotionSolver.hpp
MrAwesomeRocks/caelus-cml
55b6dc5ba47d0e95c07412d9446ac72ac11d7fd7
[ "mpich2" ]
null
null
null
/*---------------------------------------------------------------------------*\ Copyright (C) 2011 OpenFOAM Foundation ------------------------------------------------------------------------------- License This file is part of CAELUS. CAELUS 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 3 of the License, or (at your option) any later version. CAELUS 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 CAELUS. If not, see <http://www.gnu.org/licenses/>. Class CML::displacementLaplacianFvMotionSolver Description Mesh motion solver for an fvMesh. Based on solving the cell-centre Laplacian for the motion displacement. SourceFiles displacementLaplacianFvMotionSolver.cpp \*---------------------------------------------------------------------------*/ #ifndef displacementLaplacianFvMotionSolver_H #define displacementLaplacianFvMotionSolver_H #include "displacementMotionSolver.hpp" #include "fvMotionSolverCore.hpp" // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // namespace CML { // Forward class declarations class motionDiffusivity; /*---------------------------------------------------------------------------*\ Class displacementLaplacianFvMotionSolver Declaration \*---------------------------------------------------------------------------*/ class displacementLaplacianFvMotionSolver : public displacementMotionSolver, public fvMotionSolverCore { // Private data //- Cell-centre motion field mutable volVectorField cellDisplacement_; //- Optionally read point-position field. Used only for position // boundary conditions. mutable autoPtr<pointVectorField> pointLocation_; //- Diffusivity used to control the motion autoPtr<motionDiffusivity> diffusivityPtr_; //- Frozen points (that are not on patches). -1 or points that are // fixed to be at points0_ location label frozenPointsZone_; // Private Member Functions //- Disallow default bitwise copy construct displacementLaplacianFvMotionSolver ( const displacementLaplacianFvMotionSolver& ); //- Disallow default bitwise assignment void operator=(const displacementLaplacianFvMotionSolver&); public: //- Runtime type information TypeName("displacementLaplacian"); // Constructors //- Construct from polyMesh and IOdictionary displacementLaplacianFvMotionSolver ( const polyMesh&, const IOdictionary& ); //- Destructor ~displacementLaplacianFvMotionSolver(); // Member Functions //- Return reference to the cell motion displacement field volVectorField& cellDisplacement() { return cellDisplacement_; } //- Return const reference to the cell motion displacement field const volVectorField& cellDisplacement() const { return cellDisplacement_; } //- Return reference to the diffusivity field motionDiffusivity& diffusivity(); //- Return point location obtained from the current motion field virtual tmp<pointField> curPoints() const; //- Solve for motion virtual void solve(); //- Update topology virtual void updateMesh(const mapPolyMesh&); }; // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // } // End namespace CML // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // #endif // ************************************************************************* //
28.985816
79
0.571568
[ "mesh" ]
15d39a986b129102cf9073a92d9add918dc94d91
296,674
cpp
C++
YoloDetectionHoloLensUnity/app3/Il2CppOutputProject/Source/il2cppOutput/Il2CppCompilerCalculateTypeValues_2Table.cpp
atolegen/YoloDetect
30f230508d28859225bc9c199d69f7e723d12c0f
[ "MIT" ]
null
null
null
YoloDetectionHoloLensUnity/app3/Il2CppOutputProject/Source/il2cppOutput/Il2CppCompilerCalculateTypeValues_2Table.cpp
atolegen/YoloDetect
30f230508d28859225bc9c199d69f7e723d12c0f
[ "MIT" ]
null
null
null
YoloDetectionHoloLensUnity/app3/Il2CppOutputProject/Source/il2cppOutput/Il2CppCompilerCalculateTypeValues_2Table.cpp
atolegen/YoloDetect
30f230508d28859225bc9c199d69f7e723d12c0f
[ "MIT" ]
null
null
null
#include "il2cpp-config.h" #ifndef _MSC_VER # include <alloca.h> #else # include <malloc.h> #endif #include <cstring> #include <string.h> #include <stdio.h> #include <cmath> #include <limits> #include <assert.h> #include <stdint.h> #include "il2cpp-class-internals.h" #include "codegen/il2cpp-codegen.h" #include "il2cpp-object-internals.h" // Microsoft.Win32.RegistryKey struct RegistryKey_t29D81BFF6D6710C7AF7557F80446D514B0AB7574; // System.Action`1<System.Object> struct Action_1_t551A279CEADCF6EEAE8FA2B1E1E757D0D15290D0; // System.AssemblyLoadEventArgs struct AssemblyLoadEventArgs_t51DAAB04039C3B2D8C3FBF65C13441BC6C6A7AE8; // System.AssemblyLoadEventHandler struct AssemblyLoadEventHandler_t53F8340027F9EE67E8A22E7D8C1A3770345153C9; // System.AsyncCallback struct AsyncCallback_t3F3DA3BEDAEE81DD1D24125DF8EB30E85EE14DA4; // System.Byte struct Byte_tF87C579059BD4633E6840EBBBEEF899C6E33EF07; // System.Byte[] struct ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821; // System.Char struct Char_tBF22D9FC341BE970735250BB6FF1A4A92BBA58B9; // System.Char[] struct CharU5BU5D_t4CC6ABF0AD71BEC97E3C2F1E9C5677E46D3A75C2; // System.Collections.Generic.Dictionary`2<System.String,System.Object> struct Dictionary_2_t9140A71329927AE4FD0F3CF4D4D66668EBE151EA; // System.Collections.Generic.List`1<System.Collections.Generic.KeyValuePair`2<System.DateTime,System.TimeType>> struct List_1_tD2FC74CFEE011F74F31183756A690154468817E9; // System.Collections.Generic.List`1<System.String> struct List_1_tE8032E48C661C350FF9550E9063D595C0AB25CD3; // System.Collections.IDictionary struct IDictionary_t1BD5C1546718A374EA8122FBD6C6EE45331E8CE7; // System.Collections.ObjectModel.ReadOnlyCollection`1<System.TimeZoneInfo> struct ReadOnlyCollection_1_tD63B9891087CF571DD4322388BDDBAEEB7606FE0; // System.Comparison`1<System.TimeZoneInfo/AdjustmentRule> struct Comparison_1_tD28744463320E1F22A90E02BFEE7967364ABCAA6; // System.Console/InternalCancelHandler struct InternalCancelHandler_t2DD134D8150B67E2F9FAD1BC2E6BE92EED57968A; // System.Console/WindowsConsole/WindowsCancelHandler struct WindowsCancelHandler_t1D05BCFB512603DCF87A126FE9969F1D876B9B51; // System.ConsoleCancelEventHandler struct ConsoleCancelEventHandler_t6F3B5D9C55C25FF6B53EFEDA9150EFE807311EB4; // System.DelegateData struct DelegateData_t1BF9F691B56DAE5F8C28C5E084FDE94F15F27BBE; // System.Delegate[] struct DelegateU5BU5D_tDFCDEE2A6322F96C0FE49AF47E9ADB8C4B294E86; // System.Diagnostics.StackTrace[] struct StackTraceU5BU5D_t855F09649EA34DEE7C1B6F088E0538E3CCC3F196; // System.Double[] struct DoubleU5BU5D_tF9383437DDA9EAC9F60627E9E6E2045CF7CB182D; // System.EventHandler struct EventHandler_t2B84E745E28BA26C49C4E99A387FC3B534D1110C; // System.EventHandler`1<System.Runtime.ExceptionServices.FirstChanceExceptionEventArgs> struct EventHandler_1_t1E35ED2E29145994C6C03E57601C6D48C61083FF; // System.Globalization.CompareInfo struct CompareInfo_tB9A071DBC11AC00AF2EA2066D0C2AE1DCB1865D1; // System.IAsyncResult struct IAsyncResult_t8E194308510B375B42432981AE5E7488C458D598; // System.IConsoleDriver struct IConsoleDriver_t484163236D7810E338FC3D246EDF2DCAC42C0E37; // System.IO.TextReader struct TextReader_t7DF8314B601D202ECFEDF623093A87BFDAB58D0A; // System.IO.TextWriter struct TextWriter_t92451D929322093838C41489883D5B2D7ABAF3F0; // System.Int32[] struct Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83; // System.IntPtr[] struct IntPtrU5BU5D_t4DC01DCB9A6DF6C9792A6513595D7A11E637DCDD; // System.MonoTypeInfo struct MonoTypeInfo_t9A65BA5324D14FDFEB7644EEE6E1BDF74B8A393D; // System.Object[] struct ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A; // System.OperatingSystem struct OperatingSystem_tBB05846D5AA6960FFEB42C59E5FE359255C2BE83; // System.Reflection.Assembly struct Assembly_t; // System.Reflection.Binder struct Binder_t4D5CB06963501D32847C057B57157D6DC49CA759; // System.Reflection.MemberFilter struct MemberFilter_t25C1BD92C42BE94426E300787C13C452CB89B381; // System.Reflection.MethodBase struct MethodBase_t; // System.Reflection.MethodInfo struct MethodInfo_t; // System.Reflection.MonoCMethod struct MonoCMethod_tFB85687BEF8202F8B3E77FE24BCC2E400EA4FC61; // System.Reflection.RuntimeConstructorInfo struct RuntimeConstructorInfo_tF21A59967629968D0BE5D0DAF677662824E9629D; // System.ResolveEventHandler struct ResolveEventHandler_t045C469BEA8B632FA99FE8867C921BA8DAE0BEE5; // System.Runtime.Serialization.SafeSerializationManager struct SafeSerializationManager_t4A754D86B0F784B18CBC36C073BA564BED109770; // System.String struct String_t; // System.String[] struct StringU5BU5D_t933FB07893230EA91C40FF900D5400665E87B14E; // System.Text.Encoding struct Encoding_t7837A3C0F55EAE0E3959A53C6D6E88B113ED78A4; // System.Threading.CancellationTokenSource struct CancellationTokenSource_tF480B7E74A032667AFBD31F0530D619FB43AD3FE; // System.TimeZoneInfo/AdjustmentRule[] struct AdjustmentRuleU5BU5D_t1106C3E56412DC2C8D9B745150D35E342A85D8AD; // System.Type struct Type_t; // System.Type[] struct TypeU5BU5D_t7FE623A666B49176DE123306221193E888A12F5F; // System.UnhandledExceptionEventArgs struct UnhandledExceptionEventArgs_t39DD47D43B0D764FE2C9847FBE760031FBEA0FD1; // System.UnhandledExceptionEventHandler struct UnhandledExceptionEventHandler_tB0DFF05ABF7A3A234C87D4F7A71F98E9AB2D91DE; // System.Version struct Version_tDBE6876C59B6F56D4F8CAA03851177ABC6FE0DFD; // System.Void struct Void_t22962CB4C05B1D89B55A6E1139F0E87A90987017; struct Delegate_t_marshaled_com; struct Delegate_t_marshaled_pinvoke; struct Exception_t_marshaled_com; struct Exception_t_marshaled_pinvoke; #ifndef RUNTIMEOBJECT_H #define RUNTIMEOBJECT_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Object #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // RUNTIMEOBJECT_H #ifndef APPDOMAINSETUP_T80DF2915BB100D4BD515920B49C959E9FA451306_H #define APPDOMAINSETUP_T80DF2915BB100D4BD515920B49C959E9FA451306_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.AppDomainSetup struct AppDomainSetup_t80DF2915BB100D4BD515920B49C959E9FA451306 : public RuntimeObject { public: // System.String System.AppDomainSetup::application_base String_t* ___application_base_0; // System.String System.AppDomainSetup::application_name String_t* ___application_name_1; // System.String System.AppDomainSetup::cache_path String_t* ___cache_path_2; // System.String System.AppDomainSetup::configuration_file String_t* ___configuration_file_3; // System.String System.AppDomainSetup::dynamic_base String_t* ___dynamic_base_4; // System.String System.AppDomainSetup::license_file String_t* ___license_file_5; // System.String System.AppDomainSetup::private_bin_path String_t* ___private_bin_path_6; // System.String System.AppDomainSetup::private_bin_path_probe String_t* ___private_bin_path_probe_7; // System.String System.AppDomainSetup::shadow_copy_directories String_t* ___shadow_copy_directories_8; // System.String System.AppDomainSetup::shadow_copy_files String_t* ___shadow_copy_files_9; // System.Boolean System.AppDomainSetup::publisher_policy bool ___publisher_policy_10; // System.Boolean System.AppDomainSetup::path_changed bool ___path_changed_11; // System.Int32 System.AppDomainSetup::loader_optimization int32_t ___loader_optimization_12; // System.Boolean System.AppDomainSetup::disallow_binding_redirects bool ___disallow_binding_redirects_13; // System.Boolean System.AppDomainSetup::disallow_code_downloads bool ___disallow_code_downloads_14; // System.Object System.AppDomainSetup::_activationArguments RuntimeObject * ____activationArguments_15; // System.Object System.AppDomainSetup::domain_initializer RuntimeObject * ___domain_initializer_16; // System.Object System.AppDomainSetup::application_trust RuntimeObject * ___application_trust_17; // System.String[] System.AppDomainSetup::domain_initializer_args StringU5BU5D_t933FB07893230EA91C40FF900D5400665E87B14E* ___domain_initializer_args_18; // System.Boolean System.AppDomainSetup::disallow_appbase_probe bool ___disallow_appbase_probe_19; // System.Byte[] System.AppDomainSetup::configuration_bytes ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* ___configuration_bytes_20; // System.Byte[] System.AppDomainSetup::serialized_non_primitives ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* ___serialized_non_primitives_21; // System.String System.AppDomainSetup::<TargetFrameworkName>k__BackingField String_t* ___U3CTargetFrameworkNameU3Ek__BackingField_22; public: inline static int32_t get_offset_of_application_base_0() { return static_cast<int32_t>(offsetof(AppDomainSetup_t80DF2915BB100D4BD515920B49C959E9FA451306, ___application_base_0)); } inline String_t* get_application_base_0() const { return ___application_base_0; } inline String_t** get_address_of_application_base_0() { return &___application_base_0; } inline void set_application_base_0(String_t* value) { ___application_base_0 = value; Il2CppCodeGenWriteBarrier((&___application_base_0), value); } inline static int32_t get_offset_of_application_name_1() { return static_cast<int32_t>(offsetof(AppDomainSetup_t80DF2915BB100D4BD515920B49C959E9FA451306, ___application_name_1)); } inline String_t* get_application_name_1() const { return ___application_name_1; } inline String_t** get_address_of_application_name_1() { return &___application_name_1; } inline void set_application_name_1(String_t* value) { ___application_name_1 = value; Il2CppCodeGenWriteBarrier((&___application_name_1), value); } inline static int32_t get_offset_of_cache_path_2() { return static_cast<int32_t>(offsetof(AppDomainSetup_t80DF2915BB100D4BD515920B49C959E9FA451306, ___cache_path_2)); } inline String_t* get_cache_path_2() const { return ___cache_path_2; } inline String_t** get_address_of_cache_path_2() { return &___cache_path_2; } inline void set_cache_path_2(String_t* value) { ___cache_path_2 = value; Il2CppCodeGenWriteBarrier((&___cache_path_2), value); } inline static int32_t get_offset_of_configuration_file_3() { return static_cast<int32_t>(offsetof(AppDomainSetup_t80DF2915BB100D4BD515920B49C959E9FA451306, ___configuration_file_3)); } inline String_t* get_configuration_file_3() const { return ___configuration_file_3; } inline String_t** get_address_of_configuration_file_3() { return &___configuration_file_3; } inline void set_configuration_file_3(String_t* value) { ___configuration_file_3 = value; Il2CppCodeGenWriteBarrier((&___configuration_file_3), value); } inline static int32_t get_offset_of_dynamic_base_4() { return static_cast<int32_t>(offsetof(AppDomainSetup_t80DF2915BB100D4BD515920B49C959E9FA451306, ___dynamic_base_4)); } inline String_t* get_dynamic_base_4() const { return ___dynamic_base_4; } inline String_t** get_address_of_dynamic_base_4() { return &___dynamic_base_4; } inline void set_dynamic_base_4(String_t* value) { ___dynamic_base_4 = value; Il2CppCodeGenWriteBarrier((&___dynamic_base_4), value); } inline static int32_t get_offset_of_license_file_5() { return static_cast<int32_t>(offsetof(AppDomainSetup_t80DF2915BB100D4BD515920B49C959E9FA451306, ___license_file_5)); } inline String_t* get_license_file_5() const { return ___license_file_5; } inline String_t** get_address_of_license_file_5() { return &___license_file_5; } inline void set_license_file_5(String_t* value) { ___license_file_5 = value; Il2CppCodeGenWriteBarrier((&___license_file_5), value); } inline static int32_t get_offset_of_private_bin_path_6() { return static_cast<int32_t>(offsetof(AppDomainSetup_t80DF2915BB100D4BD515920B49C959E9FA451306, ___private_bin_path_6)); } inline String_t* get_private_bin_path_6() const { return ___private_bin_path_6; } inline String_t** get_address_of_private_bin_path_6() { return &___private_bin_path_6; } inline void set_private_bin_path_6(String_t* value) { ___private_bin_path_6 = value; Il2CppCodeGenWriteBarrier((&___private_bin_path_6), value); } inline static int32_t get_offset_of_private_bin_path_probe_7() { return static_cast<int32_t>(offsetof(AppDomainSetup_t80DF2915BB100D4BD515920B49C959E9FA451306, ___private_bin_path_probe_7)); } inline String_t* get_private_bin_path_probe_7() const { return ___private_bin_path_probe_7; } inline String_t** get_address_of_private_bin_path_probe_7() { return &___private_bin_path_probe_7; } inline void set_private_bin_path_probe_7(String_t* value) { ___private_bin_path_probe_7 = value; Il2CppCodeGenWriteBarrier((&___private_bin_path_probe_7), value); } inline static int32_t get_offset_of_shadow_copy_directories_8() { return static_cast<int32_t>(offsetof(AppDomainSetup_t80DF2915BB100D4BD515920B49C959E9FA451306, ___shadow_copy_directories_8)); } inline String_t* get_shadow_copy_directories_8() const { return ___shadow_copy_directories_8; } inline String_t** get_address_of_shadow_copy_directories_8() { return &___shadow_copy_directories_8; } inline void set_shadow_copy_directories_8(String_t* value) { ___shadow_copy_directories_8 = value; Il2CppCodeGenWriteBarrier((&___shadow_copy_directories_8), value); } inline static int32_t get_offset_of_shadow_copy_files_9() { return static_cast<int32_t>(offsetof(AppDomainSetup_t80DF2915BB100D4BD515920B49C959E9FA451306, ___shadow_copy_files_9)); } inline String_t* get_shadow_copy_files_9() const { return ___shadow_copy_files_9; } inline String_t** get_address_of_shadow_copy_files_9() { return &___shadow_copy_files_9; } inline void set_shadow_copy_files_9(String_t* value) { ___shadow_copy_files_9 = value; Il2CppCodeGenWriteBarrier((&___shadow_copy_files_9), value); } inline static int32_t get_offset_of_publisher_policy_10() { return static_cast<int32_t>(offsetof(AppDomainSetup_t80DF2915BB100D4BD515920B49C959E9FA451306, ___publisher_policy_10)); } inline bool get_publisher_policy_10() const { return ___publisher_policy_10; } inline bool* get_address_of_publisher_policy_10() { return &___publisher_policy_10; } inline void set_publisher_policy_10(bool value) { ___publisher_policy_10 = value; } inline static int32_t get_offset_of_path_changed_11() { return static_cast<int32_t>(offsetof(AppDomainSetup_t80DF2915BB100D4BD515920B49C959E9FA451306, ___path_changed_11)); } inline bool get_path_changed_11() const { return ___path_changed_11; } inline bool* get_address_of_path_changed_11() { return &___path_changed_11; } inline void set_path_changed_11(bool value) { ___path_changed_11 = value; } inline static int32_t get_offset_of_loader_optimization_12() { return static_cast<int32_t>(offsetof(AppDomainSetup_t80DF2915BB100D4BD515920B49C959E9FA451306, ___loader_optimization_12)); } inline int32_t get_loader_optimization_12() const { return ___loader_optimization_12; } inline int32_t* get_address_of_loader_optimization_12() { return &___loader_optimization_12; } inline void set_loader_optimization_12(int32_t value) { ___loader_optimization_12 = value; } inline static int32_t get_offset_of_disallow_binding_redirects_13() { return static_cast<int32_t>(offsetof(AppDomainSetup_t80DF2915BB100D4BD515920B49C959E9FA451306, ___disallow_binding_redirects_13)); } inline bool get_disallow_binding_redirects_13() const { return ___disallow_binding_redirects_13; } inline bool* get_address_of_disallow_binding_redirects_13() { return &___disallow_binding_redirects_13; } inline void set_disallow_binding_redirects_13(bool value) { ___disallow_binding_redirects_13 = value; } inline static int32_t get_offset_of_disallow_code_downloads_14() { return static_cast<int32_t>(offsetof(AppDomainSetup_t80DF2915BB100D4BD515920B49C959E9FA451306, ___disallow_code_downloads_14)); } inline bool get_disallow_code_downloads_14() const { return ___disallow_code_downloads_14; } inline bool* get_address_of_disallow_code_downloads_14() { return &___disallow_code_downloads_14; } inline void set_disallow_code_downloads_14(bool value) { ___disallow_code_downloads_14 = value; } inline static int32_t get_offset_of__activationArguments_15() { return static_cast<int32_t>(offsetof(AppDomainSetup_t80DF2915BB100D4BD515920B49C959E9FA451306, ____activationArguments_15)); } inline RuntimeObject * get__activationArguments_15() const { return ____activationArguments_15; } inline RuntimeObject ** get_address_of__activationArguments_15() { return &____activationArguments_15; } inline void set__activationArguments_15(RuntimeObject * value) { ____activationArguments_15 = value; Il2CppCodeGenWriteBarrier((&____activationArguments_15), value); } inline static int32_t get_offset_of_domain_initializer_16() { return static_cast<int32_t>(offsetof(AppDomainSetup_t80DF2915BB100D4BD515920B49C959E9FA451306, ___domain_initializer_16)); } inline RuntimeObject * get_domain_initializer_16() const { return ___domain_initializer_16; } inline RuntimeObject ** get_address_of_domain_initializer_16() { return &___domain_initializer_16; } inline void set_domain_initializer_16(RuntimeObject * value) { ___domain_initializer_16 = value; Il2CppCodeGenWriteBarrier((&___domain_initializer_16), value); } inline static int32_t get_offset_of_application_trust_17() { return static_cast<int32_t>(offsetof(AppDomainSetup_t80DF2915BB100D4BD515920B49C959E9FA451306, ___application_trust_17)); } inline RuntimeObject * get_application_trust_17() const { return ___application_trust_17; } inline RuntimeObject ** get_address_of_application_trust_17() { return &___application_trust_17; } inline void set_application_trust_17(RuntimeObject * value) { ___application_trust_17 = value; Il2CppCodeGenWriteBarrier((&___application_trust_17), value); } inline static int32_t get_offset_of_domain_initializer_args_18() { return static_cast<int32_t>(offsetof(AppDomainSetup_t80DF2915BB100D4BD515920B49C959E9FA451306, ___domain_initializer_args_18)); } inline StringU5BU5D_t933FB07893230EA91C40FF900D5400665E87B14E* get_domain_initializer_args_18() const { return ___domain_initializer_args_18; } inline StringU5BU5D_t933FB07893230EA91C40FF900D5400665E87B14E** get_address_of_domain_initializer_args_18() { return &___domain_initializer_args_18; } inline void set_domain_initializer_args_18(StringU5BU5D_t933FB07893230EA91C40FF900D5400665E87B14E* value) { ___domain_initializer_args_18 = value; Il2CppCodeGenWriteBarrier((&___domain_initializer_args_18), value); } inline static int32_t get_offset_of_disallow_appbase_probe_19() { return static_cast<int32_t>(offsetof(AppDomainSetup_t80DF2915BB100D4BD515920B49C959E9FA451306, ___disallow_appbase_probe_19)); } inline bool get_disallow_appbase_probe_19() const { return ___disallow_appbase_probe_19; } inline bool* get_address_of_disallow_appbase_probe_19() { return &___disallow_appbase_probe_19; } inline void set_disallow_appbase_probe_19(bool value) { ___disallow_appbase_probe_19 = value; } inline static int32_t get_offset_of_configuration_bytes_20() { return static_cast<int32_t>(offsetof(AppDomainSetup_t80DF2915BB100D4BD515920B49C959E9FA451306, ___configuration_bytes_20)); } inline ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* get_configuration_bytes_20() const { return ___configuration_bytes_20; } inline ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821** get_address_of_configuration_bytes_20() { return &___configuration_bytes_20; } inline void set_configuration_bytes_20(ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* value) { ___configuration_bytes_20 = value; Il2CppCodeGenWriteBarrier((&___configuration_bytes_20), value); } inline static int32_t get_offset_of_serialized_non_primitives_21() { return static_cast<int32_t>(offsetof(AppDomainSetup_t80DF2915BB100D4BD515920B49C959E9FA451306, ___serialized_non_primitives_21)); } inline ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* get_serialized_non_primitives_21() const { return ___serialized_non_primitives_21; } inline ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821** get_address_of_serialized_non_primitives_21() { return &___serialized_non_primitives_21; } inline void set_serialized_non_primitives_21(ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* value) { ___serialized_non_primitives_21 = value; Il2CppCodeGenWriteBarrier((&___serialized_non_primitives_21), value); } inline static int32_t get_offset_of_U3CTargetFrameworkNameU3Ek__BackingField_22() { return static_cast<int32_t>(offsetof(AppDomainSetup_t80DF2915BB100D4BD515920B49C959E9FA451306, ___U3CTargetFrameworkNameU3Ek__BackingField_22)); } inline String_t* get_U3CTargetFrameworkNameU3Ek__BackingField_22() const { return ___U3CTargetFrameworkNameU3Ek__BackingField_22; } inline String_t** get_address_of_U3CTargetFrameworkNameU3Ek__BackingField_22() { return &___U3CTargetFrameworkNameU3Ek__BackingField_22; } inline void set_U3CTargetFrameworkNameU3Ek__BackingField_22(String_t* value) { ___U3CTargetFrameworkNameU3Ek__BackingField_22 = value; Il2CppCodeGenWriteBarrier((&___U3CTargetFrameworkNameU3Ek__BackingField_22), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif // Native definition for P/Invoke marshalling of System.AppDomainSetup struct AppDomainSetup_t80DF2915BB100D4BD515920B49C959E9FA451306_marshaled_pinvoke { char* ___application_base_0; char* ___application_name_1; char* ___cache_path_2; char* ___configuration_file_3; char* ___dynamic_base_4; char* ___license_file_5; char* ___private_bin_path_6; char* ___private_bin_path_probe_7; char* ___shadow_copy_directories_8; char* ___shadow_copy_files_9; int32_t ___publisher_policy_10; int32_t ___path_changed_11; int32_t ___loader_optimization_12; int32_t ___disallow_binding_redirects_13; int32_t ___disallow_code_downloads_14; Il2CppIUnknown* ____activationArguments_15; Il2CppIUnknown* ___domain_initializer_16; Il2CppIUnknown* ___application_trust_17; char** ___domain_initializer_args_18; int32_t ___disallow_appbase_probe_19; uint8_t* ___configuration_bytes_20; uint8_t* ___serialized_non_primitives_21; char* ___U3CTargetFrameworkNameU3Ek__BackingField_22; }; // Native definition for COM marshalling of System.AppDomainSetup struct AppDomainSetup_t80DF2915BB100D4BD515920B49C959E9FA451306_marshaled_com { Il2CppChar* ___application_base_0; Il2CppChar* ___application_name_1; Il2CppChar* ___cache_path_2; Il2CppChar* ___configuration_file_3; Il2CppChar* ___dynamic_base_4; Il2CppChar* ___license_file_5; Il2CppChar* ___private_bin_path_6; Il2CppChar* ___private_bin_path_probe_7; Il2CppChar* ___shadow_copy_directories_8; Il2CppChar* ___shadow_copy_files_9; int32_t ___publisher_policy_10; int32_t ___path_changed_11; int32_t ___loader_optimization_12; int32_t ___disallow_binding_redirects_13; int32_t ___disallow_code_downloads_14; Il2CppIUnknown* ____activationArguments_15; Il2CppIUnknown* ___domain_initializer_16; Il2CppIUnknown* ___application_trust_17; Il2CppChar** ___domain_initializer_args_18; int32_t ___disallow_appbase_probe_19; uint8_t* ___configuration_bytes_20; uint8_t* ___serialized_non_primitives_21; Il2CppChar* ___U3CTargetFrameworkNameU3Ek__BackingField_22; }; #endif // APPDOMAINSETUP_T80DF2915BB100D4BD515920B49C959E9FA451306_H #ifndef ATTRIBUTE_TF048C13FB3C8CFCC53F82290E4A3F621089F9A74_H #define ATTRIBUTE_TF048C13FB3C8CFCC53F82290E4A3F621089F9A74_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Attribute struct Attribute_tF048C13FB3C8CFCC53F82290E4A3F621089F9A74 : public RuntimeObject { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // ATTRIBUTE_TF048C13FB3C8CFCC53F82290E4A3F621089F9A74_H #ifndef CLRCONFIG_T79EBAFC5FBCAC675B35CB93391030FABCA9A7B45_H #define CLRCONFIG_T79EBAFC5FBCAC675B35CB93391030FABCA9A7B45_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.CLRConfig struct CLRConfig_t79EBAFC5FBCAC675B35CB93391030FABCA9A7B45 : public RuntimeObject { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // CLRCONFIG_T79EBAFC5FBCAC675B35CB93391030FABCA9A7B45_H #ifndef COMPATIBILITYSWITCHES_TC541F9F5404925C97741A0628E9B6D26C40CFA91_H #define COMPATIBILITYSWITCHES_TC541F9F5404925C97741A0628E9B6D26C40CFA91_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.CompatibilitySwitches struct CompatibilitySwitches_tC541F9F5404925C97741A0628E9B6D26C40CFA91 : public RuntimeObject { public: public: }; struct CompatibilitySwitches_tC541F9F5404925C97741A0628E9B6D26C40CFA91_StaticFields { public: // System.Boolean System.CompatibilitySwitches::IsAppEarlierThanSilverlight4 bool ___IsAppEarlierThanSilverlight4_0; // System.Boolean System.CompatibilitySwitches::IsAppEarlierThanWindowsPhone8 bool ___IsAppEarlierThanWindowsPhone8_1; public: inline static int32_t get_offset_of_IsAppEarlierThanSilverlight4_0() { return static_cast<int32_t>(offsetof(CompatibilitySwitches_tC541F9F5404925C97741A0628E9B6D26C40CFA91_StaticFields, ___IsAppEarlierThanSilverlight4_0)); } inline bool get_IsAppEarlierThanSilverlight4_0() const { return ___IsAppEarlierThanSilverlight4_0; } inline bool* get_address_of_IsAppEarlierThanSilverlight4_0() { return &___IsAppEarlierThanSilverlight4_0; } inline void set_IsAppEarlierThanSilverlight4_0(bool value) { ___IsAppEarlierThanSilverlight4_0 = value; } inline static int32_t get_offset_of_IsAppEarlierThanWindowsPhone8_1() { return static_cast<int32_t>(offsetof(CompatibilitySwitches_tC541F9F5404925C97741A0628E9B6D26C40CFA91_StaticFields, ___IsAppEarlierThanWindowsPhone8_1)); } inline bool get_IsAppEarlierThanWindowsPhone8_1() const { return ___IsAppEarlierThanWindowsPhone8_1; } inline bool* get_address_of_IsAppEarlierThanWindowsPhone8_1() { return &___IsAppEarlierThanWindowsPhone8_1; } inline void set_IsAppEarlierThanWindowsPhone8_1(bool value) { ___IsAppEarlierThanWindowsPhone8_1 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // COMPATIBILITYSWITCHES_TC541F9F5404925C97741A0628E9B6D26C40CFA91_H #ifndef CONSOLE_T5C8E87BA271B0DECA837A3BF9093AC3560DB3D5D_H #define CONSOLE_T5C8E87BA271B0DECA837A3BF9093AC3560DB3D5D_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Console struct Console_t5C8E87BA271B0DECA837A3BF9093AC3560DB3D5D : public RuntimeObject { public: public: }; struct Console_t5C8E87BA271B0DECA837A3BF9093AC3560DB3D5D_StaticFields { public: // System.IO.TextWriter System.Console::stdout TextWriter_t92451D929322093838C41489883D5B2D7ABAF3F0 * ___stdout_0; // System.IO.TextWriter System.Console::stderr TextWriter_t92451D929322093838C41489883D5B2D7ABAF3F0 * ___stderr_1; // System.IO.TextReader System.Console::stdin TextReader_t7DF8314B601D202ECFEDF623093A87BFDAB58D0A * ___stdin_2; // System.Text.Encoding System.Console::inputEncoding Encoding_t7837A3C0F55EAE0E3959A53C6D6E88B113ED78A4 * ___inputEncoding_3; // System.Text.Encoding System.Console::outputEncoding Encoding_t7837A3C0F55EAE0E3959A53C6D6E88B113ED78A4 * ___outputEncoding_4; // System.ConsoleCancelEventHandler System.Console::cancel_event ConsoleCancelEventHandler_t6F3B5D9C55C25FF6B53EFEDA9150EFE807311EB4 * ___cancel_event_5; // System.Console_InternalCancelHandler System.Console::cancel_handler InternalCancelHandler_t2DD134D8150B67E2F9FAD1BC2E6BE92EED57968A * ___cancel_handler_6; public: inline static int32_t get_offset_of_stdout_0() { return static_cast<int32_t>(offsetof(Console_t5C8E87BA271B0DECA837A3BF9093AC3560DB3D5D_StaticFields, ___stdout_0)); } inline TextWriter_t92451D929322093838C41489883D5B2D7ABAF3F0 * get_stdout_0() const { return ___stdout_0; } inline TextWriter_t92451D929322093838C41489883D5B2D7ABAF3F0 ** get_address_of_stdout_0() { return &___stdout_0; } inline void set_stdout_0(TextWriter_t92451D929322093838C41489883D5B2D7ABAF3F0 * value) { ___stdout_0 = value; Il2CppCodeGenWriteBarrier((&___stdout_0), value); } inline static int32_t get_offset_of_stderr_1() { return static_cast<int32_t>(offsetof(Console_t5C8E87BA271B0DECA837A3BF9093AC3560DB3D5D_StaticFields, ___stderr_1)); } inline TextWriter_t92451D929322093838C41489883D5B2D7ABAF3F0 * get_stderr_1() const { return ___stderr_1; } inline TextWriter_t92451D929322093838C41489883D5B2D7ABAF3F0 ** get_address_of_stderr_1() { return &___stderr_1; } inline void set_stderr_1(TextWriter_t92451D929322093838C41489883D5B2D7ABAF3F0 * value) { ___stderr_1 = value; Il2CppCodeGenWriteBarrier((&___stderr_1), value); } inline static int32_t get_offset_of_stdin_2() { return static_cast<int32_t>(offsetof(Console_t5C8E87BA271B0DECA837A3BF9093AC3560DB3D5D_StaticFields, ___stdin_2)); } inline TextReader_t7DF8314B601D202ECFEDF623093A87BFDAB58D0A * get_stdin_2() const { return ___stdin_2; } inline TextReader_t7DF8314B601D202ECFEDF623093A87BFDAB58D0A ** get_address_of_stdin_2() { return &___stdin_2; } inline void set_stdin_2(TextReader_t7DF8314B601D202ECFEDF623093A87BFDAB58D0A * value) { ___stdin_2 = value; Il2CppCodeGenWriteBarrier((&___stdin_2), value); } inline static int32_t get_offset_of_inputEncoding_3() { return static_cast<int32_t>(offsetof(Console_t5C8E87BA271B0DECA837A3BF9093AC3560DB3D5D_StaticFields, ___inputEncoding_3)); } inline Encoding_t7837A3C0F55EAE0E3959A53C6D6E88B113ED78A4 * get_inputEncoding_3() const { return ___inputEncoding_3; } inline Encoding_t7837A3C0F55EAE0E3959A53C6D6E88B113ED78A4 ** get_address_of_inputEncoding_3() { return &___inputEncoding_3; } inline void set_inputEncoding_3(Encoding_t7837A3C0F55EAE0E3959A53C6D6E88B113ED78A4 * value) { ___inputEncoding_3 = value; Il2CppCodeGenWriteBarrier((&___inputEncoding_3), value); } inline static int32_t get_offset_of_outputEncoding_4() { return static_cast<int32_t>(offsetof(Console_t5C8E87BA271B0DECA837A3BF9093AC3560DB3D5D_StaticFields, ___outputEncoding_4)); } inline Encoding_t7837A3C0F55EAE0E3959A53C6D6E88B113ED78A4 * get_outputEncoding_4() const { return ___outputEncoding_4; } inline Encoding_t7837A3C0F55EAE0E3959A53C6D6E88B113ED78A4 ** get_address_of_outputEncoding_4() { return &___outputEncoding_4; } inline void set_outputEncoding_4(Encoding_t7837A3C0F55EAE0E3959A53C6D6E88B113ED78A4 * value) { ___outputEncoding_4 = value; Il2CppCodeGenWriteBarrier((&___outputEncoding_4), value); } inline static int32_t get_offset_of_cancel_event_5() { return static_cast<int32_t>(offsetof(Console_t5C8E87BA271B0DECA837A3BF9093AC3560DB3D5D_StaticFields, ___cancel_event_5)); } inline ConsoleCancelEventHandler_t6F3B5D9C55C25FF6B53EFEDA9150EFE807311EB4 * get_cancel_event_5() const { return ___cancel_event_5; } inline ConsoleCancelEventHandler_t6F3B5D9C55C25FF6B53EFEDA9150EFE807311EB4 ** get_address_of_cancel_event_5() { return &___cancel_event_5; } inline void set_cancel_event_5(ConsoleCancelEventHandler_t6F3B5D9C55C25FF6B53EFEDA9150EFE807311EB4 * value) { ___cancel_event_5 = value; Il2CppCodeGenWriteBarrier((&___cancel_event_5), value); } inline static int32_t get_offset_of_cancel_handler_6() { return static_cast<int32_t>(offsetof(Console_t5C8E87BA271B0DECA837A3BF9093AC3560DB3D5D_StaticFields, ___cancel_handler_6)); } inline InternalCancelHandler_t2DD134D8150B67E2F9FAD1BC2E6BE92EED57968A * get_cancel_handler_6() const { return ___cancel_handler_6; } inline InternalCancelHandler_t2DD134D8150B67E2F9FAD1BC2E6BE92EED57968A ** get_address_of_cancel_handler_6() { return &___cancel_handler_6; } inline void set_cancel_handler_6(InternalCancelHandler_t2DD134D8150B67E2F9FAD1BC2E6BE92EED57968A * value) { ___cancel_handler_6 = value; Il2CppCodeGenWriteBarrier((&___cancel_handler_6), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // CONSOLE_T5C8E87BA271B0DECA837A3BF9093AC3560DB3D5D_H #ifndef WINDOWSCONSOLE_TE2543F6EAD1001D1F2DE2CC0A5495048EED8C21B_H #define WINDOWSCONSOLE_TE2543F6EAD1001D1F2DE2CC0A5495048EED8C21B_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Console_WindowsConsole struct WindowsConsole_tE2543F6EAD1001D1F2DE2CC0A5495048EED8C21B : public RuntimeObject { public: public: }; struct WindowsConsole_tE2543F6EAD1001D1F2DE2CC0A5495048EED8C21B_StaticFields { public: // System.Boolean System.Console_WindowsConsole::ctrlHandlerAdded bool ___ctrlHandlerAdded_0; // System.Console_WindowsConsole_WindowsCancelHandler System.Console_WindowsConsole::cancelHandler WindowsCancelHandler_t1D05BCFB512603DCF87A126FE9969F1D876B9B51 * ___cancelHandler_1; public: inline static int32_t get_offset_of_ctrlHandlerAdded_0() { return static_cast<int32_t>(offsetof(WindowsConsole_tE2543F6EAD1001D1F2DE2CC0A5495048EED8C21B_StaticFields, ___ctrlHandlerAdded_0)); } inline bool get_ctrlHandlerAdded_0() const { return ___ctrlHandlerAdded_0; } inline bool* get_address_of_ctrlHandlerAdded_0() { return &___ctrlHandlerAdded_0; } inline void set_ctrlHandlerAdded_0(bool value) { ___ctrlHandlerAdded_0 = value; } inline static int32_t get_offset_of_cancelHandler_1() { return static_cast<int32_t>(offsetof(WindowsConsole_tE2543F6EAD1001D1F2DE2CC0A5495048EED8C21B_StaticFields, ___cancelHandler_1)); } inline WindowsCancelHandler_t1D05BCFB512603DCF87A126FE9969F1D876B9B51 * get_cancelHandler_1() const { return ___cancelHandler_1; } inline WindowsCancelHandler_t1D05BCFB512603DCF87A126FE9969F1D876B9B51 ** get_address_of_cancelHandler_1() { return &___cancelHandler_1; } inline void set_cancelHandler_1(WindowsCancelHandler_t1D05BCFB512603DCF87A126FE9969F1D876B9B51 * value) { ___cancelHandler_1 = value; Il2CppCodeGenWriteBarrier((&___cancelHandler_1), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // WINDOWSCONSOLE_TE2543F6EAD1001D1F2DE2CC0A5495048EED8C21B_H #ifndef CONSOLEDRIVER_T4F24DB42600CA82912181D5D312902B8BEFEE101_H #define CONSOLEDRIVER_T4F24DB42600CA82912181D5D312902B8BEFEE101_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.ConsoleDriver struct ConsoleDriver_t4F24DB42600CA82912181D5D312902B8BEFEE101 : public RuntimeObject { public: public: }; struct ConsoleDriver_t4F24DB42600CA82912181D5D312902B8BEFEE101_StaticFields { public: // System.IConsoleDriver System.ConsoleDriver::driver RuntimeObject* ___driver_0; // System.Boolean System.ConsoleDriver::is_console bool ___is_console_1; // System.Boolean System.ConsoleDriver::called_isatty bool ___called_isatty_2; public: inline static int32_t get_offset_of_driver_0() { return static_cast<int32_t>(offsetof(ConsoleDriver_t4F24DB42600CA82912181D5D312902B8BEFEE101_StaticFields, ___driver_0)); } inline RuntimeObject* get_driver_0() const { return ___driver_0; } inline RuntimeObject** get_address_of_driver_0() { return &___driver_0; } inline void set_driver_0(RuntimeObject* value) { ___driver_0 = value; Il2CppCodeGenWriteBarrier((&___driver_0), value); } inline static int32_t get_offset_of_is_console_1() { return static_cast<int32_t>(offsetof(ConsoleDriver_t4F24DB42600CA82912181D5D312902B8BEFEE101_StaticFields, ___is_console_1)); } inline bool get_is_console_1() const { return ___is_console_1; } inline bool* get_address_of_is_console_1() { return &___is_console_1; } inline void set_is_console_1(bool value) { ___is_console_1 = value; } inline static int32_t get_offset_of_called_isatty_2() { return static_cast<int32_t>(offsetof(ConsoleDriver_t4F24DB42600CA82912181D5D312902B8BEFEE101_StaticFields, ___called_isatty_2)); } inline bool get_called_isatty_2() const { return ___called_isatty_2; } inline bool* get_address_of_called_isatty_2() { return &___called_isatty_2; } inline void set_called_isatty_2(bool value) { ___called_isatty_2 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // CONSOLEDRIVER_T4F24DB42600CA82912181D5D312902B8BEFEE101_H #ifndef DELEGATEDATA_T1BF9F691B56DAE5F8C28C5E084FDE94F15F27BBE_H #define DELEGATEDATA_T1BF9F691B56DAE5F8C28C5E084FDE94F15F27BBE_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.DelegateData struct DelegateData_t1BF9F691B56DAE5F8C28C5E084FDE94F15F27BBE : public RuntimeObject { public: // System.Type System.DelegateData::target_type Type_t * ___target_type_0; // System.String System.DelegateData::method_name String_t* ___method_name_1; // System.Boolean System.DelegateData::curried_first_arg bool ___curried_first_arg_2; public: inline static int32_t get_offset_of_target_type_0() { return static_cast<int32_t>(offsetof(DelegateData_t1BF9F691B56DAE5F8C28C5E084FDE94F15F27BBE, ___target_type_0)); } inline Type_t * get_target_type_0() const { return ___target_type_0; } inline Type_t ** get_address_of_target_type_0() { return &___target_type_0; } inline void set_target_type_0(Type_t * value) { ___target_type_0 = value; Il2CppCodeGenWriteBarrier((&___target_type_0), value); } inline static int32_t get_offset_of_method_name_1() { return static_cast<int32_t>(offsetof(DelegateData_t1BF9F691B56DAE5F8C28C5E084FDE94F15F27BBE, ___method_name_1)); } inline String_t* get_method_name_1() const { return ___method_name_1; } inline String_t** get_address_of_method_name_1() { return &___method_name_1; } inline void set_method_name_1(String_t* value) { ___method_name_1 = value; Il2CppCodeGenWriteBarrier((&___method_name_1), value); } inline static int32_t get_offset_of_curried_first_arg_2() { return static_cast<int32_t>(offsetof(DelegateData_t1BF9F691B56DAE5F8C28C5E084FDE94F15F27BBE, ___curried_first_arg_2)); } inline bool get_curried_first_arg_2() const { return ___curried_first_arg_2; } inline bool* get_address_of_curried_first_arg_2() { return &___curried_first_arg_2; } inline void set_curried_first_arg_2(bool value) { ___curried_first_arg_2 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // DELEGATEDATA_T1BF9F691B56DAE5F8C28C5E084FDE94F15F27BBE_H #ifndef ENVIRONMENT_TC93BF7477A1AEA39D05EDFEBAFF62EE5353FF806_H #define ENVIRONMENT_TC93BF7477A1AEA39D05EDFEBAFF62EE5353FF806_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Environment struct Environment_tC93BF7477A1AEA39D05EDFEBAFF62EE5353FF806 : public RuntimeObject { public: public: }; struct Environment_tC93BF7477A1AEA39D05EDFEBAFF62EE5353FF806_StaticFields { public: // System.String System.Environment::nl String_t* ___nl_1; // System.OperatingSystem System.Environment::os OperatingSystem_tBB05846D5AA6960FFEB42C59E5FE359255C2BE83 * ___os_2; public: inline static int32_t get_offset_of_nl_1() { return static_cast<int32_t>(offsetof(Environment_tC93BF7477A1AEA39D05EDFEBAFF62EE5353FF806_StaticFields, ___nl_1)); } inline String_t* get_nl_1() const { return ___nl_1; } inline String_t** get_address_of_nl_1() { return &___nl_1; } inline void set_nl_1(String_t* value) { ___nl_1 = value; Il2CppCodeGenWriteBarrier((&___nl_1), value); } inline static int32_t get_offset_of_os_2() { return static_cast<int32_t>(offsetof(Environment_tC93BF7477A1AEA39D05EDFEBAFF62EE5353FF806_StaticFields, ___os_2)); } inline OperatingSystem_tBB05846D5AA6960FFEB42C59E5FE359255C2BE83 * get_os_2() const { return ___os_2; } inline OperatingSystem_tBB05846D5AA6960FFEB42C59E5FE359255C2BE83 ** get_address_of_os_2() { return &___os_2; } inline void set_os_2(OperatingSystem_tBB05846D5AA6960FFEB42C59E5FE359255C2BE83 * value) { ___os_2 = value; Il2CppCodeGenWriteBarrier((&___os_2), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // ENVIRONMENT_TC93BF7477A1AEA39D05EDFEBAFF62EE5353FF806_H #ifndef EVENTARGS_T8E6CA180BE0E56674C6407011A94BAF7C757352E_H #define EVENTARGS_T8E6CA180BE0E56674C6407011A94BAF7C757352E_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.EventArgs struct EventArgs_t8E6CA180BE0E56674C6407011A94BAF7C757352E : public RuntimeObject { public: public: }; struct EventArgs_t8E6CA180BE0E56674C6407011A94BAF7C757352E_StaticFields { public: // System.EventArgs System.EventArgs::Empty EventArgs_t8E6CA180BE0E56674C6407011A94BAF7C757352E * ___Empty_0; public: inline static int32_t get_offset_of_Empty_0() { return static_cast<int32_t>(offsetof(EventArgs_t8E6CA180BE0E56674C6407011A94BAF7C757352E_StaticFields, ___Empty_0)); } inline EventArgs_t8E6CA180BE0E56674C6407011A94BAF7C757352E * get_Empty_0() const { return ___Empty_0; } inline EventArgs_t8E6CA180BE0E56674C6407011A94BAF7C757352E ** get_address_of_Empty_0() { return &___Empty_0; } inline void set_Empty_0(EventArgs_t8E6CA180BE0E56674C6407011A94BAF7C757352E * value) { ___Empty_0 = value; Il2CppCodeGenWriteBarrier((&___Empty_0), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // EVENTARGS_T8E6CA180BE0E56674C6407011A94BAF7C757352E_H #ifndef EXCEPTION_T_H #define EXCEPTION_T_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Exception struct Exception_t : public RuntimeObject { public: // System.String System.Exception::_className String_t* ____className_1; // System.String System.Exception::_message String_t* ____message_2; // System.Collections.IDictionary System.Exception::_data RuntimeObject* ____data_3; // System.Exception System.Exception::_innerException Exception_t * ____innerException_4; // System.String System.Exception::_helpURL String_t* ____helpURL_5; // System.Object System.Exception::_stackTrace RuntimeObject * ____stackTrace_6; // System.String System.Exception::_stackTraceString String_t* ____stackTraceString_7; // System.String System.Exception::_remoteStackTraceString String_t* ____remoteStackTraceString_8; // System.Int32 System.Exception::_remoteStackIndex int32_t ____remoteStackIndex_9; // System.Object System.Exception::_dynamicMethods RuntimeObject * ____dynamicMethods_10; // System.Int32 System.Exception::_HResult int32_t ____HResult_11; // System.String System.Exception::_source String_t* ____source_12; // System.Runtime.Serialization.SafeSerializationManager System.Exception::_safeSerializationManager SafeSerializationManager_t4A754D86B0F784B18CBC36C073BA564BED109770 * ____safeSerializationManager_13; // System.Diagnostics.StackTrace[] System.Exception::captured_traces StackTraceU5BU5D_t855F09649EA34DEE7C1B6F088E0538E3CCC3F196* ___captured_traces_14; // System.IntPtr[] System.Exception::native_trace_ips IntPtrU5BU5D_t4DC01DCB9A6DF6C9792A6513595D7A11E637DCDD* ___native_trace_ips_15; public: inline static int32_t get_offset_of__className_1() { return static_cast<int32_t>(offsetof(Exception_t, ____className_1)); } inline String_t* get__className_1() const { return ____className_1; } inline String_t** get_address_of__className_1() { return &____className_1; } inline void set__className_1(String_t* value) { ____className_1 = value; Il2CppCodeGenWriteBarrier((&____className_1), value); } inline static int32_t get_offset_of__message_2() { return static_cast<int32_t>(offsetof(Exception_t, ____message_2)); } inline String_t* get__message_2() const { return ____message_2; } inline String_t** get_address_of__message_2() { return &____message_2; } inline void set__message_2(String_t* value) { ____message_2 = value; Il2CppCodeGenWriteBarrier((&____message_2), value); } inline static int32_t get_offset_of__data_3() { return static_cast<int32_t>(offsetof(Exception_t, ____data_3)); } inline RuntimeObject* get__data_3() const { return ____data_3; } inline RuntimeObject** get_address_of__data_3() { return &____data_3; } inline void set__data_3(RuntimeObject* value) { ____data_3 = value; Il2CppCodeGenWriteBarrier((&____data_3), value); } inline static int32_t get_offset_of__innerException_4() { return static_cast<int32_t>(offsetof(Exception_t, ____innerException_4)); } inline Exception_t * get__innerException_4() const { return ____innerException_4; } inline Exception_t ** get_address_of__innerException_4() { return &____innerException_4; } inline void set__innerException_4(Exception_t * value) { ____innerException_4 = value; Il2CppCodeGenWriteBarrier((&____innerException_4), value); } inline static int32_t get_offset_of__helpURL_5() { return static_cast<int32_t>(offsetof(Exception_t, ____helpURL_5)); } inline String_t* get__helpURL_5() const { return ____helpURL_5; } inline String_t** get_address_of__helpURL_5() { return &____helpURL_5; } inline void set__helpURL_5(String_t* value) { ____helpURL_5 = value; Il2CppCodeGenWriteBarrier((&____helpURL_5), value); } inline static int32_t get_offset_of__stackTrace_6() { return static_cast<int32_t>(offsetof(Exception_t, ____stackTrace_6)); } inline RuntimeObject * get__stackTrace_6() const { return ____stackTrace_6; } inline RuntimeObject ** get_address_of__stackTrace_6() { return &____stackTrace_6; } inline void set__stackTrace_6(RuntimeObject * value) { ____stackTrace_6 = value; Il2CppCodeGenWriteBarrier((&____stackTrace_6), value); } inline static int32_t get_offset_of__stackTraceString_7() { return static_cast<int32_t>(offsetof(Exception_t, ____stackTraceString_7)); } inline String_t* get__stackTraceString_7() const { return ____stackTraceString_7; } inline String_t** get_address_of__stackTraceString_7() { return &____stackTraceString_7; } inline void set__stackTraceString_7(String_t* value) { ____stackTraceString_7 = value; Il2CppCodeGenWriteBarrier((&____stackTraceString_7), value); } inline static int32_t get_offset_of__remoteStackTraceString_8() { return static_cast<int32_t>(offsetof(Exception_t, ____remoteStackTraceString_8)); } inline String_t* get__remoteStackTraceString_8() const { return ____remoteStackTraceString_8; } inline String_t** get_address_of__remoteStackTraceString_8() { return &____remoteStackTraceString_8; } inline void set__remoteStackTraceString_8(String_t* value) { ____remoteStackTraceString_8 = value; Il2CppCodeGenWriteBarrier((&____remoteStackTraceString_8), value); } inline static int32_t get_offset_of__remoteStackIndex_9() { return static_cast<int32_t>(offsetof(Exception_t, ____remoteStackIndex_9)); } inline int32_t get__remoteStackIndex_9() const { return ____remoteStackIndex_9; } inline int32_t* get_address_of__remoteStackIndex_9() { return &____remoteStackIndex_9; } inline void set__remoteStackIndex_9(int32_t value) { ____remoteStackIndex_9 = value; } inline static int32_t get_offset_of__dynamicMethods_10() { return static_cast<int32_t>(offsetof(Exception_t, ____dynamicMethods_10)); } inline RuntimeObject * get__dynamicMethods_10() const { return ____dynamicMethods_10; } inline RuntimeObject ** get_address_of__dynamicMethods_10() { return &____dynamicMethods_10; } inline void set__dynamicMethods_10(RuntimeObject * value) { ____dynamicMethods_10 = value; Il2CppCodeGenWriteBarrier((&____dynamicMethods_10), value); } inline static int32_t get_offset_of__HResult_11() { return static_cast<int32_t>(offsetof(Exception_t, ____HResult_11)); } inline int32_t get__HResult_11() const { return ____HResult_11; } inline int32_t* get_address_of__HResult_11() { return &____HResult_11; } inline void set__HResult_11(int32_t value) { ____HResult_11 = value; } inline static int32_t get_offset_of__source_12() { return static_cast<int32_t>(offsetof(Exception_t, ____source_12)); } inline String_t* get__source_12() const { return ____source_12; } inline String_t** get_address_of__source_12() { return &____source_12; } inline void set__source_12(String_t* value) { ____source_12 = value; Il2CppCodeGenWriteBarrier((&____source_12), value); } inline static int32_t get_offset_of__safeSerializationManager_13() { return static_cast<int32_t>(offsetof(Exception_t, ____safeSerializationManager_13)); } inline SafeSerializationManager_t4A754D86B0F784B18CBC36C073BA564BED109770 * get__safeSerializationManager_13() const { return ____safeSerializationManager_13; } inline SafeSerializationManager_t4A754D86B0F784B18CBC36C073BA564BED109770 ** get_address_of__safeSerializationManager_13() { return &____safeSerializationManager_13; } inline void set__safeSerializationManager_13(SafeSerializationManager_t4A754D86B0F784B18CBC36C073BA564BED109770 * value) { ____safeSerializationManager_13 = value; Il2CppCodeGenWriteBarrier((&____safeSerializationManager_13), value); } inline static int32_t get_offset_of_captured_traces_14() { return static_cast<int32_t>(offsetof(Exception_t, ___captured_traces_14)); } inline StackTraceU5BU5D_t855F09649EA34DEE7C1B6F088E0538E3CCC3F196* get_captured_traces_14() const { return ___captured_traces_14; } inline StackTraceU5BU5D_t855F09649EA34DEE7C1B6F088E0538E3CCC3F196** get_address_of_captured_traces_14() { return &___captured_traces_14; } inline void set_captured_traces_14(StackTraceU5BU5D_t855F09649EA34DEE7C1B6F088E0538E3CCC3F196* value) { ___captured_traces_14 = value; Il2CppCodeGenWriteBarrier((&___captured_traces_14), value); } inline static int32_t get_offset_of_native_trace_ips_15() { return static_cast<int32_t>(offsetof(Exception_t, ___native_trace_ips_15)); } inline IntPtrU5BU5D_t4DC01DCB9A6DF6C9792A6513595D7A11E637DCDD* get_native_trace_ips_15() const { return ___native_trace_ips_15; } inline IntPtrU5BU5D_t4DC01DCB9A6DF6C9792A6513595D7A11E637DCDD** get_address_of_native_trace_ips_15() { return &___native_trace_ips_15; } inline void set_native_trace_ips_15(IntPtrU5BU5D_t4DC01DCB9A6DF6C9792A6513595D7A11E637DCDD* value) { ___native_trace_ips_15 = value; Il2CppCodeGenWriteBarrier((&___native_trace_ips_15), value); } }; struct Exception_t_StaticFields { public: // System.Object System.Exception::s_EDILock RuntimeObject * ___s_EDILock_0; public: inline static int32_t get_offset_of_s_EDILock_0() { return static_cast<int32_t>(offsetof(Exception_t_StaticFields, ___s_EDILock_0)); } inline RuntimeObject * get_s_EDILock_0() const { return ___s_EDILock_0; } inline RuntimeObject ** get_address_of_s_EDILock_0() { return &___s_EDILock_0; } inline void set_s_EDILock_0(RuntimeObject * value) { ___s_EDILock_0 = value; Il2CppCodeGenWriteBarrier((&___s_EDILock_0), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif // Native definition for P/Invoke marshalling of System.Exception struct Exception_t_marshaled_pinvoke { char* ____className_1; char* ____message_2; RuntimeObject* ____data_3; Exception_t_marshaled_pinvoke* ____innerException_4; char* ____helpURL_5; Il2CppIUnknown* ____stackTrace_6; char* ____stackTraceString_7; char* ____remoteStackTraceString_8; int32_t ____remoteStackIndex_9; Il2CppIUnknown* ____dynamicMethods_10; int32_t ____HResult_11; char* ____source_12; SafeSerializationManager_t4A754D86B0F784B18CBC36C073BA564BED109770 * ____safeSerializationManager_13; StackTraceU5BU5D_t855F09649EA34DEE7C1B6F088E0538E3CCC3F196* ___captured_traces_14; intptr_t* ___native_trace_ips_15; }; // Native definition for COM marshalling of System.Exception struct Exception_t_marshaled_com { Il2CppChar* ____className_1; Il2CppChar* ____message_2; RuntimeObject* ____data_3; Exception_t_marshaled_com* ____innerException_4; Il2CppChar* ____helpURL_5; Il2CppIUnknown* ____stackTrace_6; Il2CppChar* ____stackTraceString_7; Il2CppChar* ____remoteStackTraceString_8; int32_t ____remoteStackIndex_9; Il2CppIUnknown* ____dynamicMethods_10; int32_t ____HResult_11; Il2CppChar* ____source_12; SafeSerializationManager_t4A754D86B0F784B18CBC36C073BA564BED109770 * ____safeSerializationManager_13; StackTraceU5BU5D_t855F09649EA34DEE7C1B6F088E0538E3CCC3F196* ___captured_traces_14; intptr_t* ___native_trace_ips_15; }; #endif // EXCEPTION_T_H #ifndef MARSHALBYREFOBJECT_TC4577953D0A44D0AB8597CFA868E01C858B1C9AF_H #define MARSHALBYREFOBJECT_TC4577953D0A44D0AB8597CFA868E01C858B1C9AF_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.MarshalByRefObject struct MarshalByRefObject_tC4577953D0A44D0AB8597CFA868E01C858B1C9AF : public RuntimeObject { public: // System.Object System.MarshalByRefObject::_identity RuntimeObject * ____identity_0; public: inline static int32_t get_offset_of__identity_0() { return static_cast<int32_t>(offsetof(MarshalByRefObject_tC4577953D0A44D0AB8597CFA868E01C858B1C9AF, ____identity_0)); } inline RuntimeObject * get__identity_0() const { return ____identity_0; } inline RuntimeObject ** get_address_of__identity_0() { return &____identity_0; } inline void set__identity_0(RuntimeObject * value) { ____identity_0 = value; Il2CppCodeGenWriteBarrier((&____identity_0), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif // Native definition for P/Invoke marshalling of System.MarshalByRefObject struct MarshalByRefObject_tC4577953D0A44D0AB8597CFA868E01C858B1C9AF_marshaled_pinvoke { Il2CppIUnknown* ____identity_0; }; // Native definition for COM marshalling of System.MarshalByRefObject struct MarshalByRefObject_tC4577953D0A44D0AB8597CFA868E01C858B1C9AF_marshaled_com { Il2CppIUnknown* ____identity_0; }; #endif // MARSHALBYREFOBJECT_TC4577953D0A44D0AB8597CFA868E01C858B1C9AF_H #ifndef MATH_TFB388E53C7FDC6FCCF9A19ABF5A4E521FBD52E19_H #define MATH_TFB388E53C7FDC6FCCF9A19ABF5A4E521FBD52E19_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Math struct Math_tFB388E53C7FDC6FCCF9A19ABF5A4E521FBD52E19 : public RuntimeObject { public: public: }; struct Math_tFB388E53C7FDC6FCCF9A19ABF5A4E521FBD52E19_StaticFields { public: // System.Double System.Math::doubleRoundLimit double ___doubleRoundLimit_0; // System.Double[] System.Math::roundPower10Double DoubleU5BU5D_tF9383437DDA9EAC9F60627E9E6E2045CF7CB182D* ___roundPower10Double_2; public: inline static int32_t get_offset_of_doubleRoundLimit_0() { return static_cast<int32_t>(offsetof(Math_tFB388E53C7FDC6FCCF9A19ABF5A4E521FBD52E19_StaticFields, ___doubleRoundLimit_0)); } inline double get_doubleRoundLimit_0() const { return ___doubleRoundLimit_0; } inline double* get_address_of_doubleRoundLimit_0() { return &___doubleRoundLimit_0; } inline void set_doubleRoundLimit_0(double value) { ___doubleRoundLimit_0 = value; } inline static int32_t get_offset_of_roundPower10Double_2() { return static_cast<int32_t>(offsetof(Math_tFB388E53C7FDC6FCCF9A19ABF5A4E521FBD52E19_StaticFields, ___roundPower10Double_2)); } inline DoubleU5BU5D_tF9383437DDA9EAC9F60627E9E6E2045CF7CB182D* get_roundPower10Double_2() const { return ___roundPower10Double_2; } inline DoubleU5BU5D_tF9383437DDA9EAC9F60627E9E6E2045CF7CB182D** get_address_of_roundPower10Double_2() { return &___roundPower10Double_2; } inline void set_roundPower10Double_2(DoubleU5BU5D_tF9383437DDA9EAC9F60627E9E6E2045CF7CB182D* value) { ___roundPower10Double_2 = value; Il2CppCodeGenWriteBarrier((&___roundPower10Double_2), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // MATH_TFB388E53C7FDC6FCCF9A19ABF5A4E521FBD52E19_H #ifndef MONOTYPEINFO_T9A65BA5324D14FDFEB7644EEE6E1BDF74B8A393D_H #define MONOTYPEINFO_T9A65BA5324D14FDFEB7644EEE6E1BDF74B8A393D_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.MonoTypeInfo struct MonoTypeInfo_t9A65BA5324D14FDFEB7644EEE6E1BDF74B8A393D : public RuntimeObject { public: // System.String System.MonoTypeInfo::full_name String_t* ___full_name_0; // System.Reflection.MonoCMethod System.MonoTypeInfo::default_ctor MonoCMethod_tFB85687BEF8202F8B3E77FE24BCC2E400EA4FC61 * ___default_ctor_1; public: inline static int32_t get_offset_of_full_name_0() { return static_cast<int32_t>(offsetof(MonoTypeInfo_t9A65BA5324D14FDFEB7644EEE6E1BDF74B8A393D, ___full_name_0)); } inline String_t* get_full_name_0() const { return ___full_name_0; } inline String_t** get_address_of_full_name_0() { return &___full_name_0; } inline void set_full_name_0(String_t* value) { ___full_name_0 = value; Il2CppCodeGenWriteBarrier((&___full_name_0), value); } inline static int32_t get_offset_of_default_ctor_1() { return static_cast<int32_t>(offsetof(MonoTypeInfo_t9A65BA5324D14FDFEB7644EEE6E1BDF74B8A393D, ___default_ctor_1)); } inline MonoCMethod_tFB85687BEF8202F8B3E77FE24BCC2E400EA4FC61 * get_default_ctor_1() const { return ___default_ctor_1; } inline MonoCMethod_tFB85687BEF8202F8B3E77FE24BCC2E400EA4FC61 ** get_address_of_default_ctor_1() { return &___default_ctor_1; } inline void set_default_ctor_1(MonoCMethod_tFB85687BEF8202F8B3E77FE24BCC2E400EA4FC61 * value) { ___default_ctor_1 = value; Il2CppCodeGenWriteBarrier((&___default_ctor_1), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif // Native definition for P/Invoke marshalling of System.MonoTypeInfo struct MonoTypeInfo_t9A65BA5324D14FDFEB7644EEE6E1BDF74B8A393D_marshaled_pinvoke { char* ___full_name_0; MonoCMethod_tFB85687BEF8202F8B3E77FE24BCC2E400EA4FC61 * ___default_ctor_1; }; // Native definition for COM marshalling of System.MonoTypeInfo struct MonoTypeInfo_t9A65BA5324D14FDFEB7644EEE6E1BDF74B8A393D_marshaled_com { Il2CppChar* ___full_name_0; MonoCMethod_tFB85687BEF8202F8B3E77FE24BCC2E400EA4FC61 * ___default_ctor_1; }; #endif // MONOTYPEINFO_T9A65BA5324D14FDFEB7644EEE6E1BDF74B8A393D_H #ifndef NUMBER_T0578BBE654AC0F135B04497270FDDFA4CFF84C51_H #define NUMBER_T0578BBE654AC0F135B04497270FDDFA4CFF84C51_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Number struct Number_t0578BBE654AC0F135B04497270FDDFA4CFF84C51 : public RuntimeObject { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // NUMBER_T0578BBE654AC0F135B04497270FDDFA4CFF84C51_H #ifndef PARSENUMBERS_TFCD9612B791F297E13D1D622F88219D9D471331A_H #define PARSENUMBERS_TFCD9612B791F297E13D1D622F88219D9D471331A_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.ParseNumbers struct ParseNumbers_tFCD9612B791F297E13D1D622F88219D9D471331A : public RuntimeObject { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // PARSENUMBERS_TFCD9612B791F297E13D1D622F88219D9D471331A_H #ifndef RANDOM_T18A28484F67EFA289C256F508A5C71D9E6DEE09F_H #define RANDOM_T18A28484F67EFA289C256F508A5C71D9E6DEE09F_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Random struct Random_t18A28484F67EFA289C256F508A5C71D9E6DEE09F : public RuntimeObject { public: // System.Int32 System.Random::inext int32_t ___inext_0; // System.Int32 System.Random::inextp int32_t ___inextp_1; // System.Int32[] System.Random::SeedArray Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* ___SeedArray_2; public: inline static int32_t get_offset_of_inext_0() { return static_cast<int32_t>(offsetof(Random_t18A28484F67EFA289C256F508A5C71D9E6DEE09F, ___inext_0)); } inline int32_t get_inext_0() const { return ___inext_0; } inline int32_t* get_address_of_inext_0() { return &___inext_0; } inline void set_inext_0(int32_t value) { ___inext_0 = value; } inline static int32_t get_offset_of_inextp_1() { return static_cast<int32_t>(offsetof(Random_t18A28484F67EFA289C256F508A5C71D9E6DEE09F, ___inextp_1)); } inline int32_t get_inextp_1() const { return ___inextp_1; } inline int32_t* get_address_of_inextp_1() { return &___inextp_1; } inline void set_inextp_1(int32_t value) { ___inextp_1 = value; } inline static int32_t get_offset_of_SeedArray_2() { return static_cast<int32_t>(offsetof(Random_t18A28484F67EFA289C256F508A5C71D9E6DEE09F, ___SeedArray_2)); } inline Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* get_SeedArray_2() const { return ___SeedArray_2; } inline Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83** get_address_of_SeedArray_2() { return &___SeedArray_2; } inline void set_SeedArray_2(Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* value) { ___SeedArray_2 = value; Il2CppCodeGenWriteBarrier((&___SeedArray_2), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // RANDOM_T18A28484F67EFA289C256F508A5C71D9E6DEE09F_H #ifndef MEMBERINFO_T_H #define MEMBERINFO_T_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Reflection.MemberInfo struct MemberInfo_t : public RuntimeObject { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // MEMBERINFO_T_H #ifndef STRING_T_H #define STRING_T_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.String struct String_t : public RuntimeObject { public: // System.Int32 System.String::m_stringLength int32_t ___m_stringLength_0; // System.Char System.String::m_firstChar Il2CppChar ___m_firstChar_1; public: inline static int32_t get_offset_of_m_stringLength_0() { return static_cast<int32_t>(offsetof(String_t, ___m_stringLength_0)); } inline int32_t get_m_stringLength_0() const { return ___m_stringLength_0; } inline int32_t* get_address_of_m_stringLength_0() { return &___m_stringLength_0; } inline void set_m_stringLength_0(int32_t value) { ___m_stringLength_0 = value; } inline static int32_t get_offset_of_m_firstChar_1() { return static_cast<int32_t>(offsetof(String_t, ___m_firstChar_1)); } inline Il2CppChar get_m_firstChar_1() const { return ___m_firstChar_1; } inline Il2CppChar* get_address_of_m_firstChar_1() { return &___m_firstChar_1; } inline void set_m_firstChar_1(Il2CppChar value) { ___m_firstChar_1 = value; } }; struct String_t_StaticFields { public: // System.String System.String::Empty String_t* ___Empty_5; public: inline static int32_t get_offset_of_Empty_5() { return static_cast<int32_t>(offsetof(String_t_StaticFields, ___Empty_5)); } inline String_t* get_Empty_5() const { return ___Empty_5; } inline String_t** get_address_of_Empty_5() { return &___Empty_5; } inline void set_Empty_5(String_t* value) { ___Empty_5 = value; Il2CppCodeGenWriteBarrier((&___Empty_5), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // STRING_T_H #ifndef STRINGCOMPARER_T588BC7FEF85D6E7425E0A8147A3D5A334F1F82DE_H #define STRINGCOMPARER_T588BC7FEF85D6E7425E0A8147A3D5A334F1F82DE_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.StringComparer struct StringComparer_t588BC7FEF85D6E7425E0A8147A3D5A334F1F82DE : public RuntimeObject { public: public: }; struct StringComparer_t588BC7FEF85D6E7425E0A8147A3D5A334F1F82DE_StaticFields { public: // System.StringComparer System.StringComparer::_invariantCulture StringComparer_t588BC7FEF85D6E7425E0A8147A3D5A334F1F82DE * ____invariantCulture_0; // System.StringComparer System.StringComparer::_invariantCultureIgnoreCase StringComparer_t588BC7FEF85D6E7425E0A8147A3D5A334F1F82DE * ____invariantCultureIgnoreCase_1; // System.StringComparer System.StringComparer::_ordinal StringComparer_t588BC7FEF85D6E7425E0A8147A3D5A334F1F82DE * ____ordinal_2; // System.StringComparer System.StringComparer::_ordinalIgnoreCase StringComparer_t588BC7FEF85D6E7425E0A8147A3D5A334F1F82DE * ____ordinalIgnoreCase_3; public: inline static int32_t get_offset_of__invariantCulture_0() { return static_cast<int32_t>(offsetof(StringComparer_t588BC7FEF85D6E7425E0A8147A3D5A334F1F82DE_StaticFields, ____invariantCulture_0)); } inline StringComparer_t588BC7FEF85D6E7425E0A8147A3D5A334F1F82DE * get__invariantCulture_0() const { return ____invariantCulture_0; } inline StringComparer_t588BC7FEF85D6E7425E0A8147A3D5A334F1F82DE ** get_address_of__invariantCulture_0() { return &____invariantCulture_0; } inline void set__invariantCulture_0(StringComparer_t588BC7FEF85D6E7425E0A8147A3D5A334F1F82DE * value) { ____invariantCulture_0 = value; Il2CppCodeGenWriteBarrier((&____invariantCulture_0), value); } inline static int32_t get_offset_of__invariantCultureIgnoreCase_1() { return static_cast<int32_t>(offsetof(StringComparer_t588BC7FEF85D6E7425E0A8147A3D5A334F1F82DE_StaticFields, ____invariantCultureIgnoreCase_1)); } inline StringComparer_t588BC7FEF85D6E7425E0A8147A3D5A334F1F82DE * get__invariantCultureIgnoreCase_1() const { return ____invariantCultureIgnoreCase_1; } inline StringComparer_t588BC7FEF85D6E7425E0A8147A3D5A334F1F82DE ** get_address_of__invariantCultureIgnoreCase_1() { return &____invariantCultureIgnoreCase_1; } inline void set__invariantCultureIgnoreCase_1(StringComparer_t588BC7FEF85D6E7425E0A8147A3D5A334F1F82DE * value) { ____invariantCultureIgnoreCase_1 = value; Il2CppCodeGenWriteBarrier((&____invariantCultureIgnoreCase_1), value); } inline static int32_t get_offset_of__ordinal_2() { return static_cast<int32_t>(offsetof(StringComparer_t588BC7FEF85D6E7425E0A8147A3D5A334F1F82DE_StaticFields, ____ordinal_2)); } inline StringComparer_t588BC7FEF85D6E7425E0A8147A3D5A334F1F82DE * get__ordinal_2() const { return ____ordinal_2; } inline StringComparer_t588BC7FEF85D6E7425E0A8147A3D5A334F1F82DE ** get_address_of__ordinal_2() { return &____ordinal_2; } inline void set__ordinal_2(StringComparer_t588BC7FEF85D6E7425E0A8147A3D5A334F1F82DE * value) { ____ordinal_2 = value; Il2CppCodeGenWriteBarrier((&____ordinal_2), value); } inline static int32_t get_offset_of__ordinalIgnoreCase_3() { return static_cast<int32_t>(offsetof(StringComparer_t588BC7FEF85D6E7425E0A8147A3D5A334F1F82DE_StaticFields, ____ordinalIgnoreCase_3)); } inline StringComparer_t588BC7FEF85D6E7425E0A8147A3D5A334F1F82DE * get__ordinalIgnoreCase_3() const { return ____ordinalIgnoreCase_3; } inline StringComparer_t588BC7FEF85D6E7425E0A8147A3D5A334F1F82DE ** get_address_of__ordinalIgnoreCase_3() { return &____ordinalIgnoreCase_3; } inline void set__ordinalIgnoreCase_3(StringComparer_t588BC7FEF85D6E7425E0A8147A3D5A334F1F82DE * value) { ____ordinalIgnoreCase_3 = value; Il2CppCodeGenWriteBarrier((&____ordinalIgnoreCase_3), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // STRINGCOMPARER_T588BC7FEF85D6E7425E0A8147A3D5A334F1F82DE_H #ifndef U3CU3EC_TBED9E1805554B1EFE14027A8400694336FCEE2F7_H #define U3CU3EC_TBED9E1805554B1EFE14027A8400694336FCEE2F7_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.TimeZoneInfo_<>c struct U3CU3Ec_tBED9E1805554B1EFE14027A8400694336FCEE2F7 : public RuntimeObject { public: public: }; struct U3CU3Ec_tBED9E1805554B1EFE14027A8400694336FCEE2F7_StaticFields { public: // System.TimeZoneInfo_<>c System.TimeZoneInfo_<>c::<>9 U3CU3Ec_tBED9E1805554B1EFE14027A8400694336FCEE2F7 * ___U3CU3E9_0; // System.Comparison`1<System.TimeZoneInfo_AdjustmentRule> System.TimeZoneInfo_<>c::<>9__19_0 Comparison_1_tD28744463320E1F22A90E02BFEE7967364ABCAA6 * ___U3CU3E9__19_0_1; public: inline static int32_t get_offset_of_U3CU3E9_0() { return static_cast<int32_t>(offsetof(U3CU3Ec_tBED9E1805554B1EFE14027A8400694336FCEE2F7_StaticFields, ___U3CU3E9_0)); } inline U3CU3Ec_tBED9E1805554B1EFE14027A8400694336FCEE2F7 * get_U3CU3E9_0() const { return ___U3CU3E9_0; } inline U3CU3Ec_tBED9E1805554B1EFE14027A8400694336FCEE2F7 ** get_address_of_U3CU3E9_0() { return &___U3CU3E9_0; } inline void set_U3CU3E9_0(U3CU3Ec_tBED9E1805554B1EFE14027A8400694336FCEE2F7 * value) { ___U3CU3E9_0 = value; Il2CppCodeGenWriteBarrier((&___U3CU3E9_0), value); } inline static int32_t get_offset_of_U3CU3E9__19_0_1() { return static_cast<int32_t>(offsetof(U3CU3Ec_tBED9E1805554B1EFE14027A8400694336FCEE2F7_StaticFields, ___U3CU3E9__19_0_1)); } inline Comparison_1_tD28744463320E1F22A90E02BFEE7967364ABCAA6 * get_U3CU3E9__19_0_1() const { return ___U3CU3E9__19_0_1; } inline Comparison_1_tD28744463320E1F22A90E02BFEE7967364ABCAA6 ** get_address_of_U3CU3E9__19_0_1() { return &___U3CU3E9__19_0_1; } inline void set_U3CU3E9__19_0_1(Comparison_1_tD28744463320E1F22A90E02BFEE7967364ABCAA6 * value) { ___U3CU3E9__19_0_1 = value; Il2CppCodeGenWriteBarrier((&___U3CU3E9__19_0_1), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // U3CU3EC_TBED9E1805554B1EFE14027A8400694336FCEE2F7_H #ifndef TYPENAMEPARSER_TBEF78C9D6AEC3DE5E2993F6EDC24C06F7B713741_H #define TYPENAMEPARSER_TBEF78C9D6AEC3DE5E2993F6EDC24C06F7B713741_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.TypeNameParser struct TypeNameParser_tBEF78C9D6AEC3DE5E2993F6EDC24C06F7B713741 : public RuntimeObject { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // TYPENAMEPARSER_TBEF78C9D6AEC3DE5E2993F6EDC24C06F7B713741_H #ifndef UNITYSERIALIZATIONHOLDER_T6B17ABB985ACD3F8D9F9E3C146DEA5F730E1CEAC_H #define UNITYSERIALIZATIONHOLDER_T6B17ABB985ACD3F8D9F9E3C146DEA5F730E1CEAC_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.UnitySerializationHolder struct UnitySerializationHolder_t6B17ABB985ACD3F8D9F9E3C146DEA5F730E1CEAC : public RuntimeObject { public: // System.Type[] System.UnitySerializationHolder::m_instantiation TypeU5BU5D_t7FE623A666B49176DE123306221193E888A12F5F* ___m_instantiation_0; // System.Int32[] System.UnitySerializationHolder::m_elementTypes Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* ___m_elementTypes_1; // System.Int32 System.UnitySerializationHolder::m_genericParameterPosition int32_t ___m_genericParameterPosition_2; // System.Type System.UnitySerializationHolder::m_declaringType Type_t * ___m_declaringType_3; // System.Reflection.MethodBase System.UnitySerializationHolder::m_declaringMethod MethodBase_t * ___m_declaringMethod_4; // System.String System.UnitySerializationHolder::m_data String_t* ___m_data_5; // System.String System.UnitySerializationHolder::m_assemblyName String_t* ___m_assemblyName_6; // System.Int32 System.UnitySerializationHolder::m_unityType int32_t ___m_unityType_7; public: inline static int32_t get_offset_of_m_instantiation_0() { return static_cast<int32_t>(offsetof(UnitySerializationHolder_t6B17ABB985ACD3F8D9F9E3C146DEA5F730E1CEAC, ___m_instantiation_0)); } inline TypeU5BU5D_t7FE623A666B49176DE123306221193E888A12F5F* get_m_instantiation_0() const { return ___m_instantiation_0; } inline TypeU5BU5D_t7FE623A666B49176DE123306221193E888A12F5F** get_address_of_m_instantiation_0() { return &___m_instantiation_0; } inline void set_m_instantiation_0(TypeU5BU5D_t7FE623A666B49176DE123306221193E888A12F5F* value) { ___m_instantiation_0 = value; Il2CppCodeGenWriteBarrier((&___m_instantiation_0), value); } inline static int32_t get_offset_of_m_elementTypes_1() { return static_cast<int32_t>(offsetof(UnitySerializationHolder_t6B17ABB985ACD3F8D9F9E3C146DEA5F730E1CEAC, ___m_elementTypes_1)); } inline Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* get_m_elementTypes_1() const { return ___m_elementTypes_1; } inline Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83** get_address_of_m_elementTypes_1() { return &___m_elementTypes_1; } inline void set_m_elementTypes_1(Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* value) { ___m_elementTypes_1 = value; Il2CppCodeGenWriteBarrier((&___m_elementTypes_1), value); } inline static int32_t get_offset_of_m_genericParameterPosition_2() { return static_cast<int32_t>(offsetof(UnitySerializationHolder_t6B17ABB985ACD3F8D9F9E3C146DEA5F730E1CEAC, ___m_genericParameterPosition_2)); } inline int32_t get_m_genericParameterPosition_2() const { return ___m_genericParameterPosition_2; } inline int32_t* get_address_of_m_genericParameterPosition_2() { return &___m_genericParameterPosition_2; } inline void set_m_genericParameterPosition_2(int32_t value) { ___m_genericParameterPosition_2 = value; } inline static int32_t get_offset_of_m_declaringType_3() { return static_cast<int32_t>(offsetof(UnitySerializationHolder_t6B17ABB985ACD3F8D9F9E3C146DEA5F730E1CEAC, ___m_declaringType_3)); } inline Type_t * get_m_declaringType_3() const { return ___m_declaringType_3; } inline Type_t ** get_address_of_m_declaringType_3() { return &___m_declaringType_3; } inline void set_m_declaringType_3(Type_t * value) { ___m_declaringType_3 = value; Il2CppCodeGenWriteBarrier((&___m_declaringType_3), value); } inline static int32_t get_offset_of_m_declaringMethod_4() { return static_cast<int32_t>(offsetof(UnitySerializationHolder_t6B17ABB985ACD3F8D9F9E3C146DEA5F730E1CEAC, ___m_declaringMethod_4)); } inline MethodBase_t * get_m_declaringMethod_4() const { return ___m_declaringMethod_4; } inline MethodBase_t ** get_address_of_m_declaringMethod_4() { return &___m_declaringMethod_4; } inline void set_m_declaringMethod_4(MethodBase_t * value) { ___m_declaringMethod_4 = value; Il2CppCodeGenWriteBarrier((&___m_declaringMethod_4), value); } inline static int32_t get_offset_of_m_data_5() { return static_cast<int32_t>(offsetof(UnitySerializationHolder_t6B17ABB985ACD3F8D9F9E3C146DEA5F730E1CEAC, ___m_data_5)); } inline String_t* get_m_data_5() const { return ___m_data_5; } inline String_t** get_address_of_m_data_5() { return &___m_data_5; } inline void set_m_data_5(String_t* value) { ___m_data_5 = value; Il2CppCodeGenWriteBarrier((&___m_data_5), value); } inline static int32_t get_offset_of_m_assemblyName_6() { return static_cast<int32_t>(offsetof(UnitySerializationHolder_t6B17ABB985ACD3F8D9F9E3C146DEA5F730E1CEAC, ___m_assemblyName_6)); } inline String_t* get_m_assemblyName_6() const { return ___m_assemblyName_6; } inline String_t** get_address_of_m_assemblyName_6() { return &___m_assemblyName_6; } inline void set_m_assemblyName_6(String_t* value) { ___m_assemblyName_6 = value; Il2CppCodeGenWriteBarrier((&___m_assemblyName_6), value); } inline static int32_t get_offset_of_m_unityType_7() { return static_cast<int32_t>(offsetof(UnitySerializationHolder_t6B17ABB985ACD3F8D9F9E3C146DEA5F730E1CEAC, ___m_unityType_7)); } inline int32_t get_m_unityType_7() const { return ___m_unityType_7; } inline int32_t* get_address_of_m_unityType_7() { return &___m_unityType_7; } inline void set_m_unityType_7(int32_t value) { ___m_unityType_7 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // UNITYSERIALIZATIONHOLDER_T6B17ABB985ACD3F8D9F9E3C146DEA5F730E1CEAC_H #ifndef VALUETYPE_T4D0C27076F7C36E76190FB3328E232BCB1CD1FFF_H #define VALUETYPE_T4D0C27076F7C36E76190FB3328E232BCB1CD1FFF_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.ValueType struct ValueType_t4D0C27076F7C36E76190FB3328E232BCB1CD1FFF : public RuntimeObject { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif // Native definition for P/Invoke marshalling of System.ValueType struct ValueType_t4D0C27076F7C36E76190FB3328E232BCB1CD1FFF_marshaled_pinvoke { }; // Native definition for COM marshalling of System.ValueType struct ValueType_t4D0C27076F7C36E76190FB3328E232BCB1CD1FFF_marshaled_com { }; #endif // VALUETYPE_T4D0C27076F7C36E76190FB3328E232BCB1CD1FFF_H #ifndef VERSION_TDBE6876C59B6F56D4F8CAA03851177ABC6FE0DFD_H #define VERSION_TDBE6876C59B6F56D4F8CAA03851177ABC6FE0DFD_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Version struct Version_tDBE6876C59B6F56D4F8CAA03851177ABC6FE0DFD : public RuntimeObject { public: // System.Int32 System.Version::_Major int32_t ____Major_0; // System.Int32 System.Version::_Minor int32_t ____Minor_1; // System.Int32 System.Version::_Build int32_t ____Build_2; // System.Int32 System.Version::_Revision int32_t ____Revision_3; public: inline static int32_t get_offset_of__Major_0() { return static_cast<int32_t>(offsetof(Version_tDBE6876C59B6F56D4F8CAA03851177ABC6FE0DFD, ____Major_0)); } inline int32_t get__Major_0() const { return ____Major_0; } inline int32_t* get_address_of__Major_0() { return &____Major_0; } inline void set__Major_0(int32_t value) { ____Major_0 = value; } inline static int32_t get_offset_of__Minor_1() { return static_cast<int32_t>(offsetof(Version_tDBE6876C59B6F56D4F8CAA03851177ABC6FE0DFD, ____Minor_1)); } inline int32_t get__Minor_1() const { return ____Minor_1; } inline int32_t* get_address_of__Minor_1() { return &____Minor_1; } inline void set__Minor_1(int32_t value) { ____Minor_1 = value; } inline static int32_t get_offset_of__Build_2() { return static_cast<int32_t>(offsetof(Version_tDBE6876C59B6F56D4F8CAA03851177ABC6FE0DFD, ____Build_2)); } inline int32_t get__Build_2() const { return ____Build_2; } inline int32_t* get_address_of__Build_2() { return &____Build_2; } inline void set__Build_2(int32_t value) { ____Build_2 = value; } inline static int32_t get_offset_of__Revision_3() { return static_cast<int32_t>(offsetof(Version_tDBE6876C59B6F56D4F8CAA03851177ABC6FE0DFD, ____Revision_3)); } inline int32_t get__Revision_3() const { return ____Revision_3; } inline int32_t* get_address_of__Revision_3() { return &____Revision_3; } inline void set__Revision_3(int32_t value) { ____Revision_3 = value; } }; struct Version_tDBE6876C59B6F56D4F8CAA03851177ABC6FE0DFD_StaticFields { public: // System.Char[] System.Version::SeparatorsArray CharU5BU5D_t4CC6ABF0AD71BEC97E3C2F1E9C5677E46D3A75C2* ___SeparatorsArray_4; public: inline static int32_t get_offset_of_SeparatorsArray_4() { return static_cast<int32_t>(offsetof(Version_tDBE6876C59B6F56D4F8CAA03851177ABC6FE0DFD_StaticFields, ___SeparatorsArray_4)); } inline CharU5BU5D_t4CC6ABF0AD71BEC97E3C2F1E9C5677E46D3A75C2* get_SeparatorsArray_4() const { return ___SeparatorsArray_4; } inline CharU5BU5D_t4CC6ABF0AD71BEC97E3C2F1E9C5677E46D3A75C2** get_address_of_SeparatorsArray_4() { return &___SeparatorsArray_4; } inline void set_SeparatorsArray_4(CharU5BU5D_t4CC6ABF0AD71BEC97E3C2F1E9C5677E46D3A75C2* value) { ___SeparatorsArray_4 = value; Il2CppCodeGenWriteBarrier((&___SeparatorsArray_4), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // VERSION_TDBE6876C59B6F56D4F8CAA03851177ABC6FE0DFD_H #ifndef ASSEMBLYLOADEVENTARGS_T51DAAB04039C3B2D8C3FBF65C13441BC6C6A7AE8_H #define ASSEMBLYLOADEVENTARGS_T51DAAB04039C3B2D8C3FBF65C13441BC6C6A7AE8_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.AssemblyLoadEventArgs struct AssemblyLoadEventArgs_t51DAAB04039C3B2D8C3FBF65C13441BC6C6A7AE8 : public EventArgs_t8E6CA180BE0E56674C6407011A94BAF7C757352E { public: // System.Reflection.Assembly System.AssemblyLoadEventArgs::m_loadedAssembly Assembly_t * ___m_loadedAssembly_1; public: inline static int32_t get_offset_of_m_loadedAssembly_1() { return static_cast<int32_t>(offsetof(AssemblyLoadEventArgs_t51DAAB04039C3B2D8C3FBF65C13441BC6C6A7AE8, ___m_loadedAssembly_1)); } inline Assembly_t * get_m_loadedAssembly_1() const { return ___m_loadedAssembly_1; } inline Assembly_t ** get_address_of_m_loadedAssembly_1() { return &___m_loadedAssembly_1; } inline void set_m_loadedAssembly_1(Assembly_t * value) { ___m_loadedAssembly_1 = value; Il2CppCodeGenWriteBarrier((&___m_loadedAssembly_1), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // ASSEMBLYLOADEVENTARGS_T51DAAB04039C3B2D8C3FBF65C13441BC6C6A7AE8_H #ifndef BOOLEAN_TB53F6830F670160873277339AA58F15CAED4399C_H #define BOOLEAN_TB53F6830F670160873277339AA58F15CAED4399C_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Boolean struct Boolean_tB53F6830F670160873277339AA58F15CAED4399C { public: // System.Boolean System.Boolean::m_value bool ___m_value_0; public: inline static int32_t get_offset_of_m_value_0() { return static_cast<int32_t>(offsetof(Boolean_tB53F6830F670160873277339AA58F15CAED4399C, ___m_value_0)); } inline bool get_m_value_0() const { return ___m_value_0; } inline bool* get_address_of_m_value_0() { return &___m_value_0; } inline void set_m_value_0(bool value) { ___m_value_0 = value; } }; struct Boolean_tB53F6830F670160873277339AA58F15CAED4399C_StaticFields { public: // System.String System.Boolean::TrueString String_t* ___TrueString_5; // System.String System.Boolean::FalseString String_t* ___FalseString_6; public: inline static int32_t get_offset_of_TrueString_5() { return static_cast<int32_t>(offsetof(Boolean_tB53F6830F670160873277339AA58F15CAED4399C_StaticFields, ___TrueString_5)); } inline String_t* get_TrueString_5() const { return ___TrueString_5; } inline String_t** get_address_of_TrueString_5() { return &___TrueString_5; } inline void set_TrueString_5(String_t* value) { ___TrueString_5 = value; Il2CppCodeGenWriteBarrier((&___TrueString_5), value); } inline static int32_t get_offset_of_FalseString_6() { return static_cast<int32_t>(offsetof(Boolean_tB53F6830F670160873277339AA58F15CAED4399C_StaticFields, ___FalseString_6)); } inline String_t* get_FalseString_6() const { return ___FalseString_6; } inline String_t** get_address_of_FalseString_6() { return &___FalseString_6; } inline void set_FalseString_6(String_t* value) { ___FalseString_6 = value; Il2CppCodeGenWriteBarrier((&___FalseString_6), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // BOOLEAN_TB53F6830F670160873277339AA58F15CAED4399C_H #ifndef DATETIME_T349B7449FBAAFF4192636E2B7A07694DA9236132_H #define DATETIME_T349B7449FBAAFF4192636E2B7A07694DA9236132_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.DateTime struct DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132 { public: // System.UInt64 System.DateTime::dateData uint64_t ___dateData_44; public: inline static int32_t get_offset_of_dateData_44() { return static_cast<int32_t>(offsetof(DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132, ___dateData_44)); } inline uint64_t get_dateData_44() const { return ___dateData_44; } inline uint64_t* get_address_of_dateData_44() { return &___dateData_44; } inline void set_dateData_44(uint64_t value) { ___dateData_44 = value; } }; struct DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132_StaticFields { public: // System.Int32[] System.DateTime::DaysToMonth365 Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* ___DaysToMonth365_29; // System.Int32[] System.DateTime::DaysToMonth366 Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* ___DaysToMonth366_30; // System.DateTime System.DateTime::MinValue DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132 ___MinValue_31; // System.DateTime System.DateTime::MaxValue DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132 ___MaxValue_32; public: inline static int32_t get_offset_of_DaysToMonth365_29() { return static_cast<int32_t>(offsetof(DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132_StaticFields, ___DaysToMonth365_29)); } inline Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* get_DaysToMonth365_29() const { return ___DaysToMonth365_29; } inline Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83** get_address_of_DaysToMonth365_29() { return &___DaysToMonth365_29; } inline void set_DaysToMonth365_29(Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* value) { ___DaysToMonth365_29 = value; Il2CppCodeGenWriteBarrier((&___DaysToMonth365_29), value); } inline static int32_t get_offset_of_DaysToMonth366_30() { return static_cast<int32_t>(offsetof(DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132_StaticFields, ___DaysToMonth366_30)); } inline Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* get_DaysToMonth366_30() const { return ___DaysToMonth366_30; } inline Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83** get_address_of_DaysToMonth366_30() { return &___DaysToMonth366_30; } inline void set_DaysToMonth366_30(Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* value) { ___DaysToMonth366_30 = value; Il2CppCodeGenWriteBarrier((&___DaysToMonth366_30), value); } inline static int32_t get_offset_of_MinValue_31() { return static_cast<int32_t>(offsetof(DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132_StaticFields, ___MinValue_31)); } inline DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132 get_MinValue_31() const { return ___MinValue_31; } inline DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132 * get_address_of_MinValue_31() { return &___MinValue_31; } inline void set_MinValue_31(DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132 value) { ___MinValue_31 = value; } inline static int32_t get_offset_of_MaxValue_32() { return static_cast<int32_t>(offsetof(DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132_StaticFields, ___MaxValue_32)); } inline DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132 get_MaxValue_32() const { return ___MaxValue_32; } inline DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132 * get_address_of_MaxValue_32() { return &___MaxValue_32; } inline void set_MaxValue_32(DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132 value) { ___MaxValue_32 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // DATETIME_T349B7449FBAAFF4192636E2B7A07694DA9236132_H #ifndef ENUM_T2AF27C02B8653AE29442467390005ABC74D8F521_H #define ENUM_T2AF27C02B8653AE29442467390005ABC74D8F521_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Enum struct Enum_t2AF27C02B8653AE29442467390005ABC74D8F521 : public ValueType_t4D0C27076F7C36E76190FB3328E232BCB1CD1FFF { public: public: }; struct Enum_t2AF27C02B8653AE29442467390005ABC74D8F521_StaticFields { public: // System.Char[] System.Enum::enumSeperatorCharArray CharU5BU5D_t4CC6ABF0AD71BEC97E3C2F1E9C5677E46D3A75C2* ___enumSeperatorCharArray_0; public: inline static int32_t get_offset_of_enumSeperatorCharArray_0() { return static_cast<int32_t>(offsetof(Enum_t2AF27C02B8653AE29442467390005ABC74D8F521_StaticFields, ___enumSeperatorCharArray_0)); } inline CharU5BU5D_t4CC6ABF0AD71BEC97E3C2F1E9C5677E46D3A75C2* get_enumSeperatorCharArray_0() const { return ___enumSeperatorCharArray_0; } inline CharU5BU5D_t4CC6ABF0AD71BEC97E3C2F1E9C5677E46D3A75C2** get_address_of_enumSeperatorCharArray_0() { return &___enumSeperatorCharArray_0; } inline void set_enumSeperatorCharArray_0(CharU5BU5D_t4CC6ABF0AD71BEC97E3C2F1E9C5677E46D3A75C2* value) { ___enumSeperatorCharArray_0 = value; Il2CppCodeGenWriteBarrier((&___enumSeperatorCharArray_0), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif // Native definition for P/Invoke marshalling of System.Enum struct Enum_t2AF27C02B8653AE29442467390005ABC74D8F521_marshaled_pinvoke { }; // Native definition for COM marshalling of System.Enum struct Enum_t2AF27C02B8653AE29442467390005ABC74D8F521_marshaled_com { }; #endif // ENUM_T2AF27C02B8653AE29442467390005ABC74D8F521_H #ifndef INT16_T823A20635DAF5A3D93A1E01CFBF3CBA27CF00B4D_H #define INT16_T823A20635DAF5A3D93A1E01CFBF3CBA27CF00B4D_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Int16 struct Int16_t823A20635DAF5A3D93A1E01CFBF3CBA27CF00B4D { public: // System.Int16 System.Int16::m_value int16_t ___m_value_0; public: inline static int32_t get_offset_of_m_value_0() { return static_cast<int32_t>(offsetof(Int16_t823A20635DAF5A3D93A1E01CFBF3CBA27CF00B4D, ___m_value_0)); } inline int16_t get_m_value_0() const { return ___m_value_0; } inline int16_t* get_address_of_m_value_0() { return &___m_value_0; } inline void set_m_value_0(int16_t value) { ___m_value_0 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // INT16_T823A20635DAF5A3D93A1E01CFBF3CBA27CF00B4D_H #ifndef INT32_T585191389E07734F19F3156FF88FB3EF4800D102_H #define INT32_T585191389E07734F19F3156FF88FB3EF4800D102_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Int32 struct Int32_t585191389E07734F19F3156FF88FB3EF4800D102 { public: // System.Int32 System.Int32::m_value int32_t ___m_value_0; public: inline static int32_t get_offset_of_m_value_0() { return static_cast<int32_t>(offsetof(Int32_t585191389E07734F19F3156FF88FB3EF4800D102, ___m_value_0)); } inline int32_t get_m_value_0() const { return ___m_value_0; } inline int32_t* get_address_of_m_value_0() { return &___m_value_0; } inline void set_m_value_0(int32_t value) { ___m_value_0 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // INT32_T585191389E07734F19F3156FF88FB3EF4800D102_H #ifndef INT64_T7A386C2FF7B0280A0F516992401DDFCF0FF7B436_H #define INT64_T7A386C2FF7B0280A0F516992401DDFCF0FF7B436_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Int64 struct Int64_t7A386C2FF7B0280A0F516992401DDFCF0FF7B436 { public: // System.Int64 System.Int64::m_value int64_t ___m_value_0; public: inline static int32_t get_offset_of_m_value_0() { return static_cast<int32_t>(offsetof(Int64_t7A386C2FF7B0280A0F516992401DDFCF0FF7B436, ___m_value_0)); } inline int64_t get_m_value_0() const { return ___m_value_0; } inline int64_t* get_address_of_m_value_0() { return &___m_value_0; } inline void set_m_value_0(int64_t value) { ___m_value_0 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // INT64_T7A386C2FF7B0280A0F516992401DDFCF0FF7B436_H #ifndef INTPTR_T_H #define INTPTR_T_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.IntPtr struct IntPtr_t { public: // System.Void* System.IntPtr::m_value void* ___m_value_0; public: inline static int32_t get_offset_of_m_value_0() { return static_cast<int32_t>(offsetof(IntPtr_t, ___m_value_0)); } inline void* get_m_value_0() const { return ___m_value_0; } inline void** get_address_of_m_value_0() { return &___m_value_0; } inline void set_m_value_0(void* value) { ___m_value_0 = value; } }; struct IntPtr_t_StaticFields { public: // System.IntPtr System.IntPtr::Zero intptr_t ___Zero_1; public: inline static int32_t get_offset_of_Zero_1() { return static_cast<int32_t>(offsetof(IntPtr_t_StaticFields, ___Zero_1)); } inline intptr_t get_Zero_1() const { return ___Zero_1; } inline intptr_t* get_address_of_Zero_1() { return &___Zero_1; } inline void set_Zero_1(intptr_t value) { ___Zero_1 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // INTPTR_T_H #ifndef INVALIDTIMEZONEEXCEPTION_TA035F4C48B9BE56165F6FD6526A3F7384CC78C25_H #define INVALIDTIMEZONEEXCEPTION_TA035F4C48B9BE56165F6FD6526A3F7384CC78C25_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.InvalidTimeZoneException struct InvalidTimeZoneException_tA035F4C48B9BE56165F6FD6526A3F7384CC78C25 : public Exception_t { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // INVALIDTIMEZONEEXCEPTION_TA035F4C48B9BE56165F6FD6526A3F7384CC78C25_H #ifndef NONSERIALIZEDATTRIBUTE_T1D1C4A9662B6C2FAC28237FCDFA49FA4747BC3BA_H #define NONSERIALIZEDATTRIBUTE_T1D1C4A9662B6C2FAC28237FCDFA49FA4747BC3BA_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.NonSerializedAttribute struct NonSerializedAttribute_t1D1C4A9662B6C2FAC28237FCDFA49FA4747BC3BA : public Attribute_tF048C13FB3C8CFCC53F82290E4A3F621089F9A74 { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // NONSERIALIZEDATTRIBUTE_T1D1C4A9662B6C2FAC28237FCDFA49FA4747BC3BA_H #ifndef NUMBERBUFFER_TBD2266C521F098915F124D7A62AFF8DB05918075_H #define NUMBERBUFFER_TBD2266C521F098915F124D7A62AFF8DB05918075_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Number_NumberBuffer struct NumberBuffer_tBD2266C521F098915F124D7A62AFF8DB05918075 { public: // System.Byte* System.Number_NumberBuffer::baseAddress uint8_t* ___baseAddress_1; // System.Char* System.Number_NumberBuffer::digits Il2CppChar* ___digits_2; // System.Int32 System.Number_NumberBuffer::precision int32_t ___precision_3; // System.Int32 System.Number_NumberBuffer::scale int32_t ___scale_4; // System.Boolean System.Number_NumberBuffer::sign bool ___sign_5; public: inline static int32_t get_offset_of_baseAddress_1() { return static_cast<int32_t>(offsetof(NumberBuffer_tBD2266C521F098915F124D7A62AFF8DB05918075, ___baseAddress_1)); } inline uint8_t* get_baseAddress_1() const { return ___baseAddress_1; } inline uint8_t** get_address_of_baseAddress_1() { return &___baseAddress_1; } inline void set_baseAddress_1(uint8_t* value) { ___baseAddress_1 = value; } inline static int32_t get_offset_of_digits_2() { return static_cast<int32_t>(offsetof(NumberBuffer_tBD2266C521F098915F124D7A62AFF8DB05918075, ___digits_2)); } inline Il2CppChar* get_digits_2() const { return ___digits_2; } inline Il2CppChar** get_address_of_digits_2() { return &___digits_2; } inline void set_digits_2(Il2CppChar* value) { ___digits_2 = value; } inline static int32_t get_offset_of_precision_3() { return static_cast<int32_t>(offsetof(NumberBuffer_tBD2266C521F098915F124D7A62AFF8DB05918075, ___precision_3)); } inline int32_t get_precision_3() const { return ___precision_3; } inline int32_t* get_address_of_precision_3() { return &___precision_3; } inline void set_precision_3(int32_t value) { ___precision_3 = value; } inline static int32_t get_offset_of_scale_4() { return static_cast<int32_t>(offsetof(NumberBuffer_tBD2266C521F098915F124D7A62AFF8DB05918075, ___scale_4)); } inline int32_t get_scale_4() const { return ___scale_4; } inline int32_t* get_address_of_scale_4() { return &___scale_4; } inline void set_scale_4(int32_t value) { ___scale_4 = value; } inline static int32_t get_offset_of_sign_5() { return static_cast<int32_t>(offsetof(NumberBuffer_tBD2266C521F098915F124D7A62AFF8DB05918075, ___sign_5)); } inline bool get_sign_5() const { return ___sign_5; } inline bool* get_address_of_sign_5() { return &___sign_5; } inline void set_sign_5(bool value) { ___sign_5 = value; } }; struct NumberBuffer_tBD2266C521F098915F124D7A62AFF8DB05918075_StaticFields { public: // System.Int32 System.Number_NumberBuffer::NumberBufferBytes int32_t ___NumberBufferBytes_0; public: inline static int32_t get_offset_of_NumberBufferBytes_0() { return static_cast<int32_t>(offsetof(NumberBuffer_tBD2266C521F098915F124D7A62AFF8DB05918075_StaticFields, ___NumberBufferBytes_0)); } inline int32_t get_NumberBufferBytes_0() const { return ___NumberBufferBytes_0; } inline int32_t* get_address_of_NumberBufferBytes_0() { return &___NumberBufferBytes_0; } inline void set_NumberBufferBytes_0(int32_t value) { ___NumberBufferBytes_0 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif // Native definition for P/Invoke marshalling of System.Number/NumberBuffer struct NumberBuffer_tBD2266C521F098915F124D7A62AFF8DB05918075_marshaled_pinvoke { uint8_t* ___baseAddress_1; Il2CppChar* ___digits_2; int32_t ___precision_3; int32_t ___scale_4; int32_t ___sign_5; }; // Native definition for COM marshalling of System.Number/NumberBuffer struct NumberBuffer_tBD2266C521F098915F124D7A62AFF8DB05918075_marshaled_com { uint8_t* ___baseAddress_1; Il2CppChar* ___digits_2; int32_t ___precision_3; int32_t ___scale_4; int32_t ___sign_5; }; #endif // NUMBERBUFFER_TBD2266C521F098915F124D7A62AFF8DB05918075_H #ifndef OBSOLETEATTRIBUTE_TDAE6245D460079868ABE89327A61FC76E13F2170_H #define OBSOLETEATTRIBUTE_TDAE6245D460079868ABE89327A61FC76E13F2170_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.ObsoleteAttribute struct ObsoleteAttribute_tDAE6245D460079868ABE89327A61FC76E13F2170 : public Attribute_tF048C13FB3C8CFCC53F82290E4A3F621089F9A74 { public: // System.String System.ObsoleteAttribute::_message String_t* ____message_0; // System.Boolean System.ObsoleteAttribute::_error bool ____error_1; public: inline static int32_t get_offset_of__message_0() { return static_cast<int32_t>(offsetof(ObsoleteAttribute_tDAE6245D460079868ABE89327A61FC76E13F2170, ____message_0)); } inline String_t* get__message_0() const { return ____message_0; } inline String_t** get_address_of__message_0() { return &____message_0; } inline void set__message_0(String_t* value) { ____message_0 = value; Il2CppCodeGenWriteBarrier((&____message_0), value); } inline static int32_t get_offset_of__error_1() { return static_cast<int32_t>(offsetof(ObsoleteAttribute_tDAE6245D460079868ABE89327A61FC76E13F2170, ____error_1)); } inline bool get__error_1() const { return ____error_1; } inline bool* get_address_of__error_1() { return &____error_1; } inline void set__error_1(bool value) { ____error_1 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // OBSOLETEATTRIBUTE_TDAE6245D460079868ABE89327A61FC76E13F2170_H #ifndef ORDINALCOMPARER_TF6BA53365493F2DF0E4DA7C73C4094D1E35F240A_H #define ORDINALCOMPARER_TF6BA53365493F2DF0E4DA7C73C4094D1E35F240A_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.OrdinalComparer struct OrdinalComparer_tF6BA53365493F2DF0E4DA7C73C4094D1E35F240A : public StringComparer_t588BC7FEF85D6E7425E0A8147A3D5A334F1F82DE { public: // System.Boolean System.OrdinalComparer::_ignoreCase bool ____ignoreCase_4; public: inline static int32_t get_offset_of__ignoreCase_4() { return static_cast<int32_t>(offsetof(OrdinalComparer_tF6BA53365493F2DF0E4DA7C73C4094D1E35F240A, ____ignoreCase_4)); } inline bool get__ignoreCase_4() const { return ____ignoreCase_4; } inline bool* get_address_of__ignoreCase_4() { return &____ignoreCase_4; } inline void set__ignoreCase_4(bool value) { ____ignoreCase_4 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // ORDINALCOMPARER_TF6BA53365493F2DF0E4DA7C73C4094D1E35F240A_H #ifndef PARAMARRAYATTRIBUTE_TA12C072C941CD1ADD2760B58A2C3E09C8C4DDF2C_H #define PARAMARRAYATTRIBUTE_TA12C072C941CD1ADD2760B58A2C3E09C8C4DDF2C_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.ParamArrayAttribute struct ParamArrayAttribute_tA12C072C941CD1ADD2760B58A2C3E09C8C4DDF2C : public Attribute_tF048C13FB3C8CFCC53F82290E4A3F621089F9A74 { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // PARAMARRAYATTRIBUTE_TA12C072C941CD1ADD2760B58A2C3E09C8C4DDF2C_H #ifndef PARAMSARRAY_T2DD480A5C806C0920DC218523EF3673332A68023_H #define PARAMSARRAY_T2DD480A5C806C0920DC218523EF3673332A68023_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.ParamsArray struct ParamsArray_t2DD480A5C806C0920DC218523EF3673332A68023 { public: // System.Object System.ParamsArray::arg0 RuntimeObject * ___arg0_3; // System.Object System.ParamsArray::arg1 RuntimeObject * ___arg1_4; // System.Object System.ParamsArray::arg2 RuntimeObject * ___arg2_5; // System.Object[] System.ParamsArray::args ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* ___args_6; public: inline static int32_t get_offset_of_arg0_3() { return static_cast<int32_t>(offsetof(ParamsArray_t2DD480A5C806C0920DC218523EF3673332A68023, ___arg0_3)); } inline RuntimeObject * get_arg0_3() const { return ___arg0_3; } inline RuntimeObject ** get_address_of_arg0_3() { return &___arg0_3; } inline void set_arg0_3(RuntimeObject * value) { ___arg0_3 = value; Il2CppCodeGenWriteBarrier((&___arg0_3), value); } inline static int32_t get_offset_of_arg1_4() { return static_cast<int32_t>(offsetof(ParamsArray_t2DD480A5C806C0920DC218523EF3673332A68023, ___arg1_4)); } inline RuntimeObject * get_arg1_4() const { return ___arg1_4; } inline RuntimeObject ** get_address_of_arg1_4() { return &___arg1_4; } inline void set_arg1_4(RuntimeObject * value) { ___arg1_4 = value; Il2CppCodeGenWriteBarrier((&___arg1_4), value); } inline static int32_t get_offset_of_arg2_5() { return static_cast<int32_t>(offsetof(ParamsArray_t2DD480A5C806C0920DC218523EF3673332A68023, ___arg2_5)); } inline RuntimeObject * get_arg2_5() const { return ___arg2_5; } inline RuntimeObject ** get_address_of_arg2_5() { return &___arg2_5; } inline void set_arg2_5(RuntimeObject * value) { ___arg2_5 = value; Il2CppCodeGenWriteBarrier((&___arg2_5), value); } inline static int32_t get_offset_of_args_6() { return static_cast<int32_t>(offsetof(ParamsArray_t2DD480A5C806C0920DC218523EF3673332A68023, ___args_6)); } inline ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* get_args_6() const { return ___args_6; } inline ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A** get_address_of_args_6() { return &___args_6; } inline void set_args_6(ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* value) { ___args_6 = value; Il2CppCodeGenWriteBarrier((&___args_6), value); } }; struct ParamsArray_t2DD480A5C806C0920DC218523EF3673332A68023_StaticFields { public: // System.Object[] System.ParamsArray::oneArgArray ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* ___oneArgArray_0; // System.Object[] System.ParamsArray::twoArgArray ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* ___twoArgArray_1; // System.Object[] System.ParamsArray::threeArgArray ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* ___threeArgArray_2; public: inline static int32_t get_offset_of_oneArgArray_0() { return static_cast<int32_t>(offsetof(ParamsArray_t2DD480A5C806C0920DC218523EF3673332A68023_StaticFields, ___oneArgArray_0)); } inline ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* get_oneArgArray_0() const { return ___oneArgArray_0; } inline ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A** get_address_of_oneArgArray_0() { return &___oneArgArray_0; } inline void set_oneArgArray_0(ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* value) { ___oneArgArray_0 = value; Il2CppCodeGenWriteBarrier((&___oneArgArray_0), value); } inline static int32_t get_offset_of_twoArgArray_1() { return static_cast<int32_t>(offsetof(ParamsArray_t2DD480A5C806C0920DC218523EF3673332A68023_StaticFields, ___twoArgArray_1)); } inline ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* get_twoArgArray_1() const { return ___twoArgArray_1; } inline ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A** get_address_of_twoArgArray_1() { return &___twoArgArray_1; } inline void set_twoArgArray_1(ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* value) { ___twoArgArray_1 = value; Il2CppCodeGenWriteBarrier((&___twoArgArray_1), value); } inline static int32_t get_offset_of_threeArgArray_2() { return static_cast<int32_t>(offsetof(ParamsArray_t2DD480A5C806C0920DC218523EF3673332A68023_StaticFields, ___threeArgArray_2)); } inline ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* get_threeArgArray_2() const { return ___threeArgArray_2; } inline ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A** get_address_of_threeArgArray_2() { return &___threeArgArray_2; } inline void set_threeArgArray_2(ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* value) { ___threeArgArray_2 = value; Il2CppCodeGenWriteBarrier((&___threeArgArray_2), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif // Native definition for P/Invoke marshalling of System.ParamsArray struct ParamsArray_t2DD480A5C806C0920DC218523EF3673332A68023_marshaled_pinvoke { Il2CppIUnknown* ___arg0_3; Il2CppIUnknown* ___arg1_4; Il2CppIUnknown* ___arg2_5; ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* ___args_6; }; // Native definition for COM marshalling of System.ParamsArray struct ParamsArray_t2DD480A5C806C0920DC218523EF3673332A68023_marshaled_com { Il2CppIUnknown* ___arg0_3; Il2CppIUnknown* ___arg1_4; Il2CppIUnknown* ___arg2_5; ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* ___args_6; }; #endif // PARAMSARRAY_T2DD480A5C806C0920DC218523EF3673332A68023_H #ifndef SBYTE_T9070AEA2966184235653CB9B4D33B149CDA831DF_H #define SBYTE_T9070AEA2966184235653CB9B4D33B149CDA831DF_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.SByte struct SByte_t9070AEA2966184235653CB9B4D33B149CDA831DF { public: // System.SByte System.SByte::m_value int8_t ___m_value_0; public: inline static int32_t get_offset_of_m_value_0() { return static_cast<int32_t>(offsetof(SByte_t9070AEA2966184235653CB9B4D33B149CDA831DF, ___m_value_0)); } inline int8_t get_m_value_0() const { return ___m_value_0; } inline int8_t* get_address_of_m_value_0() { return &___m_value_0; } inline void set_m_value_0(int8_t value) { ___m_value_0 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // SBYTE_T9070AEA2966184235653CB9B4D33B149CDA831DF_H #ifndef STATHREADATTRIBUTE_T0564A46C9F5E5DC44615EDFC5C95AEAF67397F16_H #define STATHREADATTRIBUTE_T0564A46C9F5E5DC44615EDFC5C95AEAF67397F16_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.STAThreadAttribute struct STAThreadAttribute_t0564A46C9F5E5DC44615EDFC5C95AEAF67397F16 : public Attribute_tF048C13FB3C8CFCC53F82290E4A3F621089F9A74 { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // STATHREADATTRIBUTE_T0564A46C9F5E5DC44615EDFC5C95AEAF67397F16_H #ifndef SERIALIZABLEATTRIBUTE_T2522EA746802F84F4805F489ECE9CFAC1A817F0F_H #define SERIALIZABLEATTRIBUTE_T2522EA746802F84F4805F489ECE9CFAC1A817F0F_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.SerializableAttribute struct SerializableAttribute_t2522EA746802F84F4805F489ECE9CFAC1A817F0F : public Attribute_tF048C13FB3C8CFCC53F82290E4A3F621089F9A74 { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // SERIALIZABLEATTRIBUTE_T2522EA746802F84F4805F489ECE9CFAC1A817F0F_H #ifndef SINGLE_TDDDA9169C4E4E308AC6D7A824F9B28DC82204AE1_H #define SINGLE_TDDDA9169C4E4E308AC6D7A824F9B28DC82204AE1_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Single struct Single_tDDDA9169C4E4E308AC6D7A824F9B28DC82204AE1 { public: // System.Single System.Single::m_value float ___m_value_0; public: inline static int32_t get_offset_of_m_value_0() { return static_cast<int32_t>(offsetof(Single_tDDDA9169C4E4E308AC6D7A824F9B28DC82204AE1, ___m_value_0)); } inline float get_m_value_0() const { return ___m_value_0; } inline float* get_address_of_m_value_0() { return &___m_value_0; } inline void set_m_value_0(float value) { ___m_value_0 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // SINGLE_TDDDA9169C4E4E308AC6D7A824F9B28DC82204AE1_H #ifndef SYSTEMEXCEPTION_T5380468142AA850BE4A341D7AF3EAB9C78746782_H #define SYSTEMEXCEPTION_T5380468142AA850BE4A341D7AF3EAB9C78746782_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.SystemException struct SystemException_t5380468142AA850BE4A341D7AF3EAB9C78746782 : public Exception_t { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // SYSTEMEXCEPTION_T5380468142AA850BE4A341D7AF3EAB9C78746782_H #ifndef THREADSTATICATTRIBUTE_TCE2B939D689C66D29B18B265822F96F79DAAF393_H #define THREADSTATICATTRIBUTE_TCE2B939D689C66D29B18B265822F96F79DAAF393_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.ThreadStaticAttribute struct ThreadStaticAttribute_tCE2B939D689C66D29B18B265822F96F79DAAF393 : public Attribute_tF048C13FB3C8CFCC53F82290E4A3F621089F9A74 { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // THREADSTATICATTRIBUTE_TCE2B939D689C66D29B18B265822F96F79DAAF393_H #ifndef CANCELLATIONTOKEN_T9E956952F7F20908F2AE72EDF36D97E6C7DB63AB_H #define CANCELLATIONTOKEN_T9E956952F7F20908F2AE72EDF36D97E6C7DB63AB_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Threading.CancellationToken struct CancellationToken_t9E956952F7F20908F2AE72EDF36D97E6C7DB63AB { public: // System.Threading.CancellationTokenSource System.Threading.CancellationToken::m_source CancellationTokenSource_tF480B7E74A032667AFBD31F0530D619FB43AD3FE * ___m_source_0; public: inline static int32_t get_offset_of_m_source_0() { return static_cast<int32_t>(offsetof(CancellationToken_t9E956952F7F20908F2AE72EDF36D97E6C7DB63AB, ___m_source_0)); } inline CancellationTokenSource_tF480B7E74A032667AFBD31F0530D619FB43AD3FE * get_m_source_0() const { return ___m_source_0; } inline CancellationTokenSource_tF480B7E74A032667AFBD31F0530D619FB43AD3FE ** get_address_of_m_source_0() { return &___m_source_0; } inline void set_m_source_0(CancellationTokenSource_tF480B7E74A032667AFBD31F0530D619FB43AD3FE * value) { ___m_source_0 = value; Il2CppCodeGenWriteBarrier((&___m_source_0), value); } }; struct CancellationToken_t9E956952F7F20908F2AE72EDF36D97E6C7DB63AB_StaticFields { public: // System.Action`1<System.Object> System.Threading.CancellationToken::s_ActionToActionObjShunt Action_1_t551A279CEADCF6EEAE8FA2B1E1E757D0D15290D0 * ___s_ActionToActionObjShunt_1; public: inline static int32_t get_offset_of_s_ActionToActionObjShunt_1() { return static_cast<int32_t>(offsetof(CancellationToken_t9E956952F7F20908F2AE72EDF36D97E6C7DB63AB_StaticFields, ___s_ActionToActionObjShunt_1)); } inline Action_1_t551A279CEADCF6EEAE8FA2B1E1E757D0D15290D0 * get_s_ActionToActionObjShunt_1() const { return ___s_ActionToActionObjShunt_1; } inline Action_1_t551A279CEADCF6EEAE8FA2B1E1E757D0D15290D0 ** get_address_of_s_ActionToActionObjShunt_1() { return &___s_ActionToActionObjShunt_1; } inline void set_s_ActionToActionObjShunt_1(Action_1_t551A279CEADCF6EEAE8FA2B1E1E757D0D15290D0 * value) { ___s_ActionToActionObjShunt_1 = value; Il2CppCodeGenWriteBarrier((&___s_ActionToActionObjShunt_1), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif // Native definition for P/Invoke marshalling of System.Threading.CancellationToken struct CancellationToken_t9E956952F7F20908F2AE72EDF36D97E6C7DB63AB_marshaled_pinvoke { CancellationTokenSource_tF480B7E74A032667AFBD31F0530D619FB43AD3FE * ___m_source_0; }; // Native definition for COM marshalling of System.Threading.CancellationToken struct CancellationToken_t9E956952F7F20908F2AE72EDF36D97E6C7DB63AB_marshaled_com { CancellationTokenSource_tF480B7E74A032667AFBD31F0530D619FB43AD3FE * ___m_source_0; }; #endif // CANCELLATIONTOKEN_T9E956952F7F20908F2AE72EDF36D97E6C7DB63AB_H #ifndef SYSTEMTIME_TB7F532B6AEC26D9270A30C57600C31F2622DF7A2_H #define SYSTEMTIME_TB7F532B6AEC26D9270A30C57600C31F2622DF7A2_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.TimeZoneInfo_SYSTEMTIME struct SYSTEMTIME_tB7F532B6AEC26D9270A30C57600C31F2622DF7A2 { public: // System.UInt16 System.TimeZoneInfo_SYSTEMTIME::wYear uint16_t ___wYear_0; // System.UInt16 System.TimeZoneInfo_SYSTEMTIME::wMonth uint16_t ___wMonth_1; // System.UInt16 System.TimeZoneInfo_SYSTEMTIME::wDayOfWeek uint16_t ___wDayOfWeek_2; // System.UInt16 System.TimeZoneInfo_SYSTEMTIME::wDay uint16_t ___wDay_3; // System.UInt16 System.TimeZoneInfo_SYSTEMTIME::wHour uint16_t ___wHour_4; // System.UInt16 System.TimeZoneInfo_SYSTEMTIME::wMinute uint16_t ___wMinute_5; // System.UInt16 System.TimeZoneInfo_SYSTEMTIME::wSecond uint16_t ___wSecond_6; // System.UInt16 System.TimeZoneInfo_SYSTEMTIME::wMilliseconds uint16_t ___wMilliseconds_7; public: inline static int32_t get_offset_of_wYear_0() { return static_cast<int32_t>(offsetof(SYSTEMTIME_tB7F532B6AEC26D9270A30C57600C31F2622DF7A2, ___wYear_0)); } inline uint16_t get_wYear_0() const { return ___wYear_0; } inline uint16_t* get_address_of_wYear_0() { return &___wYear_0; } inline void set_wYear_0(uint16_t value) { ___wYear_0 = value; } inline static int32_t get_offset_of_wMonth_1() { return static_cast<int32_t>(offsetof(SYSTEMTIME_tB7F532B6AEC26D9270A30C57600C31F2622DF7A2, ___wMonth_1)); } inline uint16_t get_wMonth_1() const { return ___wMonth_1; } inline uint16_t* get_address_of_wMonth_1() { return &___wMonth_1; } inline void set_wMonth_1(uint16_t value) { ___wMonth_1 = value; } inline static int32_t get_offset_of_wDayOfWeek_2() { return static_cast<int32_t>(offsetof(SYSTEMTIME_tB7F532B6AEC26D9270A30C57600C31F2622DF7A2, ___wDayOfWeek_2)); } inline uint16_t get_wDayOfWeek_2() const { return ___wDayOfWeek_2; } inline uint16_t* get_address_of_wDayOfWeek_2() { return &___wDayOfWeek_2; } inline void set_wDayOfWeek_2(uint16_t value) { ___wDayOfWeek_2 = value; } inline static int32_t get_offset_of_wDay_3() { return static_cast<int32_t>(offsetof(SYSTEMTIME_tB7F532B6AEC26D9270A30C57600C31F2622DF7A2, ___wDay_3)); } inline uint16_t get_wDay_3() const { return ___wDay_3; } inline uint16_t* get_address_of_wDay_3() { return &___wDay_3; } inline void set_wDay_3(uint16_t value) { ___wDay_3 = value; } inline static int32_t get_offset_of_wHour_4() { return static_cast<int32_t>(offsetof(SYSTEMTIME_tB7F532B6AEC26D9270A30C57600C31F2622DF7A2, ___wHour_4)); } inline uint16_t get_wHour_4() const { return ___wHour_4; } inline uint16_t* get_address_of_wHour_4() { return &___wHour_4; } inline void set_wHour_4(uint16_t value) { ___wHour_4 = value; } inline static int32_t get_offset_of_wMinute_5() { return static_cast<int32_t>(offsetof(SYSTEMTIME_tB7F532B6AEC26D9270A30C57600C31F2622DF7A2, ___wMinute_5)); } inline uint16_t get_wMinute_5() const { return ___wMinute_5; } inline uint16_t* get_address_of_wMinute_5() { return &___wMinute_5; } inline void set_wMinute_5(uint16_t value) { ___wMinute_5 = value; } inline static int32_t get_offset_of_wSecond_6() { return static_cast<int32_t>(offsetof(SYSTEMTIME_tB7F532B6AEC26D9270A30C57600C31F2622DF7A2, ___wSecond_6)); } inline uint16_t get_wSecond_6() const { return ___wSecond_6; } inline uint16_t* get_address_of_wSecond_6() { return &___wSecond_6; } inline void set_wSecond_6(uint16_t value) { ___wSecond_6 = value; } inline static int32_t get_offset_of_wMilliseconds_7() { return static_cast<int32_t>(offsetof(SYSTEMTIME_tB7F532B6AEC26D9270A30C57600C31F2622DF7A2, ___wMilliseconds_7)); } inline uint16_t get_wMilliseconds_7() const { return ___wMilliseconds_7; } inline uint16_t* get_address_of_wMilliseconds_7() { return &___wMilliseconds_7; } inline void set_wMilliseconds_7(uint16_t value) { ___wMilliseconds_7 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // SYSTEMTIME_TB7F532B6AEC26D9270A30C57600C31F2622DF7A2_H #ifndef TIMEZONENOTFOUNDEXCEPTION_T44EC55B0AAD26AD0E0B659D308CBF90E5C81B388_H #define TIMEZONENOTFOUNDEXCEPTION_T44EC55B0AAD26AD0E0B659D308CBF90E5C81B388_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.TimeZoneNotFoundException struct TimeZoneNotFoundException_t44EC55B0AAD26AD0E0B659D308CBF90E5C81B388 : public Exception_t { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // TIMEZONENOTFOUNDEXCEPTION_T44EC55B0AAD26AD0E0B659D308CBF90E5C81B388_H #ifndef UINT16_TAE45CEF73BF720100519F6867F32145D075F928E_H #define UINT16_TAE45CEF73BF720100519F6867F32145D075F928E_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.UInt16 struct UInt16_tAE45CEF73BF720100519F6867F32145D075F928E { public: // System.UInt16 System.UInt16::m_value uint16_t ___m_value_0; public: inline static int32_t get_offset_of_m_value_0() { return static_cast<int32_t>(offsetof(UInt16_tAE45CEF73BF720100519F6867F32145D075F928E, ___m_value_0)); } inline uint16_t get_m_value_0() const { return ___m_value_0; } inline uint16_t* get_address_of_m_value_0() { return &___m_value_0; } inline void set_m_value_0(uint16_t value) { ___m_value_0 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // UINT16_TAE45CEF73BF720100519F6867F32145D075F928E_H #ifndef UINT32_T4980FA09003AFAAB5A6E361BA2748EA9A005709B_H #define UINT32_T4980FA09003AFAAB5A6E361BA2748EA9A005709B_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.UInt32 struct UInt32_t4980FA09003AFAAB5A6E361BA2748EA9A005709B { public: // System.UInt32 System.UInt32::m_value uint32_t ___m_value_0; public: inline static int32_t get_offset_of_m_value_0() { return static_cast<int32_t>(offsetof(UInt32_t4980FA09003AFAAB5A6E361BA2748EA9A005709B, ___m_value_0)); } inline uint32_t get_m_value_0() const { return ___m_value_0; } inline uint32_t* get_address_of_m_value_0() { return &___m_value_0; } inline void set_m_value_0(uint32_t value) { ___m_value_0 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // UINT32_T4980FA09003AFAAB5A6E361BA2748EA9A005709B_H #ifndef UINT64_TA02DF3B59C8FC4A849BD207DA11038CC64E4CB4E_H #define UINT64_TA02DF3B59C8FC4A849BD207DA11038CC64E4CB4E_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.UInt64 struct UInt64_tA02DF3B59C8FC4A849BD207DA11038CC64E4CB4E { public: // System.UInt64 System.UInt64::m_value uint64_t ___m_value_0; public: inline static int32_t get_offset_of_m_value_0() { return static_cast<int32_t>(offsetof(UInt64_tA02DF3B59C8FC4A849BD207DA11038CC64E4CB4E, ___m_value_0)); } inline uint64_t get_m_value_0() const { return ___m_value_0; } inline uint64_t* get_address_of_m_value_0() { return &___m_value_0; } inline void set_m_value_0(uint64_t value) { ___m_value_0 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // UINT64_TA02DF3B59C8FC4A849BD207DA11038CC64E4CB4E_H #ifndef UNSAFECHARBUFFER_T99F0962CE65E71C4BA612D5434276C51AC33AF0C_H #define UNSAFECHARBUFFER_T99F0962CE65E71C4BA612D5434276C51AC33AF0C_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.UnSafeCharBuffer struct UnSafeCharBuffer_t99F0962CE65E71C4BA612D5434276C51AC33AF0C { public: // System.Char* System.UnSafeCharBuffer::m_buffer Il2CppChar* ___m_buffer_0; // System.Int32 System.UnSafeCharBuffer::m_totalSize int32_t ___m_totalSize_1; // System.Int32 System.UnSafeCharBuffer::m_length int32_t ___m_length_2; public: inline static int32_t get_offset_of_m_buffer_0() { return static_cast<int32_t>(offsetof(UnSafeCharBuffer_t99F0962CE65E71C4BA612D5434276C51AC33AF0C, ___m_buffer_0)); } inline Il2CppChar* get_m_buffer_0() const { return ___m_buffer_0; } inline Il2CppChar** get_address_of_m_buffer_0() { return &___m_buffer_0; } inline void set_m_buffer_0(Il2CppChar* value) { ___m_buffer_0 = value; } inline static int32_t get_offset_of_m_totalSize_1() { return static_cast<int32_t>(offsetof(UnSafeCharBuffer_t99F0962CE65E71C4BA612D5434276C51AC33AF0C, ___m_totalSize_1)); } inline int32_t get_m_totalSize_1() const { return ___m_totalSize_1; } inline int32_t* get_address_of_m_totalSize_1() { return &___m_totalSize_1; } inline void set_m_totalSize_1(int32_t value) { ___m_totalSize_1 = value; } inline static int32_t get_offset_of_m_length_2() { return static_cast<int32_t>(offsetof(UnSafeCharBuffer_t99F0962CE65E71C4BA612D5434276C51AC33AF0C, ___m_length_2)); } inline int32_t get_m_length_2() const { return ___m_length_2; } inline int32_t* get_address_of_m_length_2() { return &___m_length_2; } inline void set_m_length_2(int32_t value) { ___m_length_2 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif // Native definition for P/Invoke marshalling of System.UnSafeCharBuffer struct UnSafeCharBuffer_t99F0962CE65E71C4BA612D5434276C51AC33AF0C_marshaled_pinvoke { Il2CppChar* ___m_buffer_0; int32_t ___m_totalSize_1; int32_t ___m_length_2; }; // Native definition for COM marshalling of System.UnSafeCharBuffer struct UnSafeCharBuffer_t99F0962CE65E71C4BA612D5434276C51AC33AF0C_marshaled_com { Il2CppChar* ___m_buffer_0; int32_t ___m_totalSize_1; int32_t ___m_length_2; }; #endif // UNSAFECHARBUFFER_T99F0962CE65E71C4BA612D5434276C51AC33AF0C_H #ifndef UNHANDLEDEXCEPTIONEVENTARGS_T39DD47D43B0D764FE2C9847FBE760031FBEA0FD1_H #define UNHANDLEDEXCEPTIONEVENTARGS_T39DD47D43B0D764FE2C9847FBE760031FBEA0FD1_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.UnhandledExceptionEventArgs struct UnhandledExceptionEventArgs_t39DD47D43B0D764FE2C9847FBE760031FBEA0FD1 : public EventArgs_t8E6CA180BE0E56674C6407011A94BAF7C757352E { public: // System.Object System.UnhandledExceptionEventArgs::_Exception RuntimeObject * ____Exception_1; // System.Boolean System.UnhandledExceptionEventArgs::_IsTerminating bool ____IsTerminating_2; public: inline static int32_t get_offset_of__Exception_1() { return static_cast<int32_t>(offsetof(UnhandledExceptionEventArgs_t39DD47D43B0D764FE2C9847FBE760031FBEA0FD1, ____Exception_1)); } inline RuntimeObject * get__Exception_1() const { return ____Exception_1; } inline RuntimeObject ** get_address_of__Exception_1() { return &____Exception_1; } inline void set__Exception_1(RuntimeObject * value) { ____Exception_1 = value; Il2CppCodeGenWriteBarrier((&____Exception_1), value); } inline static int32_t get_offset_of__IsTerminating_2() { return static_cast<int32_t>(offsetof(UnhandledExceptionEventArgs_t39DD47D43B0D764FE2C9847FBE760031FBEA0FD1, ____IsTerminating_2)); } inline bool get__IsTerminating_2() const { return ____IsTerminating_2; } inline bool* get_address_of__IsTerminating_2() { return &____IsTerminating_2; } inline void set__IsTerminating_2(bool value) { ____IsTerminating_2 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // UNHANDLEDEXCEPTIONEVENTARGS_T39DD47D43B0D764FE2C9847FBE760031FBEA0FD1_H #ifndef VOID_T22962CB4C05B1D89B55A6E1139F0E87A90987017_H #define VOID_T22962CB4C05B1D89B55A6E1139F0E87A90987017_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Void struct Void_t22962CB4C05B1D89B55A6E1139F0E87A90987017 { public: union { struct { }; uint8_t Void_t22962CB4C05B1D89B55A6E1139F0E87A90987017__padding[1]; }; public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // VOID_T22962CB4C05B1D89B55A6E1139F0E87A90987017_H #ifndef APPDOMAIN_T1B59572328F60585904DF52A59FE47CF5B5FFFF8_H #define APPDOMAIN_T1B59572328F60585904DF52A59FE47CF5B5FFFF8_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.AppDomain struct AppDomain_t1B59572328F60585904DF52A59FE47CF5B5FFFF8 : public MarshalByRefObject_tC4577953D0A44D0AB8597CFA868E01C858B1C9AF { public: // System.IntPtr System.AppDomain::_mono_app_domain intptr_t ____mono_app_domain_1; // System.Object System.AppDomain::_evidence RuntimeObject * ____evidence_6; // System.Object System.AppDomain::_granted RuntimeObject * ____granted_7; // System.Int32 System.AppDomain::_principalPolicy int32_t ____principalPolicy_8; // System.AssemblyLoadEventHandler System.AppDomain::AssemblyLoad AssemblyLoadEventHandler_t53F8340027F9EE67E8A22E7D8C1A3770345153C9 * ___AssemblyLoad_11; // System.ResolveEventHandler System.AppDomain::AssemblyResolve ResolveEventHandler_t045C469BEA8B632FA99FE8867C921BA8DAE0BEE5 * ___AssemblyResolve_12; // System.EventHandler System.AppDomain::DomainUnload EventHandler_t2B84E745E28BA26C49C4E99A387FC3B534D1110C * ___DomainUnload_13; // System.EventHandler System.AppDomain::ProcessExit EventHandler_t2B84E745E28BA26C49C4E99A387FC3B534D1110C * ___ProcessExit_14; // System.ResolveEventHandler System.AppDomain::ResourceResolve ResolveEventHandler_t045C469BEA8B632FA99FE8867C921BA8DAE0BEE5 * ___ResourceResolve_15; // System.ResolveEventHandler System.AppDomain::TypeResolve ResolveEventHandler_t045C469BEA8B632FA99FE8867C921BA8DAE0BEE5 * ___TypeResolve_16; // System.UnhandledExceptionEventHandler System.AppDomain::UnhandledException UnhandledExceptionEventHandler_tB0DFF05ABF7A3A234C87D4F7A71F98E9AB2D91DE * ___UnhandledException_17; // System.EventHandler`1<System.Runtime.ExceptionServices.FirstChanceExceptionEventArgs> System.AppDomain::FirstChanceException EventHandler_1_t1E35ED2E29145994C6C03E57601C6D48C61083FF * ___FirstChanceException_18; // System.Object System.AppDomain::_domain_manager RuntimeObject * ____domain_manager_19; // System.ResolveEventHandler System.AppDomain::ReflectionOnlyAssemblyResolve ResolveEventHandler_t045C469BEA8B632FA99FE8867C921BA8DAE0BEE5 * ___ReflectionOnlyAssemblyResolve_20; // System.Object System.AppDomain::_activation RuntimeObject * ____activation_21; // System.Object System.AppDomain::_applicationIdentity RuntimeObject * ____applicationIdentity_22; // System.Collections.Generic.List`1<System.String> System.AppDomain::compatibility_switch List_1_tE8032E48C661C350FF9550E9063D595C0AB25CD3 * ___compatibility_switch_23; public: inline static int32_t get_offset_of__mono_app_domain_1() { return static_cast<int32_t>(offsetof(AppDomain_t1B59572328F60585904DF52A59FE47CF5B5FFFF8, ____mono_app_domain_1)); } inline intptr_t get__mono_app_domain_1() const { return ____mono_app_domain_1; } inline intptr_t* get_address_of__mono_app_domain_1() { return &____mono_app_domain_1; } inline void set__mono_app_domain_1(intptr_t value) { ____mono_app_domain_1 = value; } inline static int32_t get_offset_of__evidence_6() { return static_cast<int32_t>(offsetof(AppDomain_t1B59572328F60585904DF52A59FE47CF5B5FFFF8, ____evidence_6)); } inline RuntimeObject * get__evidence_6() const { return ____evidence_6; } inline RuntimeObject ** get_address_of__evidence_6() { return &____evidence_6; } inline void set__evidence_6(RuntimeObject * value) { ____evidence_6 = value; Il2CppCodeGenWriteBarrier((&____evidence_6), value); } inline static int32_t get_offset_of__granted_7() { return static_cast<int32_t>(offsetof(AppDomain_t1B59572328F60585904DF52A59FE47CF5B5FFFF8, ____granted_7)); } inline RuntimeObject * get__granted_7() const { return ____granted_7; } inline RuntimeObject ** get_address_of__granted_7() { return &____granted_7; } inline void set__granted_7(RuntimeObject * value) { ____granted_7 = value; Il2CppCodeGenWriteBarrier((&____granted_7), value); } inline static int32_t get_offset_of__principalPolicy_8() { return static_cast<int32_t>(offsetof(AppDomain_t1B59572328F60585904DF52A59FE47CF5B5FFFF8, ____principalPolicy_8)); } inline int32_t get__principalPolicy_8() const { return ____principalPolicy_8; } inline int32_t* get_address_of__principalPolicy_8() { return &____principalPolicy_8; } inline void set__principalPolicy_8(int32_t value) { ____principalPolicy_8 = value; } inline static int32_t get_offset_of_AssemblyLoad_11() { return static_cast<int32_t>(offsetof(AppDomain_t1B59572328F60585904DF52A59FE47CF5B5FFFF8, ___AssemblyLoad_11)); } inline AssemblyLoadEventHandler_t53F8340027F9EE67E8A22E7D8C1A3770345153C9 * get_AssemblyLoad_11() const { return ___AssemblyLoad_11; } inline AssemblyLoadEventHandler_t53F8340027F9EE67E8A22E7D8C1A3770345153C9 ** get_address_of_AssemblyLoad_11() { return &___AssemblyLoad_11; } inline void set_AssemblyLoad_11(AssemblyLoadEventHandler_t53F8340027F9EE67E8A22E7D8C1A3770345153C9 * value) { ___AssemblyLoad_11 = value; Il2CppCodeGenWriteBarrier((&___AssemblyLoad_11), value); } inline static int32_t get_offset_of_AssemblyResolve_12() { return static_cast<int32_t>(offsetof(AppDomain_t1B59572328F60585904DF52A59FE47CF5B5FFFF8, ___AssemblyResolve_12)); } inline ResolveEventHandler_t045C469BEA8B632FA99FE8867C921BA8DAE0BEE5 * get_AssemblyResolve_12() const { return ___AssemblyResolve_12; } inline ResolveEventHandler_t045C469BEA8B632FA99FE8867C921BA8DAE0BEE5 ** get_address_of_AssemblyResolve_12() { return &___AssemblyResolve_12; } inline void set_AssemblyResolve_12(ResolveEventHandler_t045C469BEA8B632FA99FE8867C921BA8DAE0BEE5 * value) { ___AssemblyResolve_12 = value; Il2CppCodeGenWriteBarrier((&___AssemblyResolve_12), value); } inline static int32_t get_offset_of_DomainUnload_13() { return static_cast<int32_t>(offsetof(AppDomain_t1B59572328F60585904DF52A59FE47CF5B5FFFF8, ___DomainUnload_13)); } inline EventHandler_t2B84E745E28BA26C49C4E99A387FC3B534D1110C * get_DomainUnload_13() const { return ___DomainUnload_13; } inline EventHandler_t2B84E745E28BA26C49C4E99A387FC3B534D1110C ** get_address_of_DomainUnload_13() { return &___DomainUnload_13; } inline void set_DomainUnload_13(EventHandler_t2B84E745E28BA26C49C4E99A387FC3B534D1110C * value) { ___DomainUnload_13 = value; Il2CppCodeGenWriteBarrier((&___DomainUnload_13), value); } inline static int32_t get_offset_of_ProcessExit_14() { return static_cast<int32_t>(offsetof(AppDomain_t1B59572328F60585904DF52A59FE47CF5B5FFFF8, ___ProcessExit_14)); } inline EventHandler_t2B84E745E28BA26C49C4E99A387FC3B534D1110C * get_ProcessExit_14() const { return ___ProcessExit_14; } inline EventHandler_t2B84E745E28BA26C49C4E99A387FC3B534D1110C ** get_address_of_ProcessExit_14() { return &___ProcessExit_14; } inline void set_ProcessExit_14(EventHandler_t2B84E745E28BA26C49C4E99A387FC3B534D1110C * value) { ___ProcessExit_14 = value; Il2CppCodeGenWriteBarrier((&___ProcessExit_14), value); } inline static int32_t get_offset_of_ResourceResolve_15() { return static_cast<int32_t>(offsetof(AppDomain_t1B59572328F60585904DF52A59FE47CF5B5FFFF8, ___ResourceResolve_15)); } inline ResolveEventHandler_t045C469BEA8B632FA99FE8867C921BA8DAE0BEE5 * get_ResourceResolve_15() const { return ___ResourceResolve_15; } inline ResolveEventHandler_t045C469BEA8B632FA99FE8867C921BA8DAE0BEE5 ** get_address_of_ResourceResolve_15() { return &___ResourceResolve_15; } inline void set_ResourceResolve_15(ResolveEventHandler_t045C469BEA8B632FA99FE8867C921BA8DAE0BEE5 * value) { ___ResourceResolve_15 = value; Il2CppCodeGenWriteBarrier((&___ResourceResolve_15), value); } inline static int32_t get_offset_of_TypeResolve_16() { return static_cast<int32_t>(offsetof(AppDomain_t1B59572328F60585904DF52A59FE47CF5B5FFFF8, ___TypeResolve_16)); } inline ResolveEventHandler_t045C469BEA8B632FA99FE8867C921BA8DAE0BEE5 * get_TypeResolve_16() const { return ___TypeResolve_16; } inline ResolveEventHandler_t045C469BEA8B632FA99FE8867C921BA8DAE0BEE5 ** get_address_of_TypeResolve_16() { return &___TypeResolve_16; } inline void set_TypeResolve_16(ResolveEventHandler_t045C469BEA8B632FA99FE8867C921BA8DAE0BEE5 * value) { ___TypeResolve_16 = value; Il2CppCodeGenWriteBarrier((&___TypeResolve_16), value); } inline static int32_t get_offset_of_UnhandledException_17() { return static_cast<int32_t>(offsetof(AppDomain_t1B59572328F60585904DF52A59FE47CF5B5FFFF8, ___UnhandledException_17)); } inline UnhandledExceptionEventHandler_tB0DFF05ABF7A3A234C87D4F7A71F98E9AB2D91DE * get_UnhandledException_17() const { return ___UnhandledException_17; } inline UnhandledExceptionEventHandler_tB0DFF05ABF7A3A234C87D4F7A71F98E9AB2D91DE ** get_address_of_UnhandledException_17() { return &___UnhandledException_17; } inline void set_UnhandledException_17(UnhandledExceptionEventHandler_tB0DFF05ABF7A3A234C87D4F7A71F98E9AB2D91DE * value) { ___UnhandledException_17 = value; Il2CppCodeGenWriteBarrier((&___UnhandledException_17), value); } inline static int32_t get_offset_of_FirstChanceException_18() { return static_cast<int32_t>(offsetof(AppDomain_t1B59572328F60585904DF52A59FE47CF5B5FFFF8, ___FirstChanceException_18)); } inline EventHandler_1_t1E35ED2E29145994C6C03E57601C6D48C61083FF * get_FirstChanceException_18() const { return ___FirstChanceException_18; } inline EventHandler_1_t1E35ED2E29145994C6C03E57601C6D48C61083FF ** get_address_of_FirstChanceException_18() { return &___FirstChanceException_18; } inline void set_FirstChanceException_18(EventHandler_1_t1E35ED2E29145994C6C03E57601C6D48C61083FF * value) { ___FirstChanceException_18 = value; Il2CppCodeGenWriteBarrier((&___FirstChanceException_18), value); } inline static int32_t get_offset_of__domain_manager_19() { return static_cast<int32_t>(offsetof(AppDomain_t1B59572328F60585904DF52A59FE47CF5B5FFFF8, ____domain_manager_19)); } inline RuntimeObject * get__domain_manager_19() const { return ____domain_manager_19; } inline RuntimeObject ** get_address_of__domain_manager_19() { return &____domain_manager_19; } inline void set__domain_manager_19(RuntimeObject * value) { ____domain_manager_19 = value; Il2CppCodeGenWriteBarrier((&____domain_manager_19), value); } inline static int32_t get_offset_of_ReflectionOnlyAssemblyResolve_20() { return static_cast<int32_t>(offsetof(AppDomain_t1B59572328F60585904DF52A59FE47CF5B5FFFF8, ___ReflectionOnlyAssemblyResolve_20)); } inline ResolveEventHandler_t045C469BEA8B632FA99FE8867C921BA8DAE0BEE5 * get_ReflectionOnlyAssemblyResolve_20() const { return ___ReflectionOnlyAssemblyResolve_20; } inline ResolveEventHandler_t045C469BEA8B632FA99FE8867C921BA8DAE0BEE5 ** get_address_of_ReflectionOnlyAssemblyResolve_20() { return &___ReflectionOnlyAssemblyResolve_20; } inline void set_ReflectionOnlyAssemblyResolve_20(ResolveEventHandler_t045C469BEA8B632FA99FE8867C921BA8DAE0BEE5 * value) { ___ReflectionOnlyAssemblyResolve_20 = value; Il2CppCodeGenWriteBarrier((&___ReflectionOnlyAssemblyResolve_20), value); } inline static int32_t get_offset_of__activation_21() { return static_cast<int32_t>(offsetof(AppDomain_t1B59572328F60585904DF52A59FE47CF5B5FFFF8, ____activation_21)); } inline RuntimeObject * get__activation_21() const { return ____activation_21; } inline RuntimeObject ** get_address_of__activation_21() { return &____activation_21; } inline void set__activation_21(RuntimeObject * value) { ____activation_21 = value; Il2CppCodeGenWriteBarrier((&____activation_21), value); } inline static int32_t get_offset_of__applicationIdentity_22() { return static_cast<int32_t>(offsetof(AppDomain_t1B59572328F60585904DF52A59FE47CF5B5FFFF8, ____applicationIdentity_22)); } inline RuntimeObject * get__applicationIdentity_22() const { return ____applicationIdentity_22; } inline RuntimeObject ** get_address_of__applicationIdentity_22() { return &____applicationIdentity_22; } inline void set__applicationIdentity_22(RuntimeObject * value) { ____applicationIdentity_22 = value; Il2CppCodeGenWriteBarrier((&____applicationIdentity_22), value); } inline static int32_t get_offset_of_compatibility_switch_23() { return static_cast<int32_t>(offsetof(AppDomain_t1B59572328F60585904DF52A59FE47CF5B5FFFF8, ___compatibility_switch_23)); } inline List_1_tE8032E48C661C350FF9550E9063D595C0AB25CD3 * get_compatibility_switch_23() const { return ___compatibility_switch_23; } inline List_1_tE8032E48C661C350FF9550E9063D595C0AB25CD3 ** get_address_of_compatibility_switch_23() { return &___compatibility_switch_23; } inline void set_compatibility_switch_23(List_1_tE8032E48C661C350FF9550E9063D595C0AB25CD3 * value) { ___compatibility_switch_23 = value; Il2CppCodeGenWriteBarrier((&___compatibility_switch_23), value); } }; struct AppDomain_t1B59572328F60585904DF52A59FE47CF5B5FFFF8_StaticFields { public: // System.String System.AppDomain::_process_guid String_t* ____process_guid_2; // System.AppDomain System.AppDomain::default_domain AppDomain_t1B59572328F60585904DF52A59FE47CF5B5FFFF8 * ___default_domain_10; public: inline static int32_t get_offset_of__process_guid_2() { return static_cast<int32_t>(offsetof(AppDomain_t1B59572328F60585904DF52A59FE47CF5B5FFFF8_StaticFields, ____process_guid_2)); } inline String_t* get__process_guid_2() const { return ____process_guid_2; } inline String_t** get_address_of__process_guid_2() { return &____process_guid_2; } inline void set__process_guid_2(String_t* value) { ____process_guid_2 = value; Il2CppCodeGenWriteBarrier((&____process_guid_2), value); } inline static int32_t get_offset_of_default_domain_10() { return static_cast<int32_t>(offsetof(AppDomain_t1B59572328F60585904DF52A59FE47CF5B5FFFF8_StaticFields, ___default_domain_10)); } inline AppDomain_t1B59572328F60585904DF52A59FE47CF5B5FFFF8 * get_default_domain_10() const { return ___default_domain_10; } inline AppDomain_t1B59572328F60585904DF52A59FE47CF5B5FFFF8 ** get_address_of_default_domain_10() { return &___default_domain_10; } inline void set_default_domain_10(AppDomain_t1B59572328F60585904DF52A59FE47CF5B5FFFF8 * value) { ___default_domain_10 = value; Il2CppCodeGenWriteBarrier((&___default_domain_10), value); } }; struct AppDomain_t1B59572328F60585904DF52A59FE47CF5B5FFFF8_ThreadStaticFields { public: // System.Collections.Generic.Dictionary`2<System.String,System.Object> System.AppDomain::type_resolve_in_progress Dictionary_2_t9140A71329927AE4FD0F3CF4D4D66668EBE151EA * ___type_resolve_in_progress_3; // System.Collections.Generic.Dictionary`2<System.String,System.Object> System.AppDomain::assembly_resolve_in_progress Dictionary_2_t9140A71329927AE4FD0F3CF4D4D66668EBE151EA * ___assembly_resolve_in_progress_4; // System.Collections.Generic.Dictionary`2<System.String,System.Object> System.AppDomain::assembly_resolve_in_progress_refonly Dictionary_2_t9140A71329927AE4FD0F3CF4D4D66668EBE151EA * ___assembly_resolve_in_progress_refonly_5; // System.Object System.AppDomain::_principal RuntimeObject * ____principal_9; public: inline static int32_t get_offset_of_type_resolve_in_progress_3() { return static_cast<int32_t>(offsetof(AppDomain_t1B59572328F60585904DF52A59FE47CF5B5FFFF8_ThreadStaticFields, ___type_resolve_in_progress_3)); } inline Dictionary_2_t9140A71329927AE4FD0F3CF4D4D66668EBE151EA * get_type_resolve_in_progress_3() const { return ___type_resolve_in_progress_3; } inline Dictionary_2_t9140A71329927AE4FD0F3CF4D4D66668EBE151EA ** get_address_of_type_resolve_in_progress_3() { return &___type_resolve_in_progress_3; } inline void set_type_resolve_in_progress_3(Dictionary_2_t9140A71329927AE4FD0F3CF4D4D66668EBE151EA * value) { ___type_resolve_in_progress_3 = value; Il2CppCodeGenWriteBarrier((&___type_resolve_in_progress_3), value); } inline static int32_t get_offset_of_assembly_resolve_in_progress_4() { return static_cast<int32_t>(offsetof(AppDomain_t1B59572328F60585904DF52A59FE47CF5B5FFFF8_ThreadStaticFields, ___assembly_resolve_in_progress_4)); } inline Dictionary_2_t9140A71329927AE4FD0F3CF4D4D66668EBE151EA * get_assembly_resolve_in_progress_4() const { return ___assembly_resolve_in_progress_4; } inline Dictionary_2_t9140A71329927AE4FD0F3CF4D4D66668EBE151EA ** get_address_of_assembly_resolve_in_progress_4() { return &___assembly_resolve_in_progress_4; } inline void set_assembly_resolve_in_progress_4(Dictionary_2_t9140A71329927AE4FD0F3CF4D4D66668EBE151EA * value) { ___assembly_resolve_in_progress_4 = value; Il2CppCodeGenWriteBarrier((&___assembly_resolve_in_progress_4), value); } inline static int32_t get_offset_of_assembly_resolve_in_progress_refonly_5() { return static_cast<int32_t>(offsetof(AppDomain_t1B59572328F60585904DF52A59FE47CF5B5FFFF8_ThreadStaticFields, ___assembly_resolve_in_progress_refonly_5)); } inline Dictionary_2_t9140A71329927AE4FD0F3CF4D4D66668EBE151EA * get_assembly_resolve_in_progress_refonly_5() const { return ___assembly_resolve_in_progress_refonly_5; } inline Dictionary_2_t9140A71329927AE4FD0F3CF4D4D66668EBE151EA ** get_address_of_assembly_resolve_in_progress_refonly_5() { return &___assembly_resolve_in_progress_refonly_5; } inline void set_assembly_resolve_in_progress_refonly_5(Dictionary_2_t9140A71329927AE4FD0F3CF4D4D66668EBE151EA * value) { ___assembly_resolve_in_progress_refonly_5 = value; Il2CppCodeGenWriteBarrier((&___assembly_resolve_in_progress_refonly_5), value); } inline static int32_t get_offset_of__principal_9() { return static_cast<int32_t>(offsetof(AppDomain_t1B59572328F60585904DF52A59FE47CF5B5FFFF8_ThreadStaticFields, ____principal_9)); } inline RuntimeObject * get__principal_9() const { return ____principal_9; } inline RuntimeObject ** get_address_of__principal_9() { return &____principal_9; } inline void set__principal_9(RuntimeObject * value) { ____principal_9 = value; Il2CppCodeGenWriteBarrier((&____principal_9), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif // Native definition for P/Invoke marshalling of System.AppDomain struct AppDomain_t1B59572328F60585904DF52A59FE47CF5B5FFFF8_marshaled_pinvoke : public MarshalByRefObject_tC4577953D0A44D0AB8597CFA868E01C858B1C9AF_marshaled_pinvoke { intptr_t ____mono_app_domain_1; Il2CppIUnknown* ____evidence_6; Il2CppIUnknown* ____granted_7; int32_t ____principalPolicy_8; Il2CppMethodPointer ___AssemblyLoad_11; Il2CppMethodPointer ___AssemblyResolve_12; Il2CppMethodPointer ___DomainUnload_13; Il2CppMethodPointer ___ProcessExit_14; Il2CppMethodPointer ___ResourceResolve_15; Il2CppMethodPointer ___TypeResolve_16; Il2CppMethodPointer ___UnhandledException_17; Il2CppMethodPointer ___FirstChanceException_18; Il2CppIUnknown* ____domain_manager_19; Il2CppMethodPointer ___ReflectionOnlyAssemblyResolve_20; Il2CppIUnknown* ____activation_21; Il2CppIUnknown* ____applicationIdentity_22; List_1_tE8032E48C661C350FF9550E9063D595C0AB25CD3 * ___compatibility_switch_23; }; // Native definition for COM marshalling of System.AppDomain struct AppDomain_t1B59572328F60585904DF52A59FE47CF5B5FFFF8_marshaled_com : public MarshalByRefObject_tC4577953D0A44D0AB8597CFA868E01C858B1C9AF_marshaled_com { intptr_t ____mono_app_domain_1; Il2CppIUnknown* ____evidence_6; Il2CppIUnknown* ____granted_7; int32_t ____principalPolicy_8; Il2CppMethodPointer ___AssemblyLoad_11; Il2CppMethodPointer ___AssemblyResolve_12; Il2CppMethodPointer ___DomainUnload_13; Il2CppMethodPointer ___ProcessExit_14; Il2CppMethodPointer ___ResourceResolve_15; Il2CppMethodPointer ___TypeResolve_16; Il2CppMethodPointer ___UnhandledException_17; Il2CppMethodPointer ___FirstChanceException_18; Il2CppIUnknown* ____domain_manager_19; Il2CppMethodPointer ___ReflectionOnlyAssemblyResolve_20; Il2CppIUnknown* ____activation_21; Il2CppIUnknown* ____applicationIdentity_22; List_1_tE8032E48C661C350FF9550E9063D595C0AB25CD3 * ___compatibility_switch_23; }; #endif // APPDOMAIN_T1B59572328F60585904DF52A59FE47CF5B5FFFF8_H #ifndef ARGITERATOR_TCF0D2A1A1BD140821E37286E2D7AC6267479F855_H #define ARGITERATOR_TCF0D2A1A1BD140821E37286E2D7AC6267479F855_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.ArgIterator struct ArgIterator_tCF0D2A1A1BD140821E37286E2D7AC6267479F855 { public: // System.IntPtr System.ArgIterator::sig intptr_t ___sig_0; // System.IntPtr System.ArgIterator::args intptr_t ___args_1; // System.Int32 System.ArgIterator::next_arg int32_t ___next_arg_2; // System.Int32 System.ArgIterator::num_args int32_t ___num_args_3; public: inline static int32_t get_offset_of_sig_0() { return static_cast<int32_t>(offsetof(ArgIterator_tCF0D2A1A1BD140821E37286E2D7AC6267479F855, ___sig_0)); } inline intptr_t get_sig_0() const { return ___sig_0; } inline intptr_t* get_address_of_sig_0() { return &___sig_0; } inline void set_sig_0(intptr_t value) { ___sig_0 = value; } inline static int32_t get_offset_of_args_1() { return static_cast<int32_t>(offsetof(ArgIterator_tCF0D2A1A1BD140821E37286E2D7AC6267479F855, ___args_1)); } inline intptr_t get_args_1() const { return ___args_1; } inline intptr_t* get_address_of_args_1() { return &___args_1; } inline void set_args_1(intptr_t value) { ___args_1 = value; } inline static int32_t get_offset_of_next_arg_2() { return static_cast<int32_t>(offsetof(ArgIterator_tCF0D2A1A1BD140821E37286E2D7AC6267479F855, ___next_arg_2)); } inline int32_t get_next_arg_2() const { return ___next_arg_2; } inline int32_t* get_address_of_next_arg_2() { return &___next_arg_2; } inline void set_next_arg_2(int32_t value) { ___next_arg_2 = value; } inline static int32_t get_offset_of_num_args_3() { return static_cast<int32_t>(offsetof(ArgIterator_tCF0D2A1A1BD140821E37286E2D7AC6267479F855, ___num_args_3)); } inline int32_t get_num_args_3() const { return ___num_args_3; } inline int32_t* get_address_of_num_args_3() { return &___num_args_3; } inline void set_num_args_3(int32_t value) { ___num_args_3 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // ARGITERATOR_TCF0D2A1A1BD140821E37286E2D7AC6267479F855_H #ifndef ARITHMETICEXCEPTION_TF9EF5FE94597830EF315C5934258F994B8648269_H #define ARITHMETICEXCEPTION_TF9EF5FE94597830EF315C5934258F994B8648269_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.ArithmeticException struct ArithmeticException_tF9EF5FE94597830EF315C5934258F994B8648269 : public SystemException_t5380468142AA850BE4A341D7AF3EAB9C78746782 { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // ARITHMETICEXCEPTION_TF9EF5FE94597830EF315C5934258F994B8648269_H #ifndef DAYOFWEEK_TE7CD4C3124650FF8B2AD3E9DBD34B9896927DFF8_H #define DAYOFWEEK_TE7CD4C3124650FF8B2AD3E9DBD34B9896927DFF8_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.DayOfWeek struct DayOfWeek_tE7CD4C3124650FF8B2AD3E9DBD34B9896927DFF8 { public: // System.Int32 System.DayOfWeek::value__ int32_t ___value___2; public: inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(DayOfWeek_tE7CD4C3124650FF8B2AD3E9DBD34B9896927DFF8, ___value___2)); } inline int32_t get_value___2() const { return ___value___2; } inline int32_t* get_address_of_value___2() { return &___value___2; } inline void set_value___2(int32_t value) { ___value___2 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // DAYOFWEEK_TE7CD4C3124650FF8B2AD3E9DBD34B9896927DFF8_H #ifndef DELEGATE_T_H #define DELEGATE_T_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Delegate struct Delegate_t : public RuntimeObject { public: // System.IntPtr System.Delegate::method_ptr Il2CppMethodPointer ___method_ptr_0; // System.IntPtr System.Delegate::invoke_impl intptr_t ___invoke_impl_1; // System.Object System.Delegate::m_target RuntimeObject * ___m_target_2; // System.IntPtr System.Delegate::method intptr_t ___method_3; // System.IntPtr System.Delegate::delegate_trampoline intptr_t ___delegate_trampoline_4; // System.IntPtr System.Delegate::extra_arg intptr_t ___extra_arg_5; // System.IntPtr System.Delegate::method_code intptr_t ___method_code_6; // System.Reflection.MethodInfo System.Delegate::method_info MethodInfo_t * ___method_info_7; // System.Reflection.MethodInfo System.Delegate::original_method_info MethodInfo_t * ___original_method_info_8; // System.DelegateData System.Delegate::data DelegateData_t1BF9F691B56DAE5F8C28C5E084FDE94F15F27BBE * ___data_9; // System.Boolean System.Delegate::method_is_virtual bool ___method_is_virtual_10; public: inline static int32_t get_offset_of_method_ptr_0() { return static_cast<int32_t>(offsetof(Delegate_t, ___method_ptr_0)); } inline Il2CppMethodPointer get_method_ptr_0() const { return ___method_ptr_0; } inline Il2CppMethodPointer* get_address_of_method_ptr_0() { return &___method_ptr_0; } inline void set_method_ptr_0(Il2CppMethodPointer value) { ___method_ptr_0 = value; } inline static int32_t get_offset_of_invoke_impl_1() { return static_cast<int32_t>(offsetof(Delegate_t, ___invoke_impl_1)); } inline intptr_t get_invoke_impl_1() const { return ___invoke_impl_1; } inline intptr_t* get_address_of_invoke_impl_1() { return &___invoke_impl_1; } inline void set_invoke_impl_1(intptr_t value) { ___invoke_impl_1 = value; } inline static int32_t get_offset_of_m_target_2() { return static_cast<int32_t>(offsetof(Delegate_t, ___m_target_2)); } inline RuntimeObject * get_m_target_2() const { return ___m_target_2; } inline RuntimeObject ** get_address_of_m_target_2() { return &___m_target_2; } inline void set_m_target_2(RuntimeObject * value) { ___m_target_2 = value; Il2CppCodeGenWriteBarrier((&___m_target_2), value); } inline static int32_t get_offset_of_method_3() { return static_cast<int32_t>(offsetof(Delegate_t, ___method_3)); } inline intptr_t get_method_3() const { return ___method_3; } inline intptr_t* get_address_of_method_3() { return &___method_3; } inline void set_method_3(intptr_t value) { ___method_3 = value; } inline static int32_t get_offset_of_delegate_trampoline_4() { return static_cast<int32_t>(offsetof(Delegate_t, ___delegate_trampoline_4)); } inline intptr_t get_delegate_trampoline_4() const { return ___delegate_trampoline_4; } inline intptr_t* get_address_of_delegate_trampoline_4() { return &___delegate_trampoline_4; } inline void set_delegate_trampoline_4(intptr_t value) { ___delegate_trampoline_4 = value; } inline static int32_t get_offset_of_extra_arg_5() { return static_cast<int32_t>(offsetof(Delegate_t, ___extra_arg_5)); } inline intptr_t get_extra_arg_5() const { return ___extra_arg_5; } inline intptr_t* get_address_of_extra_arg_5() { return &___extra_arg_5; } inline void set_extra_arg_5(intptr_t value) { ___extra_arg_5 = value; } inline static int32_t get_offset_of_method_code_6() { return static_cast<int32_t>(offsetof(Delegate_t, ___method_code_6)); } inline intptr_t get_method_code_6() const { return ___method_code_6; } inline intptr_t* get_address_of_method_code_6() { return &___method_code_6; } inline void set_method_code_6(intptr_t value) { ___method_code_6 = value; } inline static int32_t get_offset_of_method_info_7() { return static_cast<int32_t>(offsetof(Delegate_t, ___method_info_7)); } inline MethodInfo_t * get_method_info_7() const { return ___method_info_7; } inline MethodInfo_t ** get_address_of_method_info_7() { return &___method_info_7; } inline void set_method_info_7(MethodInfo_t * value) { ___method_info_7 = value; Il2CppCodeGenWriteBarrier((&___method_info_7), value); } inline static int32_t get_offset_of_original_method_info_8() { return static_cast<int32_t>(offsetof(Delegate_t, ___original_method_info_8)); } inline MethodInfo_t * get_original_method_info_8() const { return ___original_method_info_8; } inline MethodInfo_t ** get_address_of_original_method_info_8() { return &___original_method_info_8; } inline void set_original_method_info_8(MethodInfo_t * value) { ___original_method_info_8 = value; Il2CppCodeGenWriteBarrier((&___original_method_info_8), value); } inline static int32_t get_offset_of_data_9() { return static_cast<int32_t>(offsetof(Delegate_t, ___data_9)); } inline DelegateData_t1BF9F691B56DAE5F8C28C5E084FDE94F15F27BBE * get_data_9() const { return ___data_9; } inline DelegateData_t1BF9F691B56DAE5F8C28C5E084FDE94F15F27BBE ** get_address_of_data_9() { return &___data_9; } inline void set_data_9(DelegateData_t1BF9F691B56DAE5F8C28C5E084FDE94F15F27BBE * value) { ___data_9 = value; Il2CppCodeGenWriteBarrier((&___data_9), value); } inline static int32_t get_offset_of_method_is_virtual_10() { return static_cast<int32_t>(offsetof(Delegate_t, ___method_is_virtual_10)); } inline bool get_method_is_virtual_10() const { return ___method_is_virtual_10; } inline bool* get_address_of_method_is_virtual_10() { return &___method_is_virtual_10; } inline void set_method_is_virtual_10(bool value) { ___method_is_virtual_10 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif // Native definition for P/Invoke marshalling of System.Delegate struct Delegate_t_marshaled_pinvoke { intptr_t ___method_ptr_0; intptr_t ___invoke_impl_1; Il2CppIUnknown* ___m_target_2; intptr_t ___method_3; intptr_t ___delegate_trampoline_4; intptr_t ___extra_arg_5; intptr_t ___method_code_6; MethodInfo_t * ___method_info_7; MethodInfo_t * ___original_method_info_8; DelegateData_t1BF9F691B56DAE5F8C28C5E084FDE94F15F27BBE * ___data_9; int32_t ___method_is_virtual_10; }; // Native definition for COM marshalling of System.Delegate struct Delegate_t_marshaled_com { intptr_t ___method_ptr_0; intptr_t ___invoke_impl_1; Il2CppIUnknown* ___m_target_2; intptr_t ___method_3; intptr_t ___delegate_trampoline_4; intptr_t ___extra_arg_5; intptr_t ___method_code_6; MethodInfo_t * ___method_info_7; MethodInfo_t * ___original_method_info_8; DelegateData_t1BF9F691B56DAE5F8C28C5E084FDE94F15F27BBE * ___data_9; int32_t ___method_is_virtual_10; }; #endif // DELEGATE_T_H #ifndef SPECIALFOLDER_T5A2C2AE97BD6C2DF95061C8904B2225228AC9BA0_H #define SPECIALFOLDER_T5A2C2AE97BD6C2DF95061C8904B2225228AC9BA0_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Environment_SpecialFolder struct SpecialFolder_t5A2C2AE97BD6C2DF95061C8904B2225228AC9BA0 { public: // System.Int32 System.Environment_SpecialFolder::value__ int32_t ___value___2; public: inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(SpecialFolder_t5A2C2AE97BD6C2DF95061C8904B2225228AC9BA0, ___value___2)); } inline int32_t get_value___2() const { return ___value___2; } inline int32_t* get_address_of_value___2() { return &___value___2; } inline void set_value___2(int32_t value) { ___value___2 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // SPECIALFOLDER_T5A2C2AE97BD6C2DF95061C8904B2225228AC9BA0_H #ifndef SPECIALFOLDEROPTION_TAF2DB60F447738C1E46C3D5660A0CBB0F4480470_H #define SPECIALFOLDEROPTION_TAF2DB60F447738C1E46C3D5660A0CBB0F4480470_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Environment_SpecialFolderOption struct SpecialFolderOption_tAF2DB60F447738C1E46C3D5660A0CBB0F4480470 { public: // System.Int32 System.Environment_SpecialFolderOption::value__ int32_t ___value___2; public: inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(SpecialFolderOption_tAF2DB60F447738C1E46C3D5660A0CBB0F4480470, ___value___2)); } inline int32_t get_value___2() const { return ___value___2; } inline int32_t* get_address_of_value___2() { return &___value___2; } inline void set_value___2(int32_t value) { ___value___2 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // SPECIALFOLDEROPTION_TAF2DB60F447738C1E46C3D5660A0CBB0F4480470_H #ifndef EXCEPTIONARGUMENT_TE4C1E083DC891ECF9688A8A0C62D7F7841057B14_H #define EXCEPTIONARGUMENT_TE4C1E083DC891ECF9688A8A0C62D7F7841057B14_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.ExceptionArgument struct ExceptionArgument_tE4C1E083DC891ECF9688A8A0C62D7F7841057B14 { public: // System.Int32 System.ExceptionArgument::value__ int32_t ___value___2; public: inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(ExceptionArgument_tE4C1E083DC891ECF9688A8A0C62D7F7841057B14, ___value___2)); } inline int32_t get_value___2() const { return ___value___2; } inline int32_t* get_address_of_value___2() { return &___value___2; } inline void set_value___2(int32_t value) { ___value___2 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // EXCEPTIONARGUMENT_TE4C1E083DC891ECF9688A8A0C62D7F7841057B14_H #ifndef EXCEPTIONRESOURCE_T897ACCB868BF3CAAC00AB0C00D57D7A2B6C7586A_H #define EXCEPTIONRESOURCE_T897ACCB868BF3CAAC00AB0C00D57D7A2B6C7586A_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.ExceptionResource struct ExceptionResource_t897ACCB868BF3CAAC00AB0C00D57D7A2B6C7586A { public: // System.Int32 System.ExceptionResource::value__ int32_t ___value___2; public: inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(ExceptionResource_t897ACCB868BF3CAAC00AB0C00D57D7A2B6C7586A, ___value___2)); } inline int32_t get_value___2() const { return ___value___2; } inline int32_t* get_address_of_value___2() { return &___value___2; } inline void set_value___2(int32_t value) { ___value___2 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // EXCEPTIONRESOURCE_T897ACCB868BF3CAAC00AB0C00D57D7A2B6C7586A_H #ifndef COMPAREOPTIONS_T163DCEA9A0972750294CC1A8348E5CA69E943939_H #define COMPAREOPTIONS_T163DCEA9A0972750294CC1A8348E5CA69E943939_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Globalization.CompareOptions struct CompareOptions_t163DCEA9A0972750294CC1A8348E5CA69E943939 { public: // System.Int32 System.Globalization.CompareOptions::value__ int32_t ___value___2; public: inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(CompareOptions_t163DCEA9A0972750294CC1A8348E5CA69E943939, ___value___2)); } inline int32_t get_value___2() const { return ___value___2; } inline int32_t* get_address_of_value___2() { return &___value___2; } inline void set_value___2(int32_t value) { ___value___2 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // COMPAREOPTIONS_T163DCEA9A0972750294CC1A8348E5CA69E943939_H #ifndef INDEXOUTOFRANGEEXCEPTION_TEC7665FC66525AB6A6916A7EB505E5591683F0CF_H #define INDEXOUTOFRANGEEXCEPTION_TEC7665FC66525AB6A6916A7EB505E5591683F0CF_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.IndexOutOfRangeException struct IndexOutOfRangeException_tEC7665FC66525AB6A6916A7EB505E5591683F0CF : public SystemException_t5380468142AA850BE4A341D7AF3EAB9C78746782 { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // INDEXOUTOFRANGEEXCEPTION_TEC7665FC66525AB6A6916A7EB505E5591683F0CF_H #ifndef INVALIDCASTEXCEPTION_T91DF9E7D7FCCDA6C562CB4A9A18903E016680FDA_H #define INVALIDCASTEXCEPTION_T91DF9E7D7FCCDA6C562CB4A9A18903E016680FDA_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.InvalidCastException struct InvalidCastException_t91DF9E7D7FCCDA6C562CB4A9A18903E016680FDA : public SystemException_t5380468142AA850BE4A341D7AF3EAB9C78746782 { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // INVALIDCASTEXCEPTION_T91DF9E7D7FCCDA6C562CB4A9A18903E016680FDA_H #ifndef INVALIDOPERATIONEXCEPTION_T0530E734D823F78310CAFAFA424CA5164D93A1F1_H #define INVALIDOPERATIONEXCEPTION_T0530E734D823F78310CAFAFA424CA5164D93A1F1_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.InvalidOperationException struct InvalidOperationException_t0530E734D823F78310CAFAFA424CA5164D93A1F1 : public SystemException_t5380468142AA850BE4A341D7AF3EAB9C78746782 { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // INVALIDOPERATIONEXCEPTION_T0530E734D823F78310CAFAFA424CA5164D93A1F1_H #ifndef INVALIDPROGRAMEXCEPTION_TF3B9678AC1136E8FA85EE6F0069D39578DECB358_H #define INVALIDPROGRAMEXCEPTION_TF3B9678AC1136E8FA85EE6F0069D39578DECB358_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.InvalidProgramException struct InvalidProgramException_tF3B9678AC1136E8FA85EE6F0069D39578DECB358 : public SystemException_t5380468142AA850BE4A341D7AF3EAB9C78746782 { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // INVALIDPROGRAMEXCEPTION_TF3B9678AC1136E8FA85EE6F0069D39578DECB358_H #ifndef MEMBERACCESSEXCEPTION_TDA869AFFB4FC1EA0EEF3143D85999710AC4774F0_H #define MEMBERACCESSEXCEPTION_TDA869AFFB4FC1EA0EEF3143D85999710AC4774F0_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.MemberAccessException struct MemberAccessException_tDA869AFFB4FC1EA0EEF3143D85999710AC4774F0 : public SystemException_t5380468142AA850BE4A341D7AF3EAB9C78746782 { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // MEMBERACCESSEXCEPTION_TDA869AFFB4FC1EA0EEF3143D85999710AC4774F0_H #ifndef MULTICASTNOTSUPPORTEDEXCEPTION_TDAC3C31B20ACDAE95C396052199B385C00C41211_H #define MULTICASTNOTSUPPORTEDEXCEPTION_TDAC3C31B20ACDAE95C396052199B385C00C41211_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.MulticastNotSupportedException struct MulticastNotSupportedException_tDAC3C31B20ACDAE95C396052199B385C00C41211 : public SystemException_t5380468142AA850BE4A341D7AF3EAB9C78746782 { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // MULTICASTNOTSUPPORTEDEXCEPTION_TDAC3C31B20ACDAE95C396052199B385C00C41211_H #ifndef NOTIMPLEMENTEDEXCEPTION_T8AD6EBE5FEDB0AEBECEE0961CF73C35B372EFFA4_H #define NOTIMPLEMENTEDEXCEPTION_T8AD6EBE5FEDB0AEBECEE0961CF73C35B372EFFA4_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.NotImplementedException struct NotImplementedException_t8AD6EBE5FEDB0AEBECEE0961CF73C35B372EFFA4 : public SystemException_t5380468142AA850BE4A341D7AF3EAB9C78746782 { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // NOTIMPLEMENTEDEXCEPTION_T8AD6EBE5FEDB0AEBECEE0961CF73C35B372EFFA4_H #ifndef NOTSUPPORTEDEXCEPTION_TE75B318D6590A02A5D9B29FD97409B1750FA0010_H #define NOTSUPPORTEDEXCEPTION_TE75B318D6590A02A5D9B29FD97409B1750FA0010_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.NotSupportedException struct NotSupportedException_tE75B318D6590A02A5D9B29FD97409B1750FA0010 : public SystemException_t5380468142AA850BE4A341D7AF3EAB9C78746782 { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // NOTSUPPORTEDEXCEPTION_TE75B318D6590A02A5D9B29FD97409B1750FA0010_H #ifndef NULLREFERENCEEXCEPTION_T204B194BC4DDA3259AF5A8633EA248AE5977ABDC_H #define NULLREFERENCEEXCEPTION_T204B194BC4DDA3259AF5A8633EA248AE5977ABDC_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.NullReferenceException struct NullReferenceException_t204B194BC4DDA3259AF5A8633EA248AE5977ABDC : public SystemException_t5380468142AA850BE4A341D7AF3EAB9C78746782 { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // NULLREFERENCEEXCEPTION_T204B194BC4DDA3259AF5A8633EA248AE5977ABDC_H #ifndef OPERATIONCANCELEDEXCEPTION_TD28B1AE59ACCE4D46333BFE398395B8D75D76A90_H #define OPERATIONCANCELEDEXCEPTION_TD28B1AE59ACCE4D46333BFE398395B8D75D76A90_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.OperationCanceledException struct OperationCanceledException_tD28B1AE59ACCE4D46333BFE398395B8D75D76A90 : public SystemException_t5380468142AA850BE4A341D7AF3EAB9C78746782 { public: // System.Threading.CancellationToken System.OperationCanceledException::_cancellationToken CancellationToken_t9E956952F7F20908F2AE72EDF36D97E6C7DB63AB ____cancellationToken_17; public: inline static int32_t get_offset_of__cancellationToken_17() { return static_cast<int32_t>(offsetof(OperationCanceledException_tD28B1AE59ACCE4D46333BFE398395B8D75D76A90, ____cancellationToken_17)); } inline CancellationToken_t9E956952F7F20908F2AE72EDF36D97E6C7DB63AB get__cancellationToken_17() const { return ____cancellationToken_17; } inline CancellationToken_t9E956952F7F20908F2AE72EDF36D97E6C7DB63AB * get_address_of__cancellationToken_17() { return &____cancellationToken_17; } inline void set__cancellationToken_17(CancellationToken_t9E956952F7F20908F2AE72EDF36D97E6C7DB63AB value) { ____cancellationToken_17 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // OPERATIONCANCELEDEXCEPTION_TD28B1AE59ACCE4D46333BFE398395B8D75D76A90_H #ifndef OUTOFMEMORYEXCEPTION_T2DF3EAC178583BD1DEFAAECBEDB2AF1EA86FBFC7_H #define OUTOFMEMORYEXCEPTION_T2DF3EAC178583BD1DEFAAECBEDB2AF1EA86FBFC7_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.OutOfMemoryException struct OutOfMemoryException_t2DF3EAC178583BD1DEFAAECBEDB2AF1EA86FBFC7 : public SystemException_t5380468142AA850BE4A341D7AF3EAB9C78746782 { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // OUTOFMEMORYEXCEPTION_T2DF3EAC178583BD1DEFAAECBEDB2AF1EA86FBFC7_H #ifndef RANKEXCEPTION_T85F27ECAFB95F8FC0E72E5EA676169A3CE9B4B6F_H #define RANKEXCEPTION_T85F27ECAFB95F8FC0E72E5EA676169A3CE9B4B6F_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.RankException struct RankException_t85F27ECAFB95F8FC0E72E5EA676169A3CE9B4B6F : public SystemException_t5380468142AA850BE4A341D7AF3EAB9C78746782 { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // RANKEXCEPTION_T85F27ECAFB95F8FC0E72E5EA676169A3CE9B4B6F_H #ifndef BINDINGFLAGS_TE35C91D046E63A1B92BB9AB909FCF9DA84379ED0_H #define BINDINGFLAGS_TE35C91D046E63A1B92BB9AB909FCF9DA84379ED0_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Reflection.BindingFlags struct BindingFlags_tE35C91D046E63A1B92BB9AB909FCF9DA84379ED0 { public: // System.Int32 System.Reflection.BindingFlags::value__ int32_t ___value___2; public: inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(BindingFlags_tE35C91D046E63A1B92BB9AB909FCF9DA84379ED0, ___value___2)); } inline int32_t get_value___2() const { return ___value___2; } inline int32_t* get_address_of_value___2() { return &___value___2; } inline void set_value___2(int32_t value) { ___value___2 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // BINDINGFLAGS_TE35C91D046E63A1B92BB9AB909FCF9DA84379ED0_H #ifndef MEMBERLISTTYPE_TD77EECAE81FBFC68FD3A772FDBF75C478329C5AF_H #define MEMBERLISTTYPE_TD77EECAE81FBFC68FD3A772FDBF75C478329C5AF_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.RuntimeType_MemberListType struct MemberListType_tD77EECAE81FBFC68FD3A772FDBF75C478329C5AF { public: // System.Int32 System.RuntimeType_MemberListType::value__ int32_t ___value___2; public: inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(MemberListType_tD77EECAE81FBFC68FD3A772FDBF75C478329C5AF, ___value___2)); } inline int32_t get_value___2() const { return ___value___2; } inline int32_t* get_address_of_value___2() { return &___value___2; } inline void set_value___2(int32_t value) { ___value___2 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // MEMBERLISTTYPE_TD77EECAE81FBFC68FD3A772FDBF75C478329C5AF_H #ifndef RUNTIMETYPEHANDLE_T7B542280A22F0EC4EAC2061C29178845847A8B2D_H #define RUNTIMETYPEHANDLE_T7B542280A22F0EC4EAC2061C29178845847A8B2D_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.RuntimeTypeHandle struct RuntimeTypeHandle_t7B542280A22F0EC4EAC2061C29178845847A8B2D { public: // System.IntPtr System.RuntimeTypeHandle::value intptr_t ___value_0; public: inline static int32_t get_offset_of_value_0() { return static_cast<int32_t>(offsetof(RuntimeTypeHandle_t7B542280A22F0EC4EAC2061C29178845847A8B2D, ___value_0)); } inline intptr_t get_value_0() const { return ___value_0; } inline intptr_t* get_address_of_value_0() { return &___value_0; } inline void set_value_0(intptr_t value) { ___value_0 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // RUNTIMETYPEHANDLE_T7B542280A22F0EC4EAC2061C29178845847A8B2D_H #ifndef STACKOVERFLOWEXCEPTION_T8F10DDD924B10951FCA8CC166684A13DC6C7BFDC_H #define STACKOVERFLOWEXCEPTION_T8F10DDD924B10951FCA8CC166684A13DC6C7BFDC_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.StackOverflowException struct StackOverflowException_t8F10DDD924B10951FCA8CC166684A13DC6C7BFDC : public SystemException_t5380468142AA850BE4A341D7AF3EAB9C78746782 { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // STACKOVERFLOWEXCEPTION_T8F10DDD924B10951FCA8CC166684A13DC6C7BFDC_H #ifndef STRINGSPLITOPTIONS_T2FA287E15325CC78BF3CA5CDAAA3520BFBD58487_H #define STRINGSPLITOPTIONS_T2FA287E15325CC78BF3CA5CDAAA3520BFBD58487_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.StringSplitOptions struct StringSplitOptions_t2FA287E15325CC78BF3CA5CDAAA3520BFBD58487 { public: // System.Int32 System.StringSplitOptions::value__ int32_t ___value___2; public: inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(StringSplitOptions_t2FA287E15325CC78BF3CA5CDAAA3520BFBD58487, ___value___2)); } inline int32_t get_value___2() const { return ___value___2; } inline int32_t* get_address_of_value___2() { return &___value___2; } inline void set_value___2(int32_t value) { ___value___2 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // STRINGSPLITOPTIONS_T2FA287E15325CC78BF3CA5CDAAA3520BFBD58487_H #ifndef TIMESPAN_TA8069278ACE8A74D6DF7D514A9CD4432433F64C4_H #define TIMESPAN_TA8069278ACE8A74D6DF7D514A9CD4432433F64C4_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.TimeSpan struct TimeSpan_tA8069278ACE8A74D6DF7D514A9CD4432433F64C4 { public: // System.Int64 System.TimeSpan::_ticks int64_t ____ticks_3; public: inline static int32_t get_offset_of__ticks_3() { return static_cast<int32_t>(offsetof(TimeSpan_tA8069278ACE8A74D6DF7D514A9CD4432433F64C4, ____ticks_3)); } inline int64_t get__ticks_3() const { return ____ticks_3; } inline int64_t* get_address_of__ticks_3() { return &____ticks_3; } inline void set__ticks_3(int64_t value) { ____ticks_3 = value; } }; struct TimeSpan_tA8069278ACE8A74D6DF7D514A9CD4432433F64C4_StaticFields { public: // System.TimeSpan System.TimeSpan::Zero TimeSpan_tA8069278ACE8A74D6DF7D514A9CD4432433F64C4 ___Zero_0; // System.TimeSpan System.TimeSpan::MaxValue TimeSpan_tA8069278ACE8A74D6DF7D514A9CD4432433F64C4 ___MaxValue_1; // System.TimeSpan System.TimeSpan::MinValue TimeSpan_tA8069278ACE8A74D6DF7D514A9CD4432433F64C4 ___MinValue_2; // System.Boolean modreq(System.Runtime.CompilerServices.IsVolatile) System.TimeSpan::_legacyConfigChecked bool ____legacyConfigChecked_4; // System.Boolean modreq(System.Runtime.CompilerServices.IsVolatile) System.TimeSpan::_legacyMode bool ____legacyMode_5; public: inline static int32_t get_offset_of_Zero_0() { return static_cast<int32_t>(offsetof(TimeSpan_tA8069278ACE8A74D6DF7D514A9CD4432433F64C4_StaticFields, ___Zero_0)); } inline TimeSpan_tA8069278ACE8A74D6DF7D514A9CD4432433F64C4 get_Zero_0() const { return ___Zero_0; } inline TimeSpan_tA8069278ACE8A74D6DF7D514A9CD4432433F64C4 * get_address_of_Zero_0() { return &___Zero_0; } inline void set_Zero_0(TimeSpan_tA8069278ACE8A74D6DF7D514A9CD4432433F64C4 value) { ___Zero_0 = value; } inline static int32_t get_offset_of_MaxValue_1() { return static_cast<int32_t>(offsetof(TimeSpan_tA8069278ACE8A74D6DF7D514A9CD4432433F64C4_StaticFields, ___MaxValue_1)); } inline TimeSpan_tA8069278ACE8A74D6DF7D514A9CD4432433F64C4 get_MaxValue_1() const { return ___MaxValue_1; } inline TimeSpan_tA8069278ACE8A74D6DF7D514A9CD4432433F64C4 * get_address_of_MaxValue_1() { return &___MaxValue_1; } inline void set_MaxValue_1(TimeSpan_tA8069278ACE8A74D6DF7D514A9CD4432433F64C4 value) { ___MaxValue_1 = value; } inline static int32_t get_offset_of_MinValue_2() { return static_cast<int32_t>(offsetof(TimeSpan_tA8069278ACE8A74D6DF7D514A9CD4432433F64C4_StaticFields, ___MinValue_2)); } inline TimeSpan_tA8069278ACE8A74D6DF7D514A9CD4432433F64C4 get_MinValue_2() const { return ___MinValue_2; } inline TimeSpan_tA8069278ACE8A74D6DF7D514A9CD4432433F64C4 * get_address_of_MinValue_2() { return &___MinValue_2; } inline void set_MinValue_2(TimeSpan_tA8069278ACE8A74D6DF7D514A9CD4432433F64C4 value) { ___MinValue_2 = value; } inline static int32_t get_offset_of__legacyConfigChecked_4() { return static_cast<int32_t>(offsetof(TimeSpan_tA8069278ACE8A74D6DF7D514A9CD4432433F64C4_StaticFields, ____legacyConfigChecked_4)); } inline bool get__legacyConfigChecked_4() const { return ____legacyConfigChecked_4; } inline bool* get_address_of__legacyConfigChecked_4() { return &____legacyConfigChecked_4; } inline void set__legacyConfigChecked_4(bool value) { ____legacyConfigChecked_4 = value; } inline static int32_t get_offset_of__legacyMode_5() { return static_cast<int32_t>(offsetof(TimeSpan_tA8069278ACE8A74D6DF7D514A9CD4432433F64C4_StaticFields, ____legacyMode_5)); } inline bool get__legacyMode_5() const { return ____legacyMode_5; } inline bool* get_address_of__legacyMode_5() { return &____legacyMode_5; } inline void set__legacyMode_5(bool value) { ____legacyMode_5 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // TIMESPAN_TA8069278ACE8A74D6DF7D514A9CD4432433F64C4_H #ifndef TIME_ZONE_INFORMATION_TE8C6F24D5D50D01E03E52B00DDF74849F3DE9811_H #define TIME_ZONE_INFORMATION_TE8C6F24D5D50D01E03E52B00DDF74849F3DE9811_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.TimeZoneInfo_TIME_ZONE_INFORMATION struct TIME_ZONE_INFORMATION_tE8C6F24D5D50D01E03E52B00DDF74849F3DE9811 { public: // System.Int32 System.TimeZoneInfo_TIME_ZONE_INFORMATION::Bias int32_t ___Bias_0; // System.String System.TimeZoneInfo_TIME_ZONE_INFORMATION::StandardName String_t* ___StandardName_1; // System.TimeZoneInfo_SYSTEMTIME System.TimeZoneInfo_TIME_ZONE_INFORMATION::StandardDate SYSTEMTIME_tB7F532B6AEC26D9270A30C57600C31F2622DF7A2 ___StandardDate_2; // System.Int32 System.TimeZoneInfo_TIME_ZONE_INFORMATION::StandardBias int32_t ___StandardBias_3; // System.String System.TimeZoneInfo_TIME_ZONE_INFORMATION::DaylightName String_t* ___DaylightName_4; // System.TimeZoneInfo_SYSTEMTIME System.TimeZoneInfo_TIME_ZONE_INFORMATION::DaylightDate SYSTEMTIME_tB7F532B6AEC26D9270A30C57600C31F2622DF7A2 ___DaylightDate_5; // System.Int32 System.TimeZoneInfo_TIME_ZONE_INFORMATION::DaylightBias int32_t ___DaylightBias_6; public: inline static int32_t get_offset_of_Bias_0() { return static_cast<int32_t>(offsetof(TIME_ZONE_INFORMATION_tE8C6F24D5D50D01E03E52B00DDF74849F3DE9811, ___Bias_0)); } inline int32_t get_Bias_0() const { return ___Bias_0; } inline int32_t* get_address_of_Bias_0() { return &___Bias_0; } inline void set_Bias_0(int32_t value) { ___Bias_0 = value; } inline static int32_t get_offset_of_StandardName_1() { return static_cast<int32_t>(offsetof(TIME_ZONE_INFORMATION_tE8C6F24D5D50D01E03E52B00DDF74849F3DE9811, ___StandardName_1)); } inline String_t* get_StandardName_1() const { return ___StandardName_1; } inline String_t** get_address_of_StandardName_1() { return &___StandardName_1; } inline void set_StandardName_1(String_t* value) { ___StandardName_1 = value; Il2CppCodeGenWriteBarrier((&___StandardName_1), value); } inline static int32_t get_offset_of_StandardDate_2() { return static_cast<int32_t>(offsetof(TIME_ZONE_INFORMATION_tE8C6F24D5D50D01E03E52B00DDF74849F3DE9811, ___StandardDate_2)); } inline SYSTEMTIME_tB7F532B6AEC26D9270A30C57600C31F2622DF7A2 get_StandardDate_2() const { return ___StandardDate_2; } inline SYSTEMTIME_tB7F532B6AEC26D9270A30C57600C31F2622DF7A2 * get_address_of_StandardDate_2() { return &___StandardDate_2; } inline void set_StandardDate_2(SYSTEMTIME_tB7F532B6AEC26D9270A30C57600C31F2622DF7A2 value) { ___StandardDate_2 = value; } inline static int32_t get_offset_of_StandardBias_3() { return static_cast<int32_t>(offsetof(TIME_ZONE_INFORMATION_tE8C6F24D5D50D01E03E52B00DDF74849F3DE9811, ___StandardBias_3)); } inline int32_t get_StandardBias_3() const { return ___StandardBias_3; } inline int32_t* get_address_of_StandardBias_3() { return &___StandardBias_3; } inline void set_StandardBias_3(int32_t value) { ___StandardBias_3 = value; } inline static int32_t get_offset_of_DaylightName_4() { return static_cast<int32_t>(offsetof(TIME_ZONE_INFORMATION_tE8C6F24D5D50D01E03E52B00DDF74849F3DE9811, ___DaylightName_4)); } inline String_t* get_DaylightName_4() const { return ___DaylightName_4; } inline String_t** get_address_of_DaylightName_4() { return &___DaylightName_4; } inline void set_DaylightName_4(String_t* value) { ___DaylightName_4 = value; Il2CppCodeGenWriteBarrier((&___DaylightName_4), value); } inline static int32_t get_offset_of_DaylightDate_5() { return static_cast<int32_t>(offsetof(TIME_ZONE_INFORMATION_tE8C6F24D5D50D01E03E52B00DDF74849F3DE9811, ___DaylightDate_5)); } inline SYSTEMTIME_tB7F532B6AEC26D9270A30C57600C31F2622DF7A2 get_DaylightDate_5() const { return ___DaylightDate_5; } inline SYSTEMTIME_tB7F532B6AEC26D9270A30C57600C31F2622DF7A2 * get_address_of_DaylightDate_5() { return &___DaylightDate_5; } inline void set_DaylightDate_5(SYSTEMTIME_tB7F532B6AEC26D9270A30C57600C31F2622DF7A2 value) { ___DaylightDate_5 = value; } inline static int32_t get_offset_of_DaylightBias_6() { return static_cast<int32_t>(offsetof(TIME_ZONE_INFORMATION_tE8C6F24D5D50D01E03E52B00DDF74849F3DE9811, ___DaylightBias_6)); } inline int32_t get_DaylightBias_6() const { return ___DaylightBias_6; } inline int32_t* get_address_of_DaylightBias_6() { return &___DaylightBias_6; } inline void set_DaylightBias_6(int32_t value) { ___DaylightBias_6 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif // Native definition for P/Invoke marshalling of System.TimeZoneInfo/TIME_ZONE_INFORMATION struct TIME_ZONE_INFORMATION_tE8C6F24D5D50D01E03E52B00DDF74849F3DE9811_marshaled_pinvoke { int32_t ___Bias_0; Il2CppChar ___StandardName_1[32]; SYSTEMTIME_tB7F532B6AEC26D9270A30C57600C31F2622DF7A2 ___StandardDate_2; int32_t ___StandardBias_3; Il2CppChar ___DaylightName_4[32]; SYSTEMTIME_tB7F532B6AEC26D9270A30C57600C31F2622DF7A2 ___DaylightDate_5; int32_t ___DaylightBias_6; }; // Native definition for COM marshalling of System.TimeZoneInfo/TIME_ZONE_INFORMATION struct TIME_ZONE_INFORMATION_tE8C6F24D5D50D01E03E52B00DDF74849F3DE9811_marshaled_com { int32_t ___Bias_0; Il2CppChar ___StandardName_1[32]; SYSTEMTIME_tB7F532B6AEC26D9270A30C57600C31F2622DF7A2 ___StandardDate_2; int32_t ___StandardBias_3; Il2CppChar ___DaylightName_4[32]; SYSTEMTIME_tB7F532B6AEC26D9270A30C57600C31F2622DF7A2 ___DaylightDate_5; int32_t ___DaylightBias_6; }; #endif // TIME_ZONE_INFORMATION_TE8C6F24D5D50D01E03E52B00DDF74849F3DE9811_H #ifndef TIMEZONEINFOOPTIONS_T123D8B5A23D3DE107FB9D3A29BF5952895C652EE_H #define TIMEZONEINFOOPTIONS_T123D8B5A23D3DE107FB9D3A29BF5952895C652EE_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.TimeZoneInfoOptions struct TimeZoneInfoOptions_t123D8B5A23D3DE107FB9D3A29BF5952895C652EE { public: // System.Int32 System.TimeZoneInfoOptions::value__ int32_t ___value___2; public: inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(TimeZoneInfoOptions_t123D8B5A23D3DE107FB9D3A29BF5952895C652EE, ___value___2)); } inline int32_t get_value___2() const { return ___value___2; } inline int32_t* get_address_of_value___2() { return &___value___2; } inline void set_value___2(int32_t value) { ___value___2 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // TIMEZONEINFOOPTIONS_T123D8B5A23D3DE107FB9D3A29BF5952895C652EE_H #ifndef TYPEINITIALIZATIONEXCEPTION_T5223A07113C97D6DC875A82C68D4C132737ADEAE_H #define TYPEINITIALIZATIONEXCEPTION_T5223A07113C97D6DC875A82C68D4C132737ADEAE_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.TypeInitializationException struct TypeInitializationException_t5223A07113C97D6DC875A82C68D4C132737ADEAE : public SystemException_t5380468142AA850BE4A341D7AF3EAB9C78746782 { public: // System.String System.TypeInitializationException::_typeName String_t* ____typeName_17; public: inline static int32_t get_offset_of__typeName_17() { return static_cast<int32_t>(offsetof(TypeInitializationException_t5223A07113C97D6DC875A82C68D4C132737ADEAE, ____typeName_17)); } inline String_t* get__typeName_17() const { return ____typeName_17; } inline String_t** get_address_of__typeName_17() { return &____typeName_17; } inline void set__typeName_17(String_t* value) { ____typeName_17 = value; Il2CppCodeGenWriteBarrier((&____typeName_17), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // TYPEINITIALIZATIONEXCEPTION_T5223A07113C97D6DC875A82C68D4C132737ADEAE_H #ifndef TYPELOADEXCEPTION_T510963B29CB27C6EA3ACDF5FB76E72E1BC372CD1_H #define TYPELOADEXCEPTION_T510963B29CB27C6EA3ACDF5FB76E72E1BC372CD1_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.TypeLoadException struct TypeLoadException_t510963B29CB27C6EA3ACDF5FB76E72E1BC372CD1 : public SystemException_t5380468142AA850BE4A341D7AF3EAB9C78746782 { public: // System.String System.TypeLoadException::ClassName String_t* ___ClassName_17; // System.String System.TypeLoadException::AssemblyName String_t* ___AssemblyName_18; // System.String System.TypeLoadException::MessageArg String_t* ___MessageArg_19; // System.Int32 System.TypeLoadException::ResourceId int32_t ___ResourceId_20; public: inline static int32_t get_offset_of_ClassName_17() { return static_cast<int32_t>(offsetof(TypeLoadException_t510963B29CB27C6EA3ACDF5FB76E72E1BC372CD1, ___ClassName_17)); } inline String_t* get_ClassName_17() const { return ___ClassName_17; } inline String_t** get_address_of_ClassName_17() { return &___ClassName_17; } inline void set_ClassName_17(String_t* value) { ___ClassName_17 = value; Il2CppCodeGenWriteBarrier((&___ClassName_17), value); } inline static int32_t get_offset_of_AssemblyName_18() { return static_cast<int32_t>(offsetof(TypeLoadException_t510963B29CB27C6EA3ACDF5FB76E72E1BC372CD1, ___AssemblyName_18)); } inline String_t* get_AssemblyName_18() const { return ___AssemblyName_18; } inline String_t** get_address_of_AssemblyName_18() { return &___AssemblyName_18; } inline void set_AssemblyName_18(String_t* value) { ___AssemblyName_18 = value; Il2CppCodeGenWriteBarrier((&___AssemblyName_18), value); } inline static int32_t get_offset_of_MessageArg_19() { return static_cast<int32_t>(offsetof(TypeLoadException_t510963B29CB27C6EA3ACDF5FB76E72E1BC372CD1, ___MessageArg_19)); } inline String_t* get_MessageArg_19() const { return ___MessageArg_19; } inline String_t** get_address_of_MessageArg_19() { return &___MessageArg_19; } inline void set_MessageArg_19(String_t* value) { ___MessageArg_19 = value; Il2CppCodeGenWriteBarrier((&___MessageArg_19), value); } inline static int32_t get_offset_of_ResourceId_20() { return static_cast<int32_t>(offsetof(TypeLoadException_t510963B29CB27C6EA3ACDF5FB76E72E1BC372CD1, ___ResourceId_20)); } inline int32_t get_ResourceId_20() const { return ___ResourceId_20; } inline int32_t* get_address_of_ResourceId_20() { return &___ResourceId_20; } inline void set_ResourceId_20(int32_t value) { ___ResourceId_20 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // TYPELOADEXCEPTION_T510963B29CB27C6EA3ACDF5FB76E72E1BC372CD1_H #ifndef TYPENAMEFORMATFLAGS_TDAD267AC4A655D16C608DD230B5C97F8226E94C8_H #define TYPENAMEFORMATFLAGS_TDAD267AC4A655D16C608DD230B5C97F8226E94C8_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.TypeNameFormatFlags struct TypeNameFormatFlags_tDAD267AC4A655D16C608DD230B5C97F8226E94C8 { public: // System.Int32 System.TypeNameFormatFlags::value__ int32_t ___value___2; public: inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(TypeNameFormatFlags_tDAD267AC4A655D16C608DD230B5C97F8226E94C8, ___value___2)); } inline int32_t get_value___2() const { return ___value___2; } inline int32_t* get_address_of_value___2() { return &___value___2; } inline void set_value___2(int32_t value) { ___value___2 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // TYPENAMEFORMATFLAGS_TDAD267AC4A655D16C608DD230B5C97F8226E94C8_H #ifndef TYPENAMEKIND_T200043F25E9EACB6294E8B825E5FED441F04C2BF_H #define TYPENAMEKIND_T200043F25E9EACB6294E8B825E5FED441F04C2BF_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.TypeNameKind struct TypeNameKind_t200043F25E9EACB6294E8B825E5FED441F04C2BF { public: // System.Int32 System.TypeNameKind::value__ int32_t ___value___2; public: inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(TypeNameKind_t200043F25E9EACB6294E8B825E5FED441F04C2BF, ___value___2)); } inline int32_t get_value___2() const { return ___value___2; } inline int32_t* get_address_of_value___2() { return &___value___2; } inline void set_value___2(int32_t value) { ___value___2 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // TYPENAMEKIND_T200043F25E9EACB6294E8B825E5FED441F04C2BF_H #ifndef UNAUTHORIZEDACCESSEXCEPTION_TC2210A745BFDD3AE3559A87A4219E2945EEC9F75_H #define UNAUTHORIZEDACCESSEXCEPTION_TC2210A745BFDD3AE3559A87A4219E2945EEC9F75_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.UnauthorizedAccessException struct UnauthorizedAccessException_tC2210A745BFDD3AE3559A87A4219E2945EEC9F75 : public SystemException_t5380468142AA850BE4A341D7AF3EAB9C78746782 { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // UNAUTHORIZEDACCESSEXCEPTION_TC2210A745BFDD3AE3559A87A4219E2945EEC9F75_H #ifndef PARSEFAILUREKIND_T0E37E87ACF3E01D5D2846A114AE9247C2C7DC3E8_H #define PARSEFAILUREKIND_T0E37E87ACF3E01D5D2846A114AE9247C2C7DC3E8_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Version_ParseFailureKind struct ParseFailureKind_t0E37E87ACF3E01D5D2846A114AE9247C2C7DC3E8 { public: // System.Int32 System.Version_ParseFailureKind::value__ int32_t ___value___2; public: inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(ParseFailureKind_t0E37E87ACF3E01D5D2846A114AE9247C2C7DC3E8, ___value___2)); } inline int32_t get_value___2() const { return ___value___2; } inline int32_t* get_address_of_value___2() { return &___value___2; } inline void set_value___2(int32_t value) { ___value___2 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // PARSEFAILUREKIND_T0E37E87ACF3E01D5D2846A114AE9247C2C7DC3E8_H #ifndef CULTUREAWARECOMPARER_TFCEC16B02A638A8DFF49C7C8C507A6A889C8E058_H #define CULTUREAWARECOMPARER_TFCEC16B02A638A8DFF49C7C8C507A6A889C8E058_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.CultureAwareComparer struct CultureAwareComparer_tFCEC16B02A638A8DFF49C7C8C507A6A889C8E058 : public StringComparer_t588BC7FEF85D6E7425E0A8147A3D5A334F1F82DE { public: // System.Globalization.CompareInfo System.CultureAwareComparer::_compareInfo CompareInfo_tB9A071DBC11AC00AF2EA2066D0C2AE1DCB1865D1 * ____compareInfo_4; // System.Boolean System.CultureAwareComparer::_ignoreCase bool ____ignoreCase_5; // System.Globalization.CompareOptions System.CultureAwareComparer::_options int32_t ____options_6; public: inline static int32_t get_offset_of__compareInfo_4() { return static_cast<int32_t>(offsetof(CultureAwareComparer_tFCEC16B02A638A8DFF49C7C8C507A6A889C8E058, ____compareInfo_4)); } inline CompareInfo_tB9A071DBC11AC00AF2EA2066D0C2AE1DCB1865D1 * get__compareInfo_4() const { return ____compareInfo_4; } inline CompareInfo_tB9A071DBC11AC00AF2EA2066D0C2AE1DCB1865D1 ** get_address_of__compareInfo_4() { return &____compareInfo_4; } inline void set__compareInfo_4(CompareInfo_tB9A071DBC11AC00AF2EA2066D0C2AE1DCB1865D1 * value) { ____compareInfo_4 = value; Il2CppCodeGenWriteBarrier((&____compareInfo_4), value); } inline static int32_t get_offset_of__ignoreCase_5() { return static_cast<int32_t>(offsetof(CultureAwareComparer_tFCEC16B02A638A8DFF49C7C8C507A6A889C8E058, ____ignoreCase_5)); } inline bool get__ignoreCase_5() const { return ____ignoreCase_5; } inline bool* get_address_of__ignoreCase_5() { return &____ignoreCase_5; } inline void set__ignoreCase_5(bool value) { ____ignoreCase_5 = value; } inline static int32_t get_offset_of__options_6() { return static_cast<int32_t>(offsetof(CultureAwareComparer_tFCEC16B02A638A8DFF49C7C8C507A6A889C8E058, ____options_6)); } inline int32_t get__options_6() const { return ____options_6; } inline int32_t* get_address_of__options_6() { return &____options_6; } inline void set__options_6(int32_t value) { ____options_6 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // CULTUREAWARECOMPARER_TFCEC16B02A638A8DFF49C7C8C507A6A889C8E058_H #ifndef METHODACCESSEXCEPTION_TD507764699290F19BF6AF6DEE1E0068927E428EB_H #define METHODACCESSEXCEPTION_TD507764699290F19BF6AF6DEE1E0068927E428EB_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.MethodAccessException struct MethodAccessException_tD507764699290F19BF6AF6DEE1E0068927E428EB : public MemberAccessException_tDA869AFFB4FC1EA0EEF3143D85999710AC4774F0 { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // METHODACCESSEXCEPTION_TD507764699290F19BF6AF6DEE1E0068927E428EB_H #ifndef MISSINGMEMBEREXCEPTION_T165349A7E04FC51DAA5C2251C6DCDD2DD60255DD_H #define MISSINGMEMBEREXCEPTION_T165349A7E04FC51DAA5C2251C6DCDD2DD60255DD_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.MissingMemberException struct MissingMemberException_t165349A7E04FC51DAA5C2251C6DCDD2DD60255DD : public MemberAccessException_tDA869AFFB4FC1EA0EEF3143D85999710AC4774F0 { public: // System.String System.MissingMemberException::ClassName String_t* ___ClassName_17; // System.String System.MissingMemberException::MemberName String_t* ___MemberName_18; // System.Byte[] System.MissingMemberException::Signature ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* ___Signature_19; public: inline static int32_t get_offset_of_ClassName_17() { return static_cast<int32_t>(offsetof(MissingMemberException_t165349A7E04FC51DAA5C2251C6DCDD2DD60255DD, ___ClassName_17)); } inline String_t* get_ClassName_17() const { return ___ClassName_17; } inline String_t** get_address_of_ClassName_17() { return &___ClassName_17; } inline void set_ClassName_17(String_t* value) { ___ClassName_17 = value; Il2CppCodeGenWriteBarrier((&___ClassName_17), value); } inline static int32_t get_offset_of_MemberName_18() { return static_cast<int32_t>(offsetof(MissingMemberException_t165349A7E04FC51DAA5C2251C6DCDD2DD60255DD, ___MemberName_18)); } inline String_t* get_MemberName_18() const { return ___MemberName_18; } inline String_t** get_address_of_MemberName_18() { return &___MemberName_18; } inline void set_MemberName_18(String_t* value) { ___MemberName_18 = value; Il2CppCodeGenWriteBarrier((&___MemberName_18), value); } inline static int32_t get_offset_of_Signature_19() { return static_cast<int32_t>(offsetof(MissingMemberException_t165349A7E04FC51DAA5C2251C6DCDD2DD60255DD, ___Signature_19)); } inline ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* get_Signature_19() const { return ___Signature_19; } inline ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821** get_address_of_Signature_19() { return &___Signature_19; } inline void set_Signature_19(ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* value) { ___Signature_19 = value; Il2CppCodeGenWriteBarrier((&___Signature_19), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // MISSINGMEMBEREXCEPTION_T165349A7E04FC51DAA5C2251C6DCDD2DD60255DD_H #ifndef MULTICASTDELEGATE_T_H #define MULTICASTDELEGATE_T_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.MulticastDelegate struct MulticastDelegate_t : public Delegate_t { public: // System.Delegate[] System.MulticastDelegate::delegates DelegateU5BU5D_tDFCDEE2A6322F96C0FE49AF47E9ADB8C4B294E86* ___delegates_11; public: inline static int32_t get_offset_of_delegates_11() { return static_cast<int32_t>(offsetof(MulticastDelegate_t, ___delegates_11)); } inline DelegateU5BU5D_tDFCDEE2A6322F96C0FE49AF47E9ADB8C4B294E86* get_delegates_11() const { return ___delegates_11; } inline DelegateU5BU5D_tDFCDEE2A6322F96C0FE49AF47E9ADB8C4B294E86** get_address_of_delegates_11() { return &___delegates_11; } inline void set_delegates_11(DelegateU5BU5D_tDFCDEE2A6322F96C0FE49AF47E9ADB8C4B294E86* value) { ___delegates_11 = value; Il2CppCodeGenWriteBarrier((&___delegates_11), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif // Native definition for P/Invoke marshalling of System.MulticastDelegate struct MulticastDelegate_t_marshaled_pinvoke : public Delegate_t_marshaled_pinvoke { Delegate_t_marshaled_pinvoke** ___delegates_11; }; // Native definition for COM marshalling of System.MulticastDelegate struct MulticastDelegate_t_marshaled_com : public Delegate_t_marshaled_com { Delegate_t_marshaled_com** ___delegates_11; }; #endif // MULTICASTDELEGATE_T_H #ifndef OBJECTDISPOSEDEXCEPTION_TF68E471ECD1419AD7C51137B742837395F50B69A_H #define OBJECTDISPOSEDEXCEPTION_TF68E471ECD1419AD7C51137B742837395F50B69A_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.ObjectDisposedException struct ObjectDisposedException_tF68E471ECD1419AD7C51137B742837395F50B69A : public InvalidOperationException_t0530E734D823F78310CAFAFA424CA5164D93A1F1 { public: // System.String System.ObjectDisposedException::objectName String_t* ___objectName_17; public: inline static int32_t get_offset_of_objectName_17() { return static_cast<int32_t>(offsetof(ObjectDisposedException_tF68E471ECD1419AD7C51137B742837395F50B69A, ___objectName_17)); } inline String_t* get_objectName_17() const { return ___objectName_17; } inline String_t** get_address_of_objectName_17() { return &___objectName_17; } inline void set_objectName_17(String_t* value) { ___objectName_17 = value; Il2CppCodeGenWriteBarrier((&___objectName_17), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // OBJECTDISPOSEDEXCEPTION_TF68E471ECD1419AD7C51137B742837395F50B69A_H #ifndef OVERFLOWEXCEPTION_TD89571E2350DE06D9DE4AB65ADCA77D607B5693D_H #define OVERFLOWEXCEPTION_TD89571E2350DE06D9DE4AB65ADCA77D607B5693D_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.OverflowException struct OverflowException_tD89571E2350DE06D9DE4AB65ADCA77D607B5693D : public ArithmeticException_tF9EF5FE94597830EF315C5934258F994B8648269 { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // OVERFLOWEXCEPTION_TD89571E2350DE06D9DE4AB65ADCA77D607B5693D_H #ifndef PLATFORMNOTSUPPORTEDEXCEPTION_T14FE109377F8FA8B3B2F9A0C4FE3BF10662C73B5_H #define PLATFORMNOTSUPPORTEDEXCEPTION_T14FE109377F8FA8B3B2F9A0C4FE3BF10662C73B5_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.PlatformNotSupportedException struct PlatformNotSupportedException_t14FE109377F8FA8B3B2F9A0C4FE3BF10662C73B5 : public NotSupportedException_tE75B318D6590A02A5D9B29FD97409B1750FA0010 { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // PLATFORMNOTSUPPORTEDEXCEPTION_T14FE109377F8FA8B3B2F9A0C4FE3BF10662C73B5_H #ifndef TIMEZONEINFO_T46EF9BAEAA787846F1A1EC419BE75CFEFAFF6777_H #define TIMEZONEINFO_T46EF9BAEAA787846F1A1EC419BE75CFEFAFF6777_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.TimeZoneInfo struct TimeZoneInfo_t46EF9BAEAA787846F1A1EC419BE75CFEFAFF6777 : public RuntimeObject { public: // System.TimeSpan System.TimeZoneInfo::baseUtcOffset TimeSpan_tA8069278ACE8A74D6DF7D514A9CD4432433F64C4 ___baseUtcOffset_0; // System.String System.TimeZoneInfo::daylightDisplayName String_t* ___daylightDisplayName_1; // System.String System.TimeZoneInfo::displayName String_t* ___displayName_2; // System.String System.TimeZoneInfo::id String_t* ___id_3; // System.Collections.Generic.List`1<System.Collections.Generic.KeyValuePair`2<System.DateTime,System.TimeType>> System.TimeZoneInfo::transitions List_1_tD2FC74CFEE011F74F31183756A690154468817E9 * ___transitions_5; // System.String System.TimeZoneInfo::standardDisplayName String_t* ___standardDisplayName_7; // System.Boolean System.TimeZoneInfo::supportsDaylightSavingTime bool ___supportsDaylightSavingTime_8; // System.TimeZoneInfo_AdjustmentRule[] System.TimeZoneInfo::adjustmentRules AdjustmentRuleU5BU5D_t1106C3E56412DC2C8D9B745150D35E342A85D8AD* ___adjustmentRules_11; public: inline static int32_t get_offset_of_baseUtcOffset_0() { return static_cast<int32_t>(offsetof(TimeZoneInfo_t46EF9BAEAA787846F1A1EC419BE75CFEFAFF6777, ___baseUtcOffset_0)); } inline TimeSpan_tA8069278ACE8A74D6DF7D514A9CD4432433F64C4 get_baseUtcOffset_0() const { return ___baseUtcOffset_0; } inline TimeSpan_tA8069278ACE8A74D6DF7D514A9CD4432433F64C4 * get_address_of_baseUtcOffset_0() { return &___baseUtcOffset_0; } inline void set_baseUtcOffset_0(TimeSpan_tA8069278ACE8A74D6DF7D514A9CD4432433F64C4 value) { ___baseUtcOffset_0 = value; } inline static int32_t get_offset_of_daylightDisplayName_1() { return static_cast<int32_t>(offsetof(TimeZoneInfo_t46EF9BAEAA787846F1A1EC419BE75CFEFAFF6777, ___daylightDisplayName_1)); } inline String_t* get_daylightDisplayName_1() const { return ___daylightDisplayName_1; } inline String_t** get_address_of_daylightDisplayName_1() { return &___daylightDisplayName_1; } inline void set_daylightDisplayName_1(String_t* value) { ___daylightDisplayName_1 = value; Il2CppCodeGenWriteBarrier((&___daylightDisplayName_1), value); } inline static int32_t get_offset_of_displayName_2() { return static_cast<int32_t>(offsetof(TimeZoneInfo_t46EF9BAEAA787846F1A1EC419BE75CFEFAFF6777, ___displayName_2)); } inline String_t* get_displayName_2() const { return ___displayName_2; } inline String_t** get_address_of_displayName_2() { return &___displayName_2; } inline void set_displayName_2(String_t* value) { ___displayName_2 = value; Il2CppCodeGenWriteBarrier((&___displayName_2), value); } inline static int32_t get_offset_of_id_3() { return static_cast<int32_t>(offsetof(TimeZoneInfo_t46EF9BAEAA787846F1A1EC419BE75CFEFAFF6777, ___id_3)); } inline String_t* get_id_3() const { return ___id_3; } inline String_t** get_address_of_id_3() { return &___id_3; } inline void set_id_3(String_t* value) { ___id_3 = value; Il2CppCodeGenWriteBarrier((&___id_3), value); } inline static int32_t get_offset_of_transitions_5() { return static_cast<int32_t>(offsetof(TimeZoneInfo_t46EF9BAEAA787846F1A1EC419BE75CFEFAFF6777, ___transitions_5)); } inline List_1_tD2FC74CFEE011F74F31183756A690154468817E9 * get_transitions_5() const { return ___transitions_5; } inline List_1_tD2FC74CFEE011F74F31183756A690154468817E9 ** get_address_of_transitions_5() { return &___transitions_5; } inline void set_transitions_5(List_1_tD2FC74CFEE011F74F31183756A690154468817E9 * value) { ___transitions_5 = value; Il2CppCodeGenWriteBarrier((&___transitions_5), value); } inline static int32_t get_offset_of_standardDisplayName_7() { return static_cast<int32_t>(offsetof(TimeZoneInfo_t46EF9BAEAA787846F1A1EC419BE75CFEFAFF6777, ___standardDisplayName_7)); } inline String_t* get_standardDisplayName_7() const { return ___standardDisplayName_7; } inline String_t** get_address_of_standardDisplayName_7() { return &___standardDisplayName_7; } inline void set_standardDisplayName_7(String_t* value) { ___standardDisplayName_7 = value; Il2CppCodeGenWriteBarrier((&___standardDisplayName_7), value); } inline static int32_t get_offset_of_supportsDaylightSavingTime_8() { return static_cast<int32_t>(offsetof(TimeZoneInfo_t46EF9BAEAA787846F1A1EC419BE75CFEFAFF6777, ___supportsDaylightSavingTime_8)); } inline bool get_supportsDaylightSavingTime_8() const { return ___supportsDaylightSavingTime_8; } inline bool* get_address_of_supportsDaylightSavingTime_8() { return &___supportsDaylightSavingTime_8; } inline void set_supportsDaylightSavingTime_8(bool value) { ___supportsDaylightSavingTime_8 = value; } inline static int32_t get_offset_of_adjustmentRules_11() { return static_cast<int32_t>(offsetof(TimeZoneInfo_t46EF9BAEAA787846F1A1EC419BE75CFEFAFF6777, ___adjustmentRules_11)); } inline AdjustmentRuleU5BU5D_t1106C3E56412DC2C8D9B745150D35E342A85D8AD* get_adjustmentRules_11() const { return ___adjustmentRules_11; } inline AdjustmentRuleU5BU5D_t1106C3E56412DC2C8D9B745150D35E342A85D8AD** get_address_of_adjustmentRules_11() { return &___adjustmentRules_11; } inline void set_adjustmentRules_11(AdjustmentRuleU5BU5D_t1106C3E56412DC2C8D9B745150D35E342A85D8AD* value) { ___adjustmentRules_11 = value; Il2CppCodeGenWriteBarrier((&___adjustmentRules_11), value); } }; struct TimeZoneInfo_t46EF9BAEAA787846F1A1EC419BE75CFEFAFF6777_StaticFields { public: // System.TimeZoneInfo System.TimeZoneInfo::local TimeZoneInfo_t46EF9BAEAA787846F1A1EC419BE75CFEFAFF6777 * ___local_4; // System.Boolean System.TimeZoneInfo::readlinkNotFound bool ___readlinkNotFound_6; // System.TimeZoneInfo System.TimeZoneInfo::utc TimeZoneInfo_t46EF9BAEAA787846F1A1EC419BE75CFEFAFF6777 * ___utc_9; // System.String System.TimeZoneInfo::timeZoneDirectory String_t* ___timeZoneDirectory_10; // Microsoft.Win32.RegistryKey System.TimeZoneInfo::timeZoneKey RegistryKey_t29D81BFF6D6710C7AF7557F80446D514B0AB7574 * ___timeZoneKey_12; // Microsoft.Win32.RegistryKey System.TimeZoneInfo::localZoneKey RegistryKey_t29D81BFF6D6710C7AF7557F80446D514B0AB7574 * ___localZoneKey_13; // System.Collections.ObjectModel.ReadOnlyCollection`1<System.TimeZoneInfo> System.TimeZoneInfo::systemTimeZones ReadOnlyCollection_1_tD63B9891087CF571DD4322388BDDBAEEB7606FE0 * ___systemTimeZones_14; public: inline static int32_t get_offset_of_local_4() { return static_cast<int32_t>(offsetof(TimeZoneInfo_t46EF9BAEAA787846F1A1EC419BE75CFEFAFF6777_StaticFields, ___local_4)); } inline TimeZoneInfo_t46EF9BAEAA787846F1A1EC419BE75CFEFAFF6777 * get_local_4() const { return ___local_4; } inline TimeZoneInfo_t46EF9BAEAA787846F1A1EC419BE75CFEFAFF6777 ** get_address_of_local_4() { return &___local_4; } inline void set_local_4(TimeZoneInfo_t46EF9BAEAA787846F1A1EC419BE75CFEFAFF6777 * value) { ___local_4 = value; Il2CppCodeGenWriteBarrier((&___local_4), value); } inline static int32_t get_offset_of_readlinkNotFound_6() { return static_cast<int32_t>(offsetof(TimeZoneInfo_t46EF9BAEAA787846F1A1EC419BE75CFEFAFF6777_StaticFields, ___readlinkNotFound_6)); } inline bool get_readlinkNotFound_6() const { return ___readlinkNotFound_6; } inline bool* get_address_of_readlinkNotFound_6() { return &___readlinkNotFound_6; } inline void set_readlinkNotFound_6(bool value) { ___readlinkNotFound_6 = value; } inline static int32_t get_offset_of_utc_9() { return static_cast<int32_t>(offsetof(TimeZoneInfo_t46EF9BAEAA787846F1A1EC419BE75CFEFAFF6777_StaticFields, ___utc_9)); } inline TimeZoneInfo_t46EF9BAEAA787846F1A1EC419BE75CFEFAFF6777 * get_utc_9() const { return ___utc_9; } inline TimeZoneInfo_t46EF9BAEAA787846F1A1EC419BE75CFEFAFF6777 ** get_address_of_utc_9() { return &___utc_9; } inline void set_utc_9(TimeZoneInfo_t46EF9BAEAA787846F1A1EC419BE75CFEFAFF6777 * value) { ___utc_9 = value; Il2CppCodeGenWriteBarrier((&___utc_9), value); } inline static int32_t get_offset_of_timeZoneDirectory_10() { return static_cast<int32_t>(offsetof(TimeZoneInfo_t46EF9BAEAA787846F1A1EC419BE75CFEFAFF6777_StaticFields, ___timeZoneDirectory_10)); } inline String_t* get_timeZoneDirectory_10() const { return ___timeZoneDirectory_10; } inline String_t** get_address_of_timeZoneDirectory_10() { return &___timeZoneDirectory_10; } inline void set_timeZoneDirectory_10(String_t* value) { ___timeZoneDirectory_10 = value; Il2CppCodeGenWriteBarrier((&___timeZoneDirectory_10), value); } inline static int32_t get_offset_of_timeZoneKey_12() { return static_cast<int32_t>(offsetof(TimeZoneInfo_t46EF9BAEAA787846F1A1EC419BE75CFEFAFF6777_StaticFields, ___timeZoneKey_12)); } inline RegistryKey_t29D81BFF6D6710C7AF7557F80446D514B0AB7574 * get_timeZoneKey_12() const { return ___timeZoneKey_12; } inline RegistryKey_t29D81BFF6D6710C7AF7557F80446D514B0AB7574 ** get_address_of_timeZoneKey_12() { return &___timeZoneKey_12; } inline void set_timeZoneKey_12(RegistryKey_t29D81BFF6D6710C7AF7557F80446D514B0AB7574 * value) { ___timeZoneKey_12 = value; Il2CppCodeGenWriteBarrier((&___timeZoneKey_12), value); } inline static int32_t get_offset_of_localZoneKey_13() { return static_cast<int32_t>(offsetof(TimeZoneInfo_t46EF9BAEAA787846F1A1EC419BE75CFEFAFF6777_StaticFields, ___localZoneKey_13)); } inline RegistryKey_t29D81BFF6D6710C7AF7557F80446D514B0AB7574 * get_localZoneKey_13() const { return ___localZoneKey_13; } inline RegistryKey_t29D81BFF6D6710C7AF7557F80446D514B0AB7574 ** get_address_of_localZoneKey_13() { return &___localZoneKey_13; } inline void set_localZoneKey_13(RegistryKey_t29D81BFF6D6710C7AF7557F80446D514B0AB7574 * value) { ___localZoneKey_13 = value; Il2CppCodeGenWriteBarrier((&___localZoneKey_13), value); } inline static int32_t get_offset_of_systemTimeZones_14() { return static_cast<int32_t>(offsetof(TimeZoneInfo_t46EF9BAEAA787846F1A1EC419BE75CFEFAFF6777_StaticFields, ___systemTimeZones_14)); } inline ReadOnlyCollection_1_tD63B9891087CF571DD4322388BDDBAEEB7606FE0 * get_systemTimeZones_14() const { return ___systemTimeZones_14; } inline ReadOnlyCollection_1_tD63B9891087CF571DD4322388BDDBAEEB7606FE0 ** get_address_of_systemTimeZones_14() { return &___systemTimeZones_14; } inline void set_systemTimeZones_14(ReadOnlyCollection_1_tD63B9891087CF571DD4322388BDDBAEEB7606FE0 * value) { ___systemTimeZones_14 = value; Il2CppCodeGenWriteBarrier((&___systemTimeZones_14), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // TIMEZONEINFO_T46EF9BAEAA787846F1A1EC419BE75CFEFAFF6777_H #ifndef DYNAMIC_TIME_ZONE_INFORMATION_TE2A7A07ADC8726A5FC7954EA9CDE9168756C9B1F_H #define DYNAMIC_TIME_ZONE_INFORMATION_TE2A7A07ADC8726A5FC7954EA9CDE9168756C9B1F_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.TimeZoneInfo_DYNAMIC_TIME_ZONE_INFORMATION struct DYNAMIC_TIME_ZONE_INFORMATION_tE2A7A07ADC8726A5FC7954EA9CDE9168756C9B1F { public: // System.TimeZoneInfo_TIME_ZONE_INFORMATION System.TimeZoneInfo_DYNAMIC_TIME_ZONE_INFORMATION::TZI TIME_ZONE_INFORMATION_tE8C6F24D5D50D01E03E52B00DDF74849F3DE9811 ___TZI_0; // System.String System.TimeZoneInfo_DYNAMIC_TIME_ZONE_INFORMATION::TimeZoneKeyName String_t* ___TimeZoneKeyName_1; // System.Byte System.TimeZoneInfo_DYNAMIC_TIME_ZONE_INFORMATION::DynamicDaylightTimeDisabled uint8_t ___DynamicDaylightTimeDisabled_2; public: inline static int32_t get_offset_of_TZI_0() { return static_cast<int32_t>(offsetof(DYNAMIC_TIME_ZONE_INFORMATION_tE2A7A07ADC8726A5FC7954EA9CDE9168756C9B1F, ___TZI_0)); } inline TIME_ZONE_INFORMATION_tE8C6F24D5D50D01E03E52B00DDF74849F3DE9811 get_TZI_0() const { return ___TZI_0; } inline TIME_ZONE_INFORMATION_tE8C6F24D5D50D01E03E52B00DDF74849F3DE9811 * get_address_of_TZI_0() { return &___TZI_0; } inline void set_TZI_0(TIME_ZONE_INFORMATION_tE8C6F24D5D50D01E03E52B00DDF74849F3DE9811 value) { ___TZI_0 = value; } inline static int32_t get_offset_of_TimeZoneKeyName_1() { return static_cast<int32_t>(offsetof(DYNAMIC_TIME_ZONE_INFORMATION_tE2A7A07ADC8726A5FC7954EA9CDE9168756C9B1F, ___TimeZoneKeyName_1)); } inline String_t* get_TimeZoneKeyName_1() const { return ___TimeZoneKeyName_1; } inline String_t** get_address_of_TimeZoneKeyName_1() { return &___TimeZoneKeyName_1; } inline void set_TimeZoneKeyName_1(String_t* value) { ___TimeZoneKeyName_1 = value; Il2CppCodeGenWriteBarrier((&___TimeZoneKeyName_1), value); } inline static int32_t get_offset_of_DynamicDaylightTimeDisabled_2() { return static_cast<int32_t>(offsetof(DYNAMIC_TIME_ZONE_INFORMATION_tE2A7A07ADC8726A5FC7954EA9CDE9168756C9B1F, ___DynamicDaylightTimeDisabled_2)); } inline uint8_t get_DynamicDaylightTimeDisabled_2() const { return ___DynamicDaylightTimeDisabled_2; } inline uint8_t* get_address_of_DynamicDaylightTimeDisabled_2() { return &___DynamicDaylightTimeDisabled_2; } inline void set_DynamicDaylightTimeDisabled_2(uint8_t value) { ___DynamicDaylightTimeDisabled_2 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif // Native definition for P/Invoke marshalling of System.TimeZoneInfo/DYNAMIC_TIME_ZONE_INFORMATION struct DYNAMIC_TIME_ZONE_INFORMATION_tE2A7A07ADC8726A5FC7954EA9CDE9168756C9B1F_marshaled_pinvoke { TIME_ZONE_INFORMATION_tE8C6F24D5D50D01E03E52B00DDF74849F3DE9811_marshaled_pinvoke ___TZI_0; Il2CppChar ___TimeZoneKeyName_1[128]; uint8_t ___DynamicDaylightTimeDisabled_2; }; // Native definition for COM marshalling of System.TimeZoneInfo/DYNAMIC_TIME_ZONE_INFORMATION struct DYNAMIC_TIME_ZONE_INFORMATION_tE2A7A07ADC8726A5FC7954EA9CDE9168756C9B1F_marshaled_com { TIME_ZONE_INFORMATION_tE8C6F24D5D50D01E03E52B00DDF74849F3DE9811_marshaled_com ___TZI_0; Il2CppChar ___TimeZoneKeyName_1[128]; uint8_t ___DynamicDaylightTimeDisabled_2; }; #endif // DYNAMIC_TIME_ZONE_INFORMATION_TE2A7A07ADC8726A5FC7954EA9CDE9168756C9B1F_H #ifndef TRANSITIONTIME_T9958178434A0688FD45EF028B1AE9EA665C3E116_H #define TRANSITIONTIME_T9958178434A0688FD45EF028B1AE9EA665C3E116_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.TimeZoneInfo_TransitionTime struct TransitionTime_t9958178434A0688FD45EF028B1AE9EA665C3E116 { public: // System.DateTime System.TimeZoneInfo_TransitionTime::m_timeOfDay DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132 ___m_timeOfDay_0; // System.Byte System.TimeZoneInfo_TransitionTime::m_month uint8_t ___m_month_1; // System.Byte System.TimeZoneInfo_TransitionTime::m_week uint8_t ___m_week_2; // System.Byte System.TimeZoneInfo_TransitionTime::m_day uint8_t ___m_day_3; // System.DayOfWeek System.TimeZoneInfo_TransitionTime::m_dayOfWeek int32_t ___m_dayOfWeek_4; // System.Boolean System.TimeZoneInfo_TransitionTime::m_isFixedDateRule bool ___m_isFixedDateRule_5; public: inline static int32_t get_offset_of_m_timeOfDay_0() { return static_cast<int32_t>(offsetof(TransitionTime_t9958178434A0688FD45EF028B1AE9EA665C3E116, ___m_timeOfDay_0)); } inline DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132 get_m_timeOfDay_0() const { return ___m_timeOfDay_0; } inline DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132 * get_address_of_m_timeOfDay_0() { return &___m_timeOfDay_0; } inline void set_m_timeOfDay_0(DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132 value) { ___m_timeOfDay_0 = value; } inline static int32_t get_offset_of_m_month_1() { return static_cast<int32_t>(offsetof(TransitionTime_t9958178434A0688FD45EF028B1AE9EA665C3E116, ___m_month_1)); } inline uint8_t get_m_month_1() const { return ___m_month_1; } inline uint8_t* get_address_of_m_month_1() { return &___m_month_1; } inline void set_m_month_1(uint8_t value) { ___m_month_1 = value; } inline static int32_t get_offset_of_m_week_2() { return static_cast<int32_t>(offsetof(TransitionTime_t9958178434A0688FD45EF028B1AE9EA665C3E116, ___m_week_2)); } inline uint8_t get_m_week_2() const { return ___m_week_2; } inline uint8_t* get_address_of_m_week_2() { return &___m_week_2; } inline void set_m_week_2(uint8_t value) { ___m_week_2 = value; } inline static int32_t get_offset_of_m_day_3() { return static_cast<int32_t>(offsetof(TransitionTime_t9958178434A0688FD45EF028B1AE9EA665C3E116, ___m_day_3)); } inline uint8_t get_m_day_3() const { return ___m_day_3; } inline uint8_t* get_address_of_m_day_3() { return &___m_day_3; } inline void set_m_day_3(uint8_t value) { ___m_day_3 = value; } inline static int32_t get_offset_of_m_dayOfWeek_4() { return static_cast<int32_t>(offsetof(TransitionTime_t9958178434A0688FD45EF028B1AE9EA665C3E116, ___m_dayOfWeek_4)); } inline int32_t get_m_dayOfWeek_4() const { return ___m_dayOfWeek_4; } inline int32_t* get_address_of_m_dayOfWeek_4() { return &___m_dayOfWeek_4; } inline void set_m_dayOfWeek_4(int32_t value) { ___m_dayOfWeek_4 = value; } inline static int32_t get_offset_of_m_isFixedDateRule_5() { return static_cast<int32_t>(offsetof(TransitionTime_t9958178434A0688FD45EF028B1AE9EA665C3E116, ___m_isFixedDateRule_5)); } inline bool get_m_isFixedDateRule_5() const { return ___m_isFixedDateRule_5; } inline bool* get_address_of_m_isFixedDateRule_5() { return &___m_isFixedDateRule_5; } inline void set_m_isFixedDateRule_5(bool value) { ___m_isFixedDateRule_5 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif // Native definition for P/Invoke marshalling of System.TimeZoneInfo/TransitionTime struct TransitionTime_t9958178434A0688FD45EF028B1AE9EA665C3E116_marshaled_pinvoke { DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132 ___m_timeOfDay_0; uint8_t ___m_month_1; uint8_t ___m_week_2; uint8_t ___m_day_3; int32_t ___m_dayOfWeek_4; int32_t ___m_isFixedDateRule_5; }; // Native definition for COM marshalling of System.TimeZoneInfo/TransitionTime struct TransitionTime_t9958178434A0688FD45EF028B1AE9EA665C3E116_marshaled_com { DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132 ___m_timeOfDay_0; uint8_t ___m_month_1; uint8_t ___m_week_2; uint8_t ___m_day_3; int32_t ___m_dayOfWeek_4; int32_t ___m_isFixedDateRule_5; }; #endif // TRANSITIONTIME_T9958178434A0688FD45EF028B1AE9EA665C3E116_H #ifndef TYPE_T_H #define TYPE_T_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Type struct Type_t : public MemberInfo_t { public: // System.RuntimeTypeHandle System.Type::_impl RuntimeTypeHandle_t7B542280A22F0EC4EAC2061C29178845847A8B2D ____impl_9; public: inline static int32_t get_offset_of__impl_9() { return static_cast<int32_t>(offsetof(Type_t, ____impl_9)); } inline RuntimeTypeHandle_t7B542280A22F0EC4EAC2061C29178845847A8B2D get__impl_9() const { return ____impl_9; } inline RuntimeTypeHandle_t7B542280A22F0EC4EAC2061C29178845847A8B2D * get_address_of__impl_9() { return &____impl_9; } inline void set__impl_9(RuntimeTypeHandle_t7B542280A22F0EC4EAC2061C29178845847A8B2D value) { ____impl_9 = value; } }; struct Type_t_StaticFields { public: // System.Reflection.MemberFilter System.Type::FilterAttribute MemberFilter_t25C1BD92C42BE94426E300787C13C452CB89B381 * ___FilterAttribute_0; // System.Reflection.MemberFilter System.Type::FilterName MemberFilter_t25C1BD92C42BE94426E300787C13C452CB89B381 * ___FilterName_1; // System.Reflection.MemberFilter System.Type::FilterNameIgnoreCase MemberFilter_t25C1BD92C42BE94426E300787C13C452CB89B381 * ___FilterNameIgnoreCase_2; // System.Object System.Type::Missing RuntimeObject * ___Missing_3; // System.Char System.Type::Delimiter Il2CppChar ___Delimiter_4; // System.Type[] System.Type::EmptyTypes TypeU5BU5D_t7FE623A666B49176DE123306221193E888A12F5F* ___EmptyTypes_5; // System.Reflection.Binder System.Type::defaultBinder Binder_t4D5CB06963501D32847C057B57157D6DC49CA759 * ___defaultBinder_6; public: inline static int32_t get_offset_of_FilterAttribute_0() { return static_cast<int32_t>(offsetof(Type_t_StaticFields, ___FilterAttribute_0)); } inline MemberFilter_t25C1BD92C42BE94426E300787C13C452CB89B381 * get_FilterAttribute_0() const { return ___FilterAttribute_0; } inline MemberFilter_t25C1BD92C42BE94426E300787C13C452CB89B381 ** get_address_of_FilterAttribute_0() { return &___FilterAttribute_0; } inline void set_FilterAttribute_0(MemberFilter_t25C1BD92C42BE94426E300787C13C452CB89B381 * value) { ___FilterAttribute_0 = value; Il2CppCodeGenWriteBarrier((&___FilterAttribute_0), value); } inline static int32_t get_offset_of_FilterName_1() { return static_cast<int32_t>(offsetof(Type_t_StaticFields, ___FilterName_1)); } inline MemberFilter_t25C1BD92C42BE94426E300787C13C452CB89B381 * get_FilterName_1() const { return ___FilterName_1; } inline MemberFilter_t25C1BD92C42BE94426E300787C13C452CB89B381 ** get_address_of_FilterName_1() { return &___FilterName_1; } inline void set_FilterName_1(MemberFilter_t25C1BD92C42BE94426E300787C13C452CB89B381 * value) { ___FilterName_1 = value; Il2CppCodeGenWriteBarrier((&___FilterName_1), value); } inline static int32_t get_offset_of_FilterNameIgnoreCase_2() { return static_cast<int32_t>(offsetof(Type_t_StaticFields, ___FilterNameIgnoreCase_2)); } inline MemberFilter_t25C1BD92C42BE94426E300787C13C452CB89B381 * get_FilterNameIgnoreCase_2() const { return ___FilterNameIgnoreCase_2; } inline MemberFilter_t25C1BD92C42BE94426E300787C13C452CB89B381 ** get_address_of_FilterNameIgnoreCase_2() { return &___FilterNameIgnoreCase_2; } inline void set_FilterNameIgnoreCase_2(MemberFilter_t25C1BD92C42BE94426E300787C13C452CB89B381 * value) { ___FilterNameIgnoreCase_2 = value; Il2CppCodeGenWriteBarrier((&___FilterNameIgnoreCase_2), value); } inline static int32_t get_offset_of_Missing_3() { return static_cast<int32_t>(offsetof(Type_t_StaticFields, ___Missing_3)); } inline RuntimeObject * get_Missing_3() const { return ___Missing_3; } inline RuntimeObject ** get_address_of_Missing_3() { return &___Missing_3; } inline void set_Missing_3(RuntimeObject * value) { ___Missing_3 = value; Il2CppCodeGenWriteBarrier((&___Missing_3), value); } inline static int32_t get_offset_of_Delimiter_4() { return static_cast<int32_t>(offsetof(Type_t_StaticFields, ___Delimiter_4)); } inline Il2CppChar get_Delimiter_4() const { return ___Delimiter_4; } inline Il2CppChar* get_address_of_Delimiter_4() { return &___Delimiter_4; } inline void set_Delimiter_4(Il2CppChar value) { ___Delimiter_4 = value; } inline static int32_t get_offset_of_EmptyTypes_5() { return static_cast<int32_t>(offsetof(Type_t_StaticFields, ___EmptyTypes_5)); } inline TypeU5BU5D_t7FE623A666B49176DE123306221193E888A12F5F* get_EmptyTypes_5() const { return ___EmptyTypes_5; } inline TypeU5BU5D_t7FE623A666B49176DE123306221193E888A12F5F** get_address_of_EmptyTypes_5() { return &___EmptyTypes_5; } inline void set_EmptyTypes_5(TypeU5BU5D_t7FE623A666B49176DE123306221193E888A12F5F* value) { ___EmptyTypes_5 = value; Il2CppCodeGenWriteBarrier((&___EmptyTypes_5), value); } inline static int32_t get_offset_of_defaultBinder_6() { return static_cast<int32_t>(offsetof(Type_t_StaticFields, ___defaultBinder_6)); } inline Binder_t4D5CB06963501D32847C057B57157D6DC49CA759 * get_defaultBinder_6() const { return ___defaultBinder_6; } inline Binder_t4D5CB06963501D32847C057B57157D6DC49CA759 ** get_address_of_defaultBinder_6() { return &___defaultBinder_6; } inline void set_defaultBinder_6(Binder_t4D5CB06963501D32847C057B57157D6DC49CA759 * value) { ___defaultBinder_6 = value; Il2CppCodeGenWriteBarrier((&___defaultBinder_6), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // TYPE_T_H #ifndef TYPEDREFERENCE_T118BC3B643F75F52DB9C99D5E051299F886EB2A8_H #define TYPEDREFERENCE_T118BC3B643F75F52DB9C99D5E051299F886EB2A8_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.TypedReference struct TypedReference_t118BC3B643F75F52DB9C99D5E051299F886EB2A8 { public: // System.RuntimeTypeHandle System.TypedReference::type RuntimeTypeHandle_t7B542280A22F0EC4EAC2061C29178845847A8B2D ___type_0; // System.IntPtr System.TypedReference::Value intptr_t ___Value_1; // System.IntPtr System.TypedReference::Type intptr_t ___Type_2; public: inline static int32_t get_offset_of_type_0() { return static_cast<int32_t>(offsetof(TypedReference_t118BC3B643F75F52DB9C99D5E051299F886EB2A8, ___type_0)); } inline RuntimeTypeHandle_t7B542280A22F0EC4EAC2061C29178845847A8B2D get_type_0() const { return ___type_0; } inline RuntimeTypeHandle_t7B542280A22F0EC4EAC2061C29178845847A8B2D * get_address_of_type_0() { return &___type_0; } inline void set_type_0(RuntimeTypeHandle_t7B542280A22F0EC4EAC2061C29178845847A8B2D value) { ___type_0 = value; } inline static int32_t get_offset_of_Value_1() { return static_cast<int32_t>(offsetof(TypedReference_t118BC3B643F75F52DB9C99D5E051299F886EB2A8, ___Value_1)); } inline intptr_t get_Value_1() const { return ___Value_1; } inline intptr_t* get_address_of_Value_1() { return &___Value_1; } inline void set_Value_1(intptr_t value) { ___Value_1 = value; } inline static int32_t get_offset_of_Type_2() { return static_cast<int32_t>(offsetof(TypedReference_t118BC3B643F75F52DB9C99D5E051299F886EB2A8, ___Type_2)); } inline intptr_t get_Type_2() const { return ___Type_2; } inline intptr_t* get_address_of_Type_2() { return &___Type_2; } inline void set_Type_2(intptr_t value) { ___Type_2 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // TYPEDREFERENCE_T118BC3B643F75F52DB9C99D5E051299F886EB2A8_H #ifndef VERSIONRESULT_TA97F3FDF3CF3FF5D0E43768C08D1C4D4568E88CE_H #define VERSIONRESULT_TA97F3FDF3CF3FF5D0E43768C08D1C4D4568E88CE_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Version_VersionResult struct VersionResult_tA97F3FDF3CF3FF5D0E43768C08D1C4D4568E88CE { public: // System.Version System.Version_VersionResult::m_parsedVersion Version_tDBE6876C59B6F56D4F8CAA03851177ABC6FE0DFD * ___m_parsedVersion_0; // System.Version_ParseFailureKind System.Version_VersionResult::m_failure int32_t ___m_failure_1; // System.String System.Version_VersionResult::m_exceptionArgument String_t* ___m_exceptionArgument_2; // System.String System.Version_VersionResult::m_argumentName String_t* ___m_argumentName_3; // System.Boolean System.Version_VersionResult::m_canThrow bool ___m_canThrow_4; public: inline static int32_t get_offset_of_m_parsedVersion_0() { return static_cast<int32_t>(offsetof(VersionResult_tA97F3FDF3CF3FF5D0E43768C08D1C4D4568E88CE, ___m_parsedVersion_0)); } inline Version_tDBE6876C59B6F56D4F8CAA03851177ABC6FE0DFD * get_m_parsedVersion_0() const { return ___m_parsedVersion_0; } inline Version_tDBE6876C59B6F56D4F8CAA03851177ABC6FE0DFD ** get_address_of_m_parsedVersion_0() { return &___m_parsedVersion_0; } inline void set_m_parsedVersion_0(Version_tDBE6876C59B6F56D4F8CAA03851177ABC6FE0DFD * value) { ___m_parsedVersion_0 = value; Il2CppCodeGenWriteBarrier((&___m_parsedVersion_0), value); } inline static int32_t get_offset_of_m_failure_1() { return static_cast<int32_t>(offsetof(VersionResult_tA97F3FDF3CF3FF5D0E43768C08D1C4D4568E88CE, ___m_failure_1)); } inline int32_t get_m_failure_1() const { return ___m_failure_1; } inline int32_t* get_address_of_m_failure_1() { return &___m_failure_1; } inline void set_m_failure_1(int32_t value) { ___m_failure_1 = value; } inline static int32_t get_offset_of_m_exceptionArgument_2() { return static_cast<int32_t>(offsetof(VersionResult_tA97F3FDF3CF3FF5D0E43768C08D1C4D4568E88CE, ___m_exceptionArgument_2)); } inline String_t* get_m_exceptionArgument_2() const { return ___m_exceptionArgument_2; } inline String_t** get_address_of_m_exceptionArgument_2() { return &___m_exceptionArgument_2; } inline void set_m_exceptionArgument_2(String_t* value) { ___m_exceptionArgument_2 = value; Il2CppCodeGenWriteBarrier((&___m_exceptionArgument_2), value); } inline static int32_t get_offset_of_m_argumentName_3() { return static_cast<int32_t>(offsetof(VersionResult_tA97F3FDF3CF3FF5D0E43768C08D1C4D4568E88CE, ___m_argumentName_3)); } inline String_t* get_m_argumentName_3() const { return ___m_argumentName_3; } inline String_t** get_address_of_m_argumentName_3() { return &___m_argumentName_3; } inline void set_m_argumentName_3(String_t* value) { ___m_argumentName_3 = value; Il2CppCodeGenWriteBarrier((&___m_argumentName_3), value); } inline static int32_t get_offset_of_m_canThrow_4() { return static_cast<int32_t>(offsetof(VersionResult_tA97F3FDF3CF3FF5D0E43768C08D1C4D4568E88CE, ___m_canThrow_4)); } inline bool get_m_canThrow_4() const { return ___m_canThrow_4; } inline bool* get_address_of_m_canThrow_4() { return &___m_canThrow_4; } inline void set_m_canThrow_4(bool value) { ___m_canThrow_4 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif // Native definition for P/Invoke marshalling of System.Version/VersionResult struct VersionResult_tA97F3FDF3CF3FF5D0E43768C08D1C4D4568E88CE_marshaled_pinvoke { Version_tDBE6876C59B6F56D4F8CAA03851177ABC6FE0DFD * ___m_parsedVersion_0; int32_t ___m_failure_1; char* ___m_exceptionArgument_2; char* ___m_argumentName_3; int32_t ___m_canThrow_4; }; // Native definition for COM marshalling of System.Version/VersionResult struct VersionResult_tA97F3FDF3CF3FF5D0E43768C08D1C4D4568E88CE_marshaled_com { Version_tDBE6876C59B6F56D4F8CAA03851177ABC6FE0DFD * ___m_parsedVersion_0; int32_t ___m_failure_1; Il2CppChar* ___m_exceptionArgument_2; Il2CppChar* ___m_argumentName_3; int32_t ___m_canThrow_4; }; #endif // VERSIONRESULT_TA97F3FDF3CF3FF5D0E43768C08D1C4D4568E88CE_H #ifndef ASSEMBLYLOADEVENTHANDLER_T53F8340027F9EE67E8A22E7D8C1A3770345153C9_H #define ASSEMBLYLOADEVENTHANDLER_T53F8340027F9EE67E8A22E7D8C1A3770345153C9_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.AssemblyLoadEventHandler struct AssemblyLoadEventHandler_t53F8340027F9EE67E8A22E7D8C1A3770345153C9 : public MulticastDelegate_t { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // ASSEMBLYLOADEVENTHANDLER_T53F8340027F9EE67E8A22E7D8C1A3770345153C9_H #ifndef INTERNALCANCELHANDLER_T2DD134D8150B67E2F9FAD1BC2E6BE92EED57968A_H #define INTERNALCANCELHANDLER_T2DD134D8150B67E2F9FAD1BC2E6BE92EED57968A_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Console_InternalCancelHandler struct InternalCancelHandler_t2DD134D8150B67E2F9FAD1BC2E6BE92EED57968A : public MulticastDelegate_t { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // INTERNALCANCELHANDLER_T2DD134D8150B67E2F9FAD1BC2E6BE92EED57968A_H #ifndef WINDOWSCANCELHANDLER_T1D05BCFB512603DCF87A126FE9969F1D876B9B51_H #define WINDOWSCANCELHANDLER_T1D05BCFB512603DCF87A126FE9969F1D876B9B51_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Console_WindowsConsole_WindowsCancelHandler struct WindowsCancelHandler_t1D05BCFB512603DCF87A126FE9969F1D876B9B51 : public MulticastDelegate_t { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // WINDOWSCANCELHANDLER_T1D05BCFB512603DCF87A126FE9969F1D876B9B51_H #ifndef MISSINGFIELDEXCEPTION_TDDE5A10CB4AC8418D5507B2A00B8C55C8B053D37_H #define MISSINGFIELDEXCEPTION_TDDE5A10CB4AC8418D5507B2A00B8C55C8B053D37_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.MissingFieldException struct MissingFieldException_tDDE5A10CB4AC8418D5507B2A00B8C55C8B053D37 : public MissingMemberException_t165349A7E04FC51DAA5C2251C6DCDD2DD60255DD { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // MISSINGFIELDEXCEPTION_TDDE5A10CB4AC8418D5507B2A00B8C55C8B053D37_H #ifndef MISSINGMETHODEXCEPTION_T7D33DFD3009E4F19BE4DD0967F04D3878F348498_H #define MISSINGMETHODEXCEPTION_T7D33DFD3009E4F19BE4DD0967F04D3878F348498_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.MissingMethodException struct MissingMethodException_t7D33DFD3009E4F19BE4DD0967F04D3878F348498 : public MissingMemberException_t165349A7E04FC51DAA5C2251C6DCDD2DD60255DD { public: // System.String System.MissingMethodException::signature String_t* ___signature_20; public: inline static int32_t get_offset_of_signature_20() { return static_cast<int32_t>(offsetof(MissingMethodException_t7D33DFD3009E4F19BE4DD0967F04D3878F348498, ___signature_20)); } inline String_t* get_signature_20() const { return ___signature_20; } inline String_t** get_address_of_signature_20() { return &___signature_20; } inline void set_signature_20(String_t* value) { ___signature_20 = value; Il2CppCodeGenWriteBarrier((&___signature_20), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // MISSINGMETHODEXCEPTION_T7D33DFD3009E4F19BE4DD0967F04D3878F348498_H #ifndef TYPEINFO_T9D6F65801A41B97F36138B15FD270A1550DBB3FC_H #define TYPEINFO_T9D6F65801A41B97F36138B15FD270A1550DBB3FC_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Reflection.TypeInfo struct TypeInfo_t9D6F65801A41B97F36138B15FD270A1550DBB3FC : public Type_t { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // TYPEINFO_T9D6F65801A41B97F36138B15FD270A1550DBB3FC_H #ifndef ADJUSTMENTRULE_TD07790AF71973358AF86152413749426B28D6204_H #define ADJUSTMENTRULE_TD07790AF71973358AF86152413749426B28D6204_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.TimeZoneInfo_AdjustmentRule struct AdjustmentRule_tD07790AF71973358AF86152413749426B28D6204 : public RuntimeObject { public: // System.DateTime System.TimeZoneInfo_AdjustmentRule::m_dateStart DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132 ___m_dateStart_0; // System.DateTime System.TimeZoneInfo_AdjustmentRule::m_dateEnd DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132 ___m_dateEnd_1; // System.TimeSpan System.TimeZoneInfo_AdjustmentRule::m_daylightDelta TimeSpan_tA8069278ACE8A74D6DF7D514A9CD4432433F64C4 ___m_daylightDelta_2; // System.TimeZoneInfo_TransitionTime System.TimeZoneInfo_AdjustmentRule::m_daylightTransitionStart TransitionTime_t9958178434A0688FD45EF028B1AE9EA665C3E116 ___m_daylightTransitionStart_3; // System.TimeZoneInfo_TransitionTime System.TimeZoneInfo_AdjustmentRule::m_daylightTransitionEnd TransitionTime_t9958178434A0688FD45EF028B1AE9EA665C3E116 ___m_daylightTransitionEnd_4; // System.TimeSpan System.TimeZoneInfo_AdjustmentRule::m_baseUtcOffsetDelta TimeSpan_tA8069278ACE8A74D6DF7D514A9CD4432433F64C4 ___m_baseUtcOffsetDelta_5; public: inline static int32_t get_offset_of_m_dateStart_0() { return static_cast<int32_t>(offsetof(AdjustmentRule_tD07790AF71973358AF86152413749426B28D6204, ___m_dateStart_0)); } inline DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132 get_m_dateStart_0() const { return ___m_dateStart_0; } inline DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132 * get_address_of_m_dateStart_0() { return &___m_dateStart_0; } inline void set_m_dateStart_0(DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132 value) { ___m_dateStart_0 = value; } inline static int32_t get_offset_of_m_dateEnd_1() { return static_cast<int32_t>(offsetof(AdjustmentRule_tD07790AF71973358AF86152413749426B28D6204, ___m_dateEnd_1)); } inline DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132 get_m_dateEnd_1() const { return ___m_dateEnd_1; } inline DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132 * get_address_of_m_dateEnd_1() { return &___m_dateEnd_1; } inline void set_m_dateEnd_1(DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132 value) { ___m_dateEnd_1 = value; } inline static int32_t get_offset_of_m_daylightDelta_2() { return static_cast<int32_t>(offsetof(AdjustmentRule_tD07790AF71973358AF86152413749426B28D6204, ___m_daylightDelta_2)); } inline TimeSpan_tA8069278ACE8A74D6DF7D514A9CD4432433F64C4 get_m_daylightDelta_2() const { return ___m_daylightDelta_2; } inline TimeSpan_tA8069278ACE8A74D6DF7D514A9CD4432433F64C4 * get_address_of_m_daylightDelta_2() { return &___m_daylightDelta_2; } inline void set_m_daylightDelta_2(TimeSpan_tA8069278ACE8A74D6DF7D514A9CD4432433F64C4 value) { ___m_daylightDelta_2 = value; } inline static int32_t get_offset_of_m_daylightTransitionStart_3() { return static_cast<int32_t>(offsetof(AdjustmentRule_tD07790AF71973358AF86152413749426B28D6204, ___m_daylightTransitionStart_3)); } inline TransitionTime_t9958178434A0688FD45EF028B1AE9EA665C3E116 get_m_daylightTransitionStart_3() const { return ___m_daylightTransitionStart_3; } inline TransitionTime_t9958178434A0688FD45EF028B1AE9EA665C3E116 * get_address_of_m_daylightTransitionStart_3() { return &___m_daylightTransitionStart_3; } inline void set_m_daylightTransitionStart_3(TransitionTime_t9958178434A0688FD45EF028B1AE9EA665C3E116 value) { ___m_daylightTransitionStart_3 = value; } inline static int32_t get_offset_of_m_daylightTransitionEnd_4() { return static_cast<int32_t>(offsetof(AdjustmentRule_tD07790AF71973358AF86152413749426B28D6204, ___m_daylightTransitionEnd_4)); } inline TransitionTime_t9958178434A0688FD45EF028B1AE9EA665C3E116 get_m_daylightTransitionEnd_4() const { return ___m_daylightTransitionEnd_4; } inline TransitionTime_t9958178434A0688FD45EF028B1AE9EA665C3E116 * get_address_of_m_daylightTransitionEnd_4() { return &___m_daylightTransitionEnd_4; } inline void set_m_daylightTransitionEnd_4(TransitionTime_t9958178434A0688FD45EF028B1AE9EA665C3E116 value) { ___m_daylightTransitionEnd_4 = value; } inline static int32_t get_offset_of_m_baseUtcOffsetDelta_5() { return static_cast<int32_t>(offsetof(AdjustmentRule_tD07790AF71973358AF86152413749426B28D6204, ___m_baseUtcOffsetDelta_5)); } inline TimeSpan_tA8069278ACE8A74D6DF7D514A9CD4432433F64C4 get_m_baseUtcOffsetDelta_5() const { return ___m_baseUtcOffsetDelta_5; } inline TimeSpan_tA8069278ACE8A74D6DF7D514A9CD4432433F64C4 * get_address_of_m_baseUtcOffsetDelta_5() { return &___m_baseUtcOffsetDelta_5; } inline void set_m_baseUtcOffsetDelta_5(TimeSpan_tA8069278ACE8A74D6DF7D514A9CD4432433F64C4 value) { ___m_baseUtcOffsetDelta_5 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // ADJUSTMENTRULE_TD07790AF71973358AF86152413749426B28D6204_H #ifndef UNHANDLEDEXCEPTIONEVENTHANDLER_TB0DFF05ABF7A3A234C87D4F7A71F98E9AB2D91DE_H #define UNHANDLEDEXCEPTIONEVENTHANDLER_TB0DFF05ABF7A3A234C87D4F7A71F98E9AB2D91DE_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.UnhandledExceptionEventHandler struct UnhandledExceptionEventHandler_tB0DFF05ABF7A3A234C87D4F7A71F98E9AB2D91DE : public MulticastDelegate_t { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // UNHANDLEDEXCEPTIONEVENTHANDLER_TB0DFF05ABF7A3A234C87D4F7A71F98E9AB2D91DE_H #ifndef RUNTIMETYPE_T40F13BCEAD97478C72C4B40BFDC2A220161CDB8F_H #define RUNTIMETYPE_T40F13BCEAD97478C72C4B40BFDC2A220161CDB8F_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.RuntimeType struct RuntimeType_t40F13BCEAD97478C72C4B40BFDC2A220161CDB8F : public TypeInfo_t9D6F65801A41B97F36138B15FD270A1550DBB3FC { public: // System.MonoTypeInfo System.RuntimeType::type_info MonoTypeInfo_t9A65BA5324D14FDFEB7644EEE6E1BDF74B8A393D * ___type_info_26; // System.Object System.RuntimeType::GenericCache RuntimeObject * ___GenericCache_27; // System.Reflection.RuntimeConstructorInfo System.RuntimeType::m_serializationCtor RuntimeConstructorInfo_tF21A59967629968D0BE5D0DAF677662824E9629D * ___m_serializationCtor_28; public: inline static int32_t get_offset_of_type_info_26() { return static_cast<int32_t>(offsetof(RuntimeType_t40F13BCEAD97478C72C4B40BFDC2A220161CDB8F, ___type_info_26)); } inline MonoTypeInfo_t9A65BA5324D14FDFEB7644EEE6E1BDF74B8A393D * get_type_info_26() const { return ___type_info_26; } inline MonoTypeInfo_t9A65BA5324D14FDFEB7644EEE6E1BDF74B8A393D ** get_address_of_type_info_26() { return &___type_info_26; } inline void set_type_info_26(MonoTypeInfo_t9A65BA5324D14FDFEB7644EEE6E1BDF74B8A393D * value) { ___type_info_26 = value; Il2CppCodeGenWriteBarrier((&___type_info_26), value); } inline static int32_t get_offset_of_GenericCache_27() { return static_cast<int32_t>(offsetof(RuntimeType_t40F13BCEAD97478C72C4B40BFDC2A220161CDB8F, ___GenericCache_27)); } inline RuntimeObject * get_GenericCache_27() const { return ___GenericCache_27; } inline RuntimeObject ** get_address_of_GenericCache_27() { return &___GenericCache_27; } inline void set_GenericCache_27(RuntimeObject * value) { ___GenericCache_27 = value; Il2CppCodeGenWriteBarrier((&___GenericCache_27), value); } inline static int32_t get_offset_of_m_serializationCtor_28() { return static_cast<int32_t>(offsetof(RuntimeType_t40F13BCEAD97478C72C4B40BFDC2A220161CDB8F, ___m_serializationCtor_28)); } inline RuntimeConstructorInfo_tF21A59967629968D0BE5D0DAF677662824E9629D * get_m_serializationCtor_28() const { return ___m_serializationCtor_28; } inline RuntimeConstructorInfo_tF21A59967629968D0BE5D0DAF677662824E9629D ** get_address_of_m_serializationCtor_28() { return &___m_serializationCtor_28; } inline void set_m_serializationCtor_28(RuntimeConstructorInfo_tF21A59967629968D0BE5D0DAF677662824E9629D * value) { ___m_serializationCtor_28 = value; Il2CppCodeGenWriteBarrier((&___m_serializationCtor_28), value); } }; struct RuntimeType_t40F13BCEAD97478C72C4B40BFDC2A220161CDB8F_StaticFields { public: // System.RuntimeType System.RuntimeType::ValueType RuntimeType_t40F13BCEAD97478C72C4B40BFDC2A220161CDB8F * ___ValueType_10; // System.RuntimeType System.RuntimeType::EnumType RuntimeType_t40F13BCEAD97478C72C4B40BFDC2A220161CDB8F * ___EnumType_11; // System.RuntimeType System.RuntimeType::ObjectType RuntimeType_t40F13BCEAD97478C72C4B40BFDC2A220161CDB8F * ___ObjectType_12; // System.RuntimeType System.RuntimeType::StringType RuntimeType_t40F13BCEAD97478C72C4B40BFDC2A220161CDB8F * ___StringType_13; // System.RuntimeType System.RuntimeType::DelegateType RuntimeType_t40F13BCEAD97478C72C4B40BFDC2A220161CDB8F * ___DelegateType_14; // System.Type[] System.RuntimeType::s_SICtorParamTypes TypeU5BU5D_t7FE623A666B49176DE123306221193E888A12F5F* ___s_SICtorParamTypes_15; // System.RuntimeType System.RuntimeType::s_typedRef RuntimeType_t40F13BCEAD97478C72C4B40BFDC2A220161CDB8F * ___s_typedRef_25; public: inline static int32_t get_offset_of_ValueType_10() { return static_cast<int32_t>(offsetof(RuntimeType_t40F13BCEAD97478C72C4B40BFDC2A220161CDB8F_StaticFields, ___ValueType_10)); } inline RuntimeType_t40F13BCEAD97478C72C4B40BFDC2A220161CDB8F * get_ValueType_10() const { return ___ValueType_10; } inline RuntimeType_t40F13BCEAD97478C72C4B40BFDC2A220161CDB8F ** get_address_of_ValueType_10() { return &___ValueType_10; } inline void set_ValueType_10(RuntimeType_t40F13BCEAD97478C72C4B40BFDC2A220161CDB8F * value) { ___ValueType_10 = value; Il2CppCodeGenWriteBarrier((&___ValueType_10), value); } inline static int32_t get_offset_of_EnumType_11() { return static_cast<int32_t>(offsetof(RuntimeType_t40F13BCEAD97478C72C4B40BFDC2A220161CDB8F_StaticFields, ___EnumType_11)); } inline RuntimeType_t40F13BCEAD97478C72C4B40BFDC2A220161CDB8F * get_EnumType_11() const { return ___EnumType_11; } inline RuntimeType_t40F13BCEAD97478C72C4B40BFDC2A220161CDB8F ** get_address_of_EnumType_11() { return &___EnumType_11; } inline void set_EnumType_11(RuntimeType_t40F13BCEAD97478C72C4B40BFDC2A220161CDB8F * value) { ___EnumType_11 = value; Il2CppCodeGenWriteBarrier((&___EnumType_11), value); } inline static int32_t get_offset_of_ObjectType_12() { return static_cast<int32_t>(offsetof(RuntimeType_t40F13BCEAD97478C72C4B40BFDC2A220161CDB8F_StaticFields, ___ObjectType_12)); } inline RuntimeType_t40F13BCEAD97478C72C4B40BFDC2A220161CDB8F * get_ObjectType_12() const { return ___ObjectType_12; } inline RuntimeType_t40F13BCEAD97478C72C4B40BFDC2A220161CDB8F ** get_address_of_ObjectType_12() { return &___ObjectType_12; } inline void set_ObjectType_12(RuntimeType_t40F13BCEAD97478C72C4B40BFDC2A220161CDB8F * value) { ___ObjectType_12 = value; Il2CppCodeGenWriteBarrier((&___ObjectType_12), value); } inline static int32_t get_offset_of_StringType_13() { return static_cast<int32_t>(offsetof(RuntimeType_t40F13BCEAD97478C72C4B40BFDC2A220161CDB8F_StaticFields, ___StringType_13)); } inline RuntimeType_t40F13BCEAD97478C72C4B40BFDC2A220161CDB8F * get_StringType_13() const { return ___StringType_13; } inline RuntimeType_t40F13BCEAD97478C72C4B40BFDC2A220161CDB8F ** get_address_of_StringType_13() { return &___StringType_13; } inline void set_StringType_13(RuntimeType_t40F13BCEAD97478C72C4B40BFDC2A220161CDB8F * value) { ___StringType_13 = value; Il2CppCodeGenWriteBarrier((&___StringType_13), value); } inline static int32_t get_offset_of_DelegateType_14() { return static_cast<int32_t>(offsetof(RuntimeType_t40F13BCEAD97478C72C4B40BFDC2A220161CDB8F_StaticFields, ___DelegateType_14)); } inline RuntimeType_t40F13BCEAD97478C72C4B40BFDC2A220161CDB8F * get_DelegateType_14() const { return ___DelegateType_14; } inline RuntimeType_t40F13BCEAD97478C72C4B40BFDC2A220161CDB8F ** get_address_of_DelegateType_14() { return &___DelegateType_14; } inline void set_DelegateType_14(RuntimeType_t40F13BCEAD97478C72C4B40BFDC2A220161CDB8F * value) { ___DelegateType_14 = value; Il2CppCodeGenWriteBarrier((&___DelegateType_14), value); } inline static int32_t get_offset_of_s_SICtorParamTypes_15() { return static_cast<int32_t>(offsetof(RuntimeType_t40F13BCEAD97478C72C4B40BFDC2A220161CDB8F_StaticFields, ___s_SICtorParamTypes_15)); } inline TypeU5BU5D_t7FE623A666B49176DE123306221193E888A12F5F* get_s_SICtorParamTypes_15() const { return ___s_SICtorParamTypes_15; } inline TypeU5BU5D_t7FE623A666B49176DE123306221193E888A12F5F** get_address_of_s_SICtorParamTypes_15() { return &___s_SICtorParamTypes_15; } inline void set_s_SICtorParamTypes_15(TypeU5BU5D_t7FE623A666B49176DE123306221193E888A12F5F* value) { ___s_SICtorParamTypes_15 = value; Il2CppCodeGenWriteBarrier((&___s_SICtorParamTypes_15), value); } inline static int32_t get_offset_of_s_typedRef_25() { return static_cast<int32_t>(offsetof(RuntimeType_t40F13BCEAD97478C72C4B40BFDC2A220161CDB8F_StaticFields, ___s_typedRef_25)); } inline RuntimeType_t40F13BCEAD97478C72C4B40BFDC2A220161CDB8F * get_s_typedRef_25() const { return ___s_typedRef_25; } inline RuntimeType_t40F13BCEAD97478C72C4B40BFDC2A220161CDB8F ** get_address_of_s_typedRef_25() { return &___s_typedRef_25; } inline void set_s_typedRef_25(RuntimeType_t40F13BCEAD97478C72C4B40BFDC2A220161CDB8F * value) { ___s_typedRef_25 = value; Il2CppCodeGenWriteBarrier((&___s_typedRef_25), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // RUNTIMETYPE_T40F13BCEAD97478C72C4B40BFDC2A220161CDB8F_H #ifndef REFLECTIONONLYTYPE_T887C0F8C4A7A1E9DCE8271CAB0BA0E2FC5F1BEA5_H #define REFLECTIONONLYTYPE_T887C0F8C4A7A1E9DCE8271CAB0BA0E2FC5F1BEA5_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.ReflectionOnlyType struct ReflectionOnlyType_t887C0F8C4A7A1E9DCE8271CAB0BA0E2FC5F1BEA5 : public RuntimeType_t40F13BCEAD97478C72C4B40BFDC2A220161CDB8F { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // REFLECTIONONLYTYPE_T887C0F8C4A7A1E9DCE8271CAB0BA0E2FC5F1BEA5_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize200 = { 0, -1, 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize201 = { 0, 0, 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize202 = { 0, -1, 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize203 = { 0, -1, 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize204 = { sizeof (IndexOutOfRangeException_tEC7665FC66525AB6A6916A7EB505E5591683F0CF), -1, 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize205 = { sizeof (Int16_t823A20635DAF5A3D93A1E01CFBF3CBA27CF00B4D)+ sizeof (RuntimeObject), sizeof(int16_t), 0, 0 }; extern const int32_t g_FieldOffsetTable205[3] = { Int16_t823A20635DAF5A3D93A1E01CFBF3CBA27CF00B4D::get_offset_of_m_value_0() + static_cast<int32_t>(sizeof(RuntimeObject)), 0, 0, }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize206 = { sizeof (Int32_t585191389E07734F19F3156FF88FB3EF4800D102)+ sizeof (RuntimeObject), sizeof(int32_t), 0, 0 }; extern const int32_t g_FieldOffsetTable206[3] = { Int32_t585191389E07734F19F3156FF88FB3EF4800D102::get_offset_of_m_value_0() + static_cast<int32_t>(sizeof(RuntimeObject)), 0, 0, }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize207 = { sizeof (Int64_t7A386C2FF7B0280A0F516992401DDFCF0FF7B436)+ sizeof (RuntimeObject), sizeof(int64_t), 0, 0 }; extern const int32_t g_FieldOffsetTable207[3] = { Int64_t7A386C2FF7B0280A0F516992401DDFCF0FF7B436::get_offset_of_m_value_0() + static_cast<int32_t>(sizeof(RuntimeObject)), 0, 0, }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize208 = { sizeof (InvalidCastException_t91DF9E7D7FCCDA6C562CB4A9A18903E016680FDA), -1, 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize209 = { sizeof (InvalidOperationException_t0530E734D823F78310CAFAFA424CA5164D93A1F1), -1, 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize210 = { sizeof (InvalidProgramException_tF3B9678AC1136E8FA85EE6F0069D39578DECB358), -1, 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize211 = { sizeof (InvalidTimeZoneException_tA035F4C48B9BE56165F6FD6526A3F7384CC78C25), -1, 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize212 = { 0, 0, 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize213 = { sizeof (Math_tFB388E53C7FDC6FCCF9A19ABF5A4E521FBD52E19), -1, sizeof(Math_tFB388E53C7FDC6FCCF9A19ABF5A4E521FBD52E19_StaticFields), 0 }; extern const int32_t g_FieldOffsetTable213[5] = { Math_tFB388E53C7FDC6FCCF9A19ABF5A4E521FBD52E19_StaticFields::get_offset_of_doubleRoundLimit_0(), 0, Math_tFB388E53C7FDC6FCCF9A19ABF5A4E521FBD52E19_StaticFields::get_offset_of_roundPower10Double_2(), 0, 0, }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize214 = { sizeof (MemberAccessException_tDA869AFFB4FC1EA0EEF3143D85999710AC4774F0), -1, 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize215 = { sizeof (MethodAccessException_tD507764699290F19BF6AF6DEE1E0068927E428EB), -1, 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize216 = { sizeof (MissingFieldException_tDDE5A10CB4AC8418D5507B2A00B8C55C8B053D37), -1, 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize217 = { sizeof (MissingMemberException_t165349A7E04FC51DAA5C2251C6DCDD2DD60255DD), -1, 0, 0 }; extern const int32_t g_FieldOffsetTable217[3] = { MissingMemberException_t165349A7E04FC51DAA5C2251C6DCDD2DD60255DD::get_offset_of_ClassName_17(), MissingMemberException_t165349A7E04FC51DAA5C2251C6DCDD2DD60255DD::get_offset_of_MemberName_18(), MissingMemberException_t165349A7E04FC51DAA5C2251C6DCDD2DD60255DD::get_offset_of_Signature_19(), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize218 = { sizeof (MissingMethodException_t7D33DFD3009E4F19BE4DD0967F04D3878F348498), -1, 0, 0 }; extern const int32_t g_FieldOffsetTable218[1] = { MissingMethodException_t7D33DFD3009E4F19BE4DD0967F04D3878F348498::get_offset_of_signature_20(), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize219 = { sizeof (MulticastNotSupportedException_tDAC3C31B20ACDAE95C396052199B385C00C41211), -1, 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize220 = { sizeof (NonSerializedAttribute_t1D1C4A9662B6C2FAC28237FCDFA49FA4747BC3BA), -1, 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize221 = { sizeof (NotImplementedException_t8AD6EBE5FEDB0AEBECEE0961CF73C35B372EFFA4), -1, 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize222 = { sizeof (NotSupportedException_tE75B318D6590A02A5D9B29FD97409B1750FA0010), -1, 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize223 = { sizeof (NullReferenceException_t204B194BC4DDA3259AF5A8633EA248AE5977ABDC), -1, 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize224 = { sizeof (Number_t0578BBE654AC0F135B04497270FDDFA4CFF84C51), -1, 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize225 = { sizeof (NumberBuffer_tBD2266C521F098915F124D7A62AFF8DB05918075)+ sizeof (RuntimeObject), sizeof(NumberBuffer_tBD2266C521F098915F124D7A62AFF8DB05918075_marshaled_pinvoke), sizeof(NumberBuffer_tBD2266C521F098915F124D7A62AFF8DB05918075_StaticFields), 0 }; extern const int32_t g_FieldOffsetTable225[6] = { NumberBuffer_tBD2266C521F098915F124D7A62AFF8DB05918075_StaticFields::get_offset_of_NumberBufferBytes_0(), NumberBuffer_tBD2266C521F098915F124D7A62AFF8DB05918075::get_offset_of_baseAddress_1() + static_cast<int32_t>(sizeof(RuntimeObject)), NumberBuffer_tBD2266C521F098915F124D7A62AFF8DB05918075::get_offset_of_digits_2() + static_cast<int32_t>(sizeof(RuntimeObject)), NumberBuffer_tBD2266C521F098915F124D7A62AFF8DB05918075::get_offset_of_precision_3() + static_cast<int32_t>(sizeof(RuntimeObject)), NumberBuffer_tBD2266C521F098915F124D7A62AFF8DB05918075::get_offset_of_scale_4() + static_cast<int32_t>(sizeof(RuntimeObject)), NumberBuffer_tBD2266C521F098915F124D7A62AFF8DB05918075::get_offset_of_sign_5() + static_cast<int32_t>(sizeof(RuntimeObject)), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize226 = { sizeof (ObjectDisposedException_tF68E471ECD1419AD7C51137B742837395F50B69A), -1, 0, 0 }; extern const int32_t g_FieldOffsetTable226[1] = { ObjectDisposedException_tF68E471ECD1419AD7C51137B742837395F50B69A::get_offset_of_objectName_17(), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize227 = { sizeof (ObsoleteAttribute_tDAE6245D460079868ABE89327A61FC76E13F2170), -1, 0, 0 }; extern const int32_t g_FieldOffsetTable227[2] = { ObsoleteAttribute_tDAE6245D460079868ABE89327A61FC76E13F2170::get_offset_of__message_0(), ObsoleteAttribute_tDAE6245D460079868ABE89327A61FC76E13F2170::get_offset_of__error_1(), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize228 = { sizeof (OperationCanceledException_tD28B1AE59ACCE4D46333BFE398395B8D75D76A90), -1, 0, 0 }; extern const int32_t g_FieldOffsetTable228[1] = { OperationCanceledException_tD28B1AE59ACCE4D46333BFE398395B8D75D76A90::get_offset_of__cancellationToken_17(), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize229 = { sizeof (OutOfMemoryException_t2DF3EAC178583BD1DEFAAECBEDB2AF1EA86FBFC7), -1, 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize230 = { sizeof (OverflowException_tD89571E2350DE06D9DE4AB65ADCA77D607B5693D), -1, 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize231 = { sizeof (ParamArrayAttribute_tA12C072C941CD1ADD2760B58A2C3E09C8C4DDF2C), -1, 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize232 = { sizeof (ParamsArray_t2DD480A5C806C0920DC218523EF3673332A68023)+ sizeof (RuntimeObject), -1, sizeof(ParamsArray_t2DD480A5C806C0920DC218523EF3673332A68023_StaticFields), 0 }; extern const int32_t g_FieldOffsetTable232[7] = { ParamsArray_t2DD480A5C806C0920DC218523EF3673332A68023_StaticFields::get_offset_of_oneArgArray_0(), ParamsArray_t2DD480A5C806C0920DC218523EF3673332A68023_StaticFields::get_offset_of_twoArgArray_1(), ParamsArray_t2DD480A5C806C0920DC218523EF3673332A68023_StaticFields::get_offset_of_threeArgArray_2(), ParamsArray_t2DD480A5C806C0920DC218523EF3673332A68023::get_offset_of_arg0_3() + static_cast<int32_t>(sizeof(RuntimeObject)), ParamsArray_t2DD480A5C806C0920DC218523EF3673332A68023::get_offset_of_arg1_4() + static_cast<int32_t>(sizeof(RuntimeObject)), ParamsArray_t2DD480A5C806C0920DC218523EF3673332A68023::get_offset_of_arg2_5() + static_cast<int32_t>(sizeof(RuntimeObject)), ParamsArray_t2DD480A5C806C0920DC218523EF3673332A68023::get_offset_of_args_6() + static_cast<int32_t>(sizeof(RuntimeObject)), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize233 = { sizeof (PlatformNotSupportedException_t14FE109377F8FA8B3B2F9A0C4FE3BF10662C73B5), -1, 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize234 = { sizeof (Random_t18A28484F67EFA289C256F508A5C71D9E6DEE09F), -1, 0, 0 }; extern const int32_t g_FieldOffsetTable234[3] = { Random_t18A28484F67EFA289C256F508A5C71D9E6DEE09F::get_offset_of_inext_0(), Random_t18A28484F67EFA289C256F508A5C71D9E6DEE09F::get_offset_of_inextp_1(), Random_t18A28484F67EFA289C256F508A5C71D9E6DEE09F::get_offset_of_SeedArray_2(), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize235 = { sizeof (RankException_t85F27ECAFB95F8FC0E72E5EA676169A3CE9B4B6F), -1, 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize236 = { sizeof (TypeNameFormatFlags_tDAD267AC4A655D16C608DD230B5C97F8226E94C8)+ sizeof (RuntimeObject), sizeof(int32_t), 0, 0 }; extern const int32_t g_FieldOffsetTable236[11] = { TypeNameFormatFlags_tDAD267AC4A655D16C608DD230B5C97F8226E94C8::get_offset_of_value___2() + static_cast<int32_t>(sizeof(RuntimeObject)), 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize237 = { sizeof (TypeNameKind_t200043F25E9EACB6294E8B825E5FED441F04C2BF)+ sizeof (RuntimeObject), sizeof(int32_t), 0, 0 }; extern const int32_t g_FieldOffsetTable237[5] = { TypeNameKind_t200043F25E9EACB6294E8B825E5FED441F04C2BF::get_offset_of_value___2() + static_cast<int32_t>(sizeof(RuntimeObject)), 0, 0, 0, 0, }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize238 = { sizeof (RuntimeType_t40F13BCEAD97478C72C4B40BFDC2A220161CDB8F), -1, sizeof(RuntimeType_t40F13BCEAD97478C72C4B40BFDC2A220161CDB8F_StaticFields), 0 }; extern const int32_t g_FieldOffsetTable238[19] = { RuntimeType_t40F13BCEAD97478C72C4B40BFDC2A220161CDB8F_StaticFields::get_offset_of_ValueType_10(), RuntimeType_t40F13BCEAD97478C72C4B40BFDC2A220161CDB8F_StaticFields::get_offset_of_EnumType_11(), RuntimeType_t40F13BCEAD97478C72C4B40BFDC2A220161CDB8F_StaticFields::get_offset_of_ObjectType_12(), RuntimeType_t40F13BCEAD97478C72C4B40BFDC2A220161CDB8F_StaticFields::get_offset_of_StringType_13(), RuntimeType_t40F13BCEAD97478C72C4B40BFDC2A220161CDB8F_StaticFields::get_offset_of_DelegateType_14(), RuntimeType_t40F13BCEAD97478C72C4B40BFDC2A220161CDB8F_StaticFields::get_offset_of_s_SICtorParamTypes_15(), 0, 0, 0, 0, 0, 0, 0, 0, 0, RuntimeType_t40F13BCEAD97478C72C4B40BFDC2A220161CDB8F_StaticFields::get_offset_of_s_typedRef_25(), RuntimeType_t40F13BCEAD97478C72C4B40BFDC2A220161CDB8F::get_offset_of_type_info_26(), RuntimeType_t40F13BCEAD97478C72C4B40BFDC2A220161CDB8F::get_offset_of_GenericCache_27(), RuntimeType_t40F13BCEAD97478C72C4B40BFDC2A220161CDB8F::get_offset_of_m_serializationCtor_28(), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize239 = { sizeof (MemberListType_tD77EECAE81FBFC68FD3A772FDBF75C478329C5AF)+ sizeof (RuntimeObject), sizeof(int32_t), 0, 0 }; extern const int32_t g_FieldOffsetTable239[5] = { MemberListType_tD77EECAE81FBFC68FD3A772FDBF75C478329C5AF::get_offset_of_value___2() + static_cast<int32_t>(sizeof(RuntimeObject)), 0, 0, 0, 0, }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize240 = { 0, 0, 0, 0 }; extern const int32_t g_FieldOffsetTable240[4] = { 0, 0, 0, 0, }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize241 = { sizeof (ReflectionOnlyType_t887C0F8C4A7A1E9DCE8271CAB0BA0E2FC5F1BEA5), -1, 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize242 = { sizeof (SByte_t9070AEA2966184235653CB9B4D33B149CDA831DF)+ sizeof (RuntimeObject), sizeof(int8_t), 0, 0 }; extern const int32_t g_FieldOffsetTable242[3] = { SByte_t9070AEA2966184235653CB9B4D33B149CDA831DF::get_offset_of_m_value_0() + static_cast<int32_t>(sizeof(RuntimeObject)), 0, 0, }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize243 = { sizeof (SerializableAttribute_t2522EA746802F84F4805F489ECE9CFAC1A817F0F), -1, 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize244 = { sizeof (Single_tDDDA9169C4E4E308AC6D7A824F9B28DC82204AE1)+ sizeof (RuntimeObject), sizeof(float), 0, 0 }; extern const int32_t g_FieldOffsetTable244[7] = { Single_tDDDA9169C4E4E308AC6D7A824F9B28DC82204AE1::get_offset_of_m_value_0() + static_cast<int32_t>(sizeof(RuntimeObject)), 0, 0, 0, 0, 0, 0, }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize245 = { sizeof (StackOverflowException_t8F10DDD924B10951FCA8CC166684A13DC6C7BFDC), -1, 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize246 = { sizeof (String_t), sizeof(char*), sizeof(String_t_StaticFields), 0 }; extern const int32_t g_FieldOffsetTable246[8] = { String_t::get_offset_of_m_stringLength_0(), String_t::get_offset_of_m_firstChar_1(), 0, 0, 0, String_t_StaticFields::get_offset_of_Empty_5(), 0, 0, }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize247 = { sizeof (StringSplitOptions_t2FA287E15325CC78BF3CA5CDAAA3520BFBD58487)+ sizeof (RuntimeObject), sizeof(int32_t), 0, 0 }; extern const int32_t g_FieldOffsetTable247[3] = { StringSplitOptions_t2FA287E15325CC78BF3CA5CDAAA3520BFBD58487::get_offset_of_value___2() + static_cast<int32_t>(sizeof(RuntimeObject)), 0, 0, }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize248 = { sizeof (StringComparer_t588BC7FEF85D6E7425E0A8147A3D5A334F1F82DE), -1, sizeof(StringComparer_t588BC7FEF85D6E7425E0A8147A3D5A334F1F82DE_StaticFields), 0 }; extern const int32_t g_FieldOffsetTable248[4] = { StringComparer_t588BC7FEF85D6E7425E0A8147A3D5A334F1F82DE_StaticFields::get_offset_of__invariantCulture_0(), StringComparer_t588BC7FEF85D6E7425E0A8147A3D5A334F1F82DE_StaticFields::get_offset_of__invariantCultureIgnoreCase_1(), StringComparer_t588BC7FEF85D6E7425E0A8147A3D5A334F1F82DE_StaticFields::get_offset_of__ordinal_2(), StringComparer_t588BC7FEF85D6E7425E0A8147A3D5A334F1F82DE_StaticFields::get_offset_of__ordinalIgnoreCase_3(), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize249 = { sizeof (CultureAwareComparer_tFCEC16B02A638A8DFF49C7C8C507A6A889C8E058), -1, 0, 0 }; extern const int32_t g_FieldOffsetTable249[3] = { CultureAwareComparer_tFCEC16B02A638A8DFF49C7C8C507A6A889C8E058::get_offset_of__compareInfo_4(), CultureAwareComparer_tFCEC16B02A638A8DFF49C7C8C507A6A889C8E058::get_offset_of__ignoreCase_5(), CultureAwareComparer_tFCEC16B02A638A8DFF49C7C8C507A6A889C8E058::get_offset_of__options_6(), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize250 = { sizeof (OrdinalComparer_tF6BA53365493F2DF0E4DA7C73C4094D1E35F240A), -1, 0, 0 }; extern const int32_t g_FieldOffsetTable250[1] = { OrdinalComparer_tF6BA53365493F2DF0E4DA7C73C4094D1E35F240A::get_offset_of__ignoreCase_4(), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize251 = { sizeof (SystemException_t5380468142AA850BE4A341D7AF3EAB9C78746782), -1, 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize252 = { sizeof (STAThreadAttribute_t0564A46C9F5E5DC44615EDFC5C95AEAF67397F16), -1, 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize253 = { sizeof (ThreadStaticAttribute_tCE2B939D689C66D29B18B265822F96F79DAAF393), -1, 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize254 = { sizeof (ExceptionArgument_tE4C1E083DC891ECF9688A8A0C62D7F7841057B14)+ sizeof (RuntimeObject), sizeof(int32_t), 0, 0 }; extern const int32_t g_FieldOffsetTable254[29] = { ExceptionArgument_tE4C1E083DC891ECF9688A8A0C62D7F7841057B14::get_offset_of_value___2() + static_cast<int32_t>(sizeof(RuntimeObject)), 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize255 = { sizeof (ExceptionResource_t897ACCB868BF3CAAC00AB0C00D57D7A2B6C7586A)+ sizeof (RuntimeObject), sizeof(int32_t), 0, 0 }; extern const int32_t g_FieldOffsetTable255[47] = { ExceptionResource_t897ACCB868BF3CAAC00AB0C00D57D7A2B6C7586A::get_offset_of_value___2() + static_cast<int32_t>(sizeof(RuntimeObject)), 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize256 = { sizeof (TimeSpan_tA8069278ACE8A74D6DF7D514A9CD4432433F64C4)+ sizeof (RuntimeObject), sizeof(TimeSpan_tA8069278ACE8A74D6DF7D514A9CD4432433F64C4 ), sizeof(TimeSpan_tA8069278ACE8A74D6DF7D514A9CD4432433F64C4_StaticFields), 0 }; extern const int32_t g_FieldOffsetTable256[6] = { TimeSpan_tA8069278ACE8A74D6DF7D514A9CD4432433F64C4_StaticFields::get_offset_of_Zero_0(), TimeSpan_tA8069278ACE8A74D6DF7D514A9CD4432433F64C4_StaticFields::get_offset_of_MaxValue_1(), TimeSpan_tA8069278ACE8A74D6DF7D514A9CD4432433F64C4_StaticFields::get_offset_of_MinValue_2(), TimeSpan_tA8069278ACE8A74D6DF7D514A9CD4432433F64C4::get_offset_of__ticks_3() + static_cast<int32_t>(sizeof(RuntimeObject)), TimeSpan_tA8069278ACE8A74D6DF7D514A9CD4432433F64C4_StaticFields::get_offset_of__legacyConfigChecked_4(), TimeSpan_tA8069278ACE8A74D6DF7D514A9CD4432433F64C4_StaticFields::get_offset_of__legacyMode_5(), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize257 = { sizeof (TimeZoneInfoOptions_t123D8B5A23D3DE107FB9D3A29BF5952895C652EE)+ sizeof (RuntimeObject), sizeof(int32_t), 0, 0 }; extern const int32_t g_FieldOffsetTable257[3] = { TimeZoneInfoOptions_t123D8B5A23D3DE107FB9D3A29BF5952895C652EE::get_offset_of_value___2() + static_cast<int32_t>(sizeof(RuntimeObject)), 0, 0, }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize258 = { sizeof (TimeZoneInfo_t46EF9BAEAA787846F1A1EC419BE75CFEFAFF6777), -1, sizeof(TimeZoneInfo_t46EF9BAEAA787846F1A1EC419BE75CFEFAFF6777_StaticFields), 0 }; extern const int32_t g_FieldOffsetTable258[15] = { TimeZoneInfo_t46EF9BAEAA787846F1A1EC419BE75CFEFAFF6777::get_offset_of_baseUtcOffset_0(), TimeZoneInfo_t46EF9BAEAA787846F1A1EC419BE75CFEFAFF6777::get_offset_of_daylightDisplayName_1(), TimeZoneInfo_t46EF9BAEAA787846F1A1EC419BE75CFEFAFF6777::get_offset_of_displayName_2(), TimeZoneInfo_t46EF9BAEAA787846F1A1EC419BE75CFEFAFF6777::get_offset_of_id_3(), TimeZoneInfo_t46EF9BAEAA787846F1A1EC419BE75CFEFAFF6777_StaticFields::get_offset_of_local_4(), TimeZoneInfo_t46EF9BAEAA787846F1A1EC419BE75CFEFAFF6777::get_offset_of_transitions_5(), TimeZoneInfo_t46EF9BAEAA787846F1A1EC419BE75CFEFAFF6777_StaticFields::get_offset_of_readlinkNotFound_6(), TimeZoneInfo_t46EF9BAEAA787846F1A1EC419BE75CFEFAFF6777::get_offset_of_standardDisplayName_7(), TimeZoneInfo_t46EF9BAEAA787846F1A1EC419BE75CFEFAFF6777::get_offset_of_supportsDaylightSavingTime_8(), TimeZoneInfo_t46EF9BAEAA787846F1A1EC419BE75CFEFAFF6777_StaticFields::get_offset_of_utc_9(), TimeZoneInfo_t46EF9BAEAA787846F1A1EC419BE75CFEFAFF6777_StaticFields::get_offset_of_timeZoneDirectory_10(), TimeZoneInfo_t46EF9BAEAA787846F1A1EC419BE75CFEFAFF6777::get_offset_of_adjustmentRules_11(), TimeZoneInfo_t46EF9BAEAA787846F1A1EC419BE75CFEFAFF6777_StaticFields::get_offset_of_timeZoneKey_12(), TimeZoneInfo_t46EF9BAEAA787846F1A1EC419BE75CFEFAFF6777_StaticFields::get_offset_of_localZoneKey_13(), TimeZoneInfo_t46EF9BAEAA787846F1A1EC419BE75CFEFAFF6777_StaticFields::get_offset_of_systemTimeZones_14(), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize259 = { sizeof (AdjustmentRule_tD07790AF71973358AF86152413749426B28D6204), -1, 0, 0 }; extern const int32_t g_FieldOffsetTable259[6] = { AdjustmentRule_tD07790AF71973358AF86152413749426B28D6204::get_offset_of_m_dateStart_0(), AdjustmentRule_tD07790AF71973358AF86152413749426B28D6204::get_offset_of_m_dateEnd_1(), AdjustmentRule_tD07790AF71973358AF86152413749426B28D6204::get_offset_of_m_daylightDelta_2(), AdjustmentRule_tD07790AF71973358AF86152413749426B28D6204::get_offset_of_m_daylightTransitionStart_3(), AdjustmentRule_tD07790AF71973358AF86152413749426B28D6204::get_offset_of_m_daylightTransitionEnd_4(), AdjustmentRule_tD07790AF71973358AF86152413749426B28D6204::get_offset_of_m_baseUtcOffsetDelta_5(), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize260 = { sizeof (TransitionTime_t9958178434A0688FD45EF028B1AE9EA665C3E116)+ sizeof (RuntimeObject), -1, 0, 0 }; extern const int32_t g_FieldOffsetTable260[6] = { TransitionTime_t9958178434A0688FD45EF028B1AE9EA665C3E116::get_offset_of_m_timeOfDay_0() + static_cast<int32_t>(sizeof(RuntimeObject)), TransitionTime_t9958178434A0688FD45EF028B1AE9EA665C3E116::get_offset_of_m_month_1() + static_cast<int32_t>(sizeof(RuntimeObject)), TransitionTime_t9958178434A0688FD45EF028B1AE9EA665C3E116::get_offset_of_m_week_2() + static_cast<int32_t>(sizeof(RuntimeObject)), TransitionTime_t9958178434A0688FD45EF028B1AE9EA665C3E116::get_offset_of_m_day_3() + static_cast<int32_t>(sizeof(RuntimeObject)), TransitionTime_t9958178434A0688FD45EF028B1AE9EA665C3E116::get_offset_of_m_dayOfWeek_4() + static_cast<int32_t>(sizeof(RuntimeObject)), TransitionTime_t9958178434A0688FD45EF028B1AE9EA665C3E116::get_offset_of_m_isFixedDateRule_5() + static_cast<int32_t>(sizeof(RuntimeObject)), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize261 = { sizeof (SYSTEMTIME_tB7F532B6AEC26D9270A30C57600C31F2622DF7A2)+ sizeof (RuntimeObject), sizeof(SYSTEMTIME_tB7F532B6AEC26D9270A30C57600C31F2622DF7A2 ), 0, 0 }; extern const int32_t g_FieldOffsetTable261[8] = { SYSTEMTIME_tB7F532B6AEC26D9270A30C57600C31F2622DF7A2::get_offset_of_wYear_0() + static_cast<int32_t>(sizeof(RuntimeObject)), SYSTEMTIME_tB7F532B6AEC26D9270A30C57600C31F2622DF7A2::get_offset_of_wMonth_1() + static_cast<int32_t>(sizeof(RuntimeObject)), SYSTEMTIME_tB7F532B6AEC26D9270A30C57600C31F2622DF7A2::get_offset_of_wDayOfWeek_2() + static_cast<int32_t>(sizeof(RuntimeObject)), SYSTEMTIME_tB7F532B6AEC26D9270A30C57600C31F2622DF7A2::get_offset_of_wDay_3() + static_cast<int32_t>(sizeof(RuntimeObject)), SYSTEMTIME_tB7F532B6AEC26D9270A30C57600C31F2622DF7A2::get_offset_of_wHour_4() + static_cast<int32_t>(sizeof(RuntimeObject)), SYSTEMTIME_tB7F532B6AEC26D9270A30C57600C31F2622DF7A2::get_offset_of_wMinute_5() + static_cast<int32_t>(sizeof(RuntimeObject)), SYSTEMTIME_tB7F532B6AEC26D9270A30C57600C31F2622DF7A2::get_offset_of_wSecond_6() + static_cast<int32_t>(sizeof(RuntimeObject)), SYSTEMTIME_tB7F532B6AEC26D9270A30C57600C31F2622DF7A2::get_offset_of_wMilliseconds_7() + static_cast<int32_t>(sizeof(RuntimeObject)), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize262 = { sizeof (TIME_ZONE_INFORMATION_tE8C6F24D5D50D01E03E52B00DDF74849F3DE9811)+ sizeof (RuntimeObject), sizeof(TIME_ZONE_INFORMATION_tE8C6F24D5D50D01E03E52B00DDF74849F3DE9811_marshaled_pinvoke), 0, 0 }; extern const int32_t g_FieldOffsetTable262[7] = { TIME_ZONE_INFORMATION_tE8C6F24D5D50D01E03E52B00DDF74849F3DE9811::get_offset_of_Bias_0() + static_cast<int32_t>(sizeof(RuntimeObject)), TIME_ZONE_INFORMATION_tE8C6F24D5D50D01E03E52B00DDF74849F3DE9811::get_offset_of_StandardName_1() + static_cast<int32_t>(sizeof(RuntimeObject)), TIME_ZONE_INFORMATION_tE8C6F24D5D50D01E03E52B00DDF74849F3DE9811::get_offset_of_StandardDate_2() + static_cast<int32_t>(sizeof(RuntimeObject)), TIME_ZONE_INFORMATION_tE8C6F24D5D50D01E03E52B00DDF74849F3DE9811::get_offset_of_StandardBias_3() + static_cast<int32_t>(sizeof(RuntimeObject)), TIME_ZONE_INFORMATION_tE8C6F24D5D50D01E03E52B00DDF74849F3DE9811::get_offset_of_DaylightName_4() + static_cast<int32_t>(sizeof(RuntimeObject)), TIME_ZONE_INFORMATION_tE8C6F24D5D50D01E03E52B00DDF74849F3DE9811::get_offset_of_DaylightDate_5() + static_cast<int32_t>(sizeof(RuntimeObject)), TIME_ZONE_INFORMATION_tE8C6F24D5D50D01E03E52B00DDF74849F3DE9811::get_offset_of_DaylightBias_6() + static_cast<int32_t>(sizeof(RuntimeObject)), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize263 = { sizeof (DYNAMIC_TIME_ZONE_INFORMATION_tE2A7A07ADC8726A5FC7954EA9CDE9168756C9B1F)+ sizeof (RuntimeObject), sizeof(DYNAMIC_TIME_ZONE_INFORMATION_tE2A7A07ADC8726A5FC7954EA9CDE9168756C9B1F_marshaled_pinvoke), 0, 0 }; extern const int32_t g_FieldOffsetTable263[3] = { DYNAMIC_TIME_ZONE_INFORMATION_tE2A7A07ADC8726A5FC7954EA9CDE9168756C9B1F::get_offset_of_TZI_0() + static_cast<int32_t>(sizeof(RuntimeObject)), DYNAMIC_TIME_ZONE_INFORMATION_tE2A7A07ADC8726A5FC7954EA9CDE9168756C9B1F::get_offset_of_TimeZoneKeyName_1() + static_cast<int32_t>(sizeof(RuntimeObject)), DYNAMIC_TIME_ZONE_INFORMATION_tE2A7A07ADC8726A5FC7954EA9CDE9168756C9B1F::get_offset_of_DynamicDaylightTimeDisabled_2() + static_cast<int32_t>(sizeof(RuntimeObject)), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize264 = { sizeof (U3CU3Ec_tBED9E1805554B1EFE14027A8400694336FCEE2F7), -1, sizeof(U3CU3Ec_tBED9E1805554B1EFE14027A8400694336FCEE2F7_StaticFields), 0 }; extern const int32_t g_FieldOffsetTable264[2] = { U3CU3Ec_tBED9E1805554B1EFE14027A8400694336FCEE2F7_StaticFields::get_offset_of_U3CU3E9_0(), U3CU3Ec_tBED9E1805554B1EFE14027A8400694336FCEE2F7_StaticFields::get_offset_of_U3CU3E9__19_0_1(), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize265 = { sizeof (TimeZoneNotFoundException_t44EC55B0AAD26AD0E0B659D308CBF90E5C81B388), -1, 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize266 = { sizeof (Type_t), -1, sizeof(Type_t_StaticFields), 0 }; extern const int32_t g_FieldOffsetTable266[10] = { Type_t_StaticFields::get_offset_of_FilterAttribute_0(), Type_t_StaticFields::get_offset_of_FilterName_1(), Type_t_StaticFields::get_offset_of_FilterNameIgnoreCase_2(), Type_t_StaticFields::get_offset_of_Missing_3(), Type_t_StaticFields::get_offset_of_Delimiter_4(), Type_t_StaticFields::get_offset_of_EmptyTypes_5(), Type_t_StaticFields::get_offset_of_defaultBinder_6(), 0, 0, Type_t::get_offset_of__impl_9(), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize267 = { sizeof (TypedReference_t118BC3B643F75F52DB9C99D5E051299F886EB2A8)+ sizeof (RuntimeObject), -1, 0, 0 }; extern const int32_t g_FieldOffsetTable267[3] = { TypedReference_t118BC3B643F75F52DB9C99D5E051299F886EB2A8::get_offset_of_type_0() + static_cast<int32_t>(sizeof(RuntimeObject)), TypedReference_t118BC3B643F75F52DB9C99D5E051299F886EB2A8::get_offset_of_Value_1() + static_cast<int32_t>(sizeof(RuntimeObject)), TypedReference_t118BC3B643F75F52DB9C99D5E051299F886EB2A8::get_offset_of_Type_2() + static_cast<int32_t>(sizeof(RuntimeObject)), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize268 = { sizeof (TypeInitializationException_t5223A07113C97D6DC875A82C68D4C132737ADEAE), -1, 0, 0 }; extern const int32_t g_FieldOffsetTable268[1] = { TypeInitializationException_t5223A07113C97D6DC875A82C68D4C132737ADEAE::get_offset_of__typeName_17(), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize269 = { sizeof (TypeLoadException_t510963B29CB27C6EA3ACDF5FB76E72E1BC372CD1), -1, 0, 0 }; extern const int32_t g_FieldOffsetTable269[4] = { TypeLoadException_t510963B29CB27C6EA3ACDF5FB76E72E1BC372CD1::get_offset_of_ClassName_17(), TypeLoadException_t510963B29CB27C6EA3ACDF5FB76E72E1BC372CD1::get_offset_of_AssemblyName_18(), TypeLoadException_t510963B29CB27C6EA3ACDF5FB76E72E1BC372CD1::get_offset_of_MessageArg_19(), TypeLoadException_t510963B29CB27C6EA3ACDF5FB76E72E1BC372CD1::get_offset_of_ResourceId_20(), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize270 = { sizeof (UInt16_tAE45CEF73BF720100519F6867F32145D075F928E)+ sizeof (RuntimeObject), sizeof(uint16_t), 0, 0 }; extern const int32_t g_FieldOffsetTable270[3] = { UInt16_tAE45CEF73BF720100519F6867F32145D075F928E::get_offset_of_m_value_0() + static_cast<int32_t>(sizeof(RuntimeObject)), 0, 0, }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize271 = { sizeof (UInt32_t4980FA09003AFAAB5A6E361BA2748EA9A005709B)+ sizeof (RuntimeObject), sizeof(uint32_t), 0, 0 }; extern const int32_t g_FieldOffsetTable271[3] = { UInt32_t4980FA09003AFAAB5A6E361BA2748EA9A005709B::get_offset_of_m_value_0() + static_cast<int32_t>(sizeof(RuntimeObject)), 0, 0, }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize272 = { sizeof (UInt64_tA02DF3B59C8FC4A849BD207DA11038CC64E4CB4E)+ sizeof (RuntimeObject), sizeof(uint64_t), 0, 0 }; extern const int32_t g_FieldOffsetTable272[3] = { UInt64_tA02DF3B59C8FC4A849BD207DA11038CC64E4CB4E::get_offset_of_m_value_0() + static_cast<int32_t>(sizeof(RuntimeObject)), 0, 0, }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize273 = { sizeof (UnauthorizedAccessException_tC2210A745BFDD3AE3559A87A4219E2945EEC9F75), -1, 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize274 = { sizeof (UnhandledExceptionEventArgs_t39DD47D43B0D764FE2C9847FBE760031FBEA0FD1), -1, 0, 0 }; extern const int32_t g_FieldOffsetTable274[2] = { UnhandledExceptionEventArgs_t39DD47D43B0D764FE2C9847FBE760031FBEA0FD1::get_offset_of__Exception_1(), UnhandledExceptionEventArgs_t39DD47D43B0D764FE2C9847FBE760031FBEA0FD1::get_offset_of__IsTerminating_2(), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize275 = { sizeof (UnhandledExceptionEventHandler_tB0DFF05ABF7A3A234C87D4F7A71F98E9AB2D91DE), sizeof(Il2CppMethodPointer), 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize276 = { sizeof (UnitySerializationHolder_t6B17ABB985ACD3F8D9F9E3C146DEA5F730E1CEAC), -1, 0, 0 }; extern const int32_t g_FieldOffsetTable276[8] = { UnitySerializationHolder_t6B17ABB985ACD3F8D9F9E3C146DEA5F730E1CEAC::get_offset_of_m_instantiation_0(), UnitySerializationHolder_t6B17ABB985ACD3F8D9F9E3C146DEA5F730E1CEAC::get_offset_of_m_elementTypes_1(), UnitySerializationHolder_t6B17ABB985ACD3F8D9F9E3C146DEA5F730E1CEAC::get_offset_of_m_genericParameterPosition_2(), UnitySerializationHolder_t6B17ABB985ACD3F8D9F9E3C146DEA5F730E1CEAC::get_offset_of_m_declaringType_3(), UnitySerializationHolder_t6B17ABB985ACD3F8D9F9E3C146DEA5F730E1CEAC::get_offset_of_m_declaringMethod_4(), UnitySerializationHolder_t6B17ABB985ACD3F8D9F9E3C146DEA5F730E1CEAC::get_offset_of_m_data_5(), UnitySerializationHolder_t6B17ABB985ACD3F8D9F9E3C146DEA5F730E1CEAC::get_offset_of_m_assemblyName_6(), UnitySerializationHolder_t6B17ABB985ACD3F8D9F9E3C146DEA5F730E1CEAC::get_offset_of_m_unityType_7(), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize277 = { sizeof (UnSafeCharBuffer_t99F0962CE65E71C4BA612D5434276C51AC33AF0C)+ sizeof (RuntimeObject), sizeof(UnSafeCharBuffer_t99F0962CE65E71C4BA612D5434276C51AC33AF0C_marshaled_pinvoke), 0, 0 }; extern const int32_t g_FieldOffsetTable277[3] = { UnSafeCharBuffer_t99F0962CE65E71C4BA612D5434276C51AC33AF0C::get_offset_of_m_buffer_0() + static_cast<int32_t>(sizeof(RuntimeObject)), UnSafeCharBuffer_t99F0962CE65E71C4BA612D5434276C51AC33AF0C::get_offset_of_m_totalSize_1() + static_cast<int32_t>(sizeof(RuntimeObject)), UnSafeCharBuffer_t99F0962CE65E71C4BA612D5434276C51AC33AF0C::get_offset_of_m_length_2() + static_cast<int32_t>(sizeof(RuntimeObject)), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize278 = { sizeof (Version_tDBE6876C59B6F56D4F8CAA03851177ABC6FE0DFD), -1, sizeof(Version_tDBE6876C59B6F56D4F8CAA03851177ABC6FE0DFD_StaticFields), 0 }; extern const int32_t g_FieldOffsetTable278[6] = { Version_tDBE6876C59B6F56D4F8CAA03851177ABC6FE0DFD::get_offset_of__Major_0(), Version_tDBE6876C59B6F56D4F8CAA03851177ABC6FE0DFD::get_offset_of__Minor_1(), Version_tDBE6876C59B6F56D4F8CAA03851177ABC6FE0DFD::get_offset_of__Build_2(), Version_tDBE6876C59B6F56D4F8CAA03851177ABC6FE0DFD::get_offset_of__Revision_3(), Version_tDBE6876C59B6F56D4F8CAA03851177ABC6FE0DFD_StaticFields::get_offset_of_SeparatorsArray_4(), 0, }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize279 = { sizeof (ParseFailureKind_t0E37E87ACF3E01D5D2846A114AE9247C2C7DC3E8)+ sizeof (RuntimeObject), sizeof(int32_t), 0, 0 }; extern const int32_t g_FieldOffsetTable279[5] = { ParseFailureKind_t0E37E87ACF3E01D5D2846A114AE9247C2C7DC3E8::get_offset_of_value___2() + static_cast<int32_t>(sizeof(RuntimeObject)), 0, 0, 0, 0, }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize280 = { sizeof (VersionResult_tA97F3FDF3CF3FF5D0E43768C08D1C4D4568E88CE)+ sizeof (RuntimeObject), -1, 0, 0 }; extern const int32_t g_FieldOffsetTable280[5] = { VersionResult_tA97F3FDF3CF3FF5D0E43768C08D1C4D4568E88CE::get_offset_of_m_parsedVersion_0() + static_cast<int32_t>(sizeof(RuntimeObject)), VersionResult_tA97F3FDF3CF3FF5D0E43768C08D1C4D4568E88CE::get_offset_of_m_failure_1() + static_cast<int32_t>(sizeof(RuntimeObject)), VersionResult_tA97F3FDF3CF3FF5D0E43768C08D1C4D4568E88CE::get_offset_of_m_exceptionArgument_2() + static_cast<int32_t>(sizeof(RuntimeObject)), VersionResult_tA97F3FDF3CF3FF5D0E43768C08D1C4D4568E88CE::get_offset_of_m_argumentName_3() + static_cast<int32_t>(sizeof(RuntimeObject)), VersionResult_tA97F3FDF3CF3FF5D0E43768C08D1C4D4568E88CE::get_offset_of_m_canThrow_4() + static_cast<int32_t>(sizeof(RuntimeObject)), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize281 = { sizeof (AppDomain_t1B59572328F60585904DF52A59FE47CF5B5FFFF8), -1, sizeof(AppDomain_t1B59572328F60585904DF52A59FE47CF5B5FFFF8_StaticFields), sizeof(AppDomain_t1B59572328F60585904DF52A59FE47CF5B5FFFF8_ThreadStaticFields) }; extern const int32_t g_FieldOffsetTable281[23] = { AppDomain_t1B59572328F60585904DF52A59FE47CF5B5FFFF8::get_offset_of__mono_app_domain_1(), AppDomain_t1B59572328F60585904DF52A59FE47CF5B5FFFF8_StaticFields::get_offset_of__process_guid_2(), AppDomain_t1B59572328F60585904DF52A59FE47CF5B5FFFF8_ThreadStaticFields::get_offset_of_type_resolve_in_progress_3() | THREAD_LOCAL_STATIC_MASK, AppDomain_t1B59572328F60585904DF52A59FE47CF5B5FFFF8_ThreadStaticFields::get_offset_of_assembly_resolve_in_progress_4() | THREAD_LOCAL_STATIC_MASK, AppDomain_t1B59572328F60585904DF52A59FE47CF5B5FFFF8_ThreadStaticFields::get_offset_of_assembly_resolve_in_progress_refonly_5() | THREAD_LOCAL_STATIC_MASK, AppDomain_t1B59572328F60585904DF52A59FE47CF5B5FFFF8::get_offset_of__evidence_6(), AppDomain_t1B59572328F60585904DF52A59FE47CF5B5FFFF8::get_offset_of__granted_7(), AppDomain_t1B59572328F60585904DF52A59FE47CF5B5FFFF8::get_offset_of__principalPolicy_8(), AppDomain_t1B59572328F60585904DF52A59FE47CF5B5FFFF8_ThreadStaticFields::get_offset_of__principal_9() | THREAD_LOCAL_STATIC_MASK, AppDomain_t1B59572328F60585904DF52A59FE47CF5B5FFFF8_StaticFields::get_offset_of_default_domain_10(), AppDomain_t1B59572328F60585904DF52A59FE47CF5B5FFFF8::get_offset_of_AssemblyLoad_11(), AppDomain_t1B59572328F60585904DF52A59FE47CF5B5FFFF8::get_offset_of_AssemblyResolve_12(), AppDomain_t1B59572328F60585904DF52A59FE47CF5B5FFFF8::get_offset_of_DomainUnload_13(), AppDomain_t1B59572328F60585904DF52A59FE47CF5B5FFFF8::get_offset_of_ProcessExit_14(), AppDomain_t1B59572328F60585904DF52A59FE47CF5B5FFFF8::get_offset_of_ResourceResolve_15(), AppDomain_t1B59572328F60585904DF52A59FE47CF5B5FFFF8::get_offset_of_TypeResolve_16(), AppDomain_t1B59572328F60585904DF52A59FE47CF5B5FFFF8::get_offset_of_UnhandledException_17(), AppDomain_t1B59572328F60585904DF52A59FE47CF5B5FFFF8::get_offset_of_FirstChanceException_18(), AppDomain_t1B59572328F60585904DF52A59FE47CF5B5FFFF8::get_offset_of__domain_manager_19(), AppDomain_t1B59572328F60585904DF52A59FE47CF5B5FFFF8::get_offset_of_ReflectionOnlyAssemblyResolve_20(), AppDomain_t1B59572328F60585904DF52A59FE47CF5B5FFFF8::get_offset_of__activation_21(), AppDomain_t1B59572328F60585904DF52A59FE47CF5B5FFFF8::get_offset_of__applicationIdentity_22(), AppDomain_t1B59572328F60585904DF52A59FE47CF5B5FFFF8::get_offset_of_compatibility_switch_23(), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize282 = { sizeof (CLRConfig_t79EBAFC5FBCAC675B35CB93391030FABCA9A7B45), -1, 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize283 = { sizeof (CompatibilitySwitches_tC541F9F5404925C97741A0628E9B6D26C40CFA91), -1, sizeof(CompatibilitySwitches_tC541F9F5404925C97741A0628E9B6D26C40CFA91_StaticFields), 0 }; extern const int32_t g_FieldOffsetTable283[2] = { CompatibilitySwitches_tC541F9F5404925C97741A0628E9B6D26C40CFA91_StaticFields::get_offset_of_IsAppEarlierThanSilverlight4_0(), CompatibilitySwitches_tC541F9F5404925C97741A0628E9B6D26C40CFA91_StaticFields::get_offset_of_IsAppEarlierThanWindowsPhone8_1(), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize284 = { sizeof (Environment_tC93BF7477A1AEA39D05EDFEBAFF62EE5353FF806), -1, sizeof(Environment_tC93BF7477A1AEA39D05EDFEBAFF62EE5353FF806_StaticFields), 0 }; extern const int32_t g_FieldOffsetTable284[3] = { 0, Environment_tC93BF7477A1AEA39D05EDFEBAFF62EE5353FF806_StaticFields::get_offset_of_nl_1(), Environment_tC93BF7477A1AEA39D05EDFEBAFF62EE5353FF806_StaticFields::get_offset_of_os_2(), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize285 = { sizeof (SpecialFolder_t5A2C2AE97BD6C2DF95061C8904B2225228AC9BA0)+ sizeof (RuntimeObject), sizeof(int32_t), 0, 0 }; extern const int32_t g_FieldOffsetTable285[48] = { SpecialFolder_t5A2C2AE97BD6C2DF95061C8904B2225228AC9BA0::get_offset_of_value___2() + static_cast<int32_t>(sizeof(RuntimeObject)), 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize286 = { sizeof (SpecialFolderOption_tAF2DB60F447738C1E46C3D5660A0CBB0F4480470)+ sizeof (RuntimeObject), sizeof(int32_t), 0, 0 }; extern const int32_t g_FieldOffsetTable286[4] = { SpecialFolderOption_tAF2DB60F447738C1E46C3D5660A0CBB0F4480470::get_offset_of_value___2() + static_cast<int32_t>(sizeof(RuntimeObject)), 0, 0, 0, }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize287 = { sizeof (ParseNumbers_tFCD9612B791F297E13D1D622F88219D9D471331A), -1, 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize288 = { sizeof (MonoTypeInfo_t9A65BA5324D14FDFEB7644EEE6E1BDF74B8A393D), -1, 0, 0 }; extern const int32_t g_FieldOffsetTable288[2] = { MonoTypeInfo_t9A65BA5324D14FDFEB7644EEE6E1BDF74B8A393D::get_offset_of_full_name_0(), MonoTypeInfo_t9A65BA5324D14FDFEB7644EEE6E1BDF74B8A393D::get_offset_of_default_ctor_1(), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize289 = { sizeof (TypeNameParser_tBEF78C9D6AEC3DE5E2993F6EDC24C06F7B713741), -1, 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize290 = { sizeof (AppDomainSetup_t80DF2915BB100D4BD515920B49C959E9FA451306), -1, 0, 0 }; extern const int32_t g_FieldOffsetTable290[23] = { AppDomainSetup_t80DF2915BB100D4BD515920B49C959E9FA451306::get_offset_of_application_base_0(), AppDomainSetup_t80DF2915BB100D4BD515920B49C959E9FA451306::get_offset_of_application_name_1(), AppDomainSetup_t80DF2915BB100D4BD515920B49C959E9FA451306::get_offset_of_cache_path_2(), AppDomainSetup_t80DF2915BB100D4BD515920B49C959E9FA451306::get_offset_of_configuration_file_3(), AppDomainSetup_t80DF2915BB100D4BD515920B49C959E9FA451306::get_offset_of_dynamic_base_4(), AppDomainSetup_t80DF2915BB100D4BD515920B49C959E9FA451306::get_offset_of_license_file_5(), AppDomainSetup_t80DF2915BB100D4BD515920B49C959E9FA451306::get_offset_of_private_bin_path_6(), AppDomainSetup_t80DF2915BB100D4BD515920B49C959E9FA451306::get_offset_of_private_bin_path_probe_7(), AppDomainSetup_t80DF2915BB100D4BD515920B49C959E9FA451306::get_offset_of_shadow_copy_directories_8(), AppDomainSetup_t80DF2915BB100D4BD515920B49C959E9FA451306::get_offset_of_shadow_copy_files_9(), AppDomainSetup_t80DF2915BB100D4BD515920B49C959E9FA451306::get_offset_of_publisher_policy_10(), AppDomainSetup_t80DF2915BB100D4BD515920B49C959E9FA451306::get_offset_of_path_changed_11(), AppDomainSetup_t80DF2915BB100D4BD515920B49C959E9FA451306::get_offset_of_loader_optimization_12(), AppDomainSetup_t80DF2915BB100D4BD515920B49C959E9FA451306::get_offset_of_disallow_binding_redirects_13(), AppDomainSetup_t80DF2915BB100D4BD515920B49C959E9FA451306::get_offset_of_disallow_code_downloads_14(), AppDomainSetup_t80DF2915BB100D4BD515920B49C959E9FA451306::get_offset_of__activationArguments_15(), AppDomainSetup_t80DF2915BB100D4BD515920B49C959E9FA451306::get_offset_of_domain_initializer_16(), AppDomainSetup_t80DF2915BB100D4BD515920B49C959E9FA451306::get_offset_of_application_trust_17(), AppDomainSetup_t80DF2915BB100D4BD515920B49C959E9FA451306::get_offset_of_domain_initializer_args_18(), AppDomainSetup_t80DF2915BB100D4BD515920B49C959E9FA451306::get_offset_of_disallow_appbase_probe_19(), AppDomainSetup_t80DF2915BB100D4BD515920B49C959E9FA451306::get_offset_of_configuration_bytes_20(), AppDomainSetup_t80DF2915BB100D4BD515920B49C959E9FA451306::get_offset_of_serialized_non_primitives_21(), AppDomainSetup_t80DF2915BB100D4BD515920B49C959E9FA451306::get_offset_of_U3CTargetFrameworkNameU3Ek__BackingField_22(), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize291 = { sizeof (ArgIterator_tCF0D2A1A1BD140821E37286E2D7AC6267479F855)+ sizeof (RuntimeObject), -1, 0, 0 }; extern const int32_t g_FieldOffsetTable291[4] = { ArgIterator_tCF0D2A1A1BD140821E37286E2D7AC6267479F855::get_offset_of_sig_0() + static_cast<int32_t>(sizeof(RuntimeObject)), ArgIterator_tCF0D2A1A1BD140821E37286E2D7AC6267479F855::get_offset_of_args_1() + static_cast<int32_t>(sizeof(RuntimeObject)), ArgIterator_tCF0D2A1A1BD140821E37286E2D7AC6267479F855::get_offset_of_next_arg_2() + static_cast<int32_t>(sizeof(RuntimeObject)), ArgIterator_tCF0D2A1A1BD140821E37286E2D7AC6267479F855::get_offset_of_num_args_3() + static_cast<int32_t>(sizeof(RuntimeObject)), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize292 = { sizeof (AssemblyLoadEventArgs_t51DAAB04039C3B2D8C3FBF65C13441BC6C6A7AE8), -1, 0, 0 }; extern const int32_t g_FieldOffsetTable292[1] = { AssemblyLoadEventArgs_t51DAAB04039C3B2D8C3FBF65C13441BC6C6A7AE8::get_offset_of_m_loadedAssembly_1(), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize293 = { sizeof (AssemblyLoadEventHandler_t53F8340027F9EE67E8A22E7D8C1A3770345153C9), sizeof(Il2CppMethodPointer), 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize294 = { sizeof (Console_t5C8E87BA271B0DECA837A3BF9093AC3560DB3D5D), -1, sizeof(Console_t5C8E87BA271B0DECA837A3BF9093AC3560DB3D5D_StaticFields), 0 }; extern const int32_t g_FieldOffsetTable294[7] = { Console_t5C8E87BA271B0DECA837A3BF9093AC3560DB3D5D_StaticFields::get_offset_of_stdout_0(), Console_t5C8E87BA271B0DECA837A3BF9093AC3560DB3D5D_StaticFields::get_offset_of_stderr_1(), Console_t5C8E87BA271B0DECA837A3BF9093AC3560DB3D5D_StaticFields::get_offset_of_stdin_2(), Console_t5C8E87BA271B0DECA837A3BF9093AC3560DB3D5D_StaticFields::get_offset_of_inputEncoding_3(), Console_t5C8E87BA271B0DECA837A3BF9093AC3560DB3D5D_StaticFields::get_offset_of_outputEncoding_4(), Console_t5C8E87BA271B0DECA837A3BF9093AC3560DB3D5D_StaticFields::get_offset_of_cancel_event_5(), Console_t5C8E87BA271B0DECA837A3BF9093AC3560DB3D5D_StaticFields::get_offset_of_cancel_handler_6(), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize295 = { sizeof (WindowsConsole_tE2543F6EAD1001D1F2DE2CC0A5495048EED8C21B), -1, sizeof(WindowsConsole_tE2543F6EAD1001D1F2DE2CC0A5495048EED8C21B_StaticFields), 0 }; extern const int32_t g_FieldOffsetTable295[2] = { WindowsConsole_tE2543F6EAD1001D1F2DE2CC0A5495048EED8C21B_StaticFields::get_offset_of_ctrlHandlerAdded_0(), WindowsConsole_tE2543F6EAD1001D1F2DE2CC0A5495048EED8C21B_StaticFields::get_offset_of_cancelHandler_1(), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize296 = { sizeof (WindowsCancelHandler_t1D05BCFB512603DCF87A126FE9969F1D876B9B51), sizeof(Il2CppMethodPointer), 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize297 = { sizeof (InternalCancelHandler_t2DD134D8150B67E2F9FAD1BC2E6BE92EED57968A), sizeof(Il2CppMethodPointer), 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize298 = { sizeof (ConsoleDriver_t4F24DB42600CA82912181D5D312902B8BEFEE101), -1, sizeof(ConsoleDriver_t4F24DB42600CA82912181D5D312902B8BEFEE101_StaticFields), 0 }; extern const int32_t g_FieldOffsetTable298[3] = { ConsoleDriver_t4F24DB42600CA82912181D5D312902B8BEFEE101_StaticFields::get_offset_of_driver_0(), ConsoleDriver_t4F24DB42600CA82912181D5D312902B8BEFEE101_StaticFields::get_offset_of_is_console_1(), ConsoleDriver_t4F24DB42600CA82912181D5D312902B8BEFEE101_StaticFields::get_offset_of_called_isatty_2(), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize299 = { sizeof (DelegateData_t1BF9F691B56DAE5F8C28C5E084FDE94F15F27BBE), -1, 0, 0 }; extern const int32_t g_FieldOffsetTable299[3] = { DelegateData_t1BF9F691B56DAE5F8C28C5E084FDE94F15F27BBE::get_offset_of_target_type_0(), DelegateData_t1BF9F691B56DAE5F8C28C5E084FDE94F15F27BBE::get_offset_of_method_name_1(), DelegateData_t1BF9F691B56DAE5F8C28C5E084FDE94F15F27BBE::get_offset_of_curried_first_arg_2(), }; #ifdef __clang__ #pragma clang diagnostic pop #endif
45.635133
319
0.851989
[ "object" ]
15d4157f4a8ce2be781f6ca8a043cfa1ba29c229
21,087
cc
C++
Message.cc
rannger/irc
e409aca27eb3fe5d0334c375640f36270378e32c
[ "MIT" ]
null
null
null
Message.cc
rannger/irc
e409aca27eb3fe5d0334c375640f36270378e32c
[ "MIT" ]
null
null
null
Message.cc
rannger/irc
e409aca27eb3fe5d0334c375640f36270378e32c
[ "MIT" ]
null
null
null
#include "Message.h" #include "macro.h" #include <regex> #include <sstream> #include <utility> #include <memory> inline std::vector<str_t> &split(const str_t &s, char delim, std::vector<str_t> &elems) { std::stringstream *ss = new std::stringstream(s); str_t *item = new str_t(); while (std::getline(*ss, *item, delim)) elems.push_back(*item); delete ss; delete item; return elems; } inline std::vector<str_t>* split(const str_t &s, char delim) { std::vector<str_t> *elems = new std::vector<str_t>(); ::split(s, delim, *elems); return elems; } const char* const ircflags[][2] = { {"001","RPL_WELCOME"}, {"002","RPL_YOURHOST"}, {"003","RPL_CREATED"}, {"004","RPL_MYINFO"}, {"004","RPL_MYINFO"}, {"005","RPL_BOUNCE"}, {"005","RPL_ISUPPORT"}, {"006","RPL_MAP"}, {"007","RPL_MAPEND"}, {"008","RPL_SNOMASK"}, {"009","RPL_STATMEMTOT"}, {"010","RPL_BOUNCE"}, {"010","RPL_STATMEM"}, {"014","RPL_YOURCOOKIE"}, {"015","RPL_MAP"}, {"016","RPL_MAPMORE"}, {"017","RPL_MAPEND"}, {"042","RPL_YOURID"}, {"043","RPL_SAVENICK"}, {"050","RPL_ATTEMPTINGJUNC"}, {"051","RPL_ATTEMPTINGREROUTE"}, {"200","RPL_TRACELINK"}, {"201","RPL_TRACECONNECTING"}, {"202","RPL_TRACEHANDSHAKE"}, {"203","RPL_TRACEUNKNOWN"}, {"204","RPL_TRACEOPERATOR"}, {"205","RPL_TRACEUSER"}, {"206","RPL_TRACESERVER"}, {"207","RPL_TRACESERVICE"}, {"208","RPL_TRACENEWTYPE"}, {"209","RPL_TRACECLASS"}, {"210","RPL_TRACERECONNECT"}, {"210","RPL_STATS"}, {"211","RPL_STATSLINKINFO"}, {"212","RPL_STATSCOMMANDS"}, {"213","RPL_STATSCLINE"}, {"214","RPL_STATSNLINE"}, {"215","RPL_STATSILINE"}, {"216","RPL_STATSKLINE"}, {"217","RPL_STATSQLINE"}, {"217","RPL_STATSPLINE"}, {"218","RPL_STATSYLINE"}, {"219","RPL_ENDOFSTATS"}, {"220","RPL_STATSPLINE"}, {"220","RPL_STATSBLINE"}, {"221","RPL_UMODEIS"}, {"222","RPL_MODLIST"}, {"222","RPL_SQLINE_NICK"}, {"222","RPL_STATSBLINE"}, {"223","RPL_STATSELINE"}, {"223","RPL_STATSGLINE"}, {"224","RPL_STATSFLINE"}, {"224","RPL_STATSTLINE"}, {"225","RPL_STATSDLINE"}, {"225","RPL_STATSZLINE"}, {"225","RPL_STATSELINE"}, {"226","RPL_STATSCOUNT"}, {"226","RPL_STATSNLINE"}, {"227","RPL_STATSGLINE"}, {"227","RPL_STATSVLINE"}, {"228","RPL_STATSQLINE"}, {"231","RPL_SERVICEINFO"}, {"232","RPL_ENDOFSERVICES"}, {"232","RPL_RULES"}, {"233","RPL_SERVICE"}, {"234","RPL_SERVLIST"}, {"235","RPL_SERVLISTEND"}, {"236","RPL_STATSVERBOSE"}, {"237","RPL_STATSENGINE"}, {"238","RPL_STATSFLINE"}, {"239","RPL_STATSIAUTH"}, {"240","RPL_STATSVLINE"}, {"240","RPL_STATSXLINE"}, {"241","RPL_STATSLLINE"}, {"242","RPL_STATSUPTIME"}, {"243","RPL_STATSOLINE"}, {"244","RPL_STATSHLINE"}, {"245","RPL_STATSSLINE"}, {"246","RPL_STATSPING"}, {"246","RPL_STATSTLINE"}, {"246","RPL_STATSULINE"}, {"247","RPL_STATSBLINE"}, {"247","RPL_STATSXLINE"}, {"247","RPL_STATSGLINE"}, {"248","RPL_STATSULINE"}, {"248","RPL_STATSDEFINE"}, {"249","RPL_STATSULINE"}, {"249","RPL_STATSDEBUG"}, {"250","RPL_STATSDLINE"}, {"250","RPL_STATSCONN"}, {"251","RPL_LUSERCLIENT"}, {"252","RPL_LUSEROP"}, {"253","RPL_LUSERUNKNOWN"}, {"254","RPL_LUSERCHANNELS"}, {"255","RPL_LUSERME"}, {"256","RPL_ADMINME"}, {"257","RPL_ADMINLOC1"}, {"258","RPL_ADMINLOC2"}, {"259","RPL_ADMINEMAIL"}, {"261","RPL_TRACELOG"}, {"262","RPL_TRACEPING"}, {"262","RPL_TRACEEND"}, {"263","RPL_TRYAGAIN"}, {"265","RPL_LOCALUSERS"}, {"266","RPL_GLOBALUSERS"}, {"267","RPL_START_NETSTAT"}, {"268","RPL_NETSTAT"}, {"269","RPL_END_NETSTAT"}, {"270","RPL_PRIVS"}, {"271","RPL_SILELIST"}, {"272","RPL_ENDOFSILELIST"}, {"273","RPL_NOTIFY"}, {"274","RPL_ENDNOTIFY"}, {"274","RPL_STATSDELTA"}, {"275","RPL_STATSDLINE"}, {"276","RPL_VCHANEXIST"}, {"277","RPL_VCHANLIST"}, {"278","RPL_VCHANHELP"}, {"280","RPL_GLIST"}, {"281","RPL_ENDOFGLIST"}, {"281","RPL_ACCEPTLIST"}, {"282","RPL_ENDOFACCEPT"}, {"282","RPL_JUPELIST"}, {"283","RPL_ALIST"}, {"283","RPL_ENDOFJUPELIST"}, {"284","RPL_ENDOFALIST"}, {"284","RPL_FEATURE"}, {"285","RPL_GLIST_HASH"}, {"285","RPL_CHANINFO_HANDLE"}, {"285","RPL_NEWHOSTIS"}, {"286","RPL_CHANINFO_USERS"}, {"286","RPL_CHKHEAD"}, {"287","RPL_CHANINFO_CHOPS"}, {"287","RPL_CHANUSER"}, {"288","RPL_CHANINFO_VOICES"}, {"288","RPL_PATCHHEAD"}, {"289","RPL_CHANINFO_AWAY"}, {"289","RPL_PATCHCON"}, {"290","RPL_CHANINFO_OPERS"}, {"290","RPL_HELPHDR"}, {"290","RPL_DATASTR"}, {"291","RPL_CHANINFO_BANNED"}, {"291","RPL_HELPOP"}, {"291","RPL_ENDOFCHECK"}, {"292","RPL_CHANINFO_BANS"}, {"292","RPL_HELPTLR"}, {"293","RPL_CHANINFO_INVITE"}, {"293","RPL_HELPHLP"}, {"294","RPL_CHANINFO_INVITES"}, {"294","RPL_HELPFWD"}, {"295","RPL_CHANINFO_KICK"}, {"295","RPL_HELPIGN"}, {"296","RPL_CHANINFO_KICKS"}, {"299","RPL_END_CHANINFO"}, {"300","RPL_NONE"}, {"301","RPL_AWAY"}, {"301","RPL_AWAY"}, {"302","RPL_USERHOST"}, {"303","RPL_ISON"}, {"304","RPL_TEXT"}, {"305","RPL_UNAWAY"}, {"306","RPL_NOWAWAY"}, {"307","RPL_USERIP"}, {"307","RPL_WHOISREGNICK"}, {"307","RPL_SUSERHOST"}, {"308","RPL_NOTIFYACTION"}, {"308","RPL_WHOISADMIN"}, {"308","RPL_RULESSTART"}, {"309","RPL_NICKTRACE"}, {"309","RPL_WHOISSADMIN"}, {"309","RPL_ENDOFRULES"}, {"309","RPL_WHOISHELPER"}, {"310","RPL_WHOISSVCMSG"}, {"310","RPL_WHOISHELPOP"}, {"310","RPL_WHOISSERVICE"}, {"311","RPL_WHOISUSER"}, {"312","RPL_WHOISSERVER"}, {"313","RPL_WHOISOPERATOR"}, {"314","RPL_WHOWASUSER"}, {"315","RPL_ENDOFWHO"}, {"316","RPL_WHOISCHANOP"}, {"317","RPL_WHOISIDLE"}, {"318","RPL_ENDOFWHOIS"}, {"319","RPL_WHOISCHANNELS"}, {"320","RPL_WHOISVIRT"}, {"320","RPL_WHOIS_HIDDEN"}, {"320","RPL_WHOISSPECIAL"}, {"321","RPL_LISTSTART"}, {"322","RPL_LIST"}, {"323","RPL_LISTEND"}, {"324","RPL_CHANNELMODEIS"}, {"325","RPL_UNIQOPIS"}, {"325","RPL_CHANNELPASSIS"}, {"326","RPL_NOCHANPASS"}, {"327","RPL_CHPASSUNKNOWN"}, {"328","RPL_CHANNEL_URL"}, {"329","RPL_CREATIONTIME"}, {"330","RPL_WHOWAS_TIME"}, {"330","RPL_WHOISACCOUNT"}, {"331","RPL_NOTOPIC"}, {"332","RPL_TOPIC"}, {"333","RPL_TOPICWHOTIME"}, {"334","RPL_LISTUSAGE"}, {"334","RPL_COMMANDSYNTAX"}, {"334","RPL_LISTSYNTAX"}, {"335","RPL_WHOISBOT"}, {"338","RPL_CHANPASSOK"}, {"338","RPL_WHOISACTUALLY"}, {"339","RPL_BADCHANPASS"}, {"340","RPL_USERIP"}, {"341","RPL_INVITING"}, {"342","RPL_SUMMONING"}, {"345","RPL_INVITED"}, {"346","RPL_INVITELIST"}, {"347","RPL_ENDOFINVITELIST"}, {"348","RPL_EXCEPTLIST"}, {"349","RPL_ENDOFEXCEPTLIST"}, {"351","RPL_VERSION"}, {"352","RPL_WHOREPLY"}, {"353","RPL_NAMREPLY"}, {"354","RPL_WHOSPCRPL"}, {"355","RPL_NAMREPLY_"}, {"357","RPL_MAP"}, {"358","RPL_MAPMORE"}, {"359","RPL_MAPEND"}, {"361","RPL_KILLDONE"}, {"362","RPL_CLOSING"}, {"363","RPL_CLOSEEND"}, {"364","RPL_LINKS"}, {"365","RPL_ENDOFLINKS"}, {"366","RPL_ENDOFNAMES"}, {"367","RPL_BANLIST"}, {"368","RPL_ENDOFBANLIST"}, {"369","RPL_ENDOFWHOWAS"}, {"371","RPL_INFO"}, {"372","RPL_MOTD"}, {"373","RPL_INFOSTART"}, {"374","RPL_ENDOFINFO"}, {"375","RPL_MOTDSTART"}, {"376","RPL_ENDOFMOTD"}, {"377","RPL_KICKEXPIRED"}, {"377","RPL_SPAM"}, {"378","RPL_BANEXPIRED"}, {"378","RPL_WHOISHOST"}, {"378","RPL_MOTD"}, {"379","RPL_KICKLINKED"}, {"379","RPL_WHOISMODES"}, {"380","RPL_BANLINKED"}, {"380","RPL_YOURHELPER"}, {"381","RPL_YOUREOPER"}, {"382","RPL_REHASHING"}, {"383","RPL_YOURESERVICE"}, {"384","RPL_MYPORTIS"}, {"385","RPL_NOTOPERANYMORE"}, {"386","RPL_QLIST"}, {"386","RPL_IRCOPS"}, {"387","RPL_ENDOFQLIST"}, {"387","RPL_ENDOFIRCOPS"}, {"388","RPL_ALIST"}, {"389","RPL_ENDOFALIST"}, {"391","RPL_TIME"}, {"391","RPL_TIME"}, {"391","RPL_TIME"}, {"391","RPL_TIME"}, {"392","RPL_USERSSTART"}, {"393","RPL_USERS"}, {"394","RPL_ENDOFUSERS"}, {"395","RPL_NOUSERS"}, {"396","RPL_HOSTHIDDEN"}, {"400","ERR_UNKNOWNERROR"}, {"401","ERR_NOSUCHNICK"}, {"402","ERR_NOSUCHSERVER"}, {"403","ERR_NOSUCHCHANNEL"}, {"404","ERR_CANNOTSENDTOCHAN"}, {"405","ERR_TOOMANYCHANNELS"}, {"406","ERR_WASNOSUCHNICK"}, {"407","ERR_TOOMANYTARGETS"}, {"408","ERR_NOSUCHSERVICE"}, {"408","ERR_NOCOLORSONCHAN"}, {"409","ERR_NOORIGIN"}, {"411","ERR_NORECIPIENT"}, {"412","ERR_NOTEXTTOSEND"}, {"413","ERR_NOTOPLEVEL"}, {"414","ERR_WILDTOPLEVEL"}, {"415","ERR_BADMASK"}, {"416","ERR_TOOMANYMATCHES"}, {"416","ERR_QUERYTOOLONG"}, {"419","ERR_LENGTHTRUNCATED"}, {"421","ERR_UNKNOWNCOMMAND"}, {"422","ERR_NOMOTD"}, {"423","ERR_NOADMININFO"}, {"424","ERR_FILEERROR"}, {"425","ERR_NOOPERMOTD"}, {"429","ERR_TOOMANYAWAY"}, {"430","ERR_EVENTNICKCHANGE"}, {"431","ERR_NONICKNAMEGIVEN"}, {"432","ERR_ERRONEUSNICKNAME"}, {"433","ERR_NICKNAMEINUSE"}, {"434","ERR_SERVICENAMEINUSE"}, {"434","ERR_NORULES"}, {"435","ERR_SERVICECONFUSED"}, {"435","ERR_BANONCHAN"}, {"436","ERR_NICKCOLLISION"}, {"437","ERR_UNAVAILRESOURCE"}, {"437","ERR_BANNICKCHANGE"}, {"438","ERR_NICKTOOFAST"}, {"438","ERR_DEAD"}, {"439","ERR_TARGETTOOFAST"}, {"440","ERR_SERVICESDOWN"}, {"441","ERR_USERNOTINCHANNEL"}, {"442","ERR_NOTONCHANNEL"}, {"443","ERR_USERONCHANNEL"}, {"444","ERR_NOLOGIN"}, {"445","ERR_SUMMONDISABLED"}, {"446","ERR_USERSDISABLED"}, {"447","ERR_NONICKCHANGE"}, {"449","ERR_NOTIMPLEMENTED"}, {"451","ERR_NOTREGISTERED"}, {"452","ERR_IDCOLLISION"}, {"453","ERR_NICKLOST"}, {"455","ERR_HOSTILENAME"}, {"456","ERR_ACCEPTFULL"}, {"457","ERR_ACCEPTEXIST"}, {"458","ERR_ACCEPTNOT"}, {"459","ERR_NOHIDING"}, {"460","ERR_NOTFORHALFOPS"}, {"461","ERR_NEEDMOREPARAMS"}, {"462","ERR_ALREADYREGISTERED"}, {"463","ERR_NOPERMFORHOST"}, {"464","ERR_PASSWDMISMATCH"}, {"465","ERR_YOUREBANNEDCREEP"}, {"466","ERR_YOUWILLBEBANNED"}, {"467","ERR_KEYSET"}, {"468","ERR_INVALIDUSERNAME"}, {"468","ERR_ONLYSERVERSCANCHANGE"}, {"469","ERR_LINKSET"}, {"470","ERR_LINKCHANNEL"}, {"470","ERR_KICKEDFROMCHAN"}, {"471","ERR_CHANNELISFULL"}, {"472","ERR_UNKNOWNMODE"}, {"473","ERR_INVITEONLYCHAN"}, {"474","ERR_BANNEDFROMCHAN"}, {"475","ERR_BADCHANNELKEY"}, {"476","ERR_BADCHANMASK"}, {"477","ERR_NOCHANMODES"}, {"477","ERR_NEEDREGGEDNICK"}, {"478","ERR_BANLISTFULL"}, {"479","ERR_BADCHANNAME"}, {"479","ERR_LINKFAIL"}, {"480","ERR_NOULINE"}, {"480","ERR_CANNOTKNOCK"}, {"481","ERR_NOPRIVILEGES"}, {"482","ERR_CHANOPRIVSNEEDED"}, {"483","ERR_CANTKILLSERVER"}, {"484","ERR_RESTRICTED"}, {"484","ERR_ISCHANSERVICE"}, {"484","ERR_DESYNC"}, {"484","ERR_ATTACKDENY"}, {"485","ERR_UNIQOPRIVSNEEDED"}, {"485","ERR_KILLDENY"}, {"485","ERR_CANTKICKADMIN"}, {"485","ERR_ISREALSERVICE"}, {"486","ERR_NONONREG"}, {"486","ERR_HTMDISABLED"}, {"486","ERR_ACCOUNTONLY"}, {"487","ERR_CHANTOORECENT"}, {"487","ERR_MSGSERVICES"}, {"488","ERR_TSLESSCHAN"}, {"489","ERR_VOICENEEDED"}, {"489","ERR_SECUREONLYCHAN"}, {"491","ERR_NOOPERHOST"}, {"492","ERR_NOSERVICEHOST"}, {"493","ERR_NOFEATURE"}, {"494","ERR_BADFEATURE"}, {"495","ERR_BADLOGTYPE"}, {"496","ERR_BADLOGSYS"}, {"497","ERR_BADLOGVALUE"}, {"498","ERR_ISOPERLCHAN"}, {"499","ERR_CHANOWNPRIVNEEDED"}, {"501","ERR_UMODEUNKNOWNFLAG"}, {"502","ERR_USERSDONTMATCH"}, {"503","ERR_GHOSTEDCLIENT"}, {"503","ERR_VWORLDWARN"}, {"504","ERR_USERNOTONSERV"}, {"511","ERR_SILELISTFULL"}, {"512","ERR_TOOMANYWATCH"}, {"513","ERR_BADPING"}, {"514","ERR_INVALID_ERROR"}, {"514","ERR_TOOMANYDCC"}, {"515","ERR_BADEXPIRE"}, {"516","ERR_DONTCHEAT"}, {"517","ERR_DISABLED"}, {"518","ERR_NOINVITE"}, {"518","ERR_LONGMASK"}, {"519","ERR_ADMONLY"}, {"519","ERR_TOOMANYUSERS"}, {"520","ERR_OPERONLY"}, {"520","ERR_MASKTOOWIDE"}, {"520","ERR_WHOTRUNC"}, {"521","ERR_LISTSYNTAX"}, {"522","ERR_WHOSYNTAX"}, {"523","ERR_WHOLIMEXCEED"}, {"524","ERR_QUARANTINED"}, {"524","ERR_OPERSPVERIFY"}, {"525","ERR_REMOTEPFX"}, {"526","ERR_PFXUNROUTABLE"}, {"550","ERR_BADHOSTMASK"}, {"551","ERR_HOSTUNAVAIL"}, {"552","ERR_USINGSLINE"}, {"553","ERR_STATSSLINE"}, {"600","RPL_LOGON"}, {"601","RPL_LOGOFF"}, {"602","RPL_WATCHOFF"}, {"603","RPL_WATCHSTAT"}, {"604","RPL_NOWON"}, {"605","RPL_NOWOFF"}, {"606","RPL_WATCHLIST"}, {"607","RPL_ENDOFWATCHLIST"}, {"608","RPL_WATCHCLEAR"}, {"610","RPL_MAPMORE"}, {"610","RPL_ISOPER"}, {"611","RPL_ISLOCOP"}, {"612","RPL_ISNOTOPER"}, {"613","RPL_ENDOFISOPER"}, {"615","RPL_MAPMORE"}, {"615","RPL_WHOISMODES"}, {"616","RPL_WHOISHOST"}, {"617","RPL_DCCSTATUS"}, {"617","RPL_WHOISBOT"}, {"618","RPL_DCCLIST"}, {"619","RPL_ENDOFDCCLIST"}, {"619","RPL_WHOWASHOST"}, {"620","RPL_DCCINFO"}, {"620","RPL_RULESSTART"}, {"621","RPL_RULES"}, {"622","RPL_ENDOFRULES"}, {"623","RPL_MAPMORE"}, {"624","RPL_OMOTDSTART"}, {"625","RPL_OMOTD"}, {"626","RPL_ENDOFO"}, {"630","RPL_SETTINGS"}, {"631","RPL_ENDOFSETTINGS"}, {"640","RPL_DUMPING"}, {"641","RPL_DUMPRPL"}, {"642","RPL_EODUMP"}, {"660","RPL_TRACEROUTE_HOP"}, {"661","RPL_TRACEROUTE_START"}, {"662","RPL_MODECHANGEWARN"}, {"663","RPL_CHANREDIR"}, {"664","RPL_SERVMODEIS"}, {"665","RPL_OTHERUMODEIS"}, {"666","RPL_ENDOF_GENERIC"}, {"670","RPL_WHOWASDETAILS"}, {"671","RPL_WHOISSECURE"}, {"672","RPL_UNKNOWNMODES"}, {"673","RPL_CANNOTSETMODES"}, {"678","RPL_LUSERSTAFF"}, {"679","RPL_TIMEONSERVERIS"}, {"682","RPL_NETWORKS"}, {"687","RPL_YOURLANGUAGEIS"}, {"688","RPL_LANGUAGE"}, {"689","RPL_WHOISSTAFF"}, {"690","RPL_WHOISLANGUAGE"}, {"702","RPL_MODLIST"}, {"703","RPL_ENDOFMODLIST"}, {"704","RPL_HELPSTART"}, {"705","RPL_HELPTXT"}, {"706","RPL_ENDOFHELP"}, {"708","RPL_ETRACEFULL"}, {"709","RPL_ETRACE"}, {"710","RPL_KNOCK"}, {"711","RPL_KNOCKDLVR"}, {"712","ERR_TOOMANYKNOCK"}, {"713","ERR_CHANOPEN"}, {"714","ERR_KNOCKONCHAN"}, {"715","ERR_KNOCKDISABLED"}, {"716","RPL_TARGUMODEG"}, {"717","RPL_TARGNOTIFY"}, {"718","RPL_UMODEGMSG"}, {"720","RPL_OMOTDSTART"}, {"721","RPL_OMOTD"}, {"722","RPL_ENDOFOMOTD"}, {"723","ERR_NOPRIVS"}, {"724","RPL_TESTMARK"}, {"725","RPL_TESTLINE"}, {"726","RPL_NOTESTLINE"}, {"771","RPL_XINFO"}, {"773","RPL_XINFOSTART"}, {"774","RPL_XINFOEND"}, {"972","ERR_CANNOTDOCOMMAND"}, {"973","ERR_CANNOTCHANGEUMODE"}, {"974","ERR_CANNOTCHANGECHANMODE"}, {"975","ERR_CANNOTCHANGESERVERMODE"}, {"976","ERR_CANNOTSENDTONICK"}, {"977","ERR_UNKNOWNSERVERMODE"}, {"979","ERR_SERVERMODELOCK"}, {"980","ERR_BADCHARENCODING"}, {"981","ERR_TOOMANYLANGUAGES"}, {"982","ERR_NOLANGUAGE"}, {"983","ERR_TEXTTOOSHORT"}, {"999","ERR_NUMERIC_ERR"} }; namespace rirc { const str_t kMessagePrefix("IRCMessagePrefix"); const str_t kMessageCommand("IRCMessageCommand"); const str_t kMessageArges("IRCMessageArges"); const str_t kMessageTail("IRCMessageTail"); const str_t kMessageSource("IRCMessageSource"); Message::Message(const str_t& msg, const str_t & command, const str_t & prefix, const std::vector<str_t>& parameters, const str_t & trail) :m_msg(msg) ,m_Command(command) ,m_Prefix(prefix) ,m_Parameters(parameters) ,m_Trail(trail) { } Message::Message() { } Message::~Message() { } Message* Message::parseMessage(const str_t& message) { __IF_DO(message.empty(),return NULL;); static std::regex e ("^\\d{3}$"); auto trailDivider = message.find(" :"); bool haveTrailDivider = trailDivider != message.npos; std::auto_ptr< std::vector<str_t> > parts(new std::vector<str_t>()); str_t prefix; str_t command; std::vector<str_t> parameters; str_t trail; // With or without trail if (haveTrailDivider) { // Have trail, split by trail str_t uptotrail = message.substr(0, trailDivider); trail = message.substr(trailDivider + 2); std::vector<str_t> *res = ::split(uptotrail,' '); parts->insert(parts->begin(),res->begin(), res->end()); delete res; } else { // No trail, everything are parameters std::vector<str_t> *res = ::split(message,' '); parts->insert(parts->begin(),res->begin(), res->end()); delete res; } enum DecoderState { PREFIX, COMMAND, PARAMETER } state; bool first = true; state = PREFIX; for (const str_t & part : *parts) { switch (state) { // Prefix, or command... have to be decided case PREFIX: case COMMAND: { // Prefix, aka origin of message bool havePrefix = part[0] == ':'; if (havePrefix && first) { // Oh the sanity __IF_DO(part.size() < 2, return NULL;); // Have prefix state = COMMAND; prefix = part.substr(1); first = false; } else { // Have command state = PARAMETER; command = part; } break; } case PARAMETER: { parameters.push_back(part); break; } } } Message* msg = new Message(message, command, prefix, parameters, trail); return msg; } const dict_t& Message::ircFlags() { static dict_t* p_ircFlags = NULL; if (NULL == p_ircFlags) { p_ircFlags = new dict_t(); for (int i = 0; i < 500; ++i) { p_ircFlags->insert(std::pair<str_t,str_t>(ircflags[i][0],ircflags[i][1])); } } return *p_ircFlags; } }
32.243119
89
0.501067
[ "vector" ]
15d8d91c19c253c8ad542e65dfce97712c6c05a0
3,147
cpp
C++
Module1/problem/TSPReader.cpp
gbrsouza/HeuristicOptimization
22bbf7fe7be8cc4e4a0e6d7cd70f078c363a014d
[ "MIT" ]
null
null
null
Module1/problem/TSPReader.cpp
gbrsouza/HeuristicOptimization
22bbf7fe7be8cc4e4a0e6d7cd70f078c363a014d
[ "MIT" ]
null
null
null
Module1/problem/TSPReader.cpp
gbrsouza/HeuristicOptimization
22bbf7fe7be8cc4e4a0e6d7cd70f078c363a014d
[ "MIT" ]
null
null
null
// // Created by gabri on 11/10/2020. // #include <fstream> #include <iostream> #include <cmath> #include "TSPReader.h" #include "../util/Splitter.h" TSP TSPReader::loadInstance(const std::string& path) { unsigned int dimension = 0; int **tmpData = nullptr; std::string line; std::ifstream instance (path); if (instance.is_open()){ while (std::getline(instance, line)){ if (line.find("DIMENSION") != std::string::npos) dimension = std::stoi(Splitter::split(line)[1]); if (line.find("NODE_COORD_SECTION") != std::string::npos){ tmpData = static_cast<int **>(malloc(sizeof(int*) * dimension)); for (int i=0; i<dimension; i++) tmpData[i] = static_cast<int *>(malloc(sizeof(int) * dimension)); for (int i=0; i<dimension; i++) tmpData[i][i] = 0; // read nodes std::vector<EuclideanNode> nodes; for (int i=0; i<dimension;i++){ std::getline(instance, line); // std::cout << line << std::endl; std::vector<std::string> values = Splitter::split(line); nodes.emplace_back(i, std::stof(values[1]),std::stof(values[2])); } for (int i=0; i<dimension; i++){ for (int j=0; j<dimension; j++){ if (i != j){ tmpData[i][j] = EuclideanNode::calcCostEdge(nodes[i], nodes[j]); } } } } if (line.find("EDGE_WEIGHT_SECTION") != std::string::npos){ tmpData = static_cast<int **>(malloc(sizeof(int*) * dimension)); for (int i=0; i<dimension; i++) tmpData[i] = static_cast<int *>(malloc(sizeof(int) * dimension)); for (int i=0; i<dimension; i++) tmpData[i][i] = 0; for (int i=0; i<dimension-1; i++){ std::getline(instance, line); std::vector<std::string> values = Splitter::split(line); // for (int k=0; k<values.size();k++) // std::cout << values[k] << " "; // std::cout << std::endl; for (unsigned int j=dimension-1; j>i; j--){ int value = std::stoi(values[(dimension-i-1)-(j-i)]); tmpData[j][i] = value; tmpData[i][j] = value; } } } } instance.close(); } else std::cout << "Unable to open file" << path; // std::cout << "passou\n"; TSP tsp = TSP(dimension, tmpData); return tsp; } EuclideanNode::EuclideanNode(int id, float x, float y) : id(id), x(x), y(y) {} int EuclideanNode::calcCostEdge(const EuclideanNode& a, const EuclideanNode& b) { float xd = a.x - b.x; float yd = a.y - b.y; int dij = std::lround(std::sqrt(xd*xd + yd*yd)); return dij; } EuclideanNode::~EuclideanNode() = default;
34.582418
92
0.471242
[ "vector" ]
15db674a0cb7ed2eb3fd01f4728ac6a251a6630a
8,996
cpp
C++
IO/config/config.cpp
chenjiunfeng/openMaelstrom
6dc6ffe3501f056eb83d1d6306d2ac5ec754c192
[ "MIT" ]
45
2019-11-07T13:51:50.000Z
2022-02-11T01:51:14.000Z
IO/config/config.cpp
chenjiunfeng/openMaelstrom
6dc6ffe3501f056eb83d1d6306d2ac5ec754c192
[ "MIT" ]
2
2020-03-06T20:25:02.000Z
2021-02-07T21:45:39.000Z
IO/config/config.cpp
chenjiunfeng/openMaelstrom
6dc6ffe3501f056eb83d1d6306d2ac5ec754c192
[ "MIT" ]
10
2019-08-22T09:11:23.000Z
2022-02-07T07:04:55.000Z
#include <IO/config/config.h> #include <IO/config/initialize.h> #include <IO/config/parser.h> #include <IO/config/snapshot.h> #include <boost/algorithm/string.hpp> #include <boost/property_tree/json_parser.hpp> #include <boost/property_tree/ini_parser.hpp> #include <boost/property_tree/ptree.hpp> #include <iostream> #include <sstream> #include <string> #include <utility/helpers/arguments.h> #include <utility/helpers/log.h> #include <utility/identifier/uniform.h> #include <utility/template/tuple_for_each.h> #include <utility/volumeBullet.h> template<typename Ty> struct logUniform{ void operator()() { if constexpr (!Ty::visible) return; auto json = Ty::jsonName; logger(log_level::info) << json << " = " << IO::config::convertToString(*Ty::ptr) << std::endl; } }; template<typename P> struct readArray { void operator()(std::string name, std::shared_ptr<char> buffer, std::size_t allocSize, std::vector<std::tuple<std::string, std::size_t, void*>>& arrs) { if (P::qualifiedName == name) { void *ptr = malloc(allocSize); memcpy(ptr, buffer.get(), allocSize); arrs.push_back(std::make_tuple(P::qualifiedName, allocSize, ptr)); //std::cout << "array: " << name << " eS=" << elemSize << ", aS=" << allocSize // << ", elements = " << allocSize / elemSize << std::endl; } } }; template<typename Ty> struct parseUniform { void operator()(boost::property_tree::ptree& pt) { using namespace IO; using namespace IO::config; if constexpr (Ty::visible == true) { //std::cout << "Parsing " << Ty::jsonName << std::endl; parse<Ty>(pt); } } }; template<typename Ty> struct storeUniform { void operator()(boost::property_tree::ptree& pt) { using namespace IO; using namespace IO::config; if constexpr (Ty::visible == true) parseStore<Ty>(pt); } }; void IO::config::show_config() { //callOnTypes<logUniform>(uniforms_list); iterateParameters([](auto x) { if constexpr (!decltype(x)::visible) return; auto json = decltype(x)::jsonName; logger(log_level::info) << json << " = " << convertToString(*x.ptr) << std::endl; }); } void IO::config::load_config(std::string filepath) { std::string folder = filepath.substr(0, filepath.find_last_of(R"(/\)") + 1); std::stringstream ss; std::ifstream file(filepath); ss << file.rdbuf(); file.close(); boost::property_tree::ptree pt; boost::property_tree::read_json(ss, pt); std::vector < std::pair < std::string, std::string>> cmdArguments; for (auto j : arguments::cmd::instance().jsons) { std::vector<std::string> splitVec; boost::split(splitVec, j, boost::is_any_of("="), boost::token_compress_on); if (splitVec.size() == 2) { pt.put(splitVec[0], splitVec[1]); cmdArguments.push_back(std::make_pair(splitVec[0], splitVec[1])); } } std::ifstream iss; std::vector<std::tuple<std::string, std::size_t, void*>> arrs; if(arguments::cmd::instance().snapped){ iss.open(arguments::cmd::instance().snapFile, std::ios::binary); while (iss.good()) { int32_t size; std::string name; iss.read(reinterpret_cast<char *>(&size), sizeof(size)); name.resize(size); iss.read(&name[0], size * sizeof(char)); std::size_t elemSize, allocSize; iss.read(reinterpret_cast<char *>(&elemSize), sizeof(elemSize)); iss.read(reinterpret_cast<char *>(&allocSize), sizeof(allocSize)); std::shared_ptr<char> buffer(new char[allocSize], std::default_delete<char[]>()); //auto buffer = std::make_shared<char>(allocSize); iss.read(buffer.get(), allocSize); if (allocSize != elemSize) { // read an array callOnTypes<readArray>(arrays_list, name, buffer, allocSize, arrs); iterateArraysList([&](auto x){ using P = std::decay_t<decltype(x)>; if(P::variableName == name){ void *ptr = malloc(allocSize); memcpy(ptr, buffer.get(), allocSize); arrs.push_back(std::make_tuple(P::variableName, allocSize, ptr)); //std::cout << "array: " << name << " eS=" << elemSize << ", aS=" << allocSize // << ", elements = " << allocSize / elemSize << std::endl; } }); } else { iterateParameters([&](auto x){ using P = std::decay_t<decltype(x)>; if(P::jsonName == name){ // std::cout << P::jsonName << " -> "; int32_t llen = 0; iss.read(reinterpret_cast<char *>(&llen), sizeof(llen)); //std::cout << ": " << llen << " -> "; std::string val = ""; val.resize(llen); iss.read(val.data(), llen * sizeof(char)); //std::cout << val << std::endl; bool found = false; for (const auto&[key, val] : cmdArguments) { if (key == P::jsonName) found = true; } if (name.find("$") != std::string::npos) return; if(!found) pt.put(P::jsonName, val); } }); } } defaultRigidAllocate(); } // std::ostringstream oss; // boost::property_tree::json_parser::write_json(oss, pt); // std::string inifile_text = oss.str(); // std::cout << inifile_text << std::endl; // std::cout << "Done reading dump file" << std::endl; //try { // callOnTypes<parseUniform>(uniforms_list, pt); //} //catch (std::exception e) { // std::cerr << e.what() << std::endl; // throw; //} iterateParameters([&pt](auto x) { if constexpr (decltype(x)::visible == true) parse<decltype(x)>(pt); }); get<parameters::config_file>() = filepath; get<parameters::config_folder>() = folder; if (get<parameters::max_numptcls>() == 0) get<parameters::max_numptcls>() = get<parameters::num_ptcls>(); initKernel(); initDomain(); initBoundary(); initParameters(); defaultAllocate(); initVolumeBoundary(); iterateArraysList([&](auto x) { using P = decltype(x); auto it = find_if(begin(arrs), end(arrs), [](const auto& e) { return get<std::string>(e) == P::qualifiedName; }); if (it == end(arrs)) return; auto& alloc = *it; if (P::qualifiedName == std::get<std::string>(alloc) && P::ptr != nullptr && P::valid()) memcpy(P::ptr, std::get<void*>(alloc), std::get<std::size_t>(alloc)); }); bt::World::instance().resetWorld(); // for(auto& alloc : arrs){ // for_each_r(arrays_list, [&](auto x){ // using P = std::decay_t<decltype(x)>; ////std::cout << std::get<std::string>(alloc) << std::endl; // if(P::qualifiedName == std::get<std::string>(alloc) && P::ptr != nullptr && P::valid()) // memcpy(P::ptr, std::get<void*>(alloc), std::get<std::size_t>(alloc)); // }); // } initSnapshot(); for(auto& alloc : arrs){ free(std::get<void*>(alloc)); } } void IO::config::save_config(std::string filepath) { std::string folder = filepath.substr(0, filepath.find_last_of(R"(/\)") + 1); std::stringstream ss; std::ofstream file(filepath); boost::property_tree::ptree pt2; // callOnTypes<storeUniform>(uniforms_list, pt2); iterateParameters([&pt2](auto x) { if constexpr (decltype(x)::visible == true) parseStore<decltype(x)>(pt2); }); boost::property_tree::write_json(file, pt2); file.close(); } std::vector<IO::config::SnapShot *> IO::config::snaps; bool has_snap = false; void IO::config::take_snapshot() { for (auto &ptr : snaps) ptr->save(); has_snap = true; } #include <utility/volumeBullet.h> void IO::config::load_snapshot() { if (has_snap) { for (auto &ptr : snaps) ptr->load(); if(get<parameters::volumeBoundaryCounter>() > 0) bt::World::instance().resetWorld(); } } void IO::config::clear_snapshot() { for (auto &ptr : snaps) ptr->clear(); has_snap = false; } bool IO::config::has_snapshot() { return has_snap; } std::string IO::config::bytesToString(size_t bytes) { double b = static_cast<double>(bytes); std::stringstream sstream; if (b < 1024.0) sstream << b << "B"; else { sstream << std::setprecision(2) << std::fixed; if (b < 1024.0 * 1024.0) sstream << b / 1024.0 << "KiB"; else if (b < 1024.0 * 1024.0 * 1024.0) sstream << b / 1024.0 / 1024.0 << "MiB"; else if (b < 1024.0 * 1024.0 * 1024.0 * 1024.0) sstream << b / 1024.0 / 1024.0 / 1024.0 << "GiB"; } return sstream.str(); } std::string IO::config::numberToString(double b) { std::stringstream sstream; if (abs(b) < 1000.0 && abs(b) > 1.000) sstream << b; else if (abs(b) > 1000.0) { sstream << std::setprecision(2) << std::fixed; if (abs(b) < 1000.0 * 1000.0) sstream << b / 1000.0 << "K"; else if (abs(b) < 1000.0 * 1000.0 * 1000.0) sstream << b / 1000.0 / 1000.0 << "M"; else if (abs(b) < 1000.0 * 1000.0 * 1000.0 * 1000.0) sstream << b / 1000.0 / 1000.0 / 1000.0 << "G"; } else if (abs(b) < 1.000) { sstream << std::setprecision(2) << std::fixed; if (abs(b) < 1.0 / 1000.0 / 1000.0) sstream << b / 1000.0 << "m"; else if (abs(b) < 1000.0 / 1000.0 / 1000.0) sstream << b / 1000.0 / 1000.0 << "u"; else if (abs(b) < 1000.0 / 1000.0 / 1000.0 / 1000.0) sstream << b / 1000.0 / 1000.0 / 1000.0 << "n"; } return sstream.str(); }
30.391892
153
0.610271
[ "vector" ]
15deebfc9cbbf4d2d2718d1182d6a603cb3f5ceb
30,834
cpp
C++
GdaConst.cpp
chenyoujie/GeoDa
87504344512bd0da2ccadfb160ecd1e918a52f06
[ "BSL-1.0" ]
null
null
null
GdaConst.cpp
chenyoujie/GeoDa
87504344512bd0da2ccadfb160ecd1e918a52f06
[ "BSL-1.0" ]
null
null
null
GdaConst.cpp
chenyoujie/GeoDa
87504344512bd0da2ccadfb160ecd1e918a52f06
[ "BSL-1.0" ]
null
null
null
/** * GeoDa TM, Copyright (C) 2011-2015 by Luc Anselin - all rights reserved * * This file is part of GeoDa. * * GeoDa 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 3 of the License, or * (at your option) any later version. * * GeoDa 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, see <http://www.gnu.org/licenses/>. */ #include "GdaConst.h" #include "GeneralWxUtils.h" #include "GenUtils.h" #include <wx/mstream.h> // 10 local + 29 http const char* GdaConst::sample_names[] = { "Moral Statistics of France (1833)", "US County Homicides", "House Prices Baltimore", "House Prices Boston", "Columbus Crime", "NC SIDS", "Nepal Aid", "NYC Data", "Malaria Colombia Cities", "Phoenix ACS", "San Francisco Crime" }; const char* GdaConst::sample_layer_names[] = { "Guerry", "US Homicides", "Baltimore Home Sales", "Boston Home Sales", "Columbus Crime", "SIDS NC", "Nepal Aid", "NYC Data", "Colombia Malaria", "Phoenix ACS", "SanFran Crime" }; const char* GdaConst::sample_datasources[] = { "samples.sqlite", "samples.sqlite", "samples.sqlite", "samples.sqlite", "samples.sqlite", "samples.sqlite", "samples.sqlite", "samples.sqlite", "samples.sqlite", "samples.sqlite", "samples.sqlite" }; const char* GdaConst::raw_zoom_in[] = { "16 16 48 1", " g None", ". g #979797", "+ g #787878", "@ g #686868", "# g #717171", "$ g #8A8A8A", "% g #909090", "& g #D6D6D6", "* g #EFEFEF", "= g #DEDEDE", "- g #A3A3A3", "; g #6D6D6D", "> g #9F9F9F", ", g #AAAAAA", "' g #F8F8F8", ") g #C4C4C4", "! g #929292", "~ g #F5F5F5", "{ g #F2F2F2", "] g #444444", "^ g #EEEEEE", "/ g #F6F6F6", "( g #8E8E8E", "_ g #8F8F8F", ": g #D5D5D5", "< g #E8E8E8", "[ g #E1E1E1", "} g #F3F3F3", "| g #D0D0D0", "1 g #707070", "2 g #EDEDED", "3 g #DCDCDC", "4 g #676767", "5 g #D8D8D8", "6 g #C0C0C0", "7 g #777777", "8 g #A1A1A1", "9 g #EBEBEB", "0 g #828282", "a g #6B6B6B", "b g #B2B2B2", "c g #696969", "d g #949494", "e g #CACACA", "f g #BEBEBE", "g g #848484", "h g #747474", "i g #666666", " ", " .+@#$ ", " #%&*=-;> ", " #,''''')@ ", " .!~'{]^{/(_ ", " +:'{<][<}|1 ", " @2']]]]]^34 ", " 15'^[]:[^67 ", " _8'{<][<90. ", " ab'}^^},; ", " >cde3fg#hii ", " _#@+. iii ", " iii ", " ii ", " ", " " }; const char* GdaConst::raw_zoom_out[] = { "16 16 48 1", " g None", ". g #979797", "+ g #787878", "@ g #686868", "# g #717171", "$ g #8A8A8A", "% g #909090", "& g #D6D6D6", "* g #EFEFEF", "= g #DEDEDE", "- g #A3A3A3", "; g #6D6D6D", "> g #9F9F9F", ", g #AAAAAA", "' g #F8F8F8", ") g #C4C4C4", "! g #929292", "~ g #F5F5F5", "{ g #F2F2F2", "] g #EDEDED", "^ g #EEEEEE", "/ g #F6F6F6", "( g #8E8E8E", "_ g #8F8F8F", ": g #D5D5D5", "< g #E8E8E8", "[ g #E1E1E1", "} g #F3F3F3", "| g #D0D0D0", "1 g #707070", "2 g #444444", "3 g #DCDCDC", "4 g #676767", "5 g #D8D8D8", "6 g #C0C0C0", "7 g #777777", "8 g #A1A1A1", "9 g #EBEBEB", "0 g #828282", "a g #6B6B6B", "b g #B2B2B2", "c g #696969", "d g #949494", "e g #CACACA", "f g #BEBEBE", "g g #848484", "h g #747474", "i g #666666", " ", " .+@#$ ", " #%&*=-;> ", " #,''''')@ ", " .!~'{]^{/(_ ", " +:'{<[[<}|1 ", " @]'22222^34 ", " 15'^[::[^67 ", " _8'{<[[<90. ", " ab'}^^},; ", " >cde3fg#hii ", " _#@+. iii ", " iii ", " ii ", " ", " "}; const char* GdaConst::delete_icon_xpm[] = { "16 16 31 1 ", " c #CD5050", ". c #D76262", "X c #DA6868", "o c #DB6868", "O c #DB6969", "+ c #DC6969", "@ c #DC6B6B", "# c #DE6B6B", "$ c #DD6C6C", "% c #E17070", "& c #E07171", "* c #E07272", "= c #E17272", "- c #E27373", "; c #E37373", ": c #E37474", "> c #EB7C7C", ", c #F88E8E", "< c #FB9191", "1 c #FB9292", "2 c #FA9393", "3 c #FD9191", "4 c #FF9191", "5 c #FF9393", "6 c #FD9494", "7 c #FE9494", "8 c #FF9494", "9 c #FF9595", "0 c #FF9696", "q c #FF9898", "w c None", "wwwwwwwwwwwwwwww", "www wwwwwwwwwwww", "ww#8#wwwwwww-5.w", "ww&88Owwwww&88Ow", "www&88Owww-88Oww", "wwww-88$w-88Owww", "wwwww&q,>88Owwww", "wwwwww-111Owwwww", "wwwwww&125Owwwww", "wwwww&q,>18Owwww", "wwww&85$w&88Owww", "www&88#www-88Oww", "ww&q8Owwwww&88Ow", "ww#8$wwwwwww-5.w", "www wwwwwwwwwwww", "wwwwwwwwwwwwwwww" }; wxString GdaConst::FieldTypeToStr(GdaConst::FieldType ft) { if (ft == GdaConst::double_type) return "real"; if (ft == GdaConst::long64_type) return "integer"; if (ft == GdaConst::string_type) return "string"; if (ft == GdaConst::date_type) return "date"; if (ft == GdaConst::time_type) return "time"; if (ft == GdaConst::datetime_type) return "datetime"; if (ft == GdaConst::placeholder_type) return "placeholder"; return "unknown"; } std::map<std::string, GdaConst::DataSourceType> GdaConst::datasrc_str_to_type; std::map<GdaConst::DataSourceType, std::string> GdaConst::datasrc_type_to_str; std::map<GdaConst::DataSourceType,std::string> GdaConst::datasrc_type_to_prefix; std::map<GdaConst::DataSourceType,std::string> GdaConst::datasrc_type_to_fullname; std::map<GdaConst::DataSourceType, std::set<std::string> > GdaConst::datasrc_req_flds; std::map<GdaConst::DataSourceType, std::set<std::string> > GdaConst::datasrc_opt_flds; wxString GdaConst::db_field_name_regex; wxString GdaConst::db_field_name_illegal_regex; wxString GdaConst::default_field_name_regex; wxString GdaConst::default_field_name_illegal_regex; wxString GdaConst::no_field_warning; wxString GdaConst::db_field_warning; wxString GdaConst::default_field_warning; std::map<GdaConst::DataSourceType, int> GdaConst::datasrc_field_lens; std::map<GdaConst::DataSourceType, int> GdaConst::datasrc_table_lens; std::map<GdaConst::DataSourceType, wxString> GdaConst::datasrc_field_warning; std::map<GdaConst::DataSourceType, wxString> GdaConst::datasrc_field_regex; std::map<GdaConst::DataSourceType, wxString> GdaConst::datasrc_field_illegal_regex; std::map<GdaConst::DataSourceType, bool> GdaConst::datasrc_field_casesensitive; wxCursor GdaConst::zoomInCursor; wxCursor GdaConst::zoomOutCursor; // Resource Files const wxString GdaConst::gda_prefs_fname_sqlite("geoda_prefs.sqlite"); const wxString GdaConst::gda_prefs_fname_json("geoda_prefs.json"); const wxString GdaConst::gda_prefs_html_table("html_entries"); const wxString GdaConst::gda_prefs_html_table_menu("menu_title"); const wxString GdaConst::gda_prefs_html_table_url("url"); wxFont* GdaConst::extra_small_font = 0; wxFont* GdaConst::small_font = 0; wxFont* GdaConst::medium_font = 0; wxFont* GdaConst::large_font = 0; uint64_t GdaConst::gda_user_seed = 0; bool GdaConst::use_gda_user_seed = false; int GdaConst::gdal_http_timeout = 5; bool GdaConst::enable_high_dpi_support = false; bool GdaConst::show_csv_configure_in_merge = false; bool GdaConst::show_recent_sample_connect_ds_dialog = true; bool GdaConst::use_cross_hatching = false; int GdaConst::transparency_highlighted = 255; int GdaConst::transparency_unhighlighted = 80; int GdaConst::transparency_map_on_basemap = 200; bool GdaConst::use_basemap_by_default = false; int GdaConst::default_basemap_selection = 0; bool GdaConst::hide_sys_table_postgres = false; bool GdaConst::hide_sys_table_sqlite = false; bool GdaConst::disable_crash_detect = false; bool GdaConst::disable_auto_upgrade = false; int GdaConst::plot_transparency_highlighted = 255; int GdaConst::plot_transparency_unhighlighted = 50; int GdaConst::gda_ogr_csv_header = 2; const wxPen* GdaConst::default_myshape_pen=0; const wxBrush* GdaConst::default_myshape_brush=0; //background color -- this is light gray const wxColour GdaConst::backColor(192, 192, 192); // background color -- this is light gray const wxColour GdaConst::darkColor(20, 20, 20); // color of text, frames, points -- this is dark cherry const wxColour GdaConst::textColor(128, 0, 64); // outliers color (also used for regression, etc.) -- blue const wxColour GdaConst::outliers_colour(0, 0, 255); // envelope color (also used for regression, etc.) -- blue const wxColour GdaConst::envelope_colour(0, 0, 255); const wxColour GdaConst::selectable_outline_color(0, 0, 0); // black const wxColour GdaConst::selectable_fill_color(49, 163, 84); // forest green const wxColour GdaConst::highlight_color(255, 255, 0); // yellow const wxColour GdaConst::canvas_background_color(255, 255, 255); // white const wxColour GdaConst::legend_background_color(255, 255, 255); // white // Map const wxSize GdaConst::map_default_size(600, 400); const int GdaConst::map_default_legend_width = 150; // this is a light forest green const wxColour GdaConst::map_default_fill_colour(49, 163, 84); const wxColour GdaConst::map_default_outline_colour(0, 0, 0); const wxColour GdaConst::map_default_highlight_colour(255, 255, 0); // yellow // Connectivity Map const wxSize GdaConst::conn_map_default_size(480, 350); // HTML Tan const wxColour GdaConst::conn_map_default_fill_colour(210, 180, 140); const wxColour GdaConst::conn_map_default_outline_colour(0, 0, 0); // HTML DarkBlue const wxColour GdaConst::conn_map_default_highlight_colour(0, 0, 139); // Map Movie const wxColour GdaConst::map_movie_default_fill_colour(49, 163, 84); const wxColour GdaConst::map_movie_default_highlight_colour(224, 113, 182); // Histogram const wxSize GdaConst::hist_default_size(600, 500); // Table const wxString GdaConst::placeholder_str("<placeholder>"); const wxString GdaConst::table_frame_title("Table"); const wxSize GdaConst::table_default_size(750, 500); const wxColour GdaConst::table_no_edit_color(80, 80, 80); // grey const wxColour GdaConst::table_row_sel_color(230, 220, 40); // golden const wxColour GdaConst::table_col_sel_color(181, 213, 251); // light blue // following is the combination of the above two. Light greenish const wxColour GdaConst::table_row_and_col_sel_color(206, 217, 146); // Scatterplot const wxSize GdaConst::scatterplot_default_size(500, 500); const wxColour GdaConst::scatterplot_scale_color(0, 0, 0); //const wxColour GdaConst::scatterplot_regression_color(0, 79, 241); //const wxColour GdaConst::scatterplot_regression_selected_color(204, 41, 44); //const wxColour GdaConst::scatterplot_regression_excluded_color(0, 146, 31); const wxColour GdaConst::scatterplot_regression_color(100, 0, 110); const wxColour GdaConst::scatterplot_regression_selected_color(204, 41, 44); const wxColour GdaConst::scatterplot_regression_excluded_color(0, 79, 241); const wxColour GdaConst::scatterplot_origin_axes_color(120, 120, 120); wxPen* GdaConst::scatterplot_reg_pen = 0; wxPen* GdaConst::scatterplot_reg_selected_pen = 0; wxPen* GdaConst::scatterplot_reg_excluded_pen = 0; wxPen* GdaConst::scatterplot_scale_pen = 0; wxPen* GdaConst::scatterplot_origin_axes_pen = 0; // Bubble Chart const wxSize GdaConst::bubble_chart_default_size(550, 400); const int GdaConst::bubble_chart_default_legend_width = 150; // 3D Plot // yellow const wxColour GdaConst::three_d_plot_default_highlight_colour(255, 255, 0); // white const wxColour GdaConst::three_d_plot_default_point_colour(255, 255, 255); // black const wxColour GdaConst::three_d_plot_default_background_colour(0, 0, 0); const wxSize GdaConst::three_d_default_size(700, 500); // Boxplot const wxSize GdaConst::boxplot_default_size(300, 500); const wxColour GdaConst::boxplot_point_color(0, 0, 255); const wxColour GdaConst::boxplot_median_color(219, 99, 28); // orange const wxColour GdaConst::boxplot_mean_point_color(20, 200, 20); // green const wxColour GdaConst::boxplot_q1q2q3_color(128, 0, 64); // dark cherry // PCP (Parallel Coordinate Plot) const wxSize GdaConst::pcp_default_size(600, 450); const wxColour GdaConst::pcp_line_color(128, 0, 64); // dark cherry const wxColour GdaConst::pcp_horiz_line_color(0, 98, 0); // dark green // Averages Chart const wxSize GdaConst::line_chart_default_size(800, 620); // colors defined in init() wxColour GdaConst::ln_cht_clr_regimes_hl; wxColour GdaConst::ln_cht_clr_sel_dark; wxColour GdaConst::ln_cht_clr_exl_dark; wxColour GdaConst::ln_cht_clr_tm1_dark; wxColour GdaConst::ln_cht_clr_tm2_dark; wxColour GdaConst::ln_cht_clr_sel_light; wxColour GdaConst::ln_cht_clr_exl_light; wxColour GdaConst::ln_cht_clr_tm1_light; wxColour GdaConst::ln_cht_clr_tm2_light; // Conditional View const wxSize GdaConst::cond_view_default_size(700, 500); // Category Classification const wxSize GdaConst::cat_classif_default_size(780, 520); const wxSize GdaConst::weights_man_dlg_default_size(700, 500); const wxSize GdaConst::data_change_type_frame_default_size(600, 400); std::vector<wxColour> GdaConst::qualitative_colors(10); const wxString GdaConst::html_submenu_title("Web Plugins"); /** Certain objects such as wxFont objects need to be created after wxWidgets is sufficiently initialized. This function will be called just once by GdaApp::OnInit() when the program begins. */ void GdaConst::init() { // standard GeoDa font creation. Through experimentation, as of the // wxWidgets 2.9.1 release, it appears that neither wxFont::SetPixelSize() // nor wxFont::SetPointSize() results in fonts of nearly similar vertical // height on all of our three supported platforms, Mac, Linux and Windows. // Therefore, at present we will specify sizes differently on each // platform according to experimentation. When we specify the font // using point size, it seems that Linux and Windows are very similar, but // Mac is considerably smaller. int ref_extra_small_pt_sz = 6; int ref_small_pt_sz = 8; int ref_medium_pt_sz = 12; int ref_large_pt_sz = 16; if (GeneralWxUtils::isMac()) { ref_extra_small_pt_sz += 4; ref_small_pt_sz += 4; ref_medium_pt_sz += 5; ref_large_pt_sz += 5; } if (GeneralWxUtils::isWindows()) { ref_extra_small_pt_sz += 2; } extra_small_font = wxFont::New(ref_extra_small_pt_sz, wxFONTFAMILY_SWISS, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, false, wxEmptyString, wxFONTENCODING_DEFAULT); small_font = wxFont::New(ref_small_pt_sz, wxFONTFAMILY_SWISS, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, false, wxEmptyString, wxFONTENCODING_DEFAULT); medium_font = wxFont::New(ref_medium_pt_sz, wxFONTFAMILY_SWISS, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, false, wxEmptyString, wxFONTENCODING_DEFAULT); large_font = wxFont::New(ref_large_pt_sz, wxFONTFAMILY_SWISS, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, false, wxEmptyString, wxFONTENCODING_DEFAULT); // GdaShape resources default_myshape_pen = wxBLACK_PEN; default_myshape_brush = wxTRANSPARENT_BRUSH; //ScatterPlot and ScatterNewPlot resources scatterplot_reg_pen = new wxPen(scatterplot_regression_color, 2); scatterplot_reg_selected_pen = new wxPen(scatterplot_regression_selected_color, 2); scatterplot_reg_excluded_pen = new wxPen(scatterplot_regression_excluded_color, 2); scatterplot_scale_pen = new wxPen(scatterplot_scale_color); scatterplot_origin_axes_pen = new wxPen(scatterplot_origin_axes_color, 1, wxSHORT_DASH); wxBitmap zoomin_bitmap(GdaConst::raw_zoom_in); zoomInCursor = wxCursor(zoomin_bitmap.ConvertToImage()); wxBitmap zoomout_bitmap(GdaConst::raw_zoom_out); zoomOutCursor = wxCursor(zoomout_bitmap.ConvertToImage()); // Averages Chart Colors ln_cht_clr_regimes_hl = wxColour(255,255,102); // yellow #FFFF66 ln_cht_clr_sel_dark = wxColour(204, 41, 44); // red ln_cht_clr_sel_light = GdaColorUtils::ChangeBrightness(ln_cht_clr_sel_dark,125); ln_cht_clr_exl_dark = wxColour(0, 79, 241); // blue ln_cht_clr_exl_light = GdaColorUtils::ChangeBrightness(ln_cht_clr_exl_dark, 125); ln_cht_clr_tm1_dark = wxColour(147, 36, 255); // purple ln_cht_clr_tm1_light = GdaColorUtils::ChangeBrightness(ln_cht_clr_tm1_dark, 125); ln_cht_clr_tm2_dark = wxColour(115, 61, 26); // brown ln_cht_clr_tm2_light = GdaColorUtils::ChangeBrightness(ln_cht_clr_tm2_dark, 125); // Following 4 colors are colour-blind safe colors from Color Brewer 2.0 // LineChartStats:: // wxColour _sample0_clr_light(178,223,138); // light green // wxColour _sample1_clr_light(166,206,227); // light blue // wxColour _sample0_clr_dark(51,160,44); // dark green // wxColour _sample1_clr_dark(31,120,180); // dark blue // From Colorbrewer 2.0 qualitative_colors[0] = wxColour(166, 206, 227); qualitative_colors[1] = wxColour(31, 120, 180); qualitative_colors[2] = wxColour(178, 223, 138); qualitative_colors[3] = wxColour(51, 160, 44); qualitative_colors[4] = wxColour(251, 154, 153); qualitative_colors[5] = wxColour(227, 26, 28); qualitative_colors[6] = wxColour(253, 191, 111); qualitative_colors[7] = wxColour(255, 127, 0); qualitative_colors[8] = wxColour(202, 178, 214); qualitative_colors[9] = wxColour(106, 61, 154); // Filenames or field names start with a letter, and they can contain any // combination of the letters A through Z, the digits 0 through 9, // the colon (:) (in dBASE II field names only), and the underscore (_) default_field_name_regex = "^[a-zA-Z][a-zA-Z0-9_]*$"; default_field_name_illegal_regex = "((^[^a-zA-Z]+)|[^a-zA-Z0-9_]+)"; // There might be a problem when field name contains ' or " when using // INSERT sql clause to export/save table. // Details: no problem in Postgresq; error in Oracle; unknown in MySQL db_field_name_regex = "[^'\"]+"; db_field_name_illegal_regex = "['\"]+"; // Warning message for valid field name of different field type no_field_warning = "There is no restriction of variable name."; db_field_warning = "A valid variable name should not contains any\n" "quotes (' or \")."; default_field_warning = "A valid variable name should have the first character be a\n" "letter, and the remaining characters be either letters,\n" "numbers or underscores."; datasrc_str_to_type["DBF"] = ds_dbf; datasrc_type_to_prefix[ds_dbf] = ""; datasrc_type_to_fullname[ds_dbf] = "dBase"; datasrc_table_lens[ds_dbf] = 128; datasrc_field_lens[ds_dbf] = 10; datasrc_field_warning[ds_dbf] = default_field_warning; datasrc_field_regex[ds_dbf] = default_field_name_regex; datasrc_field_illegal_regex[ds_dbf] = default_field_name_illegal_regex; datasrc_field_casesensitive[ds_dbf] = false; datasrc_str_to_type["ESRI Shapefile"] = ds_shapefile; datasrc_type_to_prefix[ds_shapefile] = ""; datasrc_type_to_fullname[ds_shapefile] = "ESRI Shapefile"; // share the same with DBF datasrc_table_lens[ds_shapefile] = 128; datasrc_field_lens[ds_shapefile] = 10; datasrc_field_warning[ds_shapefile] = default_field_warning; datasrc_field_regex[ds_shapefile] = default_field_name_regex; datasrc_field_illegal_regex[ds_shapefile] = default_field_name_illegal_regex; datasrc_field_casesensitive[ds_shapefile] = false; datasrc_str_to_type["FileGDB"] = ds_esri_file_geodb; datasrc_type_to_prefix[ds_esri_file_geodb] = ""; datasrc_type_to_fullname[ds_esri_file_geodb] = "ESRI File GeoDatabase"; //http://webhelp.esri.com/arcgisserver/9.3/java/index.htm#geodatabases/file_g-1445296021.htm datasrc_table_lens[ds_esri_file_geodb] = 160; datasrc_field_lens[ds_esri_file_geodb] = 64; datasrc_field_warning[ds_esri_file_geodb] = no_field_warning; datasrc_field_regex[ds_esri_file_geodb] = wxEmptyString; datasrc_field_casesensitive[ds_esri_file_geodb] = true; datasrc_str_to_type["PGeo"] = ds_esri_personal_gdb; datasrc_type_to_prefix[ds_esri_personal_gdb] = "PGeo"; datasrc_type_to_fullname[ds_esri_personal_gdb] ="ESRI Personal GeoDatabase"; //follows Microsoft Access .mdb datasrc_table_lens[ds_esri_personal_gdb] = 64; datasrc_field_lens[ds_esri_personal_gdb] = 64; datasrc_field_warning[ds_esri_personal_gdb] = no_field_warning; datasrc_field_regex[ds_esri_personal_gdb] = wxEmptyString; datasrc_field_casesensitive[ds_esri_personal_gdb] = true; datasrc_str_to_type["SDE"] = ds_esri_arc_sde; datasrc_type_to_prefix[ds_esri_arc_sde] = "SDE:"; datasrc_type_to_fullname[ds_esri_arc_sde] = "ESRI ArcSDE"; //http://help.arcgis.com/en/geodatabase/10.0/sdk/arcsde/api/constants_define_limits.htm //ArcSDE doesn't support writing, so following will be ignored datasrc_table_lens[ds_esri_arc_sde] = 32; datasrc_field_lens[ds_esri_arc_sde] = 32; datasrc_field_warning[ds_esri_arc_sde] = default_field_warning; datasrc_field_regex[ds_esri_arc_sde] = default_field_name_regex; datasrc_field_illegal_regex[ds_esri_arc_sde]=default_field_name_illegal_regex; datasrc_field_casesensitive[ds_esri_arc_sde] = true; datasrc_str_to_type["CSV"] = ds_csv; datasrc_type_to_prefix[ds_csv] = ""; datasrc_type_to_fullname[ds_csv] = "Comma Separated Value"; //CSV should have no restriction except the comma character, but we give //a limitation to a reasonable 128 length datasrc_table_lens[ds_csv] = 128; datasrc_field_lens[ds_csv] = 128; datasrc_field_warning[ds_csv] = "Field name should not contains comma(,)."; datasrc_field_regex[ds_csv] = "[^,]+"; datasrc_field_illegal_regex[ds_csv] = "[,]+"; datasrc_field_casesensitive[ds_csv] = true; datasrc_str_to_type["GeoJSON"] = ds_geo_json; datasrc_type_to_prefix[ds_geo_json] = ""; datasrc_type_to_fullname[ds_geo_json] = "GeoJSON"; //GeoJSON seams like has no restriction datasrc_table_lens[ds_geo_json] = 128; datasrc_field_lens[ds_geo_json] = 128; datasrc_field_warning[ds_geo_json] = db_field_warning; datasrc_field_regex[ds_geo_json] = db_field_name_regex; datasrc_field_illegal_regex[ds_geo_json] = db_field_name_illegal_regex; datasrc_field_casesensitive[ds_geo_json] = true; datasrc_str_to_type["GML"] = ds_gml; datasrc_type_to_prefix[ds_gml] = ""; datasrc_type_to_fullname[ds_gml] = "Geography Markup Language"; //http://en.wikipedia.org/wiki/XML datasrc_table_lens[ds_gml] = 128; datasrc_field_lens[ds_gml] = 128; datasrc_field_warning[ds_gml] = "A valid variable name should only contains either letters,\n" "numbers or underscores. Brackets (e.g. < or > ) are not allowed."; datasrc_field_regex[ds_gml] = "[^<> ]+"; datasrc_field_illegal_regex[ds_gml] = "[<> ]+"; datasrc_field_casesensitive[ds_gml] = true; datasrc_str_to_type["KML"] = ds_kml; datasrc_str_to_type["LIBKML"] = ds_kml; datasrc_type_to_prefix[ds_kml] = ""; datasrc_type_to_fullname[ds_kml] = "Keyhole Markup Language"; datasrc_table_lens[ds_kml] = 128; datasrc_field_lens[ds_kml] = 128; datasrc_field_warning[ds_kml] = db_field_warning; datasrc_field_regex[ds_kml] = db_field_name_regex; datasrc_field_illegal_regex[ds_kml] = db_field_name_illegal_regex; datasrc_field_casesensitive[ds_kml] = true; datasrc_str_to_type["MapInfo File"] = ds_mapinfo; datasrc_type_to_prefix[ds_mapinfo] = ""; datasrc_type_to_fullname[ds_mapinfo] = "MapInfo File (TAB and MIF/MID)"; datasrc_table_lens[ds_mapinfo] = 128; datasrc_field_lens[ds_mapinfo] = 32; datasrc_field_warning[ds_mapinfo] = default_field_warning; datasrc_field_regex[ds_mapinfo] = default_field_name_regex; datasrc_field_illegal_regex[ds_mapinfo] = default_field_name_illegal_regex; datasrc_field_casesensitive[ds_mapinfo] = true; datasrc_str_to_type["MySQL"] = ds_mysql; datasrc_type_to_prefix[ds_mysql] = "MYSQL:"; datasrc_type_to_fullname[ds_mysql] = "MySQL"; datasrc_table_lens[ds_mysql] = 64; datasrc_field_lens[ds_mysql] = 64; datasrc_field_warning[ds_mysql] = db_field_warning; datasrc_field_regex[ds_mysql] = db_field_name_regex; datasrc_field_illegal_regex[ds_mysql] = db_field_name_illegal_regex; datasrc_field_casesensitive[ds_mysql] = true; datasrc_str_to_type["OCI"] = ds_oci; datasrc_type_to_prefix[ds_oci] = "OCI:"; datasrc_type_to_fullname[ds_oci] = "Oracle Spatial"; datasrc_table_lens[ds_oci] = 30; datasrc_field_lens[ds_oci] = 30; datasrc_field_warning[ds_oci] = db_field_warning; datasrc_field_regex[ds_oci] = db_field_name_regex; datasrc_field_illegal_regex[ds_oci] = db_field_name_illegal_regex; datasrc_field_casesensitive[ds_oci] = false; datasrc_str_to_type["PostgreSQL"] = ds_postgresql; datasrc_type_to_prefix[ds_postgresql] = "PG:"; datasrc_type_to_fullname[ds_postgresql] = "PostgreSQL / PostGIS"; datasrc_table_lens[ds_postgresql] = 31; datasrc_field_lens[ds_postgresql] = 31; datasrc_field_warning[ds_postgresql] = db_field_warning; datasrc_field_regex[ds_postgresql] = db_field_name_regex; datasrc_field_illegal_regex[ds_postgresql] = db_field_name_illegal_regex; datasrc_field_casesensitive[ds_postgresql] = true; datasrc_str_to_type["CartoDB"] = ds_cartodb; datasrc_type_to_prefix[ds_cartodb] = "CartoDB:"; datasrc_type_to_fullname[ds_cartodb] = "CartoDB"; datasrc_table_lens[ds_cartodb] = 31; datasrc_field_lens[ds_cartodb] = 31; datasrc_field_warning[ds_cartodb] = db_field_warning; datasrc_field_regex[ds_cartodb] = db_field_name_regex; datasrc_field_illegal_regex[ds_cartodb] = db_field_name_illegal_regex; datasrc_field_casesensitive[ds_cartodb] = true; datasrc_str_to_type["SQLite"] = ds_sqlite; datasrc_type_to_prefix[ds_sqlite] = ""; datasrc_type_to_fullname[ds_sqlite] = "SQLite / Spatialite"; datasrc_table_lens[ds_sqlite] = 128; datasrc_field_lens[ds_sqlite] = 128; datasrc_field_warning[ds_sqlite] = no_field_warning; datasrc_field_regex[ds_sqlite] = wxEmptyString; datasrc_field_illegal_regex[ds_sqlite] = wxEmptyString; datasrc_field_casesensitive[ds_sqlite] = true; datasrc_str_to_type["GPKG"] = ds_gpkg; datasrc_type_to_prefix[ds_gpkg] = ""; datasrc_type_to_fullname[ds_gpkg] = "GeoPackage"; datasrc_table_lens[ds_gpkg] = 128; datasrc_field_lens[ds_gpkg] = 128; datasrc_field_warning[ds_gpkg] = no_field_warning; datasrc_field_regex[ds_gpkg] = wxEmptyString; datasrc_field_illegal_regex[ds_gpkg] = wxEmptyString; datasrc_field_casesensitive[ds_gpkg] = true; datasrc_str_to_type["WFS"] = ds_wfs; datasrc_type_to_prefix[ds_wfs] = "WFS:"; datasrc_type_to_fullname[ds_wfs] = "OGC Web Feature Service"; datasrc_table_lens[ds_wfs] = 128; datasrc_field_lens[ds_wfs] = 128; datasrc_field_warning[ds_wfs] = no_field_warning; datasrc_field_regex[ds_wfs] = wxEmptyString; datasrc_field_illegal_regex[ds_wfs] = wxEmptyString; datasrc_field_casesensitive[ds_wfs] = true; // Since XLS can be dBase, we use dBase as its field name limitation datasrc_str_to_type["XLS"] = ds_xls; datasrc_type_to_prefix[ds_xls] = ""; datasrc_type_to_fullname[ds_xls] = "Microsoft Excel"; datasrc_table_lens[ds_xls] = 128; datasrc_field_lens[ds_xls] = 10; datasrc_field_warning[ds_xls] = default_field_warning; datasrc_field_regex[ds_xls] = default_field_name_regex; datasrc_field_illegal_regex[ds_xls] = default_field_name_illegal_regex; datasrc_field_casesensitive[ds_xls] = false; datasrc_str_to_type["XLSX"] = ds_xlsx; datasrc_type_to_prefix[ds_xlsx] = ""; datasrc_type_to_fullname[ds_xlsx] = "Microsoft Excel Extensions"; datasrc_table_lens[ds_xlsx] = 128; datasrc_field_lens[ds_xlsx] = 10; datasrc_field_warning[ds_xlsx] = default_field_warning; datasrc_field_regex[ds_xlsx] = default_field_name_regex; datasrc_field_illegal_regex[ds_xlsx] = default_field_name_illegal_regex; datasrc_field_casesensitive[ds_xlsx] = false; datasrc_str_to_type["ODS"] = ds_ods; datasrc_type_to_prefix[ds_ods] = ""; datasrc_type_to_fullname[ds_ods] = "Open Office Spreadsheet"; datasrc_table_lens[ds_ods] = 128; datasrc_field_lens[ds_ods] = 128; datasrc_field_warning[ds_ods] = default_field_warning; datasrc_field_regex[ds_ods] = default_field_name_regex; datasrc_field_illegal_regex[ds_ods] = default_field_name_illegal_regex; datasrc_field_casesensitive[ds_ods] = false; //not supported yet //datasrc_str_to_type["OSM"] = ds_osm; //datasrc_type_to_prefix[ds_xls] = ""; //datasrc_type_to_fullname[ds_xls] = "OSM"; //datasrc_str_to_type["MSSQLSpatial"] = ds_ms_sql; //datasrc_type_to_prefix[ds_ms_sql] = "MSSQL:"; //datasrc_type_to_fullname[ds_ms_sql] = "Microsoft SQL Server"; //datasrc_str_to_type["ArcObjects"] = ds_esri_arc_obj; //datasrc_type_to_prefix[ds_esri_arc_obj] = "AO"; //datasrc_type_to_fullname[ds_esri_arc_obj] = "ESRI ArcObjects"; //datasrc_str_to_type["ODBC"] = ds_odbc; //datasrc_type_to_prefix[ds_odbc] = "ODBC:"; //datasrc_type_to_fullname[ds_odbc] = "ODBC"; typedef std::map<std::string, DataSourceType> ds_map; for (ds_map::iterator it=datasrc_str_to_type.begin(); it != datasrc_str_to_type.end(); it++) { datasrc_type_to_str[it->second] = it->first; datasrc_req_flds[it->second] = std::set<std::string>(); datasrc_opt_flds[it->second] = std::set<std::string>(); } typedef std::map<DataSourceType, std::set<std::string> > ds_fld_map; for (ds_fld_map::iterator it=datasrc_req_flds.begin(); it != datasrc_req_flds.end(); it++) { DataSourceType type = it->first; if (type == ds_esri_file_geodb || type == ds_csv || type == ds_dbf || type == ds_gml || type == ds_kml || type == ds_mapinfo || type == ds_shapefile || type == ds_sqlite || type == ds_gpkg || type == ds_xls || type == ds_geo_json || type == ds_osm) { // These are simple files, and a file name must be supplied it->second.insert("file"); } else if (type == ds_esri_arc_obj || type == ds_esri_personal_gdb || type == ds_esri_arc_sde || type == ds_mysql || type == ds_ms_sql || type == ds_oci || type == ds_odbc) { it->second.insert("user"); it->second.insert("pwd"); it->second.insert("host"); it->second.insert("port"); it->second.insert("db_name"); } else if ( type == ds_wfs) { it->second.insert("url"); } else if (type == ds_postgresql) { it->second.insert("db_name"); } } for (ds_fld_map::iterator it=datasrc_opt_flds.begin(); it != datasrc_opt_flds.end(); it++) { DataSourceType type = it->first; if (type == ds_postgresql) { it->second.insert("user"); it->second.insert("pwd"); it->second.insert("host"); it->second.insert("port"); } } }
36.318021
93
0.72313
[ "vector", "3d" ]
15e3efaebc0461a78c1e7100d189ef51ebd9eae6
8,652
cpp
C++
Analysis/Image/LSRowImageProcessor.cpp
konradotto/TS
bf088bd8432b1e3f4b8c8c083650a30d9ef2ae2e
[ "Apache-2.0" ]
125
2015-01-22T05:43:23.000Z
2022-03-22T17:15:59.000Z
Analysis/Image/LSRowImageProcessor.cpp
konradotto/TS
bf088bd8432b1e3f4b8c8c083650a30d9ef2ae2e
[ "Apache-2.0" ]
59
2015-02-10T09:13:06.000Z
2021-11-11T02:32:38.000Z
Analysis/Image/LSRowImageProcessor.cpp
konradotto/TS
bf088bd8432b1e3f4b8c8c083650a30d9ef2ae2e
[ "Apache-2.0" ]
98
2015-01-17T01:25:10.000Z
2022-03-18T17:29:42.000Z
/* Copyright (C) 2011 Ion Torrent Systems, Inc. All Rights Reserved */ #include <armadillo> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <cinttypes> #include "ByteSwapUtils.h" #include "LSRowImageProcessor.h" #define N_CORRECTION_GROUPS 8 #define SKIP_ROWS_AT_END 10 #define PINNED_HIGH_LIMIT 16373 #define PINNED_LOW_LIMIT 10 #define LSROWIMAGE_MAGIC_VALUE 0xFF115E3A using namespace arma; // generate an electrical cross-talk correction from the lsrow image // if the file pointed to by lsimg_path does not exist, the method returns NULL // If lsimg_path does exist, then a correction is generated and a pointer to // a ChannelXTCorrection object with all the relevant information is returned ChannelXTCorrection *LSRowImageProcessor::GenerateCorrection(const char *lsimg_path) { uint32_t magic_value; uint32_t file_version; uint32_t rows = 0; uint32_t cols = 0; int nread; // the lsrowimage file contains: // uint32 magic value (0xFF115E3A) // uint32 file version number (0+) // uint32 rows // uint32 columns // uint16[rows*columns] high-speed and low-speed reference data, in row major order // ..with the first row in the image being a high-speed collected row // and the next row in the image being the low-speed reference for the previous high-speed row data FILE *lsrowfile; lsrowfile = fopen(lsimg_path,"rb"); // if we have trouble opening the file, just return NULL if(lsrowfile == NULL) return NULL; nread = fread(&magic_value,sizeof(int32_t),1,lsrowfile); if(nread != 1) { printf("Ivalid lsrowfile detected\n"); fclose(lsrowfile); return NULL; } magic_value = BYTE_SWAP_4(magic_value); if(magic_value != LSROWIMAGE_MAGIC_VALUE) { printf("Ivalid lsrowfile detected\n"); fclose(lsrowfile); return NULL; } nread = fread(&file_version,sizeof(int32_t),1,lsrowfile); if(nread != 1) { printf("Ivalid lsrowfile detected\n"); fclose(lsrowfile); return NULL; } file_version = BYTE_SWAP_4(file_version); if(file_version != 0) { printf("Unsupported lsrowimage file version\n"); fclose(lsrowfile); return NULL; } nread = fread(&rows,sizeof(int32_t),1,lsrowfile); if(nread != 1) { printf("Ivalid lsrowfile detected\n"); fclose(lsrowfile); return NULL; } rows = BYTE_SWAP_4(rows); nread = fread(&cols,sizeof(int32_t),1,lsrowfile); if(nread != 1) { printf("Ivalid lsrowfile detected\n"); fclose(lsrowfile); return NULL; } cols = BYTE_SWAP_4(cols); int tot_pts = rows*cols; printf("reading lsrowfile with %d rows and %d columns\n",rows,cols); uint16_t *img = new uint16_t[tot_pts]; nread = fread(img,sizeof(uint16_t),tot_pts,lsrowfile); if(nread != tot_pts) { printf("Ivalid lsrowfile detected\n"); delete [] img; fclose(lsrowfile); return NULL; } // byte swap the image for(int i=0;i < tot_pts;i++) img[i] = BYTE_SWAP_2(img[i]); // this version of the code generates a correction for columns-modulo eight. (it generates a correction // for columns that belong to one of eight different groups, where membership is determined from // (column % 8)) ChannelXTCorrection *xtptr = new ChannelXTCorrection(); float *pvects = xtptr->AllocateVectorStorage(N_CORRECTION_GROUPS,nLen); float **vect_ptrs = xtptr->AllocateVectorPointerStorage(N_CORRECTION_GROUPS); xtptr->SetVectorIndicies(indicies,nLen); bool correction_valid = true; for(int i=0;i < N_CORRECTION_GROUPS;i++) { vect_ptrs[i] = pvects+nLen*i; if (GenerateGroupCorrection(i,vect_ptrs[i],rows,cols,img) == false) { correction_valid = false; break; } } delete [] img; fclose(lsrowfile); if(!correction_valid) { printf("Unable to compute valid correction\n"); delete xtptr; return NULL; } return xtptr; } // generates a set of correction coefficients for a group of columns // this basically solves the matrix equation Ax=B for x, where A are the measured high-speed // pixel values and B are the low-speed measured pixels values. The special image collected on the PGM // contains pairs of high-speed and low-speed rows for the same pixels that can be used to populate // these matricies // // As written, A is a nLen column matrix, with many rows in it (one for each example pixel we extract from the data) // and B is an nLen row vector, again with one row per example pixel we extract from the data. // When the equation is solved, both sides are multiplied by A-tranpose, which turns the left side into a square // nLen by nLen matrix, and the rhs into an nLen row vector. In order to facilitate ease of adding example pixels to // the equations sequentially, A and B are not computed, and instead lhs = (A-transpose x A) and rhs = (A-transpose x B) // are computed directly from the low-level data, and the solution is determined from lhs x = rhs bool LSRowImageProcessor::GenerateGroupCorrection(int group_num,float *vect_output,int rows,int cols,uint16_t *img) { double lhs[nLen*nLen]; double rhs[nLen]; memset(lhs,0,sizeof(lhs)); memset(rhs,0,sizeof(rhs)); // the image contains some invalid rows at the end that should be skipped int row_limit = rows - SKIP_ROWS_AT_END; int mcnt = 0; for(int column = group_num;column < cols;column += N_CORRECTION_GROUPS) { // make sure we have enough space on the left and right-hand sides to use this particular column if (((column + indicies[0]) < 0) || ((column + indicies[nLen-1]) >= cols)) continue; // every other row is the start of a pair of rows, one high-speed and one reference for(int row = 0;row < row_limit;row += 2) { double amat[nLen]; bool skip = false; uint16_t *hsrow = &img[row*cols]; uint16_t *lsrow = &img[(row+1)*cols]; // get the data points that are to be added to the matrix, making sure to filter out entries // that might reference pinned values for(int i=0;i < nLen;i++) { uint16_t temp = hsrow[indicies[i]+column]; if((temp < PINNED_LOW_LIMIT) || (temp > PINNED_HIGH_LIMIT)) { skip = true; break; } amat[i] = (double)temp; temp = lsrow[indicies[i]+column]; if((temp < PINNED_LOW_LIMIT) || (temp > PINNED_HIGH_LIMIT)) { skip = true; break; } } // if everything checks out, add this data into the matrix equation if(!skip) { mcnt++; AccumulateMatrixData(lhs,rhs,amat,(double)(lsrow[column])); } } } Mat<double> lhs_matrix(nLen,nLen); Col<double> rhs_vector(nLen); Col<double> coeffs(nLen); bool result_ok = true; for(int col=0;col < nLen;col++) for(int row=0;row <= col;row++) { lhs_matrix(row,col) = lhs[row*nLen+col]; lhs_matrix(col,row) = lhs[row*nLen+col]; } for(int row=0;row < nLen;row++) rhs_vector(row) = rhs[row]; try { //LaSpdMatFactorize(lhs_matrix,lhs_matrix_fact); //LaLinearSolve(lhs_matrix_fact,coeffs,rhs_vector); coeffs = solve(lhs_matrix,rhs_vector); } catch (std::runtime_error& le) { result_ok = false; coeffs.zeros(nLen); } // make sure derived coefficients are valid for(int row=0;row < nLen;row++) if(std::isnan(coeffs(row))) { result_ok = false; break; } else vect_output[row] = coeffs(row); printf("group %d correction coefficients: ",group_num); for(int row=0;row < nLen;row++) printf("%11.8lf ",coeffs(row)); printf("\n"); return(result_ok); } // Adds one example pixel's data into the lhs and rhs matrix and vector void LSRowImageProcessor::AccumulateMatrixData(double *lhs,double *rhs,double *amat,double bval) { for(int col=0;col < nLen;col++) for(int row=0;row <= col;row++) lhs[row*nLen+col] += amat[row]*amat[col]; for(int row=0;row < nLen;row++) rhs[row] += amat[row]*bval; }
31.234657
120
0.623093
[ "object", "vector" ]
15f1650589281df9b1d23e2a8be523e78293426b
6,519
hpp
C++
c4/range.hpp
akasitskyi/c4
56925e25430bc73cd407a8976656797b04d52348
[ "MIT" ]
2
2020-11-11T12:28:27.000Z
2022-01-31T20:31:28.000Z
c4/range.hpp
akasitskyi/c4
56925e25430bc73cd407a8976656797b04d52348
[ "MIT" ]
15
2018-09-30T12:48:50.000Z
2020-07-14T18:36:50.000Z
c4/range.hpp
akasitskyi/c4
56925e25430bc73cd407a8976656797b04d52348
[ "MIT" ]
3
2019-01-04T07:04:44.000Z
2020-09-06T16:53:21.000Z
//MIT License // //Copyright(c) 2018 Alex Kasitskyi // //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. #pragma once #include <array> #include <vector> #include <string> #include <cassert> #include <cstddef> #include <type_traits> #include "math.hpp" namespace c4 { template<class C> constexpr int isize(const C& c) { const auto N = c.size(); assert(N <= (std::size_t)std::numeric_limits<int>::max()); return (int)N; } template<class T, std::size_t N> constexpr int isize(const T(&c)[N]) { assert(N <= (std::size_t)std::numeric_limits<int>::max()); return (int)N; } class range_reverse { friend class range; int begin_; int end_; range_reverse(int begin, int end) : begin_(begin), end_(end) { assert(begin >= end); } public: class iterator { int i; public: using iterator_category = std::random_access_iterator_tag; using value_type = int; using difference_type = int; using pointer = int*; using reference = int&; explicit iterator(int i) : i(i) {} iterator& operator++() { --i; return *this; } iterator operator++(int) { iterator r = *this; i--; return r; } int operator-(const iterator& other) const { return -(i - other.i); } iterator operator+(int n) const { iterator r = *this; r.i -= n; return r; } int operator*() { return i; } bool operator==(iterator other) const { return i == other.i; } bool operator!=(iterator other) const { return !(*this == other); } bool operator<(iterator other) const { return i > other.i; } }; iterator begin() { return iterator(begin_); } iterator end() { return iterator(end_); } int size() const { return begin_ - end_; } }; class range { public: int begin_; int end_; class iterator { int i; public: using iterator_category = std::random_access_iterator_tag; using value_type = int; using difference_type = int; using pointer = int*; using reference = int&; explicit iterator(int i) : i(i) {} iterator& operator++() { ++i; return *this; } iterator operator++(int) { iterator r = *this; i++; return r; } ptrdiff_t operator-(const iterator& other) const { return ptrdiff_t(i - other.i); } iterator operator+(ptrdiff_t n) const { assert(fits_within<int>(i + n)); return iterator(int(i + n)); } int operator*() { return i; } bool operator==(iterator other) const { return i == other.i; } bool operator!=(iterator other) const { return !(*this == other); } bool operator<(iterator other) const { return i < other.i; } bool operator>(iterator other) const { return i > other.i; } bool operator<=(iterator other) const { return i <= other.i; } bool operator>=(iterator other) const { return i >= other.i; } }; explicit range(iterator begin, iterator end) : begin_(*begin), end_(*end) { assert(begin_ <= end_); } template<class T1, class T2, class = typename std::enable_if<std::is_integral<T1>::value && std::is_integral<T2>::value>::type> explicit range(T1 begin, T2 end) : begin_((int)begin), end_((int)end) { assert(fits_within<int>(begin) && fits_within<int>(end)); assert((int)begin <= (int)end); } template<class T, class = typename std::enable_if<std::is_integral<T>::value>::type> explicit range(T end) : begin_(0), end_((int)end) { assert(0 <= end); assert((uint64_t)end <= (uint64_t)std::numeric_limits<int>::max()); } template<class T> explicit range(const std::vector<T>& v) : begin_(0), end_((int)v.size()) { assert(fits_within<int>(v.size())); } explicit range(const std::string& v) : begin_(0), end_((int)v.size()) { assert(fits_within<int>(v.size())); } template<class T, size_t n> explicit range(const std::array<T, n>& v) : begin_(0), end_((int)n) { assert(fits_within<int>(n)); } iterator begin() const { return iterator(begin_); } iterator end() const { return iterator(end_); } int size() const { return end_ - begin_; } range_reverse reverse() const { return { end_ - 1, begin_ - 1 }; } }; };
27.276151
135
0.516183
[ "vector" ]
15f1b2dcd55f5598c93cb28055ed72a59bf33e3a
15,353
cpp
C++
tests/http/test_chunk.cpp
kenba/via-httplib
728df42e9b95ee4bfdbce424fef5eb943722ed59
[ "BSL-1.0" ]
41
2015-03-31T02:21:30.000Z
2021-11-04T05:04:04.000Z
tests/http/test_chunk.cpp
kenba/via-httplib
728df42e9b95ee4bfdbce424fef5eb943722ed59
[ "BSL-1.0" ]
18
2015-04-05T08:39:33.000Z
2018-10-26T16:29:45.000Z
tests/http/test_chunk.cpp
kenba/via-httplib
728df42e9b95ee4bfdbce424fef5eb943722ed59
[ "BSL-1.0" ]
17
2015-01-20T18:26:18.000Z
2021-11-16T12:48:03.000Z
////////////////////////////////////////////////////////////////////////////// // Copyright (c) 2013-2021 Via Technology Ltd. All Rights Reserved. // (ken dot barker at via-technology dot co dot uk) // // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) ////////////////////////////////////////////////////////////////////////////// #include "via/http/chunk.hpp" #include <boost/test/unit_test.hpp> #include <vector> #include <iostream> using namespace via::http; ////////////////////////////////////////////////////////////////////////////// BOOST_AUTO_TEST_SUITE(TestChunkLineParser) BOOST_AUTO_TEST_CASE(EmptyChunk1) { std::string chunk_data("0\r\n"); std::string::iterator next(chunk_data.begin()); chunk_header<1024, 8, false> the_chunk; BOOST_CHECK(the_chunk.parse(next, chunk_data.end())); BOOST_CHECK(chunk_data.end() == next); BOOST_CHECK_EQUAL("0", the_chunk.hex_size().c_str()); BOOST_CHECK_EQUAL("", the_chunk.extension().c_str()); BOOST_CHECK_EQUAL(0U, the_chunk.size()); BOOST_CHECK(the_chunk.is_last()); BOOST_CHECK(next == chunk_data.end()); } BOOST_AUTO_TEST_CASE(EmptyChunk2) { std::string chunk_data("0;\r\n"); std::string::iterator next(chunk_data.begin()); chunk_header<1024, 8, false> the_chunk; BOOST_CHECK(the_chunk.parse(next, chunk_data.end())); BOOST_CHECK(chunk_data.end() == next); BOOST_CHECK_EQUAL("0", the_chunk.hex_size().c_str()); BOOST_CHECK_EQUAL("", the_chunk.extension().c_str()); BOOST_CHECK_EQUAL(0U, the_chunk.size()); BOOST_CHECK(the_chunk.is_last()); BOOST_CHECK(next == chunk_data.end()); } BOOST_AUTO_TEST_CASE(ValidString1) { std::string chunk_data("f; some rubbish\r\n"); std::string::iterator next(chunk_data.begin()); chunk_header<1024, 8, false> the_chunk; BOOST_CHECK(the_chunk.parse(next, chunk_data.end())); BOOST_CHECK(chunk_data.end() == next); BOOST_CHECK_EQUAL("f", the_chunk.hex_size().c_str()); BOOST_CHECK_EQUAL("some rubbish", the_chunk.extension().c_str()); BOOST_CHECK_EQUAL(15U, the_chunk.size()); BOOST_CHECK(!the_chunk.is_last()); std::string header_string(the_chunk.to_string()); BOOST_CHECK_EQUAL(chunk_data, header_string); } BOOST_AUTO_TEST_CASE(ValidString2) { std::string chunk_data("f\r\nA"); std::string::iterator next(chunk_data.begin()); chunk_header<1024, 8, false> the_chunk; BOOST_CHECK(the_chunk.parse(next, chunk_data.end())); BOOST_CHECK(chunk_data.end() != next); BOOST_CHECK_EQUAL('A', *next); BOOST_CHECK_EQUAL("f", the_chunk.hex_size().c_str()); BOOST_CHECK_EQUAL(15U, the_chunk.size()); BOOST_CHECK(!the_chunk.is_last()); } BOOST_AUTO_TEST_CASE(ValidString3) { std::string chunk_data("f; some rubbish\r\nA"); std::string::iterator next(chunk_data.begin()); chunk_header<1024, 8, false> the_chunk; BOOST_CHECK(the_chunk.parse(next, chunk_data.end())); BOOST_CHECK(chunk_data.end() != next); BOOST_CHECK_EQUAL('A', *next); BOOST_CHECK_EQUAL("f", the_chunk.hex_size().c_str()); BOOST_CHECK_EQUAL("some rubbish", the_chunk.extension().c_str()); BOOST_CHECK_EQUAL(15U, the_chunk.size()); BOOST_CHECK(!the_chunk.is_last()); } BOOST_AUTO_TEST_CASE(MultipleString1) { std::string chunk_data("2f; some rubbish\r\n"); std::string::iterator next(chunk_data.begin()); chunk_header<1024, 8, false> the_chunk; BOOST_CHECK(!the_chunk.parse(next, chunk_data.begin() +1)); BOOST_CHECK(chunk_data.end() != next); BOOST_CHECK(the_chunk.parse(next, chunk_data.end())); BOOST_CHECK(chunk_data.end() == next); BOOST_CHECK_EQUAL("2f", the_chunk.hex_size().c_str()); BOOST_CHECK_EQUAL("some rubbish", the_chunk.extension().c_str()); BOOST_CHECK_EQUAL(47U, the_chunk.size()); } BOOST_AUTO_TEST_CASE(InValidString1) { std::string chunk_data("g;\r\n"); std::string::iterator next(chunk_data.begin()); chunk_header<1024, 8, false> the_chunk; BOOST_CHECK(!the_chunk.parse(next, chunk_data.end())); } BOOST_AUTO_TEST_CASE(InValidString2) { std::string chunk_data("f;\r\r"); std::string::iterator next(chunk_data.begin()); chunk_header<1024, 8, false> the_chunk; BOOST_CHECK(!the_chunk.parse(next, chunk_data.end())); } BOOST_AUTO_TEST_CASE(InValidString3) { std::string chunk_data("f\n"); std::string::iterator next(chunk_data.begin()); chunk_header<1024, 8, true> the_chunk; BOOST_CHECK(!the_chunk.parse(next, chunk_data.end())); } BOOST_AUTO_TEST_CASE(InValidString4) { std::string chunk_data("f;\n"); std::string::iterator next(chunk_data.begin()); chunk_header<1024, 8, true> the_chunk; BOOST_CHECK(!the_chunk.parse(next, chunk_data.end())); } BOOST_AUTO_TEST_CASE(InValidString5) { std::string chunk_data("2f; some rubbish\r\n"); std::string::iterator next(chunk_data.begin()); chunk_header<1024, 8, false> the_chunk; BOOST_CHECK(!the_chunk.parse(next, chunk_data.end())); } BOOST_AUTO_TEST_CASE(InValidString6) { std::string chunk_data(" 2f\r\n"); std::string::iterator next(chunk_data.begin()); chunk_header<1024, 8, false> the_chunk; BOOST_CHECK(!the_chunk.parse(next, chunk_data.end())); } BOOST_AUTO_TEST_CASE(InValidString7) { std::string chunk_data("2f; some rubbish\r\n"); std::string::iterator next(chunk_data.begin()); chunk_header<10, 8, false> the_chunk; BOOST_CHECK(!the_chunk.parse(next, chunk_data.end())); } BOOST_AUTO_TEST_CASE(InValidString8) { std::string chunk_data("1234567890abcdef0123456789abcdef012\r\n"); std::string::iterator next(chunk_data.begin()); chunk_header<1024, 8, false> the_chunk; BOOST_CHECK(!the_chunk.parse(next, chunk_data.end())); } BOOST_AUTO_TEST_CASE(InValidString9) { std::string chunk_data("ffff\r\n"); std::string::iterator next(chunk_data.begin()); chunk_header<1024, 8, false> the_chunk(1024); BOOST_CHECK(!the_chunk.parse(next, chunk_data.end())); } BOOST_AUTO_TEST_SUITE_END() ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// BOOST_AUTO_TEST_SUITE(TestChunkEncoder) BOOST_AUTO_TEST_CASE(EmptyChunk1) { chunk_header<1024, 8, false> the_chunk(0); std::string chunk_string(the_chunk.to_string()); BOOST_CHECK_EQUAL("0\r\n", chunk_string.c_str()); } BOOST_AUTO_TEST_CASE(ValidChunk1) { chunk_header<1024, 8, false> the_chunk(15); std::string chunk_string(the_chunk.to_string()); BOOST_CHECK_EQUAL("f\r\n", chunk_string.c_str()); } BOOST_AUTO_TEST_SUITE_END() ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// BOOST_AUTO_TEST_SUITE(TestLastChunkEncoder) BOOST_AUTO_TEST_CASE(EmptyChunk1) { std::string empty_string(""); last_chunk the_chunk(empty_string, empty_string); std::string chunk_string(the_chunk.to_string()); BOOST_CHECK_EQUAL("0\r\n\r\n", chunk_string.c_str()); } BOOST_AUTO_TEST_CASE(EmptyChunk2) { std::string empty_string(""); last_chunk the_chunk("extension", empty_string); std::string chunk_string(the_chunk.to_string()); BOOST_CHECK_EQUAL("0; extension\r\n\r\n", chunk_string.c_str()); } BOOST_AUTO_TEST_SUITE_END() ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// BOOST_AUTO_TEST_SUITE(TestChunkParser) BOOST_AUTO_TEST_CASE(ValidChunk1) { std::string chunk_data("f;\r\n"); chunk_data += "123456789abcdef\r\n"; std::string::iterator next(chunk_data.begin()); rx_chunk<std::string, 100, 8190, 1024, 8, false> the_chunk; BOOST_CHECK(the_chunk.parse(next, chunk_data.end())); BOOST_CHECK_EQUAL(15U, the_chunk.size()); BOOST_CHECK_EQUAL('1', the_chunk.data()[0]); BOOST_CHECK_EQUAL('f', the_chunk.data()[the_chunk.size()-1]); } BOOST_AUTO_TEST_CASE(ValidChunk2) { std::string chunk_data("f;\n"); chunk_data += "123456789abcdef\n"; std::string::iterator next(chunk_data.begin()); rx_chunk<std::string, 100, 8190, 1024, 8, false> the_chunk; BOOST_CHECK(the_chunk.parse(next, chunk_data.end())); BOOST_CHECK_EQUAL(15U, the_chunk.size()); BOOST_CHECK_EQUAL('1', the_chunk.data()[0]); BOOST_CHECK_EQUAL('f', the_chunk.data()[the_chunk.size()-1]); } BOOST_AUTO_TEST_CASE(ValidChunk3) { std::string chunk_data(" f;\r\n"); std::string::iterator next(chunk_data.begin()); rx_chunk<std::string, 100, 8190, 1024, 8, false> the_chunk; BOOST_CHECK(!the_chunk.parse(next, chunk_data.end())); std::string chunk_data1("123456789abcdef\r\n"); next = chunk_data1.begin(); BOOST_CHECK(the_chunk.parse(next, chunk_data1.end())); BOOST_CHECK_EQUAL(15U, the_chunk.size()); BOOST_CHECK_EQUAL('1', the_chunk.data()[0]); BOOST_CHECK_EQUAL('f', the_chunk.data()[the_chunk.size()-1]); } BOOST_AUTO_TEST_CASE(ValidChunk4) { std::string chunk_data("f"); std::string::iterator next(chunk_data.begin()); rx_chunk<std::string, 100, 8190, 1024, 8, false> the_chunk; BOOST_CHECK(!the_chunk.parse(next, chunk_data.end())); std::string chunk_data1(";\r\n123456789abcdef\r\n"); next = chunk_data1.begin(); BOOST_CHECK(the_chunk.parse(next, chunk_data1.end())); BOOST_CHECK_EQUAL(15U, the_chunk.size()); BOOST_CHECK_EQUAL('1', the_chunk.data()[0]); BOOST_CHECK_EQUAL('f', the_chunk.data()[the_chunk.size()-1]); } BOOST_AUTO_TEST_CASE(ValidChunk5) { std::string chunk_data("f"); std::string::iterator next(chunk_data.begin()); rx_chunk<std::string, 100, 8190, 1024, 8, false> the_chunk; BOOST_CHECK(!the_chunk.parse(next, chunk_data.end())); std::string chunk_data1("\n123456789abcdef\n"); next = chunk_data1.begin(); BOOST_CHECK(the_chunk.parse(next, chunk_data1.end())); BOOST_CHECK_EQUAL(15U, the_chunk.size()); BOOST_CHECK_EQUAL('1', the_chunk.data()[0]); BOOST_CHECK_EQUAL('f', the_chunk.data()[the_chunk.size()-1]); } BOOST_AUTO_TEST_CASE(ValidMultipleChunks1) { std::string chunk_data("f;\r\n123456789abcdef\r\n"); // a complete chunk chunk_data += "a;\r\n0123456789\r\n"; // and another chunk_data += "0;\r\n\r\n"; // last chunk std::string::iterator next(chunk_data.begin()); rx_chunk<std::string, 100, 8190, 1024, 8, false> the_chunk; BOOST_CHECK(the_chunk.parse(next, chunk_data.end())); BOOST_CHECK_EQUAL(15U, the_chunk.size()); BOOST_CHECK_EQUAL('1', the_chunk.data()[0]); BOOST_CHECK_EQUAL('f', the_chunk.data()[the_chunk.size()-1]); BOOST_CHECK(!the_chunk.is_last()); the_chunk.clear(); BOOST_CHECK(the_chunk.parse(next, chunk_data.end())); BOOST_CHECK_EQUAL(10U, the_chunk.size()); BOOST_CHECK_EQUAL('0', the_chunk.data()[0]); BOOST_CHECK_EQUAL('9', the_chunk.data()[the_chunk.size()-1]); BOOST_CHECK(!the_chunk.is_last()); the_chunk.clear(); BOOST_CHECK(the_chunk.parse(next, chunk_data.end())); BOOST_CHECK_EQUAL(0U, the_chunk.size()); BOOST_CHECK(the_chunk.is_last()); } BOOST_AUTO_TEST_CASE(ValidMultipleChunks2) { // As above but without CR's after chunk data std::string chunk_data("f;\r\n123456789abcdef\n"); // a complete chunk chunk_data += "a;\r\n0123456789\n"; // and another chunk_data += "0;\r\n\r\n"; // last chunk std::string::iterator next(chunk_data.begin()); rx_chunk<std::string, 100, 8190, 1024, 8, false> the_chunk; BOOST_CHECK(the_chunk.parse(next, chunk_data.end())); BOOST_CHECK_EQUAL(15U, the_chunk.size()); BOOST_CHECK_EQUAL('1', the_chunk.data()[0]); BOOST_CHECK_EQUAL('f', the_chunk.data()[the_chunk.size()-1]); BOOST_CHECK(!the_chunk.is_last()); the_chunk.clear(); BOOST_CHECK(the_chunk.parse(next, chunk_data.end())); BOOST_CHECK_EQUAL(10U, the_chunk.size()); BOOST_CHECK_EQUAL('0', the_chunk.data()[0]); BOOST_CHECK_EQUAL('9', the_chunk.data()[the_chunk.size()-1]); BOOST_CHECK(!the_chunk.is_last()); the_chunk.clear(); BOOST_CHECK(the_chunk.parse(next, chunk_data.end())); BOOST_CHECK_EQUAL(0U, the_chunk.size()); BOOST_CHECK(the_chunk.is_last()); } BOOST_AUTO_TEST_CASE(InValidChunk1) { std::string chunk_data("g;\r\n"); chunk_data += "123456789abcdef\r\n"; std::string::iterator next(chunk_data.begin()); rx_chunk<std::string, 100, 8190, 1024, 8, false> the_chunk; BOOST_CHECK(!the_chunk.parse(next, chunk_data.end())); } BOOST_AUTO_TEST_CASE(InValidChunk2) { std::string chunk_data("f;\r\r"); chunk_data += "123456789abcdef\r\n"; std::string::iterator next(chunk_data.begin()); rx_chunk<std::string, 100, 8190, 1024, 8, false> the_chunk; BOOST_CHECK(!the_chunk.parse(next, chunk_data.end())); } BOOST_AUTO_TEST_CASE(InValidChunk3) { std::string chunk_data("f;\r\n"); chunk_data += "123456789abcdef\r\r"; std::string::iterator next(chunk_data.begin()); rx_chunk<std::string, 100, 8190, 1024, 8, false> the_chunk; BOOST_CHECK(!the_chunk.parse(next, chunk_data.end())); } BOOST_AUTO_TEST_CASE(InValidChunk4) { // missing \r after chunk dat is strict crlf mode std::string chunk_data("f;\r\n"); chunk_data += "123456789abcdef\n"; std::string::iterator next(chunk_data.begin()); rx_chunk<std::string, 100, 8190, 1024, 8, true> the_chunk; BOOST_CHECK(!the_chunk.parse(next, chunk_data.end())); } BOOST_AUTO_TEST_CASE(ValidLastChunk1) { std::string chunk_data("0\r\n\r\n"); std::string::iterator next(chunk_data.begin()); rx_chunk<std::string, 100, 8190, 1024, 8, false> the_chunk; BOOST_CHECK(the_chunk.parse(next, chunk_data.end())); BOOST_CHECK_EQUAL(0U, the_chunk.size()); BOOST_CHECK(the_chunk.valid()); BOOST_CHECK(the_chunk.is_last()); BOOST_CHECK(next == chunk_data.end()); } BOOST_AUTO_TEST_CASE(ValidLastChunk2) { std::string chunk_data("0;\r\n\r\n"); std::string::iterator next(chunk_data.begin()); rx_chunk<std::string, 100, 8190, 1024, 8, false> the_chunk; BOOST_CHECK(the_chunk.parse(next, chunk_data.end())); BOOST_CHECK_EQUAL(0U, the_chunk.size()); BOOST_CHECK(the_chunk.valid()); BOOST_CHECK(the_chunk.is_last()); BOOST_CHECK(next == chunk_data.end()); } BOOST_AUTO_TEST_CASE(ValidLastChunk3) { std::string extension(""); std::string trailer_string(""); last_chunk last_chunk1(extension, trailer_string); std::string chunk_data(last_chunk1.to_string()); std::string::iterator next(chunk_data.begin()); rx_chunk<std::string, 100, 8190, 1024, 8, false> the_chunk; BOOST_CHECK(the_chunk.parse(next, chunk_data.end())); BOOST_CHECK_EQUAL(0U, the_chunk.size()); BOOST_CHECK(the_chunk.valid()); BOOST_CHECK(the_chunk.is_last()); BOOST_CHECK(next == chunk_data.end()); } BOOST_AUTO_TEST_CASE(ValidChunkTrailer1) { std::string chunk_data("0\r\n"); chunk_data += "Accept-Encoding: gzip\r\n\r\n"; std::string::iterator next(chunk_data.begin()); rx_chunk<std::string, 100, 8190, 1024, 8, false> the_chunk; BOOST_CHECK(the_chunk.parse(next, chunk_data.end())); BOOST_CHECK_EQUAL(0U, the_chunk.size()); BOOST_CHECK(the_chunk.is_last()); } BOOST_AUTO_TEST_CASE(InValidChunkTrailer1) { std::string chunk_data("0\r\n"); chunk_data += "Accept-Encoding: gzip\r\r\r\n"; std::string::iterator next(chunk_data.begin()); rx_chunk<std::string, 100, 8190, 1024, 8, false> the_chunk; BOOST_CHECK(!the_chunk.parse(next, chunk_data.end())); } BOOST_AUTO_TEST_SUITE_END() //////////////////////////////////////////////////////////////////////////////
31.65567
78
0.685469
[ "vector" ]
15f386294a6b8a472518faa4a6273843c5b14fcc
7,307
hpp
C++
coding/diff.hpp
kudlav/organicmaps
390236365749e0525b9229684132c2888d11369d
[ "Apache-2.0" ]
4,879
2015-09-30T10:56:36.000Z
2022-03-31T18:43:03.000Z
coding/diff.hpp
mbrukman/omim
d22fe2b6e0beee697f096e931df97a64f9db9dc1
[ "Apache-2.0" ]
7,549
2015-09-30T10:52:53.000Z
2022-03-31T22:04:22.000Z
coding/diff.hpp
mbrukman/omim
d22fe2b6e0beee697f096e931df97a64f9db9dc1
[ "Apache-2.0" ]
1,493
2015-09-30T10:43:06.000Z
2022-03-21T09:16:49.000Z
#pragma once #include "base/assert.hpp" #include "base/base.hpp" #include <algorithm> #include <cstddef> #include <cstdint> #include <unordered_map> #include <utility> #include <vector> namespace diff { enum Operation { OPERATION_COPY = 0, OPERATION_DELETE = 1, OPERATION_INSERT = 2, }; template <class PatchWriterT, typename SizeT = uint64_t> class PatchCoder { public: typedef SizeT size_type; explicit PatchCoder(PatchWriterT & patchWriter) : m_LastOperation(OPERATION_COPY), m_LastOpCode(0), m_PatchWriter(patchWriter) { } void Delete(size_type n) { if (n != 0) Op(OPERATION_DELETE, n); } void Copy(size_type n) { if (n != 0) Op(OPERATION_COPY, n); } template <typename TIter> void Insert(TIter it, size_type n) { if (n != 0) { Op(OPERATION_INSERT, n); m_PatchWriter.WriteData(it, n); } } void Finalize() { WriteLasOp(); } private: void Op(Operation op, size_type n) { if (m_LastOperation == op) { m_LastOpCode += (n << 1); return; } WriteLasOp(); m_LastOpCode = (n << 1) | ((m_LastOperation + 1) % 3 == op ? 0 : 1); m_LastOperation = op; } void WriteLasOp() { if (m_LastOpCode != 0) m_PatchWriter.WriteOperation(m_LastOpCode); else CHECK_EQUAL(m_LastOperation, OPERATION_COPY, ()); // "We were just initialized." } Operation m_LastOperation; size_type m_LastOpCode; PatchWriterT & m_PatchWriter; }; // Find minimal patch, with no more than maxPatchSize edited values, that transforms A into B. // Returns the length of the minimal patch, or -1 if no such patch found. // Intermediate information is saved into tmpSink and can be used later to restore // the resulting patch. template < typename TSignedWord, // Signed word, capable of storing position in text. class TSrcVector, // Source data (A). class TDstVector, // Destination data (B). class TTmpFileSink // Sink to store temporary information. > TSignedWord DiffMyersSimple(TSrcVector const & A, TDstVector const & B, TSignedWord maxPatchSize, TTmpFileSink & tmpSink) { ASSERT_GREATER(maxPatchSize, 0, ()); std::vector<TSignedWord> V(2 * maxPatchSize + 1); for (TSignedWord d = 0; d <= maxPatchSize; ++d) { for (TSignedWord k = -d; k <= d; k += 2) { TSignedWord x; if (k == -d || (k != d && V[maxPatchSize + k - 1] < V[maxPatchSize + k + 1])) x = V[maxPatchSize + k + 1]; else x = V[maxPatchSize + k - 1] + 1; while (x < static_cast<TSignedWord>(A.size()) && x - k < static_cast<TSignedWord>(B.size()) && A[x] == B[x - k]) ++x; V[maxPatchSize + k] = x; if (x == static_cast<TSignedWord>(A.size()) && x - k == static_cast<TSignedWord>(B.size())) return d; } tmpSink.Write(&V[maxPatchSize - d], (2 * d + 1) * sizeof(TSignedWord)); } return -1; } // Differ that just replaces old with new, with the only optimization of skipping equal values // at the beginning and at the end. class SimpleReplaceDiffer { public: template <typename SrcIterT, typename DstIterT, class PatchCoderT> void Diff(SrcIterT srcBeg, SrcIterT srcEnd, DstIterT dstBeg, DstIterT dstEnd, PatchCoderT & patchCoder) { typename PatchCoderT::size_type begCopy = 0; for (; srcBeg != srcEnd && dstBeg != dstEnd && *srcBeg == *dstBeg; ++srcBeg, ++dstBeg) ++begCopy; patchCoder.Copy(begCopy); typename PatchCoderT::size_type endCopy = 0; for (; srcBeg != srcEnd && dstBeg != dstEnd && *(srcEnd-1) == *(dstEnd-1); --srcEnd, --dstEnd) ++endCopy; patchCoder.Delete(srcEnd - srcBeg); patchCoder.Insert(dstBeg, dstEnd - dstBeg); patchCoder.Copy(endCopy); } }; // Given FineGrainedDiff and rolling Hasher, DiffWithRollingHash splits the source sequence // into chunks of size m_BlockSize, finds equal chunks in the destination sequence, using rolling // hash to find good candidates, writes info about equal chunks into patchCoder and for everything // between equal chunks, calls FineGrainedDiff::Diff(). template <class FineGrainedDiffT, class HasherT, class HashPosMultiMapT = std::unordered_multimap<typename HasherT::hash_type, uint64_t>> class RollingHashDiffer { public: explicit RollingHashDiffer(size_t blockSize, FineGrainedDiffT const & fineGrainedDiff = FineGrainedDiffT()) : m_FineGrainedDiff(fineGrainedDiff), m_BlockSize(blockSize) {} template <typename SrcIterT, typename DstIterT, class PatchCoderT> void Diff(SrcIterT const srcBeg, SrcIterT const srcEnd, DstIterT const dstBeg, DstIterT const dstEnd, PatchCoderT & patchCoder) { if (srcEnd - srcBeg < static_cast<decltype(srcEnd - srcBeg)>(m_BlockSize) || dstEnd - dstBeg < static_cast<decltype(dstEnd - dstBeg)>(m_BlockSize)) { m_FineGrainedDiff.Diff(srcBeg, srcEnd, dstBeg, dstEnd, patchCoder); return; } HasherT hasher; HashPosMultiMapT srcHashes; for (SrcIterT src = srcBeg; srcEnd - src >= static_cast<decltype(srcEnd - src)>(m_BlockSize); src += m_BlockSize) srcHashes.insert(HashPosMultiMapValue(hasher.Init(src, m_BlockSize), src - srcBeg)); SrcIterT srcLastDiff = srcBeg; DstIterT dst = dstBeg, dstNext = dstBeg + m_BlockSize, dstLastDiff = dstBeg; hash_type h = hasher.Init(dst, m_BlockSize); while (dstNext != dstEnd) { std::pair<HashPosMultiMapIterator, HashPosMultiMapIterator> iters = srcHashes.equal_range(h); if (iters.first != iters.second) { pos_type const srcLastDiffPos = srcLastDiff - srcBeg; HashPosMultiMapIterator it = srcHashes.end(); for (HashPosMultiMapIterator i = iters.first; i != iters.second; ++i) if (i->second >= srcLastDiffPos && (it == srcHashes.end() || i->second < it->second)) it = i; if (it != srcHashes.end() && std::equal(srcBeg + it->second, srcBeg + it->second + m_BlockSize, dst)) { pos_type srcBlockEqualPos = it->second; m_FineGrainedDiff.Diff(srcLastDiff, srcBeg + srcBlockEqualPos, dstLastDiff, dst, patchCoder); patchCoder.Copy(m_BlockSize); srcLastDiff = srcBeg + srcBlockEqualPos + m_BlockSize; dst = dstLastDiff = dstNext; if (dstEnd - dstNext < static_cast<decltype(dstEnd - dstNext)>(m_BlockSize)) break; dstNext = dst + m_BlockSize; h = hasher.Init(dst, m_BlockSize); continue; } } h = hasher.Scroll(*(dst++), *(dstNext++)); } if (srcLastDiff != srcEnd || dstLastDiff != dstEnd) m_FineGrainedDiff.Diff(srcLastDiff, srcEnd, dstLastDiff, dstEnd, patchCoder); } private: typedef typename HasherT::hash_type hash_type; typedef typename HashPosMultiMapT::value_type::second_type pos_type; typedef typename HashPosMultiMapT::const_iterator HashPosMultiMapIterator; typedef typename HashPosMultiMapT::value_type HashPosMultiMapValue; FineGrainedDiffT m_FineGrainedDiff; HasherT m_Hasher; size_t m_BlockSize; }; } // namespace diff
33.063348
99
0.646777
[ "vector" ]
15f70c1c021ec175aad67bbfd700b98eefb17b57
5,630
cc
C++
src/developer/debug/zxdb/common/data_extractor_unittest.cc
allansrc/fuchsia
a2c235b33fc4305044d496354a08775f30cdcf37
[ "BSD-2-Clause" ]
210
2019-02-05T12:45:09.000Z
2022-03-28T07:59:06.000Z
src/developer/debug/zxdb/common/data_extractor_unittest.cc
allansrc/fuchsia
a2c235b33fc4305044d496354a08775f30cdcf37
[ "BSD-2-Clause" ]
5
2019-12-04T15:13:37.000Z
2020-02-19T08:11:38.000Z
src/developer/debug/zxdb/common/data_extractor_unittest.cc
allansrc/fuchsia
a2c235b33fc4305044d496354a08775f30cdcf37
[ "BSD-2-Clause" ]
73
2019-03-06T18:55:23.000Z
2022-03-26T12:04:51.000Z
// 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 "src/developer/debug/zxdb/common/data_extractor.h" #include <limits> #include <gtest/gtest.h> namespace zxdb { TEST(DataExtractor, Empty) { DataExtractor ext; EXPECT_TRUE(ext.done()); EXPECT_EQ(0u, ext.cur()); ext.Advance(1); EXPECT_EQ(0u, ext.cur()); ext.Seek(1); EXPECT_EQ(0u, ext.cur()); EXPECT_FALSE(ext.Read<uint8_t>()); } TEST(DataExtractor, SeekAdvance) { std::vector<uint8_t> buffer{0x01, 0x02, 0x03, 0x04}; DataExtractor ext(buffer); EXPECT_EQ(0u, ext.cur()); ext.Advance(2); EXPECT_EQ(2u, ext.cur()); ext.Advance(2); EXPECT_EQ(4u, ext.cur()); // Should stop at the end. ext.Advance(2); EXPECT_EQ(4u, ext.cur()); // Seek back tot he beginning. ext.Seek(0); EXPECT_EQ(0u, ext.cur()); // Advance and Seek clamps to the end. ext.Advance(2000); EXPECT_EQ(4u, ext.cur()); ext.Seek(2000); EXPECT_EQ(4u, ext.cur()); } TEST(DataExtractor, Numbers) { // clang-format off std::vector<uint8_t> buffer{ 0x10, 0x20, 0x21, 0x30, 0x31, 0x32, 0x33, 0x40, 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47 }; // clang-format on // Signed integers (little-endian). DataExtractor ext(buffer); EXPECT_FALSE(ext.done()); EXPECT_EQ(std::optional<int8_t>(0x10), ext.Read<int8_t>()); EXPECT_EQ(std::optional<int16_t>(0x2120), ext.Read<int16_t>()); EXPECT_EQ(std::optional<int32_t>(0x33323130), ext.Read<int32_t>()); EXPECT_EQ(std::optional<int64_t>(0x4746454443424140), ext.Read<int64_t>()); EXPECT_EQ(std::optional<int8_t>(), ext.Read<int8_t>()); // Read past end fails. EXPECT_TRUE(ext.done()); // Unsigned integers (little-endian). ext = DataExtractor(buffer); EXPECT_EQ(std::optional<uint8_t>(0x10), ext.Read<uint8_t>()); EXPECT_EQ(std::optional<uint16_t>(0x2120), ext.Read<uint16_t>()); EXPECT_EQ(std::optional<uint32_t>(0x33323130), ext.Read<uint32_t>()); EXPECT_EQ(std::optional<uint64_t>(0x4746454443424140), ext.Read<uint64_t>()); // Reading past the end should leave the position unchanged (buffer is 15 bytes long). ext = DataExtractor(buffer); ext.Read<uint64_t>(); EXPECT_EQ(8u, ext.cur()); EXPECT_FALSE(ext.Read<uint64_t>()); // Read fails. EXPECT_EQ(8u, ext.cur()); // Position is unchanged. } TEST(DataExtractor, Manual) { std::vector<uint8_t> buffer{0x01, 0x02, 0x03, 0x04}; DataExtractor ext(buffer); EXPECT_EQ(0u, ext.cur()); EXPECT_TRUE(ext.CanRead(1)); EXPECT_TRUE(ext.CanRead(4)); EXPECT_FALSE(ext.CanRead(5)); EXPECT_EQ(0u, ext.cur()); ext.Advance(2); EXPECT_EQ(2u, ext.cur()); ext.Advance(0); EXPECT_EQ(2u, ext.cur()); EXPECT_TRUE(ext.CanRead(2)); EXPECT_FALSE(ext.CanRead(3)); // Advances one-past-the end. Should stop at the end. ext.Advance(3); EXPECT_EQ(4u, ext.cur()); EXPECT_TRUE(ext.CanRead(0)); EXPECT_FALSE(ext.CanRead(1)); // Test overflow of size variables. In this case size + read_size overflows. size_t big_read = std::numeric_limits<size_t>::max() - 1; ext = DataExtractor(buffer); EXPECT_FALSE(ext.CanRead(big_read)); // Here cur + read_size overflows. ext.Advance(2); EXPECT_FALSE(ext.CanRead(big_read)); } // Test a long encoded number with the high bit not set. TEST(DataExtractor, ReadLeb128_NoHighBit) { // |--- First ----| |- Following std::vector<uint8_t> buffer{0xe5, 0x8e, 0x26, 0x04}; // Read unsigned value. DataExtractor ext(buffer); std::optional<uint64_t> result_u = ext.ReadUleb128(); ASSERT_TRUE(result_u); EXPECT_EQ(624485ul, *result_u); // Read following value. result_u = ext.ReadUleb128(); ASSERT_TRUE(result_u); EXPECT_EQ(4ul, *result_u); // Read signed value. The high bit on this is not set so the result should be the same. ext = DataExtractor(buffer); std::optional<int64_t> result_s = ext.ReadSleb128(); ASSERT_TRUE(result_s); EXPECT_EQ(624485l, *result_s); // Read following value. result_s = ext.ReadSleb128(); ASSERT_TRUE(result_s); EXPECT_EQ(4l, *result_s); // Reached the end of the data, can't read any more. result_u = ext.ReadUleb128(); EXPECT_FALSE(result_u); result_s = ext.ReadSleb128(); EXPECT_FALSE(result_s); } // The high bit is set on this one so that the signed one should be sign-extended. TEST(DataExtractor, ReadLeb128_HighBit) { // |--- First ----| |- Following std::vector<uint8_t> buffer{0xc0, 0xbb, 0x78, 0x7f}; // Read unsigned value. DataExtractor ext(buffer); std::optional<uint64_t> result_u = ext.ReadUleb128(); ASSERT_TRUE(result_u); EXPECT_EQ(1973696ul, *result_u); // Read following value. result_u = ext.ReadUleb128(); ASSERT_TRUE(result_u); EXPECT_EQ(0x7ful, *result_u); // Read signed value, should be sign-extended to negative. ext = DataExtractor(buffer); std::optional<int64_t> result_s = ext.ReadSleb128(); ASSERT_TRUE(result_s); EXPECT_EQ(-123456l, *result_s); // Read following value. result_s = ext.ReadSleb128(); ASSERT_TRUE(result_s); EXPECT_EQ(-1l, *result_s); } TEST(DataExtractor, ReadLeb128_Error) { // Empty buffer. std::vector<uint8_t> empty; DataExtractor ext(empty); EXPECT_FALSE(ext.ReadSleb128()); EXPECT_FALSE(ext.ReadUleb128()); // This buffer has no value without the high bit set so the number won't terminate. std::vector<uint8_t> buffer{0xc0, 0xbb}; ext = DataExtractor(buffer); EXPECT_FALSE(ext.ReadSleb128()); EXPECT_FALSE(ext.ReadUleb128()); } } // namespace zxdb
28.57868
89
0.684725
[ "vector" ]
15f8ba61cfd91654f273be8c86d1e80c874b94a4
1,280
cpp
C++
lib/draw/rendermanager.cpp
LeDYoM/sgh
66a56d0df5c0acc8a3f47212a91da7ea889695de
[ "MIT" ]
null
null
null
lib/draw/rendermanager.cpp
LeDYoM/sgh
66a56d0df5c0acc8a3f47212a91da7ea889695de
[ "MIT" ]
null
null
null
lib/draw/rendermanager.cpp
LeDYoM/sgh
66a56d0df5c0acc8a3f47212a91da7ea889695de
[ "MIT" ]
null
null
null
#include "rendermanager.hpp" #include <lib/core/log.hpp> #include "transformation.hpp" #include "renderstates.hpp" #include "rendernode.hpp" #include "camera.hpp" #include <lib/drivers/render/rendertarget.hpp> #include <lib/core/appcontroller.hpp> #include <lib/core/driver.hpp> #include <SFML/Graphics/Shader.hpp> #include <SFML/Graphics/Texture.hpp> #include <SFML/Graphics/VertexArray.hpp> namespace lib { namespace draw { RenderManager::RenderManager() { LOG_CONSTRUCT_NOPARAMS; } RenderManager::~RenderManager() { m_renderList.clear(); LOG_DESTRUCT_NOPARAMS; } void RenderManager::Init() { AppService::Init(); } void RenderManager::startFrame(sptr<drivers::render::RenderTarget> renderTarget, sptr<Camera> camera) { m_renderTarget = renderTarget; m_camera = camera; } void RenderManager::finishFrame() { lib::drivers::render::RenderTarget *renderTarget{ m_renderTarget.get() }; renderTarget->setView(m_camera->view(), m_camera->getViewport()); for (const RenderNode*node : m_renderList) { renderTarget->draw(node); } m_renderList.clear(); } void RenderManager::preRenderNode(const sptr<RenderNode> &node) { // m_renderTarget->draw(node); m_renderList.push_back(node.get()); } } }
20.31746
103
0.711719
[ "render" ]
15fccaa8cd1af130e9bb51d81e799b30af948558
754
cpp
C++
dp/coin_change/cpp/ashutosh_coinchange.cpp
CarbonDDR/al-go-rithms
8e65affbe812931b7dde0e2933eb06c0f44b4130
[ "CC0-1.0" ]
1,253
2017-06-06T07:19:25.000Z
2022-03-30T17:07:58.000Z
dp/coin_change/cpp/ashutosh_coinchange.cpp
rishabh99-rc/al-go-rithms
4df20d7ef7598fda4bc89101f9a99aac94cdd794
[ "CC0-1.0" ]
554
2017-09-29T18:56:01.000Z
2022-02-21T15:48:13.000Z
dp/coin_change/cpp/ashutosh_coinchange.cpp
rishabh99-rc/al-go-rithms
4df20d7ef7598fda4bc89101f9a99aac94cdd794
[ "CC0-1.0" ]
2,226
2017-09-29T19:59:59.000Z
2022-03-25T08:59:55.000Z
/*Problem link (Leetcode) : https://leetcode.com/problems/coin-change/ */ #include <iostream> #include <vector> #include <algorithm> using namespace std; int coinChange(vector<int>& coins, int amount) { int n = coins.size(); vector<int> dp(amount+1, INT8_MAX); dp[0] = 0; for(int i =1; i <= amount; i++){ for (int j = 0; j < n; j++){ if (coins[j] <= i){ if (dp[i-coins[j]] != INT8_MAX){ dp[i] = min(dp[i], dp[i-coins[j]] + 1); } } } } return dp[amount] > amount ? -1 : dp[amount]; } int main(void){ int amount = 100; vector<int> coins = {1, 2, 5, 10}; cout << coinChange(coins, amount) << endl; return 0; }
22.176471
73
0.496021
[ "vector" ]
c60a92624b6f27cdd1274506fb7dbc783cc835c7
6,163
cc
C++
code/addons/db/table.cc
sirAgg/nebula
3fbccc73779944aa3e56b9e8acdd6fedd1d38006
[ "BSD-2-Clause" ]
377
2018-10-24T08:34:21.000Z
2022-03-31T23:37:49.000Z
code/addons/db/table.cc
sirAgg/nebula
3fbccc73779944aa3e56b9e8acdd6fedd1d38006
[ "BSD-2-Clause" ]
11
2020-01-22T13:34:46.000Z
2022-03-07T10:07:34.000Z
code/addons/db/table.cc
sirAgg/nebula
3fbccc73779944aa3e56b9e8acdd6fedd1d38006
[ "BSD-2-Clause" ]
23
2019-07-13T16:28:32.000Z
2022-03-20T09:00:59.000Z
//------------------------------------------------------------------------------ // table.cc // (C) 2006 Radon Labs GmbH // (C) 2013-2016 Individual contributors, see AUTHORS file //------------------------------------------------------------------------------ #include "foundation/stdneb.h" #include "db/table.h" #include "db/database.h" #include "db/dbfactory.h" #include "db/dataset.h" namespace Db { __ImplementClass(Db::Table, 'TABL', Core::RefCounted); using namespace Util; //------------------------------------------------------------------------------ /** */ Table::Table() : isConnected(false), primaryColumnIndex(InvalidIndex) { // empty } //------------------------------------------------------------------------------ /** */ Table::~Table() { if (this->IsConnected()) { this->Disconnect(false); } } //------------------------------------------------------------------------------ /** Create a dataset associated with this table. */ Ptr<Dataset> Table::CreateDataset() { Ptr<Dataset> newDataset = DbFactory::Instance()->CreateDataset(); newDataset->SetTable(this); return newDataset; } //------------------------------------------------------------------------------ /** Add a new column to the table. The change will not be synchronised with the database until a CommitChanges() is called on the Table object. */ void Table::AddColumn(const Column& col) { this->columns.Append(col); this->nameIndexMap.Add(col.GetName(), this->columns.Size() - 1); this->fourccIndexMap.Add(col.GetFourCC(), this->columns.Size() - 1); this->attrIdIndexMap.Add(col.GetAttrId(), this->columns.Size() - 1); if (col.GetType() == Column::Primary) { this->primaryColumnIndex = this->columns.Size() - 1; } } //------------------------------------------------------------------------------ /** Sets a new name for the table. If the Table is attached to a database the change will happen immediately (this must be implemented in a subclass). */ void Table::SetName(const Util::String& n) { this->name = n; } //------------------------------------------------------------------------------ /** Connect the table with a database: - if the table doesn't exist yet, it will be created, and all table object columns will be marked as uncommitted - if the table exists its layout will be read and added as columns to the table object unless a column exists, in this case the column will be marked as uncommitted, existing columns will be marked as committed. All this must happen in a subclass of course. */ void Table::Connect(const Ptr<Database>& db, ConnectMode connectMode, bool ignoreUnknownColumns) { n_assert(!this->isConnected); n_assert(0 != db); this->database = db; this->isConnected = true; } //------------------------------------------------------------------------------ /** Disconnect the table with a database. If the dropTable argument is true (default is false), the actual database table will be deleted from the database as well. If dropTable is false, a CommitChanges() should be called before the table object is disconnected (this is left to the subclass). */ void Table::Disconnect(bool /*dropTable*/) { n_assert(this->isConnected); this->database = nullptr; this->isConnected = false; } //------------------------------------------------------------------------------ /** This method should be used to create multicolumn indices on the table. The table must be connected for this method to work! */ void Table::CreateMultiColumnIndex(const Array<Attr::AttrId>& /*columnIds*/) { // implement in subclass! } //------------------------------------------------------------------------------ /** Commit any changes to the database: - rows added to the Table object will be added in the database - rows deleted from the Table object will be dropped from the database All this must be implemented in a subclass. */ void Table::CommitChanges(bool /*resetModifiedState*/, bool /*useTransaction*/) { n_error("Db::Table::CommitChanges() called!"); } //------------------------------------------------------------------------------ /** Bind a value table to the table object. A value table represents actual values in the table, adding, removing or modifying rows on a value table will be reflected automatically in the database. Only one value table may be bound at any time! */ void Table::BindValueTable(const Ptr<ValueTable>& valTable) { n_assert(0 != valTable); n_assert(!this->valueTable.isvalid()); this->valueTable = valTable; } //------------------------------------------------------------------------------ /** Unbind the currently bound value table. This will commit any changes to the value table into the database. */ void Table::UnbindValueTable() { n_assert(this->valueTable.isvalid()); this->valueTable = nullptr; } //------------------------------------------------------------------------------ /** This method returns true if any uncommited columns exist. These are columns that have been added with AddColumn() but have not yet been committed to the database. */ bool Table::HasUncommittedColumns() const { // NOTE: columns are always added at the end, so its ok if we // just check the last columns if (this->columns.Size() > 0) { return !(this->columns.Back().IsCommitted()); } else { return false; } } //------------------------------------------------------------------------------ /** Commit uncommitted columns to the database, this does not write any data to the database, just change the table layout. */ void Table::CommitUncommittedColumns() { n_error("Db::Table::CommitUncommittedColumns() called!"); } //------------------------------------------------------------------------------ /** Immediately delete rows of the connected dataset from the database. */ void Table::CommitDeletedRows() { n_error("Db::Table::CommitDeletedRows() called!"); } } // namespace Db
29.347619
91
0.540808
[ "object" ]
c60b56e933831246c8797aba6a94e5733aa9fc35
17,914
cc
C++
src/visualisers/EmagramGrid.cc
b8raoult/magics
eb2c86ec6e392e89c90044128dc671f22283d6ad
[ "ECL-2.0", "Apache-2.0" ]
41
2018-12-07T23:10:50.000Z
2022-02-19T03:01:49.000Z
src/visualisers/EmagramGrid.cc
b8raoult/magics
eb2c86ec6e392e89c90044128dc671f22283d6ad
[ "ECL-2.0", "Apache-2.0" ]
59
2019-01-04T15:43:30.000Z
2022-03-31T09:48:15.000Z
src/visualisers/EmagramGrid.cc
b8raoult/magics
eb2c86ec6e392e89c90044128dc671f22283d6ad
[ "ECL-2.0", "Apache-2.0" ]
13
2019-01-07T14:36:33.000Z
2021-09-06T14:48:36.000Z
/* * (C) Copyright 1996-2018 ECMWF. * * This software is licensed under the terms of the Apache Licence Version 2.0 * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. * In applying this licence, ECMWF does not waive the privileges and immunities * granted to it by virtue of its status as an intergovernmental organisation nor * does it submit to any jurisdiction. */ #include "EmagramGrid.h" #include "Layer.h" #include "Layout.h" #include "PaperPoint.h" #include "Polyline.h" #include "SciMethods.h" #include "Text.h" #include "Transformation.h" using namespace magics; EmagramGrid::EmagramGrid() {} EmagramGrid::~EmagramGrid() {} static void step(set<double>& values, set<double>& labels, double from, double to, double ref, double step, int freq) { if (ref > to) return; int l = 0; for (double v = ref; v < to; v += step) { values.insert(v); if (l % freq == 0) { labels.insert(v); } l++; } if (ref < from) return; l = 0; for (double v = ref; v >= from; v -= step) { values.insert(v); if (l % freq == 0) { labels.insert(v); } l++; } } void EmagramGrid::visit(DrawingVisitor& out) { const Transformation& tephi = out.transformation(); // vector<double> tempe; double maxpcx = (tephi.getMaxPCX() + (tephi.getMinPCX() * .25)) / 1.25; // double minpcx = tephi.getMinPCX(); PaperPoint lr(maxpcx, tephi.getMinPCY()); UserPoint lrTP; tephi.revert(lr, lrTP); double realTMax = lrTP.x(); double tmin; double tmax; double pmin; double pmax; tephi.boundingBox(tmin, pmin, tmax, pmax); double tfactor = 10; tmax = int(tmax / tfactor) * tfactor + tfactor; tmin = int(tmin / tfactor) * tfactor - tfactor; double pfactor = 100; pmax = int(pmax / pfactor) * pfactor + pfactor; if (pmin < 100.) { pfactor = 10; } pmin = int(pmin / pfactor) * pfactor; double thmin = magics::theta(tmin + 273.15, pmax * 100.) - 237.15; thmin = -100; // double thmax = magics::theta(tmax+273.15, pmin*100.) -237.15; // thmax = +450; double thmax = 220; // Isotherms are vertical lines if (isotherm_) { std::set<double> isotherms; std::set<double> labels; MagFont font(isotherm_label_font_, isotherm_label_style_, isotherm_label_size_); font.colour(*isotherm_label_colour_); step(isotherms, labels, tmin, tmax, isotherm_reference_, isotherm_interval_, isotherm_label_frequency_); for (std::set<double>::iterator t = isotherms.begin(); t != isotherms.end(); ++t) { Polyline poly; Colour colour = (*t != isotherm_reference_) ? *isotherm_colour_ : *isotherm_reference_colour_; poly.setColour(colour); poly.setThickness(isotherm_thickness_); poly.setLineStyle(isotherm_style_); PaperPoint xy1 = tephi(UserPoint(*t, pmin)); PaperPoint xy2 = tephi(UserPoint(*t, pmax)); // If no points are in the main area it is not clipped if (xy1.x() < maxpcx || xy2.x() < maxpcx) { poly.push_back(xy1); poly.push_back(xy2); tephi(poly, out.layout()); } std::set<double>::iterator label = labels.find(*t); if (label == labels.end()) continue; // labels at the bottom PaperPoint xy = tephi(UserPoint(*t, tephi.getMinY())); if (tephi.in(xy) && xy.x() <= maxpcx) { xy.y(0); // bottom labels have their own box with y coordinates 0->100 map<double, PaperPoint>::iterator labelIt = tBottomLabels_.find(*t); if (labelIt == tBottomLabels_.end()) { tBottomLabels_.insert(make_pair(*t, xy)); } else tBottomLabels_[*t] = xy; } #if 0 //labels at the top xy = tephi(UserPoint(*t, tephi.getMaxY())); if(tephi.in(xy) && xy.x() <= maxpcx) { xy.y(10); //top labels have their own box with y coordinates 0->100 map<double, PaperPoint>::iterator labelIt =tTopLabels_.find(*t); if(labelIt == tTopLabels_.end() ) { tTopLabels_.insert(make_pair(*t, xy)); } else tTopLabels_[*t] = xy; } #endif } } // dry adiantic lines (theta) if (dry_adiabatic_) { std::set<double> dry; std::set<double> labels; MagFont font(dry_adiabatic_label_font_, dry_adiabatic_label_style_, dry_adiabatic_label_size_); font.colour(*dry_adiabatic_label_colour_); step(dry, labels, thmin, thmax, dry_adiabatic_reference_, dry_adiabatic_interval_, dry_adiabatic_label_frequency_); for (std::set<double>::iterator th = dry.begin(); th != dry.end(); ++th) { Polyline poly; poly.setLineStyle(dry_adiabatic_style_); poly.setColour(*dry_adiabatic_colour_); poly.setThickness(dry_adiabatic_thickness_); // double pl = -1; bool hasPointsIn = false; for (double p = pmin; p < pmax; p += 1) { double t = magics::temperatureFromTheta(*th + 273.15, p * 100) - 273.15; PaperPoint xy = tephi(UserPoint(t, p)); if (xy.x() < maxpcx) { hasPointsIn = true; } poly.push_back(xy); /*if (t >= -40 ) poly.push_back(tephi(UserPoint(t, p))); else pl = p;*/ } // If no points are in the main area it is not clipped if (hasPointsIn) tephi(poly, out.layout()); std::set<double>::iterator label = labels.find(*th); if (label == labels.end()) continue; // Labels along the isotherm from the bottom left corner double tLabel = realTMax; UserPoint point(tLabel, magics::pressureFromTheta(*th + 273.15, tLabel + 273.15) / 100.); PaperPoint xy(tephi(point)); if (tephi.in(xy)) { Text* text = new Text(); text->setJustification(Justification::LEFT); text->setVerticalAlign(VerticalAlign::HALF); text->addText(tostring(*th), font); text->setBlanking(true); text->push_back(PaperPoint(maxpcx + 1, xy.y())); out.push_back(text); } } } // Isobars: horizontal lines if (isobar_) { std::set<double> isobars; std::set<double> labels; step(isobars, labels, pmin, pmax, isobar_reference_, isobar_interval_, isobar_label_frequency_); for (std::set<double>::iterator p = isobars.begin(); p != isobars.end(); ++p) { Polyline poly; poly.setColour(*isobar_colour_); poly.setLineStyle(isobar_style_); poly.setThickness(isobar_thickness_); PaperPoint xy = tephi(UserPoint(tmin, *p)); double yy = xy.y(); xy = PaperPoint(0, yy); poly.push_back(xy); xy = PaperPoint(100, yy); poly.push_back(xy); tephi(poly, out.layout()); // Labels std::set<double>::iterator label = labels.find(*p); if (label != labels.end()) { // Left label xy.x(100); // left labels have their own box with x coordinates 0->100 map<double, PaperPoint>::iterator labelIt = pressureLeftLabels_.find(*p); if (labelIt == pressureLeftLabels_.end()) { pressureLeftLabels_.insert(make_pair(*p, xy)); } else pressureLeftLabels_[*p] = xy; // Right label xy.x(0 + 10); // right labels have their own box with x coordinates 0->100 labelIt = pressureRightLabels_.find(*p); if (labelIt == pressureRightLabels_.end()) { pressureRightLabels_.insert(make_pair(*p, xy)); } } } // vertical dash line where the info box starts in the right Polyline* axe = new Polyline(); axe->setColour(Colour("black")); axe->setLineStyle(LineStyle::DASH); axe->setThickness(1); axe->push_back(PaperPoint(maxpcx, tephi.getMinPCY())); axe->push_back(PaperPoint(maxpcx, tephi.getMaxPCY())); out.push_back(axe); } // Humidity Mixing ratio Lines - up to 200 hPa if (mixing_ratio_) { vector<float> ratios; // in g/kg ratios.push_back(0.1); ratios.push_back(0.2); ratios.push_back(0.4); ratios.push_back(0.7); ratios.push_back(1.); ratios.push_back(1.5); ratios.push_back(2.); ratios.push_back(3.); ratios.push_back(4.); ratios.push_back(6.); ratios.push_back(8.); ratios.push_back(10.); ratios.push_back(15.); ratios.push_back(20.); ratios.push_back(30.); int grid = 0; int labelCnt = 0; MagFont font(mixing_ratio_label_font_, mixing_ratio_label_style_, mixing_ratio_label_size_); font.colour(*mixing_ratio_label_colour_); for (vector<float>::iterator r = ratios.begin(); r != ratios.end(); ++r) { if (grid % mixing_ratio_frequency_) continue; grid++; Polyline poly; poly.setColour(*mixing_ratio_colour_); poly.setLineStyle(mixing_ratio_style_); poly.setThickness(mixing_ratio_thickness_); double pTop = 200; bool hasPointsIn = false; for (double p = pTop; p < pmax; p += 10) { double t = magics::temperatureFromMixingRatio(*r, p * 100); PaperPoint xy = tephi(UserPoint(t - 273.15, p)); if (xy.x() < maxpcx) hasPointsIn = true; poly.push_back(xy); if (labelCnt % mixing_ratio_label_frequency_) continue; labelCnt++; } // If no points are in the main area it is not clipped if (hasPointsIn) tephi(poly, out.layout()); // labels along the 950 hPa line double pLabel = 950; double t = magics::temperatureFromMixingRatio(*r, pLabel * 100); PaperPoint xy = tephi(UserPoint(t - 273.15, pLabel)); if (tephi.in(xy) && xy.x() <= maxpcx) { Text* text = new Text(); text->addText(tostring(*r), font); text->setBlanking(true); text->setJustification(Justification::CENTRE); text->setVerticalAlign(VerticalAlign::HALF); text->push_back(xy); out.push_back(text); } } } if (saturated_adiabatic_) { MagFont font(saturated_adiabatic_label_font_, saturated_adiabatic_label_style_, saturated_adiabatic_label_size_); font.colour(*saturated_adiabatic_label_colour_); std::set<double> sat; std::set<double> labels; step(sat, labels, thmin, thmax, saturated_adiabatic_reference_, saturated_adiabatic_interval_, saturated_adiabatic_label_frequency_); for (std::set<double>::iterator thetaw = sat.begin(); thetaw != sat.end(); ++thetaw) { if (*thetaw > 65.) continue; Polyline poly; poly.setColour(*saturated_adiabatic_colour_); poly.setLineStyle(saturated_adiabatic_style_); poly.setThickness(saturated_adiabatic_thickness_); double s = thetaEq(*thetaw + 273.15, *thetaw + 273.15, 1000 * 100); double pl = -1; double pTop = 200; bool hasPointsIn = false; for (double p = pTop; p < pmax; p += 1) { double t = magics::temperatureFromThetaEq(s, p * 100) - 273.15; PaperPoint xy = tephi(UserPoint(t, p)); if (xy.x() < maxpcx) { hasPointsIn = true; } poly.push_back(xy); /*if (t >= -40 ) poly.push_back(tephi(UserPoint(t, p))); else pl = p;*/ } // If no points are in the main area it is not clipped if (hasPointsIn) tephi(poly, out.layout()); std::set<double>::iterator label = labels.find(*thetaw); if (label == labels.end()) continue; // Labels are rendered along the 200hPa line double tTop = magics::temperatureFromThetaEq(s, pTop * 100) - 273.15; PaperPoint xy = tephi(UserPoint(tTop, pTop)); if (tephi.in(xy) && xy.x() <= maxpcx) { Text* text = new Text(); text->addText(tostring(*thetaw), font); text->push_back(xy); out.push_back(text); } } } // wind area if (1) { MagFont font(isotherm_label_font_, isotherm_label_style_, isotherm_label_size_); font.colour(*isotherm_label_colour_); for (int i = 10; i < 25; i += 10) { // vertical dashed line and labels at the bottom Polyline poly; Colour colour = *isotherm_colour_; poly.setColour(colour); poly.setThickness(isotherm_thickness_); poly.setLineStyle(LineStyle::DASH); for (double p = pmin; p <= pmax; p += 10) { poly.push_back(tephi(UserPoint(1000. + i, p))); } tephi(poly, out.layout()); UserPoint pt(1000 + i, tephi.getMaxPCY()); PaperPoint xy = tephi(pt); xy.y(tephi.getMaxPCY() * .5); infoLabels_.insert(make_pair(i, xy)); } std::set<double> isobars; std::set<double> labels; step(isobars, labels, pmin, pmax, isobar_reference_, isobar_interval_, isobar_label_frequency_); for (std::set<double>::iterator p = isobars.begin(); p != isobars.end(); ++p) { Polyline poly; poly.setColour(*isobar_colour_); poly.setLineStyle(LineStyle::DASH); poly.setThickness(isobar_thickness_); poly.push_back(tephi(UserPoint(1000, *p))); poly.push_back(tephi(UserPoint(1100, *p))); tephi(poly, out.layout()); } } } /*! Class information are given to the output-stream. */ void EmagramGrid::print(ostream& out) const { out << "EmagramGrid["; TephiGridAttributes::print(out); out << "]"; } void EmagramGrid::visit(LeftAxisVisitor& out) { MagFont font(isobar_label_font_, isobar_label_style_, isobar_label_size_); font.colour(*isobar_label_colour_); for (map<double, PaperPoint>::iterator label = pressureLeftLabels_.begin(); label != pressureLeftLabels_.end(); ++label) { Text* text = new Text(); text->setText(tostring(label->first)); text->setFont(font); text->setBlanking(true); text->setJustification(Justification::RIGHT); text->setVerticalAlign(VerticalAlign::HALF); text->push_back(label->second); out.push_back(text); } } void EmagramGrid::visit(RightAxisVisitor& out) { MagFont font(isobar_label_font_, isobar_label_style_, isobar_label_size_); font.colour(*isobar_label_colour_); for (map<double, PaperPoint>::iterator label = pressureRightLabels_.begin(); label != pressureRightLabels_.end(); ++label) { Text* text = new Text(); text->setText(tostring(label->first)); text->setFont(font); text->setBlanking(true); text->setJustification(Justification::LEFT); text->setVerticalAlign(VerticalAlign::HALF); text->push_back(label->second); out.push_back(text); } } void EmagramGrid::visit(BottomAxisVisitor& out) { MagFont font(isotherm_label_font_, isotherm_label_style_, isotherm_label_size_); font.colour(*isotherm_label_colour_); for (map<double, PaperPoint>::iterator label = tBottomLabels_.begin(); label != tBottomLabels_.end(); ++label) { Text* text = new Text(); text->setText(tostring(label->first)); text->setFont(font); text->setBlanking(true); text->push_back(label->second); out.push_back(text); } } void EmagramGrid::visit(TopAxisVisitor& out) { MagFont font(isotherm_label_font_, isotherm_label_style_, isotherm_label_size_); font.colour(*isotherm_label_colour_); for (map<double, PaperPoint>::iterator label = tTopLabels_.begin(); label != tTopLabels_.end(); ++label) { Text* text = new Text(); text->setText(tostring(label->first)); text->setFont(font); text->setBlanking(true); text->push_back(label->second); out.push_back(text); } } void EmagramGrid::visit(SceneLayer& layer, vector<LayoutVisitor*>& visitors) { // First we create the layer! // and push It to the parent layer! StaticLayer* tephi = new NoDataLayer(this); // taylor->id(iconName_); // taylor>name(iconName_); layer.add(tephi); for (vector<LayoutVisitor*>::iterator visitor = visitors.begin(); visitor != visitors.end(); ++visitor) { tephi->set(*visitor); (*visitor)->visit(*this); } }
34.85214
119
0.555766
[ "vector" ]
723c668e43a55c9a11d48cff58652b3339f2f707
1,632
cpp
C++
aws-cpp-sdk-logs/source/model/PutQueryDefinitionRequest.cpp
Neusoft-Technology-Solutions/aws-sdk-cpp
88c041828b0dbee18a297c3cfe98c5ecd0706d0b
[ "Apache-2.0" ]
1
2022-02-12T08:09:30.000Z
2022-02-12T08:09:30.000Z
aws-cpp-sdk-logs/source/model/PutQueryDefinitionRequest.cpp
Neusoft-Technology-Solutions/aws-sdk-cpp
88c041828b0dbee18a297c3cfe98c5ecd0706d0b
[ "Apache-2.0" ]
1
2022-01-03T23:59:37.000Z
2022-01-03T23:59:37.000Z
aws-cpp-sdk-logs/source/model/PutQueryDefinitionRequest.cpp
ravindra-wagh/aws-sdk-cpp
7d5ff01b3c3b872f31ca98fb4ce868cd01e97696
[ "Apache-2.0" ]
1
2022-03-23T15:17:18.000Z
2022-03-23T15:17:18.000Z
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/logs/model/PutQueryDefinitionRequest.h> #include <aws/core/utils/json/JsonSerializer.h> #include <utility> using namespace Aws::CloudWatchLogs::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; PutQueryDefinitionRequest::PutQueryDefinitionRequest() : m_nameHasBeenSet(false), m_queryDefinitionIdHasBeenSet(false), m_logGroupNamesHasBeenSet(false), m_queryStringHasBeenSet(false) { } Aws::String PutQueryDefinitionRequest::SerializePayload() const { JsonValue payload; if(m_nameHasBeenSet) { payload.WithString("name", m_name); } if(m_queryDefinitionIdHasBeenSet) { payload.WithString("queryDefinitionId", m_queryDefinitionId); } if(m_logGroupNamesHasBeenSet) { Array<JsonValue> logGroupNamesJsonList(m_logGroupNames.size()); for(unsigned logGroupNamesIndex = 0; logGroupNamesIndex < logGroupNamesJsonList.GetLength(); ++logGroupNamesIndex) { logGroupNamesJsonList[logGroupNamesIndex].AsString(m_logGroupNames[logGroupNamesIndex]); } payload.WithArray("logGroupNames", std::move(logGroupNamesJsonList)); } if(m_queryStringHasBeenSet) { payload.WithString("queryString", m_queryString); } return payload.View().WriteReadable(); } Aws::Http::HeaderValueCollection PutQueryDefinitionRequest::GetRequestSpecificHeaders() const { Aws::Http::HeaderValueCollection headers; headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "Logs_20140328.PutQueryDefinition")); return headers; }
23.314286
117
0.761642
[ "model" ]
7240ab427d8f1fb903a30fbc8b5d9ca4ae44e284
2,888
cpp
C++
Code/Framework/AzToolsFramework/AzToolsFramework/UI/UICore/AspectRatioAwarePixmapWidget.cpp
Schneidex69/o3de
d9ec159f0e07ff86957e15212232413c4ff4d1dc
[ "Apache-2.0", "MIT" ]
1
2021-07-19T23:54:05.000Z
2021-07-19T23:54:05.000Z
Code/Framework/AzToolsFramework/AzToolsFramework/UI/UICore/AspectRatioAwarePixmapWidget.cpp
Schneidex69/o3de
d9ec159f0e07ff86957e15212232413c4ff4d1dc
[ "Apache-2.0", "MIT" ]
null
null
null
Code/Framework/AzToolsFramework/AzToolsFramework/UI/UICore/AspectRatioAwarePixmapWidget.cpp
Schneidex69/o3de
d9ec159f0e07ff86957e15212232413c4ff4d1dc
[ "Apache-2.0", "MIT" ]
null
null
null
/* * Copyright (c) Contributors to the Open 3D Engine Project. * For complete copyright and license terms please see the LICENSE at the root of this distribution. * * SPDX-License-Identifier: Apache-2.0 OR MIT * */ #include "AzToolsFramework_precompiled.h" AZ_PUSH_DISABLE_WARNING(4251 4800, "-Wunknown-warning-option") // 4251: 'QPainter::d_ptr': class 'QScopedPointer<QPainterPrivate,QScopedPointerDeleter<T>>' needs to have dll-interface to be used by clients of class 'QPainter' // 4800: 'QFlags<QPainter::RenderHint>::Int': forcing value to bool 'true' or 'false' (performance warning) #include <QPainter> AZ_POP_DISABLE_WARNING #include "AspectRatioAwarePixmapWidget.hxx" namespace AzToolsFramework { AspectRatioAwarePixmapWidget::AspectRatioAwarePixmapWidget(QWidget* parent) : QWidget(parent) , m_pixmap() { } void AspectRatioAwarePixmapWidget::setPixmap(const QPixmap& p) { m_pixmap = p; // update the scaled, cached copy so that we recache on paint m_scaledPixmap = p; repaint(); } int AspectRatioAwarePixmapWidget::heightForWidth(int w) const { // keep aspect ratio! QSize pixmapSize = m_pixmap.size(); if (!pixmapSize.isEmpty()) // isEmpty returns true if either width or height are <= 0 { float aspectRatio = static_cast<float>(pixmapSize.width()) / static_cast<float>(pixmapSize.height()); return (int)((1.0f / aspectRatio) * (float)w); } return -1; } bool AspectRatioAwarePixmapWidget::hasHeightForWidth() const { return true; } void AspectRatioAwarePixmapWidget::paintEvent(QPaintEvent* e) { if (!m_pixmap.isNull()) { QPainter p(this); // calculate the size to render; QSize scale with KeepAspectRatio will // calculate such that the new size will be as large as possible, // maintaining the aspect ratio and fitting within widgetSize QSize pixmapSize = m_pixmap.size(); QSize widgetSize = size(); pixmapSize.scale(widgetSize, Qt::KeepAspectRatio); // center it (figure out the difference and use half) int targetX = (size().width() - pixmapSize.width()) / 2; int targetY = (size().height() - pixmapSize.height()) / 2; QRect targetRect(QPoint(targetX, targetY), pixmapSize); // cache the scaled pixmap, so that drawPixmap doesn't have to do any // scaling if (m_scaledPixmap.size() != pixmapSize) { m_scaledPixmap = m_pixmap.scaled(pixmapSize, Qt::IgnoreAspectRatio); } p.drawPixmap(targetRect, m_scaledPixmap); } QWidget::paintEvent(e); } }
33.581395
225
0.623269
[ "render", "3d" ]
7243894f8e222c9b4f1e237e9f69376c192501be
2,943
cpp
C++
src/c++/cpp_python.cpp
AnkerC/codecomplete
84a5db2f4de904156622429e10c81349ab7a26d6
[ "Apache-2.0" ]
null
null
null
src/c++/cpp_python.cpp
AnkerC/codecomplete
84a5db2f4de904156622429e10c81349ab7a26d6
[ "Apache-2.0" ]
null
null
null
src/c++/cpp_python.cpp
AnkerC/codecomplete
84a5db2f4de904156622429e10c81349ab7a26d6
[ "Apache-2.0" ]
null
null
null
#include <vector> #include <cstddef> // for nullptr #include <iostream> #include <Python.h> // C++调用Python需要该头文件 using namespace std; /* * C++和python互相调用示例 * ubuntu下需要先安装 apt-get install python-dev * linux下编译: g++ -o test cpp_python.cpp -I/usr/include/python2.7 -lpython2.7 --std=c++11 */ /* 1. 下面演示C++调用python的add_func函数 called_python.py和该cpp文件在同级目录下 def add_func(x,y): return x+y */ void init_env() { // 初始化 Py_Initialize(); // 设置从当前路径找called_python.py文件,不加这个不会自己从当前目录找 PyRun_SimpleString("import sys"); PyRun_SimpleString("sys.path.append('./')"); } void free_env() { Py_Finalize(); } int do_call_python_class() { cout<<"call python class"<<endl; //定义参数 PyObject* pModule = nullptr; PyObject* pArg = nullptr; PyObject* pFunc = nullptr; PyObject* pRet = nullptr; PyObject* pDict = nullptr; PyObject* pClass = nullptr; PyObject* pIns = nullptr; //导入python文件 pModule = PyImport_Import(PyString_FromString("called_python")); if (pModule == nullptr) { cout<<"fail import"<<endl; return -1; } //获取模块的字典 pDict = PyModule_GetDict(pModule); if (pDict == nullptr) { cout<<"get dic fail"<<endl; return -1; } //从字典中获取类名 pClass = PyDict_GetItemString(pDict, "TestObj"); if (pClass == nullptr) { cout<<"get class name fail"<<endl; return -1; } // 创建类 pIns = PyInstance_New(pClass, NULL, NULL); if (pIns == nullptr) { cout<<"fail get Ins"<<endl; return -1; } char arg[] = "hello"; // 执行函数 pRet = PyObject_CallMethod(pIns, "add_prefix", (char*)"s", (char*)arg); char* ret = nullptr; PyArg_Parse(pRet, "s", &ret); cout<<ret<<endl; // 释放资源 if (pFunc) { Py_DECREF(pFunc); } if (pArg) { Py_DECREF(pArg); } } int do_call_python_func(int a, int b) { int res; //定义参数 PyObject* pModule = nullptr; PyObject* pArg = nullptr; PyObject* pFunc = nullptr; PyObject* pRet = nullptr; PyObject* pDic = nullptr; //导入python文件 pModule = PyImport_Import(PyString_FromString("called_python")); if (pModule == nullptr) { cout<<"fail import"<<endl; return -1; } // 获取函数名 pFunc = PyObject_GetAttrString(pModule, "add_func"); if (pFunc == nullptr) { cout<<"fail get func"<<endl; return -1; } // 传入参数 pArg = Py_BuildValue("ii", a, b); // 执行函数 pRet = PyObject_CallObject(pFunc, pArg); // 获取返回值 res = PyInt_AsLong(pRet); // 释放资源 if (pFunc) { Py_DECREF(pFunc); } if (pArg) { Py_DECREF(pArg); } return res; } void cpp_call_python() { init_env(); int ret = do_call_python_func(1, 2); cout<<"ret "<< ret <<endl; do_call_python_class(); } int main() { cpp_call_python(); }
17.311765
88
0.575943
[ "vector" ]
724a21b36194a62fd37396222b985072b94798c3
5,472
cpp
C++
past2014-2015/0420/0420_2_3.cpp
kazunetakahashi/icpc-challenge
6c3aa2bfd03b88d3ffa439e5c364e3086e31d640
[ "MIT" ]
null
null
null
past2014-2015/0420/0420_2_3.cpp
kazunetakahashi/icpc-challenge
6c3aa2bfd03b88d3ffa439e5c364e3086e31d640
[ "MIT" ]
null
null
null
past2014-2015/0420/0420_2_3.cpp
kazunetakahashi/icpc-challenge
6c3aa2bfd03b88d3ffa439e5c364e3086e31d640
[ "MIT" ]
null
null
null
// http://poj.org/problem?id=3532 /* 通らないのでもう寝ます。 結果:G++ Runtime Error、C++ Wrong Answer Runtime Errorだから、多分0の割り算がまだ出ている。 以下のケースで、できるだけ潰したと思うのですが、これ以上原因がもう思いつきませんでした。 Sample Input 1 4 6 1 2 1 1 3 1 1 4 1 2 3 1 2 4 1 4 3 1 Sample Output 1 0.50 Sample Input 2 4 4 1 3 1 1 3 1 3 4 1 1 2 1 Sample Output 2 1.50 Sample Input 3 4 4 1 2 1 2 3 1 3 4 1 1 3 1 Sample Output 3 1.67 */ #define mattype double #include <iostream> #include <algorithm> #include <valarray> #include <cassert> #include <cmath> #include <iomanip> #include <vector> #include <queue> using namespace std; // 行列 struct matrix { int row, col; valarray<mattype> a; matrix(int N, int M) { a = valarray<mattype>((mattype)0, N * M); row = N; col = M; } bool operator<( const matrix& right ) const { // 使わないけどtupleに必要 if (row != right.row) { return row < right.row; } if (col != right.col) { return col < right.col; } for (int i=0; i<row*col; i++) { if (a[i] != right.a[i]) { return a[i] < right.a[i]; } } return false; } bool operator>( const matrix& right ) const { // 使わないけどtupleに必要 if (row != right.row) { return row > right.row; } if (col != right.col) { return col > right.col; } for (int i=0; i<row*col; i++) { if (a[i] != right.a[i]) { return a[i] > right.a[i]; } } return false; } }; matrix multiply(matrix A, matrix B) { assert(A.col == B.row); int N = A.col; matrix C(A.row, B.col); for (int i=0; i<C.row; i++) { for (int j=0; j<C.col; j++) { C.a[i*C.col + j] = ((valarray<mattype>)A.a[slice(i*A.col, N, 1)] * (valarray<mattype>)B.a[slice(j, N, B.col)]).sum(); } } return C; } matrix inverse(matrix A, matrix B) { // A^{-1} B を出力 assert(A.row == A.col); assert(A.col == B.row); int N = A.row; int M = B.col; for (int i=0; i<N; i++) { mattype taikaku = A.a[i*N+i]; if (taikaku == 0) { for (int k=i+1; k<N; k++) { if (A.a[k*N+i] != 0) { for (int j=0; j<A.col; j++) { swap(A.a[i*N+j], A.a[k*N+j]); } for (int j=0; j<B.col; j++) { swap(B.a[i*M+j], B.a[k*M+j]); } taikaku = A.a[i*N+i]; break; } } } for (int k=0; k<N; k++) { if (i == k) continue; mattype keisu = A.a[k*N+i]/taikaku; // A.a[k*N+i] = 0; for (int j=i+1; j<N; j++) { A.a[k*N+j] = A.a[k*N+j] - keisu * A.a[i*N+j]; } for (int j=0; j<M; j++) { B.a[k*M+j] = B.a[k*M+j] - keisu * B.a[i*M+j]; } } } for (int i=0; i<N; i++) { mattype taikaku = A.a[i*N+i]; for (int j=0; j<M; j++) { B.a[i*M+j] = B.a[i*M+j]/taikaku; } } return B; } matrix transposed(matrix A) { matrix B = matrix(A.col, A.row); for (int i=0; i<B.row; i++) { for (int j=0; j<B.col; j++) { B.a[i*B.col + j] = A.a[j*A.col + i]; } } return B; } struct reg { int X; int Y; double R; reg(int x, int y, double r) { X = x; Y = y; R = r; } }; struct pass { int X; double R; pass(int x, double r) { X = x; R = r; } }; int main() { int N, M; cin >> N >> M; vector<reg> V; vector<pass> W[110]; int x, y; double r; // まずは電流が流れない抵抗を取り除く for (int i=0; i<M; i++) { cin >> x >> y >> r; x--; y--; if (x > y) { swap(x, y); } W[y].push_back(pass(x, r)); } bool visited[110]; fill(visited, visited+N, false); queue<int> Q; Q.push(N-1); while (!Q.empty()) { int v = Q.front(); Q.pop(); if (!visited[v]) { visited[v] = true; for (unsigned int i=0; i<W[v].size(); i++) { int w = W[v][i].X; if (!visited[w]) { Q.push(w); } } } } // いらないノードを「詰める」ことにして、新しいノードで考える。 int trans[110]; int id = 0; for (int i=0; i<N; i++) { if (!visited[i]) { W[i].clear(); } else { trans[i] = id++; } } for (int i=0; i<N; i++) { int y = trans[i]; for (unsigned int j=0; j<W[i].size(); j++) { int x = trans[W[i][j].X]; int r = W[i][j].R; // cerr << "x = " << x << ", y = " << y << ", r = " << r << endl; V.push_back(reg(x, y, r)); } } int i_size = (int)V.size(); // 抵抗に流れる電流の数 int v_size = id-1; // 電位の数。新しい int C = i_size + v_size; // cerr << i_size << " + " << v_size << " = " << C << endl; matrix A = matrix(C, C); matrix b = matrix(C, 1); // 電流保存則。ノード0からN-2まで有効。N-1は考えても必ず線形従属なので飛ばす。 for (int i=0; i<v_size; i++) { for (int j=0; j<i_size; j++) { if (V[j].X == i) { // cerr << "i = " << i << ", j = " << j << ", 1" << endl; A.a[i * A.col + j] = 1; } else if (V[j].Y == i) { // cerr << "i = " << i << ", j = " << j << ", -1" << endl; A.a[i * A.col + j] = -1; } } } b.a[0] = 1; // 電位の式。 for (int i=0; i<i_size; i++) { A.a[(i + v_size) * A.col + i] = V[i].R; for (int j=V[i].X; j<V[i].Y; j++) { A.a[(i + v_size) * A.col + (i_size + j)] = -1; } } matrix ans = inverse(A, b); /* for (int i=0; i<i_size; i++) { cerr << "i_" << i << " = " << ans.a[i] << endl; } for (int i=0; i<v_size; i++) { cerr << "v_" << i << " = " << ans.a[i+i_size] << endl; } */ cout << fixed << setprecision(2) << ((valarray<mattype>)(ans.a[slice(i_size, v_size, 1)])).sum() << endl; }
21.046154
107
0.452303
[ "vector" ]
724a7a73fe33e47752cbac768e9ae95bfc61e516
653
cpp
C++
378.kth-smallest-element-in-a-sorted-matrix.158915099.ac.cpp
blossom2017/Leetcode
8bcfc2d5eeb344a1489b0d84a9a81a9f5d61281b
[ "Apache-2.0" ]
null
null
null
378.kth-smallest-element-in-a-sorted-matrix.158915099.ac.cpp
blossom2017/Leetcode
8bcfc2d5eeb344a1489b0d84a9a81a9f5d61281b
[ "Apache-2.0" ]
null
null
null
378.kth-smallest-element-in-a-sorted-matrix.158915099.ac.cpp
blossom2017/Leetcode
8bcfc2d5eeb344a1489b0d84a9a81a9f5d61281b
[ "Apache-2.0" ]
null
null
null
class Solution { public: struct compare{ bool operator()(vector<int> a,vector<int> b) { return a[0]>b[0]; } }; int kthSmallest(vector<vector<int>>& matrix, int k) { //minheaps vector<int> ele; priority_queue<vector<int>,vector<vector<int>> , compare> pq; for(int i=0;i<matrix.size();i++)pq.push({matrix[i][0],i,0}); for(int ct=0;ct<k;ct++) { ele=pq.top(); pq.pop(); int r =ele[1]; int c = ele[2]; if(c+1<matrix.size()) pq.push({matrix[r][c+1],r,c+1}); } return ele[0]; } };
24.185185
68
0.460949
[ "vector" ]
724b9ef921bf99b9765febe81cdb3e04d6f28e0f
12,774
cpp
C++
sycl/src/vec-pose-inner.cpp
jeffhammond/miniBUDE
99362eb36805ee9b66bb8d8c7ea20c6348f62c46
[ "Apache-2.0" ]
8
2021-06-25T13:40:44.000Z
2022-03-22T06:34:50.000Z
sycl/src/vec-pose-inner.cpp
jeffhammond/miniBUDE
99362eb36805ee9b66bb8d8c7ea20c6348f62c46
[ "Apache-2.0" ]
7
2020-12-03T20:23:38.000Z
2021-04-15T16:00:31.000Z
sycl/src/vec-pose-inner.cpp
jeffhammond/miniBUDE
99362eb36805ee9b66bb8d8c7ea20c6348f62c46
[ "Apache-2.0" ]
5
2021-07-02T04:26:37.000Z
2022-01-11T09:27:22.000Z
#include <cmath> #include "bude.h" #define ZERO 0.0f #define QUARTER 0.25f #define HALF 0.5f #define ONE 1.0f #define TWO 2.0f #define FOUR 4.0f #define CNSTNT 45.0f // Energy evaluation parameters #define HBTYPE_F 70 #define HBTYPE_E 69 #define HARDNESS 38.0f #define NPNPDIST 5.5f #define NPPDIST 1.0f void fasten_main( clsycl::handler &h, // size_t posesPerWI, size_t wgSize, size_t ntypes, size_t nposes, size_t natlig, size_t natpro, clsycl::accessor<Atom, 1, R, Global> protein_molecule, clsycl::accessor<Atom, 1, R, Global> ligand_molecule, clsycl::accessor<float, 1, R, Global> transforms_0, clsycl::accessor<float, 1, R, Global> transforms_1, clsycl::accessor<float, 1, R, Global> transforms_2, clsycl::accessor<float, 1, R, Global> transforms_3, clsycl::accessor<float, 1, R, Global> transforms_4, clsycl::accessor<float, 1, R, Global> transforms_5, clsycl::accessor<FFParams, 1, R, Global> forcefield, clsycl::accessor<float, 1, RW, Global> etotals) { constexpr const auto FloatMax = std::numeric_limits<float>::max(); if (wgSize <= 0) { h.parallel_for<class bude_kernel>(clsycl::range<1>((nposes) / static_cast<double> (NUM_TD_PER_THREAD)), [=](clsycl::item<1> item) { const size_t group = item[0]; float etot[NUM_TD_PER_THREAD]; clsycl::float3 lpos[NUM_TD_PER_THREAD]; clsycl::float4 transform[NUM_TD_PER_THREAD][3]; for (size_t i = 0; i < NUM_TD_PER_THREAD; i++) { size_t ix = group * NUM_TD_PER_THREAD + i; const float sx = clsycl::sin(transforms_0[ix]); const float cx = clsycl::cos(transforms_0[ix]); const float sy = clsycl::sin(transforms_1[ix]); const float cy = clsycl::cos(transforms_1[ix]); const float sz = clsycl::sin(transforms_2[ix]); const float cz = clsycl::cos(transforms_2[ix]); transform[i][0].x() = cy * cz; transform[i][0].y() = sx * sy * cz - cx * sz; transform[i][0].z() = cx * sy * cz + sx * sz; transform[i][0].w() = transforms_3[ix]; transform[i][1].x() = cy * sz; transform[i][1].y() = sx * sy * sz + cx * cz; transform[i][1].z() = cx * sy * sz - sx * cz; transform[i][1].w() = transforms_4[ix]; transform[i][2].x() = -sy; transform[i][2].y() = sx * cy; transform[i][2].z() = cx * cy; transform[i][2].w() = transforms_5[ix]; etot[i] = ZERO; } // Loop over ligand atoms size_t il = 0; do { // Load ligand atom data const Atom l_atom = ligand_molecule[il]; const FFParams l_params = forcefield[l_atom.type]; const bool lhphb_ltz = l_params.hphb < ZERO; const bool lhphb_gtz = l_params.hphb > ZERO; const clsycl::float4 linitpos(l_atom.x, l_atom.y, l_atom.z, ONE); for (size_t i = 0; i < NUM_TD_PER_THREAD; i++) { // Transform ligand atom lpos[i].x() = transform[i][0].w() + linitpos.x() * transform[i][0].x() + linitpos.y() * transform[i][0].y() + linitpos.z() * transform[i][0].z(); lpos[i].y() = transform[i][1].w() + linitpos.x() * transform[i][1].x() + linitpos.y() * transform[i][1].y() + linitpos.z() * transform[i][1].z(); lpos[i].z() = transform[i][2].w() + linitpos.x() * transform[i][2].x() + linitpos.y() * transform[i][2].y() + linitpos.z() * transform[i][2].z(); } // Loop over protein atoms size_t ip = 0; do { // Load protein atom data const Atom p_atom = protein_molecule[ip]; const FFParams p_params = forcefield[p_atom.type]; const float radij = p_params.radius + l_params.radius; const float r_radij = 1.f / (radij); const float elcdst = (p_params.hbtype == HBTYPE_F && l_params.hbtype == HBTYPE_F) ? FOUR : TWO; const float elcdst1 = (p_params.hbtype == HBTYPE_F && l_params.hbtype == HBTYPE_F) ? QUARTER : HALF; const bool type_E = ((p_params.hbtype == HBTYPE_E || l_params.hbtype == HBTYPE_E)); const bool phphb_ltz = p_params.hphb < ZERO; const bool phphb_gtz = p_params.hphb > ZERO; const bool phphb_nz = p_params.hphb != ZERO; const float p_hphb = p_params.hphb * (phphb_ltz && lhphb_gtz ? -ONE : ONE); const float l_hphb = l_params.hphb * (phphb_gtz && lhphb_ltz ? -ONE : ONE); const float distdslv = (phphb_ltz ? (lhphb_ltz ? NPNPDIST : NPPDIST) : (lhphb_ltz ? NPPDIST : -FloatMax)); const float r_distdslv = 1.f / (distdslv); const float chrg_init = l_params.elsc * p_params.elsc; const float dslv_init = p_hphb + l_hphb; for (size_t i = 0; i < NUM_TD_PER_THREAD; i++) { // Calculate distance between atoms const float x = lpos[i].x() - p_atom.x; const float y = lpos[i].y() - p_atom.y; const float z = lpos[i].z() - p_atom.z; // XXX as of oneapi-2021.1-beta10, the cl::sycl::native::sqrt variant is significantly slower for no apparent reason const float distij = clsycl::sqrt(x * x + y * y + z * z); // XXX as of oneapi-2021.1-beta10, the following variant is significantly slower for no apparent reason //const float distij = clsycl::distance(lpos[i], clsycl::float3(p_atom.x, p_atom.y, p_atom.z)); // Calculate the sum of the sphere radii const float distbb = distij - radij; const bool zone1 = (distbb < ZERO); // Calculate steric energy etot[i] += (ONE - (distij * r_radij)) * (zone1 ? 2 * HARDNESS : ZERO); // Calculate formal and dipole charge interactions float chrg_e = chrg_init * ((zone1 ? 1 : (ONE - distbb * elcdst1)) * (distbb < elcdst ? 1 : ZERO)); const float neg_chrg_e = -clsycl::fabs(chrg_e); chrg_e = type_E ? neg_chrg_e : chrg_e; etot[i] += chrg_e * CNSTNT; // Calculate the two cases for Nonpolar-Polar repulsive interactions const float coeff = (ONE - (distbb * r_distdslv)); float dslv_e = dslv_init * ((distbb < distdslv && phphb_nz) ? 1 : ZERO); dslv_e *= (zone1 ? 1 : coeff); etot[i] += dslv_e; } } while (++ip < natpro); // loop over protein atoms } while (++il < natlig); // loop over ligand atoms // Write results for (size_t l = 0; l < NUM_TD_PER_THREAD; l++) { etotals[group * NUM_TD_PER_THREAD + l] = etot[l] * HALF; } }); } else { #ifndef DISABLE_ND_RANGE size_t global = ceil((nposes) / static_cast<double> (NUM_TD_PER_THREAD)); global = wgSize * ceil(static_cast<double> (global) / wgSize); clsycl::accessor<FFParams, 1, RW, Local> local_forcefield(clsycl::range<1>(ntypes), h); h.parallel_for<class bude_kernel_ndrange>(clsycl::nd_range<1>(global, wgSize), [=](clsycl::nd_item<1> item) { #ifdef USE_PRE_SYCL121R3 const size_t lid = item.get_local(0); #else const size_t lid = item.get_local_id(0); #endif const size_t gid = item.get_group(0); const size_t lrange = item.get_local_range(0); float etot[NUM_TD_PER_THREAD]; clsycl::float3 lpos[NUM_TD_PER_THREAD]; clsycl::float4 transform[NUM_TD_PER_THREAD][3]; size_t ix = gid * lrange * NUM_TD_PER_THREAD + lid; ix = ix < nposes ? ix : nposes - NUM_TD_PER_THREAD; // TODO async_work_group_copy takes only gentypes, so no FFParams, // casting *_ptr<ElementType> parameter requires first converting to void and then to gentype // although probably free, there must be a better way of doing this clsycl::device_event event = item.async_work_group_copy<float>( clsycl::local_ptr<float>(clsycl::local_ptr<void>(local_forcefield.get_pointer())), clsycl::global_ptr<float>(clsycl::global_ptr<void>(forcefield.get_pointer())), ntypes * sizeof(FFParams) / sizeof(float)); // Compute transformation matrix to private memory const size_t lsz = lrange; for (size_t i = 0; i < NUM_TD_PER_THREAD; i++) { size_t index = ix + i * lsz; const float sx = clsycl::sin(transforms_0[index]); const float cx = clsycl::cos(transforms_0[index]); const float sy = clsycl::sin(transforms_1[index]); const float cy = clsycl::cos(transforms_1[index]); const float sz = clsycl::sin(transforms_2[index]); const float cz = clsycl::cos(transforms_2[index]); transform[i][0].x() = cy * cz; transform[i][0].y() = sx * sy * cz - cx * sz; transform[i][0].z() = cx * sy * cz + sx * sz; transform[i][0].w() = transforms_3[index]; transform[i][1].x() = cy * sz; transform[i][1].y() = sx * sy * sz + cx * cz; transform[i][1].z() = cx * sy * sz - sx * cz; transform[i][1].w() = transforms_4[index]; transform[i][2].x() = -sy; transform[i][2].y() = sx * cy; transform[i][2].z() = cx * cy; transform[i][2].w() = transforms_5[index]; etot[i] = ZERO; } #ifdef USE_PRE_SYCL121R3 event.wait(); #else item.wait_for(event); #endif // Loop over ligand atoms size_t il = 0; do { // Load ligand atom data const Atom l_atom = ligand_molecule[il]; const FFParams l_params = local_forcefield[l_atom.type]; const bool lhphb_ltz = l_params.hphb < ZERO; const bool lhphb_gtz = l_params.hphb > ZERO; const clsycl::float4 linitpos(l_atom.x, l_atom.y, l_atom.z, ONE); for (size_t i = 0; i < NUM_TD_PER_THREAD; i++) { // Transform ligand atom lpos[i].x() = transform[i][0].w() + linitpos.x() * transform[i][0].x() + linitpos.y() * transform[i][0].y() + linitpos.z() * transform[i][0].z(); lpos[i].y() = transform[i][1].w() + linitpos.x() * transform[i][1].x() + linitpos.y() * transform[i][1].y() + linitpos.z() * transform[i][1].z(); lpos[i].z() = transform[i][2].w() + linitpos.x() * transform[i][2].x() + linitpos.y() * transform[i][2].y() + linitpos.z() * transform[i][2].z(); } // Loop over protein atoms size_t ip = 0; do { // Load protein atom data const Atom p_atom = protein_molecule[ip]; const FFParams p_params = local_forcefield[p_atom.type]; const float radij = p_params.radius + l_params.radius; const float r_radij = 1.f / (radij); const float elcdst = (p_params.hbtype == HBTYPE_F && l_params.hbtype == HBTYPE_F) ? FOUR : TWO; const float elcdst1 = (p_params.hbtype == HBTYPE_F && l_params.hbtype == HBTYPE_F) ? QUARTER : HALF; const bool type_E = ((p_params.hbtype == HBTYPE_E || l_params.hbtype == HBTYPE_E)); const bool phphb_ltz = p_params.hphb < ZERO; const bool phphb_gtz = p_params.hphb > ZERO; const bool phphb_nz = p_params.hphb != ZERO; const float p_hphb = p_params.hphb * (phphb_ltz && lhphb_gtz ? -ONE : ONE); const float l_hphb = l_params.hphb * (phphb_gtz && lhphb_ltz ? -ONE : ONE); const float distdslv = (phphb_ltz ? (lhphb_ltz ? NPNPDIST : NPPDIST) : (lhphb_ltz ? NPPDIST : -FloatMax)); const float r_distdslv = 1.f / (distdslv); const float chrg_init = l_params.elsc * p_params.elsc; const float dslv_init = p_hphb + l_hphb; for (size_t i = 0; i < NUM_TD_PER_THREAD; i++) { // Calculate distance between atoms const float x = lpos[i].x() - p_atom.x; const float y = lpos[i].y() - p_atom.y; const float z = lpos[i].z() - p_atom.z; // XXX as of oneapi-2021.1-beta10, the cl::sycl::native::sqrt variant is significantly slower for no apparent reason const float distij = clsycl::sqrt(x * x + y * y + z * z); // XXX as of oneapi-2021.1-beta10, the following variant is significantly slower for no apparent reason //const float distij = clsycl::distance(lpos[i], clsycl::float3(p_atom.x, p_atom.y, p_atom.z)); // Calculate the sum of the sphere radii const float distbb = distij - radij; const bool zone1 = (distbb < ZERO); // Calculate steric energy etot[i] += (ONE - (distij * r_radij)) * (zone1 ? 2 * HARDNESS : ZERO); // Calculate formal and dipole charge interactions float chrg_e = chrg_init * ((zone1 ? 1 : (ONE - distbb * elcdst1)) * (distbb < elcdst ? 1 : ZERO)); const float neg_chrg_e = -clsycl::fabs(chrg_e); chrg_e = type_E ? neg_chrg_e : chrg_e; etot[i] += chrg_e * CNSTNT; // Calculate the two cases for Nonpolar-Polar repulsive interactions const float coeff = (ONE - (distbb * r_distdslv)); float dslv_e = dslv_init * ((distbb < distdslv && phphb_nz) ? 1 : ZERO); dslv_e *= (zone1 ? 1 : coeff); etot[i] += dslv_e; } } while (++ip < natpro); // loop over protein atoms } while (++il < natlig); // loop over ligand atoms // Write results const size_t td_base = gid * lrange * NUM_TD_PER_THREAD + lid; if (td_base < nposes) { for (size_t i = 0; i < NUM_TD_PER_THREAD; i++) { etotals[td_base + i * lrange] = etot[i] * HALF; } } }); #else fprintf(stderr, "Error: DISABLE_ND_RANGE defined so nd_range based kernel is excluded\n"); #endif } }
37.681416
133
0.62682
[ "transform" ]
725153642304561d94c706db97eb9651495f8e0e
1,107
cpp
C++
src/utils/bits.cpp
ElrondNetwork/elrond-sdk-erdcpp
a7530399ccd5e735e644e867a6e6c1c0b8f1c3f2
[ "MIT" ]
3
2021-07-16T08:08:05.000Z
2021-07-21T09:42:03.000Z
src/utils/bits.cpp
ElrondNetwork/elrond-sdk-erdcpp
a7530399ccd5e735e644e867a6e6c1c0b8f1c3f2
[ "MIT" ]
null
null
null
src/utils/bits.cpp
ElrondNetwork/elrond-sdk-erdcpp
a7530399ccd5e735e644e867a6e6c1c0b8f1c3f2
[ "MIT" ]
null
null
null
#include "bits.h" #include "errors.h" namespace util { bytes convertBits(bytes const &data, unsigned int const fromBits, unsigned int const toBits, bool const pad) { unsigned int acc = 0; unsigned int bits = 0; std::vector<uint8_t> ret; unsigned int maxVal = (1 << toBits) - 1; unsigned int maxAcc = (1 << (fromBits + toBits - 1)) - 1; for (auto const &value : data) { int valueAsInt = value & 0xff; if ((valueAsInt < 0) || (valueAsInt >> fromBits != 0)) { throw std::invalid_argument(ERROR_MSG_CONVERT_BITS); } acc = ((acc << fromBits) | valueAsInt) & maxAcc; bits += fromBits; while (bits >= toBits) { bits -= toBits; ret.push_back((acc >> bits) & maxVal); } } if (pad) { if (bits > 0) { ret.push_back((acc << (toBits - bits)) & maxVal); } } else if (bits >= fromBits || ((acc << (toBits - bits)) & maxVal) != 0) { throw std::invalid_argument(ERROR_MSG_CONVERT_BITS); } return ret; } }
23.0625
108
0.528455
[ "vector" ]
7257f899cb4010f3fedae49ee3a9f89455da0cf2
60,416
cpp
C++
external/dokun-ui/src/engine.cpp
larteyoh/neroshop
f8d9e6bc74b4b7e49abbe2dba657c4fb87c3af4b
[ "AML" ]
null
null
null
external/dokun-ui/src/engine.cpp
larteyoh/neroshop
f8d9e6bc74b4b7e49abbe2dba657c4fb87c3af4b
[ "AML" ]
null
null
null
external/dokun-ui/src/engine.cpp
larteyoh/neroshop
f8d9e6bc74b4b7e49abbe2dba657c4fb87c3af4b
[ "AML" ]
null
null
null
#include "../include/engine.hpp" //////////// dokun::Engine::Engine(void) {} //////////// dokun::Engine::~Engine(void) { close(); } //////////// dokun::Engine * dokun::Engine::engine_ptr (new dokun::Engine()); //////////// bool dokun::Engine::status (false); //////////// bool dokun::Engine::open() { return on_open(); } //////////// int dokun::Engine::open(lua_State *L) { lua_pushboolean(L, open()); return 1; } //////////// void dokun::Engine::close() { on_close(); } //////////// int dokun::Engine::close (lua_State *L) { on_close(); lua_close(L); exit(0); return 0; } //////////// //////////// //////////// dokun::Engine * dokun::Engine::get_engine() { return engine_ptr; } //////////// bool dokun::Engine::get_status() { return status; } //////////// bool dokun::Engine::on_open() { if(status == 1) return true; // engine is on (already) - ensures that the engine is not initialized more than once #ifdef __gnu_linux__ // engine should be closed manually std::atexit(dokun::Engine::close); std::at_quick_exit(dokun::Engine::close); #endif // set "user-defined" global locale (utf-8, etc.) - std::setlocale(LC_ALL, ""); // for C and C++ where synced with stdio // (#include <clocale>) //std::locale::global(std::locale("")); // for C++ (#include <locale>) // wstring + wcout works, string + cout does not (use L"str")//std::wcout << "User-preferred locale setting is " << std::locale("").name().c_str() << '\n'; //std::locale::global(std::locale("")); // start session ////Logger::open(); ///////////////////////////////////////// // must be called when using threads on Linux before it calls XOpenDisplay (for thread-safety and so the app does not crash) #ifdef __gnu_linux__ if(!XInitThreads()) std::cout << DOKUN_UI_TAG "XInitThreads: multi-threads not supported" << std::endl; #endif ///////////////////////////////////////// #ifdef DOKUN_GLFW // Setup glfw (initialize glfw) glfwSetErrorCallback(dokun::Window::glfw_error_callback); if (!glfwInit()) return false; // Decide GL+GLSL versions #if defined(DOKUN_OPENGL_ES2) // GL ES 2.0 + GLSL 100 const char* glsl_version = "#version 100"; glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 2); glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 0); glfwWindowHint(GLFW_CLIENT_API, GLFW_OPENGL_ES_API); #elif defined(__APPLE__) // GL 3.2 + GLSL 150 const char* glsl_version = "#version 150"; glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3); glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 2); glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE); // 3.2+ only glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE); // Required on Mac #else // dokun uses GL 3.3 + GLSL 330 // GL 3.0 + GLSL 130 const char* glsl_version = "#version 330";//"#version 130"; glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3); glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3);//0); //glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE); // 3.2+ only //glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE); // 3.0+ only #endif #endif ///////////////////////////////////////// #ifdef DOKUN_VULKAN #ifdef DOKUN_WIN32 HMODULE vulkan = LoadLibrary("vulkan-1.dll"); #endif #ifdef __gnu_linux__ void * vulkan = dlopen("libvulkan.so", RTLD_NOW); #endif if(vulkan == nullptr) { Logger("Vulkan not detected"); status = 0; return false; } #ifdef DOKUN_WIN32 const char * vulkan_ext[] = { "VK_KHR_surface", "VK_KHR_win32_surface" }; // enable extensions #endif #ifdef __gnu_linux__ #ifdef DOKUN_X11 const char * vulkan_ext[] = { "VK_KHR_surface", "VK_KHR_xlib_surface" }; // enable extensions #endif #endif get_engine()->app_info.sType = VK_STRUCTURE_TYPE_APPLICATION_INFO; get_engine()->app_info.pNext = nullptr; get_engine()->app_info.pApplicationName = nullptr; get_engine()->app_info.applicationVersion = VK_MAKE_VERSION(1, 0, 0); get_engine()->app_info.pEngineName = "Dokun"; get_engine()->app_info.engineVersion = VK_MAKE_VERSION(1, 0, 0); get_engine()->app_info.apiVersion = VK_MAKE_VERSION(1, 0, 2); Renderer::get_pointer()->instance_info.sType = VK_STRUCTURE_TYPE_INSTANCE_CREATE_INFO; Renderer::get_pointer()->instance_info.pNext = nullptr; Renderer::get_pointer()->instance_info.flags = 0; Renderer::get_pointer()->instance_info.pApplicationInfo = &get_engine()->app_info; Renderer::get_pointer()->instance_info.enabledLayerCount = 0; Renderer::get_pointer()->instance_info.ppEnabledLayerNames = nullptr; Renderer::get_pointer()->instance_info.enabledExtensionCount = 2; #ifndef DOKUN_GLFW Renderer::get_pointer()->instance_info.ppEnabledExtensionNames = vulkan_ext; #endif VkResult result = vkCreateInstance(& Renderer::get_pointer()->instance_info, nullptr, & Renderer::get_pointer()->instance); if(result != VK_SUCCESS) { Logger("Could not start Vulkan"); DOKUN_VULKAN_ERROR(result, DOKUN_FILE, DOKUN_LINE); status = 0; return false; } #endif // end of ifdef DOKUN_VULKAN #ifdef DOKUN_WIN32 if (WSAStartup(MAKEWORD(2, 2), & get_engine()->wsa_data) != 0) { Logger("Could not start Winsocket : " + std::to_string(WSAGetLastError())); status = 0; return false; } #endif if(!dokun::Font::open()) { Logger("Could not start FreeType"); status = 0; return false; } /*if(!Audio::open()) { Logger("Could not start OpenAL"); status = 0; return false; }*/ ///////////////////////////////////////// //Renderer::start(); // initializes Renderer by setting default values // set status to 1 (proof that engine has been initialized) status = 1; //Logger("engine initialized."); return true; } //////////// void dokun::Engine::on_close() { if(status == 0) return; // engine is off (already) #ifdef DOKUN_VULKAN if(Renderer::get_instance() != VK_NULL_HANDLE ) { vkDestroyInstance (Renderer::get_instance(), nullptr);} #endif #ifdef DOKUN_WIN32 #ifdef DOKUN_VULKAN //FreeLibrary(vulkan); #endif WSACleanup (); // close winsocket #endif #ifdef __gnu_linux__ #ifdef DOKUN_VULKAN //dlclose(vulkan); #endif #endif dokun::Font::close (); // close freetype //Audio::close(); // close openal ///////////////////////////////////////// #ifdef DOKUN_GLFW Logger("GLFW terminated"); glfwTerminate(); #endif ///////////////////////////////////////// // save cache (scripts) //Script::save_cache(); // save session ////Logger::close(); // reset status to its default (turns engine off) status = 0; Logger("Exiting engine with code 0 ..."); // exit message } //////////// //////////// /* void pause_thread(int n) { std::this_thread::sleep_for (std::chrono::seconds(n)); std::cout << "pause of " << n << " seconds ended\n"; } //////////// static int num_clients = 0; static std::mutex m; //////////// void client() { m.lock(); // client Client * client = new Client(); client->connect(1234, "localhost"); std::cout << client->read() << std::flush << std::endl; // read from server once while (1) // write to server (while program is running) { std::string text; std::cin >> text; client->write("client: " + text); } m.unlock(); } void server() { // server Server * server = new Server(); server->bind(1234); server->listen(); // listens for any incoming connection if(server->accept() != -1) // accepts any incoming connection { num_clients = num_clients + 1; std::cout << "Server: client " << num_clients << " added to server" << std::endl; std::thread new_client(client); // create a new client thread each time it accepts new_client.join(); } server->write("Welcome to Server0"); // write to client once while(1) // read from client (while program is running) { std::cout << server->read() << std::endl; } }*/ //////////// //////////// int dokun::Engine::test(lua_State *L) { return 0; } // ./dokun -e"dokun:test()" //////////// #ifdef __cplusplus // if c++ extern "C" { #endif int dokun::Engine::reg(lua_State *L) { static const luaL_Reg module[] = { {"start" , dokun::Engine::open }, {"close" , dokun::Engine::close }, {"test" , dokun::Engine::test }, {nullptr , nullptr }, }; // ----------------------------------------------------------- Script::global(L, "_ENGINE", "dokun"); Script::global(L, "DOKUN_VERSION", std::string(ENGINE_VERSION)); Script::global(L, "DOKUN_VERSION_MAJOR", std::string(ENGINE_VERSION_MAJOR)); Script::global(L, "DOKUN_VERSION_MINOR", std::string(ENGINE_VERSION_MINOR)); Script::global(L, "DOKUN_VERSION_PATCH", std::string(ENGINE_VERSION_PATCH)); Script::global(L, "DOKUN_STATUS", (dokun::Engine::get_status() != 0)); Script::global(L, "DOKUN_PLATFORM", dokun::platform()); // window ----------------------------------------------------------- Script::table (L, "Window"); Script::function(L, "Window", "new" , dokun::Window::window_new ); Script::function(L, "Window", "create", dokun::Window::create ); Script::function(L, "Window", "show" , dokun::Window::show ); Script::function(L, "Window", "update", dokun::Window::update ); Script::function(L, "Window", "clear" , dokun::Window::clear ); Script::function(L, "Window", "destroy", dokun::Window::destroy); Script::function(L, "Window", "iconify", dokun::Window::iconify); Script::function(L, "Window", "maximize", dokun::Window::maximize); Script::function(L, "Window", "restore", dokun::Window::restore); //Script::function(L, "Window", "poll_events", dokun::Window::poll_events); //Script::function(L, "Window", "wait_events", dokun::Window::wait_events); Script::function(L, "Window", "set_title", dokun::Window::set_title); Script::function(L, "Window", "set_width", dokun::Window::set_width); Script::function(L, "Window", "set_height", dokun::Window::set_height); Script::function(L, "Window", "set_size", dokun::Window::set_size); Script::function(L, "Window", "set_mode", dokun::Window::set_mode); Script::function(L, "Window", "set_position", dokun::Window::set_position); Script::function(L, "Window", "set_style" , dokun::Window::set_style); // sets the window's style Script::function(L, "Window", "set_icon" , dokun::Window::set_icon); // sets the window's icon Script::function(L, "Window", "set_cursor" , dokun::Window::set_cursor); // sets the window cursor //Script::function (L, "Window", "set_event" , dokun::Window::set_event); // sets the how messages are retrieved Script::function(L, "Window", "set_context", dokun::Window::set_context); // set the current context Script::function(L, "Window", "set_vsync", dokun::Window::set_vertical_synchronization); // set vertical synchronization Script::function(L, "Window", "set_viewport", dokun::Window::set_viewport); Script::function(L, "Window", "get_title", dokun::Window::get_title); Script::function(L, "Window", "get_width", dokun::Window::get_width); Script::function(L, "Window", "get_height", dokun::Window::get_height); Script::function(L, "Window", "get_size", dokun::Window::get_size); Script::function(L, "Window", "get_client_width", dokun::Window::get_client_width); Script::function(L, "Window", "get_client_height", dokun::Window::get_client_height); Script::function(L, "Window", "get_client_size", dokun::Window::get_client_size); Script::function(L, "Window", "get_mode", dokun::Window::get_mode); Script::function(L, "Window", "get_x", dokun::Window::get_x); Script::function(L, "Window", "get_y", dokun::Window::get_y); Script::function(L, "Window", "get_position", dokun::Window::get_position); Script::function(L, "Window", "is_open", dokun::Window::is_open); Script::function(L, "Window", "is_visible", dokun::Window::is_visible); Script::function(L, "Window", "is_focused", dokun::Window::is_focused); Script::function(L, "Window", "is_iconified", dokun::Window::is_iconified); Script::function(L, "Window", "is_context", dokun::Window::is_context); #ifdef __gnu_linux__ #ifdef DOKUN_X11 Script::function (L, "Window", "get_display", dokun::Window::get_display); #endif #endif // texture ----------------------------------------------------------- Script::table (L, "Texture" ); Script::function(L, "Texture", "new" , Texture::texture_new); Script::function(L, "Texture", "load" , Texture::load ); Script::function(L, "Texture", "copy" , Texture::copy ); Script::function(L, "Texture", "generate" , Texture::generate); Script::function(L, "Texture", "bind" , Texture::bind); Script::function(L, "Texture", "unbind" , Texture::unbind); Script::function(L, "Texture", "destroy" , Texture::destroy); Script::function(L, "Texture", "set_rect" , Texture::set_rect); Script::function(L, "Texture", "set_filter" , Texture::set_filter); Script::function(L, "Texture", "set_wrap" , Texture::set_wrap); Script::function(L, "Texture", "set_internal_format" , Texture::set_internal_format); Script::function(L, "Texture", "set_format" , Texture::set_format); Script::function(L, "Texture", "set_param" , Texture::set_param ); //Script::function(L, "Texture", "set_" , Texture::set_); Script::function(L, "Texture", "set_type" , Texture::set_type); Script::function(L, "Texture", "get_width" , Texture::get_width ); Script::function(L, "Texture", "get_height", Texture::get_height ); Script::function(L, "Texture", "get_size" , Texture::get_size ); Script::function(L, "Texture", "get_data" , Texture::get_data ); Script::function(L, "Texture", "get_file" , Texture::get_file ); Script::function(L, "Texture", "get_buffer", Texture::get_buffer ); Script::function(L, "Texture", "get_filter" , Texture::get_filter); Script::function(L, "Texture", "get_wrap" , Texture::get_wrap); Script::function(L, "Texture", "get_internal_format", Texture::get_internal_format); Script::function(L, "Texture", "get_format" , Texture::get_format); Script::function(L, "Texture", "get_info" , Texture::get_info ); Script::function(L, "Texture", "is_texture", Texture::is_texture ); // returns true if texture data is valid(texture has been loaded without error) Script::function(L, "Texture", "is_generated", Texture::is_generated); Script::function(L, "Texture", "", 0); //Script::function(L, "Texture", "" , ::); // image ----------------------------------------------------------- Script::table (L, "Image" ); // can load multiple image formats unlike texture Script::function(L, "Image", "new", Image::new_ ); Script::function(L, "Image", "load", Image::load ); Script::function(L, "Image", "draw", Image::draw ); Script::function(L, "Image", "copy", Image::copy ); Script::function(L, "Image", "copy_texture", Image::copy_texture ); Script::function(L, "Image", "save", Image::save ); Script::function(L, "Image", "flip", Image::flip ); Script::function(L, "Image", "resize", Image::resize); //Script::function(L, "Image", "scale_to_fit", Image::scale_to_fit); //Script::function(L, "Image", "generate", Image::generate); Script::function(L, "Image", "destroy", Image::destroy); Script::function(L, "Image", "clear" , Image::clear ); Script::function(L, "Image", "translate", 0); Script::function(L, "Image", "rotate", 0); Script::function(L, "Image", "scale", 0); Script::function(L, "Image", "shear", 0); Script::function(L, "Image", "set_x", Image::set_x); Script::function(L, "Image", "set_y", Image::set_y); Script::function(L, "Image", "set_position", Image::set_position); Script::function(L, "Image", "set_relative_position", Image::set_relative_position); Script::function(L, "Image", "set_angle", Image::set_angle); Script::function(L, "Image", "set_scale", Image::set_scale); Script::function(L, "Image", "set_color", Image::set_color); Script::function(L, "Image", "set_alignment", Image::set_alignment);// gui-related Script::function(L, "Image", "set_visible", Image::set_visible); Script::function(L, "Image", "set_filter", Image::set_filter); // opengl-related Script::function(L, "Image", "set_wrap", Image::set_wrap); Script::function(L, "Image", "set_internal_format", Image::set_internal_format); Script::function(L, "Image", "set_format", Image::set_format); Script::function(L, "Image", "set_param", Image::set_param); //Script::function(L, "Image", "set_", Image::set_); Script::function(L, "Image", "get_width", Image::get_width); Script::function(L, "Image", "get_height", Image::get_height); Script::function(L, "Image", "get_depth", Image::get_depth); Script::function(L, "Image", "get_size", Image::get_size); Script::function(L, "Image", "get_data", Image::get_data); // pixel data Script::function(L, "Image", "get_file", Image::get_file); Script::function(L, "Image", "get_channel", Image::get_channel); Script::function(L, "Image", "get_format", 0); Script::function(L, "Image", "get_color", Image::get_color); Script::function(L, "Image", "get_x", Image::get_x); Script::function(L, "Image", "get_y", Image::get_y); Script::function(L, "Image", "get_position", Image::get_position); Script::function(L, "Image", "get_relative_x", Image::get_relative_x); Script::function(L, "Image", "get_relative_y", Image::get_relative_y); Script::function(L, "Image", "get_relative_position", Image::get_relative_position); Script::function(L, "Image", "get_angle", Image::get_angle); Script::function(L, "Image", "get_scale", Image::get_scale); Script::function(L, "Image", "get_aspect_ratio_correction", Image::get_aspect_ratio_correction); Script::function(L, "Image", "get_alignment", Image::get_alignment); Script::function(L, "Image", "get_rect", Image::get_rect); Script::function(L, "Image", "get_buffer", Image::get_buffer); // opengl-related Script::function(L, "Image", "get_filter", Image::get_filter); Script::function(L, "Image", "get_wrap", Image::get_wrap); Script::function(L, "Image", "get_internal_format", Image::get_internal_format); Script::function(L, "Image", "get_format", Image::get_format); //Script::function(L, "Image", "get_", Image::get_); Script::function(L, "Image", "is_png", Image::is_png); Script::function(L, "Image", "is_jpeg", 0); Script::function(L, "Image", "is_bmp", 0); Script::function(L, "Image", "is_tga", 0); Script::function(L, "Image", "is_gif", 0); // Image:: Script::function(L, "Image", "is_tiff", 0); Script::function(L, "Image", "is_image", Image::is_image); //Script::function(L, "", "" , ::); // mouse ----------------------------------------------------------- Script::table (L, "Mouse" ); Script::function(L, "Mouse", "show" , Mouse::show ); // make mouse visible Script::function(L, "Mouse", "hide" , Mouse::hide ); // make mouse invisible Script::function(L, "Mouse", "set_position", Mouse::set_position); // set mouse position Script::function(L, "Mouse", "set_cursor", Mouse::set_cursor); // set mouse position Script::function(L, "Mouse", "get_position", Mouse::get_position); // get mouse position Script::function(L, "Mouse", "get_delta" , Mouse::get_delta ); // get mouse wheel delta Script::function(L, "Mouse", "get_color" , Mouse::get_color ); // get pixel at a specific coordinate Script::function(L, "Mouse", "is_moved" , Mouse::is_moved ); // checks if mouse has moved Script::function(L, "Mouse", "is_scrolled" , Mouse::is_scrolled ); // checks if mouse is being scrolled Script::function(L, "Mouse", "is_pressed" , Mouse::is_pressed ); // specific mouse button pressed Script::function(L, "Mouse", "is_released" , Mouse::is_released ); Script::function(L, "Mouse", "is_down" , Mouse::is_down ); // any mouse button pressed Script::function(L, "Mouse", "is_up" , Mouse::is_up ); Script::function(L, "Mouse", "is_over" , Mouse::is_over ); //Script::function(L, "", "" , ::); // keyboard ----------------------------------------------------------- Script::table (L, "Keyboard" ); Script::function(L, "Keyboard", "is_pressed" , Keyboard::is_pressed );// specific key is pressed Script::function(L, "Keyboard", "is_released", Keyboard::is_released);// specific key is released Script::function(L, "Keyboard", "is_down" , Keyboard::is_down );// any key is pressed Script::function(L, "Keyboard", "is_up" , Keyboard::is_up ); // any key is released //Script::function(L, "", "" , ::); // ----------------------------------------------------------- //Script::table(L, "Touch" ); // Touch pad stuff //Script::function(L, "", "" , ::); // audio ----------------------------------------------------------- /*Script::table (L, "Audible"); Script::function(L, "Audible", "play" , Audible::play ); Script::function(L, "Audible", "pause" , Audible::pause ); Script::function(L, "Audible", "stop" , Audible::stop ); Script::function(L, "Audible", "set_volume" , Audible::set_volume ); Script::function(L, "Audible", "set_loop" , Audible::set_loop ); Script::function(L, "Audible", "set_pitch" , Audible::set_pitch ); Script::function(L, "Audible", "set_position", Audible::set_position); Script::function(L, "Audible", "get_volume" , Audible::get_volume ); Script::function(L, "Audible", "get_pitch" , Audible::get_pitch ); Script::function(L, "Audible", "get_duration", Audible::get_duration); Script::function(L, "Audible", "get_position", Audible::get_position); Script::function(L, "Audible", "get_data" , Audible::get_data ); Script::function(L, "Audible", "get_file" , Audible::get_file ); Script::function(L, "Audible", "is_playing" , Audible::is_playing ); Script::function(L, "Audible", "is_paused" , Audible::is_paused ); Script::function(L, "Audible", "is_stopped" , Audible::is_stopped ); Script::function(L, "Audible", "is_looped" , Audible::is_looped ); //Script::function(L, "", "" , ::); // sound ----------------------------------------------------------- Script::table (L, "Sound"); Script::function(L, "Sound", "new" , Sound::sound_new); Script::function(L, "Sound", "load", Sound::load ); //Script::function(L, "", "" , ::); // music ----------------------------------------------------------- Script::table (L, "Music"); Script::function(L, "Music", "new", Music::music_new); Script::function(L, "Music", "load", Music::load ); Script::function(L, "Music", "play", Music::play ); // sound, music inherit audio metatable (and functions) Script::inherit (L, "Audible", "Sound"); Script::inherit (L, "Audible", "Music"); //Script::function(L, "", "" , ::); // voice ----------------------------------------------------------- Script::table (L, "Voice"); Script::function(L, "Voice", "new", Voice::new_); Script::function(L, "Voice", "start", Voice::start); Script::function(L, "Voice", "stop", Voice::stop); Script::function(L, "Voice", "play", Voice::play); Script::function(L, "Voice", "pause", Voice::pause); Script::function(L, "Voice", "save", Voice::save); Script::function(L, "Voice","set_playback_volume", 0); Script::function(L, "Voice", "set_microphone_volume", 0); Script::function(L, "Voice","get_data", Voice::get_data); Script::function(L, "Voice","is_recording", Voice::is_recording); Script::function(L, "Voice","is_playing", Voice::is_playing); Script::function(L, "Voice","is_paused", Voice::is_paused); Script::function(L, "Voice","is_stopped", Voice::is_stopped); //Script::function(L, "", "" , ::);*/ // ui ----------------------------------------------------------- Script::table (L, "GUI"); Script::function(L, "GUI","destroy", GUI::destroy); Script::function(L, "GUI","show", GUI::show); Script::function(L, "GUI","hide", GUI::hide); Script::function(L, "GUI","show_all", GUI::show_all); Script::function(L, "GUI", "hide_all", GUI::hide_all); Script::function(L, "GUI","set_width", GUI::set_width); Script::function(L, "GUI","set_height", GUI::set_height); Script::function(L, "GUI","set_size", GUI::set_size); Script::function(L, "GUI","set_position", GUI::set_position); Script::function(L, "GUI", "set_relative_position", GUI::set_relative_position); Script::function(L, "GUI", "set_scale" , GUI::set_scale); Script::function(L, "GUI", "set_angle" , GUI::set_angle); Script::function(L, "GUI","set_orientation", GUI::set_orientation); Script::function(L, "GUI","set_parent", GUI::set_parent); Script::function(L, "GUI","set_visible", GUI::set_visible); Script::function(L, "GUI","set_active", GUI::set_active); Script::function(L, "GUI","set_draggable", GUI::set_draggable); Script::function(L, "GUI","set_droppable", GUI::set_droppable); Script::function(L, "GUI","set_resizeable", GUI::set_resizeable); Script::function(L, "GUI","set_sortable", GUI::set_sortable); Script::function(L, "GUI","get_width", GUI::get_width); Script::function(L, "GUI","get_height", GUI::get_height); Script::function(L, "GUI","get_size", GUI::get_size); Script::function(L, "GUI", "get_rect", GUI::get_rect); Script::function(L, "GUI","get_x", GUI::get_x); Script::function(L, "GUI","get_y", GUI::get_y); Script::function(L, "GUI", "get_position", GUI::get_position); Script::function(L, "GUI","get_relative_x", GUI::get_relative_x); Script::function(L, "GUI","get_relative_y", GUI::get_relative_y); Script::function(L, "GUI", "get_relative_position", GUI::get_relative_position); Script::function(L, "GUI", "get_scale" , GUI::get_scale); Script::function(L, "GUI", "get_angle" , GUI::get_angle); Script::function(L, "GUI","get_orientation", GUI::get_orientation); Script::function(L, "GUI","get_parent", GUI::get_parent); Script::function(L, "GUI","is_visible", GUI::is_visible); Script::function(L, "GUI","is_active", GUI::is_active); Script::function(L, "GUI", "is_draggable", GUI::is_draggable); Script::function(L, "GUI","is_droppable", GUI::is_droppable); Script::function(L, "GUI","is_resizeable", GUI::is_resizeable); Script::function(L, "GUI", "is_sortable", GUI::is_sortable); Script::function(L, "GUI", "is_hovered" , GUI::is_hovered); Script::function(L, "GUI", "is_pressed" , GUI::is_pressed); Script::function(L, "GUI", "is_selected", 0); Script::function(L, "GUI", "is_released", 0); Script::function(L, "GUI", "is_focused" , 0); Script::function(L, "GUI", "is_dragged" , 0); Script::function(L, "GUI", "is_dropped" , 0); Script::function(L, "GUI", "is_sorted" , 0); Script::function(L, "GUI", "is_gui" , GUI::is_gui); Script::function(L, "GUI", "has_parent" , GUI::has_parent); Script::function(L, "GUI", "is_child_of", GUI::is_child_of); Script::function(L, "GUI", "is_parent_of", GUI::is_parent_of); //Script::function(L, "GUI", "" , GUI::); // widget ----------------------------------------------------------- Script::table (L, "Box" ); Script::attach (L, "GUI" , "Box"); // attach Box to GUI : GUI.Box Script::inherit (L, "GUI" , "Box"); Script::function(L, "Box", "add", Box::add); Script::function(L, "Box", "new" , Box::widget_new); Script::function(L, "Box", "draw", Box::draw ); Script::function(L, "Box", "set_color", Box::set_color); //Script::function(L, "Box", "set_alpha", Box::set_alpha); //Script::function(L, "Box", "set_fill", Box::set_fill); Script::function(L, "Box", "set_outline", Box::set_outline); Script::function(L, "Box", "set_outline_width", Box::set_outline_width); Script::function(L, "Box", "set_outline_color", Box::set_outline_color); //Script::function(L, "Box", "set_outline_style", Box::set_outline_style); //Script::function(L, "Box", "set_outline_antialiased", Box::set_outline_antialiased); //Script::function(L, "Box", "set_border", Box::set_border); //Script::function(L, "Box", "set_border_size", Box::set_border_size); //Script::function(L, "Box", "set_border_width", Box::set_border_width); //Script::function(L, "Box", "set_border_color", Box::set_border_color); //Script::function(L, "Box", "set_border_style", Box::set_border_style); //Script::function(L, "Box", "set_border_radius", Box::set_border_radius); //Script::function(L, "Box", "set_radius", Box::set_radius); //Script::function(L, "Box", "set_trim", Box::set_trim); Script::function(L, "Box", "set_gradient", Box::set_gradient); //Script::function(L, "Box", "set_gradient_color", Box::set_gradient_color); Script::function(L, "Box", "set_title_bar", Box::set_title_bar); Script::function(L, "Box", "set_title_bar_size", Box::set_title_bar_size); Script::function(L, "Box", "set_title_bar_text", Box::set_title_bar_text); Script::function(L, "Box", "set_title_bar_text_color", Box::set_title_bar_text_color); Script::function(L, "Box", "set_title_bar_label", Box::set_title_bar_label); Script::function(L, "Box", "set_title_bar_image", Box::set_title_bar_image); Script::function(L, "Box", "set_title_bar_icon", Box::set_title_bar_image); Script::function(L, "Box", "set_title_bar_color", Box::set_title_bar_color); Script::function(L, "Box", "set_title_bar_button_iconify", Box::set_title_bar_button_iconify); Script::function(L, "Box", "set_title_bar_button_maximize", Box::set_title_bar_button_maximize); Script::function(L, "Box", "set_title_bar_button_close", Box::set_title_bar_button_close); //Script::function(L, "Box", "set_as_icon", Box::set_as_icon); Script::function(L, "Box", "set_as_tooltip", Box::set_as_tooltip); //Script::function(L, "Box", "set_as_", Box::set_as_); Script::function(L, "Box", "set_image", Box::set_image); Script::function(L, "Box", "set_label", Box::set_label); Script::function(L, "Box", "set_text", Box::set_text); Script::function(L, "Box", "set_image_list", Box::set_image_list); //Script::function(L, "Box", "set_gui_list", Box::set_gui_list); // or child_list //Script::function(L, "Box", "set_", Box::set_); //Script::function(L, "Box", "", Box::); Script::function(L, "Box", "get_color", Box::get_color); Script::function(L, "Box", "get_image", Box::get_image); Script::function(L, "Box", "get_label", Box::get_label); Script::function(L, "Box", "get_image_list", Box::get_image_list); Script::function(L, "Box", "get_label_list", Box::get_label_list); //Script::function(L, "Box", "get_text", Box::get_text); //Script::function(L, "Box", "", Box::); //Script::function(L, "Box", "", Box::); //Script::function(L, "Box", "", Box::); //Script::function(L, "Box", "", Box::); Script::execute(L, "Widget = Box"); // assign Widget to Box as another name for Box (You can also use Widget in place of Box) // button ----------------------------------------------------------- Script::table (L, "Button"); // Button = {} Button_mt = {__index = Button } Script::attach (L, "GUI", "Button"); // GUI.Button = Button Script::inherit (L, "GUI", "Button"); // setmetatable(Button, GUI_mt) Script::function(L, "Button", "new", Button::new_ ); // default, radio, check_box Script::function(L, "Button", "draw", Button::draw); Script::function(L, "Button", "", 0); Script::function(L, "Button", "", 0); Script::function(L, "Button", "set_color", Button::set_color); Script::function(L, "Button", "set_text", Button::set_text ); // generates Label Script::function(L, "Button", "set_label", Button::set_label); Script::function(L, "Button", "set_image", Button::set_image); Script::function(L, "Button", "get_color", Button::get_color); Script::function(L, "Button", "get_text", Button::get_text ); // shortcut to button:get_label():get_string() Script::function(L, "Button", "get_label", Button::get_label); Script::function(L, "Button", "get_image", Button::get_image); //Script::function(L, "", "" , ::); // label ----------------------------------------------------------- Script::table (L, "Label" ); // create a table Label with a Label_mt metatable Script::attach (L, "GUI" , "Label" ); // attach Label to GUI : GUI.Label Script::inherit (L, "GUI" , "Label" ); // inherit from GUI (Label inherits GUI functions) Script::function(L, "Label", "new" , Label::label_new ); Script::function(L, "Label", "draw" , Label::draw ); Script::function(L, "Label", "set_font" , Label::set_font ); Script::function(L, "Label", "set_string", Label::set_string); Script::function(L, "Label", "set_color" , Label::set_color ); Script::function(L, "Label", "set_style", Label::set_style); Script::function(L, "Label", "set_background_color", Label::set_background_color); Script::function(L, "Label", "set_alignment", Label::set_alignment); // test //Script::function(L, "Label", "set_", Label::set_); // getters Script::function(L, "Label", "get_font" , Label::get_font ); Script::function(L, "Label", "get_string", Label::get_string); Script::function(L, "Label", "get_color", Label::get_color ); Script::function(L, "Label", "get_style", Label::get_style ); Script::function(L, "Label", "get_background_color", Label::get_background_color); Script::function(L, "Label", "get_alignment", Label::get_alignment); // test //Script::function(L, "Label", "get_", Label::get_); Script::function(L, "Label", "get_width", Label::get_width ); // function crashes in Lua Script::function(L, "Label", "get_height", Label::get_height); Script::function(L, "Label", "get_rect", Label::get_rect); //Script::function(L, "Label", "get_", Label::get_); // overridden functions Script::function(L, "Label", "set_size" , Label::set_size); // boolean functions Script::function(L, "Label", "is_label" , Label::is_label); //Script::function(L, "Label", "" , Label::); // edit ----------------------------------------------------------- Script::table (L, "Edit" ); Script::function(L, "Edit", "new" , Edit::new_); Script::function(L, "Edit", "draw", Edit::draw); //Script::function(L, "", "" , ::); // progressbar ----------------------------------------------------------- Script::table (L, "Progressbar"); Script::inherit (L, "GUI", "Progressbar"); Script::function(L, "Progressbar", "new", Progressbar::new_); Script::function(L, "Progressbar", "draw", Progressbar::draw); Script::function(L, "Progressbar", "set_text", Progressbar::set_text); Script::function(L, "Progressbar", "set_label", Progressbar::set_label); Script::function(L, "Progressbar", "set_foreground_color", Progressbar::set_foreground_color); Script::function(L, "Progressbar", "set_background_color", Progressbar::set_background_color); Script::function(L, "Progressbar", "set_range", Progressbar::set_range); Script::function(L, "Progressbar", "set_minimum_value", Progressbar::set_minimum_value); Script::function(L, "Progressbar", "set_maximum_value", Progressbar::set_maximum_value); Script::function(L, "Progressbar", "set_value", Progressbar::set_value); Script::function(L, "Progressbar", "reset", Progressbar::reset); Script::function(L, "Progressbar", "set_outline", Progressbar::set_outline); Script::function(L, "Progressbar", "set_outline_width", Progressbar::set_outline_width); Script::function(L, "Progressbar", "set_outline_color", Progressbar::set_outline_color); Script::function(L, "Progressbar", "set_outline_antialiased", Progressbar::set_outline_antialiased); //Script::function(L, "Progressbar", "set_", Progressbar::set_); //Script::function(L, "Progressbar", "", Progressbar::); Script::function(L, "Progressbar", "get_text" , Progressbar::get_text ); Script::function(L, "Progressbar", "get_label" , Progressbar::get_label ); Script::function(L, "Progressbar", "get_color" , Progressbar::get_color ); Script::function(L, "Progressbar", "get_foreground_color", Progressbar::get_foreground_color ); Script::function(L, "Progressbar", "get_background_color", Progressbar::get_background_color ); Script::function(L, "Progressbar", "get_range" , Progressbar::get_range ); Script::function(L, "Progressbar", "get_minimum_value", Progressbar::get_minimum_value ); Script::function(L, "Progressbar", "get_maximum_value", Progressbar::get_maximum_value ); Script::function(L, "Progressbar", "get_value" , Progressbar::get_value ); //Script::function(L, "Progressbar", "get_", Progressbar::get_); //Script::function(L, "Progressbar", "", Progressbar::); ///Script::function(L, "Progressbar", "", Progressbar::); //Script::function(L, "Progressbar", "", Progressbar::); //Script::function(L, "Progressbar", "", Progressbar::); //Script::function(L, "Progressbar", "", Progressbar::); // slider ----------------------------------------------------------- Script::table (L, "Slider"); Script::inherit (L, "GUI", "Slider"); //Script::function(L, "Slider", "" , Slider::); // toggle ----------------------------------------------------------- Script::table (L, "Toggle"); //Script::inherit (L, "GUI", "Toggle"); //Script::function(L, "Toggle", "" , ::); // scrollbar ----------------------------------------------------------- Script::table (L, "Scrollbar"); //Script::inherit (L, "GUI", ""); //Script::function(L, "", "" , ::); // list ----------------------------------------------------------- Script::table (L, "List"); //Script::inherit (L, "GUI", ""); //Script::function(L, "", "" , ::); // spinner ----------------------------------------------------------- Script::table (L, "Spinner"); //Script::inherit (L, "GUI", ""); //Script::function(L, "", "" , ::); // menubar ----------------------------------------------------------- Script::table (L, "Menubar"); //Script::inherit (L, "GUI", ""); //Script::function(L, "", "" , ::); // tooltip ----------------------------------------------------------- // deprecated //Script::table (L, "Tooltip"); //Script::inherit (L, "GUI", ""); //Script::function(L, "", "" , ::); // grid ----------------------------------------------------------- Script::table (L, "Grid"); Script::inherit (L, "GUI", "Grid"); Script::function(L, "Grid", "new" , Grid::grid_new); Script::function(L, "Grid", "draw" , Grid::draw); Script::function(L, "Grid", "update" , Grid::update); Script::function(L, "Grid", "set_row" , Grid::set_rows); Script::function(L, "Grid", "set_column", Grid::set_columns); //Script::function(L, "Grid", "" , Grid::); // font ----------------------------------------------------------- Script::table (L, "Font" ); Script::function(L, "Font", "new" , dokun::Font::font_new); Script::function(L, "Font", "load" , dokun::Font::load ); Script::function(L, "Font", "generate", dokun::Font::generate); Script::function(L, "Font", "destroy" , dokun::Font::destroy); Script::function(L, "Font", "set_width", dokun::Font::set_width); Script::function(L, "Font", "set_height", dokun::Font::set_height); Script::function(L, "Font", "set_size", dokun::Font::set_size); Script::function(L, "Font", "get_size", dokun::Font::get_size); Script::function(L, "Font", "get_rect", dokun::Font::get_rect); Script::function(L, "Font", "get_data", dokun::Font::get_data); Script::function(L, "Font", "is_generated", dokun::Font::is_generated); //Script::function(L, "Font", "" , dokun::Font::); // network ----------------------------------------------------------- //Script::global (L, "socket", Socket::new_); // returns a socket //Script::table (L, "Network"); // Network_mt //Script::function(L, "Network", "connect", Socket::connect); //Script::function(L, "Network", "read", Socket::read); // receives data //Script::function(L, "Network", "write", Socket::write); // sends data //Script::function(L, "Network", "bind", 0); //Script::function(L, "", "" , ::); // entity ----------------------------------------------------------- Script::table (L, "Entity" ); Script::function(L, "Entity", "new" , Entity::create ); Script::function(L, "Entity", "destroy" , Entity::destroy ); //Script::function(L, "Entity", "draw" , Entity::draw ); // cannot use this in lua as it will override Sprite.draw, Model.draw(), etc. Script::function(L, "Entity", "add_component" , Entity::add_component); Script::function(L, "Entity", "remove_component", 0);//Entity::remove_component); Script::function(L, "Entity", "set_component" , Entity::set_component); Script::function(L, "Entity", "set_shader" , Entity::set_shader ); Script::function(L, "Entity", "set_script" , Entity::set_script ); Script::function(L, "Entity", "get_component" , Entity::get_component); Script::function(L, "Entity", "get_shader" , Entity::get_shader ); Script::function(L, "Entity", "get_script" , Entity::get_script ); Script::function(L, "Entity", "set_visible" , Entity::set_visible ); Script::function(L, "Entity", "is_entity" , Entity::is_entity ); Script::function(L, "Entity", "is_visible" , Entity::is_visible ); Script::function(L, "Entity", "has_component" , Entity::has_component); //Script::function(L, "", "" , ::); // component ----------------------------------------------------------- Script::table (L, "Component" ); Script::function(L, "Component", "new" , Component::create ); Script::function(L, "Component", "destroy", Component::destroy); //Script::function(L, "", "" , ::); // sub-entities ----------------------------------------------------------- Script::inherit(L, "Entity", "GUI" ); // timer ----------------------------------------------------------- Script::table (L, "Timer" ); // stop watch Script::function(L, "Timer", "new" , Timer::new_ ); Script::function(L, "Timer", "start" , Timer::start ); Script::function(L, "Timer", "stop" , Timer::stop ); Script::function(L, "Timer", "reset" , Timer::reset ); Script::function(L, "Timer", "get_milliseconds", Timer::get_milliseconds); Script::function(L, "Timer", "get_seconds" , Timer::get_seconds ); Script::function(L, "Timer", "get_minutes" , Timer::get_minutes ); Script::function(L, "Timer", "get_hours" , Timer::get_hours ); Script::function(L, "Timer", "get_status" , Timer::get_status ); // elapsed Script::function(L, "Timer", "milliseconds" , Timer::milliseconds); // elapsed Script::function(L, "Timer", "seconds" , Timer::seconds ); Script::function(L, "Timer", "minutes" , Timer::minutes ); Script::function(L, "Timer", "hours" , Timer::hours ); Script::function(L, "Timer", "days" , Timer::days ); Script::function(L, "Timer", "weeks" , Timer::weeks ); Script::function(L, "Timer", "months" , Timer::months ); Script::function(L, "Timer", "years" , Timer::years ); Script::function(L, "Timer", "reset_elapsed", Timer::reset_e ); // delta Script::function(L, "Timer", "delta" , Timer::delta ); // framerate Script::function(L, "Timer", "framerate" , Timer::framerate ); //Script::function(L, "Timer", "" , Timer::); // shader ----------------------------------------------------------- Script::table (L, "Shader" ); //Script::function(L, "Shader", "new" , Shader::new_ ); //Script::function(L, "Shader", "create" , Shader::create ); //Script::function(L, "Shader", "destroy" , Shader::destroy ); //Script::function(L, "Shader", "load" , Shader::load ); //Script::function(L, "Shader", "compile" , Shader::compile ); //Script::function(L, "Shader", "set_source", Shader::set_source); //Script::function(L, "Shader", "get_id" , Shader::get_id ); //Script::function(L, "Shader", "get_type" , Shader::get_type ); //Script::function(L, "Shader", "get_source", Shader::get_source); //Script::function(L, "Shader", "is_shader" , Shader::is_shader ); //Script::function(L, "", "" , ::); // resources ----------------------------------------------------------- /*Script::table (L, "Resource" ); Script::function(L, "Resource", "load", Resource::load); // loads all resources //Script::function(L, "Resource", "", Resource::);*/ // data serialization ----------------------------------------------------------- // deprecated /*Script::table (L, "Data" ); Script::function(L, "Data", "new" , Data::new_ ); Script::function(L, "Data", "open" , Data::open ); // creates an sql database Script::function(L, "Data", "close" , Data::close ); Script::function(L, "Data", "execute", Data::execute); // executes an sql statement Script::function(L, "Data", "exec" , Data::execute); // executes an sql statement Script::function(L, "Data", "table" , Data::table ); Script::function(L, "Data", "insert" , Data::insert ); Script::function(L, "Data", "select" , Data::select ); Script::function(L, "Data", "update" , Data::update ); Script::function(L, "Data", "column" , Data::column ); Script::function(L, "Data", "drop" , Data::drop ); // deletes a SQL table Script::function(L, "Data", "", 0);*/ //Script::function(L, "", "" , ::); // factory ----------------------------------------------------------- Script::table (L, "Factory" ); // new ! Script::function(L, "Factory","new" , Factory::new_ ); Script::function(L, "Factory","store" , Factory::store ); Script::function(L, "Factory","release" , Factory::release ); Script::function(L, "Factory","get_object", Factory::get_object ); Script::function(L, "Factory","get_size" , Factory::get_size ); Script::function(L, "Factory","get_index" , Factory::get_location); // can be used as an id Script::function(L, "Factory","is_empty" , Factory::is_empty ); Script::function(L, "Factory","is_stored" , Factory::is_stored ); //Script::function(L, "", "" , ::); // script ----------------------------------------------------------- Script::table (L, "Script" ); Script::function(L, "Script", "new" , Script::new_ ); Script::function(L, "Script", "load" , Script::load_script ); Script::function(L, "Script", "load_directory", Script::load_directory); Script::function(L, "Script", "generate" , Script::generate ); Script::function(L, "Script", "write" , Script::write ); Script::function(L, "Script", "copy" , Script::copy ); Script::function(L, "Script", "save" , Script::save ); Script::function(L, "Script", "count" , Script::get_count ); Script::function(L, "Script", "get_file" , Script::get_file ); Script::function(L, "Script", "is_loaded" , Script::is_script ); //Script::function(L, "", "" , ::); // console ----------------------------------------------------------- Script::table (L, "Console" ); Script::function(L, "Console", "free", Console::destroy); // destroys the console window Script::function(L, "Console", "show", Console::create ); // recreates the console window (and brings it forward) Script::function(L, "Console", "draw", Console::draw ); Script::function(L, "Console", "write" ,Console::write ); // writes to the console output window Script::function(L, "Console", "code" ,Console::code ); // executes lua code Script::function(L, "Console", "show_edit", Console::show_edit); Script::function(L, "Console", "hide_edit", Console::hide_edit); Script::function(L, "Console", "set_size", Console::set_size); Script::function(L, "Console", "set_position", Console::set_position); Script::function(L, "Console", "set_mode", Console::set_mode); //Script::function(L, "Console", "" , Console::); // renderer ---------------------------------------------------------- Script::table (L, "Renderer" ); // static class (pass to function as 'self' without any instances) Script::global(L, "set_current_API", Renderer::set_current_API); //Script::function(L, "Renderer", "", Renderer::); // vector3 ----------------------------------------------------------- Script::table (L, "Vector" ); // a vector class (3d) Script::function(L, "Vector", "new" , Vector3::new_ ); Script::function(L, "Vector", "length" , Vector3::length ); Script::function(L, "Vector", "normalize", Vector3::normalize); Script::function(L, "Vector", "dot" , Vector3::dot ); Script::function(L, "Vector", "cross" , Vector3::cross ); Script::function(L, "Vector", "add" , Vector3::add ); Script::function(L, "Vector", "sub" , Vector3::sub ); Script::function(L, "Vector", "mul" , Vector3::mul ); Script::function(L, "Vector", "div" , Vector3::div ); Script::function(L, "Vector", "set" , Vector3::set ); Script::function(L, "Vector", "get" , Vector3::get ); // Math -------------------------------------------------------------- Script::table(L, "Math"); Script::function(L, "Math", "distance", Math::distance2d); //Script::function(L, "Math", "", Math::); //-------------------------------------------------------------------- //-------------------------------------------------------------------- //Script::function(L, "", "" , ::); // globals ----------------------------------------------------------- // utilities // entity //Script::global(L, "set_shader", Entity::set_shader); // global variables ----- // vector functions Script::global (L, "Vector2", Vector2::Vector_new); Script::global (L, "Vector3", Vector3::Vector_new); Script::global (L, "Vector4", Vector4::Vector_new); // buttons Script::global(L, "MOUSE_LEFT", DOKUN_MOUSE_LEFT); Script::global(L, "MOUSE_MIDDLE", DOKUN_MOUSE_MIDDLE); Script::global(L, "MOUSE_RIGHT", DOKUN_MOUSE_RIGHT); // keys Script::global(L,"KEY_UP", DOKUN_KEY_UP); Script::global(L,"KEY_DOWN", DOKUN_KEY_DOWN); Script::global(L,"KEY_LEFT", DOKUN_KEY_LEFT); Script::global(L,"KEY_RIGHT", DOKUN_KEY_RIGHT); // special Script::global(L,"KEY_SPACE", DOKUN_KEY_SPACE); Script::global(L,"KEY_RETURN", DOKUN_KEY_RETURN); Script::global(L,"KEY_ESCAPE", DOKUN_KEY_ESCAPE); Script::global(L,"KEY_BACKSPACE", DOKUN_KEY_BACKSPACE); Script::global(L,"KEY_TAB", DOKUN_KEY_TAB); Script::global(L,"KEY_CAPS_LOCK", DOKUN_KEY_CAPS_LOCK); Script::global(L,"KEY_SHIFT_L", DOKUN_KEY_SHIFT_L); Script::global(L,"KEY_SHIFT_R", DOKUN_KEY_SHIFT_R); Script::global(L,"KEY_CONTROL_L", DOKUN_KEY_CONTROL_L); Script::global(L,"KEY_CONTROL_R", DOKUN_KEY_CONTROL_R); Script::global(L,"KEY_ALT_L", DOKUN_KEY_ALT_L); Script::global(L,"KEY_ALT_R", DOKUN_KEY_ALT_R); Script::global(L,"KEY_MENU", DOKUN_KEY_MENU); Script::global(L,"KEY_PRINT_SCREEN", DOKUN_KEY_PRINT_SCREEN); Script::global(L,"KEY_SCROLL_LOCK", DOKUN_KEY_SCROLL_LOCK); Script::global(L,"KEY_PAUSE", DOKUN_KEY_PAUSE); Script::global(L,"KEY_INSERT", DOKUN_KEY_INSERT); Script::global(L,"KEY_DELETE", DOKUN_KEY_DELETE); Script::global(L,"KEY_HOME", DOKUN_KEY_HOME); Script::global(L,"KEY_END", DOKUN_KEY_END); Script::global(L,"KEY_PRIOR", DOKUN_KEY_PRIOR); Script::global(L,"KEY_NEXT", DOKUN_KEY_NEXT); Script::global(L,"KEY_NUM_LOCK", DOKUN_KEY_NUM_LOCK); // Numpad Script::global(L,"KEY_KP_DIVIDE", DOKUN_KEY_KP_DIVIDE); Script::global(L,"KEY_KP_MULTIPLY", DOKUN_KEY_KP_MULTIPLY); Script::global(L,"KEY_KP_SUBTRACT", DOKUN_KEY_KP_SUBTRACT); Script::global(L,"KEY_KP_ADD", DOKUN_KEY_KP_ADD); Script::global(L,"KEY_KP_ENTER", DOKUN_KEY_KP_ENTER); Script::global(L,"KEY_KP_DECIMAL", DOKUN_KEY_KP_DECIMAL); Script::global(L,"KEY_KP_DELETE", DOKUN_KEY_KP_DELETE); Script::global(L,"KEY_KP_INSERT", DOKUN_KEY_KP_INSERT); Script::global(L,"KEY_KP_DELETE", DOKUN_KEY_KP_DELETE); Script::global(L,"KEY_KP_INSERT", DOKUN_KEY_KP_INSERT); Script::global(L,"KEY_KP_END", DOKUN_KEY_KP_END); Script::global(L,"KEY_KP_DOWN", DOKUN_KEY_KP_DOWN); Script::global(L,"KEY_KP_NEXT", DOKUN_KEY_KP_NEXT); Script::global(L,"KEY_KP_LEFT", DOKUN_KEY_KP_LEFT); Script::global(L,"KEY_KP_BEGIN", DOKUN_KEY_KP_BEGIN); Script::global(L,"KEY_KP_RIGHT", DOKUN_KEY_KP_RIGHT); Script::global(L,"KEY_KP_HOME", DOKUN_KEY_KP_HOME); Script::global(L,"KEY_KP_UP", DOKUN_KEY_KP_UP); Script::global(L,"KEY_KP_PRIOR", DOKUN_KEY_KP_PRIOR); Script::global(L,"KEY_KP_0", DOKUN_KEY_KP_0); Script::global(L,"KEY_KP_1", DOKUN_KEY_KP_1); Script::global(L,"KEY_KP_2", DOKUN_KEY_KP_2); Script::global(L,"KEY_KP_3", DOKUN_KEY_KP_3); Script::global(L,"KEY_KP_4", DOKUN_KEY_KP_4); Script::global(L,"KEY_KP_5", DOKUN_KEY_KP_5); Script::global(L,"KEY_KP_6", DOKUN_KEY_KP_6); Script::global(L,"KEY_KP_7", DOKUN_KEY_KP_7); Script::global(L,"KEY_KP_8", DOKUN_KEY_KP_8); Script::global(L,"KEY_KP_9", DOKUN_KEY_KP_9); // Symbols Script::global(L,"KEY_GRAVE", DOKUN_KEY_GRAVE); Script::global(L,"KEY_ASCIITILDE", DOKUN_KEY_ASCIITILDE); Script::global(L,"KEY_EXCLAMATION", DOKUN_KEY_EXCLAMATION); Script::global(L,"KEY_AT", DOKUN_KEY_AT); Script::global(L,"KEY_NUMBERSIGN", DOKUN_KEY_NUMBERSIGN); Script::global(L,"KEY_DOLLAR", DOKUN_KEY_DOLLAR); Script::global(L,"KEY_PERCENT", DOKUN_KEY_PERCENT); Script::global(L,"KEY_ASCIICIRCUM", DOKUN_KEY_ASCIICIRCUM); Script::global(L,"KEY_AMPERSAND", DOKUN_KEY_AMPERSAND); Script::global(L,"KEY_ASTERISK", DOKUN_KEY_ASTERISK); Script::global(L,"KEY_PARENLEFT", DOKUN_KEY_PARENLEFT); Script::global(L,"KEY_PARENRIGHT", DOKUN_KEY_PARENRIGHT); Script::global(L,"KEY_MINUS", DOKUN_KEY_MINUS); Script::global(L,"KEY_UNDERSCORE", DOKUN_KEY_UNDERSCORE); Script::global(L,"KEY_EQUAL", DOKUN_KEY_EQUAL); Script::global(L,"KEY_PLUS", DOKUN_KEY_PLUS); Script::global(L,"KEY_BRACKETLEFT", DOKUN_KEY_BRACKETLEFT); Script::global(L,"KEY_BRACKETRIGHT", DOKUN_KEY_BRACKETRIGHT); Script::global(L,"KEY_BRACELEFT", DOKUN_KEY_BRACELEFT); Script::global(L,"KEY_BRACERIGHT", DOKUN_KEY_BRACERIGHT); Script::global(L,"KEY_BACKSLASH", DOKUN_KEY_BACKSLASH); Script::global(L,"KEY_BAR", DOKUN_KEY_BAR); Script::global(L,"KEY_SEMICOLON", DOKUN_KEY_SEMICOLON); Script::global(L,"KEY_COLON", DOKUN_KEY_COLON); Script::global(L,"KEY_APOSTROPHE", DOKUN_KEY_APOSTROPHE); Script::global(L,"KEY_QUOTE", DOKUN_KEY_QUOTEDBL); Script::global(L,"KEY_COMMA", DOKUN_KEY_COMMA); Script::global(L,"KEY_PERIOD", DOKUN_KEY_PERIOD); Script::global(L,"KEY_LESS", DOKUN_KEY_LESS); Script::global(L,"KEY_GREATER", DOKUN_KEY_GREATER); Script::global(L,"KEY_SLASH", DOKUN_KEY_SLASH); Script::global(L,"KEY_QUESTION", DOKUN_KEY_QUESTION); //Script::global(L,"KEY_", DOKUN_KEY_); // F1-F12 Script::global(L,"KEY_F1", DOKUN_KEY_F1); Script::global(L,"KEY_F2", DOKUN_KEY_F2); Script::global(L,"KEY_F3", DOKUN_KEY_F3); Script::global(L,"KEY_F4", DOKUN_KEY_F4); Script::global(L,"KEY_F5", DOKUN_KEY_F5); Script::global(L,"KEY_F6", DOKUN_KEY_F6); Script::global(L,"KEY_F7", DOKUN_KEY_F7); Script::global(L,"KEY_F8", DOKUN_KEY_F8); Script::global(L,"KEY_F9", DOKUN_KEY_F9); Script::global(L,"KEY_F10", DOKUN_KEY_F10); Script::global(L,"KEY_F11", DOKUN_KEY_F11); Script::global(L,"KEY_F12", DOKUN_KEY_F12); // 0-9 Script::global(L,"KEY_0", DOKUN_KEY_0); Script::global(L,"KEY_1", DOKUN_KEY_1); Script::global(L,"KEY_2", DOKUN_KEY_2); Script::global(L,"KEY_3", DOKUN_KEY_3); Script::global(L,"KEY_4", DOKUN_KEY_4); Script::global(L,"KEY_5", DOKUN_KEY_5); Script::global(L,"KEY_6", DOKUN_KEY_6); Script::global(L,"KEY_7", DOKUN_KEY_7); Script::global(L,"KEY_8", DOKUN_KEY_8); Script::global(L,"KEY_9", DOKUN_KEY_9); // A-Z Script::global(L,"KEY_A", DOKUN_KEY_A); Script::global(L,"KEY_B", DOKUN_KEY_B); Script::global(L,"KEY_C", DOKUN_KEY_C); Script::global(L,"KEY_D", DOKUN_KEY_D); Script::global(L,"KEY_E", DOKUN_KEY_E); Script::global(L,"KEY_F", DOKUN_KEY_F); Script::global(L,"KEY_G", DOKUN_KEY_G); Script::global(L,"KEY_H", DOKUN_KEY_H); Script::global(L,"KEY_I", DOKUN_KEY_I); Script::global(L,"KEY_J", DOKUN_KEY_J); Script::global(L,"KEY_K", DOKUN_KEY_K); Script::global(L,"KEY_L", DOKUN_KEY_L); Script::global(L,"KEY_M", DOKUN_KEY_M); Script::global(L,"KEY_N", DOKUN_KEY_N); Script::global(L,"KEY_O", DOKUN_KEY_O); Script::global(L,"KEY_P", DOKUN_KEY_P); Script::global(L,"KEY_Q", DOKUN_KEY_Q); Script::global(L,"KEY_R", DOKUN_KEY_R); Script::global(L,"KEY_S", DOKUN_KEY_S); Script::global(L,"KEY_T", DOKUN_KEY_T); Script::global(L,"KEY_U", DOKUN_KEY_U); Script::global(L,"KEY_V", DOKUN_KEY_V); Script::global(L,"KEY_W", DOKUN_KEY_W); Script::global(L,"KEY_X", DOKUN_KEY_X); Script::global(L,"KEY_Y", DOKUN_KEY_Y); Script::global(L,"KEY_Z", DOKUN_KEY_Z); //Script::global(L,"KEY_", DOKUN_KEY_); //Script::global (L, "", 0); // ----------------------------------------------------------- #ifndef DOKUN_LUA51 luaL_newlibtable(L, module); luaL_setfuncs (L, module, 0); // luaL_newlib(L, module) is equivalent to (luaL_newlibtable(L,l), luaL_setfuncs(L,l,0)) #endif #ifdef DOKUN_LUA51 lua_newtable (L); luaL_register(L, "dokun", module); #endif return 1; // return table library } ///////////////////////////// #ifdef DOKUN_BUILD_LIBRARY LUA_API int luaopen_dokun (lua_State *L) { return dokun::Engine::reg(L); } #endif ///////////////////////////// #ifdef DOKUN_BUILD_MODULE DOKUN_MODULE int luaopen_dokun (lua_State *L) { return dokun::Engine::reg(L); } #endif ///////////////////////////// #ifdef DOKUN_BUILD_CONSOLE LUA_API int luaopen_dokun (lua_State *L) { dokun::Engine::open (L); // initialize engine by default in lua return dokun::Engine::reg(L); } #endif #ifdef __cplusplus // if c++ } #endif
54.873751
378
0.597805
[ "vector", "model", "3d" ]
72605acb66d39dfc2c418d7ad6f4b8c24e1ffd73
8,154
hpp
C++
stitcher.hpp
whdlgp/basic_stitcher-
38f0970ae4f9cc67b03a25da7d08fe96642554da
[ "MIT" ]
null
null
null
stitcher.hpp
whdlgp/basic_stitcher-
38f0970ae4f9cc67b03a25da7d08fe96642554da
[ "MIT" ]
null
null
null
stitcher.hpp
whdlgp/basic_stitcher-
38f0970ae4f9cc67b03a25da7d08fe96642554da
[ "MIT" ]
null
null
null
#ifndef STITCHER_HPP #define STITCHER_HPP #include <iostream> #include <fstream> #include <string> #include "opencv2/opencv_modules.hpp" #include <opencv2/core/utility.hpp> #include "opencv2/imgcodecs.hpp" #include "opencv2/highgui.hpp" #include "opencv2/stitching/detail/autocalib.hpp" #include "opencv2/stitching/detail/blenders.hpp" #include "opencv2/stitching/detail/timelapsers.hpp" #include "opencv2/stitching/detail/camera.hpp" #include "opencv2/stitching/detail/exposure_compensate.hpp" #include "opencv2/stitching/detail/matchers.hpp" #include "opencv2/stitching/detail/motion_estimators.hpp" #include "opencv2/stitching/detail/seam_finders.hpp" #include "opencv2/stitching/detail/warpers.hpp" #include "opencv2/stitching/warpers.hpp" #define STITCHER_DEBUG_PRINT #ifdef STITCHER_DEBUG_PRINT #define STICHER_DBG_ERR(x) (std::cerr << x << std::endl) #define STICHER_DBG_OUT(x) (std::cout << x << std::endl) #else #define STICHER_DBG_ERR(x) #define STICHER_DBG_OUT(x) #endif class Basic_stitcher { public: Basic_stitcher(bool use_cuda = false) { set_megapix(0.6, 0.1, -1); match_conf = 0.3; if(!use_cuda) { finder = cv::makePtr<cv::detail::OrbFeaturesFinder>();; matcher = cv::makePtr<cv::detail::BestOf2NearestMatcher>(false, 0.3f);; estimator = cv::makePtr<cv::detail::HomographyBasedEstimator>(); adjuster = cv::makePtr<cv::detail::BundleAdjusterRay>(); warper_creator = cv::makePtr<cv::SphericalWarper>(); seam_finder = cv::makePtr<cv::detail::GraphCutSeamFinder>(cv::detail::GraphCutSeamFinderBase::COST_COLOR); compensator = cv::detail::ExposureCompensator::createDefault(cv::detail::ExposureCompensator::GAIN_BLOCKS); blender = cv::detail::Blender::createDefault(cv::detail::Blender::MULTI_BAND, false); } else { finder = cv::makePtr<cv::detail::SurfFeaturesFinderGpu>();; matcher = cv::makePtr<cv::detail::BestOf2NearestMatcher>(true, 0.3f);; estimator = cv::makePtr<cv::detail::HomographyBasedEstimator>(); adjuster = cv::makePtr<cv::detail::BundleAdjusterRay>(); #ifdef HAVE_OPENCV_CUDAWARPING warper_creator = cv::makePtr<cv::SphericalWarperGpu>(); #else warper_creator = cv::makePtr<cv::SphericalWarper>(); #endif #ifdef HAVE_OPENCV_CUDALEGACY seam_finder = cv::makePtr<cv::detail::GraphCutSeamFinderGpu>(cv::detail::GraphCutSeamFinderBase::COST_COLOR); #else seam_finder = cv::makePtr<cv::detail::GraphCutSeamFinder>(cv::detail::GraphCutSeamFinderBase::COST_COLOR); #endif compensator = cv::detail::ExposureCompensator::createDefault(cv::detail::ExposureCompensator::GAIN_BLOCKS); blender = cv::detail::Blender::createDefault(cv::detail::Blender::MULTI_BAND, true); } } void set_megapix (double work_megapix_ = 0.6, double seam_megapix_ = 0.1, double compose_megapix_ = -1); void update_image_scale (std::vector<cv::Mat> &full_img); std::vector<cv::detail::ImageFeatures> finding_features (const std::vector<cv::Mat> &imgs); std::vector<cv::detail::MatchesInfo> pairwise_matching (const std::vector<cv::detail::ImageFeatures> &features); std::vector<cv::detail::CameraParams> estimate_camera_params (const std::vector<cv::detail::ImageFeatures> &features , const std::vector<cv::detail::MatchesInfo> &pairwise_matches); void warping_for_prepare_composition(const std::vector<cv::Mat> &images , const std::vector<cv::detail::CameraParams> &cameras , std::vector<cv::Point> &corners_out , std::vector<cv::UMat> &warped_out , std::vector<cv::UMat> &warped_mask_out , std::vector<cv::Rect> &rois_out); void warping_for_composition (const std::vector<cv::Mat> &images , const std::vector<cv::detail::CameraParams> &cameras , std::vector<cv::Point> &corners_out , std::vector<cv::UMat> &warped_out , std::vector<cv::UMat> &warped_mask_out , std::vector<cv::Rect> &rois_out); void finding_seam (std::vector<cv::Point> &corners , std::vector<cv::UMat> &warped , std::vector<cv::UMat> &warped_mask); void feeding_exposure_compensator(std::vector<cv::Point> &corners , std::vector<cv::UMat> &images_warped , std::vector<cv::UMat> &masks_warped); void applying_exposure_compensator(std::vector<cv::Point> &corners , std::vector<cv::UMat> &images_warped , std::vector<cv::UMat> &masks_warped); cv::Mat blending (std::vector<cv::UMat> &image_warped , std::vector<cv::Rect> &rois , std::vector<cv::UMat> &seam_masks); void calculate_camera_params (std::vector<cv::Mat> &full_img); std::vector<cv::detail::CameraParams> get_camera_params (); void set_camera_params (std::vector<cv::detail::CameraParams> &cameras_); void prepare_compose (std::vector<cv::Mat> &full_img); void compose (std::vector<cv::Mat> &full_img); cv::Mat stitcher_do_all (std::vector<cv::Mat> &imgs); private: cv::Ptr<cv::detail::FeaturesFinder> finder; cv::Ptr<cv::detail::FeaturesMatcher> matcher; cv::Ptr<cv::detail::Estimator> estimator; cv::Ptr<cv::detail::BundleAdjusterBase> adjuster; cv::Ptr<cv::WarperCreator> warper_creator; cv::Ptr<cv::detail::SeamFinder> seam_finder; cv::Ptr<cv::detail::ExposureCompensator> compensator; cv::Ptr<cv::detail::Blender> blender; std::vector<cv::detail::ImageFeatures> features; std::vector<cv::detail::MatchesInfo> pairwise_matches; std::vector<cv::detail::CameraParams> cameras; std::vector<cv::Point> corners_prepare; std::vector<cv::UMat> warped_prepare; std::vector<cv::UMat> warped_mask_prepare; std::vector<cv::Rect> rois_prepare; std::vector<cv::Point> corners_compose; std::vector<cv::UMat> warped_compose; std::vector<cv::UMat> warped_mask_compose; std::vector<cv::Rect> rois_compose; cv::Mat result; double work_megapix; double seam_megapix; double compose_megapix; double match_conf; std::vector<double> work_scale; std::vector<double> seam_scale; std::vector<double> seam_work_aspect; std::vector<double> compose_scale; std::vector<double> compose_work_aspect; }; #endif
54.724832
155
0.536792
[ "vector" ]
72615425936ad86e8103627059896c71c52a4f20
82,091
cc
C++
semant/seal-parse.cc
Snowfall99/seal-compiler
8ea600d6312d1da145e6d8f018c20751826d4efa
[ "MIT" ]
4
2020-10-25T14:40:20.000Z
2020-11-22T05:38:17.000Z
semant/seal-parse.cc
Snowfall99/seal-compiler
8ea600d6312d1da145e6d8f018c20751826d4efa
[ "MIT" ]
1
2020-10-17T16:18:18.000Z
2020-10-19T14:46:31.000Z
semant/seal-parse.cc
Snowfall99/seal-compiler
8ea600d6312d1da145e6d8f018c20751826d4efa
[ "MIT" ]
2
2020-12-01T06:17:05.000Z
2020-12-02T10:13:18.000Z
/* A Bison parser, made by GNU Bison 3.0.4. */ /* Bison implementation for Yacc-like parsers in C Copyright (C) 1984, 1989-1990, 2000-2015 Free Software Foundation, Inc. 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 3 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, see <http://www.gnu.org/licenses/>. */ /* As a special exception, you may create a larger work that contains part or all of the Bison parser skeleton and distribute that work under terms of your choice, so long as that work isn't itself a parser generator using the skeleton or a modified version thereof as a parser skeleton. Alternatively, if you modify or redistribute the parser skeleton itself, you may (at your option) remove this special exception, which will cause the skeleton and the resulting Bison output files to be licensed under the GNU General Public License without this special exception. This special exception was added by the Free Software Foundation in version 2.2 of Bison. */ /* C LALR(1) parser skeleton written by Richard Stallman, by simplifying the original so-called "semantic" parser. */ /* All symbols defined below should begin with yy or YY, to avoid infringing on user name space. This should be done even for local variables, as they might otherwise be expanded by user macros. There are some unavoidable exceptions within include files to define necessary library symbols; they are noted "INFRINGES ON USER NAME SPACE" below. */ /* Identify Bison output. */ #define YYBISON 1 /* Bison version. */ #define YYBISON_VERSION "3.0.4" /* Skeleton name. */ #define YYSKELETON_NAME "yacc.c" /* Pure parsers. */ #define YYPURE 0 /* Push parsers. */ #define YYPUSH 0 /* Pull parsers. */ #define YYPULL 1 /* Substitute the variable and function names. */ #define yyparse seal_yyparse #define yylex seal_yylex #define yyerror seal_yyerror #define yydebug seal_yydebug #define yynerrs seal_yynerrs #define yylval seal_yylval #define yychar seal_yychar #define yylloc seal_yylloc /* Copy the first part of user declarations. */ #line 6 "seal.y" /* yacc.c:339 */ #include <iostream> #include "seal-decl.h" #include "seal-stmt.h" #include "seal-expr.h" #include "stringtab.h" #include "utilities.h" extern char *curr_filename; /* Locations */ #define YYLTYPE int /* the type of locations */ #define seal_yylloc curr_lineno /* use the curr_lineno from the lexer for the location of tokens */ extern int node_lineno; /* set before constructing a tree node to whatever you want the line number for the tree node to be */ #define YYLLOC_DEFAULT(Current, Rhs, N) \ Current = Rhs[1]; \ node_lineno = Current; #define SET_NODELOC(Current) \ node_lineno = Current; /* IMPORTANT NOTE ON LINE NUMBERS ********************************* * The above definitions and macros cause every terminal in your grammar to * have the line number supplied by the lexer. The only task you have to * implement for line numbers to work correctly, is to use SET_NODELOC() * before constructing any constructs from non-terminals in your grammar. * Example: Consider you are matching on the following very restrictive * (fictional) construct that matches a plus between two integer constants. * (SUCH A RULE SHOULD NOT BE PART OF YOUR PARSER): plus_consts : INT_CONST '+' INT_CONST * where INT_CONST is a terminal for an integer constant. Now, a correct * action for this rule that attaches the correct line number to plus_const * would look like the following: plus_consts : INT_CONST '+' INT_CONST { // Set the line number of the current non-terminal: // *********************************************** // You can access the line numbers of the i'th item with @i, just // like you acess the value of the i'th exporession with $i. // // Here, we choose the line number of the last INT_CONST (@3) as the // line number of the resulting expression (@$). You are free to pick // any reasonable line as the line number of non-terminals. If you // omit the statement @$=..., bison has default rules for deciding which // line number to use. Check the manual for details if you are interested. @$ = @3; // Observe that we call SET_NODELOC(@3); this will set the global variable // node_lineno to @3. Since the constructor call "plus" uses the value of // this global, the plus node will now have the correct line number. SET_NODELOC(@3); // construct the result node: $$ = plus(int_const($1), int_const($3)); } */ void yyerror(char *s); /* defined below; called for each parse error */ extern int yylex(); /* the entry point to the lexer */ /************************************************************************/ /* DONT CHANGE ANYTHING IN THIS SECTION */ Program ast_root; /* the result of the parse */ //Decls parse_results; /* for use in semantic analysis */ int omerrs = 0; /* number of errors in lexing and parsing */ #line 158 "seal.tab.c" /* yacc.c:339 */ # ifndef YY_NULLPTR # if defined __cplusplus && 201103L <= __cplusplus # define YY_NULLPTR nullptr # else # define YY_NULLPTR 0 # endif # endif /* Enabling verbose error messages. */ #ifdef YYERROR_VERBOSE # undef YYERROR_VERBOSE # define YYERROR_VERBOSE 1 #else # define YYERROR_VERBOSE 0 #endif /* In a future release of Bison, this section will be replaced by #include "seal.tab.h". */ #ifndef YY_SEAL_YY_SEAL_TAB_H_INCLUDED # define YY_SEAL_YY_SEAL_TAB_H_INCLUDED /* Debug traces. */ #ifndef YYDEBUG # define YYDEBUG 1 #endif #if YYDEBUG extern int seal_yydebug; #endif /* Token type. */ #ifndef YYTOKENTYPE # define YYTOKENTYPE enum yytokentype { IF = 258, ELSE = 260, WHILE = 261, FOR = 262, BREAK = 263, CONTINUE = 264, FUNC = 265, RETURN = 266, VAR = 271, ERROR = 273, AND = 274, OR = 275, EQUAL = 276, NE = 277, GE = 278, LE = 279, INT = 280, STRING = 281, BOOL = 282, FLOAT = 283, CONST_BOOL = 267, CONST_INT = 268, CONST_STRING = 269, CONST_FLOAT = 270, OBJECTID = 284, TYPEID = 285, UMINUS = 287 }; #endif /* Tokens. */ #define IF 258 #define ELSE 260 #define WHILE 261 #define FOR 262 #define BREAK 263 #define CONTINUE 264 #define FUNC 265 #define RETURN 266 #define VAR 271 #define ERROR 273 #define AND 274 #define OR 275 #define EQUAL 276 #define NE 277 #define GE 278 #define LE 279 #define INT 280 #define STRING 281 #define BOOL 282 #define FLOAT 283 #define CONST_BOOL 267 #define CONST_INT 268 #define CONST_STRING 269 #define CONST_FLOAT 270 #define OBJECTID 284 #define TYPEID 285 #define UMINUS 287 /* Value type. */ #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED union YYSTYPE { #line 89 "seal.y" /* yacc.c:355 */ Boolean boolean; Symbol symbol; Program program; Decl decl; Decls decls; VariableDecl variableDecl; VariableDecls variableDecls; Variable variable; Variables variables; CallDecl callDecl; StmtBlock stmtBlock; Stmt stmt; Stmts stmts; IfStmt ifStmt; WhileStmt whileStmt; ForStmt forStmt; ReturnStmt returnStmt; ContinueStmt continueStmt; BreakStmt breakStmt; Expr expr; Exprs exprs; Call call; Actual actual; Actuals actuals; char *error_msg; #line 286 "seal.tab.c" /* yacc.c:355 */ }; typedef union YYSTYPE YYSTYPE; # define YYSTYPE_IS_TRIVIAL 1 # define YYSTYPE_IS_DECLARED 1 #endif /* Location type. */ #if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED typedef struct YYLTYPE YYLTYPE; struct YYLTYPE { int first_line; int first_column; int last_line; int last_column; }; # define YYLTYPE_IS_DECLARED 1 # define YYLTYPE_IS_TRIVIAL 1 #endif extern YYSTYPE seal_yylval; extern YYLTYPE seal_yylloc; int seal_yyparse (void); #endif /* !YY_SEAL_YY_SEAL_TAB_H_INCLUDED */ /* Copy the second part of user declarations. */ #line 317 "seal.tab.c" /* yacc.c:358 */ #ifdef short # undef short #endif #ifdef YYTYPE_UINT8 typedef YYTYPE_UINT8 yytype_uint8; #else typedef unsigned char yytype_uint8; #endif #ifdef YYTYPE_INT8 typedef YYTYPE_INT8 yytype_int8; #else typedef signed char yytype_int8; #endif #ifdef YYTYPE_UINT16 typedef YYTYPE_UINT16 yytype_uint16; #else typedef unsigned short int yytype_uint16; #endif #ifdef YYTYPE_INT16 typedef YYTYPE_INT16 yytype_int16; #else typedef short int yytype_int16; #endif #ifndef YYSIZE_T # ifdef __SIZE_TYPE__ # define YYSIZE_T __SIZE_TYPE__ # elif defined size_t # define YYSIZE_T size_t # elif ! defined YYSIZE_T # include <stddef.h> /* INFRINGES ON USER NAME SPACE */ # define YYSIZE_T size_t # else # define YYSIZE_T unsigned int # endif #endif #define YYSIZE_MAXIMUM ((YYSIZE_T) -1) #ifndef YY_ # if defined YYENABLE_NLS && YYENABLE_NLS # if ENABLE_NLS # include <libintl.h> /* INFRINGES ON USER NAME SPACE */ # define YY_(Msgid) dgettext ("bison-runtime", Msgid) # endif # endif # ifndef YY_ # define YY_(Msgid) Msgid # endif #endif #ifndef YY_ATTRIBUTE # if (defined __GNUC__ \ && (2 < __GNUC__ || (__GNUC__ == 2 && 96 <= __GNUC_MINOR__))) \ || defined __SUNPRO_C && 0x5110 <= __SUNPRO_C # define YY_ATTRIBUTE(Spec) __attribute__(Spec) # else # define YY_ATTRIBUTE(Spec) /* empty */ # endif #endif #ifndef YY_ATTRIBUTE_PURE # define YY_ATTRIBUTE_PURE YY_ATTRIBUTE ((__pure__)) #endif #ifndef YY_ATTRIBUTE_UNUSED # define YY_ATTRIBUTE_UNUSED YY_ATTRIBUTE ((__unused__)) #endif #if !defined _Noreturn \ && (!defined __STDC_VERSION__ || __STDC_VERSION__ < 201112) # if defined _MSC_VER && 1200 <= _MSC_VER # define _Noreturn __declspec (noreturn) # else # define _Noreturn YY_ATTRIBUTE ((__noreturn__)) # endif #endif /* Suppress unused-variable warnings by "using" E. */ #if ! defined lint || defined __GNUC__ # define YYUSE(E) ((void) (E)) #else # define YYUSE(E) /* empty */ #endif #if defined __GNUC__ && 407 <= __GNUC__ * 100 + __GNUC_MINOR__ /* Suppress an incorrect diagnostic about yylval being uninitialized. */ # define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \ _Pragma ("GCC diagnostic push") \ _Pragma ("GCC diagnostic ignored \"-Wuninitialized\"")\ _Pragma ("GCC diagnostic ignored \"-Wmaybe-uninitialized\"") # define YY_IGNORE_MAYBE_UNINITIALIZED_END \ _Pragma ("GCC diagnostic pop") #else # define YY_INITIAL_VALUE(Value) Value #endif #ifndef YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN # define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN # define YY_IGNORE_MAYBE_UNINITIALIZED_END #endif #ifndef YY_INITIAL_VALUE # define YY_INITIAL_VALUE(Value) /* Nothing. */ #endif #if ! defined yyoverflow || YYERROR_VERBOSE /* The parser invokes alloca or malloc; define the necessary symbols. */ # ifdef YYSTACK_USE_ALLOCA # if YYSTACK_USE_ALLOCA # ifdef __GNUC__ # define YYSTACK_ALLOC __builtin_alloca # elif defined __BUILTIN_VA_ARG_INCR # include <alloca.h> /* INFRINGES ON USER NAME SPACE */ # elif defined _AIX # define YYSTACK_ALLOC __alloca # elif defined _MSC_VER # include <malloc.h> /* INFRINGES ON USER NAME SPACE */ # define alloca _alloca # else # define YYSTACK_ALLOC alloca # if ! defined _ALLOCA_H && ! defined EXIT_SUCCESS # include <stdlib.h> /* INFRINGES ON USER NAME SPACE */ /* Use EXIT_SUCCESS as a witness for stdlib.h. */ # ifndef EXIT_SUCCESS # define EXIT_SUCCESS 0 # endif # endif # endif # endif # endif # ifdef YYSTACK_ALLOC /* Pacify GCC's 'empty if-body' warning. */ # define YYSTACK_FREE(Ptr) do { /* empty */; } while (0) # ifndef YYSTACK_ALLOC_MAXIMUM /* The OS might guarantee only one guard page at the bottom of the stack, and a page size can be as small as 4096 bytes. So we cannot safely invoke alloca (N) if N exceeds 4096. Use a slightly smaller number to allow for a few compiler-allocated temporary stack slots. */ # define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 2006 */ # endif # else # define YYSTACK_ALLOC YYMALLOC # define YYSTACK_FREE YYFREE # ifndef YYSTACK_ALLOC_MAXIMUM # define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM # endif # if (defined __cplusplus && ! defined EXIT_SUCCESS \ && ! ((defined YYMALLOC || defined malloc) \ && (defined YYFREE || defined free))) # include <stdlib.h> /* INFRINGES ON USER NAME SPACE */ # ifndef EXIT_SUCCESS # define EXIT_SUCCESS 0 # endif # endif # ifndef YYMALLOC # define YYMALLOC malloc # if ! defined malloc && ! defined EXIT_SUCCESS void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */ # endif # endif # ifndef YYFREE # define YYFREE free # if ! defined free && ! defined EXIT_SUCCESS void free (void *); /* INFRINGES ON USER NAME SPACE */ # endif # endif # endif #endif /* ! defined yyoverflow || YYERROR_VERBOSE */ #if (! defined yyoverflow \ && (! defined __cplusplus \ || (defined YYLTYPE_IS_TRIVIAL && YYLTYPE_IS_TRIVIAL \ && defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL))) /* A type that is properly aligned for any stack member. */ union yyalloc { yytype_int16 yyss_alloc; YYSTYPE yyvs_alloc; YYLTYPE yyls_alloc; }; /* The size of the maximum gap between one aligned stack and the next. */ # define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1) /* The size of an array large to enough to hold all stacks, each with N elements. */ # define YYSTACK_BYTES(N) \ ((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE) + sizeof (YYLTYPE)) \ + 2 * YYSTACK_GAP_MAXIMUM) # define YYCOPY_NEEDED 1 /* Relocate STACK from its old location to the new one. The local variables YYSIZE and YYSTACKSIZE give the old and new number of elements in the stack, and YYPTR gives the new location of the stack. Advance YYPTR to a properly aligned location for the next stack. */ # define YYSTACK_RELOCATE(Stack_alloc, Stack) \ do \ { \ YYSIZE_T yynewbytes; \ YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \ Stack = &yyptr->Stack_alloc; \ yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \ yyptr += yynewbytes / sizeof (*yyptr); \ } \ while (0) #endif #if defined YYCOPY_NEEDED && YYCOPY_NEEDED /* Copy COUNT objects from SRC to DST. The source and destination do not overlap. */ # ifndef YYCOPY # if defined __GNUC__ && 1 < __GNUC__ # define YYCOPY(Dst, Src, Count) \ __builtin_memcpy (Dst, Src, (Count) * sizeof (*(Src))) # else # define YYCOPY(Dst, Src, Count) \ do \ { \ YYSIZE_T yyi; \ for (yyi = 0; yyi < (Count); yyi++) \ (Dst)[yyi] = (Src)[yyi]; \ } \ while (0) # endif # endif #endif /* !YYCOPY_NEEDED */ /* YYFINAL -- State number of the termination state. */ #define YYFINAL 11 /* YYLAST -- Last index in YYTABLE. */ #define YYLAST 692 /* YYNTOKENS -- Number of terminals. */ #define YYNTOKENS 50 /* YYNNTS -- Number of nonterminals. */ #define YYNNTS 22 /* YYNRULES -- Number of rules. */ #define YYNRULES 76 /* YYNSTATES -- Number of states. */ #define YYNSTATES 139 /* YYTRANSLATE[YYX] -- Symbol number corresponding to YYX as returned by yylex, with out-of-bounds checking. */ #define YYUNDEFTOK 2 #define YYMAXUTOK 287 #define YYTRANSLATE(YYX) \ ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) /* YYTRANSLATE[TOKEN-NUM] -- Symbol number corresponding to TOKEN-NUM as returned by yylex, without out-of-bounds checking. */ static const yytype_uint8 yytranslate[] = { 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 38, 2, 2, 2, 37, 40, 2, 46, 47, 35, 33, 45, 34, 43, 36, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 44, 31, 30, 32, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 42, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 48, 41, 49, 39, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 2, 3, 2, 4, 5, 6, 7, 8, 9, 10, 23, 24, 25, 26, 11, 2, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 27, 28, 2, 29 }; #if YYDEBUG /* YYRLINE[YYN] -- Source line where rule number YYN was defined. */ static const yytype_uint16 yyrline[] = { 0, 186, 186, 191, 194, 199, 202, 208, 213, 216, 221, 225, 228, 231, 237, 242, 245, 248, 251, 256, 259, 262, 265, 268, 271, 274, 277, 280, 285, 288, 293, 296, 301, 306, 309, 312, 315, 318, 321, 324, 327, 332, 337, 342, 345, 350, 353, 356, 359, 362, 365, 368, 371, 374, 377, 380, 383, 386, 389, 392, 395, 398, 401, 404, 407, 410, 413, 416, 419, 422, 425, 428, 433, 438, 442, 445, 448 }; #endif #if YYDEBUG || YYERROR_VERBOSE || 0 /* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM. First, the terminals, then, starting at YYNTOKENS, nonterminals. */ static const char *const yytname[] = { "$end", "error", "$undefined", "IF", "ELSE", "WHILE", "FOR", "BREAK", "CONTINUE", "FUNC", "RETURN", "VAR", "ERROR", "AND", "OR", "EQUAL", "NE", "GE", "LE", "INT", "STRING", "BOOL", "FLOAT", "CONST_BOOL", "CONST_INT", "CONST_STRING", "CONST_FLOAT", "OBJECTID", "TYPEID", "UMINUS", "'='", "'<'", "'>'", "'+'", "'-'", "'*'", "'/'", "'%'", "'!'", "'~'", "'&'", "'|'", "'^'", "'.'", "';'", "','", "'('", "')'", "'{'", "'}'", "$accept", "program", "decl", "decl_list", "variableDecl", "variableDecl_list", "variable", "variable_list", "callDecl", "stmtBlock", "stmt", "stmt_list", "ifStmt", "whileStmt", "forStmt", "breakStmt", "continueStmt", "returnStmt", "expr", "call", "actual", "actual_list", YY_NULLPTR }; #endif # ifdef YYPRINT /* YYTOKNUM[NUM] -- (External) token number corresponding to the (internal) symbol number NUM (which must be that of a token). */ static const yytype_uint16 yytoknum[] = { 0, 256, 286, 258, 260, 261, 262, 263, 264, 265, 266, 271, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 267, 268, 269, 270, 284, 285, 287, 61, 60, 62, 43, 45, 42, 47, 37, 33, 126, 38, 124, 94, 46, 59, 44, 40, 41, 123, 125 }; # endif #define YYPACT_NINF -55 #define yypact_value_is_default(Yystate) \ (!!((Yystate) == (-55))) #define YYTABLE_NINF -1 #define yytable_value_is_error(Yytable_value) \ (!!((Yytable_value) == (-1))) /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing STATE-NUM. */ static const yytype_int16 yypact[] = { 0, -26, -12, 36, -55, 0, -55, -55, -8, 13, -2, -55, -55, -12, -55, -55, -55, -33, -12, 17, -55, 2, 112, -55, 106, 106, 574, 4, 7, 598, -55, -55, -55, -55, -27, 106, 106, 106, -55, 106, -55, -55, 159, -55, -55, 206, -55, -55, -55, -55, -55, -55, 361, -55, 290, 290, 622, 393, -55, -55, -55, 425, 106, 106, -10, -10, -55, 326, -55, -55, 253, -55, -55, 106, 106, 106, 106, 106, 106, 106, 106, 106, 106, 106, 106, 106, 106, 106, 106, -55, 42, -55, 1, 457, 646, -55, 521, 521, -55, -24, -55, -55, 533, 521, 278, 278, 554, 554, 554, 554, 41, 41, -10, -10, -10, -55, -55, -55, 2, -55, 290, 1, 1, 489, 106, -55, -55, -55, -55, 290, -55, 290, 1, -55, -55, -55, -55, 290, -55 }; /* YYDEFACT[STATE-NUM] -- Default reduction number in state STATE-NUM. Performed when YYTABLE does not specify something else to do. Zero means the default is an error. */ static const yytype_uint8 yydefact[] = { 0, 0, 0, 0, 5, 2, 3, 4, 0, 0, 0, 1, 6, 11, 10, 7, 12, 0, 0, 0, 13, 0, 0, 14, 0, 0, 0, 0, 0, 0, 49, 46, 47, 48, 50, 0, 0, 0, 19, 0, 18, 8, 0, 27, 28, 0, 21, 22, 23, 24, 25, 26, 0, 51, 0, 0, 0, 0, 41, 42, 44, 0, 0, 74, 58, 67, 68, 0, 17, 9, 0, 16, 29, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 20, 30, 32, 0, 0, 0, 43, 45, 73, 75, 0, 52, 15, 65, 66, 61, 62, 63, 60, 59, 64, 53, 54, 55, 56, 57, 69, 70, 71, 0, 40, 0, 0, 0, 0, 0, 72, 31, 37, 38, 0, 39, 0, 0, 76, 34, 35, 36, 0, 33 }; /* YYPGOTO[NTERM-NUM]. */ static const yytype_int8 yypgoto[] = { -55, -55, 47, -55, -20, -55, -5, -55, -55, -21, -41, 11, -55, -55, -55, -55, -55, -55, -19, -55, -54, -55 }; /* YYDEFGOTO[NTERM-NUM]. */ static const yytype_int8 yydefgoto[] = { -1, 3, 4, 5, 6, 42, 10, 17, 7, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 98, 99 }; /* YYTABLE[YYPACT[STATE-NUM]] -- What to do in state STATE-NUM. If positive, shift that token. If negative, reduce the rule whose number is the opposite. If YYTABLE_NINF, syntax error. */ static const yytype_int16 yytable[] = { 23, 8, 41, 62, 72, 54, 55, 57, 16, 1, 61, 2, 18, 20, 19, 9, 64, 65, 66, 63, 67, 124, 69, 125, 30, 31, 32, 33, 34, 72, 86, 87, 88, 90, 91, 35, 11, 93, 13, 36, 37, 14, 15, 96, 97, 21, 118, 39, 58, 22, 22, 59, 12, 70, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 133, 119, 0, 120, 0, 123, 83, 84, 85, 0, 0, 86, 87, 88, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 126, 0, 127, 128, 130, 129, 131, 0, 97, 0, 0, 134, 0, 135, 136, 0, 137, 0, 24, 138, 25, 26, 27, 28, 0, 29, 2, 0, 0, 0, 0, 0, 30, 31, 32, 33, 34, 0, 30, 31, 32, 33, 34, 35, 0, 0, 0, 36, 37, 35, 0, 0, 0, 36, 37, 39, 0, 0, 0, 38, 0, 39, 0, 22, 40, 24, 0, 25, 26, 27, 28, 0, 29, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30, 31, 32, 33, 34, 0, 0, 0, 0, 0, 0, 35, 0, 0, 0, 36, 37, 0, 0, 0, 0, 38, 0, 39, 0, 22, 68, 24, 0, 25, 26, 27, 28, 0, 29, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30, 31, 32, 33, 34, 0, 0, 0, 0, 0, 0, 35, 0, 0, 0, 36, 37, 0, 0, 0, 0, 38, 0, 39, 0, 22, 71, 24, 0, 25, 26, 27, 28, 0, 29, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30, 31, 32, 33, 34, 0, 0, 0, 0, 0, 0, 35, 0, 0, 0, 36, 37, -1, -1, 77, 78, 38, 0, 39, 0, 22, 101, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 0, 0, 86, 87, 88, 79, 80, 81, 82, 83, 84, 85, 0, 0, 86, 87, 88, 0, 0, 0, 0, 0, 22, 73, 74, 75, 76, 77, 78, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 79, 80, 81, 82, 83, 84, 85, 0, 0, 86, 87, 88, 0, 0, 0, 0, 100, 73, 74, 75, 76, 77, 78, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 79, 80, 81, 82, 83, 84, 85, 0, 0, 86, 87, 88, 0, 89, 73, 74, 75, 76, 77, 78, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 79, 80, 81, 82, 83, 84, 85, 0, 0, 86, 87, 88, 0, 94, 73, 74, 75, 76, 77, 78, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 79, 80, 81, 82, 83, 84, 85, 0, 0, 86, 87, 88, 0, 95, 73, 74, 75, 76, 77, 78, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 79, 80, 81, 82, 83, 84, 85, 0, 0, 86, 87, 88, 0, 121, 73, 74, 75, 76, 77, 78, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 79, 80, 81, 82, 83, 84, 85, 0, 0, 86, 87, 88, 0, 132, 73, 74, 75, 76, 77, 78, 0, 0, 0, 0, 0, 0, 73, 0, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 0, 0, 86, 87, 88, 79, 80, 81, 82, 83, 84, 85, -1, -1, 86, 87, 88, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, -1, 81, 82, 83, 84, 85, 0, 0, 86, 87, 88, 30, 31, 32, 33, 34, 0, 0, 0, 0, 0, 0, 35, 0, 0, 0, 36, 37, 0, 0, 0, 0, 56, 0, 39, 30, 31, 32, 33, 34, 0, 0, 0, 0, 0, 0, 35, 0, 0, 0, 36, 37, 0, 0, 0, 0, 60, 0, 39, 30, 31, 32, 33, 34, 0, 0, 0, 0, 0, 0, 35, 0, 0, 0, 36, 37, 0, 0, 0, 0, 92, 0, 39, 30, 31, 32, 33, 34, 0, 0, 0, 0, 0, 0, 35, 0, 0, 0, 36, 37, 0, 0, 0, 0, 122, 0, 39 }; static const yytype_int16 yycheck[] = { 21, 27, 22, 30, 45, 24, 25, 26, 13, 9, 29, 11, 45, 18, 47, 27, 35, 36, 37, 46, 39, 45, 42, 47, 23, 24, 25, 26, 27, 70, 40, 41, 42, 54, 55, 34, 0, 56, 46, 38, 39, 28, 44, 62, 63, 28, 4, 46, 44, 48, 48, 44, 5, 42, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 124, 92, -1, 92, -1, 94, 35, 36, 37, -1, -1, 40, 41, 42, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 118, -1, 120, 121, 122, 121, 122, -1, 124, -1, -1, 129, -1, 131, 132, -1, 132, -1, 3, 137, 5, 6, 7, 8, -1, 10, 11, -1, -1, -1, -1, -1, 23, 24, 25, 26, 27, -1, 23, 24, 25, 26, 27, 34, -1, -1, -1, 38, 39, 34, -1, -1, -1, 38, 39, 46, -1, -1, -1, 44, -1, 46, -1, 48, 49, 3, -1, 5, 6, 7, 8, -1, 10, 11, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 23, 24, 25, 26, 27, -1, -1, -1, -1, -1, -1, 34, -1, -1, -1, 38, 39, -1, -1, -1, -1, 44, -1, 46, -1, 48, 49, 3, -1, 5, 6, 7, 8, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 23, 24, 25, 26, 27, -1, -1, -1, -1, -1, -1, 34, -1, -1, -1, 38, 39, -1, -1, -1, -1, 44, -1, 46, -1, 48, 49, 3, -1, 5, 6, 7, 8, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 23, 24, 25, 26, 27, -1, -1, -1, -1, -1, -1, 34, -1, -1, -1, 38, 39, 15, 16, 17, 18, 44, -1, 46, -1, 48, 49, 13, 14, 15, 16, 17, 18, 31, 32, 33, 34, 35, 36, 37, -1, -1, 40, 41, 42, 31, 32, 33, 34, 35, 36, 37, -1, -1, 40, 41, 42, -1, -1, -1, -1, -1, 48, 13, 14, 15, 16, 17, 18, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 31, 32, 33, 34, 35, 36, 37, -1, -1, 40, 41, 42, -1, -1, -1, -1, 47, 13, 14, 15, 16, 17, 18, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 31, 32, 33, 34, 35, 36, 37, -1, -1, 40, 41, 42, -1, 44, 13, 14, 15, 16, 17, 18, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 31, 32, 33, 34, 35, 36, 37, -1, -1, 40, 41, 42, -1, 44, 13, 14, 15, 16, 17, 18, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 31, 32, 33, 34, 35, 36, 37, -1, -1, 40, 41, 42, -1, 44, 13, 14, 15, 16, 17, 18, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 31, 32, 33, 34, 35, 36, 37, -1, -1, 40, 41, 42, -1, 44, 13, 14, 15, 16, 17, 18, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 31, 32, 33, 34, 35, 36, 37, -1, -1, 40, 41, 42, -1, 44, 13, 14, 15, 16, 17, 18, -1, -1, -1, -1, -1, -1, 13, -1, 15, 16, 17, 18, 31, 32, 33, 34, 35, 36, 37, -1, -1, 40, 41, 42, 31, 32, 33, 34, 35, 36, 37, 17, 18, 40, 41, 42, -1, -1, -1, -1, -1, -1, -1, -1, -1, 31, 32, 33, 34, 35, 36, 37, -1, -1, 40, 41, 42, 23, 24, 25, 26, 27, -1, -1, -1, -1, -1, -1, 34, -1, -1, -1, 38, 39, -1, -1, -1, -1, 44, -1, 46, 23, 24, 25, 26, 27, -1, -1, -1, -1, -1, -1, 34, -1, -1, -1, 38, 39, -1, -1, -1, -1, 44, -1, 46, 23, 24, 25, 26, 27, -1, -1, -1, -1, -1, -1, 34, -1, -1, -1, 38, 39, -1, -1, -1, -1, 44, -1, 46, 23, 24, 25, 26, 27, -1, -1, -1, -1, -1, -1, 34, -1, -1, -1, 38, 39, -1, -1, -1, -1, 44, -1, 46 }; /* YYSTOS[STATE-NUM] -- The (internal number of the) accessing symbol of state STATE-NUM. */ static const yytype_uint8 yystos[] = { 0, 9, 11, 51, 52, 53, 54, 58, 27, 27, 56, 0, 52, 46, 28, 44, 56, 57, 45, 47, 56, 28, 48, 59, 3, 5, 6, 7, 8, 10, 23, 24, 25, 26, 27, 34, 38, 39, 44, 46, 49, 54, 55, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 68, 68, 44, 68, 44, 44, 44, 68, 30, 46, 68, 68, 68, 68, 49, 54, 61, 49, 60, 13, 14, 15, 16, 17, 18, 31, 32, 33, 34, 35, 36, 37, 40, 41, 42, 44, 59, 59, 44, 68, 44, 44, 68, 68, 70, 71, 47, 49, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 4, 59, 68, 44, 44, 68, 45, 47, 59, 59, 59, 68, 59, 68, 44, 70, 59, 59, 59, 68, 59 }; /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */ static const yytype_uint8 yyr1[] = { 0, 50, 51, 52, 52, 53, 53, 54, 55, 55, 56, 57, 57, 57, 58, 59, 59, 59, 59, 60, 60, 60, 60, 60, 60, 60, 60, 60, 61, 61, 62, 62, 63, 64, 64, 64, 64, 64, 64, 64, 64, 65, 66, 67, 67, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 69, 70, 71, 71, 71 }; /* YYR2[YYN] -- Number of symbols on the right hand side of rule YYN. */ static const yytype_uint8 yyr2[] = { 0, 2, 1, 1, 1, 1, 2, 3, 1, 2, 2, 0, 1, 3, 7, 4, 3, 3, 2, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, 5, 3, 7, 6, 6, 6, 5, 5, 5, 4, 2, 2, 3, 2, 3, 1, 1, 1, 1, 1, 1, 3, 3, 3, 3, 3, 3, 2, 3, 3, 3, 3, 3, 3, 3, 3, 2, 2, 3, 3, 3, 4, 1, 0, 1, 3 }; #define yyerrok (yyerrstatus = 0) #define yyclearin (yychar = YYEMPTY) #define YYEMPTY (-2) #define YYEOF 0 #define YYACCEPT goto yyacceptlab #define YYABORT goto yyabortlab #define YYERROR goto yyerrorlab #define YYRECOVERING() (!!yyerrstatus) #define YYBACKUP(Token, Value) \ do \ if (yychar == YYEMPTY) \ { \ yychar = (Token); \ yylval = (Value); \ YYPOPSTACK (yylen); \ yystate = *yyssp; \ goto yybackup; \ } \ else \ { \ yyerror (YY_("syntax error: cannot back up")); \ YYERROR; \ } \ while (0) /* Error token number */ #define YYTERROR 1 #define YYERRCODE 256 /* YYLLOC_DEFAULT -- Set CURRENT to span from RHS[1] to RHS[N]. If N is 0, then set CURRENT to the empty location which ends the previous symbol: RHS[0] (always defined). */ #ifndef YYLLOC_DEFAULT # define YYLLOC_DEFAULT(Current, Rhs, N) \ do \ if (N) \ { \ (Current).first_line = YYRHSLOC (Rhs, 1).first_line; \ (Current).first_column = YYRHSLOC (Rhs, 1).first_column; \ (Current).last_line = YYRHSLOC (Rhs, N).last_line; \ (Current).last_column = YYRHSLOC (Rhs, N).last_column; \ } \ else \ { \ (Current).first_line = (Current).last_line = \ YYRHSLOC (Rhs, 0).last_line; \ (Current).first_column = (Current).last_column = \ YYRHSLOC (Rhs, 0).last_column; \ } \ while (0) #endif #define YYRHSLOC(Rhs, K) ((Rhs)[K]) /* Enable debugging if requested. */ #if YYDEBUG # ifndef YYFPRINTF # include <stdio.h> /* INFRINGES ON USER NAME SPACE */ # define YYFPRINTF fprintf # endif # define YYDPRINTF(Args) \ do { \ if (yydebug) \ YYFPRINTF Args; \ } while (0) /* YY_LOCATION_PRINT -- Print the location on the stream. This macro was not mandated originally: define only if we know we won't break user code: when these are the locations we know. */ #ifndef YY_LOCATION_PRINT # if defined YYLTYPE_IS_TRIVIAL && YYLTYPE_IS_TRIVIAL /* Print *YYLOCP on YYO. Private, do not rely on its existence. */ YY_ATTRIBUTE_UNUSED static unsigned yy_location_print_ (FILE *yyo, YYLTYPE const * const yylocp) { unsigned res = 0; int end_col = 0 != yylocp->last_column ? yylocp->last_column - 1 : 0; if (0 <= yylocp->first_line) { res += YYFPRINTF (yyo, "%d", yylocp->first_line); if (0 <= yylocp->first_column) res += YYFPRINTF (yyo, ".%d", yylocp->first_column); } if (0 <= yylocp->last_line) { if (yylocp->first_line < yylocp->last_line) { res += YYFPRINTF (yyo, "-%d", yylocp->last_line); if (0 <= end_col) res += YYFPRINTF (yyo, ".%d", end_col); } else if (0 <= end_col && yylocp->first_column < end_col) res += YYFPRINTF (yyo, "-%d", end_col); } return res; } # define YY_LOCATION_PRINT(File, Loc) \ yy_location_print_ (File, &(Loc)) # else # define YY_LOCATION_PRINT(File, Loc) ((void) 0) # endif #endif # define YY_SYMBOL_PRINT(Title, Type, Value, Location) \ do { \ if (yydebug) \ { \ YYFPRINTF (stderr, "%s ", Title); \ yy_symbol_print (stderr, \ Type, Value, Location); \ YYFPRINTF (stderr, "\n"); \ } \ } while (0) /*----------------------------------------. | Print this symbol's value on YYOUTPUT. | `----------------------------------------*/ static void yy_symbol_value_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep, YYLTYPE const * const yylocationp) { FILE *yyo = yyoutput; YYUSE (yyo); YYUSE (yylocationp); if (!yyvaluep) return; # ifdef YYPRINT if (yytype < YYNTOKENS) YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep); # endif YYUSE (yytype); } /*--------------------------------. | Print this symbol on YYOUTPUT. | `--------------------------------*/ static void yy_symbol_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep, YYLTYPE const * const yylocationp) { YYFPRINTF (yyoutput, "%s %s (", yytype < YYNTOKENS ? "token" : "nterm", yytname[yytype]); YY_LOCATION_PRINT (yyoutput, *yylocationp); YYFPRINTF (yyoutput, ": "); yy_symbol_value_print (yyoutput, yytype, yyvaluep, yylocationp); YYFPRINTF (yyoutput, ")"); } /*------------------------------------------------------------------. | yy_stack_print -- Print the state stack from its BOTTOM up to its | | TOP (included). | `------------------------------------------------------------------*/ static void yy_stack_print (yytype_int16 *yybottom, yytype_int16 *yytop) { YYFPRINTF (stderr, "Stack now"); for (; yybottom <= yytop; yybottom++) { int yybot = *yybottom; YYFPRINTF (stderr, " %d", yybot); } YYFPRINTF (stderr, "\n"); } # define YY_STACK_PRINT(Bottom, Top) \ do { \ if (yydebug) \ yy_stack_print ((Bottom), (Top)); \ } while (0) /*------------------------------------------------. | Report that the YYRULE is going to be reduced. | `------------------------------------------------*/ static void yy_reduce_print (yytype_int16 *yyssp, YYSTYPE *yyvsp, YYLTYPE *yylsp, int yyrule) { unsigned long int yylno = yyrline[yyrule]; int yynrhs = yyr2[yyrule]; int yyi; YYFPRINTF (stderr, "Reducing stack by rule %d (line %lu):\n", yyrule - 1, yylno); /* The symbols being reduced. */ for (yyi = 0; yyi < yynrhs; yyi++) { YYFPRINTF (stderr, " $%d = ", yyi + 1); yy_symbol_print (stderr, yystos[yyssp[yyi + 1 - yynrhs]], &(yyvsp[(yyi + 1) - (yynrhs)]) , &(yylsp[(yyi + 1) - (yynrhs)]) ); YYFPRINTF (stderr, "\n"); } } # define YY_REDUCE_PRINT(Rule) \ do { \ if (yydebug) \ yy_reduce_print (yyssp, yyvsp, yylsp, Rule); \ } while (0) /* Nonzero means print parse trace. It is left uninitialized so that multiple parsers can coexist. */ int yydebug; #else /* !YYDEBUG */ # define YYDPRINTF(Args) # define YY_SYMBOL_PRINT(Title, Type, Value, Location) # define YY_STACK_PRINT(Bottom, Top) # define YY_REDUCE_PRINT(Rule) #endif /* !YYDEBUG */ /* YYINITDEPTH -- initial size of the parser's stacks. */ #ifndef YYINITDEPTH # define YYINITDEPTH 200 #endif /* YYMAXDEPTH -- maximum size the stacks can grow to (effective only if the built-in stack extension method is used). Do not make this value too large; the results are undefined if YYSTACK_ALLOC_MAXIMUM < YYSTACK_BYTES (YYMAXDEPTH) evaluated with infinite-precision integer arithmetic. */ #ifndef YYMAXDEPTH # define YYMAXDEPTH 10000 #endif #if YYERROR_VERBOSE # ifndef yystrlen # if defined __GLIBC__ && defined _STRING_H # define yystrlen strlen # else /* Return the length of YYSTR. */ static YYSIZE_T yystrlen (const char *yystr) { YYSIZE_T yylen; for (yylen = 0; yystr[yylen]; yylen++) continue; return yylen; } # endif # endif # ifndef yystpcpy # if defined __GLIBC__ && defined _STRING_H && defined _GNU_SOURCE # define yystpcpy stpcpy # else /* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in YYDEST. */ static char * yystpcpy (char *yydest, const char *yysrc) { char *yyd = yydest; const char *yys = yysrc; while ((*yyd++ = *yys++) != '\0') continue; return yyd - 1; } # endif # endif # ifndef yytnamerr /* Copy to YYRES the contents of YYSTR after stripping away unnecessary quotes and backslashes, so that it's suitable for yyerror. The heuristic is that double-quoting is unnecessary unless the string contains an apostrophe, a comma, or backslash (other than backslash-backslash). YYSTR is taken from yytname. If YYRES is null, do not copy; instead, return the length of what the result would have been. */ static YYSIZE_T yytnamerr (char *yyres, const char *yystr) { if (*yystr == '"') { YYSIZE_T yyn = 0; char const *yyp = yystr; for (;;) switch (*++yyp) { case '\'': case ',': goto do_not_strip_quotes; case '\\': if (*++yyp != '\\') goto do_not_strip_quotes; /* Fall through. */ default: if (yyres) yyres[yyn] = *yyp; yyn++; break; case '"': if (yyres) yyres[yyn] = '\0'; return yyn; } do_not_strip_quotes: ; } if (! yyres) return yystrlen (yystr); return yystpcpy (yyres, yystr) - yyres; } # endif /* Copy into *YYMSG, which is of size *YYMSG_ALLOC, an error message about the unexpected token YYTOKEN for the state stack whose top is YYSSP. Return 0 if *YYMSG was successfully written. Return 1 if *YYMSG is not large enough to hold the message. In that case, also set *YYMSG_ALLOC to the required number of bytes. Return 2 if the required number of bytes is too large to store. */ static int yysyntax_error (YYSIZE_T *yymsg_alloc, char **yymsg, yytype_int16 *yyssp, int yytoken) { YYSIZE_T yysize0 = yytnamerr (YY_NULLPTR, yytname[yytoken]); YYSIZE_T yysize = yysize0; enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 }; /* Internationalized format string. */ const char *yyformat = YY_NULLPTR; /* Arguments of yyformat. */ char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM]; /* Number of reported tokens (one for the "unexpected", one per "expected"). */ int yycount = 0; /* There are many possibilities here to consider: - If this state is a consistent state with a default action, then the only way this function was invoked is if the default action is an error action. In that case, don't check for expected tokens because there are none. - The only way there can be no lookahead present (in yychar) is if this state is a consistent state with a default action. Thus, detecting the absence of a lookahead is sufficient to determine that there is no unexpected or expected token to report. In that case, just report a simple "syntax error". - Don't assume there isn't a lookahead just because this state is a consistent state with a default action. There might have been a previous inconsistent state, consistent state with a non-default action, or user semantic action that manipulated yychar. - Of course, the expected token list depends on states to have correct lookahead information, and it depends on the parser not to perform extra reductions after fetching a lookahead from the scanner and before detecting a syntax error. Thus, state merging (from LALR or IELR) and default reductions corrupt the expected token list. However, the list is correct for canonical LR with one exception: it will still contain any token that will not be accepted due to an error action in a later state. */ if (yytoken != YYEMPTY) { int yyn = yypact[*yyssp]; yyarg[yycount++] = yytname[yytoken]; if (!yypact_value_is_default (yyn)) { /* Start YYX at -YYN if negative to avoid negative indexes in YYCHECK. In other words, skip the first -YYN actions for this state because they are default actions. */ int yyxbegin = yyn < 0 ? -yyn : 0; /* Stay within bounds of both yycheck and yytname. */ int yychecklim = YYLAST - yyn + 1; int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS; int yyx; for (yyx = yyxbegin; yyx < yyxend; ++yyx) if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR && !yytable_value_is_error (yytable[yyx + yyn])) { if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM) { yycount = 1; yysize = yysize0; break; } yyarg[yycount++] = yytname[yyx]; { YYSIZE_T yysize1 = yysize + yytnamerr (YY_NULLPTR, yytname[yyx]); if (! (yysize <= yysize1 && yysize1 <= YYSTACK_ALLOC_MAXIMUM)) return 2; yysize = yysize1; } } } } switch (yycount) { # define YYCASE_(N, S) \ case N: \ yyformat = S; \ break YYCASE_(0, YY_("syntax error")); YYCASE_(1, YY_("syntax error, unexpected %s")); YYCASE_(2, YY_("syntax error, unexpected %s, expecting %s")); YYCASE_(3, YY_("syntax error, unexpected %s, expecting %s or %s")); YYCASE_(4, YY_("syntax error, unexpected %s, expecting %s or %s or %s")); YYCASE_(5, YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s")); # undef YYCASE_ } { YYSIZE_T yysize1 = yysize + yystrlen (yyformat); if (! (yysize <= yysize1 && yysize1 <= YYSTACK_ALLOC_MAXIMUM)) return 2; yysize = yysize1; } if (*yymsg_alloc < yysize) { *yymsg_alloc = 2 * yysize; if (! (yysize <= *yymsg_alloc && *yymsg_alloc <= YYSTACK_ALLOC_MAXIMUM)) *yymsg_alloc = YYSTACK_ALLOC_MAXIMUM; return 1; } /* Avoid sprintf, as that infringes on the user's name space. Don't have undefined behavior even if the translation produced a string with the wrong number of "%s"s. */ { char *yyp = *yymsg; int yyi = 0; while ((*yyp = *yyformat) != '\0') if (*yyp == '%' && yyformat[1] == 's' && yyi < yycount) { yyp += yytnamerr (yyp, yyarg[yyi++]); yyformat += 2; } else { yyp++; yyformat++; } } return 0; } #endif /* YYERROR_VERBOSE */ /*-----------------------------------------------. | Release the memory associated to this symbol. | `-----------------------------------------------*/ static void yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep, YYLTYPE *yylocationp) { YYUSE (yyvaluep); YYUSE (yylocationp); if (!yymsg) yymsg = "Deleting"; YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp); YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN YYUSE (yytype); YY_IGNORE_MAYBE_UNINITIALIZED_END } /* The lookahead symbol. */ int yychar; /* The semantic value of the lookahead symbol. */ YYSTYPE yylval; /* Location data for the lookahead symbol. */ YYLTYPE yylloc # if defined YYLTYPE_IS_TRIVIAL && YYLTYPE_IS_TRIVIAL = { 1, 1, 1, 1 } # endif ; /* Number of syntax errors so far. */ int yynerrs; /*----------. | yyparse. | `----------*/ int yyparse (void) { int yystate; /* Number of tokens to shift before error messages enabled. */ int yyerrstatus; /* The stacks and their tools: 'yyss': related to states. 'yyvs': related to semantic values. 'yyls': related to locations. Refer to the stacks through separate pointers, to allow yyoverflow to reallocate them elsewhere. */ /* The state stack. */ yytype_int16 yyssa[YYINITDEPTH]; yytype_int16 *yyss; yytype_int16 *yyssp; /* The semantic value stack. */ YYSTYPE yyvsa[YYINITDEPTH]; YYSTYPE *yyvs; YYSTYPE *yyvsp; /* The location stack. */ YYLTYPE yylsa[YYINITDEPTH]; YYLTYPE *yyls; YYLTYPE *yylsp; /* The locations where the error started and ended. */ YYLTYPE yyerror_range[3]; YYSIZE_T yystacksize; int yyn; int yyresult; /* Lookahead token as an internal (translated) token number. */ int yytoken = 0; /* The variables used to return semantic value and location from the action routines. */ YYSTYPE yyval; YYLTYPE yyloc; #if YYERROR_VERBOSE /* Buffer for error messages, and its allocated size. */ char yymsgbuf[128]; char *yymsg = yymsgbuf; YYSIZE_T yymsg_alloc = sizeof yymsgbuf; #endif #define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N), yylsp -= (N)) /* The number of symbols on the RHS of the reduced rule. Keep to zero when no symbol should be popped. */ int yylen = 0; yyssp = yyss = yyssa; yyvsp = yyvs = yyvsa; yylsp = yyls = yylsa; yystacksize = YYINITDEPTH; YYDPRINTF ((stderr, "Starting parse\n")); yystate = 0; yyerrstatus = 0; yynerrs = 0; yychar = YYEMPTY; /* Cause a token to be read. */ yylsp[0] = yylloc; goto yysetstate; /*------------------------------------------------------------. | yynewstate -- Push a new state, which is found in yystate. | `------------------------------------------------------------*/ yynewstate: /* In all cases, when you get here, the value and location stacks have just been pushed. So pushing a state here evens the stacks. */ yyssp++; yysetstate: *yyssp = yystate; if (yyss + yystacksize - 1 <= yyssp) { /* Get the current used size of the three stacks, in elements. */ YYSIZE_T yysize = yyssp - yyss + 1; #ifdef yyoverflow { /* Give user a chance to reallocate the stack. Use copies of these so that the &'s don't force the real ones into memory. */ YYSTYPE *yyvs1 = yyvs; yytype_int16 *yyss1 = yyss; YYLTYPE *yyls1 = yyls; /* Each stack pointer address is followed by the size of the data in use in that stack, in bytes. This used to be a conditional around just the two extra args, but that might be undefined if yyoverflow is a macro. */ yyoverflow (YY_("memory exhausted"), &yyss1, yysize * sizeof (*yyssp), &yyvs1, yysize * sizeof (*yyvsp), &yyls1, yysize * sizeof (*yylsp), &yystacksize); yyls = yyls1; yyss = yyss1; yyvs = yyvs1; } #else /* no yyoverflow */ # ifndef YYSTACK_RELOCATE goto yyexhaustedlab; # else /* Extend the stack our own way. */ if (YYMAXDEPTH <= yystacksize) goto yyexhaustedlab; yystacksize *= 2; if (YYMAXDEPTH < yystacksize) yystacksize = YYMAXDEPTH; { yytype_int16 *yyss1 = yyss; union yyalloc *yyptr = (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize)); if (! yyptr) goto yyexhaustedlab; YYSTACK_RELOCATE (yyss_alloc, yyss); YYSTACK_RELOCATE (yyvs_alloc, yyvs); YYSTACK_RELOCATE (yyls_alloc, yyls); # undef YYSTACK_RELOCATE if (yyss1 != yyssa) YYSTACK_FREE (yyss1); } # endif #endif /* no yyoverflow */ yyssp = yyss + yysize - 1; yyvsp = yyvs + yysize - 1; yylsp = yyls + yysize - 1; YYDPRINTF ((stderr, "Stack size increased to %lu\n", (unsigned long int) yystacksize)); if (yyss + yystacksize - 1 <= yyssp) YYABORT; } YYDPRINTF ((stderr, "Entering state %d\n", yystate)); if (yystate == YYFINAL) YYACCEPT; goto yybackup; /*-----------. | yybackup. | `-----------*/ yybackup: /* Do appropriate processing given the current state. Read a lookahead token if we need one and don't already have one. */ /* First try to decide what to do without reference to lookahead token. */ yyn = yypact[yystate]; if (yypact_value_is_default (yyn)) goto yydefault; /* Not known => get a lookahead token if don't already have one. */ /* YYCHAR is either YYEMPTY or YYEOF or a valid lookahead symbol. */ if (yychar == YYEMPTY) { YYDPRINTF ((stderr, "Reading a token: ")); yychar = yylex (); } if (yychar <= YYEOF) { yychar = yytoken = YYEOF; YYDPRINTF ((stderr, "Now at end of input.\n")); } else { yytoken = YYTRANSLATE (yychar); YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc); } /* If the proper action on seeing token YYTOKEN is to reduce or to detect an error, take that action. */ yyn += yytoken; if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) goto yydefault; yyn = yytable[yyn]; if (yyn <= 0) { if (yytable_value_is_error (yyn)) goto yyerrlab; yyn = -yyn; goto yyreduce; } /* Count tokens shifted since error; after three, turn off error status. */ if (yyerrstatus) yyerrstatus--; /* Shift the lookahead token. */ YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc); /* Discard the shifted token. */ yychar = YYEMPTY; yystate = yyn; YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN *++yyvsp = yylval; YY_IGNORE_MAYBE_UNINITIALIZED_END *++yylsp = yylloc; goto yynewstate; /*-----------------------------------------------------------. | yydefault -- do the default action for the current state. | `-----------------------------------------------------------*/ yydefault: yyn = yydefact[yystate]; if (yyn == 0) goto yyerrlab; goto yyreduce; /*-----------------------------. | yyreduce -- Do a reduction. | `-----------------------------*/ yyreduce: /* yyn is the number of a rule to reduce with. */ yylen = yyr2[yyn]; /* If YYLEN is nonzero, implement the default value of the action: '$$ = $1'. Otherwise, the following line sets YYVAL to garbage. This behavior is undocumented and Bison users should not rely upon it. Assigning to YYVAL unconditionally makes the parser a bit smaller, and it avoids a GCC warning that YYVAL may be used uninitialized. */ yyval = yyvsp[1-yylen]; /* Default location. */ YYLLOC_DEFAULT (yyloc, (yylsp - yylen), yylen); YY_REDUCE_PRINT (yyn); switch (yyn) { case 2: #line 186 "seal.y" /* yacc.c:1646 */ { (yyloc) = (yylsp[0]); ast_root = program((yyvsp[0].decls)); } #line 1697 "seal.tab.c" /* yacc.c:1646 */ break; case 3: #line 191 "seal.y" /* yacc.c:1646 */ { (yyval.decl) = (yyvsp[0].variableDecl); } #line 1705 "seal.tab.c" /* yacc.c:1646 */ break; case 4: #line 194 "seal.y" /* yacc.c:1646 */ { (yyval.decl) = (yyvsp[0].callDecl); } #line 1713 "seal.tab.c" /* yacc.c:1646 */ break; case 5: #line 199 "seal.y" /* yacc.c:1646 */ { (yyval.decls) = single_Decls((yyvsp[0].decl)); } #line 1721 "seal.tab.c" /* yacc.c:1646 */ break; case 6: #line 202 "seal.y" /* yacc.c:1646 */ { (yyval.decls) = append_Decls((yyvsp[-1].decls), single_Decls((yyvsp[0].decl))); } #line 1729 "seal.tab.c" /* yacc.c:1646 */ break; case 7: #line 208 "seal.y" /* yacc.c:1646 */ { (yyval.variableDecl) = variableDecl((yyvsp[-1].variable)); } #line 1737 "seal.tab.c" /* yacc.c:1646 */ break; case 8: #line 213 "seal.y" /* yacc.c:1646 */ { (yyval.variableDecls) = single_VariableDecls((yyvsp[0].variableDecl)); } #line 1745 "seal.tab.c" /* yacc.c:1646 */ break; case 9: #line 216 "seal.y" /* yacc.c:1646 */ { (yyval.variableDecls) = append_VariableDecls((yyvsp[-1].variableDecls), single_VariableDecls((yyvsp[0].variableDecl))); } #line 1753 "seal.tab.c" /* yacc.c:1646 */ break; case 10: #line 221 "seal.y" /* yacc.c:1646 */ { (yyval.variable) = variable((yyvsp[-1].symbol), (yyvsp[0].symbol)); } #line 1761 "seal.tab.c" /* yacc.c:1646 */ break; case 11: #line 225 "seal.y" /* yacc.c:1646 */ { (yyval.variables) = nil_Variables(); } #line 1769 "seal.tab.c" /* yacc.c:1646 */ break; case 12: #line 228 "seal.y" /* yacc.c:1646 */ { (yyval.variables) = single_Variables((yyvsp[0].variable)); } #line 1777 "seal.tab.c" /* yacc.c:1646 */ break; case 13: #line 231 "seal.y" /* yacc.c:1646 */ { (yyval.variables) = append_Variables((yyvsp[-2].variables), single_Variables((yyvsp[0].variable))); } #line 1785 "seal.tab.c" /* yacc.c:1646 */ break; case 14: #line 237 "seal.y" /* yacc.c:1646 */ { (yyval.callDecl) = callDecl((yyvsp[-5].symbol), (yyvsp[-3].variables), (yyvsp[-1].symbol), (yyvsp[0].stmtBlock)); } #line 1793 "seal.tab.c" /* yacc.c:1646 */ break; case 15: #line 242 "seal.y" /* yacc.c:1646 */ { (yyval.stmtBlock) = stmtBlock((yyvsp[-2].variableDecls), (yyvsp[-1].stmts)); } #line 1801 "seal.tab.c" /* yacc.c:1646 */ break; case 16: #line 245 "seal.y" /* yacc.c:1646 */ { (yyval.stmtBlock) = stmtBlock(nil_VariableDecls(), (yyvsp[-1].stmts)); } #line 1809 "seal.tab.c" /* yacc.c:1646 */ break; case 17: #line 248 "seal.y" /* yacc.c:1646 */ { (yyval.stmtBlock) = stmtBlock((yyvsp[-1].variableDecls), nil_Stmts()); } #line 1817 "seal.tab.c" /* yacc.c:1646 */ break; case 18: #line 251 "seal.y" /* yacc.c:1646 */ { (yyval.stmtBlock) = stmtBlock(nil_VariableDecls(), nil_Stmts()); } #line 1825 "seal.tab.c" /* yacc.c:1646 */ break; case 19: #line 256 "seal.y" /* yacc.c:1646 */ { (yyval.stmt) = no_expr(); } #line 1833 "seal.tab.c" /* yacc.c:1646 */ break; case 20: #line 259 "seal.y" /* yacc.c:1646 */ { (yyval.stmt) = (yyvsp[-1].expr); } #line 1841 "seal.tab.c" /* yacc.c:1646 */ break; case 21: #line 262 "seal.y" /* yacc.c:1646 */ { (yyval.stmt) = (yyvsp[0].ifStmt); } #line 1849 "seal.tab.c" /* yacc.c:1646 */ break; case 22: #line 265 "seal.y" /* yacc.c:1646 */ { (yyval.stmt) = (yyvsp[0].whileStmt); } #line 1857 "seal.tab.c" /* yacc.c:1646 */ break; case 23: #line 268 "seal.y" /* yacc.c:1646 */ { (yyval.stmt) = (yyvsp[0].forStmt); } #line 1865 "seal.tab.c" /* yacc.c:1646 */ break; case 24: #line 271 "seal.y" /* yacc.c:1646 */ { (yyval.stmt) = (yyvsp[0].breakStmt); } #line 1873 "seal.tab.c" /* yacc.c:1646 */ break; case 25: #line 274 "seal.y" /* yacc.c:1646 */ { (yyval.stmt) = (yyvsp[0].continueStmt); } #line 1881 "seal.tab.c" /* yacc.c:1646 */ break; case 26: #line 277 "seal.y" /* yacc.c:1646 */ { (yyval.stmt) = (yyvsp[0].returnStmt); } #line 1889 "seal.tab.c" /* yacc.c:1646 */ break; case 27: #line 280 "seal.y" /* yacc.c:1646 */ { (yyval.stmt) = (yyvsp[0].stmtBlock); } #line 1897 "seal.tab.c" /* yacc.c:1646 */ break; case 28: #line 285 "seal.y" /* yacc.c:1646 */ { (yyval.stmts) = single_Stmts((yyvsp[0].stmt)); } #line 1905 "seal.tab.c" /* yacc.c:1646 */ break; case 29: #line 288 "seal.y" /* yacc.c:1646 */ { (yyval.stmts) = append_Stmts((yyvsp[-1].stmts), single_Stmts((yyvsp[0].stmt))); } #line 1913 "seal.tab.c" /* yacc.c:1646 */ break; case 30: #line 293 "seal.y" /* yacc.c:1646 */ { (yyval.ifStmt) = ifstmt((yyvsp[-1].expr), (yyvsp[0].stmtBlock), stmtBlock(nil_VariableDecls(), nil_Stmts())); } #line 1921 "seal.tab.c" /* yacc.c:1646 */ break; case 31: #line 296 "seal.y" /* yacc.c:1646 */ { (yyval.ifStmt) = ifstmt((yyvsp[-3].expr), (yyvsp[-2].stmtBlock), (yyvsp[0].stmtBlock)); } #line 1929 "seal.tab.c" /* yacc.c:1646 */ break; case 32: #line 301 "seal.y" /* yacc.c:1646 */ { (yyval.whileStmt) = whilestmt((yyvsp[-1].expr), (yyvsp[0].stmtBlock)); } #line 1937 "seal.tab.c" /* yacc.c:1646 */ break; case 33: #line 306 "seal.y" /* yacc.c:1646 */ { (yyval.forStmt) = forstmt((yyvsp[-5].expr), (yyvsp[-3].expr), (yyvsp[-1].expr), (yyvsp[0].stmtBlock)); } #line 1945 "seal.tab.c" /* yacc.c:1646 */ break; case 34: #line 309 "seal.y" /* yacc.c:1646 */ { (yyval.forStmt) = forstmt(no_expr(), (yyvsp[-3].expr), (yyvsp[-1].expr), (yyvsp[0].stmtBlock)); } #line 1953 "seal.tab.c" /* yacc.c:1646 */ break; case 35: #line 312 "seal.y" /* yacc.c:1646 */ { (yyval.forStmt) = forstmt((yyvsp[-4].expr), no_expr(), (yyvsp[-1].expr), (yyvsp[0].stmtBlock)); } #line 1961 "seal.tab.c" /* yacc.c:1646 */ break; case 36: #line 315 "seal.y" /* yacc.c:1646 */ { (yyval.forStmt) = forstmt((yyvsp[-4].expr), (yyvsp[-2].expr), no_expr(), (yyvsp[0].stmtBlock)); } #line 1969 "seal.tab.c" /* yacc.c:1646 */ break; case 37: #line 318 "seal.y" /* yacc.c:1646 */ { (yyval.forStmt) = forstmt(no_expr(), no_expr(), (yyvsp[-1].expr), (yyvsp[0].stmtBlock)); } #line 1977 "seal.tab.c" /* yacc.c:1646 */ break; case 38: #line 321 "seal.y" /* yacc.c:1646 */ { (yyval.forStmt) = forstmt(no_expr(), (yyvsp[-2].expr), no_expr(), (yyvsp[0].stmtBlock)); } #line 1985 "seal.tab.c" /* yacc.c:1646 */ break; case 39: #line 324 "seal.y" /* yacc.c:1646 */ { (yyval.forStmt) = forstmt((yyvsp[-3].expr), no_expr(), no_expr(), (yyvsp[0].stmtBlock)); } #line 1993 "seal.tab.c" /* yacc.c:1646 */ break; case 40: #line 327 "seal.y" /* yacc.c:1646 */ { (yyval.forStmt) = forstmt(no_expr(), no_expr(), no_expr(), (yyvsp[0].stmtBlock)); } #line 2001 "seal.tab.c" /* yacc.c:1646 */ break; case 41: #line 332 "seal.y" /* yacc.c:1646 */ { (yyval.breakStmt) = breakstmt(); } #line 2009 "seal.tab.c" /* yacc.c:1646 */ break; case 42: #line 337 "seal.y" /* yacc.c:1646 */ { (yyval.continueStmt) = continuestmt(); } #line 2017 "seal.tab.c" /* yacc.c:1646 */ break; case 43: #line 342 "seal.y" /* yacc.c:1646 */ { (yyval.returnStmt) = returnstmt((yyvsp[-1].expr)); } #line 2025 "seal.tab.c" /* yacc.c:1646 */ break; case 44: #line 345 "seal.y" /* yacc.c:1646 */ { (yyval.returnStmt) = returnstmt(no_expr()); } #line 2033 "seal.tab.c" /* yacc.c:1646 */ break; case 45: #line 350 "seal.y" /* yacc.c:1646 */ { (yyval.expr) = assign((yyvsp[-2].symbol), (yyvsp[0].expr)); } #line 2041 "seal.tab.c" /* yacc.c:1646 */ break; case 46: #line 353 "seal.y" /* yacc.c:1646 */ { (yyval.expr) = const_int((yyvsp[0].symbol)); } #line 2049 "seal.tab.c" /* yacc.c:1646 */ break; case 47: #line 356 "seal.y" /* yacc.c:1646 */ { (yyval.expr) = const_string((yyvsp[0].symbol)); } #line 2057 "seal.tab.c" /* yacc.c:1646 */ break; case 48: #line 359 "seal.y" /* yacc.c:1646 */ { (yyval.expr) = const_float((yyvsp[0].symbol)); } #line 2065 "seal.tab.c" /* yacc.c:1646 */ break; case 49: #line 362 "seal.y" /* yacc.c:1646 */ { (yyval.expr) = const_bool((yyvsp[0].boolean)); } #line 2073 "seal.tab.c" /* yacc.c:1646 */ break; case 50: #line 365 "seal.y" /* yacc.c:1646 */ { (yyval.expr) = object((yyvsp[0].symbol)); } #line 2081 "seal.tab.c" /* yacc.c:1646 */ break; case 51: #line 368 "seal.y" /* yacc.c:1646 */ { (yyval.expr) = (yyvsp[0].call); } #line 2089 "seal.tab.c" /* yacc.c:1646 */ break; case 52: #line 371 "seal.y" /* yacc.c:1646 */ { (yyval.expr) = (yyvsp[-1].expr); } #line 2097 "seal.tab.c" /* yacc.c:1646 */ break; case 53: #line 374 "seal.y" /* yacc.c:1646 */ { (yyval.expr) = add((yyvsp[-2].expr), (yyvsp[0].expr)); } #line 2105 "seal.tab.c" /* yacc.c:1646 */ break; case 54: #line 377 "seal.y" /* yacc.c:1646 */ { (yyval.expr) = minus((yyvsp[-2].expr), (yyvsp[0].expr)); } #line 2113 "seal.tab.c" /* yacc.c:1646 */ break; case 55: #line 380 "seal.y" /* yacc.c:1646 */ { (yyval.expr) = multi((yyvsp[-2].expr), (yyvsp[0].expr)); } #line 2121 "seal.tab.c" /* yacc.c:1646 */ break; case 56: #line 383 "seal.y" /* yacc.c:1646 */ { (yyval.expr) = divide((yyvsp[-2].expr), (yyvsp[0].expr)); } #line 2129 "seal.tab.c" /* yacc.c:1646 */ break; case 57: #line 386 "seal.y" /* yacc.c:1646 */ { (yyval.expr) = mod((yyvsp[-2].expr), (yyvsp[0].expr)); } #line 2137 "seal.tab.c" /* yacc.c:1646 */ break; case 58: #line 389 "seal.y" /* yacc.c:1646 */ { (yyval.expr) = neg((yyvsp[0].expr)); } #line 2145 "seal.tab.c" /* yacc.c:1646 */ break; case 59: #line 392 "seal.y" /* yacc.c:1646 */ { (yyval.expr) = lt((yyvsp[-2].expr), (yyvsp[0].expr)); } #line 2153 "seal.tab.c" /* yacc.c:1646 */ break; case 60: #line 395 "seal.y" /* yacc.c:1646 */ { (yyval.expr) = le((yyvsp[-2].expr), (yyvsp[0].expr)); } #line 2161 "seal.tab.c" /* yacc.c:1646 */ break; case 61: #line 398 "seal.y" /* yacc.c:1646 */ { (yyval.expr) = equ((yyvsp[-2].expr), (yyvsp[0].expr)); } #line 2169 "seal.tab.c" /* yacc.c:1646 */ break; case 62: #line 401 "seal.y" /* yacc.c:1646 */ { (yyval.expr) = neq((yyvsp[-2].expr), (yyvsp[0].expr)); } #line 2177 "seal.tab.c" /* yacc.c:1646 */ break; case 63: #line 404 "seal.y" /* yacc.c:1646 */ { (yyval.expr) = ge((yyvsp[-2].expr), (yyvsp[0].expr)); } #line 2185 "seal.tab.c" /* yacc.c:1646 */ break; case 64: #line 407 "seal.y" /* yacc.c:1646 */ { (yyval.expr) = gt((yyvsp[-2].expr), (yyvsp[0].expr)); } #line 2193 "seal.tab.c" /* yacc.c:1646 */ break; case 65: #line 410 "seal.y" /* yacc.c:1646 */ { (yyval.expr) = and_((yyvsp[-2].expr), (yyvsp[0].expr)); } #line 2201 "seal.tab.c" /* yacc.c:1646 */ break; case 66: #line 413 "seal.y" /* yacc.c:1646 */ { (yyval.expr) = or_((yyvsp[-2].expr), (yyvsp[0].expr)); } #line 2209 "seal.tab.c" /* yacc.c:1646 */ break; case 67: #line 416 "seal.y" /* yacc.c:1646 */ { (yyval.expr) = not_((yyvsp[0].expr)); } #line 2217 "seal.tab.c" /* yacc.c:1646 */ break; case 68: #line 419 "seal.y" /* yacc.c:1646 */ { (yyval.expr) = bitnot((yyvsp[0].expr)); } #line 2225 "seal.tab.c" /* yacc.c:1646 */ break; case 69: #line 422 "seal.y" /* yacc.c:1646 */ { (yyval.expr) = bitand_((yyvsp[-2].expr), (yyvsp[0].expr)); } #line 2233 "seal.tab.c" /* yacc.c:1646 */ break; case 70: #line 425 "seal.y" /* yacc.c:1646 */ { (yyval.expr) = bitor_((yyvsp[-2].expr), (yyvsp[0].expr)); } #line 2241 "seal.tab.c" /* yacc.c:1646 */ break; case 71: #line 428 "seal.y" /* yacc.c:1646 */ { (yyval.expr) = xor_((yyvsp[-2].expr), (yyvsp[0].expr)); } #line 2249 "seal.tab.c" /* yacc.c:1646 */ break; case 72: #line 433 "seal.y" /* yacc.c:1646 */ { (yyval.call) = call((yyvsp[-3].symbol), (yyvsp[-1].actuals)); } #line 2257 "seal.tab.c" /* yacc.c:1646 */ break; case 73: #line 438 "seal.y" /* yacc.c:1646 */ { (yyval.actual) = actual((yyvsp[0].expr)); } #line 2265 "seal.tab.c" /* yacc.c:1646 */ break; case 74: #line 442 "seal.y" /* yacc.c:1646 */ { (yyval.actuals) = nil_Actuals(); } #line 2273 "seal.tab.c" /* yacc.c:1646 */ break; case 75: #line 445 "seal.y" /* yacc.c:1646 */ { (yyval.actuals) = single_Actuals((yyvsp[0].actual)); } #line 2281 "seal.tab.c" /* yacc.c:1646 */ break; case 76: #line 448 "seal.y" /* yacc.c:1646 */ { (yyval.actuals) = append_Actuals((yyvsp[-2].actuals), single_Actuals((yyvsp[0].actual))); } #line 2289 "seal.tab.c" /* yacc.c:1646 */ break; #line 2293 "seal.tab.c" /* yacc.c:1646 */ default: break; } /* User semantic actions sometimes alter yychar, and that requires that yytoken be updated with the new translation. We take the approach of translating immediately before every use of yytoken. One alternative is translating here after every semantic action, but that translation would be missed if the semantic action invokes YYABORT, YYACCEPT, or YYERROR immediately after altering yychar or if it invokes YYBACKUP. In the case of YYABORT or YYACCEPT, an incorrect destructor might then be invoked immediately. In the case of YYERROR or YYBACKUP, subsequent parser actions might lead to an incorrect destructor call or verbose syntax error message before the lookahead is translated. */ YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc); YYPOPSTACK (yylen); yylen = 0; YY_STACK_PRINT (yyss, yyssp); *++yyvsp = yyval; *++yylsp = yyloc; /* Now 'shift' the result of the reduction. Determine what state that goes to, based on the state we popped back to and the rule number reduced by. */ yyn = yyr1[yyn]; yystate = yypgoto[yyn - YYNTOKENS] + *yyssp; if (0 <= yystate && yystate <= YYLAST && yycheck[yystate] == *yyssp) yystate = yytable[yystate]; else yystate = yydefgoto[yyn - YYNTOKENS]; goto yynewstate; /*--------------------------------------. | yyerrlab -- here on detecting error. | `--------------------------------------*/ yyerrlab: /* Make sure we have latest lookahead translation. See comments at user semantic actions for why this is necessary. */ yytoken = yychar == YYEMPTY ? YYEMPTY : YYTRANSLATE (yychar); /* If not already recovering from an error, report this error. */ if (!yyerrstatus) { ++yynerrs; #if ! YYERROR_VERBOSE yyerror (YY_("syntax error")); #else # define YYSYNTAX_ERROR yysyntax_error (&yymsg_alloc, &yymsg, \ yyssp, yytoken) { char const *yymsgp = YY_("syntax error"); int yysyntax_error_status; yysyntax_error_status = YYSYNTAX_ERROR; if (yysyntax_error_status == 0) yymsgp = yymsg; else if (yysyntax_error_status == 1) { if (yymsg != yymsgbuf) YYSTACK_FREE (yymsg); yymsg = (char *) YYSTACK_ALLOC (yymsg_alloc); if (!yymsg) { yymsg = yymsgbuf; yymsg_alloc = sizeof yymsgbuf; yysyntax_error_status = 2; } else { yysyntax_error_status = YYSYNTAX_ERROR; yymsgp = yymsg; } } yyerror (yymsgp); if (yysyntax_error_status == 2) goto yyexhaustedlab; } # undef YYSYNTAX_ERROR #endif } yyerror_range[1] = yylloc; if (yyerrstatus == 3) { /* If just tried and failed to reuse lookahead token after an error, discard it. */ if (yychar <= YYEOF) { /* Return failure if at end of input. */ if (yychar == YYEOF) YYABORT; } else { yydestruct ("Error: discarding", yytoken, &yylval, &yylloc); yychar = YYEMPTY; } } /* Else will try to reuse lookahead token after shifting the error token. */ goto yyerrlab1; /*---------------------------------------------------. | yyerrorlab -- error raised explicitly by YYERROR. | `---------------------------------------------------*/ yyerrorlab: /* Pacify compilers like GCC when the user code never invokes YYERROR and the label yyerrorlab therefore never appears in user code. */ if (/*CONSTCOND*/ 0) goto yyerrorlab; yyerror_range[1] = yylsp[1-yylen]; /* Do not reclaim the symbols of the rule whose action triggered this YYERROR. */ YYPOPSTACK (yylen); yylen = 0; YY_STACK_PRINT (yyss, yyssp); yystate = *yyssp; goto yyerrlab1; /*-------------------------------------------------------------. | yyerrlab1 -- common code for both syntax error and YYERROR. | `-------------------------------------------------------------*/ yyerrlab1: yyerrstatus = 3; /* Each real token shifted decrements this. */ for (;;) { yyn = yypact[yystate]; if (!yypact_value_is_default (yyn)) { yyn += YYTERROR; if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR) { yyn = yytable[yyn]; if (0 < yyn) break; } } /* Pop the current state because it cannot handle the error token. */ if (yyssp == yyss) YYABORT; yyerror_range[1] = *yylsp; yydestruct ("Error: popping", yystos[yystate], yyvsp, yylsp); YYPOPSTACK (1); yystate = *yyssp; YY_STACK_PRINT (yyss, yyssp); } YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN *++yyvsp = yylval; YY_IGNORE_MAYBE_UNINITIALIZED_END yyerror_range[2] = yylloc; /* Using YYLLOC is tempting, but would change the location of the lookahead. YYLOC is available though. */ YYLLOC_DEFAULT (yyloc, yyerror_range, 2); *++yylsp = yyloc; /* Shift the error token. */ YY_SYMBOL_PRINT ("Shifting", yystos[yyn], yyvsp, yylsp); yystate = yyn; goto yynewstate; /*-------------------------------------. | yyacceptlab -- YYACCEPT comes here. | `-------------------------------------*/ yyacceptlab: yyresult = 0; goto yyreturn; /*-----------------------------------. | yyabortlab -- YYABORT comes here. | `-----------------------------------*/ yyabortlab: yyresult = 1; goto yyreturn; #if !defined yyoverflow || YYERROR_VERBOSE /*-------------------------------------------------. | yyexhaustedlab -- memory exhaustion comes here. | `-------------------------------------------------*/ yyexhaustedlab: yyerror (YY_("memory exhausted")); yyresult = 2; /* Fall through. */ #endif yyreturn: if (yychar != YYEMPTY) { /* Make sure we have latest lookahead translation. See comments at user semantic actions for why this is necessary. */ yytoken = YYTRANSLATE (yychar); yydestruct ("Cleanup: discarding lookahead", yytoken, &yylval, &yylloc); } /* Do not reclaim the symbols of the rule whose action triggered this YYABORT or YYACCEPT. */ YYPOPSTACK (yylen); YY_STACK_PRINT (yyss, yyssp); while (yyssp != yyss) { yydestruct ("Cleanup: popping", yystos[*yyssp], yyvsp, yylsp); YYPOPSTACK (1); } #ifndef yyoverflow if (yyss != yyssa) YYSTACK_FREE (yyss); #endif #if YYERROR_VERBOSE if (yymsg != yymsgbuf) YYSTACK_FREE (yymsg); #endif return yyresult; } #line 454 "seal.y" /* yacc.c:1906 */ /* This function is called automatically when Bison detects a parse error. */ void yyerror(char *s) { extern int curr_lineno; cerr << "\"" << curr_filename << "\", line " << curr_lineno << ": " \ << s << " at or near "; print_seal_token(yychar); cerr << endl; omerrs++; if(omerrs>50) {fprintf(stdout, "More than 50 errors\n"); exit(1);} }
32.281164
125
0.496766
[ "object" ]
7261d99a11c1bb95391c4a0fb9d5efa7d65cb2cb
6,454
cpp
C++
shading/Texture.cpp
jaredhoberock/gotham
e3551cc355646530574d086d7cc2b82e41e8f798
[ "Apache-2.0" ]
6
2015-12-29T07:21:01.000Z
2020-05-29T10:47:38.000Z
shading/Texture.cpp
jaredhoberock/gotham
e3551cc355646530574d086d7cc2b82e41e8f798
[ "Apache-2.0" ]
null
null
null
shading/Texture.cpp
jaredhoberock/gotham
e3551cc355646530574d086d7cc2b82e41e8f798
[ "Apache-2.0" ]
null
null
null
/*! \file Texture.cpp * \author Jared Hoberock * \brief Implementation of Texture class. */ #ifdef WIN32 #define OPENEXR_DLL #define NOMINMAX #endif // WIN32 #include "Texture.h" #include <numeric> #include <halfLimits.h> #include <ImfRgbaFile.h> #include <ImfRgba.h> #include <ImfStringAttribute.h> #include <ImfHeader.h> #include <ImfArray.h> #undef BOOST_NO_EXCEPTIONS // boost/gil seems to have forgotten to #include <typeinfo>, so do it for them // XXX remove this when they get their act together #include <typeinfo> #include <boost/gil/image.hpp> #include <boost/gil/typedefs.hpp> #include <boost/gil/extension/io/jpeg_io.hpp> #include <boost/gil/extension/io/jpeg_dynamic_io.hpp> #include <boost/gil/extension/io/png_io.hpp> #include <boost/gil/extension/io/png_dynamic_io.hpp> #include <boost/mpl/vector.hpp> Texture ::Texture(void) :Parent(1,1) { Parent::raster(0,0) = Spectrum::white(); } // end Texture::Texture() Texture ::Texture(const size_t w, const size_t h, const Spectrum *pixels) :Parent(w,h) { const Spectrum *src = pixels; for(iterator p = begin(); p != end(); ++p, ++src) { *p = *src; } // end for i } // end Texture::Texture() // create a gamma-inversion lookup table for // gamma = 2.2 and unsigned chars template<typename T> inline static float gammaInversion(const T x) { static std::vector<float> lut(std::numeric_limits<T>::max() + 1); static bool firstTime = true; if(firstTime) { for(size_t i = 0; i != std::numeric_limits<T>::max() + 1; ++i) { // convert uchar to [0,1] float f = static_cast<float>(i) / (std::numeric_limits<T>::max() - std::numeric_limits<T>::min()); // gamma correction: // gammaCorrect = rgb^(1.0/gamma) // inversion: // rgb = gammaCorrect^(gamma) // assume gamma = 2.2 // invert x lut[i] = powf(f, 2.2f); } // end for i firstTime = false; } // end if return lut[x]; } // end gammaInversion() template<typename View> static void readGrayImg(const View &v, Array2<Spectrum> &tex) { using namespace boost::gil; // now resize ourself tex.resize(v.width(),v.height()); float factor = 1.0f / channel_traits<typename channel_type<View>::type>::max_value(); // convert unsigned characters to gamma-corrected float in [0,1] Spectrum *dst = &tex.raster(0,0); for(size_t y = 0; y < v.height(); ++y) { // flip the image because gil images are stored ass-backwards size_t x = 0; for(typename View::x_iterator src = v.row_begin(v.height()-1-y); x < v.width(); ++src, ++x, ++dst) { //(*dst).x = factor * static_cast<float>(*src); //(*dst).y = factor * static_cast<float>(*src); //(*dst).z = factor * static_cast<float>(*src); (*dst).x = gammaInversion(*src); (*dst).y = gammaInversion(*src); (*dst).z = gammaInversion(*src); } // end for src, x } // end for y } // end readImg() template<typename View> static void readRgbImg(const View &v, Array2<Spectrum> &tex) { using namespace boost::gil; // now resize ourself tex.resize(v.width(),v.height()); Spectrum *dst = &tex.raster(0,0); for(size_t y = 0; y < v.height(); ++y) { // flip the image because gil images are stored ass-backwards typename View::x_iterator src = v.row_begin(v.height()-1-y); size_t x = 0; for(typename View::x_iterator src = v.row_begin(v.height()-1-y); x < v.width(); ++src, ++x, ++dst) { (*dst).x = gammaInversion((*src)[0]); (*dst).y = gammaInversion((*src)[1]); (*dst).z = gammaInversion((*src)[2]); } // end for src, x } // end for y } // end readImg() static void readJPG(const char *filename, Array2<Spectrum> &tex) { // try different pixel formats //std::cerr << "readJPG(): reading file." << std::endl; try { boost::gil::rgb8_image_t img; boost::gil::jpeg_read_image(filename, img); //std::cerr << "readJPG(): done." << std::endl; readRgbImg(const_view(img), tex); } // end try catch(...) { boost::gil::gray8_image_t img; boost::gil::jpeg_read_image(filename, img); //std::cerr << "readJPG(): done." << std::endl; readGrayImg(const_view(img), tex); } // end catch } // end readJPG() static void readPNG(const char *filename, Array2<Spectrum> &tex) { boost::gil::rgba8_image_t img; boost::gil::png_read_image(filename, img); readRgbImg(const_view(img), tex); } // end readJPG() static void readEXR(const char *filename, Array2<Spectrum> &image) { Imf::RgbaInputFile file(filename); Imath::Box2i dw = file.dataWindow(); unsigned int w = dw.max.x - dw.min.x + 1; unsigned int h = dw.max.y - dw.min.y + 1; Imf::Array2D<Imf::Rgba> pixels; pixels.resizeErase(h, w); file.setFrameBuffer(&pixels[0][0] - dw.min.x - dw.min.y * w, 1, w); file.readPixels(dw.min.y, dw.max.y); // now resize ourself image.resize(w,h); for(size_t y = 0; y < w; ++y) { for(size_t x = 0; x < h; ++x) { // flip the image because EXR is stored ass-backwards image.raster(x,y).x = pixels[h-1-y][x].r; image.raster(x,y).y = pixels[h-1-y][x].g; image.raster(x,y).z = pixels[h-1-y][x].b; } // end for } // end for } // end readEXR() void Texture ::load(const char *filename) { try { readEXR(filename, *this); } // end try catch(...) { try { readPNG(filename, *this); } // end try catch(std::ios_base::failure e) { // XXX for some reason, this isn't throwing an exception // it just exit()s readJPG(filename, *this); } // end catch } // end catch } // end Texture::load() Texture ::Texture(const char *filename) { load(filename); } // end Texture::Texture() const Spectrum &Texture ::texRect(const size_t x, const size_t y) const { // clamp to dim - 1 return Parent::raster(std::min<size_t>(x, mDimensions[0]-1), std::min<size_t>(y, mDimensions[1]-1)); } // end Texture::texRect() const Spectrum &Texture ::tex2D(const float u, const float v) const { int x = static_cast<int>(u * getDimensions()[0]); int y = static_cast<int>(v * getDimensions()[1]); // clamp to 0 return texRect(std::max<int>(0,x), std::max<int>(0,y)); } // end Texture::tex2D()
25.409449
104
0.599783
[ "vector" ]
72685880c102efa0f545559fd2bcdd9999fbf09c
8,587
cpp
C++
src/Evaluator.cpp
bluezephyr/interpreter
874b4d7f9b6cc690fd39d3111ae57e4ad2452e96
[ "MIT" ]
2
2020-03-30T08:33:39.000Z
2021-05-25T12:15:23.000Z
src/Evaluator.cpp
bluezephyr/interpreter
874b4d7f9b6cc690fd39d3111ae57e4ad2452e96
[ "MIT" ]
null
null
null
src/Evaluator.cpp
bluezephyr/interpreter
874b4d7f9b6cc690fd39d3111ae57e4ad2452e96
[ "MIT" ]
null
null
null
/* * Copyright (c) 2020 Blue Zephyr * * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file for details. * */ #include "Ast.h" #include "ControlToken.h" #include "Evaluator.h" Evaluator::Evaluator() : goingUp(false), breakBlock(false) {} std::shared_ptr<Object> Evaluator::eval(const std::shared_ptr<Node>& startNode) { visitStack.push(startNode); // Visit all nodes in the visitList - nodes are added and removed dynamically while (!visitStack.empty()) { std::shared_ptr<Node> node = visitStack.top(); visitStack.pop(); node->accept(*this); } auto result = evalStack.top(); evalStack.pop(); return result; } void Evaluator::visitIdentifier(Identifier &identifier) { } void Evaluator::visitInteger(Integer &integer) { if(breakBlock) { return; } evalStack.push(std::make_shared<IntegerObject>(integer.value)); } void Evaluator::visitBoolean(Boolean &boolean) { if(breakBlock) { return; } evalStack.push(std::make_shared<BooleanObject>(boolean.value)); } void Evaluator::visitFunction(Function &function) { } void Evaluator::visitCallExpression(CallExpression &expression) { } void Evaluator::visitPrefixExpression(PrefixExpression &expression) { if(breakBlock) { return; } if(goingUp) { goingUp = false; auto rightEvaluated = evalStack.top(); evalStack.pop(); if (expression.token->type == Token::MINUS) { evalStack.push(evalMinusPrefixExpression(rightEvaluated)); } else if(expression.token->type == Token::BANG) { evalStack.push(evalBangPrefixExpression(rightEvaluated)); } else { // Error - unknown operator } } else { visitStack.push(std::make_shared<PrefixExpression>(expression)); visitStack.push(std::make_shared<ControlToken>("")); visitStack.push(expression.right); } } void Evaluator::visitInfixExpression(InfixExpression &expression) { if(breakBlock) { return; } if(goingUp) { goingUp = false; auto rightEvaluated = evalStack.top(); evalStack.pop(); auto leftEvaluated = evalStack.top(); evalStack.pop(); if ((leftEvaluated->getType() == Object::Type::INTEGER) && (rightEvaluated->getType() == Object::Type::INTEGER)) { evalStack.push(evalIntegerInfixExpression(expression.token->type, dynamic_cast<IntegerObject *>(leftEvaluated.get()), dynamic_cast<IntegerObject *>(rightEvaluated.get()))); } else if ((leftEvaluated->getType() == Object::Type::BOOLEAN) && (rightEvaluated->getType() == Object::Type::BOOLEAN)) { evalStack.push(evalBooleanInfixExpression(expression.token->type, dynamic_cast<BooleanObject *>(leftEvaluated.get()), dynamic_cast<BooleanObject *>(rightEvaluated.get()))); } else { evalStack.push(std::make_shared<NullObject>()); } } else { visitStack.push(std::make_shared<InfixExpression>(expression)); visitStack.push(std::make_shared<ControlToken>("")); visitStack.push(expression.right); visitStack.push(expression.left); } } void Evaluator::visitIfExpression(IfExpression &expression) { if(breakBlock) { return; } if(goingUp) { goingUp = false; auto result = evalStack.top(); evalStack.pop(); if (isTruthy(result)) { visitStack.push(expression.consequence); } else { if (expression.alternative != nullptr) { visitStack.push(expression.alternative); } else { evalStack.push(std::make_shared<NullObject>()); } } } else { visitStack.push(std::make_shared<IfExpression>(expression)); visitStack.push(std::make_shared<ControlToken>("")); visitStack.push(expression.condition); } } void Evaluator::visitLetStatement(LetStatement &statement) { } void Evaluator::visitReturnStatement(ReturnStatement &statement) { if(goingUp) { goingUp = false; breakBlock = true; } else { visitStack.push(std::make_shared<ReturnStatement>(statement)); visitStack.push(std::make_shared<ControlToken>("")); visitStack.push(statement.expression); } } void Evaluator::visitExpressionStatement(ExpressionStatement &statement) { if(breakBlock) { return; } visitStack.push(statement.expression); } void Evaluator::visitBlockStatement(BlockStatement &statement) { if(breakBlock) { return; } if(goingUp) { goingUp = false; } else { addStatements(statement.statements); } } void Evaluator::visitProgram(Program &program) { addStatements(program.statements); } void Evaluator::visitControlToken(ControlToken &controlToken) { goingUp = true; } void Evaluator::addStatements(std::vector<std::shared_ptr<Statement>> statements) { // Push all statements to be visited in the reverse order for(auto statement = statements.rbegin(); statement != statements.rend(); statement++) { visitStack.push(*statement); } } std::shared_ptr<Object> Evaluator::evalMinusPrefixExpression(const std::shared_ptr<Object>& right) { if(right->getType() == Object::Type::INTEGER) { return std::make_shared<IntegerObject>(-dynamic_cast<IntegerObject *>(right.get())->getValue()); } return std::make_shared<NullObject>(); } std::shared_ptr<Object> Evaluator::evalBangPrefixExpression(const std::shared_ptr<Object>& right) { if (right->getType() == Object::Type::BOOLEAN) { return std::make_shared<BooleanObject>(!dynamic_cast<BooleanObject *>(right.get())->getValue()); } else if (right->getType() == Object::Type::INTEGER) { return std::make_shared<BooleanObject>(false); } else if (right->getType() == Object::Type::NULLOBJECT) { return std::make_shared<BooleanObject>(true); } else { return std::make_shared<NullObject>(); } } std::shared_ptr<Object> Evaluator::evalIntegerInfixExpression(Token::TokenType op, IntegerObject *left, IntegerObject *right) { if((left != nullptr) && (right != nullptr)) { auto leftValue = left->getValue(); auto rightValue = right->getValue(); switch (op) { case Token::PLUS: return std::make_shared<IntegerObject>(leftValue + rightValue); case Token::MINUS: return std::make_shared<IntegerObject>(leftValue - rightValue); case Token::ASTERISK: return std::make_shared<IntegerObject>(leftValue * rightValue); case Token::SLASH: return std::make_shared<IntegerObject>(leftValue / rightValue); case Token::LT: return std::make_shared<BooleanObject>(leftValue < rightValue); case Token::GT: return std::make_shared<BooleanObject>(leftValue > rightValue); case Token::EQ: return std::make_shared<BooleanObject>(leftValue == rightValue); case Token::NEQ: return std::make_shared<BooleanObject>(leftValue != rightValue); default: break; } } return std::make_shared<NullObject>(); } std::shared_ptr<Object> Evaluator::evalBooleanInfixExpression(Token::TokenType op, BooleanObject *left, BooleanObject *right) { if((left != nullptr) && (right != nullptr)) { auto leftValue = left->getValue(); auto rightValue = right->getValue(); switch (op) { case Token::EQ: return std::make_shared<BooleanObject>(leftValue == rightValue); case Token::NEQ: return std::make_shared<BooleanObject>(leftValue != rightValue); default: break; } } return std::make_shared<NullObject>(); } bool Evaluator::isTruthy(const std::shared_ptr<Object>& object) { switch (object->getType()) { case Object::BOOLEAN: return dynamic_cast<BooleanObject *>(object.get())->getValue(); case Object::NULLOBJECT: return false; default: return true; } }
27.088328
104
0.613253
[ "object", "vector" ]
726ede81e24fd67e89d9b84bf2da8dc21550ba92
30,310
cpp
C++
PageFlipLib/src/main/cpp/PageFlipJNI.cpp
eschao/android-PageFlip-JNI
52451dc52d45ff54fbd29b469ad1dbc310506385
[ "Apache-2.0" ]
16
2017-03-03T09:07:49.000Z
2020-11-17T06:38:10.000Z
PageFlipLib/src/main/cpp/PageFlipJNI.cpp
eschao/android-PageFlip-JNI
52451dc52d45ff54fbd29b469ad1dbc310506385
[ "Apache-2.0" ]
2
2017-01-06T02:12:33.000Z
2020-09-12T15:38:19.000Z
PageFlipLib/src/main/cpp/PageFlipJNI.cpp
eschao/android-PageFlip-JNI
52451dc52d45ff54fbd29b469ad1dbc310506385
[ "Apache-2.0" ]
4
2017-12-06T06:27:16.000Z
2019-11-22T13:52:04.000Z
/* * Copyright (C) 2016 eschao <esc.chao@gmail.com> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * 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 <android/log.h> #include <android/bitmap.h> #include "PageFlip.h" #include "PageFlipJNI.h" using namespace eschao; static const char* TAG = "PageFlipJNI"; static PageFlip *gPageFlip = NULL; static const char *gClassName = "com/eschao/android/widget/jni/pageflip/PageFlipLib"; static JNINativeMethod gMethodsTable[] = { { "getError", "()I", (void *)JNI_GetError }, { "init", "()Z", (void *)JNI_InitLib }, { "release", "()Z", (void *)JNI_ReleaseLib }, { "enableAutoPage", "(Z)I", (void *)JNI_EnableAutoPage }, { "isAutoPageEnabled", "()Z", (void *)JNI_IsAutoPageEnabled }, { "enableClickToFlip", "(Z)I", (void *)JNI_EnableClickToFlip }, { "setWidthRatioOfClickToFlip", "(F)I", (void *)JNI_SetWidthRatioOfClickToFlip }, { "setPixelsOfMesh", "(I)I", (void *)JNI_SetPixelsOfMesh }, { "setSemiPerimeterRatio", "(F)I", (void *)JNI_SetSemiPerimeterRatio }, { "setMaskAlphaOfFold", "(I)I", (void *)JNI_SetMaskAlphaOfFold }, { "setShadowColorOfFoldEdges", "(FFFF)I", (void *)JNI_SetShadowColorOfFoldEdges }, { "setShadowColorOfFoldBase", "(FFFF)I", (void *)JNI_SetShadowColorOfFoldBase }, { "setShadowWidthOfFoldEdges", "(FFF)I", (void *)JNI_SetShadowWidthOfFoldEdges }, { "setShadowWidthOfFoldBase", "(FFF)I", (void *)JNI_SetShadowWidthOfFoldBase }, { "getPixelsOfMesh", "()I", (void *)JNI_GetPixelsOfMesh }, { "getSurfaceWidth", "()I", (void *)JNI_GetSurfaceWidth }, { "getSurfaceHeight", "()I", (void *)JNI_GetSurfaceHeight }, { "onSurfaceCreated", "()I", (void *)JNI_OnSurfaceCreated }, { "onSurfaceChanged", "(II)I", (void *)JNI_OnSurfaceChanged }, { "onFingerDown", "(FF)Z", (void *)JNI_OnFingerDown }, { "animating", "()Z", (void *)JNI_Animating }, { "canAnimate", "(FF)Z", (void *)JNI_CanAnimate }, { "isAnimating", "()Z", (void *)JNI_IsAnimating }, { "abortAnimating", "()I", (void *)JNI_AbortAnimating }, { "drawFlipFrame", "()I", (void *)JNI_DrawFlipFrame }, { "drawPageFrame", "()I", (void *)JNI_DrawPageFrame }, { "getFlipState", "()I", (void *)JNI_GetFlipState }, { "hasFirstPage", "()Z", (void *)JNI_HasFirstPage }, { "hasSecondPage", "()Z", (void *)JNI_HasSecondPage }, { "isFirstTextureSet", "(Z)Z", (void *)JNI_IsFirstTextureSet }, { "isSecondTextureSet", "(Z)Z", (void *)JNI_IsSecondTextureSet }, { "isBackTextureSet", "(Z)Z", (void *)JNI_IsBackTextureSet }, { "setFirstTexture", "(ZLandroid/graphics/Bitmap;)I", (void *)JNI_SetFirstTexture }, { "setSecondTexture", "(ZLandroid/graphics/Bitmap;)I", (void *)JNI_SetSecondTexture }, { "setBackTexture", "(ZLandroid/graphics/Bitmap;)I", (void *)JNI_SetBackTexture }, { "setGradientLightTexture", "(Landroid/graphics/Bitmap;)I", (void *)JNI_SetGradientLightTexture }, { "setFirstTextureWithSecond", "()I", (void *)JNI_SetFirstTextureWithSecond }, { "setSecondTextureWithFirst", "()I", (void *)JNI_SetSecondTextureWithFirst }, { "swapSecondTexturesWithFirst", "()I", (void *)JNI_SwapSecondTexturesWithFirst}, { "recycleTextures", "()I", (void *)JNI_RecycleTextures}, { "onFingerMove", "(FFZZ)Z", (void *)JNI_OnFingerMove }, { "onFingerUp", "(FFIZZ)Z", (void *)JNI_OnFingerUp }, { "getPageWidth", "(Z)I", (void *)JNI_GetPageWidth }, { "getPageHeight", "(Z)I", (void *)JNI_GetPageHeight }, { "isLeftPage", "(Z)Z", (void *)JNI_IsLeftPage }, { "isRightPage", "(Z)Z", (void *)JNI_IsRightPage }, }; static bool registerNatives(JNIEnv* env) { jclass cls = env->FindClass(gClassName); if (cls == NULL) { return JNI_FALSE; } int size = sizeof(gMethodsTable) / sizeof(JNINativeMethod); jint ret = env->RegisterNatives(cls, gMethodsTable, size); if (ret < 0) { return JNI_FALSE; } return JNI_TRUE; } JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM* vm, void *reserved) { JNIEnv* env; if (vm->GetEnv(reinterpret_cast<void**>(&env), JNI_VERSION_1_6) != JNI_OK) { return JNI_ERR; } if (!registerNatives(env)) { return JNI_ERR; } return JNI_VERSION_1_6; } JNIEXPORT jint JNICALL JNI_GetError(JNIEnv* env, jobject obj) { return (jint)gError.code(); } JNIEXPORT void JNICALL JNI_InitLib(JNIEnv* env, jobject obj) { if (gPageFlip == NULL) { LOGD(TAG, "Init PageFlip Object..."); gPageFlip = new PageFlip(); } } JNIEXPORT void JNICALL JNI_ReleaseLib(JNIEnv* env, jobject obj) { if (gPageFlip) { LOGD(TAG, "Release PageFlip Object..."); delete gPageFlip; gPageFlip = NULL; } } JNIEXPORT jint JNICALL JNI_EnableAutoPage(JNIEnv* env, jobject obj, jboolean is_auto) { gError.reset(); if (gPageFlip) { gPageFlip->enableAutoPage(is_auto); return JNI_OK; } else { LOGE("JNI_EnableAutoPage", "PageFlip object is null, please call init() first!"); } return gError.set(Error::ERR_PAGE_FLIP_UNINIT); } JNIEXPORT jboolean JNICALL JNI_IsAutoPageEnabled(JNIEnv* env, jobject obj) { gError.reset(); if (gPageFlip) { return (jboolean) gPageFlip->isAutoPageEnabled(); } else { LOGE("JNI_IsAutoPageEnabled", "PageFlip object is null, please call init() first!"); } gError.set(Error::ERR_PAGE_FLIP_UNINIT); return JNI_FALSE; } JNIEXPORT jint JNICALL JNI_EnableClickToFlip(JNIEnv* env, jobject obj, jboolean enable) { gError.reset(); if (gPageFlip) { gPageFlip->enableClickToFlip(enable); return Error::OK; } else { LOGE("JNI_EnableClickToFlip", "PageFlip object is null, please call init() first!"); } return gError.set(Error::ERR_PAGE_FLIP_UNINIT); } JNIEXPORT jint JNICALL JNI_SetWidthRatioOfClickToFlip(JNIEnv* env, jobject obj, jfloat ratio) { gError.reset(); if (gPageFlip) { return gPageFlip->setWidthRatioOfClickToFlip(ratio); } else { LOGE("JNI_SetWidthRatioOfClickToFlip", "PageFlip object is null, please call init() first!"); } return gError.set(Error::ERR_PAGE_FLIP_UNINIT); } JNIEXPORT jint JNICALL JNI_SetPixelsOfMesh(JNIEnv* env, jobject obj, jint pixels) { gError.reset(); if (gPageFlip) { gPageFlip->setPixelsOfMesh(pixels); return Error::OK; } else { LOGE("JNI_SetPixelsOfMesh", "PageFlip object is null, please call init() first!"); } return gError.set(Error::ERR_PAGE_FLIP_UNINIT); } JNIEXPORT jint JNICALL JNI_SetSemiPerimeterRatio(JNIEnv* env, jobject obj, jfloat ratio) { gError.reset(); if (gPageFlip) { return gPageFlip->setSemiPerimeterRatio(ratio); } else { LOGE("JNI_SetSemiPerimeterRatio", "PageFlip object is null, please call init() first!"); } return gError.set(Error::ERR_PAGE_FLIP_UNINIT); } JNIEXPORT jint JNICALL JNI_SetMaskAlphaOfFold(JNIEnv* env, jobject obj, jint alpha) { gError.reset(); if (gPageFlip) { return gPageFlip->setMaskAlphaOfFold(alpha); } else { LOGE("JNI_SetMaskAlphaOfFold", "PageFlip object is null, please call init() first!"); } return gError.set(Error::ERR_PAGE_FLIP_UNINIT); } JNIEXPORT jint JNICALL JNI_SetShadowColorOfFoldEdges(JNIEnv* env, jobject obj, jfloat s_color, jfloat s_alpha, jfloat e_color, jfloat e_alpha) { gError.reset(); if (gPageFlip) { return gPageFlip->setShadowColorOfFoldEdges(s_color, s_alpha, e_color, e_alpha); } else { LOGE("JNI_SetShadowColorOfFoldEdges", "PageFlip object is null, please call init() first!"); } return gError.set(Error::ERR_PAGE_FLIP_UNINIT); } JNIEXPORT jint JNICALL JNI_SetShadowColorOfFoldBase(JNIEnv* env, jobject obj, jfloat s_color, jfloat s_alpha, jfloat e_color, jfloat e_alpha) { gError.reset(); if (gPageFlip) { return gPageFlip->setShadowColorOfFoldBase(s_color, s_alpha, e_color, e_alpha); } else { LOGE("JNI_SetShadowColorOfFoldBase", "PageFlip object is null, please call init() first!"); } return gError.set(Error::ERR_PAGE_FLIP_UNINIT); } JNIEXPORT jint JNICALL JNI_SetShadowWidthOfFoldEdges(JNIEnv* env, jobject obj, jfloat min, jfloat max, jfloat ratio) { gError.reset(); if (gPageFlip) { return gPageFlip->setShadowWidthOfFoldEdges(min, max, ratio); } else { LOGE("JNI_SetShadowWidthOfFoldEdges", "PageFlip object is null, please call init() first!"); } return gError.set(Error::ERR_PAGE_FLIP_UNINIT); } JNIEXPORT jint JNICALL JNI_SetShadowWidthOfFoldBase(JNIEnv* env, jobject obj, jfloat min, jfloat max, jfloat ratio) { gError.reset(); if (gPageFlip) { return gPageFlip->setShadowWidthOfFoldBase(min, max, ratio); } else { LOGE("JNI_SetShadowWidthOfFoldBase", "PageFlip object is null, please call init() first!"); } return gError.set(Error::ERR_PAGE_FLIP_UNINIT); } JNIEXPORT jint JNICALL JNI_GetPixelsOfMesh(JNIEnv* env, jobject obj) { gError.reset(); if (gPageFlip) { return (jint) gPageFlip->pixelsOfMesh(); } else { LOGE("JNI_GetPixelsOfMesh", "PageFlip object is null, please call init() first!"); } return gError.set(Error::ERR_PAGE_FLIP_UNINIT); } JNIEXPORT jint JNICALL JNI_GetSurfaceWidth(JNIEnv* env, jobject obj) { gError.reset(); if (gPageFlip) { return gPageFlip->surfaceWidth(); } else { LOGE("JNI_GetSurfaceWidth", "PageFlip object is null, please call init() first!"); } return gError.set(Error::ERR_PAGE_FLIP_UNINIT); } JNIEXPORT jint JNICALL JNI_GetSurfaceHeight(JNIEnv* env, jobject obj) { gError.reset(); if (gPageFlip) { return (jint)gPageFlip->surfaceHeight(); } else { LOGE("JNI_GetSurfaceHeight", "PageFlip object is null, please call init() first!"); } return gError.set(Error::ERR_PAGE_FLIP_UNINIT); } JNIEXPORT jint JNICALL JNI_GetPageWidth(JNIEnv* env, jobject obj, jboolean is_first_page) { gError.reset(); if (gPageFlip) { Page* page = gPageFlip->getPage(is_first_page); if (page == NULL) { return gError.set(Error::ERR_NULL_PAGE); } return (jint)page->width(); } else { LOGE("JNI_GetPageWidth", "PageFlip object is null, please call init() first!"); } return gError.set(Error::ERR_PAGE_FLIP_UNINIT); } JNIEXPORT jint JNICALL JNI_GetPageHeight(JNIEnv* env, jobject obj, jboolean is_first_page) { gError.reset(); if (gPageFlip) { Page* page = gPageFlip->getPage(is_first_page); if (page == NULL) { return gError.set(Error::ERR_NULL_PAGE); } return (jint)page->height(); } else { LOGE("jni_get_height_of_page1", "PageFlip object is null, please call init() first!"); } return gError.set(Error::ERR_PAGE_FLIP_UNINIT); } JNIEXPORT jboolean JNICALL JNI_IsLeftPage(JNIEnv* env, jobject obj, jboolean is_first_page) { gError.reset(); if (gPageFlip) { Page* page = gPageFlip->getPage(is_first_page); if (page == NULL) { gError.set(Error::ERR_NULL_PAGE); return JNI_FALSE; } return (jboolean)page->isLeftPage(); } else { LOGE("JNI_IsLeftPage", "PageFlip object is null, please call init() first!"); } gError.set(Error::ERR_PAGE_FLIP_UNINIT); return JNI_FALSE; } JNIEXPORT jboolean JNICALL JNI_IsRightPage(JNIEnv* env, jobject obj, jboolean is_first_page) { gError.reset(); if (gPageFlip) { Page* page = gPageFlip->getPage(is_first_page); if (page == NULL) { gError.set(Error::ERR_NULL_PAGE); return JNI_FALSE; } return (jboolean)page->isRightPage(); } else { LOGE("JNI_IsRightPage", "PageFlip object is null, please call init() first!"); } gError.set(Error::ERR_PAGE_FLIP_UNINIT); return JNI_FALSE; } JNIEXPORT jint JNICALL JNI_OnSurfaceCreated(JNIEnv* env, jobject obj) { gError.reset(); if (gPageFlip) { gPageFlip->onSurfaceCreated(); return Error::OK; } else { LOGE("JNI_OnSurfaceCreated", "PageFlip object is null, please call init() first!"); } return gError.set(Error::ERR_PAGE_FLIP_UNINIT); } JNIEXPORT jint JNICALL JNI_OnSurfaceChanged(JNIEnv* env, jobject obj, jint width, jint height) { gError.reset(); if (gPageFlip) { gPageFlip->onSurfaceChanged(width, height); return Error::OK; } else { LOGE("JNI_OnSurfaceChanged", "PageFlip object is null, please call init() first!"); } return gError.set(Error::ERR_PAGE_FLIP_UNINIT); } JNIEXPORT jboolean JNICALL JNI_OnFingerDown(JNIEnv* env, jobject obj, jfloat x, jfloat y) { gError.reset(); if (gPageFlip) { return (jboolean) gPageFlip->onFingerDown(x, y); } else { gError.set(Error::ERR_PAGE_FLIP_UNINIT); LOGE("JNI_OnFingerDown", "PageFlip object is null, please call init() first!"); } return JNI_FALSE; } JNIEXPORT jboolean JNICALL JNI_OnFingerMove(JNIEnv* env, jobject obj, jfloat x, jfloat y, jboolean can_forward, jboolean can_backward) { gError.reset(); if (gPageFlip) { return (jboolean)gPageFlip->onFingerMove(x, y, can_forward, can_backward); } else { gError.set(Error::ERR_PAGE_FLIP_UNINIT); LOGE("JNI_OnFingerMove", "PageFlip object is null, please call init() first!"); } return JNI_FALSE; } JNIEXPORT jboolean JNICALL JNI_OnFingerUp(JNIEnv* env, jobject obj, jfloat x, jfloat y, jint duration, jboolean can_forward, jboolean can_backward) { gError.reset(); if (gPageFlip) { return (jboolean)gPageFlip->onFingerUp(x, y, duration, can_forward, can_backward); } else { gError.set(Error::ERR_PAGE_FLIP_UNINIT); LOGE("JNI_OnFingerUp", "PageFlip object is null, please call init() first!"); } return JNI_FALSE; } JNIEXPORT jboolean JNICALL JNI_Animating(JNIEnv* env, jobject obj) { gError.reset(); if (gPageFlip) { return (jboolean)gPageFlip->animating(); } else { gError.set(Error::ERR_PAGE_FLIP_UNINIT); LOGE("JNI_Animating", "PageFlip object is null, please call init() first!"); } return JNI_FALSE; } JNIEXPORT jboolean JNICALL JNI_CanAnimate(JNIEnv* env, jobject obj, jfloat x, jfloat y) { gError.reset(); if (gPageFlip) { return (jboolean)gPageFlip->canAnimate(x, y); } else { gError.set(Error::ERR_PAGE_FLIP_UNINIT); LOGE("JNI_CanAnimate", "PageFlip object is null, please call init() first!"); } return JNI_FALSE; } JNIEXPORT jboolean JNICALL JNI_IsAnimating(JNIEnv* env, jobject obj) { gError.reset(); if (gPageFlip) { return (jboolean)gPageFlip->isAnimating(); } else { gError.set(Error::ERR_PAGE_FLIP_UNINIT); LOGE("JNI_IsAnimating", "PageFlip object is null, please call init() first!"); } return JNI_FALSE; } JNIEXPORT jint JNICALL JNI_AbortAnimating(JNIEnv* env, jobject obj) { gError.reset(); if (gPageFlip) { gPageFlip->abortAnimating(); return Error::OK; } else { LOGE("JNI_AbortAnimating", "PageFlip object is null, please call init() first!"); } return gError.set(Error::ERR_PAGE_FLIP_UNINIT); } JNIEXPORT jint JNICALL JNI_DrawFlipFrame(JNIEnv* env, jobject obj) { gError.reset(); if (gPageFlip) { gPageFlip->drawFlipFrame(); return Error::OK; } else { LOGE("JNI_DrawFlipFrame", "PageFlip object is null, please call init() first!"); } return gError.set(Error::ERR_PAGE_FLIP_UNINIT); } JNIEXPORT jint JNICALL JNI_DrawPageFrame(JNIEnv* env, jobject obj) { gError.reset(); if (gPageFlip) { gPageFlip->drawPageFrame(); return Error::OK; } else { LOGE("JNI_DrawPageFrame", "PageFlip object is null, please call init() first!"); } return gError.set(Error::ERR_PAGE_FLIP_UNINIT); } JNIEXPORT jint JNICALL JNI_GetFlipState(JNIEnv* env, jobject obj) { gError.reset(); if (gPageFlip) { return gPageFlip->flipState(); } else { LOGE("JNI_GetFlipState", "PageFlip object is null, please call init() first!"); } return gError.set(Error::ERR_PAGE_FLIP_UNINIT); } JNIEXPORT jboolean JNICALL JNI_HasFirstPage(JNIEnv* env, jobject obj) { gError.reset(); if (gPageFlip) { return (jboolean)gPageFlip->hasFirstPage(); } else { gError.set(Error::ERR_PAGE_FLIP_UNINIT); LOGE("JNI_HasFirstPage", "PageFlip object is null, please call init() first!"); } return JNI_FALSE; } JNIEXPORT jboolean JNICALL JNI_HasSecondPage(JNIEnv* env, jobject obj) { gError.reset(); if (gPageFlip) { return (jboolean)gPageFlip->hasSecondPage(); } else { gError.set(Error::ERR_PAGE_FLIP_UNINIT); LOGE("JNI_HasSecondPage", "PageFlip object is null, please call init() first!"); } return JNI_FALSE; } JNIEXPORT jboolean JNICALL JNI_IsFirstTextureSet(JNIEnv* env, jobject obj, jboolean is_first_page) { gError.reset(); if (gPageFlip) { Page* page = gPageFlip->getPage(is_first_page); if (page == NULL) { gError.set(Error::ERR_NULL_PAGE); return JNI_FALSE; } return (jboolean) page->textures.isFirstTextureSet(); } else { gError.set(Error::ERR_PAGE_FLIP_UNINIT); LOGE("JNI_IsFirstTextureSet", "PageFlip object is null, please call init() first!"); } return JNI_FALSE; } JNIEXPORT jboolean JNICALL JNI_IsSecondTextureSet(JNIEnv* env, jobject obj, jboolean is_first_page) { gError.reset(); if (gPageFlip) { Page* page = gPageFlip->getPage(is_first_page); if (page == NULL) { gError.set(Error::ERR_NULL_PAGE); return JNI_FALSE; } return (jboolean)page->textures.isSecondTextureSet(); } else { gError.set(Error::ERR_PAGE_FLIP_UNINIT); LOGE("JNI_IsSecondTextureSet", "PageFlip object is null, please call init() first!"); } return JNI_FALSE; } JNIEXPORT jboolean JNICALL JNI_IsBackTextureSet(JNIEnv* env, jobject obj, jboolean is_first_page) { gError.reset(); if (gPageFlip) { Page* page = gPageFlip->getPage(is_first_page); if (page == NULL) { gError.set(Error::ERR_NULL_PAGE); return JNI_FALSE; } return (jboolean)page->textures.isBackTextureSet(); } else { gError.set(Error::ERR_PAGE_FLIP_UNINIT); LOGE("JNI_IsBackTextureSet", "PageFlip object is null, please call init() first!"); } return JNI_FALSE; } JNIEXPORT jint JNICALL JNI_SetFirstTexture(JNIEnv* env, jobject obj, jboolean is_first_page, jobject bitmap) { gError.reset(); if (bitmap == NULL) { LOGE("JNI_SetFirstTexture", "Can't set first texture with null Bitmap object!"); return gError.set(Error::ERR_NULL_PARAMETER); } else if (gPageFlip) { Page* page = gPageFlip->getPage(is_first_page); if (page == NULL) { return gError.set(Error::ERR_NULL_PAGE); } int ret; AndroidBitmapInfo info; GLvoid *data; if ((ret = AndroidBitmap_getInfo(env, bitmap, &info)) < 0) { return Error::ERR_GET_BITMAP_INFO; } if ((ret = AndroidBitmap_lockPixels(env, bitmap, &data)) < 0) { return Error::ERR_GET_BITMAP_DATA; } ret = page->textures.setFirstTexture(info, data); AndroidBitmap_unlockPixels(env, bitmap); return ret; } else { LOGE("JNI_SetFirstTexture", "PageFlip object is null, please call init() first!"); return gError.set(Error::ERR_PAGE_FLIP_UNINIT); } } JNIEXPORT jint JNICALL JNI_SetSecondTexture(JNIEnv* env, jobject obj, jboolean is_first_page, jobject bitmap) { gError.reset(); if (bitmap == NULL) { LOGE("JNI_SetSecondTexture", "Can't set second texture with null Bitmap object!"); return gError.set(Error::ERR_NULL_PARAMETER); } else if (gPageFlip) { Page* page = gPageFlip->getPage(is_first_page); if (page == NULL) { return gError.set(Error::ERR_NULL_PAGE); } int ret; AndroidBitmapInfo info; GLvoid *data; if ((ret = AndroidBitmap_getInfo(env, bitmap, &info)) < 0) { return Error::ERR_GET_BITMAP_INFO; } if ((ret = AndroidBitmap_lockPixels(env, bitmap, &data)) < 0) { return Error::ERR_GET_BITMAP_DATA; } ret = page->textures.setSecondTexture(info, data); AndroidBitmap_unlockPixels(env, bitmap); return ret; } else { LOGE("JNI_SetSecondTexture", "PageFlip object is null, please call init() first!"); return gError.set(Error::ERR_PAGE_FLIP_UNINIT); } } JNIEXPORT jint JNICALL JNI_SetBackTexture(JNIEnv* env, jobject obj, jboolean is_first_page, jobject bitmap) { gError.reset(); AndroidBitmapInfo info; if (bitmap == NULL) { return gPageFlip->setSecondTexture(is_first_page, info, NULL); } else if (gPageFlip) { Page* page = gPageFlip->getPage(is_first_page); if (page == NULL) { return gError.set(Error::ERR_NULL_PAGE); } int ret; GLvoid *data; if ((ret = AndroidBitmap_getInfo(env, bitmap, &info)) < 0) { return Error::ERR_GET_BITMAP_INFO; } if ((ret = AndroidBitmap_lockPixels(env, bitmap, &data)) < 0) { return Error::ERR_GET_BITMAP_DATA; } ret = page->textures.setBackTexture(info, data); AndroidBitmap_unlockPixels(env, bitmap); return ret; } else { LOGE("JNI_SetBackTexture", "PageFlip object is null, please call init() first!"); return gError.set(Error::ERR_PAGE_FLIP_UNINIT); } } JNIEXPORT jint JNICALL JNI_SetGradientLightTexture(JNIEnv* env, jobject obj, jobject bitmap) { gError.reset(); AndroidBitmapInfo info; if (bitmap == NULL) { LOGE("JNI_SetGradientLightTexture", "Can't set gradient light texture with null Bitmap object!"); return gError.set(Error::ERR_NULL_PARAMETER); } else if (gPageFlip) { int ret; GLvoid *data; if ((ret = AndroidBitmap_getInfo(env, bitmap, &info)) < 0) { return Error::ERR_GET_BITMAP_INFO; } if ((ret = AndroidBitmap_lockPixels(env, bitmap, &data)) < 0) { return Error::ERR_GET_BITMAP_DATA; } ret = gPageFlip->setGradientLightTexture(info, data); AndroidBitmap_unlockPixels(env, bitmap); return ret; } else { LOGE("JNI_SetGradientLightTexture", "PageFlip object is null, please call init() first!"); return gError.set(Error::ERR_PAGE_FLIP_UNINIT); } } JNIEXPORT jint JNICALL JNI_SetFirstTextureWithSecond(JNIEnv* env, jobject obj) { gError.reset(); if (gPageFlip) { Page* page = gPageFlip->getPage(true); if (page == NULL) { return gError.set(Error::ERR_NULL_PAGE); } page->textures.setFirstTextureWithSecond(); return Error::OK; } else { LOGE("JNI_SetFirstTextureWithSecond", "PageFlip object is null, please call init() first!"); return gError.set(Error::ERR_PAGE_FLIP_UNINIT); } } JNIEXPORT jint JNICALL JNI_SetSecondTextureWithFirst(JNIEnv* env, jobject obj) { gError.reset(); if (gPageFlip) { Page* page = gPageFlip->getPage(true); if (page == NULL) { return gError.set(Error::ERR_NULL_PAGE); } page->textures.setSecondTextureWithFirst(); return Error::OK; } else { LOGE("JNI_SetSecondTextureWithFirst", "PageFlip object is null, please call init() first!"); return gError.set(Error::ERR_PAGE_FLIP_UNINIT); } } JNIEXPORT jint JNICALL JNI_SwapSecondTexturesWithFirst(JNIEnv* env, jobject obj) { gError.reset(); if (gPageFlip) { Page* first = gPageFlip->getPage(true); Page* second = gPageFlip->getPage(false); if (first == NULL || second == NULL) { return gError.set(Error::ERR_NULL_PAGE); } second->textures.swapTexturesWith(first->textures); return Error::OK; } else { LOGE("JNI_SwapSecondTexturesWithFirst", "PageFlip object is null, please call init() first!"); return gError.set(Error::ERR_PAGE_FLIP_UNINIT); } } JNIEXPORT jint JNICALL JNI_RecycleTextures(JNIEnv* env, jobject obj) { gError.reset(); if (gPageFlip) { gPageFlip->recycleTextures(); return Error::OK; } else { LOGE("JNI_RecycleTextures", "PageFlip object is null, please call init() first!"); return gError.set(Error::ERR_PAGE_FLIP_UNINIT); } }
32.382479
80
0.545497
[ "object" ]
727ef7fa47c03780223d0a26e0d1263310b08462
3,277
cpp
C++
Adim1_Ornekler/32_Vector/src/main.cpp
KMACEL/TR-Cpp
dac7bebd1d5fd2d69a76be5a9809417333f01817
[ "Apache-2.0" ]
1
2021-05-25T22:11:13.000Z
2021-05-25T22:11:13.000Z
Adim1_Ornekler/32_Vector/src/main.cpp
KMACEL/TR-Cpp
dac7bebd1d5fd2d69a76be5a9809417333f01817
[ "Apache-2.0" ]
null
null
null
Adim1_Ornekler/32_Vector/src/main.cpp
KMACEL/TR-Cpp
dac7bebd1d5fd2d69a76be5a9809417333f01817
[ "Apache-2.0" ]
null
null
null
//============================================================================ // İsim : 22_Pointer // Yazan : Mert AceL // Version : 1.0 // Copyright : AceL // Açıklama :22_Pointer //============================================================================ #include<iostream> #include<vector> #include<algorithm> // sort using namespace std; int main () { vector<string> vektor; vektor.push_back("ilk"); vektor.push_back("ikinci"); cout << "Vektör eleman sayısı : " << vektor.size() << endl; cout << "--------------------------------------------------------" << endl; vector<string> vektor2(5); vektor2.push_back("ilk"); vektor2.push_back("ikinci"); vektor2[3]="ekstra"; cout << "Vektör2 eleman sayısı : " << vektor2.size() << endl; cout << "--------------------------------------------------------" << endl; vector<string> vektor3; vektor3.push_back("ilk"); vektor3.push_back("ikinci"); vektor3.push_back("üçüncü"); vektor3.push_back("dördüncü"); cout << "Vektör3 eleman sayısı : " << vektor3.size() << endl; for(int i=0 ; i < vektor3.size(); i++) { cout << i+1 << ". Elemean " << vektor3[i] << endl; } cout << "--------------------------------------------------------" << endl; vector<string> vektor4; vektor4.push_back("ilk"); vektor4.push_back("ikinci"); vektor4.push_back("üçüncü"); vektor4.push_back("dördüncü"); cout << "vektor4 eleman sayısı : " << vektor4.size() << endl; vector<string>::iterator it = vektor4.begin(); cout << *it << endl; it++; cout << *it << endl; it+=2; cout << *it << endl; cout << "--------------------------------------------------------" << endl; vector<int> vektor5; cout << "Vektor Boyutu : " << vektor5.size() << endl; cout << "Vektor Kapasitesi : " << vektor5.capacity() << endl; for (int i = 0 ; i<100; i++) { cout << "----------------------------" << endl; vektor5.push_back(i); cout << "Eklenen Değer : " << i << endl; cout << "Vektor Boyutu : " << vektor5.size() << endl; cout << "Vektor Kapasitesi : " << vektor5.capacity() << endl; cout << "----------------------------" << endl << endl; } cout << "--------------------------------------------------------" << endl; vector< vector<int> > vektor6(7,vector<int>(8,10)); for (int i=0; i < vektor6.size() ; i++) { for (int j=0; j < vektor6[i].size() ; j++) { vektor6[i][j]=i+2*j; } } cout << "Vektor Boyutu : " << vektor6.size() << endl; cout << "Vektor Kapasitesi : " << vektor6.capacity() << endl; for (int i=0; i < vektor6.size() ; i++) { for (int j=0; j < vektor6[i].size() ; j++) { cout << i << " - " << j << " : " << vektor6[i][j] <<endl; } } cout << "--------------------------------------------------------" << endl; vector<int> vektor7; vektor7.push_back(5); vektor7.push_back(7); vektor7.push_back(2); vektor7.push_back(16); sort(vektor7.begin(), vektor7.end()); for(vector<int>::iterator it = vektor7.begin(); it != vektor7.end(); it++) { cout << *it << endl; } return 0; }
26.860656
79
0.433628
[ "vector" ]
7284d83ef735bd9bedb4a5292eae89a975528793
18,625
cpp
C++
test/TestBuilder.cpp
ConnectionMaster/jsonbuilder
65dd8ab59cdfcb93e0ac42a3030c41730d783eb6
[ "MIT" ]
11
2020-05-09T10:09:42.000Z
2021-11-15T10:06:50.000Z
test/TestBuilder.cpp
microsoft/jsonbuilder
65dd8ab59cdfcb93e0ac42a3030c41730d783eb6
[ "MIT" ]
4
2020-02-23T18:45:16.000Z
2022-03-21T11:32:28.000Z
test/TestBuilder.cpp
ConnectionMaster/jsonbuilder
65dd8ab59cdfcb93e0ac42a3030c41730d783eb6
[ "MIT" ]
7
2020-06-30T15:51:08.000Z
2021-06-09T18:13:11.000Z
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #include <catch2/catch.hpp> #include <jsonbuilder/JsonBuilder.h> using namespace jsonbuilder; TEST_CASE("JsonBuilder buffer reserve", "[builder]") { constexpr auto c_maxSize = JsonBuilder::buffer_max_size(); JsonBuilder b; SECTION("Buffer begins empty") { REQUIRE(b.buffer_size() == 0); REQUIRE(b.buffer_capacity() == 0); } SECTION("Buffer reserving 0 remains empty") { b.buffer_reserve(0); REQUIRE(b.buffer_size() == 0); REQUIRE(b.buffer_capacity() == 0); } SECTION("Buffer reserving 1 keeps size 0 and makes a capacity of at least " "the size of one element") { b.buffer_reserve(1); REQUIRE(b.buffer_size() == 0); REQUIRE(b.buffer_capacity() >= 4); } SECTION("Buffer reserving 2 keeps size 0 and makes a capacity of at least " "the size of one element") { b.buffer_reserve(2); REQUIRE(b.buffer_size() == 0); REQUIRE(b.buffer_capacity() >= 4); } SECTION("Buffer reserving 5 keeps size 0 and makes a capacity of at least " "the size of two elements") { b.buffer_reserve(5); REQUIRE(b.buffer_size() == 0); REQUIRE(b.buffer_capacity() >= 8); } SECTION("Buffer reserving max succeeds or throws std::bad_alloc") { auto reserveMax = [&]() { try { b.buffer_reserve(c_maxSize); } catch (const std::bad_alloc&) {} }; REQUIRE_NOTHROW(reserveMax()); } SECTION("Buffer reserving one more than max throws std::length_error") { REQUIRE_THROWS_AS(b.buffer_reserve(c_maxSize + 1), std::length_error); } SECTION("Buffer reserving maximum of size_type throws std::length_error") { auto maxSizeType = ~JsonBuilder::size_type(0); REQUIRE_THROWS_AS(b.buffer_reserve(maxSizeType), std::length_error); } } template<class InputType, class OutputType> static void TestInputOutputScalar() { using InputLimits = std::numeric_limits<InputType>; using OutputLimits = std::numeric_limits<OutputType>; JsonBuilder b; b.push_back(b.root(), "", InputLimits::lowest()); b.push_back(b.root(), "", InputLimits::min()); b.push_back(b.root(), "", InputLimits::max()); b.push_back(b.root(), "", OutputLimits::lowest()); b.push_back(b.root(), "", OutputLimits::min()); b.push_back(b.root(), "", OutputLimits::max()); REQUIRE_NOTHROW(b.ValidateData()); InputType i; auto it = b.begin(); REQUIRE(it->GetUnchecked<InputType>() == InputLimits::lowest()); REQUIRE(it->ConvertTo(i)); REQUIRE(i == InputLimits::lowest()); ++it; REQUIRE(it->GetUnchecked<InputType>() == InputLimits::min()); REQUIRE(it->ConvertTo(i)); REQUIRE(i == InputLimits::min()); ++it; REQUIRE(it->GetUnchecked<InputType>() == InputLimits::max()); REQUIRE(it->ConvertTo(i)); REQUIRE(i == InputLimits::max()); ++it; REQUIRE( it->GetUnchecked<InputType>() == static_cast<InputType>(OutputLimits::lowest())); if (it->ConvertTo(i)) { REQUIRE(i == static_cast<InputType>(OutputLimits::lowest())); } else { REQUIRE(i == 0); REQUIRE(it->GetUnchecked<InputType>() != OutputLimits::lowest()); } ++it; REQUIRE( it->GetUnchecked<InputType>() == static_cast<InputType>(OutputLimits::min())); if (it->ConvertTo(i)) { REQUIRE(i == static_cast<InputType>(OutputLimits::min())); } else { REQUIRE(i == 0); REQUIRE(it->GetUnchecked<InputType>() != OutputLimits::min()); } ++it; REQUIRE( it->GetUnchecked<InputType>() == static_cast<InputType>(OutputLimits::max())); if (it->ConvertTo(i)) { REQUIRE(i == static_cast<InputType>(OutputLimits::max())); } else { REQUIRE(i == 0); REQUIRE(it->GetUnchecked<InputType>() != OutputLimits::max()); } } TEST_CASE("JsonBuilder numeric limits", "[builder]") { SECTION("signed char") { TestInputOutputScalar<signed char, int64_t>(); } SECTION("signed short") { TestInputOutputScalar<signed short, int64_t>(); } SECTION("signed int") { TestInputOutputScalar<signed int, int64_t>(); } SECTION("signed long") { TestInputOutputScalar<signed long, int64_t>(); } SECTION("signed long long") { TestInputOutputScalar<signed long long, int64_t>(); } SECTION("unsigned char") { TestInputOutputScalar<unsigned char, uint64_t>(); } SECTION("unsigned short") { TestInputOutputScalar<unsigned short, uint64_t>(); } SECTION("unsigned int") { TestInputOutputScalar<unsigned int, uint64_t>(); } SECTION("unsigned long") { TestInputOutputScalar<unsigned long, uint64_t>(); } SECTION("unsigned long long") { TestInputOutputScalar<unsigned long long, uint64_t>(); } SECTION("float") { TestInputOutputScalar<float, double>(); } SECTION("double") { TestInputOutputScalar<double, double>(); } } TEST_CASE("JsonBuilder string push_back") { JsonBuilder b; SECTION("push_back std::string_view") { auto itr = b.push_back(b.root(), "", std::string_view{ "ABCDE" }); REQUIRE(itr->GetUnchecked<std::string_view>() == "ABCDE"); } SECTION("push_back std::string") { auto itr = b.push_back(b.root(), "", std::string{ "ABCDE" }); REQUIRE(itr->GetUnchecked<std::string_view>() == "ABCDE"); } SECTION("push_back char") { auto itr = b.push_back(b.root(), "", ' '); REQUIRE(itr->GetUnchecked<std::string_view>() == " "); } SECTION("push_back char*") { auto itr = b.push_back(b.root(), "", const_cast<char*>("ABC")); REQUIRE(itr->GetUnchecked<std::string_view>() == "ABC"); } SECTION("push_back const char*") { auto itr = b.push_back(b.root(), "", static_cast<const char*>("DEF")); REQUIRE(itr->GetUnchecked<std::string_view>() == "DEF"); } SECTION("push_back const char[]") { auto itr = b.push_back(b.root(), "", "HIJ"); REQUIRE(itr->GetUnchecked<std::string_view>() == "HIJ"); } } TEST_CASE("JsonBuilder chrono push_back", "[builder]") { auto now = std::chrono::system_clock::now(); JsonBuilder b; auto itr = b.push_back(b.root(), "CurrentTime", now); auto retrieved = itr->GetUnchecked<std::chrono::system_clock::time_point>(); REQUIRE(retrieved == now); } TEST_CASE("JsonBuilder uuid push_back", "[builder]") { UuidStruct uuid; uuid_generate(uuid.Data); JsonBuilder b; auto itr = b.push_back(b.root(), "Uuid", uuid); auto retrieved = itr->GetUnchecked<UuidStruct>(); REQUIRE(uuid_compare(retrieved.Data, uuid.Data) == 0); } TEST_CASE("JsonBuilder find", "[builder]") { JsonBuilder b; // Empty object REQUIRE(b.find("a1") == b.end()); REQUIRE(b.find("a1", "a2") == b.end()); // Single object (a1) auto itA1 = b.push_back(b.root(), "a1", JsonObject); REQUIRE(b.find("a1") == itA1); REQUIRE(b.find(b.root(), "a1") == itA1); REQUIRE(b.find("b1") == b.end()); REQUIRE(b.find(b.root(), "b1") == b.end()); REQUIRE(b.find("a1", "a2") == b.end()); // Second object b2, sibling of a1 auto itB1 = b.push_back(b.root(), "b1", JsonObject); REQUIRE(b.find("a1") == itA1); REQUIRE(b.find("a1", "a2") == b.end()); REQUIRE(b.find("b1") == itB1); REQUIRE(b.find("c1") == b.end()); // First child of a1, a2 auto itA1A2 = b.push_back(itA1, "a2", JsonObject); REQUIRE(b.find("a1") == itA1); REQUIRE(b.find("a1", "a2") == itA1A2); REQUIRE(b.find(b.root(), "a1", "a2") == itA1A2); REQUIRE(b.find("a1", "a2", "a3") == b.end()); REQUIRE(b.find("b1") == itB1); REQUIRE(b.find("c1") == b.end()); // First child of a2, a3 auto itA1A2A3 = b.push_back(itA1A2, "a3", 0); REQUIRE(b.find("a1", "a2", "a3") == itA1A2A3); REQUIRE(b.find(itA1, "a2") == itA1A2); REQUIRE(b.find(itB1, "a2") == b.end()); REQUIRE_NOTHROW(b.ValidateData()); } TEST_CASE("JsonBuilder constructors", "[builder]") { JsonBuilder b; b.push_back(b.root(), "aname", "ava"); b.push_back(b.root(), "bname", "bva"); REQUIRE_NOTHROW(b.ValidateData()); SECTION("Copy constructor") { JsonBuilder copy{ b }; REQUIRE_NOTHROW(copy.ValidateData()); auto it = copy.begin(); REQUIRE(it->Name() == "aname"); REQUIRE(it->GetUnchecked<std::string_view>() == "ava"); ++it; REQUIRE(it->Name() == "bname"); REQUIRE(it->GetUnchecked<std::string_view>() == "bva"); } SECTION("Move constructor") { JsonBuilder move{ std::move(b) }; REQUIRE_NOTHROW(move.ValidateData()); auto it = move.begin(); REQUIRE(it->Name() == "aname"); REQUIRE(it->GetUnchecked<std::string_view>() == "ava"); ++it; REQUIRE(it->Name() == "bname"); REQUIRE(it->GetUnchecked<std::string_view>() == "bva"); } } TEST_CASE("JsonBuilder erase", "[builder]") { JsonBuilder b; b.push_back(b.root(), "aname", "ava"); b.push_back(b.root(), "bname", "bva"); REQUIRE_NOTHROW(b.ValidateData()); SECTION("erase a single child element") { auto itr = b.erase(b.begin()); REQUIRE_NOTHROW(b.ValidateData()); REQUIRE(itr == b.begin()); REQUIRE(b.count(b.root()) == 1); } SECTION("erase all children") { auto itr = b.erase(b.begin(), b.end()); REQUIRE_NOTHROW(b.ValidateData()); REQUIRE(itr == b.end()); REQUIRE(b.begin() == b.end()); REQUIRE(b.count(itr) == 0); } } TEST_CASE("JsonBuilder conversions", "[builder]") { int64_t ival; uint64_t uval; double fval; std::string_view sval; bool bval; std::chrono::system_clock::time_point tval; UuidStruct uuidval; JsonBuilder b; SECTION("JsonNull") { auto itr = b.push_back(b.root(), "FirstItem", JsonNull); REQUIRE(itr->IsNull()); REQUIRE(!itr->ConvertTo(bval)); REQUIRE(!itr->ConvertTo(fval)); REQUIRE(!itr->ConvertTo(ival)); REQUIRE(!itr->ConvertTo(uval)); REQUIRE(!itr->ConvertTo(sval)); REQUIRE(!itr->ConvertTo(tval)); REQUIRE(!itr->ConvertTo(uuidval)); } SECTION("false") { auto itr = b.push_back(b.root(), "", false); REQUIRE(itr->GetUnchecked<bool>() == false); REQUIRE((itr->ConvertTo(bval) && !bval)); REQUIRE(!itr->ConvertTo(fval)); REQUIRE(!itr->ConvertTo(ival)); REQUIRE(!itr->ConvertTo(uval)); REQUIRE(!itr->ConvertTo(sval)); REQUIRE(!itr->ConvertTo(tval)); REQUIRE(!itr->ConvertTo(uuidval)); } SECTION("true") { auto itr = b.push_back(b.root(), "", true); REQUIRE(itr->GetUnchecked<bool>() == true); REQUIRE((itr->ConvertTo(bval) && bval)); REQUIRE(!itr->ConvertTo(fval)); REQUIRE(!itr->ConvertTo(ival)); REQUIRE(!itr->ConvertTo(uval)); REQUIRE(!itr->ConvertTo(sval)); REQUIRE(!itr->ConvertTo(tval)); REQUIRE(!itr->ConvertTo(uuidval)); } SECTION("int64_t") { auto itr = b.push_back(b.root(), "", 123); REQUIRE(itr->GetUnchecked<int64_t>() == 123); REQUIRE(!itr->ConvertTo(bval)); REQUIRE((itr->ConvertTo(fval) && fval == 123)); REQUIRE((itr->ConvertTo(ival) && ival == 123)); REQUIRE((itr->ConvertTo(uval) && uval == 123)); REQUIRE(!itr->ConvertTo(sval)); REQUIRE(!itr->ConvertTo(tval)); REQUIRE(!itr->ConvertTo(uuidval)); } SECTION("uint64_t") { auto itr = b.push_back(b.root(), "", 123u); REQUIRE(itr->GetUnchecked<uint64_t>() == 123u); REQUIRE(!itr->ConvertTo(bval)); REQUIRE((itr->ConvertTo(fval) && fval == 123)); REQUIRE((itr->ConvertTo(ival) && ival == 123)); REQUIRE((itr->ConvertTo(uval) && uval == 123)); REQUIRE(!itr->ConvertTo(sval)); REQUIRE(!itr->ConvertTo(tval)); REQUIRE(!itr->ConvertTo(uuidval)); } SECTION("double") { auto itr = b.push_back(b.root(), "", 123.0); REQUIRE(itr->GetUnchecked<double>() == 123.0); REQUIRE(!itr->ConvertTo(bval)); REQUIRE((itr->ConvertTo(fval) && fval == 123)); REQUIRE((itr->ConvertTo(ival) && ival == 123)); REQUIRE((itr->ConvertTo(uval) && uval == 123)); REQUIRE(!itr->ConvertTo(sval)); REQUIRE(!itr->ConvertTo(tval)); REQUIRE(!itr->ConvertTo(uuidval)); } SECTION("string") { auto itr = b.push_back(b.root(), "", "ABC"); REQUIRE(itr->GetUnchecked<std::string_view>() == "ABC"); REQUIRE(!itr->ConvertTo(bval)); REQUIRE(!itr->ConvertTo(fval)); REQUIRE(!itr->ConvertTo(ival)); REQUIRE(!itr->ConvertTo(uval)); REQUIRE((itr->ConvertTo(sval) && sval == "ABC")); REQUIRE(!itr->ConvertTo(tval)); REQUIRE(!itr->ConvertTo(uuidval)); } SECTION("less than int64_t min as double") { auto itr = b.push_back(b.root(), "", -9223372036854777856.0); REQUIRE(!itr->ConvertTo(bval)); REQUIRE((itr->ConvertTo(fval) && fval == -9223372036854777856.0)); REQUIRE(!itr->ConvertTo(ival)); REQUIRE(!itr->ConvertTo(uval)); REQUIRE(!itr->ConvertTo(sval)); REQUIRE(!itr->ConvertTo(tval)); REQUIRE(!itr->ConvertTo(uuidval)); } SECTION("int64_t min") { // This value of -9223372036854775808 cannot be described as a literal // due to negative literals being positive literals with a unary minus // applied. constexpr int64_t c_int64min = (-9223372036854775807ll - 1); auto itr = b.push_back(b.root(), "", c_int64min); REQUIRE(!itr->ConvertTo(bval)); REQUIRE((itr->ConvertTo(fval) && fval == -9223372036854775808.0)); REQUIRE((itr->ConvertTo(ival) && ival == c_int64min)); REQUIRE(!itr->ConvertTo(uval)); REQUIRE(!itr->ConvertTo(sval)); REQUIRE(!itr->ConvertTo(tval)); REQUIRE(!itr->ConvertTo(uuidval)); } SECTION("-1") { auto itr = b.push_back(b.root(), "", -1); REQUIRE(!itr->ConvertTo(bval)); REQUIRE((itr->ConvertTo(fval) && fval == -1.0)); REQUIRE((itr->ConvertTo(ival) && ival == -1)); REQUIRE(!itr->ConvertTo(uval)); REQUIRE(!itr->ConvertTo(sval)); REQUIRE(!itr->ConvertTo(tval)); REQUIRE(!itr->ConvertTo(uuidval)); } SECTION("0") { auto itr = b.push_back(b.root(), "", 0); REQUIRE(!itr->ConvertTo(bval)); REQUIRE((itr->ConvertTo(fval) && fval == 0.0)); REQUIRE((itr->ConvertTo(ival) && ival == 0)); REQUIRE((itr->ConvertTo(uval) && uval == 0)); REQUIRE(!itr->ConvertTo(sval)); REQUIRE(!itr->ConvertTo(tval)); REQUIRE(!itr->ConvertTo(uuidval)); } SECTION("int64_t max") { auto itr = b.push_back(b.root(), "", 9223372036854775807); REQUIRE(!itr->ConvertTo(bval)); REQUIRE((itr->ConvertTo(fval) && fval == 9223372036854775807.0)); REQUIRE((itr->ConvertTo(ival) && ival == 9223372036854775807)); REQUIRE((itr->ConvertTo(uval) && uval == 9223372036854775807)); REQUIRE(!itr->ConvertTo(sval)); REQUIRE(!itr->ConvertTo(tval)); REQUIRE(!itr->ConvertTo(uuidval)); } SECTION("greater than int64_t max and less than uint64_t max") { auto itr = b.push_back(b.root(), "", 9223372036854775808ull); REQUIRE(!itr->ConvertTo(bval)); REQUIRE((itr->ConvertTo(fval) && fval == 9223372036854775808.0)); REQUIRE(!itr->ConvertTo(ival)); REQUIRE((itr->ConvertTo(uval) && uval == 9223372036854775808ull)); REQUIRE(!itr->ConvertTo(sval)); REQUIRE(!itr->ConvertTo(tval)); REQUIRE(!itr->ConvertTo(uuidval)); } SECTION("greater than int64_t max and less than uint64_t max as double") { auto itr = b.push_back(b.root(), "", 9223372036854777856.0); REQUIRE(!itr->ConvertTo(bval)); REQUIRE((itr->ConvertTo(fval) && fval == 9223372036854777856.0)); REQUIRE(!itr->ConvertTo(ival)); REQUIRE((itr->ConvertTo(uval) && uval == 9223372036854777856ull)); REQUIRE(!itr->ConvertTo(sval)); REQUIRE(!itr->ConvertTo(tval)); REQUIRE(!itr->ConvertTo(uuidval)); } SECTION("uint64_t max") { auto itr = b.push_back(b.root(), "", 18446744073709551615ull); REQUIRE(!itr->ConvertTo(bval)); REQUIRE((itr->ConvertTo(fval) && fval == 18446744073709551615.0)); REQUIRE(!itr->ConvertTo(ival)); REQUIRE((itr->ConvertTo(uval) && uval == 18446744073709551615ull)); REQUIRE(!itr->ConvertTo(sval)); REQUIRE(!itr->ConvertTo(tval)); REQUIRE(!itr->ConvertTo(uuidval)); } SECTION("greater than uint64_t max") { auto itr = b.push_back(b.root(), "", 18446744073709551616.0); REQUIRE(!itr->ConvertTo(bval)); REQUIRE((itr->ConvertTo(fval) && fval == 18446744073709551615.0)); REQUIRE(!itr->ConvertTo(ival)); REQUIRE(!itr->ConvertTo(uval)); REQUIRE(!itr->ConvertTo(sval)); REQUIRE(!itr->ConvertTo(tval)); REQUIRE(!itr->ConvertTo(uuidval)); } SECTION("time") { auto now = std::chrono::system_clock::now(); auto itr = b.push_back(b.root(), "", now); REQUIRE(!itr->ConvertTo(bval)); REQUIRE(!itr->ConvertTo(fval)); REQUIRE(!itr->ConvertTo(ival)); REQUIRE(!itr->ConvertTo(uval)); REQUIRE(!itr->ConvertTo(sval)); REQUIRE((itr->ConvertTo(tval) && tval == now)); REQUIRE(!itr->ConvertTo(uuidval)); } SECTION("uuid") { UuidStruct uuid; uuid_generate(uuid.Data); auto itr = b.push_back(b.root(), "", uuid); REQUIRE(!itr->ConvertTo(bval)); REQUIRE(!itr->ConvertTo(fval)); REQUIRE(!itr->ConvertTo(ival)); REQUIRE(!itr->ConvertTo(uval)); REQUIRE(!itr->ConvertTo(sval)); REQUIRE(!itr->ConvertTo(tval)); REQUIRE( (itr->ConvertTo(uuidval) && 0 == uuid_compare(uuidval.Data, uuid.Data))); } }
30.186386
80
0.576483
[ "object" ]
7285302db5d394042c11cb05ad45b2f0fafe2b89
3,707
cpp
C++
qt-creator-opensource-src-4.6.1/src/shared/qbs/src/lib/corelib/buildgraph/rawscanresults.cpp
kevinlq/Qt-Creator-Opensource-Study
b8cadff1f33f25a5d4ef33ed93f661b788b1ba0f
[ "MIT" ]
5
2018-12-22T14:49:13.000Z
2022-01-13T07:21:46.000Z
Src/shared/qbs/src/lib/corelib/buildgraph/rawscanresults.cpp
kevinlq/QSD
b618fc63dc3aa5a18701c5b23e3ea3cdd253e89a
[ "MIT" ]
null
null
null
Src/shared/qbs/src/lib/corelib/buildgraph/rawscanresults.cpp
kevinlq/QSD
b618fc63dc3aa5a18701c5b23e3ea3cdd253e89a
[ "MIT" ]
8
2018-07-17T03:55:48.000Z
2021-12-22T06:37:53.000Z
/**************************************************************************** ** ** Copyright (C) 2016 The Qt Company Ltd. ** Contact: https://www.qt.io/licensing/ ** ** This file is part of Qbs. ** ** $QT_BEGIN_LICENSE:LGPL$ ** Commercial License Usage ** Licensees holding valid commercial Qt licenses may use this file in ** accordance with the commercial license agreement provided with the ** Software or, alternatively, in accordance with the terms contained in ** a written agreement between you and The Qt Company. For licensing terms ** and conditions see https://www.qt.io/terms-conditions. For further ** information use the contact form at https://www.qt.io/contact-us. ** ** GNU Lesser General Public License Usage ** Alternatively, this file may be used under the terms of the GNU Lesser ** General Public License version 3 as published by the Free Software ** Foundation and appearing in the file LICENSE.LGPL3 included in the ** packaging of this file. Please review the following information to ** ensure the GNU Lesser General Public License version 3 requirements ** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. ** ** GNU General Public License Usage ** Alternatively, this file may be used under the terms of the GNU ** General Public License version 2.0 or (at your option) the GNU General ** Public license version 3 or any later version approved by the KDE Free ** Qt Foundation. The licenses are as published by the Free Software ** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 ** included in the packaging of this file. Please review the following ** information to ensure the GNU General Public License requirements will ** be met: https://www.gnu.org/licenses/gpl-2.0.html and ** https://www.gnu.org/licenses/gpl-3.0.html. ** ** $QT_END_LICENSE$ ** ****************************************************************************/ #include "rawscanresults.h" #include "filedependency.h" #include "depscanner.h" #include <tools/persistence.h> #include <language/propertymapinternal.h> #include <utility> namespace qbs { namespace Internal { void RawScanResult::load(PersistentPool &pool) { pool.load(deps); pool.load(additionalFileTags); } void RawScanResult::store(PersistentPool &pool) const { pool.store(deps); pool.store(additionalFileTags); } void RawScanResults::ScanData::load(PersistentPool &pool) { pool.load(scannerId); pool.load(moduleProperties); pool.load(lastScanTime); pool.load(rawScanResult); } void RawScanResults::ScanData::store(PersistentPool &pool) const { pool.store(scannerId); pool.store(moduleProperties); pool.store(lastScanTime); pool.store(rawScanResult); } RawScanResults::ScanData &RawScanResults::findScanData( const FileResourceBase *file, const DependencyScanner *scanner, const PropertyMapConstPtr &moduleProperties) { std::vector<ScanData> &scanDataForFile = m_rawScanData[file->filePath()]; const QString &scannerId = scanner->id(); for (auto &scanData : scanDataForFile) { if (scannerId != scanData.scannerId) continue; if (!scanner->areModulePropertiesCompatible(moduleProperties, scanData.moduleProperties)) continue; return scanData; } ScanData newScanData; newScanData.scannerId = scannerId; newScanData.moduleProperties = moduleProperties; scanDataForFile.push_back(std::move(newScanData)); return scanDataForFile.back(); } void RawScanResults::load(PersistentPool &pool) { pool.load(m_rawScanData); } void RawScanResults::store(PersistentPool &pool) const { pool.store(m_rawScanData); } } // namespace Internal } // namespace qbs
32.517544
97
0.70758
[ "vector" ]
7285ae37fd5a14f8d14a161320833484e0926f8d
20,313
cc
C++
main.cc
rajatthepagal/8085-Assembler
cea2e99ac26b3252cabc48adf2373cc1638c670f
[ "Apache-2.0" ]
null
null
null
main.cc
rajatthepagal/8085-Assembler
cea2e99ac26b3252cabc48adf2373cc1638c670f
[ "Apache-2.0" ]
null
null
null
main.cc
rajatthepagal/8085-Assembler
cea2e99ac26b3252cabc48adf2373cc1638c670f
[ "Apache-2.0" ]
null
null
null
#include <iostream> #include <fstream> #include <array> #include <vector> #include <ctype.h> #include <bitset> // generate list of tokens <name , value > e.g <"id0", "NOP" , line_no , mem_loc> , <"id1","JMP" , line_no , mem_loc> //<"DATA" , "00H" , line_no , mem_loc> // evaluate whether the sequence of tokens is syntactically correct returns a data structure for code generation // takes the above parser results and generates a pseudo binary code /* Token list : id0 , id1 ',' , ';' , 'DATA' , 'ADDR' , A , B , C , D , E , H , L a keyword string array for token ID0 = [],ID1 = [] data inside keyword { name , binary_code} for id0 register ; we have sepprate map table of opcode where binary code redirects to the map for id0 register,register ; we have sepprate map table of opcode where binary code redirects to the map ======================================================================== token structure { class_id:e_value , "VALUE" , line_no , mem_loc } ENUM e [ID0 , ID1 , COMMA , EOL , DATA , ADDR , A , B , C , D , E , H , L] ======================================================================== tokenised_source => list of tokens in sequence parser grammer rules id0: ; | R,R; | R; id1: ADDR; | R,D; | D; | LABEL; the above are the accepted statements ======================================================================== For jump statements and call statements we set up labels LABEL: COLONid0 | COLONid1 LABEL=> [_,a-Z][-,a-Z,0-9]* */ //////////////////////////////////////////////// BASIC DATA STRUCTURES TO HOLD THE INSTRUCTION DATA /////////////////////////// #define BINARY_WORD_SIZE 8 enum TOKEN_CLASS { ID0 , ID1 , DATA , ADDR , LABEL , REGISTER='R' , COLON=':' , COMMA=',' , EOL=';' , SPACE=' ' , UKN=-1}; struct keyword { std::string name; unsigned char binary; }; #define MOV_MAP 0xF1 #define ADD_MAP 0xF2 #define MVI_MAP 0xF3 #define JMP_MAP 0xFF std::array<keyword , 4> ID0_LIST = {{ {"NOP" , 0x00}, {"CMA" , 0x2F}, {"MOV", MOV_MAP}, {"ADD" , ADD_MAP} }}; std::array<keyword , 4> ID1_LIST = {{ {"MVI", MVI_MAP}, {"STA" , 0x32}, {"ADI" , 0xC6}, {"JMP" , JMP_MAP} }}; std::array<std::array<unsigned char,8>,8> MOV_TABLE={{ {0x40,0x41,0x42,0x43,0x44,0x45,0x46,0x47}, {0x48,0x49,0x4A,0x4B,0x4C,0x4D,0x4E,0x4F}, {0x50,0x51,0x52,0x53,0x54,0x55,0x56,0x57}, {0x58,0x59,0x5A,0x5B,0x5C,0x5D,0x5E,0x5F}, {0x60,0x61,0x62,0x63,0x64,0x65,0x66,0x67}, {0x68,0x69,0x6A,0x6B,0x6C,0x6D,0x6E,0x6F}, {0x70,0x71,0x72,0x73,0x74,0x75,0x76,0x77}, {0x78,0x79,0x7A,0x7B,0x7C,0x7D,0x7E,0x7F}, }}; std::array<unsigned char , 8> MVI_TABLE = {0x06,0x0E,0x16,0x1E,0x26,0x2E,0x36,0x3E}; std::array<unsigned char, 8> ADD_TABLE = {0x80,0x81,0x82,0x83,0x84,0x85,0x86,0x87}; int get_register_pos(char reg) { if(reg == 'A') return 7; else if(reg == 'M') return 6; else if (reg == 'L') return 5; else if (reg == 'H') return 4; else if(reg == 'E') return 3; else if (reg == 'D') return 2; else if (reg == 'C') return 1; else if (reg == 'B') return 0; else { std::cout<<std::endl<<"err: the given register "<<reg<<" is not supported by architecture"<<std::endl; exit(0); } } ////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////// ///////////////////////////////////////////////// buffer builder for the file ////////////////////////////////////// typedef std::vector<char> buffer; buffer readfile(char *filename) { std::ifstream input(filename); if (input) { char ch='\0'; buffer v; while(input.get(ch)) { if( ch >= 32 && ch <= 126) v.push_back(ch); } return v; } else std::cout<<"err: No such file exist"<<std::endl; exit(1); } ////////////////////////////////////////////////// bufer builder ends here ///////////////////////////////////////// ///////////////////////////////////////////////// lexer startes here /////////////////////////////////////////////// struct token { TOKEN_CLASS tc; std::string value; int line_no; }; bool is_legal_label(std::string lexem) { if(lexem[0]=='_' || isalpha(lexem[0])) { for(int i=1; i < lexem.size() ; i++) { if(!(lexem[i]=='_' || isalpha(lexem[i]) || isdigit(lexem[i]) || lexem[i]=='-') ) return false; } return true; } return false; } TOKEN_CLASS resolve_token_class(std::string lexem) { for(int i = 0 ; i < ID0_LIST.size() ; i++) { if(lexem == ID0_LIST[i].name) return ID0; } for(int i = 0 ; i < ID1_LIST.size() ; i++) { if(lexem == ID1_LIST[i].name) return ID1; } if(lexem.size() == 1) { if(lexem[0] == 'A') return REGISTER; if(lexem[0] == 'B') return REGISTER; if(lexem[0] == 'C') return REGISTER; if(lexem[0] == 'D') return REGISTER; if(lexem[0] == 'E') return REGISTER; if(lexem[0] == 'H') return REGISTER; if(lexem[0] == 'L') return REGISTER; if(lexem[0] == 'M') return REGISTER; } if(is_legal_label(lexem)) { return LABEL; } if(lexem.size() == 3) { if(isdigit(lexem[0]) && isdigit(lexem[1]) && (lexem[2] == 'H')) return DATA; } if(lexem.size() == 5) { if(isdigit(lexem[0]) && isdigit(lexem[1]) && isdigit(lexem[2]) && isdigit(lexem[3]) && (lexem[4] == 'H')) return ADDR; } return UKN; } /*=================UTILITY FOR LEXER ==================================================*/ void printTokens(std::vector<token> TOKENISED_SOURCE) { for(int i=0 ; i < TOKENISED_SOURCE.size() ; i++) { std::cout<<"< "<<TOKENISED_SOURCE[i].tc<<" , "<<TOKENISED_SOURCE[i].value<<" , "<<TOKENISED_SOURCE[i].line_no<<" , "<<">"<<std::endl; } } void printToken(token t) { std::cout<<"< "<<t.tc<<" , "<<t.value<<" , "<<t.line_no<<" , "<<">"<<std::endl; } /*======================================================================================*/ /*==========================LEX ANALYSER CREATING SYMBOL TABLE==========================*/ typedef std::vector<token> symbol_table; symbol_table lex_analyse_source(buffer b) { symbol_table TOKENISED_SOURCE; char ch=' '; std::string lexem=""; int line_no=1; for(int i = 0; i < b.size() ; i++) { ch = b[i]; if(ch == SPACE) // seppration of operation to operands { if(lexem == "") // if nothing is being scanned then why do anything anywaw continue; TOKEN_CLASS tc = resolve_token_class(lexem); if(tc == UKN) { std::cout<<std::endl<<"err: unknown token "<<lexem<<" at line "<<line_no<<std::endl; exit(0); } token t = { tc ,lexem ,line_no }; TOKENISED_SOURCE.push_back(t); lexem=""; continue; } else if(ch == EOL) // separation of lines { if(lexem == "") // if nothing is being scanned then why do anything anywaw continue; TOKEN_CLASS tc = resolve_token_class(lexem); if(tc == UKN) { std::cout<<std::endl<<"err: unknown token "<<lexem<<" at line "<<line_no<<std::endl; exit(0); } token t = { tc ,lexem ,line_no }; TOKENISED_SOURCE.push_back(t); TOKENISED_SOURCE.push_back({EOL, ";" , line_no }); line_no++; lexem=""; continue; } else if( ch == COMMA) // seppration of arguements { if(lexem == "") // if nothing is being scanned then why do anything anywaw continue; TOKEN_CLASS tc = resolve_token_class(lexem); if(tc == UKN) { std::cout<<std::endl<<"err: unknown token "<<lexem<<" at line "<<line_no<<std::endl; exit(0); } token t = { tc ,lexem ,line_no }; TOKENISED_SOURCE.push_back(t); TOKENISED_SOURCE.push_back({COMMA , "," , line_no }); lexem=""; continue; } else if( ch == COLON) // labels { if(lexem == "") // if nothing is being scanned then why do anything anywaw continue; TOKEN_CLASS tc = resolve_token_class(lexem); if(tc == UKN) { std::cout<<std::endl<<"err: bad label "<<lexem<<" at line "<<line_no<<std::endl; exit(0); } token t = { tc ,lexem ,line_no }; TOKENISED_SOURCE.push_back(t); TOKENISED_SOURCE.push_back({COLON , ":" , line_no }); lexem=""; continue; } lexem+=ch; } // printTokens(TOKENISED_SOURCE); return TOKENISED_SOURCE; } /////////////////////////////////////////////////// lexer ends here ///////////////////////////////////////////////////// /*=============================================PARSER FOR THE SYMBOL TABLE=============================================*/ struct LABEL_TABLE_ENTRY { std::string LABEL_NAME; int mem_loc; bool resolve; // true => the JMP statement will look for those whose resolve is true i.e needs resolving. }; typedef std::vector<LABEL_TABLE_ENTRY> label_table; typedef std::vector<std::string> binarySource; /*===========UTILITY STUFF FOR PRINTINTS AND STUFF*=========================*/ void print_binary_source(binarySource &li) { std::cout<<std::endl; for(int i=0 ; i < li.size() ; i++) { std::cout<<i<<" : "<<li[i]<<std::endl; } } /*==========================================================================*/ // gets the code from the binary code tables based on which class of ID it is unsigned char getCode(std::string operation , TOKEN_CLASS tc) { if(tc == ID0) for(int i=0 ; i < ID0_LIST.size() ; i++) { if(ID0_LIST[i].name == operation) return ID0_LIST[i].binary; } if(tc == ID1) for(int i=0 ; i < ID1_LIST.size() ; i++) { if(ID1_LIST[i].name == operation) return ID1_LIST[i].binary; } std::cout<<std::endl<<"err: cant find opecode for "<<operation<<std::endl; exit(0); } binarySource parse_symbol_table(symbol_table symt , std::string start_point) { /* LABEL: COLON ID0 | COLON ID1 ID0: ; | R,R; | R; ID1: ADDR; | R,D; | D; | LABEL; */ label_table LABEL_TABLE; binarySource TRANSLATED_SOURCE; int state=0; int look_back=0; int mem_loc=0; for(int i = 0 ; i < symt.size() ; i++) { mem_loc = TRANSLATED_SOURCE.size(); switch(state) { case 0 : { if(symt[i].tc == ID0 || symt[i].tc == ID1) // ID0 => S1 state=1; else if(symt[i].tc == LABEL) { bool found=false; // is the label already existing in the label_table for(int k=0 ; k < LABEL_TABLE.size() ; k++) // iterate over the label table { if(LABEL_TABLE[k].LABEL_NAME == symt[i].value) // if the label is found { if(LABEL_TABLE[k].resolve == false) // was this label entered by a start synbol i.e by rule LABEL: ID0|ID1 { std::cout<<"err: reuse of label "<<symt[i].value<<" for denoting jump position at line "<<symt[i].line_no<<std::endl; exit(1); // if yes then exit since the label is getting used } // else resolve the label location in the jump statement unsigned short sp= stoi(start_point , nullptr , 16); // converting 0x8000 to decimal integer std::string addr = std::bitset<2*BINARY_WORD_SIZE>(sp + mem_loc).to_string(); // entering current location + start point in the the JMP location that created the label table entry TRANSLATED_SOURCE[LABEL_TABLE[k].mem_loc+1] = addr.substr(BINARY_WORD_SIZE,BINARY_WORD_SIZE); TRANSLATED_SOURCE[LABEL_TABLE[k].mem_loc+2] = addr.substr(0,BINARY_WORD_SIZE); // it is resolved hence delete the entry and decrement the counter // LABEL_TABLE.erase(LABEL_TABLE.begin()+k); // k--; found = true; } } // if not found then the following steps to be taken if(!found) { // not found i.e new label entry to be created for resolving by JMP statement LABEL_TABLE.push_back({symt[i].value , mem_loc , false}); } state=1; } else { std::cout<<std::endl<<"err: cannot parse the line "<<symt[i].line_no<<std::endl; exit(0); } break; } case 1 : { if(symt[i].tc == EOL) // ID0 SEMICOLON { look_back = i-1; // number_of_state passed TRANSLATED_SOURCE.push_back(std::bitset<BINARY_WORD_SIZE>(getCode(symt[look_back].value , symt[look_back].tc)).to_string()); state=0; } else if(symt[i].tc == REGISTER) // ID0 REGISTER => S2 state=2; else if(symt[i].tc == ADDR) // ID1 ADDR => S3 state=3; else if(symt[i].tc == DATA) // ID1 DATA => S6 state=6; else if(symt[i].tc == LABEL) // ID1 LABEL => S7 state =7; else if(symt[i].tc == COLON) // LABEL COLON => RESET state = 0; else { std::cout<<std::endl<<"err: cannot parse the line "<<symt[i].line_no<<std::endl; exit(0); } break; } case 2 : { if(symt[i].tc == EOL) // ID0 REGISTER SEMICOLON => RESET { look_back = i-2; // number of state passed unsigned char oppcode = (getCode(symt[look_back].value , symt[look_back].tc)); char reg = symt[look_back+1].value[0]; if(oppcode == ADD_MAP) // for ADD operation oppcode = ADD_TABLE[get_register_pos(reg)]; else { std::cout<<std::endl<<"err: the given operation "<<symt[look_back].value<<"at line "<<symt[look_back].line_no<<" with one register operand is part of architecture but does not have a table for hex code"<<std::endl; exit(0); } TRANSLATED_SOURCE.push_back(std::bitset<BINARY_WORD_SIZE>(oppcode).to_string()); // to be added more state = 0; } else if(symt[i].tc == COMMA) // IDO REGISTER COMMA => S3 state = 3; else { std::cout<<std::endl<<"err: cannot parse the line "<<symt[i].line_no<<std::endl; exit(0); } break; } case 3 :{ if(symt[i].tc == REGISTER) // ID0 REGISTER COMMA REGISTER => S4 state=4; else if(symt[i].tc == EOL) // ID1 ADDR SEMICOLOR => RESET { look_back = i - 2; // two states back unsigned char oppcode = (getCode(symt[look_back].value , symt[look_back].tc)); TRANSLATED_SOURCE.push_back(std::bitset<BINARY_WORD_SIZE>(oppcode).to_string()); look_back++; // this is a problem i have no ide why it is there // if we put statement ot t in directly in stoi then it gives out of bounds exception but why ????? // OPEN BUG std::string lower_bit = symt[look_back].value.substr(2,2); oppcode = std::stoi(lower_bit, nullptr , 16); // lower bit address arguements TRANSLATED_SOURCE.push_back(std::bitset<BINARY_WORD_SIZE>(oppcode).to_string()); oppcode = std::stoi(symt[look_back].value.substr(0,2), nullptr , 16);// higher bit address arguements TRANSLATED_SOURCE.push_back(std::bitset<BINARY_WORD_SIZE>(oppcode).to_string()); state=0; } else if(symt[i].tc == DATA) // ID1 REGISTER COMMA DATA => S5 state = 5; else { std::cout<<std::endl<<"err: cannot parse the line "<<symt[i].line_no<<std::endl; exit(0); } break; } case 4 :{ if(symt[i].tc == EOL) // ID0 REGISTER COMMA REGISTER SEMICOLON => RESET { look_back = i-4; // number of state passed unsigned char oppcode = (getCode(symt[look_back].value , symt[look_back].tc)); char reg1 = symt[look_back+1].value[0]; char reg2 = symt[look_back+3].value[0]; // skipping the COMMA in between if(oppcode == MOV_MAP) // for MOV opperation { oppcode = MOV_TABLE[get_register_pos(reg1)][get_register_pos(reg2)]; } else { std::cout<<std::endl<<"err: the given operation "<<symt[look_back].value<<" at line "<<symt[look_back].line_no<<" with two register operands is not part of architecture or does not have its opcode table specified"<<std::endl; exit(0); } TRANSLATED_SOURCE.push_back(std::bitset<BINARY_WORD_SIZE>(oppcode).to_string()); // to be added more state = 0; } else { std::cout<<std::endl<<"err: cannot parse the line "<<symt[i].line_no<<std::endl; exit(0); } break; } case 5 :{ if(symt[i].tc == EOL) // ID1 REGISTER COMMA DATA SEMICOLON => RESET { look_back = i-4; // number of state passed unsigned char oppcode = (getCode(symt[look_back].value , symt[look_back].tc)); char reg1 = symt[look_back+1].value[0]; if( oppcode == MVI_MAP) { oppcode = MVI_TABLE[get_register_pos(reg1)]; } else { std::cout<<std::endl<<"err: the given operation "<<symt[look_back].value<<" at line "<<symt[look_back].line_no<<" with one register and data operand is not part of architecture or does not have its opcode table specified"<<std::endl; exit(0); } TRANSLATED_SOURCE.push_back(std::bitset<BINARY_WORD_SIZE>(oppcode).to_string()); oppcode = std::stoi(symt[look_back+3].value.substr(0,2), nullptr , 16); TRANSLATED_SOURCE.push_back(std::bitset<BINARY_WORD_SIZE>(oppcode).to_string()); state=0; } else { std::cout<<std::endl<<"err: cannot parse the line "<<symt[i].line_no<<std::endl; exit(0); } break; } case 6 :{ if(symt[i].tc == EOL) // ID1 DATA SEMICOLON => RESET { look_back = i-2; // number of state passed unsigned char oppcode = (getCode(symt[look_back].value , symt[look_back].tc)); TRANSLATED_SOURCE.push_back(std::bitset<BINARY_WORD_SIZE>(oppcode).to_string()); oppcode = std::stoi(symt[look_back+1].value.substr(0,2), nullptr , 16); TRANSLATED_SOURCE.push_back(std::bitset<BINARY_WORD_SIZE>(oppcode).to_string()); state=0; } else { std::cout<<std::endl<<"err: cannot parse the line "<<symt[i].line_no<<std::endl; exit(0); } break; } case 7 :{ if(symt[i].tc == EOL) // ID1 LABEL SEMICOLON => RESET { look_back = i-2; // number of state passed unsigned char oppcode = (getCode(symt[look_back].value , symt[look_back].tc)); TRANSLATED_SOURCE.push_back(std::bitset<BINARY_WORD_SIZE>(oppcode).to_string()); bool found=false; // see whether the label exist in the list already or not for(int k=0 ; k < LABEL_TABLE.size() ; k++) { if(LABEL_TABLE[k].resolve==false && LABEL_TABLE[k].LABEL_NAME == symt[look_back+1].value) { unsigned short sp= stoi(start_point , nullptr , 16); // converting 0x8000 to decimal integer std::string addr = std::bitset<2*BINARY_WORD_SIZE>(sp + LABEL_TABLE[k].mem_loc).to_string(); TRANSLATED_SOURCE.push_back(addr.substr(BINARY_WORD_SIZE,BINARY_WORD_SIZE)); TRANSLATED_SOURCE.push_back(addr.substr(0,BINARY_WORD_SIZE)); found = true; break; } } if(!found) { TRANSLATED_SOURCE.push_back(""); TRANSLATED_SOURCE.push_back(""); LABEL_TABLE.push_back({symt[look_back+1].value , mem_loc , true}); } state=0; } else { std::cout<<std::endl<<"err: cannot parse the line "<<symt[i].line_no<<std::endl; exit(0); } break; } } } for(int k=0 ; k < TRANSLATED_SOURCE.size() ; k++) { if(TRANSLATED_SOURCE[k] == "") { std::cout<<"err: possible unresolved labels"; exit(1); } } return TRANSLATED_SOURCE; } /////////////////////////////////////////////////////// parser ends //////////////////////////////////////////////////// ////////////////////////////////////////////////////// WRITE FILE ////////////////////////////////////////////////////// void writeFile(binarySource bs, std::string filename) { std::ofstream output(filename); if (output) { for(int i = 0 ; i < bs.size() ; i++) { output<<bs[i]<<"\n"; } output.close(); } else std::cout<<"err: failed to create file "<<std::endl; exit(1); } int main(int argc , char *argv[]) { if(argc < 2) std::cout<<"err: No file given"<<std::endl; else { std::string start_point="8000"; if(argc == 3) { start_point = argv[2]; } auto b = readfile(argv[1]); auto st = lex_analyse_source(b); auto ts = parse_symbol_table(st , start_point); writeFile(ts , "a.dat"); } }
29.610787
240
0.553094
[ "vector" ]
728d98f0eeb16e67df66eb851c27322cd4d19a89
2,663
hpp
C++
czrpc/base/thread_pool.hpp
chxuan/czrpc
95695f6400e8d981f6e451707937cea3d92c87d5
[ "MIT" ]
5
2017-02-12T14:39:28.000Z
2021-10-07T04:54:09.000Z
czrpc/base/thread_pool.hpp
xulinzhang/czrpc
95695f6400e8d981f6e451707937cea3d92c87d5
[ "MIT" ]
null
null
null
czrpc/base/thread_pool.hpp
xulinzhang/czrpc
95695f6400e8d981f6e451707937cea3d92c87d5
[ "MIT" ]
4
2018-08-24T02:31:14.000Z
2021-02-20T07:34:29.000Z
#pragma once #include <vector> #include <queue> #include <memory> #include <thread> #include <atomic> #include <mutex> #include <condition_variable> #include <future> #include <functional> #include <stdexcept> namespace czrpc { namespace base { class thread_pool { public: explicit thread_pool() : is_stop_threadpool_(false) {} ~thread_pool() { stop(); } void init_thread_num(std::size_t num) { for (size_t i = 0; i < num; ++i) { auto t = std::make_shared<std::thread>(std::bind(&thread_pool::run_task, this)); thread_vec_.emplace_back(t); } } template<typename Function, typename... Args> auto add_task(Function&& func, Args&&... args) -> std::future<typename std::result_of<Function(Args...)>::type> { if (is_stop_threadpool_) { throw std::runtime_error("Add task on stopped thread pool"); } using return_type = typename std::result_of<Function(Args...)>::type; auto task = std::make_shared<std::packaged_task<return_type()>>( std::bind(std::forward<Function>(func), std::forward<Args>(args)...)); std::future<return_type> res = task->get_future(); std::unique_lock<std::mutex> lock(mutex_); task_queue_.emplace([task](){ (*task)(); }); lock.unlock(); cond_.notify_one(); return res; } void stop() { std::call_once(call_flag_, [this]{ stop_impl(); }); } std::size_t size() { std::unique_lock<std::mutex> lock(mutex_); return task_queue_.size(); } private: void run_task() { while (true) { std::function<void()> task; { std::unique_lock<std::mutex> lock(mutex_); cond_.wait(lock, [this]{ return is_stop_threadpool_ || !task_queue_.empty(); }); if (is_stop_threadpool_ && task_queue_.empty()) { return; } task = std::move(task_queue_.front()); task_queue_.pop(); } task(); } } void stop_impl() { is_stop_threadpool_ = true; cond_.notify_all(); for(auto& iter: thread_vec_) { if (iter->joinable()) { iter->join(); } } } private: std::vector<std::shared_ptr<std::thread>> thread_vec_; std::queue<std::function<void()>> task_queue_; std::mutex mutex_; std::condition_variable cond_; std::atomic<bool> is_stop_threadpool_; std::once_flag call_flag_; }; } }
23.156522
143
0.547127
[ "vector" ]
728e7f6800305e095a79cc5216eb77345f5a8cd4
2,059
cpp
C++
main.cpp
ushitora-anqou/aqTFHE
608fb791c65f2208c96cc3dfb9bb8610d2f693ca
[ "Apache-2.0" ]
1
2020-03-30T11:07:50.000Z
2020-03-30T11:07:50.000Z
main.cpp
ushitora-anqou/aqTFHE
608fb791c65f2208c96cc3dfb9bb8610d2f693ca
[ "Apache-2.0" ]
null
null
null
main.cpp
ushitora-anqou/aqTFHE
608fb791c65f2208c96cc3dfb9bb8610d2f693ca
[ "Apache-2.0" ]
null
null
null
#include "aqtfhe.hpp" // #include <gperftools/profiler.h> #include <chrono> #include <iostream> // #include "test.inc" int main() { test_aqtfhe(); using namespace aqtfhe::native; std::random_device randeng; std::bernoulli_distribution binary(0.5); secret_key skey{lwe_params::tfhe_default(), randeng}; cloud_key ckey = skey.get_cloud_key(randeng); const int TEST_SIZE = 100; // Prepare plain data std::vector<bool> p, q, r; for (int i = 0; i < TEST_SIZE; i++) p.push_back(binary(randeng)); for (int i = 0; i < TEST_SIZE; i++) q.push_back(binary(randeng)); for (int i = 0; i < TEST_SIZE; i++) r.push_back(!(p[i] & q[i])); // Encrypt the data std::vector<encrypted_bit> p_enc, q_enc, r_enc; for (int i = 0; i < TEST_SIZE; i++) p_enc.emplace_back(skey, randeng, p[i]); for (int i = 0; i < TEST_SIZE; i++) q_enc.emplace_back(skey, randeng, q[i]); r_enc.reserve(TEST_SIZE); // Calc NAND auto begin = std::chrono::high_resolution_clock::now(); // ProfilerStart("sample.prof"); for (int i = 0; i < TEST_SIZE; i++) r_enc.push_back(p_enc[i].nand(q_enc[i], ckey)); // ProfilerStop(); auto end = std::chrono::high_resolution_clock::now(); // Print elapsed time. auto usec = std::chrono::duration_cast<std::chrono::microseconds>(end - begin); std::cerr << usec.count() / TEST_SIZE << "us / gate" << std::endl; // Check the results for (int i = 0; i < TEST_SIZE; i++) assert(r[i] == r_enc[i].decrypt(skey)); // std::random_device randeng; // secret_key skey{lwe_params::tfhe_default(), randeng}; // for (int i = 0; i < 10; i++) { // assert(encrypted_bit(skey, randeng, true).decrypt(skey) == true); // assert(encrypted_bit(skey, randeng, false).decrypt(skey) == false); //} // encrypted_bit bit0{skey, randeng, true}; // encrypted_bit bit1{skey, randeng, false}; // encrypted_bit bit2 = bit0.nand(bit1, skey.get_cloud_key(), randeng); }
28.205479
77
0.606605
[ "vector" ]
729005149d6e74bb8b54fb8f1ff4430692acaea2
6,765
cpp
C++
AMS/源码/androidP/system/core/init/ueventd_test.cpp
chen188669/AndroidStudyNotes
1fa01eb88c267049dda1e4bd998bff2e4abd92b4
[ "Apache-2.0" ]
null
null
null
AMS/源码/androidP/system/core/init/ueventd_test.cpp
chen188669/AndroidStudyNotes
1fa01eb88c267049dda1e4bd998bff2e4abd92b4
[ "Apache-2.0" ]
null
null
null
AMS/源码/androidP/system/core/init/ueventd_test.cpp
chen188669/AndroidStudyNotes
1fa01eb88c267049dda1e4bd998bff2e4abd92b4
[ "Apache-2.0" ]
null
null
null
/* * Copyright (C) 2017 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * 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 <linux/futex.h> #include <pthread.h> #include <sys/stat.h> #include <unistd.h> #include <atomic> #include <chrono> #include <string> #include <thread> #include <vector> #include <android-base/file.h> #include <android-base/scopeguard.h> #include <android-base/test_utils.h> #include <gtest/gtest.h> #include <selinux/android.h> #include <selinux/label.h> #include <selinux/selinux.h> using namespace std::chrono_literals; using namespace std::string_literals; template <typename T, typename F> void WriteFromMultipleThreads(std::vector<std::pair<std::string, T>>& files_and_parameters, F function) { auto num_threads = files_and_parameters.size(); pthread_barrier_t barrier; pthread_barrier_init(&barrier, nullptr, num_threads); auto barrier_destroy = android::base::make_scope_guard([&barrier]() { pthread_barrier_destroy(&barrier); }); auto make_thread_function = [&function, &barrier](const auto& file, const auto& parameter) { return [&]() { function(parameter); pthread_barrier_wait(&barrier); android::base::WriteStringToFile("<empty>", file); }; }; std::vector<std::thread> threads; // TODO(b/63712782): Structured bindings + templated containers are broken in clang :( // for (const auto& [file, parameter] : files_and_parameters) { for (const auto& pair : files_and_parameters) { const auto& file = pair.first; const auto& parameter = pair.second; threads.emplace_back(std::thread(make_thread_function(file, parameter))); } for (auto& thread : threads) { thread.join(); } } TEST(ueventd, setegid_IsPerThread) { if (getuid() != 0) { GTEST_LOG_(INFO) << "Skipping test, must be run as root."; return; } TemporaryDir dir; gid_t gid = 0; std::vector<std::pair<std::string, gid_t>> files_and_gids; std::generate_n(std::back_inserter(files_and_gids), 100, [&gid, &dir]() { gid++; return std::pair(dir.path + "/gid_"s + std::to_string(gid), gid); }); WriteFromMultipleThreads(files_and_gids, [](gid_t gid) { EXPECT_EQ(0, setegid(gid)); }); for (const auto& [file, expected_gid] : files_and_gids) { struct stat info; ASSERT_EQ(0, stat(file.c_str(), &info)); EXPECT_EQ(expected_gid, info.st_gid); } } TEST(ueventd, setfscreatecon_IsPerThread) { if (getuid() != 0) { GTEST_LOG_(INFO) << "Skipping test, must be run as root."; return; } if (!is_selinux_enabled() || security_getenforce() == 1) { GTEST_LOG_(INFO) << "Skipping test, SELinux must be enabled and in permissive mode."; return; } const char* const contexts[] = { "u:object_r:audio_device:s0", "u:object_r:sensors_device:s0", "u:object_r:video_device:s0" "u:object_r:zero_device:s0", }; TemporaryDir dir; std::vector<std::pair<std::string, std::string>> files_and_contexts; for (const char* context : contexts) { files_and_contexts.emplace_back(dir.path + "/context_"s + context, context); } WriteFromMultipleThreads(files_and_contexts, [](const std::string& context) { EXPECT_EQ(0, setfscreatecon(context.c_str())); }); for (const auto& [file, expected_context] : files_and_contexts) { char* file_context; ASSERT_GT(getfilecon(file.c_str(), &file_context), 0); EXPECT_EQ(expected_context, file_context); freecon(file_context); } } TEST(ueventd, selabel_lookup_MultiThreaded) { if (getuid() != 0) { GTEST_LOG_(INFO) << "Skipping test, must be run as root."; return; } // Test parameters constexpr auto num_threads = 10; constexpr auto run_time = 200ms; std::unique_ptr<selabel_handle, decltype(&selabel_close)> sehandle( selinux_android_file_context_handle(), &selabel_close); ASSERT_TRUE(sehandle); struct { const char* file; int mode; std::string expected_context; } files_and_modes[] = { {"/dev/zero", 020666, ""}, {"/dev/null", 020666, ""}, {"/dev/random", 020666, ""}, {"/dev/urandom", 020666, ""}, }; // Precondition, ensure that we can lookup all of these from a single thread, and store the // expected context for each. for (size_t i = 0; i < arraysize(files_and_modes); ++i) { char* secontext; ASSERT_EQ(0, selabel_lookup(sehandle.get(), &secontext, files_and_modes[i].file, files_and_modes[i].mode)); files_and_modes[i].expected_context = secontext; freecon(secontext); } // Now that we know we can access them, and what their context should be, run in parallel. std::atomic_bool stopped = false; std::atomic_uint num_api_failures = 0; std::atomic_uint num_context_check_failures = 0; std::atomic_uint num_successes = 0; auto thread_function = [&]() { while (!stopped) { for (size_t i = 0; i < arraysize(files_and_modes); ++i) { char* secontext; int result = selabel_lookup(sehandle.get(), &secontext, files_and_modes[i].file, files_and_modes[i].mode); if (result != 0) { num_api_failures++; } else { if (files_and_modes[i].expected_context != secontext) { num_context_check_failures++; } else { num_successes++; } freecon(secontext); } } } }; std::vector<std::thread> threads; std::generate_n(back_inserter(threads), num_threads, [&]() { return std::thread(thread_function); }); std::this_thread::sleep_for(run_time); stopped = true; for (auto& thread : threads) { thread.join(); } EXPECT_EQ(0U, num_api_failures); EXPECT_EQ(0U, num_context_check_failures); EXPECT_GT(num_successes, 0U); }
33
96
0.618921
[ "vector" ]
729313e7566c5b25049fc9d39b3f33ef0af185ed
10,111
cpp
C++
src/collision/narrowphase/Penetration.cpp
jonnytown/positional
3c23d9fa00509936f6300393255bcc40aabf1ec5
[ "MIT" ]
null
null
null
src/collision/narrowphase/Penetration.cpp
jonnytown/positional
3c23d9fa00509936f6300393255bcc40aabf1ec5
[ "MIT" ]
null
null
null
src/collision/narrowphase/Penetration.cpp
jonnytown/positional
3c23d9fa00509936f6300393255bcc40aabf1ec5
[ "MIT" ]
null
null
null
#include "Penetration.h" #include "simulation/Body.h" #include "collision/collider/Collider.h" #include "collision/collider/BoxCollider.h" #include "collision/collider/SphereCollider.h" #include "collision/collider/CapsuleCollider.h" #include "Simplex.h" #include "Polytope.h" namespace Positional::Collision { const Float k_gjk_epsilonSq = Math::Epsilon; const Float k_epa_epsilonSq = 0.000000001; inline void makeContact( const Collider &a, const Collider &b, const Vec3 &center, const Vec3 &radius, const Vec3 &normal, const Float &depth, ContactPoint &outContact) { outContact.normal = normal; outContact.depth = depth; outContact.pointA = Body::pointToLocal(a.body(), center + normal * (radius - depth)); outContact.pointB = Body::pointToLocal(b.body(), center + normal * radius); } inline void makeContact( const Collider &a, const Collider &b, const Vec3 &center, const Vec3 &radius, const Vec3 &normal, const Float &depth, bool swap, ContactPoint &outContact) { makeContact(a, b, center, radius, normal, depth, outContact); if (swap) { outContact.normal = -outContact.normal; std::swap(outContact.pointA, outContact.pointB); } } bool Penetration::sphereSphere(const Collider &a, const Collider &b, ContactPoint &outContact) { const Vec3 bCenter = b.pointToWorld(Vec3::zero); const Vec3 toA = a.pointToWorld(Vec3::zero) - bCenter; const Float rs = (a.shape.radius + b.shape.radius); const Float lenSq = toA.lengthSq(); if (lenSq < rs * rs) { const Float len = Math::sqrt(lenSq); makeContact(a, b, bCenter, b.shape.radius, toA * (1 / len), rs - len, outContact); return true; } return false; } bool Penetration::capsuleCapsule(const Collider &a, const Collider &b, ContactPoint &outContact) { const Float al_2 = a.shape.length / 2; const Vec3 a0 = a.pointToWorld(Vec3(-al_2, 0, 0)); const Vec3 a1 = a.pointToWorld(Vec3(al_2, 0, 0)); const Float bl_2 = b.shape.length / 2; const Vec3 b0 = b.pointToWorld(Vec3(-bl_2, 0, 0)); const Vec3 b1 = b.pointToWorld(Vec3(bl_2, 0, 0)); Vec3 nearA, nearB; GeomUtil::nearestOnSegments(a0, a1, b0, b1, nearA, nearB); const Vec3 toA = nearA - nearB; const Float rs = (a.shape.radius + b.shape.radius); const Float lenSq = toA.lengthSq(); if (lenSq < rs * rs) { const Float len = Math::sqrt(lenSq); makeContact(a, b, nearB, b.shape.radius, toA * (1 / len), rs - len, outContact); return true; } return false; } bool Penetration::sphereCapsule(const Collider &sphere, const Collider &capsule, const bool &swapped, ContactPoint &outContact) { const Vec3 c = sphere.pointToWorld(Vec3::zero); const Float bl_2 = capsule.shape.length / 2; const Vec3 b0 = capsule.pointToWorld(Vec3(-bl_2, 0, 0)); const Vec3 b1 = capsule.pointToWorld(Vec3(bl_2, 0, 0)); const Vec3 b = GeomUtil::nearestOnSegment(c, b0, b1); const Vec3 toC = c - b; const Float rs = (sphere.shape.radius + capsule.shape.radius); const Float lenSq = toC.lengthSq(); if (lenSq < rs * rs) { const Float len = Math::sqrt(lenSq); makeContact(sphere, capsule, b, capsule.shape.radius, toC * (1 / len), rs - len, swapped, outContact); return true; } return false; } inline void testBoxNorm(const Float &test, const Vec3 &passNorm, Float &ioMin, Vec3 &outNorm) { if (test < ioMin) { ioMin = test; outNorm = passNorm; } } bool Penetration::boxSphere(const Collider &box, const Collider &sphere, const bool &swapped, ContactPoint &outContact) { const Vec3 centerInWorld = sphere.pointToWorld(Vec3::zero); const Vec3 centerInBoxSpace = box.pointToLocal(centerInWorld); const Bounds bounds(Vec3::zero, box.shape.extents); if (bounds.contains(centerInBoxSpace)) { Vec3 norm; const Vec3 &e = bounds.extents(); Float min = FLOAT_MAX; testBoxNorm(Math::abs(e.x - centerInBoxSpace.x), Vec3::neg_x, min, outContact.normal); testBoxNorm(Math::abs(-e.x - centerInBoxSpace.x), Vec3::pos_x, min, outContact.normal); testBoxNorm(Math::abs(e.y - centerInBoxSpace.y), Vec3::neg_y, min, outContact.normal); testBoxNorm(Math::abs(-e.y - centerInBoxSpace.y), Vec3::pos_y, min, outContact.normal); testBoxNorm(Math::abs(e.z - centerInBoxSpace.y), Vec3::neg_z, min, outContact.normal); testBoxNorm(Math::abs(-e.z - centerInBoxSpace.y), Vec3::pos_z, min, outContact.normal); makeContact( box, sphere, centerInWorld, sphere.shape.radius, box.vectorToWorld(outContact.normal), sphere.shape.radius + min, swapped, outContact); return true; } const Vec3 closest = bounds.nearest(centerInBoxSpace); const Vec3 toClosest = closest - centerInBoxSpace; const Float lenSq = toClosest.lengthSq(); if (lenSq < sphere.shape.radius * sphere.shape.radius) { const Float len = Math::sqrt(lenSq); makeContact( box, sphere, centerInWorld, sphere.shape.radius, box.vectorToWorld(toClosest * (1 / len)), sphere.shape.radius - len, swapped, outContact); return true; } return false; } inline UInt8 leastSignificantComponent(const Vec3 &v) { if (v.x <= v.y && v.x <= v.z) { return 0; } if (v.y < v.x && v.y <= v.z) { return 1; } return 2; } bool Penetration::gjk_epa(const Collider &a, const Collider &b, ContactPoint &outContact) { GJK_EPA_CSO cso; const bool gjkPass = gjk(a, b, cso); if (gjkPass) { epa(a, b, cso, outContact); return true; } return false; } bool Penetration::gjk(const Collider &a, const Collider &b, GJK_EPA_CSO &outSimplex) { // find initial support vertext using arbitrary first axis Vec3 support, supportA, supportB; Collider::support(a, b, Vec3::pos_x, support, supportA, supportB); const UInt32 MAX_ITERS = 16; for (UInt32 i = 0; i < MAX_ITERS; ++i) { Simplex::add(outSimplex, support, supportA, supportB); UInt8 nearDim, nearIndex; const Vec3 nearest = Simplex::nearest(outSimplex, nearDim, nearIndex); // nearest is origin: we have a collision //if (nearest.lengthSq() < k_gjk_epsilonSq) if (nearest.x == 0 && nearest.y == 0 && nearest.z == 0) { return true; } Simplex::reduce(outSimplex, nearDim, nearIndex); // negated nearest is vector to origin const Vec3 search = -nearest.normalized(); Collider::support(a, b, search, support, supportA, supportB); const Float supportDot = search.dot(support); const Float nearestDot = search.dot(nearest); if (supportDot <= nearestDot) { return false; } } return false; } const UInt32 MAX_EPA_ITERS = 28; void Penetration::epa(const Collider &a, const Collider &b, GJK_EPA_CSO &ioPolytope, ContactPoint &outContact) { // expand cso to tetrahedron if it is not alread switch (ioPolytope.vertCount) { case 1: { static const Vec3 searches[6] = { Vec3::neg_x, Vec3::pos_x, Vec3::neg_y, Vec3::pos_y, Vec3::neg_z, Vec3::pos_z}; for (UInt8 i = 0; i < 6; ++i) { Collider::support(a, b, searches[i], ioPolytope.vertices[1].p, ioPolytope.vertices[1].a, ioPolytope.vertices[1].b); if (ioPolytope.vertices[0].p.distanceSq(ioPolytope.vertices[1].p) > k_epa_epsilonSq) { break; } } } [[fallthrough]]; //end point to segment case 2: { static const Vec3 axes[3] = {Vec3::pos_x, Vec3::pos_y, Vec3::pos_z}; static const Float pi_3 = Math::Pi / 3.0; const Vec3 v = ioPolytope.vertices[1].p - ioPolytope.vertices[0].p; const UInt8 leastSigAxis = leastSignificantComponent(v); const Quat rot = Quat::fromAngleAxis(pi_3, v); Vec3 search = v.cross(axes[leastSigAxis]).normalize(); for (UInt8 i = 0; i < 6; ++i) { Collider::support(a, b, search, ioPolytope.vertices[2].p, ioPolytope.vertices[2].a, ioPolytope.vertices[2].b); if (ioPolytope.vertices[2].p.lengthSq() > k_epa_epsilonSq) { break; } search = rot * search; } } [[fallthrough]]; // end segment to triangle case 3: { const Vec3 u = ioPolytope.vertices[1].p - ioPolytope.vertices[0].p; const Vec3 v = ioPolytope.vertices[2].p - ioPolytope.vertices[0].p; Vec3 search = u.cross(v).normalize(); Collider::support(a, b, search, ioPolytope.vertices[3].p, ioPolytope.vertices[3].a, ioPolytope.vertices[3].b); if (ioPolytope.vertices[3].p.lengthSq() < k_epa_epsilonSq) { search = -search; Collider::support(a, b, search, ioPolytope.vertices[3].p, ioPolytope.vertices[3].a, ioPolytope.vertices[3].b); } } break; //end triangle to tetrahedron default: break; } Polytope::init(ioPolytope); UInt32 nearestTriIdx; Float nearestLenSq; Vec3 nearest = Polytope::nearest(ioPolytope, nearestLenSq, nearestTriIdx); for (UInt32 i = 0; i < MAX_EPA_ITERS; ++i) { const Vec3 search = ioPolytope.normals[nearestTriIdx].normalized(); Vec3 support, supportA, supportB; Collider::support(a, b, search, support, supportA, supportB); Polytope::expand(ioPolytope, support, supportA, supportB, nearestTriIdx); UInt32 idx; Float lenSq; Vec3 point = Polytope::nearest(ioPolytope, lenSq, idx); const bool closeEnough = Math::approx(nearestLenSq, lenSq, k_epa_epsilonSq); nearest = point; nearestLenSq = lenSq; nearestTriIdx = idx; if (closeEnough) { break; } } const UInt32 tidx = nearestTriIdx * 3; const UInt32 ia = ioPolytope.tris[tidx]; const UInt32 ib = ioPolytope.tris[tidx + 1]; const UInt32 ic = ioPolytope.tris[tidx + 2]; const Vertex &va = ioPolytope.vertices[ia]; const Vertex &vb = ioPolytope.vertices[ib]; const Vertex &vc = ioPolytope.vertices[ic]; const Vec3 bary = GeomUtil::barycentric( nearest, va.p, vb.p, vc.p); outContact.pointA = Body::pointToLocal(a.body(), a.pointToWorld( va.a * bary.x + vb.a * bary.y + vc.a * bary.z)); outContact.pointB = Body::pointToLocal(b.body(), b.pointToWorld( va.b * bary.x + vb.b * bary.y + vc.b * bary.z)); outContact.depth = Math::sqrt(nearestLenSq); outContact.normal = nearest / -outContact.depth; } } // namespace Positional
27.777473
128
0.671348
[ "shape", "vector" ]
7299ecacf3f4ff3ae04183004456eeb30dc4c803
1,857
cpp
C++
homsearch_test.cpp
agharbi6/homsearch
78dc8d0b573efb12f0cb685fc520e09cbab156dc
[ "MIT" ]
6
2015-11-21T09:53:53.000Z
2021-12-09T00:21:09.000Z
homsearch_test.cpp
rostam/homsearch
9f69cec1d1496e4721fd79f43c4d1591dd1eb35c
[ "MIT" ]
null
null
null
homsearch_test.cpp
rostam/homsearch
9f69cec1d1496e4721fd79f43c4d1591dd1eb35c
[ "MIT" ]
3
2015-11-11T09:50:54.000Z
2021-07-29T13:34:20.000Z
/* * Copyright (c) 2015 Tomas Gavenciak <gavento@ucw.cz> * * 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. */ #include "homsearch_lib.h" #include <iostream> #define push_array(G, A) { const vector<int> pav(A, A + (sizeof(A) / sizeof(int))); G.push_back(pav); } using namespace std; int main() { vector<vector<int> > G; const int v0[] = {1,2,3,4}; push_array(G, v0); const int v1[] = {0,2}; push_array(G, v1); const int v2[] = {0,1,3}; push_array(G, v2); const int v3[] = {0,4,2}; push_array(G, v3); const int v4[] = {0,3}; push_array(G, v4); homsearch *h = new_homsearch(G, G, -1, true, true, -1); h->search(0); for (auto r: h->res_list) { for (auto fv: r) cout << fv << " "; cout << "\n"; } assert(h->res_count == 6); delete h; return 0; }
34.388889
103
0.67259
[ "vector" ]
729e22e25fe1df1971364f71be7a7809231dd89c
5,086
cpp
C++
HistBackProject_V4/main.cpp
BonTub/OpenCV_SimpleDemos
21b423f9c7e54b4bb943ef4fb44001fafacb51cb
[ "MIT" ]
null
null
null
HistBackProject_V4/main.cpp
BonTub/OpenCV_SimpleDemos
21b423f9c7e54b4bb943ef4fb44001fafacb51cb
[ "MIT" ]
null
null
null
HistBackProject_V4/main.cpp
BonTub/OpenCV_SimpleDemos
21b423f9c7e54b4bb943ef4fb44001fafacb51cb
[ "MIT" ]
null
null
null
#include "colorhistogram.h" #include "contentfinder.h" #include <opencv2/videoio/videoio.hpp> #include <opencv2/video/tracking.hpp> #include <iostream> void mouseHandler(int event, int x, int y, int flags, void *param); cv::Rect box = cv::Rect(0,0,-1,-1); bool drawing_box = false; bool flag_init = false; cv::Mat image_sample; int main() { // 可定制参数 double th=0.05f; // 二值化阈值 int minSaturation=100; // 饱和度阈值 cv::Mat element1 = cv::Mat(9,9,CV_8U,cv::Scalar(1)); cv::Mat element2 = cv::Mat(9,9,CV_8U,cv::Scalar(1)); int minArea = 2000; // 实例化两个类 ColorHistogram hc; ContentFinder finder; // 摄像头 cv::VideoCapture cap; cap.open(0); if (!cap.isOpened()) { std::cout << "Fail opening the camera!" << std::endl; return -1; } cv::namedWindow("detection"); cv::namedWindow("Frame"); cv::setMouseCallback("Frame", mouseHandler); cv::Mat frame, image_detect; // 等待鼠标圈出目标 while ((char)cv::waitKey(20) != 'y') { if ((char)cv::waitKey(20) == 'q') { cap.release(); cv::destroyAllWindows(); return 0; } cap.read(frame); cv::rectangle(frame, box, cv::Scalar(0,255,0), 2); cv::imshow("Frame", frame); } cv::setMouseCallback("Frame", NULL); // 计算样本图像直方图 image_sample = frame(box).clone(); hc.getHueHistogram(image_sample, minSaturation); while ((char)cv::waitKey(20) != 'q') { cap.read(frame); // 识别当前图像低饱和度像素 std::vector <cv::Mat> v; cv::Mat image_hsv; cv::cvtColor(frame,image_hsv,cv::COLOR_BGR2HSV); cv::split(image_hsv,v); //v[1]是饱和度分量 cv::threshold(v[1],v[1],minSaturation,255,cv::THRESH_BINARY); // 寻找目标 finder.setHistogram(hc.hist); finder.setThreshold(th); finder.findHue(image_hsv); //去除低饱和度像素 cv::bitwise_and(finder.result,v[1],finder.result); // 形态学运算 cv::dilate(finder.result,finder.result,element1); cv::erode(finder.result,finder.result,element2); // 直方图反投影初始化矩形框 if (!flag_init) { // 提取连通区域轮廓 image_detect = finder.result.clone(); std::vector< std::vector<cv::Point> > contours; cv::findContours(image_detect,contours, cv::RETR_EXTERNAL, cv::CHAIN_APPROX_NONE); // 提取包围盒 std::vector<cv::Rect> boundRect = std::vector<cv::Rect>(contours.size()); for(int i=0; i<(int)contours.size(); i++) { boundRect[i]=cv::boundingRect(cv::Mat(contours[i])); } // 选出最大的一个包围盒 if(contours.size()!=0) { for(int i=0,pos_max=0; i<(int)contours.size(); i++) { if(boundRect[pos_max].area() <= boundRect[i].area()) { pos_max=i; box=boundRect[pos_max]; } } } flag_init=true; } // CamShift算法 if (box.area()>minArea) { image_detect=finder.result.clone(); cv::CamShift(image_detect,box, cv::TermCriteria(cv::TermCriteria::MAX_ITER,10,0.1)); } else flag_init=false; // 绘制 image_detect=frame.clone(); if (box.area()>minArea) { cv::rectangle(image_detect,box,cv::Scalar(0,255,0),2); cv::circle(image_detect, cv::Point(box.x+box.width/2,box.y+box.height/2), 5,cv::Scalar(255,0,0),2); } else { cv::rectangle(image_detect,box,cv::Scalar(0,0,255),2); cv::circle(image_detect, cv::Point(box.x+box.width/2,box.y+box.height/2), 5,cv::Scalar(255,0,0),2); } cv::imshow("Frame", frame); cv::imshow("detection",image_detect); } cap.release(); cv::destroyAllWindows(); return 0; } void mouseHandler(int event, int x, int y, int flags, void *param) { switch (event) { case cv::EVENT_MOUSEMOVE: if (drawing_box) { box.width = x - box.x; box.height = y - box.y; } break; case cv::EVENT_LBUTTONDOWN: drawing_box = true; box = cv::Rect(x, y, 0, 0); break; case cv::EVENT_LBUTTONUP: drawing_box = false; if (box.width < 0) { box.x += box.width; box.width *= -1; } if (box.height < 0) { box.y += box.height; box.height *= -1; } //image_sample = frame(box).clone(); break; } }
28.413408
74
0.480535
[ "vector" ]
72a1864cdef40190df4a0e965a1a1ee31b7b96e1
11,219
cpp
C++
statisticslibsvm/src/statisticslibsvm.cpp
AngelinaScheck/BachelorBioinfo
9148666f9184439f4326c65f437b6fdb47d2d2dd
[ "BSD-3-Clause" ]
null
null
null
statisticslibsvm/src/statisticslibsvm.cpp
AngelinaScheck/BachelorBioinfo
9148666f9184439f4326c65f437b6fdb47d2d2dd
[ "BSD-3-Clause" ]
null
null
null
statisticslibsvm/src/statisticslibsvm.cpp
AngelinaScheck/BachelorBioinfo
9148666f9184439f4326c65f437b6fdb47d2d2dd
[ "BSD-3-Clause" ]
null
null
null
#include <seqan/vcf_io.h> #include <seqan/find.h> #include <iostream> #include <fstream> #include <limits> #include <ctype.h> #include <stdlib.h> #include <vector> #include "statisticslibsvm.h" #include "svm.h" #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) #define CharStringToStdString(x) std::string(toCString(x)) //initialize lib svm structures struct svm_parameter param; struct svm_problem prob; struct svm_node *node; //(index,value) pair pointers struct svm_model *model; //============================================================================================= int main(){ //------define parameters for libsvm (now default)------------------------------------------------ struct svm_parameter param; param.svm_type = C_SVC; param.kernel_type = RBF; param.degree = 3; param.gamma = 0; // 1/num_features param.coef0 = 0; param.nu = 0.5; param.cache_size = 100; param.C = 1; param.eps = 1e-3; param.p = 0.1; param.shrinking = 1; param.probability = 0; param.nr_weight = 0; param.weight_label = NULL; param.weight = NULL; //------------------storage and variables for training and testing data------------------------------------- int attributeNumber =3; //now SE, PE, RE, evtl. change or parse std::vector<Info_sep> testInfo; std::vector<Info_sep> trainInfo; Info_sep infoInStruct; VcfRecord record; int entryNumber=0; std::vector<int> labelsTrain; //labelsTrain.reserve(1000000); std::vector<std::vector<double> > attributesTrain; //attributesTrain.reserve(1000000); std::vector<int> labelsTest; //labelsTest.reserve(1000000); std::vector<std::vector<double> > attributesTest; //attributesTest.reserve(1000000); std::vector<double> attributes(attributeNumber); for(unsigned i=0; i < attributeNumber; ++i){ attributes.push_back(0); } //-------read vcf file, while reading need to get: number of positives+negatives, number of unknown, generate int vector for labels, generate matrix for values----- // Open input file. VcfFileIn vcfIn(toCString(getAbsolutePath("../../47_out.vcf"))); // Attach to standard output. VcfFileOut vcfOut(vcfIn); open(vcfOut, std::cout, Vcf()); // Copy over header. VcfHeader header; readHeader(header, vcfIn); while (!atEnd(vcfIn)){ entryNumber++; readRecord(record, vcfIn); feedInfo(entryNumber, record, infoInStruct); if(empty(infoInStruct.se)&& empty(infoInStruct.pe) && empty(infoInStruct.re)){ continue; } //negative case if(infoInStruct.vt=="1"){ labelsTrain.push_back(-1); attributes[0]=(std::stod(infoInStruct.se)); attributes[1]=(std::stod(infoInStruct.pe)); attributes[2]=(std::stod(infoInStruct.re)); attributesTrain.push_back(attributes); } //positive case else if(infoInStruct.vt=="3"){ labelsTrain.push_back(1); attributes[0]=(std::stod(infoInStruct.se)); attributes[1]=(std::stod(infoInStruct.pe)); attributes[2]=(std::stod(infoInStruct.re)); attributesTrain.push_back(attributes); } //unknown case else if(infoInStruct.vt=="2"){ labelsTest.push_back(0); attributes[0]=(std::stod(infoInStruct.se)); attributes[1]=(std::stod(infoInStruct.pe)); attributes[2]=(std::stod(infoInStruct.re)); attributesTest.push_back(attributes); } clearInfo(infoInStruct); } //---------initialization for libsvm------------------------------------------------------------------------- struct svm_problem prob; //struct svm_node *nodePointer; //(index,value) pair pointers //struct svm_model *model; //get size attributesTrain.shrink_to_fit(); attributesTest.shrink_to_fit(); labelsTrain.shrink_to_fit(); labelsTest.shrink_to_fit(); // std::vector<double> forprint; // for(unsigned i=0; i<attributesTrain.size(); i++){ // forprint=attributesTrain[i]; // std::cout<<labelsTrain[i]<<" 1:"<<forprint[0]<<" 2:"<<forprint[1]<<" 3:"<<forprint[2]<<std::endl; // } int numberOfLinesTest=attributesTest.size(); int numberOfLinesTrain=attributesTrain.size(); std::cout<<"vcf file read, "<< numberOfLinesTrain<<" records for training"<<std::endl; // //------fill in the libsvm problem structure and the libsvm node structure, synchronise the addresses----------- prob.l=numberOfLinesTrain; prob.y = Malloc(double,prob.l); //target values for (unsigned i=0; i < prob.l; i++){ prob.y[i] = labelsTrain[i]; } prob.x = Malloc(struct svm_node *, prob.l); //nodePointer= Malloc(struct svm_node, (attributeNumber+1)); for (unsigned entryRow=0; entryRow< prob.l; entryRow++){ svm_node* nodePointer = Malloc(svm_node,(attributeNumber+1)); for(unsigned attributeColumn=0; attributeColumn<attributeNumber; attributeColumn++){ nodePointer[attributeColumn].index=attributeColumn+1; //columns are calculated from 0 but indices from 1 except for precomputed kernel nodePointer[attributeColumn].value=attributesTrain[entryRow][attributeColumn]; } //in libsvm index = -1 indicates the end of one vector (readme libsvm) nodePointer[attributeNumber].index=-1; nodePointer[attributeNumber].value=0; //hand over address of the nodes-vector to prob.x prob.x[entryRow] = nodePointer; free(nodePointer); } //print // for (int i = 0; i < prob.l; i++) // { // std::cout<<prob.y[i]<<" "; // for (int k = 0; k < attributeNumber; k++) // { // int index = (prob.x[i][k].index); // double value = (prob.x[i][k].value); // std::cout<<index<<":"<<value<<" "; // } // std::cout<<std::endl; // } // std::cout<<"all ok"<<std::endl; //-------make model------------------------------------------------------------------------------- std::cout<<"making model"<<std::endl; svm_model *model = svm_train(&prob,&param); //train svm_save_model("modelFromImplem.model", model); //save int check= svm_check_probability_model(model); std::cout<<"model made, beginning prediction"<<std::endl; //-------predict--------------------------------------------------------------------------------- //make node and predict for every entry in testing data (attributesTest), write result to outputfile std::ofstream svmout; svmout.open("predictFromImplem.out"); for(unsigned testInstance=0; testInstance<numberOfLinesTest; testInstance++){ svm_node* testNode = Malloc(svm_node,(attributeNumber+1)); for(unsigned attributeColumn=0; attributeColumn<attributeNumber; attributeColumn++){ testNode[attributeColumn].index=attributeColumn+1; //columns are calculated from 0 but indices from 1 except for precomputed kernel testNode[attributeColumn].value=attributesTest[testInstance][attributeColumn]; } //in libsvm index = -1 indicates the end of one vector (readme libsvm) testNode[attributeNumber].index=-1; testNode[attributeNumber].value=0; double result=svm_predict(model, testNode); svmout<<result<<std::endl; free(testNode); } svmout.close(); std::cout<<"predictions written to predictFromImplem.out" <<std::endl; //---------clean up------------------------------------------------------------------------------------ svm_destroy_param(&param); free(prob.y); free(prob.x); svm_free_model_content(model); return 0; } //========================================================================================== //clear up saved separated record info void clearInfo(Info_sep & infoInStruct){ infoInStruct.sc.clear(); infoInStruct.vt.clear(); infoInStruct.se.clear(); infoInStruct.pe.clear(); infoInStruct.ce.clear(); infoInStruct.re.clear(); infoInStruct.rd.clear(); infoInStruct.gc.clear(); infoInStruct.cp.clear(); infoInStruct.svlen.clear(); infoInStruct.svtype.clear(); infoInStruct.recordID.clear(); infoInStruct.entryNumber=0; } //--------------save record info from vcf as struct------------------------------------------ void feedInfo(int entryNumber, seqan::VcfRecord record, Info_sep & infoInStruct){ //save recordID and entryNumber infoInStruct.entryNumber= entryNumber; infoInStruct.recordID=CharStringToStdString(record.id); //loop over Info CharString, pattern matching for keywords like SC, copy everything between keyword= and ; intro entry in Info_sep structure and write to outputfile for libsvm //Processing of the Recordinfo Finder<CharString> finder(record.info); //Prepare Patterns(keywords) String<CharString> needles; appendValue(needles, "SC="); appendValue(needles, ";VT="); appendValue(needles, ";SE="); appendValue(needles, ";PE="); appendValue(needles, ";CE="); appendValue(needles, ";RE="); appendValue(needles, ";RD="); appendValue(needles, ";GC="); appendValue(needles, ";CP="); appendValue(needles, ";SVLEN="); appendValue(needles, ";SVTYPE="); //Find keywords, value starts at position Matchposition+Patternlength+2 and ends before semicolon Pattern<String<CharString>, WuManber> pattern(needles); unsigned endOfValue; while (find(finder, pattern)) { for(unsigned i=endPosition(finder); i<=length(record.info); i++){ if(record.info[i]==';' || i==length(record.info)) { //std::cout<< "end of hit at position " << i<< std::endl; endOfValue=i; break; } } //save info CharString value = infix(record.info, endPosition(finder), endOfValue); if(infix(finder)=="SC"){ infoInStruct.sc=CharStringToStdString(value); } if(infix(finder)==";VT="){ infoInStruct.vt=CharStringToStdString(value); } if(infix(finder)==";SE="){ infoInStruct.se=CharStringToStdString(value); } if(infix(finder)==";PE="){ infoInStruct.pe=CharStringToStdString(value); } if(infix(finder)==";CE="){ infoInStruct.ce=CharStringToStdString(value); } if(infix(finder)==";RE="){ infoInStruct.re=CharStringToStdString(value); } if(infix(finder)==";RD="){ infoInStruct.rd=CharStringToStdString(value); } if(infix(finder)==";GC="){ infoInStruct.gc=CharStringToStdString(value); } if(infix(finder)==";CP="){ infoInStruct.cp=CharStringToStdString(value); } if(infix(finder)==";SVLEN="){ infoInStruct.svlen=CharStringToStdString(value); } if(infix(finder)==";SVTYPE="){ infoInStruct.svtype=CharStringToStdString(value); } } }
37.026403
179
0.58909
[ "vector", "model" ]
72a266d2901c058fe2d143970cc48a7cfd3092e6
5,043
cpp
C++
code/tweakval.cpp
joeld42/darkstar
e857e313db7fdd3b77d45a692d22da0c953aff58
[ "MIT" ]
null
null
null
code/tweakval.cpp
joeld42/darkstar
e857e313db7fdd3b77d45a692d22da0c953aff58
[ "MIT" ]
null
null
null
code/tweakval.cpp
joeld42/darkstar
e857e313db7fdd3b77d45a692d22da0c953aff58
[ "MIT" ]
1
2019-10-05T02:04:19.000Z
2019-10-05T02:04:19.000Z
#include <map> #include <vector> #include <string> #include <sys/stat.h> #include <stdlib.h> #include "tweakval.h" #if TV_USE_TWEAKVAL struct Tweakable { enum TweakableType { Type_INT, Type_FLOAT, }; TweakableType type; union { float f_val; int i_val; } val; }; struct TweakableSourceFile { std::string filename; time_t modTime; }; // List of tweakable files to check for updates typedef std::vector<TweakableSourceFile> TweakFileList; static TweakFileList g_tweakableFile; // Stored tweak values typedef std::pair< std::string, size_t> TweakValKey; typedef std::map< TweakValKey, Tweakable*> TweakValMap; static TweakValMap g_tweakVals; Tweakable *LookupTweakValue( const char *file, size_t counter ) { TweakValMap::iterator fi = g_tweakVals.find( TweakValKey( file, counter ) ); if (fi != g_tweakVals.end()) { return (*fi).second; } else return NULL; } time_t GetFileModTime( const std::string &filename ) { struct stat statInfo; stat( filename.c_str(), &statInfo ); return statInfo.st_mtime; } Tweakable *AddTweakableValue( const std::string &filename, size_t counter, Tweakable *twk ) { // First, see if this file is in the files list bool found = false; for( TweakFileList::iterator ti = g_tweakableFile.begin(); ti != g_tweakableFile.end(); ++ti ) { if (ti->filename == filename) { found = true; break; } } // if it's not found, add to the list of tweakable files, // assume it's unmodified since the program has been built if (!found) { TweakableSourceFile srcFile; srcFile.filename = filename; // use the initial modification time srcFile.modTime = GetFileModTime( filename ); g_tweakableFile.push_back( srcFile ); } // add to the tweakables g_tweakVals[ TweakValKey( filename, counter) ] = twk; return twk; } void ReloadTweakableFile( TweakableSourceFile &srcFile ) { size_t counter = 0; FILE *fp = fopen( srcFile.filename.c_str(), "rt" ); char line[2048], strval[512]; while (!feof( fp )) { fgets( line, 2048, fp ); char *ch = line; // chop off c++ comments. C style comments, and // preprocessor directives like #if 0 are not currently // handled so beware if you use those too much char *comment = strstr( line, "//" ); if (comment) { *comment = 0; } // Abuse compiler string concatination.. since the parser isn't smart enough // to skip _TV( in quoted strings (but it should skip this comment) while ((ch=strstr( ch, "_T" "V(")) ) { ch += 4; // skip the _TV( value char *chend = strstr( ch, ")" ); if (chend) { strncpy( strval, ch, chend-ch ); strval[ chend-ch ] = '\0'; //printf("TWK: %s, %d : val '%s'\n", srcFile.filename.c_str(), counter, strval ); ch = chend; // Apply the tweaked value (if found) Tweakable *tv = LookupTweakValue( srcFile.filename.c_str(), counter ); if (tv) { if (tv->type == Tweakable::Type_INT) { tv->val.i_val = atoi( strval ); } else if (tv->type == Tweakable::Type_FLOAT) { tv->val.f_val = atof( strval ); } } } else { break; // Unmatched parenthesis } counter++; } } fclose( fp ); } float TweakValueFloat( const char *file, size_t counter, float origVal ) { Tweakable *tv = LookupTweakValue( file, counter ); if (tv) { return tv->val.f_val; } else { Tweakable *twk = new Tweakable(); twk->type = Tweakable::Type_FLOAT; twk->val.f_val = origVal; return AddTweakableValue( file, counter, twk )->val.f_val; } } int TweakValueInt( const char *file, size_t counter, int origVal ) { Tweakable *tv = LookupTweakValue( file, counter ); if (tv) { return tv->val.i_val; } else { Tweakable *twk = new Tweakable(); twk->type = Tweakable::Type_INT; twk->val.i_val = origVal; return AddTweakableValue( file, counter, twk )->val.i_val; } } void ReloadChangedTweakableValues() { // Go through the list of Tweakable Files and see if any // have changed since their last modification time for( TweakFileList::iterator ti = g_tweakableFile.begin(); ti != g_tweakableFile.end(); ++ti ) { TweakableSourceFile &src = (*ti); time_t currModTime = GetFileModTime( src.filename ); if (currModTime > src.modTime) { ReloadTweakableFile( src ); src.modTime = currModTime; } } } #endif // TV_USE_TWEAKVAL //=================================================================== // Example/test //=================================================================== #ifdef _TV_TEST_TWEAKVAL #include <windows.h> #include <stdio.h> #include <time.h> int main( int argc, char *argv[] ) { while (1) { int val = _TV( 50 ), val2 = _TV( 19 ); float fval = _TV( 3.14152f ); printf("value is %d, %d, valuef is %f\n", val, val2, fval ); Sleep( 1000 ); // call this once per frame (or whatever interval you want to // check for updates) #ifndef NDEBUG ReloadChangedTweakableValues(); #endif // NDEBUG } } #endif // _TV_TEST_TWEAKVAL
21.926087
91
0.63256
[ "vector" ]
72a43969158890a300af0e54f65ca88966972385
16,566
cpp
C++
video/ffmpeg.cpp
VulkanWorks/Granite-scene-graph-gui-ffmpeg-dsp
a725ec78eeb5de2d3c25257b1a9372f5e38910f6
[ "MIT" ]
null
null
null
video/ffmpeg.cpp
VulkanWorks/Granite-scene-graph-gui-ffmpeg-dsp
a725ec78eeb5de2d3c25257b1a9372f5e38910f6
[ "MIT" ]
null
null
null
video/ffmpeg.cpp
VulkanWorks/Granite-scene-graph-gui-ffmpeg-dsp
a725ec78eeb5de2d3c25257b1a9372f5e38910f6
[ "MIT" ]
null
null
null
/* Copyright (c) 2017-2020 Hans-Kristian Arntzen * * 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 __STDC_LIMIT_MACROS 1 extern "C" { #include <libavformat/avformat.h> #include <libavcodec/avcodec.h> #include <libavutil/avutil.h> #include <libswscale/swscale.h> } #include "ffmpeg.hpp" #include "logging.hpp" #include "thread_latch.hpp" #include <condition_variable> #include <mutex> #include <thread> #ifdef HAVE_GRANITE_AUDIO #include "audio_interface.hpp" #endif namespace Granite { static constexpr unsigned NumFrames = 4; struct CodecStream { AVStream *av_stream = nullptr; AVFrame *av_frame = nullptr; AVCodecContext *av_ctx = nullptr; AVPacket *av_pkt = nullptr; SwsContext *sws_ctx = nullptr; }; struct VideoEncoder::Impl { Vulkan::Device *device = nullptr; bool init(Vulkan::Device *device, const char *path, const Options &options); bool push_frame(const Vulkan::Image &image, VkImageLayout layout, Vulkan::CommandBuffer::Type type, const Vulkan::Semaphore &semaphore, Vulkan::Semaphore &release_semaphore); ~Impl(); AVFormatContext *av_format_ctx = nullptr; CodecStream video, audio; Options options; Audio::DumpBackend *audio_source = nullptr; void drain_codec(); AVFrame *alloc_video_frame(AVPixelFormat pix_fmt, unsigned width, unsigned height); AVFrame *alloc_audio_frame(AVSampleFormat samp_format, uint64_t channel_layout, unsigned sample_rate, unsigned sample_count); struct Frame { Vulkan::BufferHandle buffer; Vulkan::Fence fence; ThreadLatch latch; int stride = 0; std::vector<int16_t> audio_buffer; }; Frame frames[NumFrames]; unsigned frame_index = 0; std::thread thr; bool enqueue_buffer_readback( const Vulkan::Image &image, VkImageLayout layout, Vulkan::CommandBuffer::Type type, const Vulkan::Semaphore &semaphore, Vulkan::Semaphore &release_semaphore); bool drain_packets(CodecStream &stream); void drain(); void thread_main(); bool init_video_codec(); bool init_audio_codec(); int64_t audio_pts = 0; int64_t video_pts = 0; }; void VideoEncoder::Impl::drain() { for (auto &frame : frames) { frame.latch.wait_latch_cleared(); frame.buffer.reset(); frame.fence.reset(); } } static void free_av_objects(CodecStream &stream) { if (stream.av_frame) av_frame_free(&stream.av_frame); if (stream.sws_ctx) sws_freeContext(stream.sws_ctx); if (stream.av_pkt) av_packet_free(&stream.av_pkt); if (stream.av_ctx) avcodec_free_context(&stream.av_ctx); } void VideoEncoder::Impl::drain_codec() { if (av_format_ctx) { if (video.av_pkt) { int ret = avcodec_send_frame(video.av_ctx, nullptr); if (ret < 0) LOGE("Failed to send packet to codec: %d\n", ret); else if (!drain_packets(video)) LOGE("Failed to drain codec of packets.\n"); } av_write_trailer(av_format_ctx); if (!(av_format_ctx->flags & AVFMT_NOFILE)) avio_closep(&av_format_ctx->pb); if (av_format_ctx) avformat_free_context(av_format_ctx); } free_av_objects(video); free_av_objects(audio); } VideoEncoder::Impl::~Impl() { for (auto &frame : frames) frame.latch.kill_latch(); if (thr.joinable()) thr.join(); drain_codec(); } bool VideoEncoder::Impl::enqueue_buffer_readback( const Vulkan::Image &image, VkImageLayout layout, Vulkan::CommandBuffer::Type type, const Vulkan::Semaphore &semaphore, Vulkan::Semaphore &release_semaphore) { frame_index = (frame_index + 1) % NumFrames; auto &frame = frames[frame_index]; if (!frame.latch.wait_latch_cleared()) { LOGE("Encoding thread died ...\n"); return false; } unsigned width = image.get_width(); unsigned height = image.get_height(); unsigned aligned_width = (width + 63) & ~63; unsigned pix_size = Vulkan::TextureFormatLayout::format_block_size(image.get_format(), VK_IMAGE_ASPECT_COLOR_BIT); frame.stride = int(pix_size * aligned_width); Vulkan::BufferCreateInfo buf; buf.size = aligned_width * height * pix_size; buf.domain = Vulkan::BufferDomain::CachedHost; buf.usage = VK_BUFFER_USAGE_TRANSFER_DST_BIT; if (!frame.buffer || frame.buffer->get_create_info().size != buf.size) frame.buffer = device->create_buffer(buf); Vulkan::OwnershipTransferInfo transfer_info = {}; transfer_info.old_queue = type; transfer_info.new_queue = Vulkan::CommandBuffer::Type::AsyncTransfer; transfer_info.old_image_layout = layout; transfer_info.new_image_layout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; transfer_info.dst_pipeline_stage = VK_PIPELINE_STAGE_TRANSFER_BIT; transfer_info.dst_access = VK_ACCESS_TRANSFER_READ_BIT; auto transfer_cmd = Vulkan::request_command_buffer_with_ownership_transfer( *device, image, transfer_info, semaphore); transfer_cmd->copy_image_to_buffer(*frame.buffer, image, 0, {}, { width, height, 1, }, aligned_width, height, { VK_IMAGE_ASPECT_COLOR_BIT, 0, 0, 1 }); transfer_cmd->barrier(VK_PIPELINE_STAGE_TRANSFER_BIT, VK_ACCESS_TRANSFER_WRITE_BIT, VK_PIPELINE_STAGE_HOST_BIT, VK_ACCESS_HOST_READ_BIT); device->submit(transfer_cmd, &frame.fence, 1, &release_semaphore); // Render out audio in the main thread to ensure exact reproducibility across runs. // If we don't care about that, we can render audio directly in the thread worker. #ifdef HAVE_GRANITE_AUDIO video_pts++; if (audio_source) { int64_t target_audio_samples = av_rescale_q_rnd(video_pts, video.av_ctx->time_base, audio.av_ctx->time_base, AV_ROUND_UP); int64_t to_render = std::max<int64_t>(target_audio_samples - audio_pts, 0); frame.audio_buffer.resize(to_render * 2); audio_source->drain_interleaved_s16(frame.audio_buffer.data(), to_render); audio_pts += to_render; } #endif frame.latch.set_latch(); return true; } bool VideoEncoder::Impl::drain_packets(CodecStream &stream) { int ret = 0; while (ret >= 0) { ret = avcodec_receive_packet(stream.av_ctx, stream.av_pkt); if (ret == AVERROR(EAGAIN) || ret == AVERROR_EOF) break; else if (ret < 0) { LOGE("Error encoding frame: %d\n", ret); break; } av_packet_rescale_ts(stream.av_pkt, stream.av_ctx->time_base, stream.av_stream->time_base); stream.av_pkt->stream_index = stream.av_stream->index; ret = av_interleaved_write_frame(av_format_ctx, stream.av_pkt); if (ret < 0) { LOGE("Failed to write packet: %d\n", ret); break; } } return ret == 0 || ret == AVERROR_EOF || ret == AVERROR(EAGAIN); } void VideoEncoder::Impl::thread_main() { unsigned index = 0; int64_t encode_video_pts = 0; int64_t encode_audio_pts = 0; int current_audio_frames = 0; int ret; for (;;) { index = (index + 1) % NumFrames; auto &frame = frames[index]; if (!frame.latch.wait_latch_set()) return; if (audio.av_pkt) { for (size_t i = 0, n = frame.audio_buffer.size() / 2; i < n; ) { int to_copy = std::min<int>(int(n - i), audio.av_frame->nb_samples - current_audio_frames); if (current_audio_frames == 0) { if ((ret = av_frame_make_writable(audio.av_frame)) < 0) { LOGE("Failed to make frame writable: %d.\n", ret); frame.latch.kill_latch(); return; } } memcpy(reinterpret_cast<int16_t *>(audio.av_frame->data[0]) + 2 * current_audio_frames, frame.audio_buffer.data() + 2 * i, to_copy * 2 * sizeof(int16_t)); current_audio_frames += to_copy; if (current_audio_frames == audio.av_frame->nb_samples) { audio.av_frame->pts = encode_audio_pts; encode_audio_pts += current_audio_frames; current_audio_frames = 0; ret = avcodec_send_frame(audio.av_ctx, audio.av_frame); if (ret < 0) { LOGE("Failed to send packet to codec: %d\n", ret); frame.latch.kill_latch(); return; } if (!drain_packets(audio)) { frame.latch.kill_latch(); return; } } i += to_copy; } } if ((ret = av_frame_make_writable(video.av_frame)) < 0) { LOGE("Failed to make frame writable: %d.\n", ret); frame.latch.kill_latch(); return; } if (frame.fence) { frame.fence->wait(); frame.fence.reset(); } const uint8_t *src_slices[4] = { static_cast<const uint8_t *>(device->map_host_buffer(*frame.buffer, Vulkan::MEMORY_ACCESS_READ_BIT)), }; const int linesizes[4] = { frame.stride }; sws_scale(video.sws_ctx, src_slices, linesizes, 0, int(options.height), video.av_frame->data, video.av_frame->linesize); video.av_frame->pts = encode_video_pts++; device->unmap_host_buffer(*frame.buffer, Vulkan::MEMORY_ACCESS_READ_BIT); frame.latch.clear_latch(); ret = avcodec_send_frame(video.av_ctx, video.av_frame); if (ret < 0) { LOGE("Failed to send packet to codec: %d\n", ret); frame.latch.kill_latch(); return; } if (!drain_packets(video)) { frame.latch.kill_latch(); return; } } } bool VideoEncoder::Impl::push_frame(const Vulkan::Image &image, VkImageLayout layout, Vulkan::CommandBuffer::Type type, const Vulkan::Semaphore &semaphore, Vulkan::Semaphore &release_semaphore) { if (image.get_width() != options.width || image.get_height() != options.height) return false; return enqueue_buffer_readback(image, layout, type, semaphore, release_semaphore); } void VideoEncoder::set_audio_source(Audio::DumpBackend *backend) { impl->audio_source = backend; } bool VideoEncoder::Impl::init_audio_codec() { #ifdef HAVE_GRANITE_AUDIO AVCodec *codec = avcodec_find_encoder(AV_CODEC_ID_FLAC); if (!codec) { LOGE("Could not find FLAC encoder.\n"); return false; } audio.av_stream = avformat_new_stream(av_format_ctx, codec); if (!audio.av_stream) { LOGE("Failed to add new stream.\n"); return false; } audio.av_ctx = avcodec_alloc_context3(codec); if (!audio.av_ctx) { LOGE("Failed to allocate codec context.\n"); return false; } audio.av_ctx->sample_fmt = AV_SAMPLE_FMT_S16; audio.av_ctx->sample_rate = int(audio_source->get_sample_rate()); audio.av_ctx->channels = 2; audio.av_ctx->channel_layout = AV_CH_LAYOUT_STEREO; audio.av_ctx->time_base = { 1, audio.av_ctx->sample_rate }; if (av_format_ctx->oformat->flags & AVFMT_GLOBALHEADER) audio.av_ctx->flags |= AV_CODEC_FLAG_GLOBAL_HEADER; audio.av_stream->id = 1; audio.av_stream->time_base = audio.av_ctx->time_base; int ret = avcodec_open2(audio.av_ctx, codec, nullptr); if (ret < 0) { LOGE("Could not open codec: %d\n", ret); return false; } avcodec_parameters_from_context(audio.av_stream->codecpar, audio.av_ctx); unsigned samples_per_tick; if ((codec->capabilities & AV_CODEC_CAP_VARIABLE_FRAME_SIZE) != 0) samples_per_tick = audio_source->get_frames_per_tick(); else samples_per_tick = audio.av_ctx->frame_size; audio.av_frame = alloc_audio_frame(audio.av_ctx->sample_fmt, audio.av_ctx->channel_layout, audio.av_ctx->sample_rate, samples_per_tick); if (!audio.av_frame) { LOGE("Failed to allocate AVFrame.\n"); return false; } audio.av_pkt = av_packet_alloc(); if (!audio.av_pkt) return false; return true; #else return false; #endif } bool VideoEncoder::Impl::init_video_codec() { AVCodec *codec = avcodec_find_encoder(AV_CODEC_ID_H264); if (!codec) { LOGE("Could not find H.264 encoder.\n"); return false; } video.av_stream = avformat_new_stream(av_format_ctx, codec); if (!video.av_stream) { LOGE("Failed to add new stream.\n"); return false; } video.av_ctx = avcodec_alloc_context3(codec); if (!video.av_ctx) { LOGE("Failed to allocate codec context.\n"); return false; } video.av_ctx->width = options.width; video.av_ctx->height = options.height; video.av_ctx->pix_fmt = AV_PIX_FMT_YUV444P; video.av_ctx->framerate = { options.frame_timebase.den, options.frame_timebase.num }; video.av_ctx->time_base = { options.frame_timebase.num, options.frame_timebase.den }; if (av_format_ctx->oformat->flags & AVFMT_GLOBALHEADER) video.av_ctx->flags |= AV_CODEC_FLAG_GLOBAL_HEADER; video.av_stream->id = 0; video.av_stream->time_base = video.av_ctx->time_base; AVDictionary *opts = nullptr; av_dict_set_int(&opts, "crf", 18, 0); av_dict_set(&opts, "preset", "fast", 0); int ret = avcodec_open2(video.av_ctx, codec, &opts); av_dict_free(&opts); if (ret < 0) { LOGE("Could not open codec: %d\n", ret); return false; } avcodec_parameters_from_context(video.av_stream->codecpar, video.av_ctx); video.av_frame = alloc_video_frame(video.av_ctx->pix_fmt, options.width, options.height); if (!video.av_frame) { LOGE("Failed to allocate AVFrame.\n"); return false; } video.sws_ctx = sws_getContext(options.width, options.height, AV_PIX_FMT_RGB0, options.width, options.height, AV_PIX_FMT_YUV444P, SWS_POINT, nullptr, nullptr, nullptr); if (!video.sws_ctx) return false; video.av_pkt = av_packet_alloc(); if (!video.av_pkt) return false; return true; } bool VideoEncoder::Impl::init(Vulkan::Device *device_, const char *path, const Options &options_) { device = device_; options = options_; int ret; if ((ret = avformat_alloc_output_context2(&av_format_ctx, nullptr, nullptr, path)) < 0) { LOGE("Failed to open format context: %d\n", ret); return false; } if (!init_video_codec()) return false; if (audio_source && !init_audio_codec()) return false; av_dump_format(av_format_ctx, 0, path, 1); if (!(av_format_ctx->flags & AVFMT_NOFILE)) { ret = avio_open(&av_format_ctx->pb, path, AVIO_FLAG_WRITE); if (ret < 0) { LOGE("Could not open file: %d\n", ret); return false; } } if ((ret = avformat_write_header(av_format_ctx, nullptr)) < 0) { LOGE("Failed to write format header: %d\n", ret); return false; } thr = std::thread(&Impl::thread_main, this); return true; } AVFrame *VideoEncoder::Impl::alloc_audio_frame( AVSampleFormat samp_format, uint64_t channel_layout, unsigned sample_rate, unsigned sample_count) { AVFrame *frame = av_frame_alloc(); if (!frame) return nullptr; frame->channel_layout = channel_layout; frame->format = samp_format; frame->sample_rate = sample_rate; frame->nb_samples = sample_count; int ret; if ((ret = av_frame_get_buffer(frame, 0)) < 0) { LOGE("Failed to allocate frame buffer: %d.\n", ret); av_frame_free(&frame); return nullptr; } return frame; } AVFrame *VideoEncoder::Impl::alloc_video_frame(AVPixelFormat pix_fmt, unsigned width, unsigned height) { AVFrame *frame = av_frame_alloc(); if (!frame) return nullptr; frame->width = width; frame->height = height; frame->format = pix_fmt; int ret; if ((ret = av_frame_get_buffer(frame, 0)) < 0) { LOGE("Failed to allocate frame buffer: %d.\n", ret); av_frame_free(&frame); return nullptr; } return frame; } VideoEncoder::VideoEncoder() { impl.reset(new Impl); } VideoEncoder::~VideoEncoder() { } bool VideoEncoder::init(Vulkan::Device *device, const char *path, const Options &options) { return impl->init(device, path, options); } bool VideoEncoder::push_frame(const Vulkan::Image &image, VkImageLayout layout, Vulkan::CommandBuffer::Type type, const Vulkan::Semaphore &semaphore, Vulkan::Semaphore &release_semaphore) { return impl->push_frame(image, layout, type, semaphore, release_semaphore); } void VideoEncoder::drain() { impl->drain(); } }
26.59069
124
0.701618
[ "render", "vector" ]
72a6e705601a29e1104d86ed7fcb96df1a6e9e67
3,091
cpp
C++
CIM_Framework/CIMFramework/CPPClasses/Src/CIM_SAPAvailableForElement.cpp
rgl/lms
cda6a25e0f39b2a18f10415560ee6a2cfc5fbbcb
[ "Apache-2.0" ]
18
2019-04-17T10:43:35.000Z
2022-03-22T22:30:39.000Z
CIM_Framework/CIMFramework/CPPClasses/Src/CIM_SAPAvailableForElement.cpp
rgl/lms
cda6a25e0f39b2a18f10415560ee6a2cfc5fbbcb
[ "Apache-2.0" ]
9
2019-10-03T15:29:51.000Z
2021-12-27T14:03:33.000Z
CIM_Framework/CIMFramework/CPPClasses/Src/CIM_SAPAvailableForElement.cpp
isabella232/lms
50d16f81b49aba6007388c001e8137352c5eb42e
[ "Apache-2.0" ]
8
2019-06-13T23:30:50.000Z
2021-06-25T15:51:59.000Z
//---------------------------------------------------------------------------- // // Copyright (c) Intel Corporation, 2003 - 2012 All Rights Reserved. // // File: CIM_SAPAvailableForElement.cpp // // Contents: CIM_SAPAvailableForElement conveys the semantics of a Service Access Point that is available for a ManagedElement. When CIM_SAPAvailableForElement is not instantiated, then the SAP is assumed to be generally available. If instantiated, the SAP is available only for the associated ManagedElements. For example, a device might provide management access through a URL. This association allows the URL to be advertised for the device. // // This file was automatically generated from CIM_SAPAvailableForElement.mof, version: 2.10.0 // //---------------------------------------------------------------------------- #include "CIM_SAPAvailableForElement.h" namespace Intel { namespace Manageability { namespace Cim { namespace Typed { const CimFieldAttribute CIM_SAPAvailableForElement::_metadata[] = { {"AvailableSAP", true, false, true }, {"ManagedElement", true, false, true }, }; // class fields const CimReference CIM_SAPAvailableForElement::AvailableSAP() const { CimReference ret; TypeConverter::StringToType(GetField("AvailableSAP"), ret); return ret; } void CIM_SAPAvailableForElement::AvailableSAP(const CimReference &value) { SetOrAddField("AvailableSAP", TypeConverter::TypeToString(value)); } const CimReference CIM_SAPAvailableForElement::ManagedElement() const { CimReference ret; TypeConverter::StringToType(GetField("ManagedElement"), ret); return ret; } void CIM_SAPAvailableForElement::ManagedElement(const CimReference &value) { SetOrAddField("ManagedElement", TypeConverter::TypeToString(value)); } CimBase *CIM_SAPAvailableForElement::CreateFromCimObject(const CimObject &object) { CIM_SAPAvailableForElement *ret = NULL; if(object.ObjectType() != CLASS_NAME) { ret = new CimExtended<CIM_SAPAvailableForElement>(object); } else { ret = new CIM_SAPAvailableForElement(object); } return ret; } vector<shared_ptr<CIM_SAPAvailableForElement> > CIM_SAPAvailableForElement::Enumerate(ICimWsmanClient *client, const CimKeys &keys) { return CimBase::Enumerate<CIM_SAPAvailableForElement>(client, keys); } void CIM_SAPAvailableForElement::Delete(ICimWsmanClient *client, const CimKeys &keys) { CimBase::Delete(client, CLASS_URI, keys); } const vector<CimFieldAttribute> &CIM_SAPAvailableForElement::GetMetaData() const { return _classMetaData; } const string CIM_SAPAvailableForElement::CLASS_NAME = "CIM_SAPAvailableForElement"; const string CIM_SAPAvailableForElement::CLASS_URI = "http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_SAPAvailableForElement"; const string CIM_SAPAvailableForElement::CLASS_NS = "http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_SAPAvailableForElement"; const string CIM_SAPAvailableForElement::CLASS_NS_PREFIX = "ASA246"; CIMFRAMEWORK_API vector <CimFieldAttribute> CIM_SAPAvailableForElement::_classMetaData; } } } }
36.364706
447
0.739566
[ "object", "vector" ]
72ab2d33eedd9697130e4c6dcd96aa0579c6269b
1,730
cpp
C++
kactl/stress-tests/geometry/insidePolygon.cpp
prince776/CodeBook
874fc7f94011ad1d25a55bcd91fecd2a11eb5a9b
[ "CC0-1.0" ]
17
2021-01-25T12:07:17.000Z
2022-02-26T17:20:31.000Z
kactl/stress-tests/geometry/insidePolygon.cpp
NavneelSinghal/CodeBook
ff60ace9107dd19ef8ba81e175003f567d2a9070
[ "CC0-1.0" ]
null
null
null
kactl/stress-tests/geometry/insidePolygon.cpp
NavneelSinghal/CodeBook
ff60ace9107dd19ef8ba81e175003f567d2a9070
[ "CC0-1.0" ]
4
2021-02-28T11:13:44.000Z
2021-11-20T12:56:20.000Z
#include <bits/stdc++.h> using namespace std; #define rep(i, a, b) for(int i = a; i < int(b); ++i) #define all(x) x.begin(), x.end() #define sz(x) (int)(x).size() typedef long long ll; typedef pair<int, int> pii; typedef vector<int> vi; const double EPS =1e-8; #include "../utilities/genPolygon.h" #include "../../content/geometry/InsidePolygon.h" namespace old { #include "../../content/geometry/OnSegment.h" #include "../../content/geometry/SegmentDistance.h" template<class It, class P> bool insidePolygon(It begin, It end, const P& p, bool strict = true) { int n = 0; //number of isects with line from p to (inf,p.y) for (It i = begin, j = end-1; i != end; j = i++) { //if p is on edge of polygon if (onSegment(*i, *j, p)) return !strict; //or: if (segDist(*i, *j, p) <= epsilon) return !strict; //increment n if segment intersects line from p n += (max(i->y,j->y) > p.y && min(i->y,j->y) <= p.y && ((*j-*i).cross(p-*i) > 0) == (i->y <= p.y)); } return n&1; //inside if odd number of intersections } } typedef Point<double> P; bool eq(P a, P b) { return (a-b).dist()<EPS; } const int NUMPOLY=100; const int PTPERPOLY=100; void test(int numPts, int range) { rep(i,0,NUMPOLY) { vector<P> poly; rep(j,0, numPts) poly.push_back(P(rand()%range, rand()%range)); poly = genPolygon(poly); rep(i,0,PTPERPOLY){ P p(rand()%range, rand()%range); assert(inPolygon(poly, p, true) == old::insidePolygon(all(poly), p, true)); assert(inPolygon(poly, p, false) == old::insidePolygon(all(poly), p, false)); } } } int main() { test(20,5); test(1001,100); test(1000,1000); cout<<"Tests passed!"<<endl; }
27.903226
89
0.590751
[ "geometry", "vector" ]
72b3e4b26214b773e342da3012326989fb6c9918
317
cpp
C++
bixeCamp_2019/aula6_DFS/Kefa_and_Park.cpp
valdenicio22/Programming-Marathon
6870b3da1625192b0c69a0c89d700f0c36769bae
[ "MIT" ]
null
null
null
bixeCamp_2019/aula6_DFS/Kefa_and_Park.cpp
valdenicio22/Programming-Marathon
6870b3da1625192b0c69a0c89d700f0c36769bae
[ "MIT" ]
null
null
null
bixeCamp_2019/aula6_DFS/Kefa_and_Park.cpp
valdenicio22/Programming-Marathon
6870b3da1625192b0c69a0c89d700f0c36769bae
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> #define MAXN 100005 #define pb push_back using namespace std; int cats[MAXN]; vector<int> adj[MANX]; int main(){ int n, k; for(int i=0;i<n;i++){ cin >> cats[i]; } for(int i=1;i<=n;i++){ int a, b; cin >> a >> b; adj[a].pb(b); adj[b].pb(a); } return 0; }
11.321429
28
0.523659
[ "vector" ]
72bd26b16e402b67793930a822baa4560cf33db6
7,105
cpp
C++
depends/work/build/i686-w64-mingw32/qt/5.9.7-f2560c1efa6/qttools/src/designer/src/components/formeditor/formeditor_optionspage.cpp
GrinCash/Grinc-core
1377979453ba84082f70f9c128be38e57b65a909
[ "MIT" ]
null
null
null
depends/work/build/i686-w64-mingw32/qt/5.9.7-f2560c1efa6/qttools/src/designer/src/components/formeditor/formeditor_optionspage.cpp
GrinCash/Grinc-core
1377979453ba84082f70f9c128be38e57b65a909
[ "MIT" ]
null
null
null
depends/work/build/i686-w64-mingw32/qt/5.9.7-f2560c1efa6/qttools/src/designer/src/components/formeditor/formeditor_optionspage.cpp
GrinCash/Grinc-core
1377979453ba84082f70f9c128be38e57b65a909
[ "MIT" ]
null
null
null
/**************************************************************************** ** ** Copyright (C) 2016 The Qt Company Ltd. ** Contact: https://www.qt.io/licensing/ ** ** This file is part of the Qt Designer of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:GPL-EXCEPT$ ** Commercial License Usage ** Licensees holding valid commercial Qt licenses may use this file in ** accordance with the commercial license agreement provided with the ** Software or, alternatively, in accordance with the terms contained in ** a written agreement between you and The Qt Company. For licensing terms ** and conditions see https://www.qt.io/terms-conditions. For further ** information use the contact form at https://www.qt.io/contact-us. ** ** GNU General Public License Usage ** Alternatively, this file may be used under the terms of the GNU ** General Public License version 3 as published by the Free Software ** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT ** included in the packaging of this file. Please review the following ** information to ensure the GNU General Public License requirements will ** be met: https://www.gnu.org/licenses/gpl-3.0.html. ** ** $QT_END_LICENSE$ ** ****************************************************************************/ #include "formeditor_optionspage.h" // shared #include "formwindowbase_p.h" #include "gridpanel_p.h" #include "grid_p.h" #include "previewconfigurationwidget_p.h" #include "shared_settings_p.h" #include "zoomwidget_p.h" #include <private/actioneditor_p.h> // SDK #include <QtDesigner/QDesignerFormEditorInterface> #include <QtDesigner/QDesignerFormWindowManagerInterface> #include <QtCore/QString> #include <QtCore/QCoreApplication> #include <QtWidgets/QGroupBox> #include <QtWidgets/QVBoxLayout> #include <QtWidgets/QFormLayout> #include <QtWidgets/QComboBox> QT_BEGIN_NAMESPACE typedef QList<int> IntList; namespace qdesigner_internal { // Zoom, currently for preview only class ZoomSettingsWidget : public QGroupBox { Q_DISABLE_COPY(ZoomSettingsWidget) public: explicit ZoomSettingsWidget(QWidget *parent = 0); void fromSettings(const QDesignerSharedSettings &s); void toSettings(QDesignerSharedSettings &s) const; private: QComboBox *m_zoomCombo; }; ZoomSettingsWidget::ZoomSettingsWidget(QWidget *parent) : QGroupBox(parent), m_zoomCombo(new QComboBox) { m_zoomCombo->setEditable(false); const IntList zoomValues = ZoomMenu::zoomValues(); const IntList::const_iterator cend = zoomValues.constEnd(); for (IntList::const_iterator it = zoomValues.constBegin(); it != cend; ++it) { //: Zoom percentage m_zoomCombo->addItem(QCoreApplication::translate("FormEditorOptionsPage", "%1 %").arg(*it), QVariant(*it)); } // Layout setCheckable(true); setTitle(QCoreApplication::translate("FormEditorOptionsPage", "Preview Zoom")); QFormLayout *lt = new QFormLayout; lt->addRow(QCoreApplication::translate("FormEditorOptionsPage", "Default Zoom"), m_zoomCombo); setLayout(lt); } void ZoomSettingsWidget::fromSettings(const QDesignerSharedSettings &s) { setChecked(s.zoomEnabled()); const int idx = m_zoomCombo->findData(QVariant(s.zoom())); m_zoomCombo->setCurrentIndex(qMax(0, idx)); } void ZoomSettingsWidget::toSettings(QDesignerSharedSettings &s) const { s.setZoomEnabled(isChecked()); const int zoom = m_zoomCombo->itemData(m_zoomCombo->currentIndex()).toInt(); s.setZoom(zoom); } // FormEditorOptionsPage: FormEditorOptionsPage::FormEditorOptionsPage(QDesignerFormEditorInterface *core) : m_core(core) { } QString FormEditorOptionsPage::name() const { //: Tab in preferences dialog return QCoreApplication::translate("FormEditorOptionsPage", "Forms"); } QWidget *FormEditorOptionsPage::createPage(QWidget *parent) { QWidget *optionsWidget = new QWidget(parent); const QDesignerSharedSettings settings(m_core); m_previewConf = new PreviewConfigurationWidget(m_core); m_zoomSettingsWidget = new ZoomSettingsWidget; m_zoomSettingsWidget->fromSettings(settings); m_defaultGridConf = new GridPanel(); m_defaultGridConf->setTitle(QCoreApplication::translate("FormEditorOptionsPage", "Default Grid")); m_defaultGridConf->setGrid(settings.defaultGrid()); const QString namingTitle = QCoreApplication::translate("FormEditorOptionsPage", "Object Naming Convention"); QGroupBox *namingGroupBox = new QGroupBox(namingTitle); const QString namingToolTip = QCoreApplication::translate("FormEditorOptionsPage", "Naming convention used for generating action object names from their text"); namingGroupBox->setToolTip(namingToolTip); QHBoxLayout *namingHLayout = new QHBoxLayout(namingGroupBox); m_namingComboBox = new QComboBox; m_namingComboBox->setToolTip(namingToolTip); QStringList items; // matching ActionEditor::NamingMode items << QCoreApplication::translate("FormEditorOptionsPage", "Camel Case") << QCoreApplication::translate("FormEditorOptionsPage", "Underscore"); m_namingComboBox->addItems(items); m_namingComboBox->setCurrentIndex(settings.objectNamingMode()); namingHLayout->addWidget(m_namingComboBox.data()); QVBoxLayout *optionsVLayout = new QVBoxLayout(); optionsVLayout->addWidget(m_defaultGridConf); optionsVLayout->addWidget(m_previewConf); optionsVLayout->addWidget(m_zoomSettingsWidget); optionsVLayout->addWidget(namingGroupBox); optionsVLayout->addStretch(1); // Outer layout to give it horizontal stretch QHBoxLayout *optionsHLayout = new QHBoxLayout(); optionsHLayout->addLayout(optionsVLayout); optionsHLayout->addStretch(1); optionsWidget->setLayout(optionsHLayout); return optionsWidget; } void FormEditorOptionsPage::apply() { QDesignerSharedSettings settings(m_core); if (m_defaultGridConf) { const Grid defaultGrid = m_defaultGridConf->grid(); settings.setDefaultGrid(defaultGrid); FormWindowBase::setDefaultDesignerGrid(defaultGrid); // Update grid settings in all existing form windows QDesignerFormWindowManagerInterface *fwm = m_core->formWindowManager(); if (const int numWindows = fwm->formWindowCount()) { for (int i = 0; i < numWindows; i++) if (qdesigner_internal::FormWindowBase *fwb = qobject_cast<qdesigner_internal::FormWindowBase *>( fwm->formWindow(i))) if (!fwb->hasFormGrid()) fwb->setDesignerGrid(defaultGrid); } } if (m_previewConf) { m_previewConf->saveState(); } if (m_zoomSettingsWidget) m_zoomSettingsWidget->toSettings(settings); if (m_namingComboBox) { const ObjectNamingMode namingMode = static_cast<ObjectNamingMode>(m_namingComboBox->currentIndex()); settings.setObjectNamingMode(namingMode); ActionEditor::setObjectNamingMode(namingMode); } } void FormEditorOptionsPage::finish() { } } QT_END_NAMESPACE
34.658537
115
0.716397
[ "object" ]
72c7e681cb361bd62d16075f1d2cc0e3e37893f5
5,886
inl
C++
Code/Framework/AzNetworking/AzNetworking/Serialization/ISerializer.inl
aaarsene/o3de
37e3b0226958974defd14dd6d808e8557dcd7345
[ "Apache-2.0", "MIT" ]
1
2021-09-13T00:01:12.000Z
2021-09-13T00:01:12.000Z
Code/Framework/AzNetworking/AzNetworking/Serialization/ISerializer.inl
aaarsene/o3de
37e3b0226958974defd14dd6d808e8557dcd7345
[ "Apache-2.0", "MIT" ]
null
null
null
Code/Framework/AzNetworking/AzNetworking/Serialization/ISerializer.inl
aaarsene/o3de
37e3b0226958974defd14dd6d808e8557dcd7345
[ "Apache-2.0", "MIT" ]
1
2021-07-20T11:07:25.000Z
2021-07-20T11:07:25.000Z
/* * Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution. * * SPDX-License-Identifier: Apache-2.0 OR MIT * */ #pragma once #include <AzCore/std/typetraits/underlying_type.h> #include <AzCore/std/typetraits/conditional.h> #include <AzCore/std/typetraits/is_same.h> #include <AzCore/std/typetraits/is_enum.h> #include <AzCore/RTTI/TypeInfo.h> #include <AzCore/RTTI/TypeSafeIntegral.h> #include <AzCore/Name/Name.h> #include <AzCore/Name/NameDictionary.h> namespace AzNetworking { // Identifies AZStd containers struct AzContainerHelper { template <typename C> struct IsIterableContainer { template <class TYPE> static AZStd::false_type Evaluate(...); template <class TYPE> static AZStd::true_type Evaluate(int, typename TYPE::value_type = typename TYPE::value_type(), typename TYPE::const_iterator = C().begin(), typename TYPE::const_iterator = C().end(), typename TYPE::size_type = C().size()); static constexpr bool Value = AZStd::is_same<decltype(Evaluate<C>(0)), AZStd::true_type>::value; }; template <typename TYPE> struct HasReserveMethod { template <typename U> static decltype(U().reserve()) Evaluate(int); template <typename U> static AZStd::false_type Evaluate(...); static constexpr bool value = !AZStd::is_same<AZStd::false_type, decltype(Evaluate<TYPE>(0))>::value; }; template <typename TYPE> static typename AZStd::Utils::enable_if_c<HasReserveMethod<TYPE>::value>::type ReserveContainer(TYPE& value, typename TYPE::size_type size) { value.reserve(size); } template<typename TYPE> static typename AZStd::Utils::enable_if_c<!HasReserveMethod<TYPE>::value>::type ReserveContainer(TYPE&, typename TYPE::size_type) { ; } }; template <typename OBJECT_TYPE> struct SerializeType { static bool Serialize(ISerializer& serializer, OBJECT_TYPE& value) { return value.Serialize(serializer); } }; // Base template template <typename TYPE, typename = void> struct SerializeObjectHelper { static bool SerializeObject(ISerializer& serializer, TYPE& value) { return value.Serialize(serializer); } }; // Non-containers template <typename TYPE> struct SerializeObjectHelper<TYPE, AZStd::enable_if_t<!AzContainerHelper::IsIterableContainer<TYPE>::value>> { static bool SerializeObject(ISerializer& serializer, TYPE& value) { return SerializeType<TYPE>::Serialize(serializer, value); } }; inline bool ISerializer::IsValid() const { return m_serializerValid; } inline void ISerializer::Invalidate() { m_serializerValid = false; } template <typename TYPE> inline bool ISerializer::Serialize(TYPE& value, const char* name) { enum { IsEnum = AZStd::is_enum<TYPE>::value }; enum { IsTypeSafeIntegral = AZStd::is_type_safe_integral<TYPE>::value }; return SerializeHelper<IsEnum, IsTypeSafeIntegral>::Serialize(*this, value, name); } // SerializeHelper for objects and structures template <> struct ISerializer::SerializeHelper<false, false> { template <typename TYPE> static bool Serialize(ISerializer& serializer, TYPE& value, const char* name) { if (serializer.BeginObject(name, "Type name unknown")) { if (SerializeObjectHelper<TYPE>::SerializeObject(serializer, value)) { return serializer.EndObject(name, "Type name unknown"); } } return false; } }; template <> struct ISerializer::SerializeHelper<true, false> { template <typename TYPE> static bool Serialize(ISerializer& serializer, TYPE& value, const char* name) { using SizeType = typename AZStd::underlying_type<TYPE>::type; SizeType& integralValue = reinterpret_cast<SizeType&>(value); if (!serializer.Serialize(integralValue, name)) { return false; } //auto enumMembers = AzEnumTraits<TYPE>::Members; //if (AZStd::find(enumMembers.begin(), enumMembers.end(), static_cast<Type>(integralValue)) == enumMembers.end()) //{ // return false; //} return true; } }; template <> struct ISerializer::SerializeHelper<true, true> { template <typename TYPE> static bool Serialize(ISerializer& serializer, TYPE& value, const char* name) { using RawType = typename AZStd::underlying_type<TYPE>::type; RawType& rawValue = reinterpret_cast<RawType&>(value); if (!serializer.Serialize(rawValue, name)) { return false; } return true; } }; template<> struct SerializeObjectHelper<AZ::Name> { static bool SerializeObject(ISerializer& serializer, AZ::Name& value) { AZ::Name::Hash nameHash = value.GetHash(); bool result = serializer.Serialize(nameHash, "NameHash"); if (result && serializer.GetSerializerMode() == SerializerMode::WriteToObject) { value = AZ::NameDictionary::Instance().FindName(nameHash); } return result; } }; } #include <AzNetworking/Serialization/AzContainerSerializers.h>
30.65625
158
0.603296
[ "3d" ]
72c8591635336f22a582ef19053d2e7f89b8a847
1,569
hpp
C++
Source/Game/Script/ScriptComponent.hpp
gunstarpl/Game-Engine-12-2013
bfc53f5c998311c17e97c1b4d65792d615c51d36
[ "MIT", "Unlicense" ]
6
2017-12-31T17:28:40.000Z
2021-12-04T06:11:34.000Z
Source/Game/Script/ScriptComponent.hpp
gunstarpl/Game-Engine-12-2013
bfc53f5c998311c17e97c1b4d65792d615c51d36
[ "MIT", "Unlicense" ]
null
null
null
Source/Game/Script/ScriptComponent.hpp
gunstarpl/Game-Engine-12-2013
bfc53f5c998311c17e97c1b4d65792d615c51d36
[ "MIT", "Unlicense" ]
null
null
null
#pragma once #include "Precompiled.hpp" #include "MainGlobal.hpp" #include "Game/Component/Component.hpp" // // Script Component // class ScriptComponent : public Component { public: // Type declarations. typedef std::vector<Lua::LuaRef> ScriptList; public: ScriptComponent(); ~ScriptComponent(); void AddScript(Lua::LuaRef script); template<typename... Arguments> void Call(std::string name, Arguments... arguments); private: ScriptList m_scripts; }; template<typename... Arguments> void ScriptComponent::Call(std::string name, Arguments... arguments) { // Execute every script in order. for(Lua::LuaRef& script : m_scripts) { // Get the function reference. Lua::LuaRef function = script[name]; // Call the function. if(function.isFunction()) { try { // Call method with a self argument. function(script, arguments...); } catch(Lua::LuaException& exception) { // Get the exception error text. std::string error = exception.what(); // Remove base path to working directory. std::size_t position = error.find(Main::GetWorkingDir()); if(position != std::string::npos) { error.erase(position, Main::GetWorkingDir().size()); } // Print the error. Log() << "Lua error - " << error << "."; } } } }
23.41791
73
0.547482
[ "vector" ]
72ca1b2da2034e99f01b905c5a9adbb518a8ae5c
1,154
cxx
C++
dtool/src/prc/configVariable.cxx
kestred/panda3d
16bfd3750f726a8831771b81649d18d087917fd5
[ "PHP-3.01", "PHP-3.0" ]
3
2018-03-09T12:07:29.000Z
2021-02-25T06:50:25.000Z
dtool/src/prc/configVariable.cxx
Sinkay/panda3d
16bfd3750f726a8831771b81649d18d087917fd5
[ "PHP-3.01", "PHP-3.0" ]
null
null
null
dtool/src/prc/configVariable.cxx
Sinkay/panda3d
16bfd3750f726a8831771b81649d18d087917fd5
[ "PHP-3.01", "PHP-3.0" ]
null
null
null
// Filename: configVariable.cxx // Created by: drose (18Oct04) // //////////////////////////////////////////////////////////////////// // // PANDA 3D SOFTWARE // Copyright (c) Carnegie Mellon University. All rights reserved. // // All use of this software is subject to the terms of the revised BSD // license. You should have received a copy of this license along // with this source code in a file named "LICENSE." // //////////////////////////////////////////////////////////////////// #include "configVariable.h" #include "config_prc.h" //////////////////////////////////////////////////////////////////// // Function: ConfigVariable::report_unconstructed // Access: Protected // Description: Displays a suitable error message when an // unconstructed ConfigVariable is attempted to be used. // This normally indicates a static-init ordering issue. //////////////////////////////////////////////////////////////////// void ConfigVariable:: report_unconstructed() const { prc_cat->error() << "ConfigVariable " << this << " accessed before its constructor has run!\n"; record_unconstructed(); }
34.969697
70
0.533795
[ "3d" ]
72d137ece5a7179e523dfaed38364fec230f6006
20,661
cc
C++
ion/profile/calltracemanager.cc
RobLoach/ion
9e659416fb04bb3d3a67df1e018d7c2ccab9d468
[ "Apache-2.0" ]
null
null
null
ion/profile/calltracemanager.cc
RobLoach/ion
9e659416fb04bb3d3a67df1e018d7c2ccab9d468
[ "Apache-2.0" ]
null
null
null
ion/profile/calltracemanager.cc
RobLoach/ion
9e659416fb04bb3d3a67df1e018d7c2ccab9d468
[ "Apache-2.0" ]
null
null
null
/** Copyright 2016 Google Inc. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software 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 "ion/profile/calltracemanager.h" #include <fstream> // NOLINT #include "ion/analytics/benchmark.h" #include "ion/analytics/benchmarkutils.h" #include "ion/base/serialize.h" #include "ion/base/stringutils.h" #include "ion/port/threadutils.h" #include "ion/profile/timelinenode.h" #include "ion/profile/timelinethread.h" #include "ion/profile/tracerecorder.h" #include "third_party/jsoncpp/include/json/json.h" namespace ion { namespace profile { namespace { // WTF trace chunk header. Contains information about the parts contained // within the chunk. struct ChunkInfo { uint32 id; uint32 type; uint32 length; uint32 start_time; uint32 end_time; uint32 part_count; }; // WTF trace part header. Contains information about the type of the part, // and the length of the data within the part. struct PartInfo { uint32 type; uint32 offset; uint32 length; }; // Round up to nearest integer divisible by four. static uint32 UpToNearestFour(uint32 n) { if (n % 4 == 0) { return n; } return n + (4 - (n % 4)); } // Represents an abstract "part" in WTF trace format. A part could either be a // file header, a string table, or a buffer of trace events. Usually the first // "chunk" of a WTF trace file contains the file header part, and the second // "chunk" contains a string table along with a list of trace event definitions, // and the third chunk a string table along with the list of actual events. // For more information, consult the WTF trace format documentation: // https://github.com/google/tracing-framework/blob/master/docs/wtf-trace.md class Part { public: virtual ~Part() {} virtual uint32 GetRawSizeInBytes() const = 0; virtual void AppendToString(std::string* output) const = 0; // All part data within a chunk is aligned to 4b boundaries. This function // helps compute the size of the part so that it is padded to be a multiple // of 4 bytes. uint32 GetAlignedSizeInBytes() const { return UpToNearestFour(GetRawSizeInBytes()); } }; // The main data structure containing trace data in WTF format. A WTF trace file // divides the data up into chunks, and each chunk is specified as follows: // 4b chunk id // 4b chunk type // 4b chunk length (including header) // 4b chunk starting time/value // 4b chunk ending time/value // 4b part count // list of length part count, with the following info: // 4b part type // 4b part offset in chunk (from header end) // 4b part length // list chunk data, if any // For more information, consult the WTF trace format documentation: // https://github.com/google/tracing-framework/blob/master/docs/wtf-trace.md struct Chunk { void AddPart(uint32 type, Part* part) { DCHECK(part); PartInfo info; info.type = type; info.length = part->GetRawSizeInBytes(); info.offset = 0; for (size_t i = 0; i < parts.size(); i++) { info.offset += parts[i]->GetAlignedSizeInBytes(); } part_headers.push_back(info); parts.push_back(part); } void AppendToString(uint32 id, uint32 type, std::string* output) { DCHECK(parts.size() == part_headers.size()); ChunkInfo info; info.part_count = static_cast<uint32>(parts.size()); info.id = id; info.type = type; info.length = static_cast<uint32>(sizeof(ChunkInfo)) + static_cast<uint32>(sizeof(PartInfo)) * info.part_count; for (size_t i = 0; i < parts.size(); i++) { info.length += parts[i]->GetAlignedSizeInBytes(); } info.start_time = -1; info.end_time = -1; base::AppendBytes(output, info); for (size_t i = 0; i < part_headers.size(); i++) { base::AppendBytes(output, part_headers[i]); } for (size_t i = 0; i < parts.size(); i++) { parts[i]->AppendToString(output); } } std::vector<PartInfo> part_headers; std::vector<Part*> parts; }; class StringTable : public Part { public: StringTable() : include_null_(true) {} explicit StringTable(bool include_null) : include_null_(include_null) {} void AddString(const std::string& str) { const std::vector<std::string> split = base::SplitString(str, "\n"); for (size_t i = 0; i < split.size(); ++i) { table_.push_back(split[i]); } } uint32 GetRawSizeInBytes() const override { size_t raw_size_in_bytes = 0; for (size_t i = 0; i < table_.size(); ++i) { const size_t string_length = table_[i].length(); if (include_null_) { raw_size_in_bytes += string_length + 1; } else { raw_size_in_bytes += string_length; } } return static_cast<uint32>(raw_size_in_bytes); } uint32 GetTableSize() const { return static_cast<uint32>(table_.size()); } void AppendToString(std::string* output) const override { for (size_t i = 0; i < table_.size(); ++i) { output->append(table_[i]); if (include_null_) { // Append final NULL character char ch = 0; base::AppendBytes(output, ch); } } // Pad the section with NULL characters so that the start of the next // section is word aligned (aligned with 4-byte addresses). uint32 extra = GetAlignedSizeInBytes() - GetRawSizeInBytes(); for (uint32 i = 0; i < extra; ++i) { char ch = 0; base::AppendBytes(output, ch); } } std::vector<std::string>* GetMutableTable() { return &table_; } private: std::vector<std::string> table_; const bool include_null_; }; struct EventBuffer : public Part { public: uint32 GetRawSizeInBytes() const override { return static_cast<uint32>(buffer.length()); } void AppendToString(std::string* output) const override { output->append(buffer); } std::string buffer; }; } // namespace ScopedTracer::ScopedTracer(TraceRecorder* recorder, int id) : recorder_(recorder) { DCHECK(recorder_ && id); recorder_->EnterScope(id); } ScopedTracer::~ScopedTracer() { DCHECK(recorder_); recorder_->LeaveScope(); } ScopedFrameTracer::ScopedFrameTracer(TraceRecorder* recorder, uint32 id) : recorder_(recorder) { DCHECK(recorder_); recorder_->EnterFrame(id); } ScopedFrameTracer::~ScopedFrameTracer() { DCHECK(recorder_); recorder_->LeaveFrame(); } CallTraceManager::CallTraceManager() : trace_recorder_(GetAllocator()), named_trace_recorders_(GetAllocator()), recorder_list_(GetAllocator()), buffer_size_(0), scope_event_map_(GetAllocator()), reverse_scope_event_map_(GetAllocator()) { } CallTraceManager::CallTraceManager(size_t buffer_size) : trace_recorder_(GetAllocator()), named_trace_recorders_(GetAllocator()), recorder_list_(GetAllocator()), buffer_size_(buffer_size), scope_event_map_(GetAllocator()), reverse_scope_event_map_(GetAllocator()) { } CallTraceManager::~CallTraceManager() { base::LockGuard lock(&mutex_); if (!timeline_metrics_.empty()) { ion::analytics::Benchmark benchmark = RunTimelineMetrics(); ion::analytics::OutputBenchmarkPretty("Timeline Metrics", false, benchmark, std::cout); } for (size_t i = 0; i < recorder_list_.size(); ++i) { delete recorder_list_[i]; recorder_list_[i] = NULL; } } TraceRecorder* CallTraceManager::GetTraceRecorder() { void* ptr = port::GetThreadLocalStorage(trace_recorder_.GetKey()); if (ptr) { return *static_cast<TraceRecorder**>(ptr); } else { TraceRecorder** recorder = trace_recorder_.Get(); *recorder = AllocateTraceRecorder(); return *recorder; } } TraceRecorder* CallTraceManager::GetNamedTraceRecorder( NamedTraceRecorderType name) { DCHECK(name < kNumNamedTraceRecorders); NamedTraceRecorderArray* recorders = named_trace_recorders_.Get(); TraceRecorder* recorder = recorders->recorders[name]; if (recorder) { return recorder; } recorder = AllocateTraceRecorder(); switch (name) { case kRecorderGpu: recorder->SetThreadName("GPU"); break; case kRecorderVSync: recorder->SetThreadName("VSync"); break; default: LOG(WARNING) << "Unknown name(" << name << ") for named TraceRecorder."; } recorders->recorders[name] = recorder; return recorder; } TraceRecorder* CallTraceManager::AllocateTraceRecorder() { TraceRecorder* recorder = NULL; if (buffer_size_ == 0) { recorder = new (GetAllocator()) TraceRecorder(this); } else { recorder = new (GetAllocator()) TraceRecorder(this, buffer_size_); } { base::LockGuard lock(&mutex_); recorder_list_.push_back(recorder); } return recorder; } int CallTraceManager::GetScopeEnterEvent(const char* string_id) { base::LockGuard lock(&mutex_); ScopeEventMap::const_iterator it = scope_event_map_.find(string_id); if (it != scope_event_map_.end()) { return it->second; } const int new_event_id = static_cast<int>(kCustomScopeEvent + GetNumScopeEvents()); scope_event_map_.insert( std::make_pair(static_cast<const void*>(string_id), new_event_id)); reverse_scope_event_map_.insert(std::make_pair(new_event_id, string_id)); return new_event_id; } const char* CallTraceManager::GetScopeEnterEventName(uint32 event_id) const { return reverse_scope_event_map_.at(event_id); } int CallTraceManager::GetNumArgsForEvent(uint32 event_id) { // These are the number of arguments for each built-in trace event. // The built-in WTF trace events that we support are documented in // the CallTraceManager::SnapshotCallTraces() function. static const int kBuiltinEventArgNum[] = { 0, 5, 0, 4, 1, 1, 1, 0, 0, 2, 2, 2, 3, 1, 1, 1, 1, 1}; if (event_id >= kCustomScopeEvent) { event_id = 0; } return kBuiltinEventArgNum[event_id]; } CallTraceManager::EventArgType CallTraceManager::GetArgType( uint32 event_id, int arg_index) { CHECK(event_id < kCustomScopeEvent); // Provides the offset into the kBuiltinEventArgTypes array below to // look up the argument types of each built-in WTF trace event. static const int kOffsetTable[] = { 0, 1, 6, 7, 11, 12, 13, 14, 15, 16, 18, 20, 22, 25, 26, 27, 28, 29}; // Stores the types of each argument for every built-in WTF trace event. // The built-in WTF trace events that we support are documented in // the CallTraceManager::SnapshotCallTraces() function. static const EventArgType kBuiltinEventArgTypes[] = { kArgNone, // The zeroth event is reserved and has no arguments. kArgNumeric, kArgNumeric, kArgNumeric, kArgString, kArgString, kArgNone, kArgNumeric, kArgString, kArgString, kArgString, kArgNumeric, kArgNumeric, kArgString, kArgNone, kArgNone, kArgString, kArgString, kArgString, kArgString, kArgString, kArgString, kArgNumeric, kArgString, kArgString, kArgNumeric, kArgNumeric, kArgNumeric, kArgString, kArgNumeric}; return kBuiltinEventArgTypes[kOffsetTable[event_id] + arg_index]; } std::string CallTraceManager::SnapshotCallTraces() const { std::string output; static const uint32 magic_number = 0xdeadbeef; static const uint32 wtf_version = 0xe8214400; static const uint32 format_version = 10; base::AppendBytes(&output, magic_number); base::AppendBytes(&output, wtf_version); base::AppendBytes(&output, format_version); // Create the file header Json::Value flags(Json::arrayValue); flags.append("has_high_resolution_times"); // TODO(user): Add a customized icon for ion. This needs to be a link to // publicly available icon image. Json::Value icon(Json::objectValue); icon["uri"] = "https://maps.gstatic.com/favicon3.ico"; // TODO(user): Add user agent information, including device, platform, // type, and value information. Json::Value agent(Json::objectValue); agent["device"] = "Ion"; agent["platform"] = "SomePlatform"; agent["platformVersion"] = ""; agent["type"] = ""; agent["value"] = ""; Json::Value context(Json::objectValue); context["args"] = Json::Value(Json::arrayValue); context["contextType"] = "script"; context["icon"] = icon; context["taskId"] = ""; context["title"] = "Ion"; // TODO(user): Add actual URI info to log where the trace was collected. context["userAgent"] = agent; Json::Value json; json["type"] = "file_header"; json["flags"] = flags; // TODO(user): Add real timebase, units in microseconds. json["timebase"] = 1412611454780.701; json["contextInfo"] = context; Json::FastWriter json_writer; std::string json_string = json_writer.write(json); StringTable file_header_table(false); file_header_table.AddString(json_string); Chunk file_header; file_header.AddPart(0x10000, &file_header_table); file_header.AppendToString(2, 0x1, &output); StringTable def_table; def_table.AddString( "wtf.event#define\n" "uint16 wireId, uint16 eventClass, uint32 flags, ascii name, ascii args\n" "wtf.trace#discontinuity\n" "wtf.zone#create\n" "uint16 zoneId, ascii name, ascii type, ascii location\n" "wtf.zone#delete\n" "uint16 zoneId\n" "wtf.zone#set\n" "uint16 zoneId\n" "wtf.scope#enter\n" "ascii name\n" "wtf.scope#enterTracing\n" "wtf.scope#leave\n" "wtf.scope#appendData\n" "ascii name, any value\n" "wtf.trace#mark\n" "ascii name, any value\n" "wtf.trace#timeStamp\n" "ascii name, any value\n" "wtf.timeRange#begin\n" "uint32 id, ascii name, any value\n" "wtf.timeRange#end\n" "uint32 id\n" "wtf.timing#frameStart\n" "uint32 number\n" "wtf.timing#frameEnd\n" "uint32 number\n" "wtf.scope#appendData_url_utf8\n" "utf8 url\n" "wtf.scope#appendData_readyState_int32\n" "int32 readyState"); // This offset is used to index into strings defining custom scope events. const uint32 event_string_offset = def_table.GetTableSize(); for (ScopeEventMap::const_iterator it = scope_event_map_.begin(); it != scope_event_map_.end(); ++it) { def_table.AddString(reinterpret_cast<const char*>(it->first)); } // Note: these are the built-in WTF events that are being defined below. // wireId (1) wtf.event#define (uint16 wireId, uint16 eventClass, // uint32 flags, ascii name, ascii args) // wireId (2) wtf.trace#discontinuity () // wireId (3) wtf.zone#create (uint16 zoneId, ascii name, ascii type, // ascii location) // wireId (4) wtf.zone#delete (uint16 zoneId) // wireId (5) wtf.zone#set (uint16 zoneId) // wireId (6) wtf.scope#enter (ascii name) // wireId (7) wtf.scope#enterTracing () // wireId (8) wtf.scope#leave () // wireId (9) wtf.scope#appendData (ascii name, any value) // wireId (10) wtf.trace#mark (ascii name, any value) // wireId (11) wtf.trace#timeStamp (ascii name, any value) // wireId (12) wtf.timeRange#begin (uint32 id, ascii name, any value) // wireId (13) wtf.timeRange#end (uint32 id) // wireId (14) wtf.timing#frameStart (uint32 number) // wireId (15) wtf.timing#frameEnd (uint32 number) // wireId (16) wtf.scope#appendData_url_utf8 (utf8 url) // wireId (17) wtf.scope#appendData_readyState_int32 (int32 readyState) EventBuffer def_events; { std::string* event_buffer = &def_events.buffer; uint32 builtin[] = { 1, 0, 1, 0, 40, 0, 1, 1, 0, 2, 0, 32, 2, 0xffffffff, 1, 0, 3, 0, 40, 3, 4, 1, 0, 4, 0, 40, 5, 6, 1, 0, 5, 0, 40, 7, 8, 1, 0, 6, 1, 32, 9, 10, 1, 0, 7, 1, 44, 11, 0xffffffff, 1, 0, 8, 0, 40, 12, 0xffffffff, 1, 0, 9, 0, 56, 13, 14, 1, 0, 10, 0, 40, 15, 16, 1, 0, 11, 0, 32, 17, 18, 1, 0, 12, 0, 40, 19, 20, 1, 0, 13, 0, 40, 21, 22, 1, 0, 14, 0, 8, 23, 24, 1, 0, 15, 0, 8, 25, 26, 1, 0, 16, 0, 24, 27, 28, 1, 0, 17, 0, 24, 29, 30 }; base::AppendBytes(event_buffer, builtin); // Define each scope event { int event_counter = 0; uint32 temp; for (ScopeEventMap::const_iterator it = scope_event_map_.begin(); it != scope_event_map_.end(); ++it) { temp = kDefineEvent; base::AppendBytes(event_buffer, temp); // wtf.event#define temp = 0; base::AppendBytes(event_buffer, temp); // timestamp temp = it->second; base::AppendBytes(event_buffer, temp); // wireId temp = 1; base::AppendBytes(event_buffer, temp); // eventClass (scope) temp = 0; base::AppendBytes(event_buffer, temp); // flags (unused) temp = event_string_offset + event_counter; base::AppendBytes(event_buffer, temp); // name temp = -1; base::AppendBytes(event_buffer, temp); // args (none) event_counter++; } } } Chunk events_defined; events_defined.AddPart(0x30000, &def_table); events_defined.AddPart(0x20002, &def_events); events_defined.AppendToString(3, 0x2, &output); const int num_trace_threads = static_cast<int>(recorder_list_.size()); StringTable table; table.AddString("script"); table.AddString("Some_Location"); for (int chunk_i = 0; chunk_i < num_trace_threads; ++chunk_i) { const int zone_id = chunk_i + 1; std::string location_string = "Thread_" + base::ValueToString(zone_id); table.AddString(location_string); } EventBuffer events; { std::string* event_buffer = &events.buffer; for (int chunk_i = 0; chunk_i < num_trace_threads; ++chunk_i) { const int zone_id = chunk_i + 1; uint32 temp; // Create a new zone temp = kCreateZoneEvent; base::AppendBytes(event_buffer, temp); temp = 0; base::AppendBytes(event_buffer, temp); // timestamp temp = zone_id; base::AppendBytes(event_buffer, temp); // Zone id temp = 2 + chunk_i; base::AppendBytes(event_buffer, temp); // Zone name temp = 0; base::AppendBytes(event_buffer, temp); // Zone type temp = 1; base::AppendBytes(event_buffer, temp); // Zone location } for (int chunk_i = 0; chunk_i < num_trace_threads; ++chunk_i) { TraceRecorder* rec = recorder_list_[chunk_i]; const int zone_id = chunk_i + 1; uint32 temp; // Set the zone id temp = kSetZoneEvent; base::AppendBytes(event_buffer, temp); temp = 0; base::AppendBytes(event_buffer, temp); // timestamp temp = zone_id; base::AppendBytes(event_buffer, temp); // Zone id // Define each trace event rec->DumpTrace(event_buffer, table.GetTableSize()); // Add trace string data to the string table. rec->DumpStrings(table.GetMutableTable()); } } Chunk trace; trace.AddPart(0x30000, &table); trace.AddPart(0x20002, &events); trace.AppendToString(1, 0x2, &output); return output; } void CallTraceManager::WriteFile(const std::string& filename) const { if (!filename.empty()) { LOG(INFO) << "Writing current WTF traces to: " << filename; std::ofstream filestream( filename.c_str(), std::ios::out | std::ios::binary); if (filestream.good()) { filestream << SnapshotCallTraces(); filestream.close(); } else { LOG(WARNING) << "Failed to open " << filename << " for writing WTF traces."; } } } Timeline CallTraceManager::BuildTimeline() const { std::unique_ptr<TimelineNode> root(new TimelineNode("root")); for (const auto recorder : recorder_list_) { std::unique_ptr<TimelineThread> thread( new TimelineThread(recorder->GetThreadName(), recorder->GetThreadId())); recorder->AddTraceToTimelineNode(thread.get()); root->AddChild(std::move(thread)); } return Timeline(std::move(root)); } analytics::Benchmark CallTraceManager::RunTimelineMetrics() const { analytics::Benchmark benchmark; Timeline timeline = BuildTimeline(); for (const auto& metric : timeline_metrics_) metric->Run(timeline, &benchmark); return benchmark; } } // namespace profile } // namespace ion
31.495427
80
0.665021
[ "vector" ]
72d1d9b9139719f86c91aa32d1f3c5c564ff43ec
11,647
cpp
C++
tools/dc/src/fdSimple.cpp
nonlocalmodels/NLMech
1f7c73438277daf215e38f57aa5bf49e0679987a
[ "BSL-1.0" ]
7
2020-10-25T12:46:40.000Z
2021-11-22T09:03:56.000Z
tools/dc/src/fdSimple.cpp
nonlocalmodels/NLMech
1f7c73438277daf215e38f57aa5bf49e0679987a
[ "BSL-1.0" ]
24
2020-09-04T00:16:38.000Z
2021-07-20T18:44:49.000Z
tools/dc/src/fdSimple.cpp
PeriHPX/PeriHPX
93b2861574cfe3bb071f27d8805fa79c295716b3
[ "BSL-1.0" ]
1
2020-10-25T12:53:52.000Z
2020-10-25T12:53:52.000Z
//////////////////////////////////////////////////////////////////////////////// // Copyright (c) 2019 Prashant K. Jha // Copyright (c) 2019 Patrick Diehl // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) //////////////////////////////////////////////////////////////////////////////// #include <fe/triElem.h> #include <util/feElementDefs.h> #include <limits> #include "dcInclude.h" #include "fe/mesh.h" #include "inp/decks/meshDeck.h" #include "rw/reader.h" #include "rw/writer.h" #include "util/compare.h" #include "util/matrix.h" #include "util/point.h" #include "util/transfomation.h" #include "util/utilGeom.h" static int init = -1; static bool error = false; /*! @brief Local namespace */ namespace fdSimple { /*! @brief Read input files * * @param dim Dimension * @param filename1 Simulation data 1 * @param filename2 Simulation data 2 * @param out_filename Output filename * @param print_screen Data should or should not be printed to screen * @param compare_tags List of tags data which should be compared * @param tolerance * @param config YAML input file */ void readInputFile(size_t &dim, std::string &filename1, std::string &filename2, std::string &out_filename, bool &print_screen, std::vector<std::string> &compare_tags, double &tolerance, YAML::Node config) { dim = config["Dimension"].as<size_t>(); filename1 = config["Filename_1"].as<std::string>(); filename2 = config["Filename_2"].as<std::string>(); if (config["Tolerance"]) tolerance = config["Tolerance"].as<double>(); out_filename = config["Out_Filename"].as<std::string>(); if (config["Print_Screen"]) print_screen = config["Print_Screen"].as<bool>(); else print_screen = true; compare_tags.clear(); auto ct = config["Compare_Tags"]; for (auto f : ct) compare_tags.push_back(f.as<std::string>()); if (compare_tags.empty()) { std::cerr << "Error: Please specify at least one data which should be " "compared.\n"; exit(1); } } // // compute error // void compute(const YAML::Node &config) { size_t dim; std::string filename1; std::string filename2; std::string out_filename; bool print_screen; double tolerance = std::numeric_limits<double>::max(); std::vector<std::string> compare_tags; // read file fdSimple::readInputFile(dim, filename1, filename2, out_filename, print_screen, compare_tags, tolerance, config); // create output file stream FILE *file_out = fopen(out_filename.c_str(), "w"); // write header size_t s_counter = 0; std::ostringstream oss; for (const auto &s : compare_tags) { oss << s.c_str() << "_L2_Error, " << s.c_str() << "_Sup_Error"; // handle special cases if (s_counter < compare_tags.size() - 1) oss << ", "; s_counter++; } oss << "\n"; fprintf(file_out, "%s", oss.str().c_str()); if (print_screen) { std::cout << "------------------------\n"; std::cout << oss.str(); } // reset oss oss.str(""); oss.clear(); // read filename 1 // nodes current position std::vector<util::Point3> nodes_current_1; rw::reader::readVtuFileNodes(filename1, dim, &nodes_current_1, false); // read filename 2 // nodes current position std::vector<util::Point3> nodes_current_2; rw::reader::readVtuFileNodes(filename2, dim, &nodes_current_2, false); // check if size match if (nodes_current_1.size() != nodes_current_2.size()) { std::cerr << "Error: Two files have different number of nodes.\n"; exit(1); } // loop over tags and compute the error for each tag s_counter = 0; for (const auto &tag : compare_tags) { // implement specific cases if (tag == "Displacement") { // read displacement from file 1 std::vector<util::Point3> nodes_u_1; if (!rw::reader::readVtuFilePointData(filename1, tag, &nodes_u_1)) { std::cerr << "Error: " << tag << " data can not be found in the file =" " " << filename1 << std::endl; exit(1); } // read displacement from file 2 std::vector<util::Point3> nodes_u_2; if (!rw::reader::readVtuFilePointData(filename2, tag, &nodes_u_2)) { std::cerr << "Error: " << tag << " data can not be found in the file =" " " << filename2 << std::endl; exit(1); } // compute L2 and sup norm double l2 = 0.; double sup = 0.; for (size_t i = 0; i < nodes_u_1.size(); i++) { auto du = nodes_u_1[i] - nodes_u_2[i]; l2 += du.length() * du.length(); if (util::compare::definitelyGreaterThan(du.length(), sup)) sup = du.length(); } l2 = std::sqrt(l2); if (!util::compare::definitelyLessThan(l2, tolerance)) error = true; // append data oss << l2 << ", " << sup; } else if (tag == "Velocity") { // read displacement from file 1 std::vector<util::Point3> nodes_v_1; if (!rw::reader::readVtuFilePointData(filename1, tag, &nodes_v_1)) { std::cerr << "Error: " << tag << " data can not be found in the file =" " " << filename1 << std::endl; exit(1); } // read displacement from file 2 std::vector<util::Point3> nodes_v_2; if (!rw::reader::readVtuFilePointData(filename2, tag, &nodes_v_2)) { std::cerr << "Error: " << tag << " data can not be found in the file =" " " << filename2 << std::endl; exit(1); } // compute L2 and sup norm double l2 = 0.; double sup = 0.; for (size_t i = 0; i < nodes_v_1.size(); i++) { auto dv = nodes_v_1[i] - nodes_v_2[i]; l2 += dv.length() * dv.length(); if (util::compare::definitelyGreaterThan(dv.length(), sup)) sup = dv.length(); } l2 = std::sqrt(l2); if (!util::compare::definitelyLessThan(l2, tolerance)) error = true; // append data oss << l2 << ", " << sup; } else if (tag == "Force") { // read displacement from file 1 std::vector<util::Point3> nodes_f_1; if (!rw::reader::readVtuFilePointData(filename1, tag, &nodes_f_1)) { std::cerr << "Error: " << tag << " data can not be found in the file =" " " << filename1 << std::endl; exit(1); } // read displacement from file 2 std::vector<util::Point3> nodes_f_2; if (!rw::reader::readVtuFilePointData(filename2, tag, &nodes_f_2)) { std::cerr << "Error: " << tag << " data can not be found in the file =" " " << filename2 << std::endl; exit(1); } // compute L2 and sup norm double l2 = 0.; double sup = 0.; for (size_t i = 0; i < nodes_f_1.size(); i++) { auto df = nodes_f_1[i] - nodes_f_2[i]; l2 += df.length() * df.length(); if (util::compare::definitelyGreaterThan(df.length(), sup)) sup = df.length(); } l2 = std::sqrt(l2); if (!util::compare::definitelyLessThan(l2, tolerance)) error = true; // append data oss << l2 << ", " << sup; } else if (tag == "Strain_Energy") { // read strain energy from file 1 std::vector<double> nodes_e_1; if (!rw::reader::readVtuFilePointData(filename1, tag, &nodes_e_1)) { std::cerr << "Error: " << tag << " data can not be found in the file =" " " << filename1 << std::endl; exit(1); } // read strain energy from file 2 std::vector<double> nodes_e_2; if (!rw::reader::readVtuFilePointData(filename2, tag, &nodes_e_2)) { std::cerr << "Error: " << tag << " data can not be found in the file =" " " << filename2 << std::endl; exit(1); } // compute L2 and sup norm double l2 = 0.; double sup = 0.; for (size_t i = 0; i < nodes_e_1.size(); i++) { auto df = nodes_e_1[i] - nodes_e_2[i]; l2 += df * df; if (util::compare::definitelyGreaterThan(df, sup)) sup = df; } l2 = std::sqrt(l2); if (!util::compare::definitelyLessThan(l2, tolerance)) error = true; // append data oss << l2 << ", " << sup; } else if (tag == "Strain_Tensor") { // read strain tensor from file 1 std::vector<util::Matrix33> nodes_strain_1; if (!rw::reader::readVtuFilePointData(filename1, tag, &nodes_strain_1)) { std::cerr << "Error: " << tag << " data can not be found in the file =" " " << filename1 << std::endl; exit(1); } // read displacement from file 2 std::vector<util::Matrix33> nodes_strain_2; if (!rw::reader::readVtuFilePointData(filename2, tag, &nodes_strain_2)) { std::cerr << "Error: " << tag << " data can not be found in the file =" " " << filename2 << std::endl; exit(1); } // compute L2 and sup norm double l2 = 0.; double sup = 0.; for (size_t i = 0; i < nodes_strain_1.size(); i++) { auto df = blaze::sum(nodes_strain_1[i] - nodes_strain_2[i]); l2 += df * df; if (util::compare::definitelyGreaterThan(df, sup)) sup = df; } l2 = std::sqrt(l2); if (!util::compare::definitelyLessThan(l2, tolerance)) error = true; // append data oss << l2 << ", " << sup; } else if (tag == "Stress_Tensor") { // read strain tensor from file 1 std::vector<util::Matrix33> nodes_strain_1; if (!rw::reader::readVtuFilePointData(filename1, tag, &nodes_strain_1)) { std::cerr << "Error: " << tag << " data can not be found in the file =" " " << filename1 << std::endl; exit(1); } // read displacement from file 2 std::vector<util::Matrix33> nodes_strain_2; if (!rw::reader::readVtuFilePointData(filename2, tag, &nodes_strain_2)) { std::cerr << "Error: " << tag << " data can not be found in the file =" " " << filename2 << std::endl; exit(1); } // compute L2 and sup norm double l2 = 0.; double sup = 0.; for (size_t i = 0; i < nodes_strain_1.size(); i++) { auto df = blaze::sum(nodes_strain_1[i] - nodes_strain_2[i]); l2 += df * df; if (util::compare::definitelyGreaterThan(df, sup)) sup = df; } l2 = std::sqrt(l2); if (!util::compare::definitelyLessThan(l2, tolerance)) error = true; // append data oss << l2 << ", " << sup; } else { std::cerr << "Error: Comparison for tag = " << tag << " has not yet been implemented.\n"; exit(1); } // handle special cases if (s_counter < compare_tags.size() - 1) oss << ", "; s_counter++; } oss << "\n"; fprintf(file_out, "%s", oss.str().c_str()); if (print_screen) std::cout << oss.str(); fclose(file_out); } } // namespace fdSimple // // main function // bool dc::fdSimple(YAML::Node config) { fdSimple::compute(config); return error; }
28.3382
80
0.538078
[ "mesh", "vector" ]
72d5300b2b6a675468261eb53a82a0edef9c05ac
4,403
cpp
C++
DK/DKFramework/DKTriangleMeshProxyShape.cpp
hhg128/DKGL
c61bc6546ac5655da97462cc532a9034ba08516d
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
DK/DKFramework/DKTriangleMeshProxyShape.cpp
hhg128/DKGL
c61bc6546ac5655da97462cc532a9034ba08516d
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
DK/DKFramework/DKTriangleMeshProxyShape.cpp
hhg128/DKGL
c61bc6546ac5655da97462cc532a9034ba08516d
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
// // File: DKTriangleMeshProxyShape.cpp // Author: Hongtae Kim (tiff2766@gmail.com) // // Copyright (c) 2015 Hongtae Kim. All rights reserved. // #include "Private/BulletUtils.h" #include "DKTriangleMeshProxyShape.h" using namespace DKFoundation; using namespace DKFramework; using namespace DKFramework::Private; struct DKTriangleMeshProxyShape::MeshInterface : public btStridingMeshInterface { mutable DKAabb aabb; DKTriangleMeshProxyShape* shape; // should be NULL, while invoking it's constructor. MeshInterface(void) : shape(NULL) {} // override from btStridingMeshInterface void getLockedVertexIndexBase(unsigned char **vertexbase, int& numverts, PHY_ScalarType& type, int& stride, unsigned char **indexbase, int & indexstride, int& numfaces, PHY_ScalarType& indicestype, int subpart) override { *vertexbase = 0; numverts = 0; type = PHY_FLOAT; stride = 0; *indexbase = 0; indexstride = 0; numfaces = 0; indicestype = PHY_INTEGER; } void getLockedReadOnlyVertexIndexBase(const unsigned char **vertexbase, int& numverts, PHY_ScalarType& type, int& stride, const unsigned char **indexbase, int & indexstride, int& numfaces, PHY_ScalarType& indicestype, int subpart) const override { if (shape) { MeshInfo info; memset(&info, 0, sizeof(info)); shape->LockMeshPart(subpart, info); DKASSERT_DEBUG(info.indexSize == 2 || info.indexSize == 4); *vertexbase = (const unsigned char*)info.vertexBuffer; numverts = info.numVertices; type = PHY_FLOAT; stride = info.vertexStride; *indexbase = (const unsigned char*)info.indexBuffer; indexstride = info.indexStride; numfaces = info.numTriangles; indicestype = (info.indexSize == 4) ? PHY_INTEGER : PHY_SHORT; } else { *vertexbase = 0; numverts = 0; type = PHY_FLOAT; stride = 0; *indexbase = 0; indexstride = 0; numfaces = 0; indicestype = PHY_INTEGER; } } void unLockVertexBase(int subpart) override { } void unLockReadOnlyVertexBase(int subpart) const override { if (shape) shape->UnlockMeshPart(subpart); } int getNumSubParts() const override { if (shape) return shape->NumberOfMeshParts(); return 0; } bool hasPremadeAabb() const override { return aabb.IsValid(); } void setPremadeAabb(const btVector3& aabbMin, const btVector3& aabbMax) const override { aabb.positionMin = BulletVector3(aabbMin); aabb.positionMax = BulletVector3(aabbMax); } void getPremadeAabb(btVector3* aabbMin, btVector3* aabbMax) const override { *aabbMin = BulletVector3(aabb.positionMin); *aabbMax = BulletVector3(aabb.positionMax); } void preallocateVertices(int numverts) override {} void preallocateIndices(int numindices) override {} }; DKTriangleMeshProxyShape::DKTriangleMeshProxyShape(void) : DKTriangleMeshProxyShape(new MeshInterface()) { } DKTriangleMeshProxyShape::DKTriangleMeshProxyShape(MeshInterface* mi) : DKConcaveShape(ShapeType::Custom, new btBvhTriangleMeshShape(mi, true, false)) , meshInterface(mi) { DKASSERT_DEBUG(meshInterface); meshInterface->shape = this; } DKTriangleMeshProxyShape::~DKTriangleMeshProxyShape(void) { delete meshInterface; } void DKTriangleMeshProxyShape::Build(void) { btVector3 aabbMin, aabbMax; meshInterface->calculateAabbBruteForce(aabbMin, aabbMax); meshInterface->setPremadeAabb(aabbMin, aabbMax); btBvhTriangleMeshShape* shape = static_cast<btBvhTriangleMeshShape*>(this->impl); const_cast<btVector3&>(shape->getLocalAabbMin()) = aabbMin; const_cast<btVector3&>(shape->getLocalAabbMax()) = aabbMax; shape->buildOptimizedBvh(); } void DKTriangleMeshProxyShape::Refit(const DKAabb& aabb) { btBvhTriangleMeshShape* shape = static_cast<btBvhTriangleMeshShape*>(this->impl); if (shape->getOwnsBvh()) { if (aabb.IsValid()) shape->refitTree(BulletVector3(aabb.positionMin), BulletVector3(aabb.positionMax)); else shape->refitTree(BulletVector3(meshInterface->aabb.positionMin), BulletVector3(meshInterface->aabb.positionMax)); } else Build(); } void DKTriangleMeshProxyShape::PartialRefit(const DKAabb& aabb) { btBvhTriangleMeshShape* shape = static_cast<btBvhTriangleMeshShape*>(this->impl); if (shape->getOwnsBvh()) { if (aabb.IsValid()) shape->partialRefitTree(BulletVector3(aabb.positionMin), BulletVector3(aabb.positionMax)); } else Build(); } DKAabb DKTriangleMeshProxyShape::Aabb(void) const { return meshInterface->aabb; }
27.01227
246
0.749035
[ "shape" ]
72d7e037a2564149c195d2d3ff91e99dac53c14e
5,864
hpp
C++
tests/PokemonBuilder.hpp
Ghabriel/PokemonCpp
dcdbbde0ea99afc98edecd764b02ff92d8ca6a6e
[ "Apache-2.0" ]
6
2018-08-05T21:45:23.000Z
2021-10-30T19:48:34.000Z
tests/PokemonBuilder.hpp
Ghabriel/PokemonCpp
dcdbbde0ea99afc98edecd764b02ff92d8ca6a6e
[ "Apache-2.0" ]
null
null
null
tests/PokemonBuilder.hpp
Ghabriel/PokemonCpp
dcdbbde0ea99afc98edecd764b02ff92d8ca6a6e
[ "Apache-2.0" ]
1
2021-11-01T20:15:38.000Z
2021-11-01T20:15:38.000Z
#ifndef POKEMON_BUILDER_HPP #define POKEMON_BUILDER_HPP #include <optional> #include "battle/data/Pokemon.hpp" #include "battle/data/PokemonSpeciesData.hpp" #include "battle/helpers/generate-pokemon.hpp" #include "engine/resource-system/include.hpp" class PokemonBuilder { using ResourceStorage = engine::resourcesystem::ResourceStorage; public: PokemonBuilder( ResourceStorage&, const std::string& speciesId, size_t level ); PokemonBuilder& withNature(Nature); PokemonBuilder& withHeldItem(const std::string& itemId); PokemonBuilder& withExp(int expPoints); PokemonBuilder& withAbility(const std::string& abilityId); PokemonBuilder& withEVs(const std::array<int, 6>&); PokemonBuilder& withIVs(const std::array<int, 6>&); PokemonBuilder& withMoves(const std::vector<std::string>& moveIds); PokemonBuilder& withPPs(const std::vector<int>& pps); PokemonBuilder& withPPUps(const std::vector<int>& ppUps); PokemonBuilder& withGender(Gender); PokemonBuilder& withForm(int form); PokemonBuilder& withNickname(const std::string&); PokemonBuilder& withPokerus(); PokemonBuilder& withPokeball(const std::string& pokeballId); PokemonBuilder& withStatusCondition(StatusCondition); PokemonBuilder& withAsleepCounter(int asleepRounds); PokemonBuilder& withCurrentHP(int currentHP); Pokemon build() const; private: ResourceStorage& storage; std::string species; size_t level; std::optional<Nature> nature; std::optional<std::string> heldItem; std::optional<int> experiencePoints; std::optional<std::string> ability; std::optional<std::array<int, 6>> ev; std::optional<std::array<int, 6>> iv; std::optional<std::vector<std::string>> moves; std::optional<std::vector<int>> pp; std::optional<std::vector<int>> ppUps; std::optional<Gender> gender; std::optional<int> form; std::optional<std::string> displayName; std::optional<bool> pokerus; std::optional<std::string> pokeball; std::optional<StatusCondition> status; std::optional<int> asleepRounds; std::optional<float> currentHP; }; PokemonBuilder::PokemonBuilder( ResourceStorage& storage, const std::string& speciesId, size_t level ) : storage(storage), species(speciesId), level(level) { } PokemonBuilder& PokemonBuilder::withNature(Nature _nature) { nature = _nature; return *this; } PokemonBuilder& PokemonBuilder::withHeldItem(const std::string& itemId) { heldItem = itemId; return *this; } PokemonBuilder& PokemonBuilder::withExp(int expPoints) { experiencePoints = expPoints; return *this; } PokemonBuilder& PokemonBuilder::withAbility(const std::string& abilityId) { ability = abilityId; return *this; } PokemonBuilder& PokemonBuilder::withEVs(const std::array<int, 6>& evs) { ev = evs; return *this; } PokemonBuilder& PokemonBuilder::withIVs(const std::array<int, 6>& ivs) { iv = ivs; return *this; } PokemonBuilder& PokemonBuilder::withMoves(const std::vector<std::string>& moveIds) { moves = moveIds; return *this; } PokemonBuilder& PokemonBuilder::withPPs(const std::vector<int>& pps) { pp = pps; return *this; } PokemonBuilder& PokemonBuilder::withPPUps(const std::vector<int>& _ppUps) { ppUps = _ppUps; return *this; } PokemonBuilder& PokemonBuilder::withGender(Gender _gender) { gender = _gender; return *this; } PokemonBuilder& PokemonBuilder::withForm(int _form) { form = _form; return *this; } PokemonBuilder& PokemonBuilder::withNickname(const std::string& nickname) { displayName = nickname; return *this; } PokemonBuilder& PokemonBuilder::withPokerus() { pokerus = true; return *this; } PokemonBuilder& PokemonBuilder::withPokeball(const std::string& pokeballId) { pokeball = pokeballId; return *this; } PokemonBuilder& PokemonBuilder::withStatusCondition(StatusCondition statusCondition) { status = statusCondition; return *this; } PokemonBuilder& PokemonBuilder::withAsleepCounter(int _asleepRounds) { asleepRounds = _asleepRounds; return *this; } PokemonBuilder& PokemonBuilder::withCurrentHP(int _currentHP) { currentHP = _currentHP; return *this; } #include "engine/utils/debug/xtrace.hpp" Pokemon PokemonBuilder::build() const { using namespace generation; PokemonSpeciesData& speciesData = storage.get<PokemonSpeciesData>("pokemon-" + species); Pokemon pokemon; pokemon.species = species; pokemon.nature = nature ? nature.value() : pickNature(); pokemon.heldItem = heldItem.value_or(""); pokemon.experiencePoints = experiencePoints.value_or(0); pokemon.ability = ability.value_or(""); // TODO pokemon.ev = ev ? ev.value() : std::array{0, 0, 0, 0, 0, 0}; pokemon.iv = iv ? iv.value() : pickIVs(); pokemon.moves = moves ? moves.value() : pickMoves(speciesData, level); pokemon.pp = pp ? pp.value() : pickPPs(storage, pokemon.moves); pokemon.ppUps = ppUps ? ppUps.value() : std::vector<int>{0, 0, 0, 0}; pokemon.eggStepsToHatch = -1; pokemon.gender = gender ? gender.value() : pickGender(speciesData); pokemon.form = form.value_or(0); pokemon.isNicknamed = displayName.has_value(); pokemon.displayName = displayName.value_or(speciesData.displayName); pokemon.metAtDate = 0; pokemon.metAtLocation = "testing-area"; pokemon.metAtLevel = level; pokemon.pokerus = pokerus.value_or(false); pokemon.pokeball = pokeball.value_or(""); pokemon.status = status.value_or(StatusCondition::Normal); pokemon.asleepRounds = asleepRounds.value_or(0); pokemon.level = level; pokemon.stats = {0, 0, 0, 0, 0, 0}; pickStats(speciesData, pokemon); pokemon.currentHP = currentHP.value_or(pokemon.stats[0]); return pokemon; } #endif
30.541667
92
0.70498
[ "vector" ]
72dddba9411ce7cc2ff2db7475924b5f0eddc83d
237
cc
C++
hw08/mytest.cc
ranstotz/ece_3822
0fad15070f9047a9eccdab9178e4a38cfc148987
[ "MIT" ]
null
null
null
hw08/mytest.cc
ranstotz/ece_3822
0fad15070f9047a9eccdab9178e4a38cfc148987
[ "MIT" ]
null
null
null
hw08/mytest.cc
ranstotz/ece_3822
0fad15070f9047a9eccdab9178e4a38cfc148987
[ "MIT" ]
null
null
null
#include "mytest.h" int main(int argc, char** argv) { // Test the class and create test object // MyTest test; // Test the debug method to print // test.set_debug(MyTest::FULL); // Exit gracefully // return 0; }
13.941176
42
0.616034
[ "object" ]
72e314ab9b2fcf6cbb56636353401fe9594fc716
3,030
cpp
C++
RoadLine.cpp
Teeuwis10/SIMULATION
59e99e4cbf9da8db7e24189519237262c9bb032d
[ "MIT" ]
null
null
null
RoadLine.cpp
Teeuwis10/SIMULATION
59e99e4cbf9da8db7e24189519237262c9bb032d
[ "MIT" ]
null
null
null
RoadLine.cpp
Teeuwis10/SIMULATION
59e99e4cbf9da8db7e24189519237262c9bb032d
[ "MIT" ]
null
null
null
#include "RoadLine.h" #include <vector> #include <iostream> #include <cstdlib> #include "RoadEvent.h" #include <stdlib.h> #include <iostream> #include "Tools.h" #include <iomanip> #include <iterator> #include <Windows.h> #include "ConsolColor.h" RoadLine::RoadLine(std::string roadName, std::string lineName,std::vector<RoadEvent>& Event) { this->Event = Event; this->roadName = roadName; this->lineName = lineName; } void RoadLine::RoadLinePrint(ConsolColor Color) { HANDLE hConsole = GetStdHandle(STD_OUTPUT_HANDLE); switch (Color) { case::ConsolColor::GREEN: SetConsoleTextAttribute(hConsole, 10); break; case::ConsolColor::RED: SetConsoleTextAttribute(hConsole, 12); break; case::ConsolColor::BLUE: SetConsoleTextAttribute(hConsole, 9); break; case::ConsolColor::YELLOW: SetConsoleTextAttribute(hConsole, 14); break; case::ConsolColor::WHITE: SetConsoleTextAttribute(hConsole, 15); break; } std::vector<RoadEvent>::iterator itt = Event.end(); itt--; int lenght = (*itt).position+1; Tools Tool = Tools(); std::cout << "-----------------------------------"<<roadName<<"---"<< lineName <<"----------------------------------------------------" << std::endl; std::cout << std::setw(10) << "iterator" << std::setw(20) << "current event" << std::setw(20) << "distance to next" << std::setw(5) << "speed" << std::setw(5) << "acc" << std::setw(5) <<"lenght" << std::endl; std::vector<char> tmp(lenght, '-'); for (std::vector<RoadEvent>::iterator it = Event.begin(); it != Event.end(); it++) { if((*it).name == "END") { auto tmp2 = std::next(it, 0); RoadEvent nextEvent = *tmp2; int index = std::distance(Event.begin(), it); std::cout << std::setw(6) << index << " " << std::setw(5) << (*it).name << std::setw(10) << (*it).position << std::setw(20) << Tool.getDistance((*it), nextEvent) << " " << std::setw(5) << nextEvent.name << std::setw(5) << (*it).curentSpeed << std::setw(5) << (*it).currentAcc << std::setw(5) << (*it).lenght << std::endl; } else { auto tmp2 = std::next(it, 1); RoadEvent nextEvent = *tmp2; int index = std::distance(Event.begin(), it); std::cout << std::setw(6) << index << " " << std::setw(5)<< (*it).name << std::setw(10) << (*it).position << std::setw(20) << Tool.getDistance((*it), nextEvent) << " " << std::setw(5) << nextEvent.name << std::setw(5) << (*it).curentSpeed << std::setw(5) << (*it).currentAcc << std::setw(5) << (*it).lenght << std::endl; } if((*it).name=="CAR") { for (int i = 0; i < (*it).lenght; i++) { tmp[(*it).position + i ] = '>'; } } if ((*it).name == "START") { tmp[(*it).position] = 'S'; } if ((*it).name == "END") { tmp[(*it).position] = 'E'; } if ((*it).name == "CROSS") { tmp[(*it).position] = 'C'; } } for (int i = 0; i < lenght; i++) { std::cout << tmp[i]; } std::cout << std::endl; SetConsoleTextAttribute(hConsole, 15); system("pause"); std::cout << "\033[2J\033[1;1H"; }; RoadLine::~RoadLine() { }
27.053571
210
0.569637
[ "vector" ]
72e53c801321e2b71e292d025fb011ecb74ef88d
9,201
hpp
C++
_engine/code/include/global/component/app_interrupter/real.hpp
Shelim/pixie_engine
bf1d80f3f03bd3d6890f4dfc63440f7dd0ff34a1
[ "MIT" ]
null
null
null
_engine/code/include/global/component/app_interrupter/real.hpp
Shelim/pixie_engine
bf1d80f3f03bd3d6890f4dfc63440f7dd0ff34a1
[ "MIT" ]
null
null
null
_engine/code/include/global/component/app_interrupter/real.hpp
Shelim/pixie_engine
bf1d80f3f03bd3d6890f4dfc63440f7dd0ff34a1
[ "MIT" ]
null
null
null
#ifndef ENGINE_COMPONENT_APP_INTERRUPTER_REAL_HPP #define ENGINE_COMPONENT_APP_INTERRUPTER_REAL_HPP #pragma once #include "global/component/logger.hpp" #include "global/component/app_interrupter.hpp" #include "utility/container/concurrent_queue.hpp" #include "global/core/process/service.hpp" #include <map> #include <memory> #include <vector> #include <array> namespace engine { class app_interrupter_actual_t { public: app_interrupter_actual_t(std::shared_ptr<logger_t> logger) : logger(logger) { } void send_interruption(std::unique_ptr<interruption_t> interruption) { if(interruption) interruptions.push(std::move(interruption)); } void terminate() { interruptions.push(std::unique_ptr<interruption_t>()); } task_base_t::result_t run() { for(;;) { std::unique_ptr<interruption_t> interruption = std::move(interruptions.pop()); if(!interruption) return task_base_t::result_t::completed; handle_interruption(std::move(interruption)); } } private: std::mutex mutex; std::shared_ptr<logger_t> logger; concurrent_queue_t<std::unique_ptr<interruption_t> > interruptions; class instance_real_t; friend class app_interrupter_real_t; void register_instance(app_t::kind_t app, app_t::instance_id_t target, app_interrupter_t::priority_t priority, instance_real_t * instance) { std::lock_guard<std::mutex> guard(mutex); auto task_id = logger->log_task_start(app, target, apps, "New handler for interruption is being registered with priority '#1#'"_u, priority); auto ret = instances[target].register_instance(priority, instance); switch(ret) { case app_info_t::register_result_t::success: logger->log_task_done(task_id); break; case app_info_t::register_result_t::already_registered: logger->log_warn(app, target, apps, "The handler attempted to register itself second time (priority '#1#')"_u, priority); logger->log_task_failed(task_id); break; default: logger->log_err(app, target, apps, "The handler returned unexpected message, most likely due to stack corruption"_u); logger->log_task_failed(task_id); } } void unregister_instance(app_t::kind_t app, app_t::instance_id_t target, app_interrupter_t::priority_t priority, instance_real_t * instance) { std::lock_guard<std::mutex> guard(mutex); auto task_id = logger->log_task_start(app, target, apps, "Handler for interruption with priority '#1#' is being destroyed"_u, priority); auto ret = instances[target].unregister_instance(priority, instance); switch(ret) { case app_info_t::unregister_result_t::success_no_more_instances: instances.erase(target); // No break, it is intended case app_info_t::unregister_result_t::success_have_more_instances: logger->log_task_done(task_id); break; case app_info_t::unregister_result_t::wrong_priority: logger->log_err(app, target, apps, "The handler attempted to unregister itself with wrong priority, most likely due to stack corruption"_u); logger->log_task_failed(task_id); break; case app_info_t::unregister_result_t::not_registered: logger->log_warn(app, target, apps, "The handler attempted to free itself, while it was not registered in the first place"_u); logger->log_task_failed(task_id); break; default: logger->log_err(app, target, apps, "The handler returned unexpected message, most likely due to stack corruption"_u); logger->log_task_failed(task_id); } } void handle_interruption(std::unique_ptr<interruption_t> interruption) { std::lock_guard<std::mutex> guard(mutex); auto item = instances.find(interruption->get_target()); if(item == instances.end()) interruption->execute_unhandled_handler(); else { for(std::size_t i = 0; i < value_of(app_interrupter_t::priority_t::count); i++) { instances_t * instances = item->second.get(static_cast<app_interrupter_t::priority_t>(i)); for(std::size_t p = 0; p < instances->size(); p++) { (*instances)[p]->execute(interruption.get()); if(interruption->was_handled()) return; } } interruption->execute_unhandled_handler(); } } class instance_real_t : public app_interrupter_t::instance_t { public: instance_real_t(std::shared_ptr<app_interrupter_actual_t> owner, app_t::kind_t app, app_t::instance_id_t target, app_interrupter_t::priority_t priority, app_interrupter_t::handler_t handler) : owner(owner), app(app), target(target), priority(priority), handler(std::move(handler)) { owner->register_instance(app, target, priority, this); } ~instance_real_t() { owner->unregister_instance(app, target, priority, this); } void execute(interruption_t * interruption) { handler(interruption); } private: std::shared_ptr<app_interrupter_actual_t> owner; app_t::kind_t app; app_t::instance_id_t target; app_interrupter_t::priority_t priority; app_interrupter_t::handler_t handler; }; typedef std::vector<instance_real_t*> instances_t; class app_info_t { public: enum class register_result_t { success, already_registered, count }; enum class unregister_result_t { success_have_more_instances, success_no_more_instances, wrong_priority, not_registered, count }; register_result_t register_instance(app_interrupter_t::priority_t priority, instance_real_t* instance) { for(std::size_t i = 0; i < value_of(app_interrupter_t::priority_t::count); i++) { if(std::find(instances_by_priority[i].begin(), instances_by_priority[i].end(), instance) != instances_by_priority[i].end()) return register_result_t::already_registered; } instances_by_priority[value_of(priority)].push_back(instance); return register_result_t::success; } unregister_result_t unregister_instance(app_interrupter_t::priority_t priority, instance_real_t* instance) { bool is_empty = true; for(std::size_t i = 0; i < value_of(app_interrupter_t::priority_t::count); i++) { auto iter = std::find(instances_by_priority[i].begin(), instances_by_priority[i].end(), instance); if(iter != instances_by_priority[i].end()) { if(i != value_of(priority)) return unregister_result_t::wrong_priority; instances_by_priority[i].erase(iter); for(std::size_t p = i; p < value_of(app_interrupter_t::priority_t::count); p++) { if(!is_empty) return unregister_result_t::success_have_more_instances; if(!instances_by_priority[p].empty()) is_empty = false; } return unregister_result_t::success_no_more_instances; } if(!instances_by_priority[i].empty()) is_empty = false; } return unregister_result_t::not_registered; } instances_t * get(app_interrupter_t::priority_t priority) { return &instances_by_priority[value_of(priority)]; } private: typedef std::array<instances_t, value_of(app_interrupter_t::priority_t::count)> instances_by_priority_t; instances_by_priority_t instances_by_priority; }; std::map<app_t::instance_id_t, app_info_t> instances; }; class app_interrupter_service_t : public service_base_t { public: app_interrupter_service_t(std::shared_ptr<logger_t> logger, std::shared_ptr<app_interrupter_actual_t> actual) : logger(logger), actual(actual) { logger->log_global_msg(apps, "App interrupter service has started"_u); } ~app_interrupter_service_t() { logger->log_global_msg(apps, "App interrupter service has concluded"_u); } ustring_t get_name() const final { return "App interrupter service"_u; } task_base_t::result_t run() final { return actual->run(); } void on_end_requested() final { actual->terminate(); } private: std::shared_ptr<logger_t> logger; std::shared_ptr<app_interrupter_actual_t> actual; }; class app_interrupter_real_t : public app_interrupter_t { public: app_interrupter_real_t(std::shared_ptr<logger_t> logger, std::unique_ptr<service_t<app_interrupter_service_t>> service, std::shared_ptr<app_interrupter_actual_t> actual) : logger(logger), service(std::move(service)), actual(actual) { auto task_id = logger->log_global_task_start(apps, "Initializing app interrupter"_u); this->service->start(); logger->log_global_task_done(task_id); } ~app_interrupter_real_t() { auto task_id = logger->log_global_task_start(apps, "App interrupter is being disposed"_u); this->service->end(); logger->log_global_task_done(task_id); } std::unique_ptr<instance_t> register_handler(app_t::kind_t app, app_context_t* context, priority_t priority, handler_t handler) final { return std::make_unique<app_interrupter_actual_t::instance_real_t>(actual, app, context->get_instance_id(), priority, std::move(handler)); } void send_interruption(std::unique_ptr<interruption_t> interruption) final { actual->send_interruption(std::move(interruption)); } private: std::shared_ptr<logger_t> logger; std::unique_ptr<service_t<app_interrupter_service_t>> service; std::shared_ptr<app_interrupter_actual_t> actual; }; } #endif
32.62766
284
0.727638
[ "vector" ]
6392b1e5c8e8a3caa711b683c8289bde3fe7f1d3
31,409
hpp
C++
pdedsl/proto_vector.hpp
cau-se/sprat-pde-dsl
15621aaf8b3e78f67f39a7c3c5ae30e02ee7c9ee
[ "Apache-2.0" ]
null
null
null
pdedsl/proto_vector.hpp
cau-se/sprat-pde-dsl
15621aaf8b3e78f67f39a7c3c5ae30e02ee7c9ee
[ "Apache-2.0" ]
null
null
null
pdedsl/proto_vector.hpp
cau-se/sprat-pde-dsl
15621aaf8b3e78f67f39a7c3c5ae30e02ee7c9ee
[ "Apache-2.0" ]
null
null
null
/* * Copyright 2014-2015 Arne Johanson * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * 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. */ #ifndef PROTO_VECTOR_HPP_ #define PROTO_VECTOR_HPP_ // ************************************* Vector Functionality #define ARITHMETIC_VECTOR_REALALMOSTCOMPARISON(OP, COMPFUNCTION, FAIL, SUCCESS) \ bool operator OP(real rhs) const { \ const index_t numElements = boost::proto::value(*this).localSize(); \ bool answer = SUCCESS; \ foreach_omp_index(i, numElements, shared(rhs,answer), { \ if(COMPFUNCTION(boost::proto::value(*this).get(i), rhs)) { \ answer = FAIL; \ } \ }) \ return answer; \ } #define ARITHMETIC_ELEMENTVECTOR_REALALMOSTCOMPARISON(OP, COMPFUNCTION, FAIL, SUCCESS) \ bool operator OP(real rhs) const { \ for(index_t i=0; i<nDoFPerElement(); ++i) { \ if(COMPFUNCTION(boost::proto::value(*this).get(i), rhs)) { \ return FAIL; \ } \ } \ return SUCCESS; \ } #define ARITHMETIC_VECTOR_REALCOMPARISON(OP) \ bool operator OP(real rhs) const { \ const index_t numElements = boost::proto::value(*this).localSize(); \ bool answer = true; \ foreach_omp_index(i, numElements, shared(rhs,answer), { \ if(!(boost::proto::value(*this).get(i) OP rhs)) { \ answer = false; \ } \ }) \ return answer; \ } #define ARITHMETIC_ELEMENTVECTOR_REALCOMPARISON(OP) \ bool operator OP(real rhs) const { \ for(uint i=0; i<nDoFPerElement(); ++i) { \ if(!(boost::proto::value(*this).get(i) OP rhs)) { \ return false; \ } \ } \ return true; \ } #define ARITHMETIC_VECTOR_REALASSIGNMENT(VECTYPE, OP) \ real operator OP(real value) const { \ const index_t numElements = boost::proto::value(*this).localSize(); \ foreach_omp_index(i, numElements, shared(value), { \ boost::proto::value(*this)[i] OP value; \ }) \ return value; \ } #define ARITHMETIC_VECTOR_VECEXPRASSIGNMENT(VECTYPE, OP) \ template<typename Expr> \ VECTYPE const& operator OP(VectorExprWrapper<Expr> const& expr) const { \ const index_t numElements = boost::proto::value(*this).localSize(); \ foreach_omp_index(i, numElements, shared(expr), { \ boost::proto::value(*this)[i] OP expr[i]; \ }) \ return *this; \ } #define ARITHMETIC_VECTOR_ELEMVECEXPRASSIGNMENT(VECTYPE, OP) \ template<typename Expr> \ VECTYPE const& operator OP(ElemVectorExprWrapper<Expr> const& expr) const { \ mvAssert("Error: Only one ElementVector per Vector assignment supported!", 1 == boost::proto::eval(expr, CountElementVectors())); \ mvAssert("Error: Sums of ElementVector expressions not supported for Vector assignment!", boost::proto::eval(expr, ExpressionIsJustAFactor())); \ for(uint i=0; i<nDoFPerElement(); ++i) { \ const index_t globalIndex = boost::proto::eval(expr, Local2GlobalDoFIndex(i)); \ const real opResult = boost::proto::eval(expr, VectorSubscriptWithLocalAndGlobalIndex(i, globalIndex)); \ boost::proto::value(*this)[globalIndex] OP opResult; \ } \ return *this; \ } #define ARITHMETIC_VECTOR_ELEMMVEXPRASSIGNMENT(VECTYPE, MATRIXOP) \ template<typename Expr> \ VECTYPE const& operator MATRIXOP(ElemMVExprWrapper<Expr> const& expr) const { \ mvAssert("Error: Sums of ElementMatrix expressions not supported for Vector assignment!", boost::proto::eval(expr, ExpressionIsJustAFactor())); \ index_t globalDoF[nDoFPerElement()]; \ for(uint i=0; i<nDoFPerElement(); ++i) { \ globalDoF[i] = boost::proto::eval(expr, Local2GlobalDoFIndex(i)); \ } \ for(uint i=0; i<nDoFPerElement(); ++i) { \ if(i < boost::proto::value(*this).localSize()) { \ for(uint j=0; j<nDoFPerElement(); ++j) { \ const real opResult = boost::proto::eval(expr, CalculateElemMatrixContribution(i, j, globalDoF[j])); \ boost::proto::value(*this)[globalDoF[i]] MATRIXOP opResult; \ } \ } \ } \ return *this; \ } // (OP,MATRIXSIGN) must be either (+=,0) or (-=,1) #define ARITHMETIC_VECTOR_MVEXPRASSIGNMENT(VECTYPE, OP, MATRIXSIGN) \ template<typename Expr> \ VECTYPE const& operator OP(MVExprWrapper<Expr> const& expr) const { \ if(boost::proto::eval(expr, VectorValuesDoAppear())) { \ foreach_omp_index(i, boost::proto::value(*this).localSize(), shared(expr), { \ boost::proto::value(*this)[i] OP boost::proto::eval(expr, VectorSubscriptContext(i)); \ }) \ } \ boost::proto::eval(expr, AddMatrixContribution<VECTYPE>(*this, MATRIXSIGN)); \ return *this; \ } // OP is = #define ARITHMETIC_VECTOR_MVEXPRASSIGNMENT_EQUAL(VECTYPE) \ template<typename Expr> \ VECTYPE const& operator =(MVExprWrapper<Expr> const& expr) const { \ if(boost::proto::eval(expr, VectorValuesDoAppear())) { \ foreach_omp_index(i, boost::proto::value(*this).localSize(), shared(expr), { \ boost::proto::value(*this)[i] = boost::proto::eval(expr, VectorSubscriptContext(i)); \ }) \ } \ else { \ foreach_omp_index(i, boost::proto::value(*this).localSize(), shared(expr), { \ boost::proto::value(*this)[i] = 0.0; \ }) \ } \ boost::proto::eval(expr, AddMatrixContribution<VECTYPE>(*this, 0)); \ return *this; \ } #define ARITHMETIC_ELEMENTVECTOR_REALASSIGNMENT(VECTYPE, OP) \ real operator OP(real value) const { \ for(uint i=0; i<nDoFPerElement(); ++i) { \ boost::proto::value(*this)[i] OP value; \ } \ return value; \ } #define ARITHMETIC_ELEMENTVECTOR_VECEXPRASSIGNMENT(VECTYPE, OP) \ template<typename Expr> \ VECTYPE const& operator OP(VectorExprWrapper<Expr> const& expr) const { \ for(uint i=0; i<nDoFPerElement(); ++i) { \ index_t globalIndex = boost::proto::value(*this).globalDoFIndex(i); \ boost::proto::value(*this)[i] OP boost::proto::eval(expr, VectorSubscriptWithLocalAndGlobalIndex(i, globalIndex)); \ } \ return *this; \ } #define ARITHMETIC_ELEMENTVECTOR_ELEMVECEXPRASSIGNMENT(VECTYPE, OP) \ template<typename Expr> \ VECTYPE const& operator OP(ElemVectorExprWrapper<Expr> const& expr) const { \ if(boost::proto::eval(expr, GlobalVectorsDoAppear())) { \ for(uint i=0; i<nDoFPerElement(); ++i) { \ index_t globalIndex = boost::proto::value(*this).globalDoFIndex(i); \ boost::proto::value(*this)[i] OP boost::proto::eval(expr, VectorSubscriptWithLocalAndGlobalIndex(i, globalIndex)); \ } \ } \ else { \ for(uint i=0; i<nDoFPerElement(); ++i) { \ boost::proto::value(*this)[i] OP boost::proto::eval(expr, VectorSubscriptContext(i)); \ } \ } \ return *this; \ } // OP must be either =, += or -= but not *= or /=! #define ARITHMETIC_ELEMENTVECTOR_ELEMMVEXPRASSIGNMENT(VECTYPE, OP, MATRIXOP) \ template<typename Expr> \ VECTYPE const& operator OP(ElemMVExprWrapper<Expr> const& expr) const { \ index_t globalDoF[nDoFPerElement()]; \ for(uint i=0; i<nDoFPerElement(); ++i) { \ globalDoF[i] = boost::proto::value(*this).globalDoFIndex(i); \ } \ if(boost::proto::eval(expr, GlobalVectorsDoAppear())) { \ for(uint i=0; i<nDoFPerElement(); ++i) { \ boost::proto::value(*this)[i] OP boost::proto::eval(expr, VectorSubscriptWithLocalAndGlobalIndex(i, globalDoF[i])); \ } \ } \ else { \ for(uint i=0; i<nDoFPerElement(); ++i) { \ boost::proto::value(*this)[i] OP boost::proto::eval(expr, VectorSubscriptContext(i)); \ } \ } \ for(uint i=0; i<nDoFPerElement(); ++i) { \ for(uint j=0; j<nDoFPerElement(); ++j) { \ boost::proto::value(*this)[i] MATRIXOP boost::proto::eval(expr, CalculateElemMatrixContribution(i, j, globalDoF[j])); \ } \ } \ return *this; \ } // ************************************** Proto Vector Types template<typename = boost::proto::is_proto_expr> struct Vector_ : ProtoVector { public: Vector_() {} explicit Vector_(index_t const n) { boost::proto::value(*this).reset(n); } void touch(real initValue = 0.0) { boost::proto::value(*this).touch(initValue); } void touch(std::function<void (real *, index_t)> touchFunction) { boost::proto::value(*this).touch(touchFunction); } void printToFile(std::string prefix, uint id, std::string suffix = ".txt") const { boost::proto::value(*this).printToFile(prefix, id, suffix); } void writeBinaryToFile(std::string prefix, uint id, std::string suffix = ".bin") const { boost::proto::value(*this).writeBinaryToFile(prefix, id, suffix); } void readBinaryFromFile(std::string prefix, uint id, std::string suffix = ".bin") { boost::proto::value(*this).readBinaryFromFile(prefix, id, suffix); } void print() const { boost::proto::value(*this).print(); } #ifdef SPRAT_BUILD_WITH_MPI std::vector<MPI_Request> collectFromSlavesAsync(std::string const& name, ParallelExecutionEnvironment const& pEE, std::vector<index_t> const& dofStartIndexForProcess) const { return boost::proto::value(*this).collectFromSlavesAsync(name, pEE, dofStartIndexForProcess); } std::vector<MPI_Request> distributeToSlavesAsync(std::string const& name, ParallelExecutionEnvironment const& pEE, std::vector<index_t> const& dofStartIndexForProcess) const { return boost::proto::value(*this).distributeToSlavesAsync(name, pEE, dofStartIndexForProcess); } #endif void reset(index_t const n) { boost::proto::value(*this).reset(n); } index_t size() const { return boost::proto::value(*this).size(); } index_t localSize() const { return boost::proto::value(*this).localSize(); } //void swap(Vector_& other) { boost::proto::value(*this).swap(boost::proto::value(other)); } real * getValues() const { return boost::proto::value(*this).getValues(); } real& operator[](index_t const i) const { return boost::proto::value(*this)[i]; } // real operator[](index_t const i) const { return boost::proto::value(*this).get(i); } Vector_ const& operator=(Vector_ const& other) { boost::proto::value(*this).setTo(boost::proto::value(other)); return *this; } // Vector_ const& operator=(VectorView const& other) { // boost::proto::value(*this).setTo(boost::proto::value(other)); // return *this; // } // template<typename Expr> // Vector_ const& operator =(MVExprWrapper<Expr> const& expr) const { // return *this; // } ARITHMETIC_VECTOR_MVEXPRASSIGNMENT_EQUAL(Vector_) ARITHMETIC_VECTOR_MVEXPRASSIGNMENT(Vector_, +=, 0) ARITHMETIC_VECTOR_MVEXPRASSIGNMENT(Vector_, -=, 1) ARITHMETIC_VECTOR_REALASSIGNMENT(Vector_, =) ARITHMETIC_VECTOR_REALASSIGNMENT(Vector_, +=) ARITHMETIC_VECTOR_REALASSIGNMENT(Vector_, -=) ARITHMETIC_VECTOR_REALASSIGNMENT(Vector_, *=) ARITHMETIC_VECTOR_REALASSIGNMENT(Vector_, /=) ARITHMETIC_VECTOR_VECEXPRASSIGNMENT(Vector_, =) ARITHMETIC_VECTOR_VECEXPRASSIGNMENT(Vector_, +=) ARITHMETIC_VECTOR_VECEXPRASSIGNMENT(Vector_, -=) ARITHMETIC_VECTOR_VECEXPRASSIGNMENT(Vector_, *=) ARITHMETIC_VECTOR_VECEXPRASSIGNMENT(Vector_, /=) //ARITHMETIC_VECTOR_ELEMVECEXPRASSIGNMENT(Vector_, =); ARITHMETIC_VECTOR_ELEMVECEXPRASSIGNMENT(Vector_, +=) ARITHMETIC_VECTOR_ELEMVECEXPRASSIGNMENT(Vector_, -=) ARITHMETIC_VECTOR_ELEMVECEXPRASSIGNMENT(Vector_, *=) ARITHMETIC_VECTOR_ELEMVECEXPRASSIGNMENT(Vector_, /=) ARITHMETIC_VECTOR_ELEMMVEXPRASSIGNMENT(Vector_, +=) ARITHMETIC_VECTOR_ELEMMVEXPRASSIGNMENT(Vector_, -=) ARITHMETIC_VECTOR_REALALMOSTCOMPARISON(==, !almostEqual, false, true) ARITHMETIC_VECTOR_REALALMOSTCOMPARISON(!=, !almostEqual, true, false) ARITHMETIC_VECTOR_REALCOMPARISON(<) ARITHMETIC_VECTOR_REALCOMPARISON(>) ARITHMETIC_VECTOR_REALCOMPARISON(<=) ARITHMETIC_VECTOR_REALCOMPARISON(>=) // template<typename Expr> // VectorView_ const& operator=(ElemMVExprWrapper<Expr> expr) { // return Arithmetic_Vector_ElemMVExprAssignment(*this, expr); // } real norm() const { return boost::proto::value(*this).norm(); } real average() const { return boost::proto::value(*this).average(); } template<typename VecType> real dotProduct(VecType const& other) const { return boost::proto::value(*this).dotProduct(boost::proto::value(other)); } template<typename VecType> real dotProductPartial(VecType const& other, index_t nEntries) const { return boost::proto::value(*this).dotProductPartial(boost::proto::value(other), nEntries); } }; typedef Vector_<> Vector; template<typename = boost::proto::is_proto_expr> struct VectorView_ : ProtoVectorView { VectorView_() {} VectorView_(index_t n, real * values) { boost::proto::value(*this).reset(n, values); } VectorView_(Vector const& other) { boost::proto::value(*this).reset(other.size(), other.getValues()); } void touch(real initValue = 0.0) { boost::proto::value(*this).touch(initValue); } void touch(std::function<void (real *, index_t)> touchFunction) { boost::proto::value(*this).touch(touchFunction); } void printToFile(std::string prefix, uint id, std::string suffix = ".txt") { boost::proto::value(*this).printToFile(prefix, id, suffix); } void print() const { boost::proto::value(*this).print(); } #ifdef SPRAT_BUILD_WITH_MPI std::vector<MPI_Request> collectFromSlavesAsync(std::string const& name, ParallelExecutionEnvironment const& pEE, std::vector<index_t> const& dofStartIndexForProcess) const { return boost::proto::value(*this).collectFromSlavesAsync(name, pEE, dofStartIndexForProcess); } std::vector<MPI_Request> distributeToSlavesAsync(std::string const& name, ParallelExecutionEnvironment const& pEE, std::vector<index_t> const& dofStartIndexForProcess) const { return boost::proto::value(*this).distributeToSlavesAsync(name, pEE, dofStartIndexForProcess); } #endif void reset(index_t const n, real * values) { boost::proto::value(*this).reset(n, values); } index_t size() const { return boost::proto::value(*this).size(); } //void swap(Vector_& other) { boost::proto::value(*this).swap(boost::proto::value(other)); } real * getValues() const { return boost::proto::value(*this).getValues(); } real& operator[](index_t const i) const { return boost::proto::value(*this)[i]; } //real operator[](index_t const i) const { return boost::proto::value(*this).get(i); } //VectorView_ const& operator=(VectorView_ const& other) { // boost::proto::value(*this).operator=(boost::proto::value(other)); // return *this; //} ARITHMETIC_VECTOR_MVEXPRASSIGNMENT_EQUAL(VectorView_) ARITHMETIC_VECTOR_MVEXPRASSIGNMENT(VectorView_, +=, 0) ARITHMETIC_VECTOR_MVEXPRASSIGNMENT(VectorView_, -=, 1) ARITHMETIC_VECTOR_REALASSIGNMENT(VectorView_, =) ARITHMETIC_VECTOR_REALASSIGNMENT(VectorView_, +=) ARITHMETIC_VECTOR_REALASSIGNMENT(VectorView_, -=) ARITHMETIC_VECTOR_REALASSIGNMENT(VectorView_, *=) ARITHMETIC_VECTOR_REALASSIGNMENT(VectorView_, /=) ARITHMETIC_VECTOR_VECEXPRASSIGNMENT(VectorView_, =) ARITHMETIC_VECTOR_VECEXPRASSIGNMENT(VectorView_, +=) ARITHMETIC_VECTOR_VECEXPRASSIGNMENT(VectorView_, -=) ARITHMETIC_VECTOR_VECEXPRASSIGNMENT(VectorView_, *=) ARITHMETIC_VECTOR_VECEXPRASSIGNMENT(VectorView_, /=) //ARITHMETIC_VECTOR_ELEMVECEXPRASSIGNMENT(VectorView_, =) ARITHMETIC_VECTOR_ELEMVECEXPRASSIGNMENT(VectorView_, +=) ARITHMETIC_VECTOR_ELEMVECEXPRASSIGNMENT(VectorView_, -=) ARITHMETIC_VECTOR_ELEMVECEXPRASSIGNMENT(VectorView_, *=) ARITHMETIC_VECTOR_ELEMVECEXPRASSIGNMENT(VectorView_, /=) ARITHMETIC_VECTOR_ELEMMVEXPRASSIGNMENT(VectorView_, +=) ARITHMETIC_VECTOR_ELEMMVEXPRASSIGNMENT(VectorView_, -=) ARITHMETIC_VECTOR_REALALMOSTCOMPARISON(==, !almostEqual, false, true) ARITHMETIC_VECTOR_REALALMOSTCOMPARISON(!=, !almostEqual, true, false) ARITHMETIC_VECTOR_REALCOMPARISON(<) ARITHMETIC_VECTOR_REALCOMPARISON(>) ARITHMETIC_VECTOR_REALCOMPARISON(<=) ARITHMETIC_VECTOR_REALCOMPARISON(>=) //template<typename Expr> //VectorView_ const& operator=(ElemMVExprWrapper<Expr> expr) { // return Arithmetic_Vector_ElemMVExprAssignment(*this, expr); //} real norm() const { return boost::proto::value(*this).norm(); } real average() const { return boost::proto::value(*this).average(); } template<typename VecType> real dotProduct(VecType const& other) const { return boost::proto::value(*this).dotProduct(boost::proto::value(other)); } template<typename VecType> real dotProductPartial(VecType const& other, index_t nEntries) const { return boost::proto::value(*this).dotProductPartial(boost::proto::value(other), nEntries); } }; typedef VectorView_<> VectorView; template<typename = boost::proto::is_proto_expr> struct DistributedVector_ : ProtoDistributedVector { DistributedVector_() {} DistributedVector_(std::string name, ParallelExecutionEnvironment& pEE, MPCommunicationRegistry& comRegistry) { boost::proto::value(*this).reset(name, pEE, comRegistry); } void reset(std::string name, ParallelExecutionEnvironment& pEE, MPCommunicationRegistry& comRegistry) { boost::proto::value(*this).reset(name, pEE, comRegistry); } void touch(real initValue = 0.0) { boost::proto::value(*this).touch(initValue); } void touch(std::function<void (real *, index_t)> touchFunction) { boost::proto::value(*this).touch(touchFunction); } void touchLocal(real initValue = 0.0) { boost::proto::value(*this).touchLocal(initValue); } void touchLocal(std::function<void (real *, index_t)> touchFunction) { boost::proto::value(*this).touchLocal(touchFunction); } VectorView globalAsLocalVector() const { return VectorView(boost::proto::value(*this).size(), boost::proto::value(*this).getValues()); } void print() const { boost::proto::value(*this).print(); } index_t size() const { return boost::proto::value(*this).size(); } index_t localSize() const { return boost::proto::value(*this).localSize(); } //void swap(Vector_& other) { boost::proto::value(*this).swap(boost::proto::value(other)); } real * getValues() const { return boost::proto::value(*this).getValues(); } int getTag() const { return boost::proto::value(*this).getTag(); } real& operator[](index_t const i) const { return boost::proto::value(*this)[i]; } //real operator[](index_t const i) const { return boost::proto::value(*this).get(i); } void collectFromMasterAsync() { boost::proto::value(*this).collectFromMasterAsync(); } void distributeToMasterAsync() { boost::proto::value(*this).distributeToMasterAsync(); } void finishPendingSends() { boost::proto::value(*this).finishPendingSends(); } void finishPendingRecvs() { boost::proto::value(*this).finishPendingRecvs(); } void finishPendingCommunication() { boost::proto::value(*this).finishPendingCommunication(); } void exchangeDataAsync() { boost::proto::value(*this).exchangeDataAsync(); } void exchangeDataBlocked() { boost::proto::value(*this).exchangeDataBlocked(); } DistributedVector_ const& operator=(DistributedVector_ const& other) { boost::proto::value(*this).setTo(boost::proto::value(other)); return *this; } //DistributedVector_ const& operator=(DistributedVectorView const& other) { // boost::proto::value(*this).setTo(boost::proto::value(other)); // return *this; //} ARITHMETIC_VECTOR_MVEXPRASSIGNMENT_EQUAL(DistributedVector_) ARITHMETIC_VECTOR_MVEXPRASSIGNMENT(DistributedVector_, +=, 0) ARITHMETIC_VECTOR_MVEXPRASSIGNMENT(DistributedVector_, -=, 1) ARITHMETIC_VECTOR_REALASSIGNMENT(DistributedVector_, =) ARITHMETIC_VECTOR_REALASSIGNMENT(DistributedVector_, +=) ARITHMETIC_VECTOR_REALASSIGNMENT(DistributedVector_, -=) ARITHMETIC_VECTOR_REALASSIGNMENT(DistributedVector_, *=) ARITHMETIC_VECTOR_REALASSIGNMENT(DistributedVector_, /=) ARITHMETIC_VECTOR_VECEXPRASSIGNMENT(DistributedVector_, =) ARITHMETIC_VECTOR_VECEXPRASSIGNMENT(DistributedVector_, +=) ARITHMETIC_VECTOR_VECEXPRASSIGNMENT(DistributedVector_, -=) ARITHMETIC_VECTOR_VECEXPRASSIGNMENT(DistributedVector_, *=) ARITHMETIC_VECTOR_VECEXPRASSIGNMENT(DistributedVector_, /=) //ARITHMETIC_VECTOR_ELEMVECEXPRASSIGNMENT(DistributedVector_, =) ARITHMETIC_VECTOR_ELEMVECEXPRASSIGNMENT(DistributedVector_, +=) ARITHMETIC_VECTOR_ELEMVECEXPRASSIGNMENT(DistributedVector_, -=) ARITHMETIC_VECTOR_ELEMVECEXPRASSIGNMENT(DistributedVector_, *=) ARITHMETIC_VECTOR_ELEMVECEXPRASSIGNMENT(DistributedVector_, /=) ARITHMETIC_VECTOR_ELEMMVEXPRASSIGNMENT(DistributedVector_, +=) ARITHMETIC_VECTOR_ELEMMVEXPRASSIGNMENT(DistributedVector_, -=) ARITHMETIC_VECTOR_REALALMOSTCOMPARISON(==, !almostEqual, false, true) ARITHMETIC_VECTOR_REALALMOSTCOMPARISON(!=, !almostEqual, true, false) ARITHMETIC_VECTOR_REALCOMPARISON(<) ARITHMETIC_VECTOR_REALCOMPARISON(>) ARITHMETIC_VECTOR_REALCOMPARISON(<=) ARITHMETIC_VECTOR_REALCOMPARISON(>=) //template<typename Expr> //VectorView_ const& operator=(ElemMVExprWrapper<Expr> expr) { // return Arithmetic_Vector_ElemMVExprAssignment(*this, expr); //} real norm() const { return boost::proto::value(*this).norm(); } real average() const { return boost::proto::value(*this).average(); } template<typename VecType> real dotProduct(VecType const& other) const { return boost::proto::value(*this).dotProduct(boost::proto::value(other)); } }; typedef DistributedVector_<> DistributedVector; template<typename = boost::proto::is_proto_expr> struct DistributedVectorView_ : ProtoDistributedVectorView { DistributedVectorView_() {} DistributedVectorView_(DistributedVector const& other) { boost::proto::value(*this).reset(boost::proto::value(other)); } void touch(real initValue = 0.0) { boost::proto::value(*this).touch(initValue); } void touch(std::function<void (real *, index_t)> touchFunction) { boost::proto::value(*this).touch(touchFunction); } void touchLocal(real initValue = 0.0) { boost::proto::value(*this).touchLocal(initValue); } void touchLocal(std::function<void (real *, index_t)> touchFunction) { boost::proto::value(*this).touchLocal(touchFunction); } VectorView globalAsLocalVector() const { return VectorView(boost::proto::value(*this).size(), boost::proto::value(*this).getValues()); } index_t size() const { return boost::proto::value(*this).size(); } index_t localSize() const { return boost::proto::value(*this).localSize(); } //void swap(Vector_& other) { boost::proto::value(*this).swap(boost::proto::value(other)); } real * getValues() const { return boost::proto::value(*this).getValues(); } int getTag() const { return boost::proto::value(*this).getTag(); } real& operator[](index_t const i) const { return boost::proto::value(*this)[i]; } //real operator[](index_t const i) const { return boost::proto::value(*this).get(i); } void collectFromMasterAsync() { boost::proto::value(*this).collectFromMasterAsync(); } void distributeToMasterAsync() { boost::proto::value(*this).distributeToMasterAsync(); } void finishPendingSends() { boost::proto::value(*this).finishPendingSends(); } void finishPendingRecvs() { boost::proto::value(*this).finishPendingRecvs(); } void finishPendingCommunication() { boost::proto::value(*this).finishPendingCommunication(); } void exchangeDataAsync() { boost::proto::value(*this).exchangeDataAsync(); } void exchangeDataBlocked() { boost::proto::value(*this).exchangeDataBlocked(); } ARITHMETIC_VECTOR_MVEXPRASSIGNMENT_EQUAL(DistributedVectorView_) ARITHMETIC_VECTOR_MVEXPRASSIGNMENT(DistributedVectorView_, +=, 0) ARITHMETIC_VECTOR_MVEXPRASSIGNMENT(DistributedVectorView_, -=, 1) ARITHMETIC_VECTOR_REALASSIGNMENT(DistributedVectorView_, =) ARITHMETIC_VECTOR_REALASSIGNMENT(DistributedVectorView_, +=) ARITHMETIC_VECTOR_REALASSIGNMENT(DistributedVectorView_, -=) ARITHMETIC_VECTOR_REALASSIGNMENT(DistributedVectorView_, *=) ARITHMETIC_VECTOR_REALASSIGNMENT(DistributedVectorView_, /=) ARITHMETIC_VECTOR_VECEXPRASSIGNMENT(DistributedVectorView_, =) ARITHMETIC_VECTOR_VECEXPRASSIGNMENT(DistributedVectorView_, +=) ARITHMETIC_VECTOR_VECEXPRASSIGNMENT(DistributedVectorView_, -=) ARITHMETIC_VECTOR_VECEXPRASSIGNMENT(DistributedVectorView_, *=) ARITHMETIC_VECTOR_VECEXPRASSIGNMENT(DistributedVectorView_, /=) //ARITHMETIC_VECTOR_ELEMVECEXPRASSIGNMENT(DistributedVectorView_, =) ARITHMETIC_VECTOR_ELEMVECEXPRASSIGNMENT(DistributedVectorView_, +=) ARITHMETIC_VECTOR_ELEMVECEXPRASSIGNMENT(DistributedVectorView_, -=) ARITHMETIC_VECTOR_ELEMVECEXPRASSIGNMENT(DistributedVectorView_, *=) ARITHMETIC_VECTOR_ELEMVECEXPRASSIGNMENT(DistributedVectorView_, /=) ARITHMETIC_VECTOR_ELEMMVEXPRASSIGNMENT(DistributedVectorView_, +=) ARITHMETIC_VECTOR_ELEMMVEXPRASSIGNMENT(DistributedVectorView_, -=) ARITHMETIC_VECTOR_REALALMOSTCOMPARISON(==, !almostEqual, false, true) ARITHMETIC_VECTOR_REALALMOSTCOMPARISON(!=, !almostEqual, true, false) ARITHMETIC_VECTOR_REALCOMPARISON(<) ARITHMETIC_VECTOR_REALCOMPARISON(>) ARITHMETIC_VECTOR_REALCOMPARISON(<=) ARITHMETIC_VECTOR_REALCOMPARISON(>=) //template<typename Expr> //VectorView_ const& operator=(ElemMVExprWrapper<Expr> expr) { // return Arithmetic_Vector_ElemMVExprAssignment(*this, expr); //} real norm() const { return boost::proto::value(*this).norm(); } real average() const { return boost::proto::value(*this).average(); } template<typename VecType> real dotProduct(VecType const& other) const { return boost::proto::value(*this).dotProduct(boost::proto::value(other)); } }; typedef DistributedVectorView_<> DistributedVectorView; template<typename = boost::proto::is_proto_expr> struct ElementVector_ : ProtoElementVector { ElementVector_() { boost::proto::value(*this).reset(); } ElementVector_(ElementT const& element) { boost::proto::value(*this).reset(element); } ElementVector_(ElementVector_ const& other) { boost::proto::value(*this).reset(boost::proto::value(other)); } void reset(ElementT const& element) { boost::proto::value(*this).reset(element); } static constexpr uint size() { return nDoFPerElement(); } //void swap(Vector_& other) { boost::proto::value(*this).swap(boost::proto::value(other)); } real * getValues() const { return boost::proto::value(*this).getValues(); } real& operator[](uint const i) const { return boost::proto::value(*this)[i]; } real get(uint const i) const { return boost::proto::value(*this).get(i); } //real operator[](index_t const i) const { return boost::proto::value(*this).get(i); } ElementVector_ const& operator=(ElementVector_ const& other) { boost::proto::value(*this) = boost::proto::value(other); return *this; } ARITHMETIC_ELEMENTVECTOR_REALASSIGNMENT(ElementVector_, =) ARITHMETIC_ELEMENTVECTOR_REALASSIGNMENT(ElementVector_, +=) ARITHMETIC_ELEMENTVECTOR_REALASSIGNMENT(ElementVector_, -=) ARITHMETIC_ELEMENTVECTOR_REALASSIGNMENT(ElementVector_, *=) ARITHMETIC_ELEMENTVECTOR_REALASSIGNMENT(ElementVector_, /=) ARITHMETIC_ELEMENTVECTOR_VECEXPRASSIGNMENT(ElementVector_, =) ARITHMETIC_ELEMENTVECTOR_VECEXPRASSIGNMENT(ElementVector_, +=) ARITHMETIC_ELEMENTVECTOR_VECEXPRASSIGNMENT(ElementVector_, -=) ARITHMETIC_ELEMENTVECTOR_VECEXPRASSIGNMENT(ElementVector_, *=) ARITHMETIC_ELEMENTVECTOR_VECEXPRASSIGNMENT(ElementVector_, /=) ARITHMETIC_ELEMENTVECTOR_ELEMVECEXPRASSIGNMENT(ElementVector_, =) ARITHMETIC_ELEMENTVECTOR_ELEMVECEXPRASSIGNMENT(ElementVector_, +=) ARITHMETIC_ELEMENTVECTOR_ELEMVECEXPRASSIGNMENT(ElementVector_, -=) ARITHMETIC_ELEMENTVECTOR_ELEMVECEXPRASSIGNMENT(ElementVector_, *=) ARITHMETIC_ELEMENTVECTOR_ELEMVECEXPRASSIGNMENT(ElementVector_, /=) ARITHMETIC_ELEMENTVECTOR_ELEMMVEXPRASSIGNMENT(ElementVector_, =, +=) ARITHMETIC_ELEMENTVECTOR_ELEMMVEXPRASSIGNMENT(ElementVector_, +=, +=) ARITHMETIC_ELEMENTVECTOR_ELEMMVEXPRASSIGNMENT(ElementVector_, -=, -=) ARITHMETIC_ELEMENTVECTOR_REALALMOSTCOMPARISON(==, !almostEqual, false, true) ARITHMETIC_ELEMENTVECTOR_REALALMOSTCOMPARISON(!=, !almostEqual, true, false) ARITHMETIC_ELEMENTVECTOR_REALCOMPARISON(<) ARITHMETIC_ELEMENTVECTOR_REALCOMPARISON(>) ARITHMETIC_ELEMENTVECTOR_REALCOMPARISON(<=) ARITHMETIC_ELEMENTVECTOR_REALCOMPARISON(>=) real norm() const { return boost::proto::value(*this).norm(); } template<typename VecType> real dotProduct(VecType const& other) const { return boost::proto::value(*this).dotProduct(boost::proto::value(other)); } template <typename ElementT> void setElement(ElementT const& element) { boost::proto::value(*this).setElement(element); } }; typedef ElementVector_<> ElementVector; template<typename = boost::proto::is_proto_expr> struct ElementVectorView_ : ProtoElementVectorView { ElementVectorView_() {} ElementVectorView_(ElementT const& element, real * values) { boost::proto::value(*this).reset(element, values); } ElementVectorView_(ElementVectorView_ const& other) { boost::proto::value(*this).reset(boost::proto::value(other)); } ElementVectorView_(ElementVector_<> const& other) { boost::proto::value(*this).reset(boost::proto::value(other)); } void reset(ElementT const& element, real * values) { boost::proto::value(*this).reset(element, values); } static constexpr uint size() { return nDoFPerElement(); } //void swap(Vector_& other) { boost::proto::value(*this).swap(boost::proto::value(other)); } real * getValues() const { return boost::proto::value(*this).getValues(); } real& operator[](uint const i) const { return boost::proto::value(*this)[i]; } real get(uint const i) const { return boost::proto::value(*this).get(i); } //real operator[](index_t const i) const { return boost::proto::value(*this).get(i); } ARITHMETIC_ELEMENTVECTOR_REALASSIGNMENT(ElementVectorView_, =) ARITHMETIC_ELEMENTVECTOR_REALASSIGNMENT(ElementVectorView_, +=) ARITHMETIC_ELEMENTVECTOR_REALASSIGNMENT(ElementVectorView_, -=) ARITHMETIC_ELEMENTVECTOR_REALASSIGNMENT(ElementVectorView_, *=) ARITHMETIC_ELEMENTVECTOR_REALASSIGNMENT(ElementVectorView_, /=) ARITHMETIC_ELEMENTVECTOR_VECEXPRASSIGNMENT(ElementVectorView_, =) ARITHMETIC_ELEMENTVECTOR_VECEXPRASSIGNMENT(ElementVectorView_, +=) ARITHMETIC_ELEMENTVECTOR_VECEXPRASSIGNMENT(ElementVectorView_, -=) ARITHMETIC_ELEMENTVECTOR_VECEXPRASSIGNMENT(ElementVectorView_, *=) ARITHMETIC_ELEMENTVECTOR_VECEXPRASSIGNMENT(ElementVectorView_, /=) ARITHMETIC_ELEMENTVECTOR_ELEMVECEXPRASSIGNMENT(ElementVectorView_, =) ARITHMETIC_ELEMENTVECTOR_ELEMVECEXPRASSIGNMENT(ElementVectorView_, +=) ARITHMETIC_ELEMENTVECTOR_ELEMVECEXPRASSIGNMENT(ElementVectorView_, -=) ARITHMETIC_ELEMENTVECTOR_ELEMVECEXPRASSIGNMENT(ElementVectorView_, *=) ARITHMETIC_ELEMENTVECTOR_ELEMVECEXPRASSIGNMENT(ElementVectorView_, /=) ARITHMETIC_ELEMENTVECTOR_ELEMMVEXPRASSIGNMENT(ElementVectorView_, =, +=) ARITHMETIC_ELEMENTVECTOR_ELEMMVEXPRASSIGNMENT(ElementVectorView_, +=, +=) ARITHMETIC_ELEMENTVECTOR_ELEMMVEXPRASSIGNMENT(ElementVectorView_, -=, -=) ARITHMETIC_ELEMENTVECTOR_REALALMOSTCOMPARISON(==, !almostEqual, false, true) ARITHMETIC_ELEMENTVECTOR_REALALMOSTCOMPARISON(!=, !almostEqual, true, false) ARITHMETIC_ELEMENTVECTOR_REALCOMPARISON(<) ARITHMETIC_ELEMENTVECTOR_REALCOMPARISON(>) ARITHMETIC_ELEMENTVECTOR_REALCOMPARISON(<=) ARITHMETIC_ELEMENTVECTOR_REALCOMPARISON(>=) real norm() const { return boost::proto::value(*this).norm(); } template<typename VecType> real dotProduct(VecType const& other) const { return boost::proto::value(*this).dotProduct(boost::proto::value(other)); } }; typedef ElementVectorView_<> ElementVectorView; #endif //PROTO_VECTOR_HPP_
37.660671
176
0.740648
[ "vector" ]
63985ef806df82c86092c040bf19f481716694d2
7,008
cpp
C++
src/Dispatcher.cpp
ludlyl/MulleMech
c29f146ecb6ec8a400390a2c4a6d8d69e1152d6a
[ "MIT" ]
6
2019-08-14T23:19:23.000Z
2021-04-21T18:06:12.000Z
src/Dispatcher.cpp
ludlyl/MulleMech
c29f146ecb6ec8a400390a2c4a6d8d69e1152d6a
[ "MIT" ]
null
null
null
src/Dispatcher.cpp
ludlyl/MulleMech
c29f146ecb6ec8a400390a2c4a6d8d69e1152d6a
[ "MIT" ]
1
2021-07-08T21:48:28.000Z
2021-07-08T21:48:28.000Z
// The MIT License (MIT) // // Copyright (c) 2017-2018 Alexander Kurbatov #include "Dispatcher.h" #include "Historican.h" #include "Hub.h" #include "Reasoner.h" #include "IntelligenceHolder.h" #include "core/API.h" #include "core/Helpers.h" #include "core/Map.h" #include "core/Timer.h" #include "plugins/ChatterBox.h" #include "plugins/Diagnosis.h" #include "plugins/CombatCommander.h" #include "plugins/Governor.h" #include "plugins/Miner.h" #include "plugins/RepairMan.h" #include "plugins/QuarterMaster.h" #include "plugins/Scouting.h" #include "BuildingPlacer.h" #include <sc2api/sc2_common.h> #include <sc2api/sc2_unit.h> #include <memory> Dispatcher::Dispatcher(const std::string& opponent_id_): m_builder(new Builder()) { gAPI = std::make_unique<API::Interface>(Actions(), Control(), Debug(), Observation(), Query()); gReasoner = std::make_unique<Reasoner>(); gIntelligenceHolder = std::make_unique<IntelligenceHolder>(); gBuildingPlacer = std::make_unique<BuildingPlacer>(); m_plugins.reserve(10); if (opponent_id_.empty()) return; gHistory.info() << "Playing against an opponent with id " << opponent_id_ << std::endl; } void Dispatcher::OnGameStart() { m_plugins.clear(); gHistory.info() << "New game started!" << std::endl; gAPI->Init(); sc2::Race current_race = gAPI->observer().GetCurrentRace(); Timer clock; clock.Start(); gHub = std::make_unique<Hub>(current_race, CalculateExpansionLocations()); auto duration = clock.Finish(); gHistory.info() << "Calculate Expansions took: " << duration << " ms" << std::endl; gOverseerMap = std::make_unique<Overseer::MapImpl>(); clock.Start(); gOverseerMap->setBot(this); gOverseerMap->initialize(); gBuildingPlacer->OnGameStart(); duration = clock.Finish(); gHistory.info() << "Map calculations took: " << duration << " ms" << std::endl; gHistory.info() << "Tiles in start region: " << gOverseerMap->getNearestRegion(gAPI->observer().StartingLocation())->getTilePositions().size() << std::endl; gIntelligenceHolder->OnGameStart(); m_plugins.emplace_back(new Governor()); m_plugins.emplace_back(new Miner()); m_plugins.emplace_back(new QuarterMaster()); m_plugins.emplace_back(new RepairMan()); m_plugins.emplace_back(new CombatCommander()); m_plugins.emplace_back(new ChatterBox()); m_plugins.emplace_back(new Scouting()); #ifdef DEBUG m_plugins.emplace_back(new Diagnosis()); #endif for (const auto& i : m_plugins) i->OnGameStart(m_builder.get()); } void Dispatcher::OnGameEnd() { for (const auto& i : m_plugins) i->OnGameEnd(); gAPI->control().SaveReplay(); // NOTE: Do not change output without modifying the test script "testing.py" auto results = gAPI->observer().GetResults(); if (results.size() == 2 && results[0].result == sc2::Win && results[1].result == sc2::Loss) { gHistory.info() << "Game over! Winning player id: {" << results[0].player_id << "}" << std::endl; } else if (results.size() == 2 && results[0].result == sc2::Loss && results[1].result == sc2::Win) { gHistory.info() << "Game over! Winning player id: {" << results[1].player_id << "}" << std::endl; } else { gHistory.info() << "Game over! No winner!" << std::endl; } } void Dispatcher::OnBuildingConstructionComplete(const sc2::Unit* building_) { gHistory.info() << sc2::UnitTypeToName(building_->unit_type) << ": construction complete" << std::endl; auto building = gAPI->WrapAndUpdateUnit(building_); for (auto& plugin : m_plugins) plugin->OnBuildingConstructionComplete(building); } void Dispatcher::OnStep() { Timer clock; clock.Start(); gAPI->OnStep(); gReasoner->CalculatePlayStyle(); gReasoner->CalculateNeededUnitClasses(); for (const auto& i : m_plugins) i->OnStep(m_builder.get()); m_builder->OnStep(); auto duration = clock.Finish(); // 60ms is disqualification threshold of the ladder if (duration > 60.0f) gHistory.error() << "Step processing took: " << duration << " ms" << std::endl; // 44.4ms is highest allowed step time by the ladder if (duration > 44.4f) gHistory.warning() << "Step processing took: " << duration << " ms" << std::endl; } void Dispatcher::OnUnitCreated(const sc2::Unit* unit_) { auto unit = gAPI->WrapAndUpdateUnit(unit_); // NOTE (alkurbatov): Could be just a worker exiting a refinery. if (unit_->alliance != sc2::Unit::Alliance::Self || IsWorkerWithJob(Worker::Job::gathering_vespene)(unit)) return; gHistory.info() << sc2::UnitTypeToName(unit_->unit_type) << " was created" << std::endl; gHub->OnUnitCreated(unit); m_builder->OnUnitCreated(unit); gBuildingPlacer->OnUnitCreated(unit); for (const auto& i : m_plugins) i->OnUnitCreated(unit); } void Dispatcher::OnUnitIdle(const sc2::Unit* unit_) { auto unit = gAPI->WrapAndUpdateUnit(unit_); m_builder->OnUnitIdle(unit); for (const auto& i : m_plugins) i->OnUnitIdle(unit, m_builder.get()); } void Dispatcher::OnUnitDestroyed(const sc2::Unit* unit_) { // The documentation for this function says that it's only called for our own units, but that ins't the case auto unit = gAPI->WrapAndUpdateUnit(unit_); gHub->OnUnitDestroyed(unit); gBuildingPlacer->OnUnitDestroyed(unit); gIntelligenceHolder->OnUnitDestroyed(unit); // TODO: This check shouldn't have to be done here. Make sure Hub and all plugins check alliance themselves if (unit_->alliance == sc2::Unit::Alliance::Self) { gHistory.info() << "One of our: " << sc2::UnitTypeToName(unit_->unit_type) << " was destroyed" << std::endl; m_builder->OnUnitDestroyed(unit); gHub->OnUnitDestroyed(unit); for (const auto& i : m_plugins) i->OnUnitDestroyed(unit, m_builder.get()); } } void Dispatcher::OnUpgradeCompleted(sc2::UpgradeID id_) { gHistory.info() << sc2::UpgradeIDToName(id_) << " completed (upgrade id: " << id_ << ", ability id: " << gAPI->observer().GetUpgradeData(id_).ability_id << ")" << std::endl; gAPI->OnUpgradeCompleted(); for (const auto& i : m_plugins) i->OnUpgradeCompleted(id_); } void Dispatcher::OnUnitEnterVision(const sc2::Unit* unit_) { auto unit = gAPI->WrapAndUpdateUnit(unit_); gBuildingPlacer->OnUnitEnterVision(unit); gIntelligenceHolder->OnUnitEnterVision(unit); for (const auto& i : m_plugins) i->OnUnitEnterVision(unit); } void Dispatcher::OnError(const std::vector<sc2::ClientError>& client_errors, const std::vector<std::string>& protocol_errors) { for (const auto i : client_errors) { gHistory.error() << "Encountered client error: " << static_cast<int>(i) << std::endl; } for (const auto& i : protocol_errors) gHistory.error() << "Encountered protocol error: " << i << std::endl; }
33.855072
160
0.661815
[ "vector" ]
639b58f18117ddf9421352ad7c34ecd6f8f501ec
3,852
cpp
C++
Contest/MIPT-2016 Pre-Finals Workshop, Div A, Kent Nikaido Contest 1/solutions/f.cpp
HeRaNO/OI-ICPC-Codes
4a4639cd3e347b472520065ca6ab8caadde6906d
[ "MIT" ]
18
2019-01-01T13:16:59.000Z
2022-02-28T04:51:50.000Z
Contest/MIPT-2016 Pre-Finals Workshop, Div A, Kent Nikaido Contest 1/solutions/f.cpp
HeRaNO/OI-ICPC-Codes
4a4639cd3e347b472520065ca6ab8caadde6906d
[ "MIT" ]
null
null
null
Contest/MIPT-2016 Pre-Finals Workshop, Div A, Kent Nikaido Contest 1/solutions/f.cpp
HeRaNO/OI-ICPC-Codes
4a4639cd3e347b472520065ca6ab8caadde6906d
[ "MIT" ]
5
2019-09-13T08:48:17.000Z
2022-02-19T06:59:03.000Z
#include<cstdio> #include<algorithm> #include<stack> #include<queue> #include<vector> #include<string> #include<string.h> #include<cstdlib> #include<ctime> #include<cmath> #include<complex> #include<map> #include<set> #include<bitset> #include<iostream> #include<sstream> #define fi first #define se second #define rep(i,n) for(int i = 0; i < n; i++) #define rrep(i,n) for(int i = 1; i <= n; i++) #define drep(i,n) for(int i = n-1; i >= 0; i--) #define gep(i,g,j) for(int i = g.head[j]; i != -1; i = g.e[i].next) #define each(it,c) for(__typeof((c).begin()) it=(c).begin();it!=(c).end();it++) #define rng(a) a.begin(),a.end() #define maxs(x,y) x = max(x,y); #define mins(x,y) x = min(x,y); #define adds(x,y) x = (x+(y))%mod; #define dels(x,y) x = (x-(y)+mod)%mod; #define muls(x,y) x = ((ll)x*(y))%mod; #define pb push_back #define sz(x) (int)(x).size() #define snuke srand((unsigned)clock()+(unsigned)time(NULL)) using namespace std; typedef long long int ll; typedef pair<int,int> P; typedef vector<int> vi; const int MX = 35, INF = 1000000000, mod = 1000000007; const ll LINF = 1000000000000000000ll; const double eps = 1e-10; const int dx[] = {-1,0,1,0}, dy[] = {0,-1,0,1}; //<^>v // Max flow // BFS // Graph typedef int TT; struct edge{ int next, to, lim; TT co; edge(){} edge(int next, int to, TT co=0, int lim=1):next(next),to(to),co(co),lim(lim){} }; struct graph{ vector<TT> head; vector<edge> e; int es, vs; graph(){} graph(int vsz, int esz){ head.resize(vsz); e.resize(esz+1); init(vsz);} void init(int vsz){ es = 0; vs = vsz; rep(i,vsz) head[i] = -1;} void add(int from, int to, TT co=0, int lim=1){ e[es] = edge(head[from],to,co,lim); head[from] = es++;} void add2(int from, int to, TT co=0, int lim=1){ add(from,to,co,lim); add(to,from,co,lim);} void addf(int from, int to, TT co=0, int lim=1){ add(from,to,co,lim); add(to,from,-co,0);} }; // vector<int> dist, prev; void bfs(graph& ng, int sv, vector<int>& ndist){ ndist.resize(ng.vs); fill(rng(ndist),INF); prev.resize(ng.vs); fill(rng(prev),-1); queue<int> q; int v, e; ng.e[ng.es].to = sv; ndist[sv] = 0; q.push(ng.es); while(!q.empty()){ e = q.front(); q.pop(); v = ng.e[e].to; if(prev[v] != -1) continue; prev[v] = e^1; for(int i = ng.head[v]; i != -1; i = ng.e[i].next) if(ng.e[i].lim > 0 && ndist[ng.e[i].to] == INF){ ndist[ng.e[i].to] = ndist[v]+1; q.push(i);} } } // vector<int> it; TT dfs(graph& ng, int v, int tv, TT nf=INF){ if(v == tv) return nf; for(; it[v] != -1; it[v] = ng.e[it[v]].next){ int u = ng.e[it[v]].to; TT f; if(!ng.e[it[v]].lim || dist[v] >= dist[u]) continue; if(f = dfs(ng,u,tv,min(nf,ng.e[it[v]].lim))){ ng.e[it[v]].lim -= f; ng.e[it[v]^1].lim += f; return f; } } return 0; } TT maxflow(graph& ng, int sv, int tv){ it.resize(ng.vs); TT flow = 0; while(1){ bfs(ng,sv,dist); if(dist[tv] == INF) return flow; rep(i,ng.vs) it[i] = ng.head[i]; TT f; while(f = dfs(ng,sv,tv)) flow += f; } } // int n, m; string in[MX]; char f[MX][MX]; int id[MX][MX]; void cnct(graph& g, int i, int j, int ni, int nj){ if(ni<0||nj<0||ni>=n-1||nj>=n-1) return; g.addf(id[i][j],id[ni][nj]); } int main(){ cin >> m; rep(i,m) cin >> in[i]; n=m+2; rep(i,n)rep(j,n) f[i][j] = 'x'; rrep(i,m)rrep(j,m) f[i][j] = in[i-1][j-1]; rep(i,n-1)rep(j,n-1) id[i][j] = i*(n-1)+j; int sv = (n-1)*(n-1), tv = sv+1, mx = 0; graph g(n*n,n*n*6); rep(i,n-1)rep(j,n-1){ int cnt = 0; rep(v,4) cnt += (f[i+v/2][j+v%2] == 'x'); if(cnt == 4) continue; mx++; if(i+j&1) g.addf(sv,id[i][j],0,2); else g.addf(id[i][j],tv,0,2); if(!(i+j&1)) continue; if(f[i][j]!=f[i+1][j]) cnct(g,i,j,i,j-1); if(f[i][j]!=f[i][j+1]) cnct(g,i,j,i-1,j); if(f[i+1][j+1]!=f[i+1][j]) cnct(g,i,j,i+1,j); if(f[i+1][j+1]!=f[i][j+1]) cnct(g,i,j,i,j+1); } if(maxflow(g,sv,tv) == mx) puts("YES"); else puts("NO"); return 0; }
26.204082
104
0.56568
[ "vector" ]
639c0e41d5d07aa3513a996bfc97445a455d17e3
3,513
cpp
C++
Chapter09-comm/05_encoder/src/ofApp.cpp
jeffcrouse/ccof
d9c5773b9913209e3ff06a4777115d750487cb44
[ "MIT" ]
6
2017-09-27T14:13:44.000Z
2020-06-24T18:16:22.000Z
Chapter09-comm/05_encoder/src/ofApp.cpp
jeffcrouse/ccof
d9c5773b9913209e3ff06a4777115d750487cb44
[ "MIT" ]
null
null
null
Chapter09-comm/05_encoder/src/ofApp.cpp
jeffcrouse/ccof
d9c5773b9913209e3ff06a4777115d750487cb44
[ "MIT" ]
3
2017-10-27T20:33:33.000Z
2019-09-17T05:42:13.000Z
#include "ofApp.h" //-------------------------------------------------------------- void ofApp::setup(){ ofSetWindowShape(1280, 800); ofSetWindowTitle("encoder"); ofSetFrameRate(60); ofBackground(0); ofEnableSmoothing(); ofSetCircleResolution(30); serial.setup(0, 9600); } //-------------------------------------------------------------- void ofApp::update(){ while(serial.available()) { char b = serial.readByte(); if(b=='\n') { string line = ss.str(); //ofLogNotice() << line; vector<string> words = ofSplitString(line, " "); if(words[0]=="move") { int amount = ofToInt(words[1]); if(mode==MODE_ANGLE) { angle += amount / 20.0; } if(mode==MODE_RADIUS) { radius += amount / 5.0; } if(mode==MODE_SIZE) { size += amount / 5.0; } } if(words[0]=="click") { int num = ofToInt(words[1]); if(num==1) { color.setHsb(ofRandom(255), 255, 255); } if(num==2) { mode = mode+1; mode %= 3; } } ss.str(""); } else { ss << b; } } } //-------------------------------------------------------------- void ofApp::draw(){ ofPushMatrix(); ofTranslate(ofGetWidth()/2.0, ofGetHeight()/2.0); ofNoFill(); ofSetColor(color); ofDrawCircle(0, 0, radius); float x = cos(angle) * radius; float y = sin(angle) * radius; ofFill(); ofDrawCircle(x, y, size); ofPopMatrix(); ofSetColor(255); stringstream message; if(mode==MODE_ANGLE) { message << "mode: angle" << endl; } else if(mode==MODE_RADIUS) { message << "mode: radius" << endl; } else if(mode==MODE_SIZE) { message << "mode: size" << endl; } message << "angle: " << ofRadToDeg( angle ) << endl; message << "radius: " << radius << endl; message << "size: " << size << endl; ofDrawBitmapString(message.str(), 10, 20); } //-------------------------------------------------------------- void ofApp::keyPressed(int key){ } //-------------------------------------------------------------- void ofApp::keyReleased(int key){ } //-------------------------------------------------------------- void ofApp::mouseMoved(int x, int y ){ } //-------------------------------------------------------------- void ofApp::mouseDragged(int x, int y, int button){ } //-------------------------------------------------------------- void ofApp::mousePressed(int x, int y, int button){ } //-------------------------------------------------------------- void ofApp::mouseReleased(int x, int y, int button){ } //-------------------------------------------------------------- void ofApp::mouseEntered(int x, int y){ } //-------------------------------------------------------------- void ofApp::mouseExited(int x, int y){ } //-------------------------------------------------------------- void ofApp::windowResized(int w, int h){ } //-------------------------------------------------------------- void ofApp::gotMessage(ofMessage msg){ } //-------------------------------------------------------------- void ofApp::dragEvent(ofDragInfo dragInfo){ }
24.914894
64
0.364076
[ "vector" ]
63a24dcc2305ac69b321714f22783cb0a635deff
9,527
cpp
C++
core/src/main/java/site/ycsb/data_gen/Graph_gen/Graph_gen/glib-adv/ssch.cpp
qiuhere/Bench
80f15facb81120b754547586cf3a7e5f46ca1551
[ "Apache-2.0" ]
null
null
null
core/src/main/java/site/ycsb/data_gen/Graph_gen/Graph_gen/glib-adv/ssch.cpp
qiuhere/Bench
80f15facb81120b754547586cf3a7e5f46ca1551
[ "Apache-2.0" ]
null
null
null
core/src/main/java/site/ycsb/data_gen/Graph_gen/Graph_gen/glib-adv/ssch.cpp
qiuhere/Bench
80f15facb81120b754547586cf3a7e5f46ca1551
[ "Apache-2.0" ]
null
null
null
///////////////////////////////////////////////// // Includes #include "sch.h" ///////////////////////////////////////////////// // Schedule-Task TSchTask::TSchTask(const int& _TaskId, const TStrV& _DimObjNmV, const TSecTm& _StartTm, const TSecTm& _EndTm): TaskId(_TaskId), DimObjNmV(_DimObjNmV), StartTm(_StartTm), EndTm(_EndTm){ IAssert(StartTm<EndTm); } TStr TSchTask::GetStr() const { TChA ChA; for (int DimN=0; DimN<DimObjNmV.Len(); DimN++){ if (DimN>0){ChA+=' ';} ChA+=DimObjNmV[DimN]; } return ChA; } bool TSchTask::IsCons(const PSchTask& Task1, const PSchTask& Task2){ return (Task1->GetEndTm()<=Task2->GetStartTm())|| (Task2->GetEndTm()<=Task1->GetStartTm()); } PSchTask TSchTask::LoadTxt(TILx& Lx){ PSchTask SchTask=PSchTask(new TSchTask()); Lx.GetVar("SchTask", true, true); SchTask->TaskId=Lx.GetVarInt("TaskId"); Lx.GetVarStrV("DimObjNmV", SchTask->DimObjNmV); SchTask->StartTm=Lx.GetVarSecTm("StartTm"); SchTask->EndTm=Lx.GetVarSecTm("EndTm"); Lx.GetVarEnd(true, true); return SchTask; } void TSchTask::SaveTxt(TOLx& Lx) const { Lx.PutVar("SchTask", true, true); Lx.PutVarInt("TaskId", TaskId); Lx.PutVarStrV("DimObjNmV", DimObjNmV); Lx.PutVarSecTm("StartTm", StartTm); Lx.PutVarSecTm("EndTm", EndTm); Lx.PutVarEnd(true, true); } ///////////////////////////////////////////////// // Schedule-Object void TSchObj::AddTask(const PSchTask& Task){ IAssert(IsTaskOk(Task)); TTmTaskKd TmTaskKd(Task->GetStartTm(), Task); int TaskN=TaskV.AddSorted(TmTaskKd); if (0<TaskN){ PSchTask PrevTask=TaskV[TaskN-1].Dat; IAssert(TSchTask::IsCons(PrevTask, Task)); } if (TaskN+1<TaskV.Len()){ PSchTask NextTask=TaskV[TaskN+1].Dat; IAssert(TSchTask::IsCons(Task, NextTask)); } } void TSchObj::DelTask(const PSchTask& Task){ TTmTaskKd TmTaskKd(Task->GetStartTm(), Task); int TaskN=TaskV.SearchBin(TmTaskKd); IAssert(TaskN!=-1); IAssert(Task->GetTaskId()==TaskV[TaskN].Dat->GetTaskId()); TaskV.Del(TaskN); } bool TSchObj::IsTaskAtTm(const TSecTm& Tm, PSchTask& Task) const { TTmTaskKd TmTaskKd(Tm); int InsTaskN; int TaskN=TaskV.SearchBin(TmTaskKd, InsTaskN); if (TaskN==-1){ if (InsTaskN==0){ Task=NULL; return false; } else if (TaskV[InsTaskN-1].Dat->IsTmIn(Tm)){ Task=TaskV[InsTaskN-1].Dat; return true; } else { Task=NULL; return false; } } else { Task=TaskV[TaskN].Dat; return true; } } bool TSchObj::IsTaskInTm( const TSecTm& MnTm, const TSecTm& MxTm, PSchTask& Task) const { TTmTaskKd StartTmTaskKd(MnTm); TTmTaskKd EndTmTaskKd(MxTm); int StartInsTaskN; int EndInsTaskN; int StartTaskN=TaskV.SearchBin(StartTmTaskKd, StartInsTaskN); int EndTaskN=TaskV.SearchBin(EndTmTaskKd, EndInsTaskN); if ((StartTaskN==-1)&&(EndTaskN==-1)){ if (StartInsTaskN==EndInsTaskN){ if (StartInsTaskN==0){ Task=NULL; return false; } else if (TaskV[StartInsTaskN-1].Dat->IsTmIn(MnTm)){ Task=TaskV[StartInsTaskN-1].Dat; return true; } else { Task=NULL; return false; } } else { Task=TaskV[StartInsTaskN].Dat; return true; } } else { if (StartTaskN!=-1){IsTaskAtTm(MnTm, Task);} else if (EndTaskN!=-1){IsTaskAtTm(MxTm, Task);} else {Fail;} IAssert(!Task.Empty()); return true; } } PSchObj TSchObj::LoadTxt(TILx& Lx){ PSchObj SchObj=PSchObj(new TSchObj()); Lx.GetVar("SchObj", true, true); // Nm SchObj->Nm=Lx.GetVarStr("Nm"); // TaskV Lx.GetVar("TaskV", true, true); while (!Lx.PeekVarEnd(true, true)){ PSchTask Task=TSchTask::LoadTxt(Lx); SchObj->TaskV.Add(TTmTaskKd(Task->GetStartTm(), Task)); } Lx.GetVarEnd(true, true); Lx.GetVarEnd(true, true); return SchObj; } void TSchObj::SaveTxt(TOLx& Lx) const { Lx.PutVar("SchObj", true, true); // Nm Lx.PutVarStr("Nm", Nm); // TaskV Lx.PutVar("TaskV", true, true); for (int TaskN=0; TaskN<TaskV.Len(); TaskN++){ TaskV[TaskN].Dat->SaveTxt(Lx);} Lx.PutVarEnd(true, true); Lx.PutVarEnd(true, true); } ///////////////////////////////////////////////// // Schedule-Dimension int TSchDim::AddObj(const TStr& Nm){ IAssert(!NmToObjH.IsKey(Nm)); PSchObj Obj=PSchObj(new TSchObj(Nm)); NmToObjH.AddDat(Nm, Obj); return NmToObjH.GetKeyId(Nm); } TStrV TSchDim::GetObjNmV() const { TStrV NmV(NmToObjH.Len(), 0); int NmToObjP=NmToObjH.FFirstKeyId(); while (NmToObjH.FNextKeyId(NmToObjP)){ NmV.Add(NmToObjH[NmToObjP]->GetNm());} return NmV; } void TSchDim::AddTask(const PSchTask& Task){ PSchObj Obj=GetObj(Task->GetDimObjNm(DimN)); Obj->AddTask(Task); } void TSchDim::DelTask(const PSchTask& Task){ PSchObj Obj=GetObj(Task->GetDimObjNm(DimN)); Obj->DelTask(Task); } bool TSchDim::IsTaskOk(const PSchTask& Task, PSchTask& IcTask) const { PSchObj Obj=GetObj(Task->GetDimObjNm(DimN)); return Obj->IsTaskOk(Task, IcTask); } bool TSchDim::IsTaskInTm(const TStr& ObjNm, const TSecTm& MnTm, const TSecTm& MxTm, PSchTask& Task) const { PSchObj Obj=GetObj(ObjNm); return Obj->IsTaskInTm(MnTm, MxTm, Task); } PSchDim TSchDim::LoadTxt(TILx& Lx){ PSchDim SchDim=PSchDim(new TSchDim()); Lx.GetVar("SchDim", true, true); // DimN SchDim->DimN=Lx.GetVarInt("DimN"); // Nm SchDim->Nm=Lx.GetVarStr("Nm"); // NmToObjH Lx.GetVar("NmToObjH", true, true); int Ports=Lx.GetVarInt("Ports"); SchDim->NmToObjH=TNmToObjH(Ports); while (!Lx.PeekVarEnd(true, true)){ PSchObj Obj=TSchObj::LoadTxt(Lx); SchDim->NmToObjH.AddDat(Obj->GetNm(), Obj); } Lx.GetVarEnd(true, true); Lx.GetVarEnd(true, true); return SchDim; } void TSchDim::SaveTxt(TOLx& Lx) const { Lx.PutVar("SchDim", true, true); // DimN Lx.PutVarInt("DimN", DimN); // Nm Lx.PutVarStr("Nm", Nm); // NmToObjH Lx.PutVar("NmToObjH", true, true); int NmToObjP=NmToObjH.FFirstKeyId(); Lx.PutVarInt("Ports", NmToObjH.GetPorts()); while (NmToObjH.FNextKeyId(NmToObjP)){ NmToObjH[NmToObjP]->SaveTxt(Lx);} Lx.PutVarEnd(true, true); Lx.PutVarEnd(true, true); } ///////////////////////////////////////////////// // Schedule TSch::TSch(const TStr& _Nm, const int& Dims, const int& ExpObjs, const int& ExpTasks): Nm(_Nm), DimV(Dims), LastTaskId(0), IdToTaskH(ExpTasks){ for (int DimN=0; DimN<Dims; DimN++){ DimV[DimN]=PSchDim(new TSchDim(DimN, ExpObjs));} } TStrV TSch::GetDimNmV() const { TStrV DimNmV(GetDims(), 0); for (int DimN=0; DimN<GetDims(); DimN++){ DimNmV.Add(GetDimNm(DimN));} return DimNmV; } int TSch::GetDimN(const TStr& DimNm) const { for (int DimN=0; DimN<GetDims(); DimN++){ if (GetDimNm(DimN)==DimNm){return DimN;}} return -1; } int TSch::AddTask( const TStrV& DimObjNmV, const TSecTm& StartTm, const TSecTm& EndTm){ IAssert(DimObjNmV.Len()==GetDims()); int TaskId=GetNewTaskId(); PSchTask Task=PSchTask(new TSchTask(TaskId, DimObjNmV, StartTm, EndTm)); IdToTaskH.AddDat(TaskId, Task); for (int DimN=0; DimN<GetDims(); DimN++){ DimV[DimN]->AddTask(Task);} return TaskId; } int TSch::AddTask( const TStr& DimObjNm1, const TStr& DimObjNm2, const TStr& DimObjNm3, const TSecTm& StartTm, const TSecTm& EndTm){ TStrV DimObjNmV(3, 0); DimObjNmV.Add(DimObjNm1); DimObjNmV.Add(DimObjNm2); DimObjNmV.Add(DimObjNm3); return AddTask(DimObjNmV, StartTm, EndTm); } void TSch::DelTask(const int& TaskId){ PSchTask Task=IdToTaskH.GetDat(TaskId); for (int DimN=0; DimN<GetDims(); DimN++){ DimV[DimN]->DelTask(Task);} } bool TSch::IsTask(const int& TaskId, PSchTask& Task) const { int IdToTaskP; if (IdToTaskH.IsKey(TaskId, IdToTaskP)){ Task=IdToTaskH[IdToTaskP]; return true;} else {return false;} } bool TSch::IsTaskOk(const PSchTask& Task, TSchTaskV& DimIcTaskV) const { DimIcTaskV.Gen(GetDims(), GetDims()); bool Ok=true; for (int DimN=0; DimN<GetDims(); DimN++){ PSchTask IcTask; if (!DimV[DimN]->IsTaskOk(Task, IcTask)){ DimIcTaskV[DimN]=IcTask; Ok=false; } } return Ok; } PSch TSch::LoadTxt(TILx& Lx){ PSch Sch=PSch(new TSch()); Lx.GetVar("Sch", true, true); // Nm Sch->Nm=Lx.GetVarStr("Nm"); // DimV Lx.GetVar("DimV", true, true); while (!Lx.PeekVarEnd(true, true)){ Sch->DimV.Add(TSchDim::LoadTxt(Lx));} Lx.GetVarEnd(true, true); // LastTaskId Sch->LastTaskId=Lx.GetVarInt("LastTaskId"); // IdToTaskH Lx.GetVar("IdToTaskH", true, true); int Ports=Lx.GetVarInt("Ports"); Sch->IdToTaskH=TIdToTaskH(Ports); while (!Lx.PeekVarEnd(true, true)){ PSchTask Task=TSchTask::LoadTxt(Lx); Sch->IdToTaskH.AddDat(Task->GetTaskId(), Task); } Lx.GetVarEnd(true, true); Lx.GetVarEnd(true, true); return Sch; } PSch TSch::LoadTxt(const TStr& FNm){ PSIn SIn=PSIn(new TFIn(FNm)); TILx Lx(SIn, TFSet()|iloRetEoln|iloSigNum|iloCsSens); return LoadTxt(Lx); } void TSch::SaveTxt(TOLx& Lx) const { Lx.PutVar("Sch", true, true); // Nm Lx.PutVarStr("Nm", Nm); // DimV Lx.PutVar("DimV", true, true); for (int DimN=0; DimN<DimV.Len(); DimN++){ DimV[DimN]->SaveTxt(Lx);} Lx.PutVarEnd(true, true); // LastTaskId Lx.PutVarInt("LastTaskId", LastTaskId); // IdToTaskH Lx.PutVar("IdToTaskH", true, true); Lx.PutVarInt("Ports", IdToTaskH.GetPorts()); int IdToTaskP=IdToTaskH.FFirstKeyId(); while (IdToTaskH.FNextKeyId(IdToTaskP)){ IdToTaskH[IdToTaskP]->SaveTxt(Lx);} Lx.PutVarEnd(true, true); Lx.PutVarEnd(true, true); } void TSch::SaveTxt(const TStr& FNm) const { PSOut SOut=PSOut(new TFOut(FNm)); TOLx Lx(SOut, TFSet()|oloFrcEoln|oloSigNum|oloCsSens|oloVarIndent); SaveTxt(Lx); }
27.534682
75
0.654036
[ "object" ]
63a2567d1771a3aa8185372f576a761560e81943
8,974
hxx
C++
main/vcl/source/fontsubset/ttcr.hxx
Grosskopf/openoffice
93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7
[ "Apache-2.0" ]
679
2015-01-06T06:34:58.000Z
2022-03-30T01:06:03.000Z
main/vcl/source/fontsubset/ttcr.hxx
Grosskopf/openoffice
93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7
[ "Apache-2.0" ]
102
2017-11-07T08:51:31.000Z
2022-03-17T12:13:49.000Z
main/vcl/source/fontsubset/ttcr.hxx
Grosskopf/openoffice
93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7
[ "Apache-2.0" ]
331
2015-01-06T11:40:55.000Z
2022-03-14T04:07:51.000Z
/************************************************************** * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software 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. * *************************************************************/ /** * * @file ttcr.h * @brief TrueType font creator * @author Alexander Gelfenbain */ #ifndef __TTCR_H #define __TTCR_H #include "sft.hxx" namespace vcl { typedef struct _TrueTypeCreator TrueTypeCreator; /* TrueType data types */ typedef struct { sal_uInt16 aw; sal_Int16 lsb; } longHorMetrics; /* A generic base class for all TrueType tables */ struct TrueTypeTable { sal_uInt32 tag; /* table tag */ sal_uInt8 *rawdata; /* raw data allocated by GetRawData_*() */ void *data; /* table specific data */ }; /** Error codes for most functions */ enum TTCRErrCodes { TTCR_OK = 0, /**< no error */ TTCR_ZEROGLYPHS = 1, /**< At least one glyph should be defined */ TTCR_UNKNOWN = 2, /**< Unknown TrueType table */ TTCR_GLYPHSEQ = 3, /**< Glyph IDs are not sequential in the glyf table */ TTCR_NONAMES = 4, /**< 'name' table does not contain any names */ TTCR_NAMETOOLONG = 5, /**< 'name' table is too long (string data > 64K) */ TTCR_POSTFORMAT = 6 /**< unsupported format of a 'post' table */ }; /* ============================================================================ * * TrueTypeCreator methods * * ============================================================================ */ /** * TrueTypeCreator constructor. * Allocates all internal structures. */ void TrueTypeCreatorNewEmpty(sal_uInt32 tag, TrueTypeCreator **_this); /** * Adds a TrueType table to the TrueType creator. * SF_TABLEFORMAT value. * @return value of SFErrCodes type */ int AddTable(TrueTypeCreator *_this, TrueTypeTable *table); /** * Removes a TrueType table from the TrueType creator if it is stored there. * It also calls a TrueTypeTable destructor. * Note: all generic tables (with tag 0) will be removed if this function is * called with the second argument of 0. * @return value of SFErrCodes type */ void RemoveTable(TrueTypeCreator *_this, sal_uInt32 tag); /** * Writes a TrueType font generated by the TrueTypeCreator to a segment of * memory that this method allocates. When it is not needed anymore the caller * is supposed to call free() on it. * @return value of SFErrCodes type */ int StreamToMemory(TrueTypeCreator *_this, sal_uInt8 **ptr, sal_uInt32 *length); /** * Writes a TrueType font generated by the TrueTypeCreator to a file * @return value of SFErrCodes type */ int StreamToFile(TrueTypeCreator *_this, const char* fname); /* ============================================================================ * * TrueTypeTable methods * * ============================================================================ */ /** * This function converts the data of a TrueType table to a raw array of bytes. * It may allocates the memory for it and returns the size of the raw data in bytes. * If memory is allocated it does not need to be freed by the caller of this function, * since the pointer to it is stored in the TrueTypeTable and it is freed by the destructor * @return TTCRErrCode * */ int GetRawData(TrueTypeTable *, sal_uInt8 **ptr, sal_uInt32 *len, sal_uInt32 *tag); /** * * Creates a new raw TrueType table. The difference between this constructor and * TrueTypeTableNew_tag constructors is that the latter create structured tables * while this constructor just copies memory pointed to by ptr to its buffer * and stores its length. This constructor is suitable for data that is not * supposed to be processed in any way, just written to the resulting TTF file. */ TrueTypeTable *TrueTypeTableNew(sal_uInt32 tag, sal_uInt32 nbytes, const sal_uInt8* ptr); /** * Creates a new 'head' table for a TrueType font. * Allocates memory for it. Since a lot of values in the 'head' table depend on the * rest of the tables in the TrueType font this table should be the last one added * to the font. */ TrueTypeTable *TrueTypeTableNew_head(sal_uInt32 fontRevision, sal_uInt16 flags, sal_uInt16 unitsPerEm, const sal_uInt8 *created, sal_uInt16 macStyle, sal_uInt16 lowestRecPPEM, sal_Int16 fontDirectionHint); /** * Creates a new 'hhea' table for a TrueType font. * Allocates memory for it and stores it in the hhea pointer. */ TrueTypeTable *TrueTypeTableNew_hhea(sal_Int16 ascender, sal_Int16 descender, sal_Int16 linegap, sal_Int16 caretSlopeRise, sal_Int16 caretSlopeRun); /** * Creates a new empty 'loca' table for a TrueType font. * * INTERNAL: gets called only from ProcessTables(); */ TrueTypeTable *TrueTypeTableNew_loca(void); /** * Creates a new 'maxp' table based on an existing maxp table. * If maxp is 0, a new empty maxp table is created * size specifies the size of existing maxp table for * error-checking purposes */ TrueTypeTable *TrueTypeTableNew_maxp( const sal_uInt8* maxp, int size); /** * Creates a new empty 'glyf' table. */ TrueTypeTable *TrueTypeTableNew_glyf(void); /** * Creates a new empty 'cmap' table. */ TrueTypeTable *TrueTypeTableNew_cmap(void); /** * Creates a new 'name' table. If n != 0 the table gets populated by * the Name Records stored in the nr array. This function allocates * memory for its own copy of NameRecords, so nr array has to * be explicitly deallocated when it is not needed. */ TrueTypeTable *TrueTypeTableNew_name(int n, NameRecord *nr); /** * Creates a new 'post' table of one of the supported formats */ TrueTypeTable *TrueTypeTableNew_post(sal_uInt32 format, sal_uInt32 italicAngle, sal_Int16 underlinePosition, sal_Int16 underlineThickness, sal_uInt32 isFixedPitch); /*------------------------------------------------------------------------------ * * Table manipulation functions * *------------------------------------------------------------------------------*/ /** * Add a character/glyph pair to a cmap table */ void cmapAdd(TrueTypeTable *, sal_uInt32 id, sal_uInt32 c, sal_uInt32 g); /** * Add a glyph to a glyf table. * * @return glyphID of the glyph in the new font * * NOTE: This function does not duplicate GlyphData, so memory will be * deallocated in the table destructor */ sal_uInt32 glyfAdd(TrueTypeTable *, GlyphData *glyphdata, TrueTypeFont *fnt); /** * Query the number of glyphs currently stored in the 'glyf' table * */ sal_uInt32 glyfCount(const TrueTypeTable *); /** * Add a Name Record to a name table. * NOTE: This function duplicates NameRecord, so the argument * has to be deallocated by the caller (unlike glyfAdd) */ void nameAdd(TrueTypeTable *, NameRecord *nr); } // namespace extern "C" { /** * Destructor for the TrueTypeTable object. */ void TrueTypeTableDispose(vcl::TrueTypeTable *); /** * TrueTypeCreator destructor. It calls destructors for all TrueTypeTables added to it. */ void TrueTypeCreatorDispose(vcl::TrueTypeCreator *_this); } #endif /* __TTCR_H */
34.782946
111
0.577335
[ "object" ]