blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
4
201
content_id
stringlengths
40
40
detected_licenses
sequencelengths
0
85
license_type
stringclasses
2 values
repo_name
stringlengths
7
100
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
260 values
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
11.4k
681M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
17 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
80 values
src_encoding
stringclasses
28 values
language
stringclasses
1 value
is_vendor
bool
1 class
is_generated
bool
2 classes
length_bytes
int64
8
9.86M
extension
stringclasses
52 values
content
stringlengths
8
9.86M
authors
sequencelengths
1
1
author
stringlengths
0
119
745fd8b7e80d80837e123b24ff3e2ef4d1f584fe
090c0c24b39d261d21fd5ed34ff19386188bc01a
/OeSNN-C/src/OeSNN.cpp
6aacdf8d3c9bf538ade49162385d9c17b2490dc9
[]
no_license
gabrieleguehring/Online-Evolving-SNN-for-anomaly-detection
e9db6154fa488f1fc9f7e6e08cf57083a227d7ff
7be13a0f675cca1e9732bba034766455475e0366
refs/heads/master
2023-08-15T23:45:06.268860
2021-10-13T18:03:56
2021-10-13T18:03:56
null
0
0
null
null
null
null
UTF-8
C++
false
false
14,080
cpp
#include "OeSNN.h" using namespace snn; void OeSNN::Init() { _randomGenerator = default_random_engine(); _randomGenerator.seed( _hyperParam.random ? (unsigned)std::chrono::system_clock::now().time_since_epoch().count() : 1); } OeSNN::OeSNN(int dim, int Wsize, int NOsize, int NIsize, double TS, double sim, double C, double mod, double neuronInitFactor, double errorCorrection, int scoreWindowSize, bool random, bool debug) : _grf(NIsize, dim), _movingAverage(scoreWindowSize) { _hyperParam = { .dimensions = (unsigned) dim, .Wsize = (unsigned) Wsize, .NOsize = (NOsize < 1 ? 1 : (unsigned)NOsize), .NIsize = (NIsize < 1 ? 1 : (unsigned)NIsize), .TS = (TS < 1.0 ? 1.0 : TS), .sim = (sim <= 0.0 ? 1e-9 : ( sim > 1.0 ? 1.0 : sim )), .C = (C <= 0.0 ? 1e-9 : ( C > 1.0 ? 1.0 : C )), .mod = (mod <= 0.0 ? 1e-9 : ( mod >= 1.0 ? (1-1e9) : mod )), .neuronInitFactor = (neuronInitFactor <= 0.0 ? 1e-9 : ( neuronInitFactor > 1.0 ? 1.0 : neuronInitFactor )), .errorCorrectionFactor = (errorCorrection <= 0.0 ? 1e-9 : ( errorCorrection > 1.0 ? 1.0 : errorCorrection )), .scoreWindowSize = scoreWindowSize, .random = random }; _debug = debug; _aggregate = WelfordAggregate(); OeSNN::Init(); } OeSNN::OeSNN(OeSNN::OeSNNConfig config) : _grf(config.NIsize, config.dimensions), _movingAverage(config.scoreWindowSize) { _hyperParam = config; _debug = false; _aggregate = WelfordAggregate(); OeSNN::Init(); } OeSNN::~OeSNN() { for (auto & _outputNeuron : _outputNeurons) delete _outputNeuron; _outputNeurons.clear(); _E.clear(); _G.clear(); _spikeOrder.clear(); _CNOsize = 0; _neuronAge = 0; } /* double OeSNN::CalculateAvg(const vector<double> &vec) { return std::accumulate(vec.begin(), vec.end(), (double)0.0) / vec.size(); } double OeSNN::CalculateStd(const vector<double> &vec) { double sqSum = 0.0; double avg = OeSNN::CalculateAvg(vec); for (double k : vec) sqSum += pow(k - avg, 2); return ( vec.size() > 1 ? sqrt(sqSum / (vec.size() - 1.0)) : sqrt(sqSum / 1) ); } */ double OeSNN::CalculateDistance(const vector<double> &v1, const vector<double> &v2) { double diffSq = 0.0; for (unsigned int j = 0; j < v1.size(); j++) diffSq += pow(v1[j] - v2[j], 2); return sqrt(diffSq); } void OeSNN::InitializeNeuron(OeSNN::Neuron *n_i, unsigned int dim, const vector<double>& x_t) { /* ensure that all weights exists */ for (unsigned int i = 0; i < _hyperParam.NIsize; i++) n_i->weights.push_back(0.0); int order = 0; double PSP_max = 0.0; for (auto & n_x : _spikeOrder) { /* calculate and set the correct weights */ n_i->weights[n_x.ID] += pow(_hyperParam.mod, order); PSP_max += n_i->weights[n_x.ID] * pow(_hyperParam.mod, order++); } n_i->gamma = PSP_max * _hyperParam.C; n_i->outputValues = vector<double>(dim); auto distributions = _grf.get_marginal_distributions(); for(unsigned int i = 0; i < n_i ->outputValues.size(); i++) { n_i->outputValues[i] = distributions[i](_randomGenerator); } /* for(unsigned int i = 0; i < n_i ->outputValues.size(); i++) { n_i->outputValues[i] = x_t[i]; } */ n_i->M = 1.0; n_i->additionTime = _neuronAge++ * 1.0; } void OeSNN::UpdateNeuron(OeSNN::Neuron *n_i, OeSNN::Neuron *n_s) { for (unsigned int j = 0; j < n_s->weights.size(); j++) { n_s->weights[j] = (n_i->weights[j] + n_s->weights[j] * n_s->M ) / (n_s->M + 1.0 ); } n_s->gamma = ( n_i->gamma + n_s->gamma * n_s->M ) / ( n_s->M + 1.0 ); //TODO add hyperparameter? for(unsigned int i = 0; i < n_s->outputValues.size(); i++) { n_s->outputValues[i] = ( n_i->outputValues[i] + n_s->outputValues[i] * n_s->M ) / ( n_s->M + 1.0 ); } n_s->additionTime = ( n_i->additionTime + n_s->additionTime * n_s->M ) / ( n_s->M + 1.0 ); n_s->M += 1.0; delete n_i; } void OeSNN::CalculateSpikeOrder(std::vector<double>& exc_vals) { _spikeOrder.clear(); for (unsigned int j = 0; j < exc_vals.size(); j++) { /* NOTE: There seems to be a problem due to the reference (maybe due to compiler optimization or something else) so we first copy the value * into a locale variable to avoid the problem of all 0 values (later we can implement this even better). */ double exc = std::isnan(exc_vals[j]) ? 1 - 1e-9 : exc_vals[j]; _spikeOrder.push_back({ (unsigned) j, _hyperParam.TS * (1.0 - exc) }); } sort(_spikeOrder.begin(), _spikeOrder.end(), [](auto a, auto b) { return a.firingTime > b.firingTime; } ); //TODO Sometimes we don't get back reasonable values, here we have to take a closer look. //TODO: if(_spikeOrder.front().firingTime == _spikeOrder.back().firingTime) { vector<double> tmp; auto distributions = _grf.get_marginal_distributions(); for(unsigned int i = 0; i < _hyperParam.dimensions; i++) { tmp.push_back(distributions[i](_randomGenerator)); } (void)_grf.update(tmp); } /* if (_debugCounter++ % 1000 == 0) { cout << "ftimes:"; for (auto & a : _spikeOrder) cout << ", " << a.firingTime; cout << endl; } */ if(_debug) { vector<double> tmp1; for (auto & o : _spikeOrder) tmp1.push_back( o.firingTime ); _spikingTimes.push_back(tmp1); vector<double> tmp2(exc_vals); for (unsigned int i = 0; i < tmp2.size(); i++) { if(std::isnan(tmp2[i])) { tmp2[i] = -1; } } _exc.push_back(tmp2); } } //TODO test value correct with respect to M? void OeSNN::ValueCorrection(OeSNN::Neuron *n_c, const vector<double>& x_t) { for (unsigned int i = 0; i < x_t.size(); i++) { n_c->outputValues[i] += (x_t[i] - n_c->outputValues[i]) * _hyperParam.errorCorrectionFactor * 1/n_c->M; } } double OeSNN::ClassifyAnomaly(double error) { UpdateWelford(error); FinalizeWelford(); auto standard_deviation = (_aggregate.sample_variance > 0) ? std::sqrt(_aggregate.sample_variance) : 1.0; auto movingAverage = _movingAverage.UpdateAverage(error); auto cdf = 1 - std::erfc(-(movingAverage - _aggregate.mean)/standard_deviation/std::sqrt(2))/2; return 2.0 * std::abs(cdf - 0.5); } void OeSNN::UpdateWelford(double x) { _aggregate.count++; auto delta = (x - _aggregate.mean); _aggregate.mean += delta/_aggregate.count; auto delta2 = (x - _aggregate.mean); _aggregate.m2 += delta * delta2; } void OeSNN::FinalizeWelford() { //Avoid zero division and senseless results from division by -1 if (_aggregate.count < 2) { _aggregate.variance = 0; _aggregate.sample_variance = 0; } _aggregate.variance = _aggregate.m2/_aggregate.count; _aggregate.sample_variance = _aggregate.m2/(_aggregate.count - 1.0); } OeSNN::Neuron* OeSNN::FindMostSimilar(Neuron *n_i) { Neuron* simPtr = _outputNeurons[0]; for (auto & n_x : _outputNeurons) { if(CalculateDistance(n_i->weights, n_x->weights) < CalculateDistance(n_i->weights, simPtr->weights)) { simPtr = n_x; } } return simPtr; } void OeSNN::ReplaceOldest(Neuron *n_i) { double oldest = _outputNeurons[0]->additionTime; int oldestIdx = 0; for (unsigned int k = 1; k < _outputNeurons.size(); k++) { if (oldest > _outputNeurons[k]->additionTime) { oldest = _outputNeurons[k]->additionTime; oldestIdx = k; } } delete _outputNeurons[oldestIdx]; _outputNeurons[oldestIdx] = n_i; } OeSNN::Neuron* OeSNN::FiresFirst() { for (auto & _outputNeuron : _outputNeurons) _outputNeuron->PSP = 0.0; Neuron* maxPtr; vector<Neuron*> toFire; int order = 0; for (auto & l : _spikeOrder) { for (auto & n_o : _outputNeurons) { n_o->PSP += pow(_hyperParam.mod, order) * n_o->weights[l.ID]; if (n_o->PSP > n_o->gamma) toFire.push_back(n_o); } if (!toFire.empty()) { maxPtr = toFire[0]; for (auto & n_o : toFire) { if ((n_o->PSP - n_o->gamma) > (maxPtr->PSP - maxPtr->gamma)) { maxPtr = n_o; } } return maxPtr; } order++; } return nullptr; } double OeSNN::CalculateMaxDistance() { vector<double> v1, v2; for(unsigned int i = 0; i < _hyperParam.NIsize; i++) { v1.push_back(pow(_hyperParam.mod, _hyperParam.NIsize - 1 - i)); v2.push_back(pow(_hyperParam.mod, i)); } double diffSq = 0.0; for (unsigned int i = 0; i < v1.size(); i++) diffSq += pow(v1[i] - v2[i], 2); return sqrt(diffSq); } void OeSNN::UpdateRepository(const vector<double>& x_t) { auto *n_c = new Neuron; InitializeNeuron(n_c, x_t.size(), x_t); if (_G.back() < 0.8) ValueCorrection(n_c, x_t); //if no anomaly --> perfom value correction Neuron* n_s = (_CNOsize > 0 ? FindMostSimilar(n_c) : nullptr); if (_CNOsize > 0 && CalculateDistance(n_c->weights, n_s->weights) <= _hyperParam.sim*CalculateMaxDistance()) { UpdateNeuron(n_c, n_s); if(_debug) _LOG.push_back(1); } else if (_CNOsize < _hyperParam.NOsize) { n_c->ID = _neuronIDcounter++; _outputNeurons.push_back(n_c); _CNOsize++; if(_debug) _LOG.push_back(2); } else { n_c->ID = _neuronIDcounter++; ReplaceOldest(n_c); if(_debug) _LOG.push_back(3); } } std::vector<double> OeSNN::UpdateOutput(const std::vector<double>& x_t) { vector<double> y_t; Neuron *n_f = FiresFirst(); if (n_f == nullptr) { /*TODO: In the current implementation, this function is called at least once, exactly when the window has been read completely, * because the _outputRepository is still empty, we should probably implement this better. */ /* auto aggregates = _Window.get_values(); for (auto agg : aggregates) { y_t.push_back(agg.mean); //NOTE: Here we deviate from the paper because otherwise our outlier score does not work well. } */ if(_debug) { //cout << "Waring: no neuron has fired" << endl; _firedLOG.push_back(-1); } auto distributions = _grf.get_marginal_distributions(); for(unsigned int i = 0; i < _hyperParam.dimensions; i++) { y_t.push_back(distributions[i].mean()); } _E.push_back(DBL_MAX); _G.push_back(1.0); } else { if(_debug) { _firedLOG.push_back(n_f->ID); } y_t = n_f->outputValues; _E.push_back(abs(CalculateDistance(x_t, y_t))); vector<double> squaredError; for (unsigned int i = 0; i < x_t.size(); i++) { squaredError.push_back(pow((x_t[i] - y_t[i]), 2)); } _G.push_back(ClassifyAnomaly(*max_element(squaredError.begin(), squaredError.end()))); } if(_E.size() > _hyperParam.Wsize + 2) _E.erase(_E.begin()); if(_G.size() > _hyperParam.Wsize + 2) _G.erase(_G.begin()); return y_t; } double OeSNN::GetClassification() { return _G.empty() ? 1.0 : _G.back(); } std::vector<double> OeSNN::Predict(const std::vector<double>& x_t) { //TODO: "Note !!" Random initialization at first is important !! if (_initializationCounter < _hyperParam.Wsize) { vector<double> y_t; _initVector.push_back(x_t); if (_debug) { _LOG.push_back(0); _firedLOG.push_back(0); _spikingTimes.emplace_back( vector<double>(_hyperParam.NIsize, 0.0) ); _exc.emplace_back( vector<double>(_hyperParam.NIsize, 0.0) ); } auto distributions = _grf.get_marginal_distributions(); for(unsigned int i = 0; i < _hyperParam.dimensions; i++) { y_t.push_back(distributions[i](_randomGenerator)); } _E.push_back(abs(CalculateDistance(x_t, y_t))); _G.push_back(0.0); // NOTE: test implementation to improve clusters sturcture /* if (_initializationCounter % (int)(_hyperParam.Wsize/_hyperParam.NIsize) == 0) { (void)_grf.update(x_t); }*/ srand(1); if(_initializationCounter == _hyperParam.Wsize - 1) { for (unsigned int i = 0; i < _hyperParam.NIsize; i++) { vector<double> clusterInit; for (unsigned int j = 0; j < _hyperParam.dimensions; j++) { double max = _initVector[0][j]; double min = _initVector[0][j]; for(unsigned int k = 0; k < _initVector.size(); k++) { if(max < _initVector[k][j]) max = _initVector[k][j]; if(min > _initVector[k][j]) min = _initVector[k][j]; } clusterInit.push_back( (double)rand()/(double)RAND_MAX * (max-min) + min); } (void)_grf.update(clusterInit); } } _initializationCounter++; return y_t; } auto exc_vals = _grf.update(x_t); CalculateSpikeOrder(exc_vals); auto y_t = UpdateOutput(x_t); UpdateRepository(x_t); return y_t; //TODO: Change to (std::isnan(y_t) ? x_t : y_t) } vector<vector<double>> OeSNN::PredictAll(const vector<vector<double>> &values) { /* clear debung variables */ _LOG.clear(); _spikingTimes.clear(); _exc.clear(); _firedLOG.clear(); vector<vector<double>> retValues; for (unsigned int i=0; i < values.size(); i++) retValues.push_back( Predict(values.at(i)) ); return retValues; } /* functions for debugging and testing */ vector<int> OeSNN::GetLOG() { return _LOG; } vector<vector<double>> OeSNN::GetSpikingTimes() { return _spikingTimes; } vector<vector<double>> OeSNN::GetExc() { return _exc; } vector<int> OeSNN::GetFiredLOG() { return _firedLOG; }
[ "arch@local" ]
arch@local
142ad2ad7d366c4ded9c7994d11db51a1bdcf644
71a1e22374494c802c59376d5fcc2d39e650a9cf
/ModifyDialog.h
9d2e2abfdff8b324867a60b4c0363a36fd2f586c
[ "MIT" ]
permissive
tommasolevato/NoteView
35ed506f9b650aa950055be284d333cb07bf3317
19275efc928172867b5c4bab898f7339dcefcf12
refs/heads/master
2016-09-10T14:01:20.985861
2014-03-22T14:39:41
2014-03-22T14:39:41
null
0
0
null
null
null
null
UTF-8
C++
false
false
440
h
#ifndef MODIFYDIALOG_H #define MODIFYDIALOG_H #include <QtWidgets/QDialog> #include "UI_ModifyDialog.h" class ModifyDialog : public QDialog { Q_OBJECT public: ModifyDialog( QWidget *parent = 0 ); ~ModifyDialog(); string getNoteName() const; QString getNoteText() const; void setNoteName( QString name ); void setNoteText( QString text ); private: Ui::ModifyDialogClass ui; }; #endif // MODIFYDIALOG_H
41f813be6badf8cfe3d011733b3438f6f777b0ea
3c6ed046eda83e35ab754883a59dcb7099233b39
/ash/display/touch_calibrator_controller_unittest.cc
46cb832592ac14f5ad9854932c2037ea5b0829d5
[ "BSD-3-Clause" ]
permissive
ssln2014/chromium
66c5021c8893313dee78b963082cbdf948bd2d6a
4bad77148cc4a36373e40cf985444bc649c0eeff
refs/heads/master
2023-03-06T03:21:39.801883
2019-06-08T16:11:10
2019-06-08T16:11:10
190,914,348
1
0
BSD-3-Clause
2019-06-08T17:08:38
2019-06-08T17:08:38
null
UTF-8
C++
false
false
24,523
cc
// Copyright 2016 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ash/display/touch_calibrator_controller.h" #include <vector> #include "ash/display/touch_calibrator_view.h" #include "ash/shell.h" #include "ash/test/ash_test_base.h" #include "ash/touch/ash_touch_transform_controller.h" #include "base/stl_util.h" #include "services/ws/public/cpp/input_devices/input_device_client_test_api.h" #include "ui/display/display.h" #include "ui/display/manager/display_manager.h" #include "ui/display/manager/test/touch_device_manager_test_api.h" #include "ui/display/manager/test/touch_transform_controller_test_api.h" #include "ui/display/manager/touch_device_manager.h" #include "ui/display/manager/touch_transform_setter.h" #include "ui/display/test/display_manager_test_api.h" #include "ui/events/base_event_utils.h" #include "ui/events/devices/touch_device_transform.h" #include "ui/events/event_handler.h" #include "ui/events/test/event_generator.h" #include "ui/events/test/events_test_utils.h" using namespace display; namespace ash { namespace { ui::TouchscreenDevice GetInternalTouchDevice(int touch_device_id) { return ui::TouchscreenDevice( touch_device_id, ui::InputDeviceType::INPUT_DEVICE_INTERNAL, std::string("test internal touch device"), gfx::Size(1000, 1000), 1); } ui::TouchscreenDevice GetExternalTouchDevice(int touch_device_id) { return ui::TouchscreenDevice( touch_device_id, ui::InputDeviceType::INPUT_DEVICE_USB, std::string("test external touch device"), gfx::Size(1000, 1000), 1); } } // namespace class TouchCalibratorControllerTest : public AshTestBase { public: TouchCalibratorControllerTest() = default; void TearDown() override { // Reset all touch device and touch association. test::TouchDeviceManagerTestApi(touch_device_manager()) .ResetTouchDeviceManager(); ws::InputDeviceClientTestApi().SetTouchscreenDevices({}); test::TouchTransformControllerTestApi( Shell::Get()->touch_transformer_controller()) .touch_transform_setter() ->ConfigureTouchDevices(std::vector<ui::TouchDeviceTransform>()); AshTestBase::TearDown(); } display::TouchDeviceManager* touch_device_manager() { return display_manager()->touch_device_manager(); } int GetTouchDeviceId(const TouchCalibratorController& ctrl) { return ctrl.touch_device_id_; } const TouchCalibratorController::CalibrationPointPairQuad& GetTouchPointQuad( const TouchCalibratorController& ctrl) { return ctrl.touch_point_quad_; } std::map<int64_t, std::unique_ptr<TouchCalibratorView>>& GetCalibratorViews( TouchCalibratorController* ctrl) { return ctrl->touch_calibrator_views_; } const Display& InitDisplays() { // Initialize 2 displays each with resolution 500x500. UpdateDisplay("500x500,500x500"); // Assuming index 0 points to the native display, we will calibrate the // touch display at index 1. const int kTargetDisplayIndex = 1; DisplayIdList display_id_list = display_manager()->GetCurrentDisplayIdList(); int64_t target_display_id = display_id_list[kTargetDisplayIndex]; const Display& touch_display = display_manager()->GetDisplayForId(target_display_id); return touch_display; } void StartCalibrationChecks(TouchCalibratorController* ctrl, const Display& target_display) { EXPECT_FALSE(ctrl->IsCalibrating()); EXPECT_FALSE(!!ctrl->touch_calibrator_views_.size()); TouchCalibratorController::TouchCalibrationCallback empty_callback; ctrl->StartCalibration(target_display, false /* is_custom_calibration */, std::move(empty_callback)); EXPECT_TRUE(ctrl->IsCalibrating()); EXPECT_EQ(ctrl->state_, TouchCalibratorController::CalibrationState::kNativeCalibration); // There should be a touch calibrator view associated with each of the // active displays. EXPECT_EQ(ctrl->touch_calibrator_views_.size(), display_manager()->GetCurrentDisplayIdList().size()); TouchCalibratorView* target_calibrator_view = ctrl->touch_calibrator_views_[target_display.id()].get(); // End the background fade in animation. target_calibrator_view->SkipCurrentAnimation(); // TouchCalibratorView on the display being calibrated should be at the // state where the first display point is visible. EXPECT_EQ(target_calibrator_view->state(), TouchCalibratorView::DISPLAY_POINT_1); } // Resets the timestamp threshold so that touch events are not discarded. void ResetTimestampThreshold(TouchCalibratorController* ctrl) { base::Time current = base::Time::Now(); ctrl->last_touch_timestamp_ = current - TouchCalibratorController::kTouchIntervalThreshold; } // Generates a touch press and release event in the |display| with source // device id as |touch_device_id|. void GenerateTouchEvent(const Display& display, int touch_device_id, const gfx::Point& location = gfx::Point(20, 20)) { // Get the correct EventTarget for the given |display|. aura::Window::Windows root_windows = Shell::GetAllRootWindows(); ui::EventTarget* event_target = nullptr; for (auto* window : root_windows) { if (Screen::GetScreen()->GetDisplayNearestWindow(window).id() == display.id()) { event_target = window; break; } } ui::test::EventGenerator* eg = GetEventGenerator(); eg->set_current_target(event_target); ui::TouchEvent press_touch_event( ui::ET_TOUCH_PRESSED, location, ui::EventTimeForNow(), ui::PointerDetails(ui::EventPointerType::POINTER_TYPE_TOUCH, 12, 1.0f, 1.0f, 0.0f), 0); ui::TouchEvent release_touch_event( ui::ET_TOUCH_RELEASED, location, ui::EventTimeForNow(), ui::PointerDetails(ui::EventPointerType::POINTER_TYPE_TOUCH, 12, 1.0f, 1.0f, 0.0f), 0); press_touch_event.set_source_device_id(touch_device_id); release_touch_event.set_source_device_id(touch_device_id); eg->Dispatch(&press_touch_event); eg->Dispatch(&release_touch_event); } ui::TouchscreenDevice InitTouchDevice( int64_t display_id, const ui::TouchscreenDevice& touchdevice) { ws::InputDeviceClientTestApi().SetTouchscreenDevices({touchdevice}); std::vector<ui::TouchDeviceTransform> transforms; ui::TouchDeviceTransform touch_device_transform; touch_device_transform.display_id = display_id; touch_device_transform.device_id = touchdevice.id; transforms.push_back(touch_device_transform); // This makes touchscreen target displays valid for |ui::InputDeviceManager| test::TouchTransformControllerTestApi( Shell::Get()->touch_transformer_controller()) .touch_transform_setter() ->ConfigureTouchDevices(transforms); return touchdevice; } private: DISALLOW_COPY_AND_ASSIGN(TouchCalibratorControllerTest); }; TEST_F(TouchCalibratorControllerTest, StartCalibration) { const Display& touch_display = InitDisplays(); TouchCalibratorController touch_calibrator_controller; StartCalibrationChecks(&touch_calibrator_controller, touch_display); ui::EventTargetTestApi test_api(Shell::Get()); ui::EventHandlerList handlers = test_api.GetPreTargetHandlers(); EXPECT_TRUE(base::Contains(handlers, &touch_calibrator_controller)); } TEST_F(TouchCalibratorControllerTest, KeyEventIntercept) { const Display& touch_display = InitDisplays(); TouchCalibratorController touch_calibrator_controller; StartCalibrationChecks(&touch_calibrator_controller, touch_display); ui::test::EventGenerator* eg = GetEventGenerator(); EXPECT_TRUE(touch_calibrator_controller.IsCalibrating()); eg->PressKey(ui::VKEY_ESCAPE, ui::EF_NONE); EXPECT_FALSE(touch_calibrator_controller.IsCalibrating()); } TEST_F(TouchCalibratorControllerTest, TouchThreshold) { const Display& touch_display = InitDisplays(); TouchCalibratorController touch_calibrator_controller; StartCalibrationChecks(&touch_calibrator_controller, touch_display); // Initialize touch device so that |event_transnformer_| can be computed. ui::TouchscreenDevice touchdevice = InitTouchDevice(touch_display.id(), GetExternalTouchDevice(12)); base::Time current_timestamp = base::Time::Now(); touch_calibrator_controller.last_touch_timestamp_ = current_timestamp; // This touch event should be rejected as the time threshold has not been // crossed. GenerateTouchEvent(touch_display, touchdevice.id); EXPECT_EQ(touch_calibrator_controller.last_touch_timestamp_, current_timestamp); ResetTimestampThreshold(&touch_calibrator_controller); // This time the events should be registered as the threshold is crossed. GenerateTouchEvent(touch_display, touchdevice.id); EXPECT_LT(current_timestamp, touch_calibrator_controller.last_touch_timestamp_); } TEST_F(TouchCalibratorControllerTest, TouchDeviceIdIsSet) { const Display& touch_display = InitDisplays(); TouchCalibratorController touch_calibrator_controller; StartCalibrationChecks(&touch_calibrator_controller, touch_display); ui::TouchscreenDevice touchdevice = InitTouchDevice(touch_display.id(), GetExternalTouchDevice(12)); ResetTimestampThreshold(&touch_calibrator_controller); EXPECT_EQ(GetTouchDeviceId(touch_calibrator_controller), ui::InputDevice::kInvalidId); GenerateTouchEvent(touch_display, touchdevice.id); EXPECT_EQ(GetTouchDeviceId(touch_calibrator_controller), touchdevice.id); } TEST_F(TouchCalibratorControllerTest, CustomCalibration) { const Display& touch_display = InitDisplays(); TouchCalibratorController touch_calibrator_controller; EXPECT_FALSE(touch_calibrator_controller.IsCalibrating()); EXPECT_FALSE(!!GetCalibratorViews(&touch_calibrator_controller).size()); touch_calibrator_controller.StartCalibration( touch_display, true /* is_custom_calibbration */, TouchCalibratorController::TouchCalibrationCallback()); ui::TouchscreenDevice touchdevice = InitTouchDevice(touch_display.id(), GetExternalTouchDevice(12)); EXPECT_TRUE(touch_calibrator_controller.IsCalibrating()); EXPECT_EQ(touch_calibrator_controller.state_, TouchCalibratorController::CalibrationState::kCustomCalibration); // Native touch calibration UX should not initialize during custom calibration EXPECT_EQ(GetCalibratorViews(&touch_calibrator_controller).size(), 0UL); EXPECT_EQ(GetTouchDeviceId(touch_calibrator_controller), ui::InputDevice::kInvalidId); ResetTimestampThreshold(&touch_calibrator_controller); GenerateTouchEvent(touch_display, touchdevice.id); EXPECT_EQ(GetTouchDeviceId(touch_calibrator_controller), touchdevice.id); display::TouchCalibrationData::CalibrationPointPairQuad points = { {std::make_pair(gfx::Point(10, 10), gfx::Point(11, 12)), std::make_pair(gfx::Point(190, 10), gfx::Point(195, 8)), std::make_pair(gfx::Point(10, 90), gfx::Point(12, 94)), std::make_pair(gfx::Point(190, 90), gfx::Point(189, 88))}}; gfx::Size size(200, 100); display::TouchCalibrationData calibration_data(points, size); touch_calibrator_controller.CompleteCalibration(points, size); const display::ManagedDisplayInfo& info = display_manager()->GetDisplayInfo(touch_display.id()); test::TouchDeviceManagerTestApi tdm_test_api(touch_device_manager()); EXPECT_TRUE(tdm_test_api.AreAssociated(info, touchdevice)); EXPECT_EQ(calibration_data, touch_device_manager()->GetCalibrationData(touchdevice, info.id())); } TEST_F(TouchCalibratorControllerTest, CustomCalibrationInvalidTouchId) { const Display& touch_display = InitDisplays(); TouchCalibratorController touch_calibrator_controller; EXPECT_FALSE(touch_calibrator_controller.IsCalibrating()); EXPECT_FALSE(!!GetCalibratorViews(&touch_calibrator_controller).size()); touch_calibrator_controller.StartCalibration( touch_display, true /* is_custom_calibbration */, TouchCalibratorController::TouchCalibrationCallback()); EXPECT_TRUE(touch_calibrator_controller.IsCalibrating()); EXPECT_EQ(touch_calibrator_controller.state_, TouchCalibratorController::CalibrationState::kCustomCalibration); // Native touch calibration UX should not initialize during custom calibration EXPECT_EQ(GetCalibratorViews(&touch_calibrator_controller).size(), 0UL); EXPECT_EQ(GetTouchDeviceId(touch_calibrator_controller), ui::InputDevice::kInvalidId); ResetTimestampThreshold(&touch_calibrator_controller); display::TouchCalibrationData::CalibrationPointPairQuad points = { {std::make_pair(gfx::Point(10, 10), gfx::Point(11, 12)), std::make_pair(gfx::Point(190, 10), gfx::Point(195, 8)), std::make_pair(gfx::Point(10, 90), gfx::Point(12, 94)), std::make_pair(gfx::Point(190, 90), gfx::Point(189, 88))}}; gfx::Size size(200, 100); display::TouchCalibrationData calibration_data(points, size); touch_calibrator_controller.CompleteCalibration(points, size); const display::ManagedDisplayInfo& info = display_manager()->GetDisplayInfo(touch_display.id()); ui::TouchscreenDevice random_touchdevice( 15, ui::InputDeviceType::INPUT_DEVICE_USB, std::string("random touch device"), gfx::Size(123, 456), 1); EXPECT_EQ(calibration_data, touch_device_manager()->GetCalibrationData( random_touchdevice, info.id())); } TEST_F(TouchCalibratorControllerTest, IgnoreInternalTouchDevices) { const Display& touch_display = InitDisplays(); // We need to initialize a touch device before starting calibration so that // the set |internal_touch_device_ids_| can be initialized. ui::TouchscreenDevice internal_touchdevice = InitTouchDevice(touch_display.id(), GetInternalTouchDevice(12)); TouchCalibratorController touch_calibrator_controller; StartCalibrationChecks(&touch_calibrator_controller, touch_display); // We need to reinitialize the touch device as Starting calibration resets // everything. internal_touchdevice = InitTouchDevice(touch_display.id(), GetInternalTouchDevice(12)); ResetTimestampThreshold(&touch_calibrator_controller); EXPECT_EQ(GetTouchDeviceId(touch_calibrator_controller), ui::InputDevice::kInvalidId); GenerateTouchEvent(touch_display, internal_touchdevice.id); EXPECT_EQ(GetTouchDeviceId(touch_calibrator_controller), ui::InputDevice::kInvalidId); ui::TouchscreenDevice external_touchdevice = InitTouchDevice(touch_display.id(), GetExternalTouchDevice(13)); ResetTimestampThreshold(&touch_calibrator_controller); GenerateTouchEvent(touch_display, external_touchdevice.id); EXPECT_EQ(GetTouchDeviceId(touch_calibrator_controller), external_touchdevice.id); } TEST_F(TouchCalibratorControllerTest, HighDPIMonitorsCalibration) { // Initialize 3 displays each with different device scale factors. UpdateDisplay("500x500*2,300x300*3,500x500*1.5"); // Index 0 points to the native internal display, we will calibrate the touch // display at index 2. const int kTargetDisplayIndex = 2; DisplayIdList display_id_list = display_manager()->GetCurrentDisplayIdList(); int64_t internal_display_id = display_id_list[1]; test::ScopedSetInternalDisplayId set_internal(display_manager(), internal_display_id); int64_t target_display_id = display_id_list[kTargetDisplayIndex]; const Display& touch_display = display_manager()->GetDisplayForId(target_display_id); // We create 2 touch devices. const int kInternalTouchId = 10; const int kExternalTouchId = 11; ui::TouchscreenDevice internal_touchdevice( kInternalTouchId, ui::InputDeviceType::INPUT_DEVICE_INTERNAL, std::string("internal touch device"), gfx::Size(1000, 1000), 1); ui::TouchscreenDevice external_touchdevice( kExternalTouchId, ui::InputDeviceType::INPUT_DEVICE_USB, std::string("external touch device"), gfx::Size(1000, 1000), 1); ws::InputDeviceClientTestApi().SetTouchscreenDevices( {internal_touchdevice, external_touchdevice}); // Associate both touch devices to the internal display. std::vector<ui::TouchDeviceTransform> transforms; ui::TouchDeviceTransform touch_device_transform; touch_device_transform.display_id = internal_display_id; touch_device_transform.device_id = internal_touchdevice.id; transforms.push_back(touch_device_transform); touch_device_transform.device_id = external_touchdevice.id; transforms.push_back(touch_device_transform); test::TouchTransformControllerTestApi( Shell::Get()->touch_transformer_controller()) .touch_transform_setter() ->ConfigureTouchDevices(transforms); // Update touch device manager with the associations. display::test::TouchDeviceManagerTestApi(touch_device_manager()) .Associate(internal_display_id, internal_touchdevice); display::test::TouchDeviceManagerTestApi(touch_device_manager()) .Associate(internal_display_id, external_touchdevice); TouchCalibratorController touch_calibrator_controller; touch_calibrator_controller.StartCalibration( touch_display, false /* is_custom_calibbration */, TouchCalibratorController::TouchCalibrationCallback()); // Skip any UI animations associated with the start of calibration. GetCalibratorViews(&touch_calibrator_controller)[touch_display.id()] .get() ->SkipCurrentAnimation(); // Reinitialize the transforms, as starting calibration resets them. test::TouchTransformControllerTestApi( Shell::Get()->touch_transformer_controller()) .touch_transform_setter() ->ConfigureTouchDevices(transforms); // The touch device id has not been set yet, as the first touch event has not // been generated. EXPECT_EQ(GetTouchDeviceId(touch_calibrator_controller), ui::InputDevice::kInvalidId); ResetTimestampThreshold(&touch_calibrator_controller); // Generate a touch event at point (100, 100) on the external touch device. gfx::Point touch_point(100, 100); GenerateTouchEvent(display_manager()->GetDisplayForId(internal_display_id), external_touchdevice.id, touch_point); EXPECT_EQ(GetTouchDeviceId(touch_calibrator_controller), external_touchdevice.id); // The touch event should be received as is. EXPECT_EQ(GetTouchPointQuad(touch_calibrator_controller).at(0).second, gfx::Point(100, 100)); // The display point should have the root transform applied. EXPECT_EQ(GetTouchPointQuad(touch_calibrator_controller).at(0).first, gfx::Point(210, 210)); } TEST_F(TouchCalibratorControllerTest, RotatedHighDPIMonitorsCalibration) { // Initialize 2 displays each with resolution 500x500. One of them at 2x // device scale factor. UpdateDisplay("500x500*2,500x500*1.5/r"); // Index 0 points to the native internal display, we will calibrate the touch // display at index 1. const int kTargetDisplayIndex = 1; DisplayIdList display_id_list = display_manager()->GetCurrentDisplayIdList(); int64_t internal_display_id = display_id_list[0]; test::ScopedSetInternalDisplayId set_internal(display_manager(), internal_display_id); int64_t target_display_id = display_id_list[kTargetDisplayIndex]; const Display& touch_display = display_manager()->GetDisplayForId(target_display_id); // We create 2 touch devices. const int kInternalTouchId = 10; const int kExternalTouchId = 11; ui::TouchscreenDevice internal_touchdevice( kInternalTouchId, ui::InputDeviceType::INPUT_DEVICE_INTERNAL, std::string("internal touch device"), gfx::Size(1000, 1000), 1); ui::TouchscreenDevice external_touchdevice( kExternalTouchId, ui::InputDeviceType::INPUT_DEVICE_USB, std::string("external touch device"), gfx::Size(1000, 1000), 1); ws::InputDeviceClientTestApi().SetTouchscreenDevices( {internal_touchdevice, external_touchdevice}); // Associate both touch devices to the internal display. std::vector<ui::TouchDeviceTransform> transforms; ui::TouchDeviceTransform touch_device_transform; touch_device_transform.display_id = internal_display_id; touch_device_transform.device_id = internal_touchdevice.id; transforms.push_back(touch_device_transform); touch_device_transform.device_id = external_touchdevice.id; transforms.push_back(touch_device_transform); test::TouchTransformControllerTestApi( Shell::Get()->touch_transformer_controller()) .touch_transform_setter() ->ConfigureTouchDevices(transforms); // Update touch device manager with the associations. display::test::TouchDeviceManagerTestApi(touch_device_manager()) .Associate(internal_display_id, internal_touchdevice); display::test::TouchDeviceManagerTestApi(touch_device_manager()) .Associate(internal_display_id, external_touchdevice); TouchCalibratorController touch_calibrator_controller; touch_calibrator_controller.StartCalibration( touch_display, false /* is_custom_calibbration */, TouchCalibratorController::TouchCalibrationCallback()); // Skip any UI animations associated with the start of calibration. GetCalibratorViews(&touch_calibrator_controller)[touch_display.id()] .get() ->SkipCurrentAnimation(); // Reinitialize the transforms, as starting calibration resets them. test::TouchTransformControllerTestApi( Shell::Get()->touch_transformer_controller()) .touch_transform_setter() ->ConfigureTouchDevices(transforms); // The touch device id has not been set yet, as the first touch event has not // been generated. EXPECT_EQ(GetTouchDeviceId(touch_calibrator_controller), ui::InputDevice::kInvalidId); ResetTimestampThreshold(&touch_calibrator_controller); // Generate a touch event at point (100, 100) on the external touch device. gfx::Point touch_point(100, 100); // Simulate the touch event for external touch device. Since the device is // currently associated with the internal display, we generate the touch event // for the internal display. GenerateTouchEvent(display_manager()->GetDisplayForId(internal_display_id), external_touchdevice.id, touch_point); EXPECT_EQ(GetTouchDeviceId(touch_calibrator_controller), external_touchdevice.id); // The touch event should now be within the bounds the the target display. EXPECT_EQ(GetTouchPointQuad(touch_calibrator_controller).at(0).second, gfx::Point(100, 100)); // The display point should have the root transform applied. EXPECT_EQ(GetTouchPointQuad(touch_calibrator_controller).at(0).first, gfx::Point(290, 210)); } TEST_F(TouchCalibratorControllerTest, InternalTouchDeviceIsRejected) { const Display& touch_display = InitDisplays(); // We need to initialize a touch device before starting calibration so that // the set |internal_touch_device_ids_| can be initialized. ui::TouchscreenDevice internal_touchdevice = InitTouchDevice(touch_display.id(), GetInternalTouchDevice(12)); TouchCalibratorController touch_calibrator_controller; touch_calibrator_controller.touch_device_id_ = internal_touchdevice.id; touch_calibrator_controller.target_display_ = touch_display; display::TouchCalibrationData::CalibrationPointPairQuad points = { {std::make_pair(gfx::Point(10, 10), gfx::Point(11, 12)), std::make_pair(gfx::Point(190, 10), gfx::Point(195, 8)), std::make_pair(gfx::Point(10, 90), gfx::Point(12, 94)), std::make_pair(gfx::Point(190, 90), gfx::Point(189, 88))}}; gfx::Size size(200, 100); display::TouchCalibrationData calibration_data(points, size); touch_calibrator_controller.CompleteCalibration(points, size); const display::ManagedDisplayInfo& info = display_manager()->GetDisplayInfo(touch_display.id()); display::test::TouchDeviceManagerTestApi tdm_test_api(touch_device_manager()); EXPECT_FALSE(tdm_test_api.AreAssociated(info, internal_touchdevice)); EXPECT_TRUE(touch_device_manager() ->GetCalibrationData(internal_touchdevice, info.id()) .IsEmpty()); } } // namespace ash
9dc49fb81ede381bdf09de5c2f0b0d4bd84e0aa1
ed997b3a8723cc9e77787c1d868f9300b0097473
/boost/geometry/extensions/gis/projections/impl/pj_inv.hpp
2b4f0c14740037357a5c6f5f13a4d7505a67b496
[ "BSL-1.0" ]
permissive
juslee/boost-svn
7ddb99e2046e5153e7cb5680575588a9aa8c79b2
6d5a03c1f5ed3e2b23bd0f3ad98d13ff33d4dcbb
refs/heads/master
2023-04-13T11:00:16.289416
2012-11-16T11:14:39
2012-11-16T11:14:39
6,734,455
0
0
BSL-1.0
2023-04-03T23:13:08
2012-11-17T11:21:17
C++
UTF-8
C++
false
false
3,047
hpp
// Boost.Geometry (aka GGL, Generic Geometry Library) // This file is manually converted from PROJ4 // Copyright (c) 2008-2012 Barend Gehrels, Amsterdam, the Netherlands. // Use, modification and distribution is subject to 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) // This file is converted from PROJ4, http://trac.osgeo.org/proj // PROJ4 is originally written by Gerald Evenden (then of the USGS) // PROJ4 is maintained by Frank Warmerdam // PROJ4 is converted to Geometry Library by Barend Gehrels (Geodan, Amsterdam) // Original copyright notice: // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the "Software"), // to deal in the Software without restriction, including without limitation // the rights to use, copy, modify, merge, publish, distribute, sublicense, // and/or sell copies of the Software, and to permit persons to whom the // Software is furnished to do so, subject to the following conditions: // The above copyright notice and this permission notice shall be included // in all copies or substantial portions of the Software. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. #ifndef BOOST_GEOMETRY_PROJECTIONS_PJ_INV_HPP #define BOOST_GEOMETRY_PROJECTIONS_PJ_INV_HPP #include <boost/geometry/extensions/gis/projections/impl/adjlon.hpp> #include <boost/geometry/core/radian_access.hpp> #include <boost/geometry/util/math.hpp> /* general inverse projection */ namespace boost { namespace geometry { namespace projections { namespace detail { namespace inv { static const double EPS = 1.0e-12; } /* inverse projection entry */ template <typename PRJ, typename LL, typename XY, typename PAR> void pj_inv(PRJ const& prj, PAR const& par, XY const& xy, LL& ll) { /* can't do as much preliminary checking as with forward */ /* descale and de-offset */ double xy_x = (geometry::get<0>(xy) * par.to_meter - par.x0) * par.ra; double xy_y = (geometry::get<1>(xy) * par.to_meter - par.y0) * par.ra; double lon = 0, lat = 0; prj.inv(xy_x, xy_y, lon, lat); /* inverse project */ lon += par.lam0; /* reduce from del lp.lam */ if (!par.over) lon = adjlon(lon); /* adjust longitude to CM */ if (par.geoc && geometry::math::abs(fabs(lat)-HALFPI) > inv::EPS) lat = atan(par.one_es * tan(lat)); geometry::set_from_radian<0>(ll, lon); geometry::set_from_radian<1>(ll, lat); } } // namespace detail }}} // namespace boost::geometry::projections #endif
[ "barendgehrels@b8fc166d-592f-0410-95f2-cb63ce0dd405" ]
barendgehrels@b8fc166d-592f-0410-95f2-cb63ce0dd405
cca475299588c7e4e59bf274bdae190c3f7d028f
29e6820d6d90b30b2cc7cce4df299d1f8bb48402
/Hwk/Assignments-5-6-7/Savitch-Chapter-7/C++ Simple Program 8 Savitch Ch.7/main.cpp
a8ad79c373d1edb17715dcf4d630da0f15587852
[]
no_license
Betoflyzcx/Alberto-Garcia
ba7c391c3de4b4322b16e446a1041150aaf3a5c3
1294880de4253ce188d7c2ae7c388a0081443431
refs/heads/master
2020-04-11T04:20:17.361669
2016-07-30T04:25:53
2016-07-30T04:25:53
61,763,730
0
0
null
null
null
null
UTF-8
C++
false
false
989
cpp
/* * File: main.cpp * Author: Alberto Garcia * Created on June 23, 2016, 02:54 PM * Purpose: State the following in the array displayed * a. The array name * b. The base type * c. The declared array size * d. The range of values that an index for this * array can have * e. One of the indexed variables (or elements) * of the array */ //System Libraries #include <iostream> //Input/Output Library using namespace std; //Namespace of the System Libraries //User Libraries //Global Constants //Function Prototypes //Execution Begins Here! int main(int argc, char** argv) { //Declare Variables //Array Size is 6 // amount of indexed values is 6 float score[5]; // score is array name // base type is float score[0] = 0.656; // One indexed value of array //Output Indexed Value cout << "\n" << score[0]<< endl; //Exit Stage Right! return 0; }
[ "fernando garcia" ]
fernando garcia
6c2988072865bc094b57f2fc79cd6902ca88cfd0
9ada6ca9bd5e669eb3e903f900bae306bf7fd75e
/case3/ddtFoam_Tutorial/0.003950000/omegaC_burn
80a0c22885ad55acfeffa42a6be7de8446bdc417
[]
no_license
ptroyen/DDT
a6c8747f3a924a7039b71c96ee7d4a1618ad4197
6e6ddc7937324b04b22fbfcf974f9c9ea24e48bf
refs/heads/master
2020-05-24T15:04:39.786689
2018-01-28T21:36:40
2018-01-28T21:36:40
null
0
0
null
null
null
null
UTF-8
C++
false
false
112,651
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.1.1 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class volScalarField; location "0.003950000"; object omegaC_burn; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [1 -3 -1 0 0 0 0]; internalField nonuniform List<scalar> 12384 ( 66038.1 143448 173752 198569 193693 188996 164757 151910 138265 114049 85569.3 71147.6 75213 57314.2 190567 370550 531787 659877 745606 818912 880761 913094 953568 958092 938112 864132 792979 729392 689345 651900 622886 586929 544412 495290 450875 408604 375869 341597 313423 286052 260829 224449 185621 112437 299759 530156 628446 679621 697297 692672 679704 689132 692637 708868 713864 703605 674795 632712 587915 553710 521128 485436 452930 412990 379560 363662 348760 334078 319301 299760 279704 250979 201262 124913 366512 556564 669393 710730 722754 704399 675368 627468 577197 548060 483861 452879 444814 383496 483705 424349 545711 538413 595322 597679 629176 663730 719877 740365 649810 500137 392992 345496 294724 187992 337505 458338 531310 592319 613383 610631 578070 544239 520105 530386 523466 582644 548977 742759 589423 847763 752846 916829 774707 973359 912706 1.03001e+06 976040 883198 727633 582324 480137 379247 292936 203355 316333 495549 631517 743718 863222 961608 1.02754e+06 1.05296e+06 1.06502e+06 1.08197e+06 1.07486e+06 1.09333e+06 1.0187e+06 913072 929344 523127 561903 380901 429645 329426 371793 371486 425307 483499 572200 685819 826823 665686 339222 217133 277306 370987 445527 513184 537854 476062 527914 624441 667221 680052 710623 698937 742021 734765 780743 781577 826343 840892 861583 892511 904351 913445 964551 933927 916809 823553 685182 476781 258633 128819 145214 244420 307854 333195 317069 334030 356490 435072 555610 719782 830366 969623 894378 1.06221e+06 662908 924277 874669 941947 948090 926932 878572 841290 763061 733927 698665 666693 618006 512676 355061 182766 21803.7 30905.4 38816.2 51972.4 68150.2 126631 223552 270530 378236 435939 526273 629497 639105 656448 647450 633337 625213 636216 655276 651757 609125 490944 374190 258510 144164 76934.7 43144.6 30815.7 25709.9 19744.1 19854.3 26461.6 32608.2 41864.1 50564.7 57979.4 60741.2 65061.3 81968.1 192210 342243 517697 705472 932322 1.13334e+06 1.165e+06 959463 1.29741e+06 1.11766e+06 1.54422e+06 1.67671e+06 1.77134e+06 1.80802e+06 1.79099e+06 1.70389e+06 1.55357e+06 1.42388e+06 1.25051e+06 1.0308e+06 672008 26298.4 31870 42048.9 58020.2 73459.3 97249.6 115275 142266 185826 215606 289758 373742 591250 937622 1.14135e+06 1.30156e+06 1.38971e+06 1.46196e+06 1.5375e+06 1.61128e+06 1.67338e+06 1.69166e+06 1.59505e+06 1.1502e+06 466259 362325 482894 788893 780851 370931 27428.4 35930.9 44538.8 69773.8 163207 306874 451454 598483 681127 840693 1.02306e+06 1.28045e+06 1.41831e+06 1.5912e+06 1.55227e+06 1.53717e+06 1.41575e+06 1.27122e+06 1.08441e+06 880868 641981 425184 185923 98591.1 61501.7 48389.5 41123.5 37647.4 34536.5 31163.5 32004.4 40146.8 41320.3 55096.3 73047.3 90711.7 100950 105439 108019 108449 111029 116619 111951 113573 96996.7 91276.7 76147.5 67860.1 61394.5 56968.8 51378.6 51029 48108 49038.8 47777.8 42764.2 42474.4 40988 39327.4 37949.5 100683 203661 248018 291711 322175 353043 365000 356967 329468 299569 240397 171125 140354 139055 272874 426076 553713 650642 733469 795907 857127 912252 943648 976133 982853 975484 958473 960144 923407 870892 797510 725530 664935 613905 570684 527925 483449 433170 391202 354389 323319 298818 252701 204350 416186 305272 118766 40909.1 12559 4337.44 2007.85 633.6 880.806 1068.76 2196.56 5060.71 13160.7 32035.1 59333.3 58608.5 65656.4 33084.7 55464.1 270620 550365 560016 515677 473941 437841 402782 373423 343904 293107 226041 461816 279684 93906.4 30967.9 11746.7 5004.14 2252.58 1135.92 588.06 328.17 188.378 106.399 79.4836 60.5445 75.5252 87.9957 155.591 250.965 454.323 794.298 1537.25 3477.17 9259.92 30084.5 90555.1 218768 347095 377266 361436 319473 416523 326068 205598 96748.7 34793.7 11209.7 4198.47 1719.86 1415.91 798.752 572.311 1701.53 1253.39 7067.63 5061.08 19715.7 15246.8 37922.1 24119.5 71213 55342.7 134294 190045 364110 526302 655334 659456 520566 393201 379705 550683 687178 875936 939503 910678 909727 826596 780414 681549 655806 596263 594215 575498 442221 467300 146504 138421 6567.93 7954.72 1091.85 713.87 514.963 586.984 943.556 1919.49 5560.76 24549.6 240325 489711 559613 432298 361224 362002 328346 147959 107430 243467 317450 329372 327478 333055 325750 318890 278908 229070 149060 80475 34318.8 13709.4 6773.57 3957.13 4720.16 7733.33 26862.6 63325.8 129283 242053 338696 160252 273135 278854 299132 141286 94032 235498 286298 310907 424279 544518 614457 505067 265927 30326.2 44464.9 4717.01 49034.2 72863.2 166342 284431 377245 407871 389235 325065 251518 203705 139379 145198 175706 276261 497732 39971.7 37490.7 62859.3 31765.3 32320.3 186294 110214 31161.2 9301.17 2972.24 1333.16 529.523 306.044 238.843 243.307 462.548 1372.36 2979.86 4941.48 6958.19 10340.9 41051.7 138560 247879 206906 131911 68119.7 31630.3 18137.4 23921.4 31890.8 24742.8 38926.5 58750.1 83395 95002.8 84286.7 141541 442400 659076 297095 142977 115631 70134.2 44294.4 20582.1 33859.8 59285.7 136163 271381 512333 699914 836189 888310 864652 823209 739528 734819 901883 1.12034e+06 47367.5 44476.7 82078.8 135530 200671 227997 283677 635382 1.0899e+06 1.34799e+06 914269 281342 206067 336643 358623 531832 666359 803525 832690 728355 423857 117450 11647.9 287.231 23.4197 9.78827 13.8733 61.2457 569.417 955790 82214.6 91593.9 191282 456254 1.0044e+06 1.40369e+06 1.51405e+06 1.20702e+06 594231 480576 140208 199612 226211 688125 1.04743e+06 1.42089e+06 1.56588e+06 1.47453e+06 1.2242e+06 929115 661141 426213 224994 117036 74533.2 56020.5 35760.7 22294.6 16617.6 28232.6 74429.4 62404.9 96071.7 129360 167033 199359 235857 278089 321906 360223 370761 341757 290428 242156 182722 146155 109980 87493.2 73872.1 65375.4 57517.9 55564.8 53154.9 52027.1 51134.4 43680.2 36273.1 27751.5 23430.5 37226.4 154375 292000 316170 328012 338973 350920 371171 393600 391829 346848 318585 255653 196065 214593 373632 564420 669170 738389 778895 809864 819657 824626 846320 846747 855217 826077 826108 826034 843869 815454 770595 712171 660177 617312 578827 540000 501233 453479 410076 366421 333020 305306 281846 242350 539699 120935 43933.3 18098.7 8705.25 4930.07 2905.53 3089.8 1297.64 1095.41 1037.67 1239.04 2058.49 4601.02 9276.71 17793.7 19489.3 19309.6 10619.1 22578.7 141332 476820 598498 547046 491681 446156 404864 378351 347493 276732 554054 49579.8 9848.97 4424.67 3105.21 1841.34 1308.6 642.205 410.647 173.45 118.663 48.7205 37.3684 25.4389 26.3301 35.0623 52.9165 117.46 198.17 352.865 613.918 1079.26 2474.88 7308.34 23175.1 81623.6 227893 335039 390995 417966 500761 235432 122550 56999.8 23182.4 13887.3 6634.13 4719.33 2596.04 4607.15 1882.85 12885.1 5568.51 39251.6 23752.8 65162.5 44731.6 89834.5 61762.8 148442 127577 232484 275053 346643 398667 492561 601300 620785 486438 504726 709324 813047 921044 978898 926876 912392 689969 551827 415904 473565 570590 693352 781823 663507 764883 490457 564531 207533 206086 23146.5 21570.5 2677.74 2433 2160.71 2428.61 3629.13 9249.01 51503.7 479419 743770 548771 384454 323574 220404 125089 215499 292373 298682 299852 304950 304842 292671 249601 165356 76906.4 26185.8 8647.33 3508.66 1865.56 1092.55 1008.11 1261.01 8127.86 16514 30213.9 80235.6 170122 223517 77677.2 266248 395254 233540 72118.5 122303 228742 192673 220706 367293 433562 547222 407433 245117 14400.4 15605.5 2311.63 19900.3 43789.3 126868 231525 314906 350184 374869 391440 394758 377851 416880 360385 230079 177304 492895 61289.2 58572.2 25259.4 9586.59 44137.6 123294 37855.1 11145.1 3993.46 1727.13 954.269 560.597 432.383 386.222 380.887 416.086 466.477 560.042 1037.1 1433.78 2613.8 9668.41 40109.3 120720 224244 199749 120269 66670.9 29948.9 29787.3 36785.6 28305 43204.6 64243.5 81879.9 48142.7 114020 268417 520512 422796 204465 175104 151677 171359 98755.3 152438 133784 186628 252974 334656 379562 307657 253862 226125 200307 254932 607449 760281 642417 972102 51241.2 50757.5 90614.5 141324 199376 167521 154267 600545 1.08938e+06 1.3503e+06 1.03578e+06 237017 536162 462412 499156 427452 517130 479995 368002 173923 24100 435.828 4.85252 0.300863 0.184518 0.373294 1.02714 5.06507 25.0485 320080 116267 129357 286460 710759 1.23285e+06 1.46166e+06 1.34849e+06 978783 333700 237123 84257.1 126327 138875 344410 495895 1.08899e+06 1.33228e+06 1.60343e+06 1.59604e+06 1.37049e+06 1.04711e+06 735904 437531 218709 102801 65965.7 58217 51607.2 24335.2 27581.5 106457 86413.6 124177 168214 228116 308776 418271 532408 559915 503636 427247 358685 301465 249090 192397 151040 106808 77509.5 62265.8 55016.1 49597.8 47967.9 47252.9 48865.1 50954.1 53047.5 53097.3 44427.7 26649.2 36649.4 202801 339455 350827 352195 349099 347519 349285 368675 401667 395726 359361 337483 276174 283822 527238 704992 771238 781577 791151 784286 772055 761155 744865 751892 750201 748513 726758 724083 725441 727975 702494 668308 628410 598477 570336 537242 501061 458981 413386 370669 330992 311589 310876 281821 684949 51318.5 19519.2 7759.16 4328.35 3499.54 3249.53 1830.91 2993.32 2966.04 2039.55 1341.57 1069.09 1275.84 2932.2 4605.17 6884.52 8677.31 4367.57 2501.03 9101.9 92107.5 487064 640190 577622 516054 463717 429753 417296 322677 618310 7939.67 3672.07 4801.13 6899.3 9323.74 7288.01 5723.47 2760.85 1442.78 583.437 249.089 121.432 72.4826 46.0805 46.0019 54.5103 96.2918 137.903 226.503 312.471 503.347 943.566 2706.11 9563.33 35712 177267 261764 352019 505938 559944 165233 93808.7 49777.7 16861.3 8237.93 6085.35 5048.74 7605.87 6582.65 8373.16 24858.6 20864.3 109639 89249.1 199332 146828 219414 155845 294951 264281 375427 396882 407817 382879 394751 494109 627219 554825 585756 863840 878611 959121 979958 940614 773670 454564 308006 293812 444060 650940 709817 821473 638521 752488 506576 680730 409000 527992 242551 225549 73182.5 45927.8 13726.3 6899.72 4769.79 6697.51 20900.7 381812 809445 620580 373574 252843 164064 189313 272512 275132 278600 283649 280817 271580 232721 134835 49674.9 14378.9 4956.34 2258.5 1395.05 1082.91 1147.38 1412.98 3239.07 9228.04 24484.2 53532.8 101395 153081 187625 70686.9 251855 461132 129695 66520 151541 118551 161317 236780 286628 408061 379407 325343 115740 4605.22 5156.64 2622.38 4249.67 17100.7 82383.5 197912 297056 350882 364889 456474 536679 524046 456752 453638 319759 123302 455726 100577 25574.5 5121.86 4906.81 59328.1 71461.9 16758.6 6882.99 3189.97 2241.23 1486.95 1122.14 1024.29 969.123 983.144 1002.66 966.369 886.987 807.846 894.762 1559.39 5084.3 24474.4 96094.9 214783 256294 163657 98500.2 56513.2 42895.1 42395.2 34968.3 52647.1 76471.8 42090.7 33387.5 128766 340711 508398 316720 221986 276199 365310 345550 369288 257348 456048 547638 443999 629953 466234 251870 118396 79791.2 84324.2 145129 240353 548230 456080 793320 60438 66204 112095 179436 237826 128162 72153.1 476506 1.18865e+06 1.41575e+06 1.10644e+06 621400 271503 241958 327262 409704 242157 157351 70172.6 10511.8 92.9946 1.70525 0.0369147 0.0056099 0.0326533 0.447606 1.99221 1.25795 1.13762 114125 155776 181005 431631 989826 1.34327e+06 1.33968e+06 1.1334e+06 612503 455945 273032 246472 203559 454632 430868 689743 719570 1.12943e+06 1.2682e+06 1.4891e+06 1.46015e+06 1.2579e+06 991513 727777 422369 198244 94598.9 67842.5 61521.2 47225.9 33070.4 144329 130581 189447 269212 385565 555398 695510 688707 624682 570944 527563 481760 428598 383058 340117 290188 197569 104370 66950.2 55220 52288.9 49014.2 49777.8 50986.1 56557.5 56805.1 54689 53394.2 36395.9 37125.7 245000 370980 372049 359515 347981 338253 336974 345202 386618 424908 393316 396778 365501 358030 662891 786631 679172 676475 743250 758744 733535 691890 655748 632497 605092 586621 593319 605320 626865 634619 626306 603956 586345 569759 546750 519823 482011 442922 400070 354210 295535 252140 335028 342751 786420 58736.1 27871.8 9845.34 11598.6 12676 10641 9048.83 5787.92 3320.26 2915.79 1844.44 1134.48 1075.77 1381.59 3076.58 6107.85 4584.63 2025.11 2270.7 4138.4 43304.1 306989 683866 676731 607421 545140 501270 496814 395577 587731 5189.21 7885.34 23209.1 48830.7 59601.9 60322.4 45009.4 30444.4 16207.7 9140.44 4224 2349.9 1045.81 538.839 321.735 237.617 229.946 263.28 284.482 323.877 346.059 561.776 1349.32 5025.04 23456.7 114102 261641 283555 583360 613323 238993 148940 15541.6 4625.2 4656.31 13683.1 25550.4 32604.3 66704.7 41740.4 123589 95607.8 275431 260663 394699 331149 393029 347130 491072 488345 568264 596565 534714 443303 361971 391482 590221 599608 645689 1.00454e+06 812531 928041 978131 887229 631539 270439 226601 255680 393351 512378 559222 641517 385874 609083 409771 583490 444970 599822 416872 487032 282013 184523 45931.6 28161.6 6802.28 6723.43 14675.6 316348 807456 695529 327170 191607 159602 226160 255347 263387 267502 263776 255994 228962 152212 55631.9 14725.3 4942.2 2327.37 1676.79 1448.81 1562.71 1598.88 2295.65 4363.85 15443.8 60655.5 116620 142153 154836 149418 18189 181773 515371 57285.7 55824.9 136554 91085 140259 189560 243337 288339 268978 146846 50881 12169.8 2808.49 3607.23 5067.09 6024.35 23911.4 129087 257614 322474 286889 331363 534444 589137 480575 441792 261742 84394.2 412988 142199 5020.03 1104.61 3447.11 59062.2 39503.1 10032.6 5070.46 3775.75 3096.28 3048.63 3246.24 3369.87 3800.31 3924.56 3496.56 2740.98 2049.83 1571.36 1299.28 1356.35 2831.45 13715.7 67605.6 214667 348909 245124 130184 87756 73061.3 50466.3 45632.2 66994.5 76687.2 14551.9 13547.7 92925.8 309322 486720 289593 197907 260974 286550 354230 370424 517518 558893 748382 646809 836160 658465 369981 136119 96056.9 87390.7 120221 241082 485463 661175 618926 67825.3 85248.1 148864 242272 337840 168816 40304.5 183178 1.18694e+06 1.49147e+06 1.30952e+06 1.01294e+06 453447 596451 366567 146404 95405.3 21094.3 2158 71.4327 14.2971 0.252917 0.00321643 0.00093223 0.0195491 0.930034 17.18 0.743307 0.0982211 66004.5 206873 189169 502896 1.10223e+06 1.25521e+06 1.14939e+06 758383 630615 581792 583384 544276 580200 577357 842709 681820 795915 682075 1.00639e+06 1.15598e+06 1.34322e+06 1.24908e+06 1.13414e+06 971546 712751 400594 177647 99890.1 79299.4 75903 55513.2 202724 202154 292815 429169 619432 768311 775395 714716 700023 718188 739198 749774 768566 805385 800340 706496 500289 250372 95702.3 58231.1 52591.1 52098.3 51139.4 54459.3 63721.1 67859.2 60650.7 53467.8 46103.8 42611.7 282661 400612 384899 364133 342316 324163 314216 326253 364875 437960 428277 429158 442798 430570 787162 817301 523212 438708 584533 740527 719731 662384 635504 597109 568973 552798 545359 563120 579307 584329 579253 568439 554340 546376 522962 493450 454208 412054 365083 273292 131140 164355 334185 411967 881355 133142 105460 48358.4 39499.7 61210 63237.6 46906.4 27422.3 14956 7955.03 4442.29 2784.32 2166.27 3418.63 7699.91 9572.69 8641.73 8385.42 35342.5 85815 256384 448425 697454 760452 697439 625278 573779 562748 446676 496254 9338.65 31810.9 76714.3 99590.6 100252 89057.6 75003.4 58962.7 50539 43232 39040.5 34019.1 27153 16154.7 8333.54 3601.03 1985.93 1035.89 761.78 507.371 434.188 449.06 962.949 4083.26 21578.1 151876 239427 213150 642200 673816 323700 37886.9 4166.43 3988.26 36819 102229 164989 215264 276452 247809 423887 350139 545555 499033 572059 521363 601941 574370 674751 704241 734135 697096 609303 444657 300069 333232 531456 626330 682476 1.07512e+06 609944 870367 929478 850791 423448 200426 156019 203795 279176 400038 392640 278909 243388 371394 189326 445135 294411 452746 248075 491437 333214 244350 88177 26820.8 11907.6 6840.07 13868.4 269603 739731 767871 251311 146149 173998 223981 262422 249220 246737 237207 224331 188938 114241 41409.1 12137.9 4822.44 3461.73 3280.55 3688.69 4239.89 4851.73 7472.71 4542.53 9937.41 51253.8 135900 151399 146800 117435 5617.96 127207 532603 29336.1 60893.9 97355.1 104053 158110 172529 246804 190090 174092 109015 133865 43387.9 4228.44 4822.68 6501.45 7032.86 6715.35 49954 210022 292163 211993 151528 253197 567542 545337 481034 213814 52685.2 408730 202596 760.85 353.716 2965.4 49195.1 26162.8 7298.7 4826.59 4316.78 5495.79 6842.47 9966.26 15130.9 18500.1 18832.4 14201.7 8751.74 5167.42 3359.46 2449.96 2025.51 2247.56 6476.36 38729.4 117525 308072 374612 190341 121344 118906 64803.9 61670.4 84701 73570.8 11289.5 4265.88 29885.5 239765 446141 228822 168677 254934 337210 339464 502092 430128 626914 586764 783249 886528 897184 691277 308481 127903 110234 248146 323154 398852 685444 558790 90046.5 118273 193987 316198 473268 348508 93367.2 69429.2 804037 1.50817e+06 1.43206e+06 1.22969e+06 561051 673298 511738 379560 56270.7 5459.91 687.02 59.297 11.7965 0.157405 0.001692 0.000494972 0.00953768 0.376829 13.4042 0.324314 0.00728426 151721 267501 155306 473015 1.01238e+06 989091 845006 626821 619277 800819 866637 915900 966263 953071 791548 850300 563781 613684 509441 911289 1.07006e+06 1.17798e+06 1.21714e+06 1.26186e+06 1.08705e+06 753408 384121 187672 117502 104601 94713.1 258315 271540 420785 626554 795204 823516 778909 779856 843900 968933 1.08896e+06 1.17779e+06 1.2762e+06 1.36716e+06 1.3927e+06 1.28024e+06 1.02239e+06 615293 223856 72138.4 52898.7 50366.8 51774.2 53897.9 64942.8 74292.3 64376.5 57689.4 49973.3 45311.9 321119 416122 389268 360816 334851 309117 298213 307210 351784 431452 460940 455193 516118 497788 851339 856260 440441 257816 369098 710467 721932 693860 672286 650046 635581 617806 611394 599725 597469 594792 579780 568651 548085 517050 485988 453082 414064 373210 234668 103909 181745 324147 431596 501818 992878 302029 295776 246646 122333 84769.6 96615 80568.7 53382.8 30289.2 16128 8762 5360.91 4136.01 6861.83 15472.4 79976.5 257291 274082 218286 149914 123652 212717 476590 732749 769321 691543 637678 585036 475981 398530 27711 78531.7 94125 82763.8 67841.4 52731.1 42402.9 39690.3 42785 59794.9 76685.3 109882 128744 145014 121078 57764.9 19849.2 5754.65 2100.31 792.836 419.191 386.542 964.491 4792.72 31325.8 202564 182147 214760 695114 768969 242565 7169.79 2246.29 33667.2 143466 265176 289647 334196 447006 426441 531292 499824 597895 533264 619610 596301 638480 626589 653279 645375 647994 600437 481608 339064 236961 297030 501181 636196 715528 939061 298667 701975 943771 758373 504210 301879 262819 249234 314295 321029 206593 176064 130966 80901.8 91030 236084 118316 237674 104328 141515 133489 146596 64068.7 19539.9 11723.8 7994.86 16866.2 393252 643998 840440 169434 123437 169201 273375 307024 228731 222557 210655 198669 174993 132043 69535.2 26816.9 11370 8708.61 9336.61 9461.05 11393.2 11305.2 9764.86 9249.33 6453.58 18545.7 95422.9 152364 136960 59676.1 725.529 73662.4 624730 16454 41212.6 65666.9 58551.5 106206 184215 248820 226298 154923 317298 355220 216101 131483 9108.47 7229.44 8782.16 7035.58 8141.92 142495 262208 172653 55415.6 59476.1 200813 594593 508439 250926 40639.1 514344 213718 140.615 111.141 1593.49 33397.5 21045.4 6752.57 4728.62 5312.73 8126.71 15119 29186.8 57362.3 92836.8 88574.4 53452.6 26404.9 12613.6 6941.26 4633.27 3669.37 3298.83 4547.17 20345.9 90662.2 168606 398160 271180 165330 188219 111618 89455.8 103847 90333.5 23019.5 3449.26 3751.89 53769 257114 276558 168343 114705 135978 208436 229126 286788 531554 551768 789188 943114 994180 839588 598398 363587 303651 245383 228223 100047 56004.5 889654 141662 151827 260378 396339 594177 685655 401333 122964 386003 1.26894e+06 1.45664e+06 1.25115e+06 862279 991907 598382 315358 104778 11186 938.596 83.538 19.7533 0.34043 0.00303667 0.000323531 0.00557135 0.0669532 0.785635 0.0862833 0.00849845 204851 375988 73583.7 422059 794136 709818 506391 394715 612085 892633 996151 1.01419e+06 1.00565e+06 1.04784e+06 1.09066e+06 608837 542762 349486 446680 504377 903448 1.08485e+06 1.35323e+06 1.21176e+06 1.24212e+06 1.09504e+06 729165 375396 206281 163806 177644 334330 315807 581630 806180 851867 816744 805340 881634 1.05977e+06 1.2367e+06 1.33747e+06 1.38382e+06 1.43575e+06 1.52816e+06 1.46327e+06 1.49277e+06 1.4482e+06 1.1067e+06 529888 145927 54176.5 48193.7 48146.9 52111 62038.4 76571.4 62591 57464.4 55230.4 55268.3 350501 415743 384007 358202 332481 315568 302075 305191 340251 427797 476751 485201 568541 568695 899315 887484 418320 186125 250363 520452 753593 731185 719872 727774 723724 723321 715317 707789 680528 644136 607731 561617 521543 489763 449997 424158 367349 193665 153962 367324 522250 606407 611877 743469 1.02756e+06 528416 486861 430153 370632 222440 148472 73094.5 47312.4 27728 13671.9 6845.3 4076.19 3627.26 23532.2 276701 509132 229558 86570.1 58746.6 57535.1 71151.2 78632.3 200666 515723 791755 753955 700015 468975 495729 401795 77924 97541.1 77250.8 64019.8 45674.4 21040.6 14563.8 14174.8 18920 30354.1 43430.3 64795.3 79813.4 96812.4 110567 78530.5 34392.8 8833.56 2219.08 597.897 322.571 360.49 1470.26 8669.08 66632.5 162619 251773 392641 772501 908374 21293.2 1379.87 5209.35 54170.8 155679 175915 212225 283335 428385 368520 494717 445628 528492 513157 523015 516874 536100 486882 466988 348561 345240 303791 258131 193654 197321 302418 568737 643485 749155 857837 168175 681126 817943 845124 598854 382778 273749 297909 238379 168835 174930 105548 23207.8 31783.9 42089.8 32334.4 84905.5 133219 52686.6 36506.4 24954.7 24657.8 17502.4 13048.9 9971.62 10272.9 61806.9 505576 606143 889546 108156 107767 188316 324451 279581 206275 201770 192265 180247 166429 146475 116251 73510.4 36100 22227 20728.6 22270.1 21855.3 17315.8 14373.4 11121.1 7334.44 7646.64 34963.7 111511 95371.2 9884.28 71.6182 43924.4 598340 29519.2 37147.3 59205.7 276097 302266 287208 338720 294164 344225 498413 503906 546801 411776 46048.3 10050 9918.12 8932.1 6568.97 69416.2 198751 141496 21572.7 9737.05 17316.1 195396 572501 304479 33183.6 698742 65219.4 25.6051 49.0734 939.588 27264.5 19723.6 7146.95 5033.84 5823.79 10248.8 21732.1 54478.9 120753 201179 197291 118261 50926.9 23803.9 12811.1 8412.43 6587.27 5618.63 5730.35 12905.9 76293.7 155378 338811 327736 240699 326948 261391 135117 129107 130204 79575.7 12707.6 2394.36 3028.1 39120.3 80923.3 131204 37860.1 85233.2 55884.8 47279.3 49032.8 219625 267588 858441 1.03781e+06 1.02261e+06 972359 795562 558147 366189 529207 357297 37033.6 7756.57 104263 310188 34479.5 369700 501719 672666 859166 945684 587234 417459 900977 1.29067e+06 1.29726e+06 974225 986640 851021 630117 213303 31762.9 1768.3 284.011 47.9583 1.73237 0.00943258 0.00119377 0.00351459 0.0399454 0.152115 0.109065 0.0540747 415552 305620 13623.9 376695 775457 580982 570733 479683 757849 922398 1.02006e+06 1.01729e+06 972774 1.12346e+06 956533 713885 351365 325567 273163 549264 730857 1.06344e+06 453968 206962 274040 599134 828848 619210 341671 263633 301789 437732 325532 774550 907572 878256 837876 846932 957005 1.20129e+06 1.32023e+06 1.29892e+06 1.30253e+06 1.3572e+06 1.36803e+06 1.44919e+06 1.49361e+06 1.43904e+06 1.45447e+06 952518 345250 78995.9 45808.6 44440.5 46998.2 55659.4 75573.5 68498.8 68622 71223.9 109964 373674 398316 372979 352155 345632 341978 344156 347402 376202 441035 504145 521040 603402 720840 782517 835456 754870 797076 445189 188418 115198 362556 659182 741512 767277 758277 766976 770980 756363 738755 696688 651197 604571 560064 514073 478692 437158 280724 159896 235765 543189 656824 517678 418830 441879 615199 1.08012e+06 1.13643e+06 592722 613728 610998 492561 456803 377037 215438 134757 48571 12000.5 5225.93 2706.14 3836.72 28857.5 146761 183256 78799.5 44001.8 24106.2 16131.7 21495.9 50859 75878.2 115884 357024 773701 798365 747853 155360 13526.5 196416 262041 87004.2 110359 87732.2 54955.7 33128.1 22259.3 7308.97 4173.58 3960.19 5623.67 8939.96 12099.6 14886.8 13239.4 11768.3 10429 8329.7 4552.96 1730.92 559.049 259.089 243.717 589.725 2214.05 16859.8 121951 289673 506399 614954 863049 1.11526e+06 1.07469e+06 5871.07 667.377 276.174 1122.53 5594.37 22412.4 47805.3 50321.1 77671.5 159521 177731 378882 350950 501911 377045 348696 142598 107407 54560.1 74361.7 62595.3 82661.8 114065 121645 156764 234507 421847 627480 600491 405815 430838 450473 5713.45 33104 398296 832032 873909 917580 947209 724060 419421 204640 193567 126192 33473 24301.7 12157.7 3134.97 12314 38046.2 42172.7 60296.2 47305.8 17446.1 9407.3 9380.43 9462.48 14998.2 46723 268629 565939 512202 747023 792245 102849 64697 87749.5 187327 255788 203671 194388 195931 191329 183061 170134 157467 142301 122077 89324.1 54629.5 37515.1 38118.2 29845.6 20852.6 14037.5 11255.5 8625.68 6396.33 10422.3 42479.7 23216.8 169.635 5.41984 142.02 461583 881584 156115 31630.8 41807.6 147830 348835 454645 472588 417516 490796 471198 513024 594428 538319 449477 129213 14984.5 12964.2 11479.2 6575.57 24145.1 152193 128934 9942.86 1988.37 1659.98 6812.98 215828 376635 63980.8 48578 635988 738408 17295.3 72.0909 21.2352 467.145 16779.3 25777.2 8603.55 5826.72 6489.99 9791.82 21499.6 46354.9 97162.5 146851 153150 99960.2 54451.9 29031.2 18084.6 12901.1 10975.9 10089.2 9841 13658.7 59184.1 182088 296044 408680 409878 320818 525173 378135 20503.1 37687.2 102591 139619 144219 67189.9 16632 2397.6 1197.09 4526.38 6940.62 7115.15 10971.1 9538.8 13801.2 17872.4 25682.9 125903 860066 1.10746e+06 1.07681e+06 1.02055e+06 945184 788461 694883 598254 359725 30997.2 152.71 1.34245 2233.51 1787.79 0.0181921 1400.07 381865 693855 774720 881640 1.07649e+06 1.21598e+06 940309 913807 1.08149e+06 1.21795e+06 940825 1.06755e+06 826599 596549 289612 29629.7 3563.25 3530.35 226.696 9.78053 0.0965878 0.00241107 0.0034224 0.0369621 0.127668 0.199541 8.12717 44732.7 900225 435.887 0.257681 4137.05 280352 642958 634257 590848 480621 769707 992830 1.01619e+06 902207 915988 1.08865e+06 907994 731247 313280 295685 320878 423954 784374 433566 73948.4 46150.1 76542.3 181647 561325 771318 528328 425260 1.04214e+06 957631 841470 2478.25 290952 960147 952590 870913 833859 880708 1.06296e+06 1.26636e+06 1.30613e+06 1.1961e+06 1.06981e+06 997136 1.08701e+06 1.21228e+06 1.44986e+06 1.34838e+06 1.49505e+06 1.30023e+06 672094 166324 53274.2 41046.6 42493.9 46729 70683.5 79905.5 108484 168300 203073 72364.6 47909 390325 376542 354363 351996 357188 377198 384739 400091 418166 467832 524365 520352 574094 749906 674517 628445 679307 786207 610638 211832 93466.5 159486 343150 576310 635233 685381 644825 598645 557668 463665 447378 422212 402967 401997 392635 311497 184505 123964 136359 369360 536380 459305 310536 238015 326061 486793 449388 604171 371002 498318 469076 420975 470604 327333 224068 111120 40431.1 16584.4 8648.81 11339.3 30421.1 51575 69699.3 40594.3 29334.4 18151 9440.16 5162.94 5483.17 14627.8 62635 134005 421869 791163 810127 562717 24120 6261.24 61610.8 129234 139642 103911 64113.9 36212 18244.1 7569.47 2944.26 1370.97 1121.23 1465.24 2227.35 3166.35 3204.14 2292.92 1376.06 833.384 782.916 351.54 211.27 160.209 170.346 310.561 666.232 7378.47 85821.4 392822 664499 672058 587112 380481 128333 11173.9 663.38 108.819 46.44 53.7405 100.845 208.836 379.068 603.127 1014.26 1563.18 2137.18 2655.74 2286.48 2891.43 1349.7 2372.3 1726.16 5901.48 7038.31 17996.1 20712.5 51567.3 73801.8 139026 248609 400434 588060 630390 463874 225611 105490 6944.28 1596.77 45457.5 670172 1.00788e+06 1.01429e+06 973941 939268 781138 394156 233905 94096.4 25665.1 26848.5 12145.7 4331.31 3985.9 3458.63 2892.86 14480.9 35594.3 37139.2 40106.4 36677.3 39582.6 66873.3 124660 269197 512711 496659 253867 334897 131317 45214.1 47281.8 75572.7 132449 144751 175832 198289 211369 216564 206835 190154 171087 158018 150004 137272 103003 74541.4 57658.5 47330.3 28243.7 15935.8 9405.47 7954.85 6973.29 5250.47 9769.32 11585.7 143.351 2.25513 5.71557 434.605 204711 227587 155149 71773.5 357313 501939 537202 583869 578925 529658 612364 582672 536054 558130 358870 59803.1 21958.3 19617 15544.3 8059.84 30958.8 92367 94468.2 3738.58 724.189 219.253 499.607 5771.39 112962 151062 20425.3 20851.3 145871 56815.3 4337.9 140.562 260.827 10694.7 31818.6 16406.9 7599.64 6901.87 9567.65 14984 26430.8 44727.5 57450.9 57050.8 46360.1 33163.8 24391.6 19486.4 17146.9 16145.9 16893 17658.5 19463.8 52534.5 221286 287179 411106 379205 163371 16580.3 10547.9 5205.25 30975.5 81529.8 104955 119116 119583 94992.7 21766.2 1501.76 463.912 139.123 156.243 145.961 239.405 255.889 388.702 3106.38 36887.8 584209 998294 1.10153e+06 1.05407e+06 982116 925765 778904 735019 328909 41348.6 5.29502 0.00194933 0.000721098 0.000366106 0.093803 457.601 242602 823018 964179 955010 1.04769e+06 1.22568e+06 1.37389e+06 1.31177e+06 1.20604e+06 1.16343e+06 955153 1.05718e+06 839713 718390 359448 47956.4 16089.2 25419.7 5524.44 81.1151 2.36535 0.0254421 0.00227777 0.169151 7.91773 164.581 4636.21 57177.4 790.512 0.261933 0.0680845 5787.04 314222 711412 833331 743046 723663 747476 950717 1.00245e+06 892233 1.00077e+06 1.08071e+06 902203 601856 382593 374995 383806 584196 809943 113730 17827.5 42634 62340.4 223239 463252 776110 668099 580869 1.06363e+06 684410 33563.6 767.976 364941 1.09788e+06 956454 853872 815955 867978 1.00532e+06 1.21892e+06 1.24513e+06 1.12243e+06 915617 796694 951656 1.16138e+06 1.42259e+06 1.35827e+06 1.42667e+06 1.43058e+06 1.04687e+06 348252 86239.7 43675.3 38767.3 39859.2 50340.6 64708.3 85937.2 114705 105513 39643.4 47140.9 389848 346536 337868 349378 367691 392142 416451 430253 449880 487850 507016 509708 528832 613770 575547 539828 613302 773070 764725 368271 101260 87018 132476 178923 209431 249684 210384 264040 230251 247885 222217 196024 194900 158275 110948 78229.3 58019.7 92966.5 243753 383336 433340 322587 149157 102990 56469 59168.5 47213.3 35161.8 45674.4 53410.3 104517 256392 329721 404360 316102 216376 130386 77031.4 69801 53682.4 53913.4 31231.1 29861.4 30036.8 30644 18359.5 10817.9 4989.45 2283.04 2593.55 21870 150493 436144 658047 545124 75888.8 6661.68 17525.7 81465.2 149703 125046 81165.1 53040.7 30441.1 14939.7 5718.38 1950.28 709.31 388.781 426.57 635.917 881.277 988.133 767.685 467.636 257.052 155.536 194.549 244.655 147.456 229.98 445.892 2137.44 14162.3 146318 523496 699416 713136 661590 502029 235830 16342.3 350.2 33.2473 9.34295 7.69544 10.3305 17.2731 23.2996 31.5315 40.4875 46.6858 68.2988 97.7375 140.676 234.299 330.246 393.537 514.364 695.305 902.426 1124.24 5214.98 15336.2 61312.4 165754 303679 451320 502556 385383 228697 133053 35183.9 3042.83 2575.95 148698 721182 936384 886660 875653 885720 781007 553632 130964 21278.2 25033 15129.1 4885.32 4893.38 4348.09 3631.66 3444.81 3464.21 3492.9 11695.7 34826.6 46190.6 72187.1 131339 234436 374353 411264 304686 154122 220942 50272.5 29798.5 41861.8 68797.3 102273 145040 185978 222789 255522 268387 254618 223703 204024 196253 185231 177791 156629 137206 95454.1 78196.8 49047.9 25952.6 11356.7 6753.11 5877.17 5124.46 3295.96 3241.42 736.303 12.6778 3.19422 70.8064 24078.1 223419 225070 213481 124997 549994 549559 580968 601537 630169 562226 591525 537426 356253 235696 30288.5 30039.1 28354.1 16891.5 12906.1 55133.8 129067 136800 17068 537.586 82.4942 80.5058 599.252 11376.5 60019.5 37317 40348.7 86559 86905.6 10043.4 539.189 166.923 8544.45 40678.8 31370.1 16427.7 9380.73 8223.2 9650.24 12535.3 16143.2 19039.8 20180.4 18575.6 17921.3 18405.2 18912.3 21008.4 22619.5 24966.7 30007.6 32037.1 53308.8 240908 319991 380997 428022 342080 192175 44812.6 33812.1 97608.9 87193.6 54877.6 26734.7 36374.4 57346.8 55677.8 21985.2 6528.88 244.546 150.782 7.14699 7.54073 11.0196 18.0802 38.6581 3169.52 211118 864785 1.0726e+06 1.07359e+06 1.02561e+06 998580 947025 685806 266269 75673.1 62.7919 0.00409825 0.00147658 0.0536931 1.18976 509.36 40711.6 533721 1.15642e+06 1.11177e+06 1.07925e+06 1.12467e+06 1.22193e+06 1.29858e+06 1.26018e+06 1.12485e+06 1.0346e+06 919164 719060 688499 423219 52961.8 22083.3 74046.6 60415.3 1406.02 52.1768 1.32387 0.0126933 0.0375786 14.0084 510.077 1678.71 300.959 1.73361 0.179671 19.8683 46417.5 658826 951626 955876 1.07259e+06 915290 990262 1.01401e+06 955809 1.06647e+06 1.163e+06 1.02112e+06 807839 602958 533840 480145 553293 798347 878096 56642.9 34517.8 58106.5 117112 278850 615423 890663 817695 847237 923910 71094.9 5133.73 3819.11 777512 1.12321e+06 923703 823578 789392 863480 961221 1.20107e+06 1.23106e+06 1.19634e+06 1.04847e+06 1.03595e+06 1.17897e+06 1.30421e+06 1.44384e+06 1.49071e+06 1.35696e+06 1.47262e+06 1.34985e+06 606954 161349 55621.8 38930.5 37020.2 39498.8 51671.4 59855 73143.4 65419.6 35576.4 43933.4 386234 319494 323457 344953 363641 395017 414996 441018 456049 488613 501446 517144 526510 560376 512302 529216 611813 730919 857253 692424 275878 119314 77838.8 85879.2 115377 150902 241663 354467 409595 418960 299560 212513 142370 90957.1 65059.1 55080.9 71645.6 122350 255314 397002 432419 287583 200801 60401.4 24041.8 4726.51 3620.66 5106.34 6111.17 6950.07 7144.95 5676.01 73283.8 254581 393512 406251 337244 248841 160008 107984 43585.8 26712.9 32887 62995.9 62384.4 60818.4 34402.7 14848.6 6766.12 2409.53 1775.54 20815.9 91432.4 132796 59762.8 12498.4 8538.32 52203.7 103133 123148 98683 74819.1 52014.9 33180.4 17556.2 7295.95 2483.96 759.326 269.448 170.892 194.425 295.118 402.018 423.312 351.642 230.272 169.33 236.836 234.341 383.375 570.519 857.935 2351.33 13953.8 98251.5 413152 691134 760309 754972 702276 504531 111003 937.239 32.6745 4.76995 2.22858 1.87106 2.75836 4.11093 5.39152 8.36956 10.1755 17.0829 27.7442 43.1905 69.8101 137.559 257.399 863.29 2066.59 4756.11 6876.84 11093.8 13939.5 19347.1 80614.8 189024 266618 268567 222204 153201 99961 17827.2 3429.03 23301.8 434434 973532 915162 750340 664486 741909 848440 593913 183808 72267.9 24735.5 6975.54 5173.32 4581.92 4306.65 3774.62 3168.67 2838.37 2938.57 3601.67 4373.81 9718.85 25305.9 50982.9 92414.7 130187 133224 118641 108019 46997.3 29339.3 26398.8 45696.7 76543 114386 155920 204952 265818 314353 329637 314620 278153 232499 210806 216281 225266 204260 203753 166049 128810 92753.2 55298.6 25369.1 8969.73 5543.5 4407.56 2982.72 1438.14 678.954 74.7336 14.0821 205.973 7831.7 209802 273245 260114 140223 117774 490481 531072 631534 572628 626669 478381 413248 175776 36691.4 36736.9 38893.4 28528.1 17182.7 21926.1 90677.5 99610 120442 57362.1 1127.01 92.4432 37.6887 46.1846 1276.68 16959.6 56145.5 60895.6 92060.2 38266 6198.68 1163.67 253.752 9125.29 49640.1 53019.8 30813.8 17670.6 10943.9 8399.64 8027.31 8655.71 9332.76 9824.5 11300.8 12805.7 16101.7 20779.2 25071 37975.2 34798.5 45505 51757.2 60876.5 223220 381627 350063 418608 430702 430658 279293 153980 162001 73261 23979 6760.19 3017.89 4803.98 16111.5 22907.8 28440 9340.92 2956.65 175.988 80.5185 36.4356 38.1015 61.0775 4164.54 240801 914749 1.10884e+06 1.07608e+06 1.03718e+06 998452 957822 587406 91953.1 101837 2072.15 0.146106 1.00153 1.14625 73.4106 1036.15 19562.8 188137 929146 1.29316e+06 1.21195e+06 1.13532e+06 1.10298e+06 1.06667e+06 1.00659e+06 957929 858635 711576 755456 683373 222131 35823.2 47092.5 202391 239613 47546.1 536.672 73.2918 2.75458 0.0418669 0.0104308 0.244808 1.09089 1.44617 1.12413 26.3779 3910.02 321250 879349 1.10037e+06 1.12558e+06 1.18718e+06 1.17397e+06 1.16276e+06 1.1651e+06 1.24342e+06 1.17284e+06 1.01614e+06 913617 802115 684840 643893 683620 785526 1.00474e+06 910167 98961.7 85013.6 121733 234422 581536 1.01432e+06 1.09787e+06 1.08503e+06 949958 108570 21640 21717.2 185341 1.23101e+06 1.05838e+06 875665 793199 776664 813320 873679 1.0481e+06 1.13729e+06 1.28814e+06 1.25493e+06 1.24278e+06 1.36835e+06 1.43064e+06 1.58793e+06 1.41988e+06 1.45548e+06 1.52278e+06 1.50326e+06 782771 228269 65575.9 39261.6 36646.8 35462.6 41888.2 51605.2 54755 50935.7 33478.3 40593.1 373485 289268 308974 331971 360289 375169 402874 416340 441438 455530 482206 473270 474201 499892 485252 536425 589629 661674 750464 880577 870162 380333 163000 121330 169080 265367 408782 490167 530809 463346 321850 196004 98211.7 57372 50549.1 55225.8 95051.5 195230 310178 400180 452241 510805 377876 303768 84468.7 13594.5 5411.38 5475.1 6250.2 7648.33 8096.05 7895.51 5478.33 10429 119327 304766 361273 330303 226637 108061 44225.3 34107.3 44815.3 93193 128627 152373 115637 113684 99351.9 43773.5 13274.8 6287.11 10263.8 14624.1 9749.51 15445.9 54219.6 103302 116753 118562 110787 97204.7 82315.1 60709.9 37339.2 16722.1 5779.05 1624.6 493.12 165.76 98.0031 105.137 150.673 198.239 212.386 209.796 199.424 207.761 285.881 518.745 449.374 482.44 1602.3 6373.17 38836.1 160782 396943 606135 685436 697811 681527 401744 13429.7 181.182 8.11095 1.95043 0.991246 0.858634 1.1706 1.51101 1.92959 2.57793 3.62413 6.18395 14.1997 38.16 259.196 1278.28 4700.23 9006.59 14365.1 16773.6 20852.5 25083.7 35269.6 76020.4 147002 181615 200814 199199 174287 92841 23334.5 22312.6 135202 640901 948343 801639 630667 517760 556399 625463 447967 462571 98643.3 33133.1 12667.5 5325.55 3585.01 3552.81 3348.12 2948.46 2477.61 2319.57 2244 2549.53 3186.62 4346.67 6404.13 9622.08 13857.6 18311.2 22428.7 23194.9 23383 23828.6 33711.5 62301 99390.8 145489 199992 251716 295908 323537 335982 320181 285558 248150 215555 206516 247004 247551 259868 230905 219371 164169 121377 68823.2 33343.9 9808.33 15624.6 5515 1680.04 605.274 151.584 114.081 20122.9 389099 468651 450296 287700 162408 100965 95532.1 293911 427487 541359 405438 422307 134655 45386.9 47009.9 38880.4 30749.1 18964.3 21244.7 49433.8 154604 161009 229185 164538 23460.3 414.392 65.6341 26.2211 198.544 1857.9 22259.5 40599.6 22069.9 6074.11 2558.68 1462.31 836.519 13435.5 56960.3 72734.3 51722.7 27762.4 15491.7 9813.41 7956.37 12004.5 7369.37 8149.94 9804.01 13845.2 18401.2 24385.8 67591.5 73411.6 45557.8 62294.9 71554.7 68076 183111 420385 359631 374273 412508 392583 296180 252243 247913 143997 27405.6 5289.05 1954.49 362.273 677.137 935.342 1916.06 1753.57 1643.37 1374.43 740.396 592.685 684.227 524.093 40788.6 397663 1.00981e+06 1.11809e+06 1.07596e+06 1.02383e+06 1.00407e+06 954175 333877 23118 90167.3 59485.8 304.743 48.3598 843.443 9879.96 24460.8 102513 324684 770231 1.18436e+06 1.31816e+06 1.25831e+06 1.15181e+06 1.02445e+06 952508 873874 753935 785756 719811 416600 106292 48558.3 80095 331773 374196 234942 30357.8 785.788 229.059 44.1985 6.08541 1.0514 1.66566 15.8845 291.548 10018.2 294780 1.04458e+06 1.23684e+06 1.23547e+06 1.20503e+06 1.20234e+06 1.20718e+06 1.20205e+06 1.20647e+06 1.11995e+06 1.02591e+06 994988 882288 787554 763475 842985 850345 912526 1.09203e+06 1.04449e+06 189523 147185 320915 511377 846405 1.1288e+06 1.13439e+06 717709 130812 44717.6 80824.3 386665 1.21509e+06 1.1371e+06 957088 821808 760631 779090 771793 820780 810735 799476 904253 837979 1.08837e+06 1.06472e+06 1.38266e+06 1.29661e+06 1.41327e+06 1.41506e+06 1.60616e+06 1.52289e+06 833891 255269 70815.4 39754.6 36523.9 35229.6 35974.4 43028.6 46614.8 43413.6 30914 38814.5 357309 267372 292137 316978 342904 362430 371453 390430 402870 415626 422206 428158 426231 454644 463151 506335 542382 585085 628053 693333 805527 933478 557110 232534 214862 252328 363887 381561 494171 415185 471881 284813 269055 172805 137982 126090 160645 220155 316424 395518 487597 510819 602105 563359 526007 357199 74237.2 12249.6 9583.67 9047.09 9708.29 9831.18 8217.13 5461.65 3721.05 8494.87 83759.7 119085 125538 75097.3 37988.7 42529.6 55047.4 98695.1 109365 160874 137250 162843 187648 392324 455318 274033 116012 73151.1 90036.7 128985 165722 189886 186400 191746 180863 168409 149542 139381 105118 62208.2 24907.2 7455.09 1959.7 549.874 172.251 82.4067 65.0417 66.3395 77.1845 92.0735 105.578 128.508 169.258 232.485 331.502 631.647 2185.3 6729.15 31426.7 90118.6 213209 373952 512281 585826 629307 648292 311187 4729.32 99.56 7.26153 1.85873 0.741904 0.579254 0.546748 0.667105 0.910653 1.77593 4.29251 27.901 181.293 1404.56 4162.46 7690.24 9445.57 10798.4 10692.1 11458.8 11204.9 11848.8 23419 59211.9 113115 154480 188384 176488 114687 74609.1 106279 281586 622760 824793 747002 645543 583183 609823 453392 512467 472757 240478 101134 33794.2 8820.84 3427.84 2228.33 2050.99 1898.19 1718 1391.73 1337.98 1401.67 1637.59 2125.17 2910.49 4101.65 5810.9 8232 11607.3 16454.3 23681.1 36357.2 67046.7 121204 171276 214163 238629 245237 247624 245898 232744 217170 205383 194314 180259 174535 204095 245347 305573 257961 322008 285754 279954 375136 156977 109156 67851.1 48827 20376 4487.17 3783.62 69434.5 520350 630947 622841 544542 413428 241258 165930 145164 132207 174922 207249 212475 97002.7 78497.8 49687.1 32522.7 18027.2 16766.6 17938.8 43599.5 105458 220121 219231 239340 239647 116537 10519.5 696.971 138.14 99.5 205.65 1783.75 2484.85 2130.42 1963.43 3032.84 3495.37 3406.78 9713.19 31233.9 54084.7 55915.3 39472.9 23916.5 15383.5 15327.4 29552.9 21652.7 12337.2 13843.8 16472.2 56550 92698.4 161451 121618 57225.2 75378.9 80473.7 70145 134242 360250 414668 339534 326828 328422 341548 380054 397928 369165 211795 52691.6 10714.4 2148.88 569.5 79.0879 67.3392 39.2273 43.6625 58.4961 77.2575 113.13 203.367 349.941 10252.5 266026 863321 1.01105e+06 1.03243e+06 1.01269e+06 999494 857949 139690 20695 56912.8 292789 71088.5 76613.9 467353 878019 1.10843e+06 1.16473e+06 1.20018e+06 1.23231e+06 1.25189e+06 1.22656e+06 1.19985e+06 1.0625e+06 1.02235e+06 921538 731589 794237 582572 279801 175398 99647.9 55575.2 147703 426445 489474 317832 122261 30620.8 3585.18 2769.46 2750.14 5326.44 17261.6 69002.8 299991 776817 1.25267e+06 1.33469e+06 1.2855e+06 1.1964e+06 1.13462e+06 1.11646e+06 1.10719e+06 1.11093e+06 1.05255e+06 1.00349e+06 958246 821916 770496 849320 952761 933930 906819 895493 1.00734e+06 1.24109e+06 361329 248279 417145 658329 789738 759629 499303 177046 52909.3 57095.6 202711 936934 1.29538e+06 1.01687e+06 877224 791178 757264 804805 799040 815691 573184 559843 342158 350567 330139 653251 685039 1.13532e+06 1.30963e+06 1.57894e+06 1.7321e+06 1.44504e+06 691262 188504 46796.3 37534.9 36118.4 35107.6 34505.6 34567.2 38506 34714.4 27674 36960.2 320878 254910 272839 296657 319684 336556 346881 359852 371314 385592 395820 414467 422126 452639 468773 486951 508158 528305 553872 578497 602153 686209 841738 770174 359229 228251 230032 232446 294076 250663 335861 229383 323634 293882 321393 300144 291251 330998 389752 471001 491108 545362 527167 530147 498035 526762 504587 387569 44557.4 22366.6 17605 16203.3 13642.8 10477.6 6768.73 5278.29 5758.59 8791.95 14879.9 23805.6 34129.3 43608.1 52328.1 61777.1 72651.5 95049.5 127547 183993 253869 324949 374659 562473 616613 612755 587894 548211 426067 371217 341040 333332 290986 236708 170877 161006 234720 198856 132740 62369.9 19730.9 4898.92 1228.07 351.399 128.899 58.5149 43.343 35.3124 42.5878 50.8347 97.1749 356.608 730.416 1903.03 5872.09 15989.2 39385.8 95150 178642 294099 387447 468545 536393 592216 642642 343906 7136.43 261.642 34.3401 8.46091 3.41659 2.36993 2.60353 4.95508 14.4143 62.7991 354.633 1302.14 3531.96 5653.3 7409.03 8097.99 8619.85 7772.72 8300.87 7279.76 7895.44 8307.5 21982.2 44379.5 88208.2 126997 181342 232874 290166 376511 497029 572171 622066 541897 512707 319492 291646 259289 400146 542710 466457 243429 123457 35307.8 8463.67 3068.71 1605.06 1186.57 939.215 841.69 799.378 853.22 1045.92 1431.07 2112.36 3134.84 5003.72 8223.41 14063 25460.4 47933.3 91189.5 162887 237739 281353 279312 259100 220667 176930 138438 117030 108786 109503 114309 123859 131984 158366 193672 370675 369369 493792 499978 535154 615474 540630 515855 330982 231382 193052 189277 255055 380483 466857 482679 495200 447828 384764 299181 223896 192094 213411 181394 132176 38870 32703.5 9559.95 6668.7 9356.73 11117 26777.9 42475 114486 199452 276471 272215 270510 333589 268887 141053 30931.6 3930.48 1189.77 870.761 1050.97 1698.6 3103.78 5636.85 10738.9 17529.1 24949.4 26130.7 19052.8 8468.99 6399.72 7353.99 7196.87 8538.82 29824.5 109004 132146 104079 117407 162726 227688 315688 233024 127796 80608.3 82761.8 72077.9 70284.8 110428 250797 373203 401133 397146 404555 409995 415556 412244 433504 473988 432563 306187 163880 67224.9 19192.5 7635.68 2331.85 674.11 330.827 174.799 136.727 201.384 239.893 564.317 73979 596266 858412 994573 1.03008e+06 1.01987e+06 768389 50685.2 16869.1 24891.2 97675.8 308731 690718 753049 917060 965888 974671 970988 960757 907899 826019 680654 567186 461993 248618 295626 247710 216654 190026 136433 92326.5 57668.7 185987 484331 476183 337911 167824 62141.6 48679.7 36669.9 61499.5 116828 287141 606449 1.00036e+06 1.2883e+06 1.33184e+06 1.22729e+06 1.11303e+06 1.01152e+06 984567 1.02643e+06 1.08311e+06 1.09938e+06 1.01708e+06 893796 788765 822465 934137 1.07228e+06 1.03973e+06 977959 897993 818896 876483 1.19689e+06 918662 327271 312888 368640 339257 224227 100085 53885.9 40585.3 67564.4 161059 703186 1.14831e+06 948405 845790 818060 841428 922668 917585 885639 576661 473293 273886 221324 218920 394590 633993 1.11944e+06 1.62329e+06 1.85037e+06 1.74728e+06 1.09085e+06 371590 70972.4 37032.2 35915.6 35778.3 35216.9 34431 32873 32007.1 29204.9 26296.5 35478.4 196500 267458 317569 382166 416728 468969 486680 529249 532869 561670 555798 570755 560216 563745 560759 536981 539796 526528 533747 580641 652828 691104 749490 847007 972451 996426 964559 934484 939268 891934 899308 840830 864070 828658 844516 842876 848213 862977 864066 852656 837777 801629 778296 754343 724743 712203 687490 684659 686512 686597 716485 765824 783048 770478 745183 697171 612087 563217 516056 503445 509430 534389 559753 612293 631275 719653 733064 816064 848013 891453 909109 921596 926332 946959 938945 903594 850756 819770 794093 777395 735118 733008 704058 688590 725017 763850 765707 756513 736735 716426 673970 608420 553374 520540 483576 530133 657472 564683 785300 757442 816115 856470 886089 920221 936940 941363 940704 921756 904214 883016 865235 864770 843923 811815 814231 718112 633791 493091 386179 292764 252373 237594 257823 285261 344443 382199 438811 489181 511235 572574 620533 635255 729168 720469 913220 1.0908e+06 1.24667e+06 1.32464e+06 1.41299e+06 1.46797e+06 1.51138e+06 1.52717e+06 1.49636e+06 1.42104e+06 1.31369e+06 1.20368e+06 1.18143e+06 1.04508e+06 1.09572e+06 926317 988020 890948 952579 874583 836823 795247 809273 804653 780526 695859 637386 592921 584223 581522 600661 620408 638658 648740 666699 682399 704745 730534 756333 776201 797497 798241 803646 769169 777823 738559 746614 726074 739472 738170 764083 766895 766608 758886 741686 727491 742288 726750 814343 762107 760309 743672 732977 794282 857838 1.00189e+06 1.07113e+06 1.11009e+06 1.11149e+06 1.13688e+06 1.16131e+06 1.20471e+06 1.23455e+06 1.26568e+06 1.26126e+06 1.21833e+06 1.11878e+06 991448 921030 868377 817052 796908 699863 642080 397792 450171 446435 514840 524732 608979 604772 697981 682269 703448 654650 635423 666018 704348 693725 681985 716716 714912 712544 652249 705375 700352 701668 716308 724429 732403 748078 775318 805100 840360 862735 870652 1.04266e+06 1.20779e+06 1.29436e+06 1.30488e+06 1.27457e+06 1.23071e+06 1.19404e+06 1.16495e+06 1.10389e+06 993034 826926 710903 554707 380901 240919 181038 179390 203665 248933 285997 306818 323825 344618 373117 418817 480089 541994 614760 649621 698920 686697 728082 694706 730638 691100 703424 671795 708424 619164 761303 1.28636e+06 1.46691e+06 1.53667e+06 1.52365e+06 1.50834e+06 1.43894e+06 1.28024e+06 358232 373337 556518 625138 670669 703243 727930 805057 859335 930289 995872 1.03972e+06 1.06045e+06 1.01409e+06 947112 823948 585016 509218 538494 521030 557837 541662 533290 539969 534282 964797 1.30755e+06 1.3234e+06 1.22135e+06 1.05688e+06 1.03157e+06 1.18701e+06 1.11872e+06 1.1563e+06 1.12315e+06 1.14906e+06 1.22852e+06 1.2718e+06 1.26719e+06 1.23134e+06 1.20481e+06 1.19066e+06 1.19524e+06 1.24549e+06 1.30965e+06 1.37412e+06 1.44427e+06 1.50599e+06 1.54363e+06 1.59206e+06 1.60299e+06 1.61775e+06 1.57793e+06 1.43523e+06 1.31695e+06 1.22832e+06 1.14818e+06 1.03754e+06 1.03453e+06 1.0105e+06 682305 739153 996045 1.3125e+06 1.5556e+06 1.57879e+06 1.54075e+06 1.48801e+06 1.48636e+06 1.52841e+06 1.59091e+06 1.54557e+06 1.25776e+06 1.18004e+06 1.17308e+06 1.20131e+06 1.27036e+06 1.34047e+06 1.43948e+06 1.4895e+06 1.57428e+06 1.55357e+06 1.69744e+06 1.56083e+06 1.79191e+06 1.60511e+06 1.65854e+06 1.39308e+06 1.06183e+06 579504 185237 69713 55060.4 48827.2 50410 48833.9 50033.9 48433.8 45949.1 45146.8 40028.1 36206 32034.1 63824.7 141478 176340 189038 201601 181216 164983 150804 137082 115873 87941.5 73574.2 79076.3 66489.1 185712 368058 536301 652635 748910 817217 869629 926616 946980 960338 925475 875578 796891 730807 683809 656220 620623 586713 543222 493746 448325 406473 363258 334901 305985 284840 255886 227749 179968 113203 297724 526098 628716 679735 696458 695412 690762 678255 698911 707316 714421 704315 673867 631817 589617 550299 519096 491637 449147 410738 381366 361879 348227 334081 315755 298208 272975 248936 201187 121869 362776 555277 658300 713018 721338 707167 670254 629639 586330 527068 504377 460845 417316 458074 384922 512925 479417 568592 568247 608270 627316 665259 714350 748453 644594 501911 408847 350228 302893 202240 324073 455006 532391 580589 616627 608894 580615 542733 522569 514751 552195 539516 676155 553255 795744 703043 890804 767162 940330 819372 1.01043e+06 985733 994122 881449 730813 590098 487653 398182 311680 214980 317677 496104 623536 738994 868638 966793 1.01592e+06 1.05316e+06 1.07421e+06 1.07196e+06 1.08944e+06 1.06234e+06 1.07692e+06 1.0021e+06 621229 725325 443484 487986 340014 388644 335331 377663 424662 488992 567846 695257 817156 678233 347701 237236 282489 367935 433949 502813 537183 480306 537605 629101 664124 690183 685353 725241 712694 757918 756262 802155 807159 845123 868966 877018 905173 917626 924811 964022 896096 832782 656458 487472 265314 130285 151339 259306 317052 336490 345605 313198 363399 422552 575992 702530 857788 910515 1.04632e+06 677574 978128 775782 910607 930718 948229 924894 887884 820590 785117 718981 707403 668989 613018 498516 340813 172920 22432.2 34975.6 46272.8 64439.7 91229.6 138756 202053 293499 338216 448939 538484 588779 664922 661997 642465 617150 624428 632330 651676 660577 600993 498392 373060 255248 147010 72123.3 41540.2 29950.9 24394.1 19104.5 19937.4 24982 32352.4 39408.5 47840.9 55750.7 61929.9 66223.3 82016.3 188772 342744 521103 725335 946527 1.11672e+06 1.02313e+06 1.11595e+06 882495 1.45171e+06 1.49393e+06 1.67746e+06 1.76642e+06 1.81052e+06 1.79159e+06 1.70628e+06 1.55384e+06 1.41074e+06 1.24742e+06 1.02758e+06 670047 25581.8 32129 41995 56380.8 78269.8 97279.1 120644 149364 188437 230855 267463 389803 603429 903998 1.16858e+06 1.29909e+06 1.40614e+06 1.49522e+06 1.57233e+06 1.64326e+06 1.69917e+06 1.70801e+06 1.6008e+06 1.14469e+06 423409 366457 468782 747250 789104 385632 27204.2 35250.2 42132.9 64109.3 160306 304504 450848 576247 722825 815925 1.02935e+06 1.25816e+06 1.49175e+06 1.52184e+06 1.60551e+06 1.5206e+06 1.42777e+06 1.26935e+06 1.09064e+06 878785 656448 392144 215312 93421.1 60834 47938.2 42244.5 38023.4 36537.3 30444.9 32344.8 35707.2 42260.7 56666 75862.3 91331.3 103268 109925 110454 111450 113918 112383 117307 105170 100679 82165.2 74466.8 65168.6 59361 54455.6 52997.1 48094.8 48895.6 47044.5 45531.5 46393.9 42077 40921.4 41191.9 37173.2 95705.9 202120 250617 287354 325327 348516 365678 354589 329207 297472 242253 168637 136666 143110 272354 426044 551877 652027 728089 800276 857669 901130 945959 969912 985858 969514 966805 947689 927120 867836 799314 725667 664383 614483 569487 529011 481632 435567 390468 356115 322919 299478 256258 209443 415428 307941 117655 40637.3 13028.8 4126.75 1357.5 1225.44 662.941 1147.84 2121.1 4944.21 13351.8 32242.5 52598.5 71573.2 41026.4 44973.3 66078.5 217622 546926 562402 515257 473898 438099 403624 371520 342419 292059 223825 462506 284462 98787 32346.7 11872.4 4920.01 2297.91 1121.09 602.173 323.655 181.231 117.724 75.4882 70.2785 64.6232 100.603 142.222 257.968 435.585 800.763 1555.76 3400.82 9452.49 30281.8 88976.6 224632 342135 377602 360147 325756 430225 320734 203744 94773.4 34436.3 11282.4 3782.78 2243.21 824.023 797.24 1066.47 721.833 3403.68 2456.15 12852.5 9822.33 28032.2 19678.2 52481.5 32493.4 95368.9 101538 217123 347275 521428 661176 657979 525558 397335 386217 545195 686144 876687 923007 934602 891982 855937 761942 696613 624574 625406 577143 548001 570791 306628 292548 37635.8 42822.4 2547.37 1302.16 629.269 540.789 617.28 920.014 1956.38 5539.45 24485.8 225639 507689 555803 444961 365893 368683 330681 145500 96476.1 238227 320791 329369 332425 329258 332167 311608 285018 225373 152383 79334.7 35176.7 14161.3 6248.35 4562.69 4246.96 8216.98 24522 57200.7 129117 236596 319045 119340 237326 284546 294799 166545 96292.8 214920 287458 297750 408707 568365 620608 522810 224183 106865 4577.85 36112.8 17339.5 74915.2 169314 288535 374077 402935 385966 332202 252217 155864 122051 140760 183650 278423 495278 38222.9 37355.6 63930.9 28119.3 47157.4 186031 116102 30335.7 8832.73 3408.83 1147.79 564.571 312.595 234.567 239.257 486.795 1383.18 2970.25 5063.53 6507.21 10428.7 41273.7 133904 258204 214049 129192 71312.6 32260.8 18516.6 24039.1 31914.4 25056.4 38671.5 58963 84686.6 91359.2 67281.8 164273 370102 669271 306313 148942 101039 88188.6 37588.2 36233.2 30534.9 50487 119900 296179 486570 704342 828970 881008 851064 818813 876405 905513 945552 1.1119e+06 44742 42706.4 80597.2 132319 199137 231454 286718 671447 1.10542e+06 1.40477e+06 428954 348421 363874 349670 440048 468684 663002 805372 837040 718595 418831 113768 11695 245.468 22.0865 9.47637 13.184 57.9011 544.141 927282 88568.1 94977.6 195243 467865 999049 1.39591e+06 1.49777e+06 1.15001e+06 828235 265471 252493 183414 440179 514128 1.00657e+06 1.42131e+06 1.59659e+06 1.48073e+06 1.21739e+06 932734 656569 409064 231546 117650 75448.4 52576.8 32862.9 20943.7 15882.8 28201 86195.8 66157.2 96874 132648 163860 199015 233865 273796 314686 350595 367670 341859 300520 242794 197139 144719 113364 89811.8 73847 63769.3 59807.5 54639.1 53023.8 52234.5 50941.7 48658.9 37188 26041.9 22321 37098.6 147775 292715 315652 328405 337764 351477 369229 394678 390338 349322 315325 256071 199462 217240 379772 567024 672224 738482 782413 802226 824870 841180 830760 848576 843701 834304 807996 836089 838248 819959 769103 713238 660889 617484 578913 540236 498693 454942 408905 367142 330135 308987 280846 244226 540414 119057 43530.3 19209.4 9064.29 5379.47 3653.25 1252.36 1398.18 1183.19 1154.13 1268.54 1885.9 4217.77 10799.1 16664.8 19005 12870.1 18287.6 28113 114555 472435 598332 548645 491536 445847 405531 376996 346194 265364 549179 50621 9459.64 4641.94 2740.11 2019 1119.81 761.474 343.372 221.191 87.6331 64.1615 32.1016 26.911 25.049 32.1403 63.0705 102.166 207.538 360.803 577.857 1098.02 2433.34 7197.22 24083.3 81717.3 219487 335510 387572 425463 489043 242114 127230 56804.5 23052.5 11137.4 7390.49 4052.99 3950.65 1781.13 6885.09 2715.16 24325.5 12339.8 55190.2 36654.5 74251.2 50884.6 114922 86151.1 185871 189441 295149 344377 397213 484516 611867 616682 486139 505912 704230 812959 936875 947382 965372 856127 752863 501860 449724 438531 581822 699797 712119 792314 589863 692907 364821 394526 80763.8 74066 6305.56 6942.42 2830.69 2139.18 2433.11 3661.23 9203.51 50821.4 495708 742543 540732 378992 319075 220730 132636 224851 296944 293850 297526 301332 303264 290865 250692 163803 77312.3 26834.3 8723.05 3590.93 1812.56 1215.78 883.916 2376.58 6964.47 15192 30195 83163.5 160766 244416 120296 293981 380476 228026 71769.5 128050 230383 175855 265908 315200 474476 516456 488203 169953 58878.3 1339.74 11291.5 9865.23 49400.7 126736 230975 316834 360219 367447 393312 420108 436484 366193 311050 232473 179896 487214 64654.9 56776.8 27713.1 6636.79 49256.3 116033 41001.5 10135.4 3924.13 1869.68 913.789 583.385 423.751 380.012 384.062 419.233 464.098 597.645 907.032 1557.45 2610.81 9752.26 39122.7 123676 224273 197449 120713 67321.1 31720.4 29696.6 35567.6 27629.7 42208.6 62632.6 78577.4 57333 76985.6 277354 492145 437612 199941 170435 189992 146774 146476 99451.8 155395 201841 285695 378424 366528 321785 260155 225696 234919 340393 545299 643540 649895 971845 53407.6 52421.8 90104 142320 199239 168670 169008 654488 1.09452e+06 1.35791e+06 912491 730124 275994 341995 383517 507894 477555 462486 361293 179437 24117 430.066 4.23268 0.279886 0.198734 0.334397 1.22673 4.67542 22.709 400605 120497 131928 286825 706741 1.2449e+06 1.46092e+06 1.40908e+06 858780 471109 119005 128592 70511.9 196823 302006 712249 859179 1.37985e+06 1.62028e+06 1.61152e+06 1.36204e+06 1.0484e+06 733191 451169 213299 103894 66997.9 61603.3 46764.8 22059.4 27008.9 113381 87631.1 124613 169817 228049 308983 413690 536199 561935 501748 427067 363183 304679 244130 197232 147041 107979 77853.1 62828.2 54242 50784.7 47872.6 47476.3 48403.3 50561.9 51749.1 53437.9 43153.1 26939 34635.5 195566 340614 351608 351573 348965 347147 351024 366460 403558 392652 359146 342956 278067 290475 509613 704254 765398 784200 790627 787296 770666 755311 759132 751157 751604 737318 729153 722619 731875 722169 701483 663701 629496 598698 569983 537413 502356 458369 415333 367558 335100 306441 313151 289719 686791 55646.6 21271.3 7637.17 3286.89 2747.72 3543.26 6672.51 3306.82 2113.32 1743.62 1370.22 1197.17 1541.05 2301.97 5164.45 7538.23 5544.28 4413.07 5008.79 9845.76 81391.5 495386 639143 578403 515732 464421 432195 418477 327518 621159 8039.67 3856.62 4723.88 7791.08 8393.78 8540.75 4955 3103.99 1313.86 603.662 257.829 116.674 66.2178 49.4861 41.4911 62.2361 87.8092 162.84 224.858 336.127 486.951 975.745 2669.27 9192.84 36800.4 143755 300220 335087 508649 569308 160737 116340 46574.3 18125.7 7295.58 5024.89 5645.61 4848.76 8598.22 12268.6 10216.1 55418.7 49577.4 165686 125906 211785 146103 246917 195443 342183 342566 408180 402594 387086 399912 488979 632863 555573 592088 859683 882244 946705 981931 947811 767906 451597 320871 292723 454110 605805 795329 697496 788936 570125 718900 462451 623899 338524 395799 130886 90654.2 28450 18526.7 5803.88 4747.84 6812.77 20535.4 402752 812749 624939 374813 258534 164835 181177 268009 276304 281073 282044 282601 272589 229639 136007 49810 14200.7 5000.49 2225.66 1368.88 1075.53 1117.01 1618.98 2935.46 8336.63 24431.4 55184.1 100087 158487 183417 43555.6 252167 464050 129636 58600.5 165789 118944 176978 193470 312557 365435 422346 268674 114763 26838.1 1689.22 2903.98 4246.05 16893.3 81166.2 196085 297027 351919 374879 441213 532741 511722 488546 472644 262016 124869 450385 96486.2 23746.8 5129.26 3837.94 64049.5 67212.3 19302.6 5857.05 3653.43 2055.9 1493.07 1195.26 989.786 958.404 987.277 1012.21 970.965 876.608 810.097 900.226 1550.03 5076.91 24329.1 96627.1 208766 255428 167680 98926.6 56920.7 45078.6 41609.8 34233.5 51537.7 76901.8 39802.7 22961.3 99825.9 346106 514195 338435 208772 236870 233585 258972 222513 370597 299746 424444 706251 528259 450212 266944 123886 77691.6 58819.4 108925 340847 507014 506047 787682 62137.4 65996.5 111780 174129 239542 132524 75423.9 546844 1.19388e+06 1.42185e+06 1.27198e+06 559121 531688 543476 439746 267442 254444 141621 56197.1 8867.32 88.4642 1.70334 0.037385 0.00615556 0.0322569 0.452837 1.78107 1.52683 1.32793 102142 159165 183558 430126 982720 1.34988e+06 1.38782e+06 1.10713e+06 709931 383943 346015 240462 320455 260358 550908 598461 934089 929842 1.27374e+06 1.48757e+06 1.48159e+06 1.24255e+06 1.00075e+06 727064 419835 193200 96553.7 68358.4 64071.1 46853.7 35135.9 158321 135633 193498 272257 390900 554574 698298 696476 626091 567158 526070 479801 425065 380367 351710 289679 200222 110179 65635.2 56871.9 50951.7 50190.6 48350.5 51216.5 55017.8 57580.1 54213.5 52114.3 40808.9 36322.5 236647 371519 370352 361097 347475 339959 335212 348096 382901 427312 395329 391172 363904 355398 666185 787114 692781 667178 744574 770188 722752 690632 665263 633805 611672 600769 590144 606391 624745 636890 631424 610264 584705 569176 549468 519020 485143 442358 399710 355387 292427 257945 335217 342367 788365 57225.5 27410.9 9138.6 11673.8 13013.5 10751.4 7111.5 6432.64 6423.91 3274.38 1742.52 1070.68 935.241 1732.77 3377.75 4755.68 5166.39 3214.3 1477.29 3755.23 32874.1 324069 679189 677396 607507 545502 500572 496239 385518 586277 5191.69 7743.68 23792.1 46159.4 62437.6 58834.6 47053.5 29063.5 17208.1 8342.25 4710.36 2080.2 1099.01 545.297 298.366 253.373 228.816 239.266 275.377 301.72 394.036 544.787 1371.59 5376.77 22811.8 125676 259176 285393 579870 615871 214966 104542 22283.1 3482.51 5315.69 12082.1 24991.8 47254.3 37104.4 89631.6 58149.8 186637 172923 357716 322324 398251 320089 436480 399378 531786 585254 584046 532879 430609 354844 399895 583491 603393 645532 1.0055e+06 809096 937087 972854 920578 558370 290317 201064 254142 378480 526016 592105 466013 636703 369394 585746 436855 613501 432226 550149 383879 355485 141642 84391 13024.5 7125.59 6409.62 15122.3 285649 802573 695483 326818 188637 159021 229419 255003 261383 266605 263707 255322 228626 150831 55580.7 14899.1 4818.96 2354.54 1660.54 1433.26 1471.96 1784.86 2189.44 4576.05 14782.4 61500.7 116225 141623 155615 153311 27935.3 201946 512413 53557.2 68142.8 139491 97548.6 153836 193547 256541 279613 193654 162765 88416.5 5548.87 2457.49 4077.88 5102.68 5998.05 22812.8 128652 259228 316951 284976 341428 532446 569094 476099 478368 300122 82267.1 407549 152391 4458.47 1260.21 3924.19 59205.6 39853.9 10896.4 4984.63 3626.72 3272.33 2998.82 3045.28 3580.56 3841.73 3872.75 3461.06 2773.66 2093.92 1563.22 1296.46 1370.79 2848.26 13488.4 68176 211922 350734 252078 131430 88329.4 73515.4 51048.1 45651.2 67205.2 81866.1 18499.6 8237.75 71714.3 380965 459290 266809 235031 312396 463135 442001 483831 429090 536014 552096 866003 747869 681805 410378 174300 69403.5 66801.6 163380 286017 504713 627177 626709 76609.6 88865.1 146949 240707 329514 150877 47742.6 219402 1.21582e+06 1.50504e+06 1.37038e+06 558923 594301 281414 349911 353883 94510.1 28259.8 3818.1 91.6568 14.277 0.259522 0.0031133 0.000823686 0.0228832 1.24288 17.9645 0.797221 0.0547828 104104 206513 195215 495153 1.09422e+06 1.2177e+06 1.0931e+06 837324 563623 645480 602928 555981 584120 791807 635093 789493 685719 925670 852036 1.17671e+06 1.31414e+06 1.26507e+06 1.11244e+06 970596 712170 401751 181707 102074 78262.8 75269.5 52011.4 208476 206341 298271 434284 622579 777189 771711 722000 696831 710537 740150 752915 773240 811271 811884 710418 513358 267442 99033.9 59006.1 53621.2 51100.4 51855.2 54051.5 62784.6 68435.6 61928.4 55758.9 47587.7 39733 278841 400638 385387 363803 342386 323887 315105 324428 368598 434822 429296 430728 452913 423967 776888 815887 520017 439482 603980 742191 707538 675387 625999 596726 561671 544089 549462 557962 578985 587085 577528 564419 559249 542488 522443 491032 451968 412812 367313 278174 135491 147035 330002 411591 879125 140485 95148 47479.1 39434.5 61174.4 62529.2 46154 26734.2 14558.7 7960.5 4449.38 2783.47 2164.41 2855.22 6442.69 9443.49 9069.12 14346.5 18437 86440 225815 479193 688470 760747 698259 624644 573716 561131 451156 495216 8680.38 31165.7 76312 98877 99091.8 88775.2 73417.6 61118.4 48452.2 43723.5 39327.6 34627.3 26415.4 17227 8058.88 3912.63 1714.39 1138.07 673.975 498.347 361.9 450.046 976.759 3988.1 22204.4 113997 243992 228293 645309 655738 356716 46371.2 3759.89 6793.87 30632.6 107511 168889 196263 219087 350144 292965 484836 419236 570273 533915 569703 532907 630306 634165 722520 726235 703338 599162 441709 318733 321636 535391 624311 686112 1.0708e+06 581332 848712 960753 820935 504061 216672 189121 220046 334513 372536 350661 360131 292635 175228 423034 241901 448280 290857 482549 306352 414046 232858 115692 35200.6 8858.3 7260.02 12948.1 293758 736896 764926 250336 145612 172309 222663 254475 248314 246479 238133 225151 188299 115671 41540.8 12137.7 4938.03 3398.33 3305.8 3816.69 4444.54 4623.79 4461.62 4643.74 10310.4 50019 136749 154076 142504 110709 4677.56 127365 533065 31611.9 50920 94080.1 68731.9 113654 183012 208904 246019 155947 184014 89421.4 29139.7 4248.92 5094.37 6524.87 7024.59 6767.16 48540.6 207068 295689 207186 151731 260976 586502 534327 443274 282260 58539.8 398755 200302 793.725 330.572 2955.22 46416.4 25482.3 7891.89 4504.72 4704.77 5115.43 7155.14 10190.4 14216.5 19334 19122.1 13940.5 8605.77 5251.15 3375.44 2428.47 2029.88 2258.77 6530.87 39138.2 119277 306144 369858 191220 120790 124468 66110.7 61472.6 84749.5 74626.4 13237 4032.1 19703.5 263391 406204 288151 187647 176910 276668 415289 388453 539336 421058 708603 802880 905156 837416 584300 332375 188299 163689 153956 234420 437079 698586 553820 89262 121533 194561 322137 468655 386000 75737.4 82107.4 866277 1.50744e+06 1.43812e+06 893847 965352 553666 407443 148250 78429.3 9743.09 172.586 53.4623 10.4802 0.178487 0.00146249 0.000529069 0.00877819 0.364205 12.5978 0.261357 0.00928192 68916.2 266649 138405 469566 1.01911e+06 987537 781010 516853 624100 806847 829570 737755 779799 894255 997944 675386 634801 484230 736330 751689 1.11196e+06 1.18371e+06 1.2677e+06 1.25258e+06 1.10872e+06 754324 390179 186627 120769 106102 96627.6 277222 285220 433898 635210 794618 818500 776938 771494 853805 975992 1.08236e+06 1.17676e+06 1.28572e+06 1.38746e+06 1.37844e+06 1.2891e+06 1.05949e+06 638449 242295 76448.6 51750 51342.2 50876.2 54173.6 65971.3 73771.8 62751.8 55412.7 52229.6 47080.2 315866 416812 389118 362579 333436 310798 296786 308432 349042 433950 456271 459525 507010 500655 846410 863643 428977 260625 400840 666125 735481 691016 666906 656424 631292 615017 604972 608167 600423 587639 580247 567714 544726 522036 487579 454014 415467 371202 218740 108142 163033 331795 422228 507006 967817 331249 316153 204956 143055 85532.9 96139.6 82264 54552 30515 16102.2 8646.72 5374.86 4206.84 7167.48 17766.4 77121 252240 344656 208115 103679 103748 213889 456216 738447 768693 692582 638220 585700 475407 401710 30082.4 79234.2 93989.5 83329.8 67619.6 53600.7 42419.9 38911.1 45540.5 55305.4 82297.6 103713 135065 140940 120489 60998.7 18388.8 6335.72 2159.87 857.637 430.288 425.728 888.619 5063.4 31012.5 185506 195103 218458 694789 774629 218445 7196.81 2913.96 27217.5 158098 250669 288044 386703 389741 492310 467473 566980 522272 612654 567174 630337 616208 644324 638260 659009 636991 595406 497553 334030 247724 287212 516764 638501 714864 1.01443e+06 359624 763253 846219 785840 393775 228618 174106 224089 242224 268743 277683 153804 84581.7 111631 145702 106348 283884 132261 147441 100489 159865 99523.4 64988.1 28071 9792.04 8265.26 20198.3 347558 660505 843942 171471 124020 169096 287833 315514 229702 221504 210673 198412 174764 130976 69124.1 26453.7 11537.1 8555.52 9218.29 10901.3 10360.5 10518.8 15800.6 7063.82 6549.92 18661.5 96821.1 149791 138774 64869.4 662.22 81607.5 496805 16914.4 55613.7 71607.4 155825 225822 214354 238262 205599 253393 232373 334309 321234 45716.2 11665.5 7233.92 8734 7005.05 8290 140146 251173 172418 59710.2 56702.3 195693 609241 507807 221151 38846.4 505442 180687 123.488 125.748 2089.49 38857.1 20196.8 6533.94 4661.1 5570.28 8310.23 14479 30081 58887.1 88473.6 91149.8 55185.5 25649.3 12402.5 6979.85 4710.01 3621.06 3290.8 4541.41 20017 91101.8 169830 404862 270553 166847 189061 112729 90708.3 104733 96105.5 21728.6 3646.76 2858.42 76658.1 241577 264018 151605 143675 144068 172953 272071 306080 242156 677796 852136 938672 955737 884201 552011 297648 205811 380711 300346 84795 77215.6 893481 144279 178432 257127 402563 580659 712123 386596 127582 391222 1.31491e+06 1.43547e+06 1.21547e+06 1.10743e+06 626341 729027 446681 92216 9353.44 240.464 80.4781 19.1389 0.418329 0.00226917 0.000617829 0.00435189 0.107443 1.02545 0.119225 0.00634994 223430 365398 73550 413179 877334 801931 688689 549437 667016 881923 961655 982012 1.08333e+06 1.11938e+06 848129 829315 408761 376276 350990 685968 865659 1.09929e+06 1.24636e+06 1.22226e+06 1.14224e+06 1.09919e+06 720133 381316 205396 163058 177860 348637 339312 602233 812333 859679 828933 817771 879784 1.05224e+06 1.23473e+06 1.32951e+06 1.4021e+06 1.46343e+06 1.46459e+06 1.55494e+06 1.53404e+06 1.43872e+06 1.15091e+06 562454 161074 55147.8 47345.8 49082.2 51109.3 64173.6 76275.1 64097.7 59757.8 55555.5 54897.2 350872 413664 384465 356012 333956 314153 303689 303832 344338 422261 480653 481392 567058 588431 900295 886060 439239 187749 203546 599338 729062 734405 726651 719295 728530 725746 721697 700106 674742 644618 603395 564825 520661 480835 453976 421337 372001 187761 169139 390816 550653 578443 584196 727618 1.08557e+06 485612 523867 459967 320933 249411 131064 70310.1 46760.7 27591.7 13801.8 6839.09 4053.19 3305.24 22303.6 291480 479788 261952 86754.9 59500.6 55369.6 71812.6 77502.1 179495 534338 789125 755791 700808 479326 494794 394588 76111.7 96882 77851.8 53030.3 49732.4 20674.5 14310.9 14398.1 19261 28730.6 46483.1 61288.6 82190.7 100138 107152 82458.6 31932 9409.14 2203.01 654.109 292.868 451.611 1347.86 8963.88 74213.6 155984 258457 396819 777948 912088 23147.8 1380.08 5238.13 55273.5 154106 190803 214874 329108 333852 465858 392480 515316 492912 528544 511525 525638 518677 522923 413476 400924 323091 304983 250347 202479 195768 287562 555540 642899 749102 763312 115517 534581 897182 770167 657213 599225 486048 325948 282192 283777 138632 78325.3 71339.3 19413 19219.9 82939.4 82327.7 63353.2 88762.2 34950.8 28699.2 25163.3 22202.3 14230.2 9886.84 10150 73362.8 500061 606365 891329 107556 107770 188519 317701 288797 206937 200088 192523 181378 168766 150182 116421 73571.6 37022.8 23675.9 21749.1 21922.7 20899.9 18116.1 14345.3 10914.8 7211.63 7654.94 34720.5 111583 97629 10972.2 81.4948 43108.7 711077 7285.62 36511.1 57984.1 118362 208918 302979 303696 292284 288732 415696 603545 519773 350643 80504.4 9826.04 10049 8939.17 6693.97 68357.3 204388 153817 20879.9 10172.3 19274.1 164245 586547 281618 31659.5 679704 239800 26.272 47.8388 898.937 24071.1 21474.1 6751.25 4715.3 6105.07 10340.9 22352.5 52478.5 121531 192650 198272 116647 52633.8 23459.7 12639.5 8341.55 6542.16 5712.14 5916.76 13038.1 74877 158846 328554 339837 241523 315400 256041 126800 127198 126000 79923.9 14573.1 1566.63 5033.65 38804.4 84501.7 78860.1 132156 30476.9 48798.4 65008.8 84198.3 39307.3 501763 865916 1.00747e+06 1.03515e+06 976661 815577 575682 494305 398785 283742 35741.3 7442.18 105595 292888 41814.2 358119 515401 663799 856242 959274 593141 415499 895854 1.34201e+06 1.21176e+06 1.16856e+06 887280 830411 470088 168759 15335.8 1698 474.354 47.8385 1.46565 0.0113018 0.000733933 0.00407429 0.033294 0.118655 0.0880225 0.053758 274887 434358 22225.8 359922 631113 660986 469757 431699 609393 990222 1.06683e+06 1.03073e+06 1.03309e+06 1.05592e+06 1.02399e+06 600900 457831 268589 322292 410913 780943 965638 602753 223623 288523 484941 877358 627222 348967 266359 299468 445252 360952 785777 909469 867308 825185 853157 1.00105e+06 1.20359e+06 1.32603e+06 1.32391e+06 1.26502e+06 1.22264e+06 1.30796e+06 1.3388e+06 1.40968e+06 1.54082e+06 1.4123e+06 1.01447e+06 370256 85626.8 46019.1 44075.8 47616.7 56752 75827.3 65800.3 65808 69530.2 121806 375859 400344 371649 353203 344048 344461 342318 349085 373418 443477 507836 511596 623788 685896 812999 833143 752880 804257 450839 160216 153094 326103 651180 761180 752461 766687 768151 764841 759731 731799 705079 660667 608326 557502 521288 488191 429977 296688 158928 233806 463050 637958 555071 470844 473964 655533 1.0132e+06 1.1629e+06 516271 647502 569708 562010 437602 329372 272669 129213 44603.1 10710.4 5212.05 2688.47 3894.87 28993.4 144236 168606 79179 44406 23617.9 16321 21564.7 51710.5 75783.6 101277 357445 776912 797460 747011 162165 14059 200266 272398 75820.2 111287 86203.6 53638.8 42677.3 21582.4 7060.28 4232.91 4030.69 5613.1 8571.82 12909.2 14073.8 13793.3 11591 10733.6 8403.3 4558.55 1753.19 557.701 245.631 247.97 562.482 2122.13 15850.9 132954 296191 512156 630266 865044 1.12477e+06 1.04314e+06 6834.44 675.187 274.064 706.151 8844.66 22224.8 38057.9 64953.9 81330.5 105988 259149 281742 481706 401437 466754 287872 201116 74536.8 82273.5 54028.5 77290.5 84787.6 96497.9 136395 159688 226765 433342 644291 608886 403547 403384 383767 6854.45 55436.3 621630 909451 980297 893715 659414 447015 353248 260438 109660 69589.5 75253.2 14789.1 4505.85 10278.7 7253.41 18372.2 62731.9 64592.9 34020.2 18233.7 12061 9029.26 9458.31 12556.9 52237.8 257307 580155 512430 749998 790186 102508 64180.1 88517.5 197626 255318 196197 194869 196687 193612 181712 166303 149803 139213 121604 87300.8 53566.3 42726.6 33358.8 30692.1 21359.2 14536.4 10809.2 8927.1 6144.03 10798.8 43199.9 24603.5 165.533 5.44667 144.767 529270 891922 210681 93759.7 24951.3 212492 428631 416465 447910 516949 399567 459068 586515 551927 533788 485500 112834 14953.2 12908.2 11536.3 6475.1 21721.2 142172 112719 8787.3 1841.37 1529.33 8030.52 173058 384763 66832.6 45882.5 656693 708512 3357.9 263.291 20.1778 495.124 16612.8 23755.1 9658.9 5536.64 5885.12 10609.8 20560.8 49140.6 101677 158778 156210 104701 53557.9 29479.2 17916.3 13085.8 10842.5 10172.8 9675 13399.5 59817.7 178345 292102 401771 414318 325457 510618 340217 20755.3 34172 112642 140543 136173 111960 11969 1532.23 2100.59 4119.92 6559.99 7976.61 7987.9 15774.9 6930.6 5049.92 15711.6 217113 710840 1.08407e+06 1.09051e+06 1.02366e+06 924936 795707 581986 637336 365396 32378.2 161.762 1.63412 2280.62 1886.94 0.0576643 1658.74 291702 725161 767444 881826 1.07743e+06 1.20683e+06 945420 900263 1.15425e+06 1.06852e+06 1.15609e+06 897292 980791 680433 317440 51974.3 7672.61 4156.72 187.819 11.3292 0.0908513 0.00366592 0.00235519 0.0304443 0.138182 0.209192 10.7281 48457 943382 4784.01 0.0279025 1034.41 301700 698182 627176 572313 534291 682123 967566 990802 882870 900585 1.08088e+06 1.02518e+06 512529 459700 277135 272200 525166 706215 543904 38695.7 44170.5 79164.8 278667 541909 773210 528264 425256 1.04041e+06 977590 855587 3386.7 323811 966977 952767 871751 835609 843771 1.00389e+06 1.22647e+06 1.28292e+06 1.17249e+06 1.0746e+06 1.03323e+06 1.09757e+06 1.30379e+06 1.31397e+06 1.49428e+06 1.39539e+06 1.35095e+06 719265 180346 56904.8 41486 41870 47975.8 68617.3 80046.8 109527 166109 184520 76585.1 44328.7 387957 373357 357019 348644 361408 372952 389715 396020 422022 470375 514610 522191 579790 744643 656410 634567 681504 791210 594161 217184 86572.5 157928 362163 541897 670442 656529 659632 610556 525866 487862 394469 362769 374792 376954 342904 274262 172191 104607 169140 366491 570431 459225 276451 258459 281072 444472 471897 552029 416924 434432 468675 506599 384369 374171 212103 100797 41461 14380 8785.46 12063.2 29021.8 61802.3 53402.2 40785.9 29289.8 17761.6 9580.72 5227.15 5468.4 14448.9 53977.6 138592 434844 783513 812001 562402 21656.4 6203.97 61759.7 115145 143707 103704 65957.1 37298.1 18262.6 7732.21 2898.9 1386.75 1094.9 1479.84 2284.18 3021.3 3060.09 2195.57 1356.82 811.426 517.454 340.046 218.754 152.723 179.342 309.268 680.446 5841.5 87934.4 363853 624255 643754 578650 400776 113403 10462.9 682.269 108.502 43.7069 56.4649 106.019 196.095 365.348 648.504 980.391 1503.95 2156.82 2439.4 3219.11 1782.86 2009.37 1078.37 3534.57 3475.05 9621.44 11883.5 30810.1 36697.5 84048.9 141418 233075 415661 584350 611471 445185 231747 110710 7017.24 1524.83 62164.5 489223 889951 958942 1.01697e+06 1.01858e+06 829861 494577 133273 70712.8 78771.2 21925.4 6569.21 6789.68 3851.96 3360.93 6004.13 11534.8 32167.4 54091.1 48318.6 32586.6 39075.3 56853.9 126135 300493 462198 520845 227856 335132 124856 45223.4 46834.5 75095.8 115021 144427 175449 197890 213623 215974 209021 192922 178998 163654 150461 133630 106930 74259.7 59116.8 44221.2 29920.8 15620.8 9475.25 7949.84 6687.25 5616 9481.06 10665.4 140.954 1.96507 5.67771 442.082 213936 162711 115483 159114 206583 541497 590717 537604 552894 601042 537009 590431 607853 488241 384768 96479 20486.5 20043.2 15133.9 8103.89 32498.4 126506 116296 4391.3 661.214 242.604 520.895 9983.39 112876 128429 24549.1 27253.8 144622 74610.6 2407.9 46.3736 271.552 11510.2 32260 15474 8877.49 7145.83 8434.94 14121.7 25171.8 40919.8 55897.7 57461.5 44885.4 32177.4 24141.9 19405.2 17044.7 16439.1 16647.4 17606.1 19740.9 52470.9 223513 280273 409769 380399 161715 20489.1 10656.4 7335.26 29456.9 70983.9 110614 115510 117855 83366.9 15460.3 2614.03 343.192 195.823 94.67 166.644 229.233 295.285 486.519 1338.05 44205.1 466301 1.04874e+06 1.09081e+06 1.04388e+06 999149 927087 859761 720065 396226 41433.6 7.74529 0.00162412 0.00068758 0.00037815 0.0498093 2656.34 121522 896494 957953 960572 1.04531e+06 1.22922e+06 1.37813e+06 1.3033e+06 1.2115e+06 1.10728e+06 1.13967e+06 911973 885040 628524 421123 52901.4 9197.18 21115.6 7996.98 80.5823 2.27558 0.0214731 0.00315843 0.244978 7.16799 249.903 4953.16 47955.4 668.221 0.402985 0.145828 3677.35 386526 815326 747352 845657 635713 853735 1.00579e+06 949018 941222 1.01741e+06 1.12295e+06 907206 590289 411353 322114 379471 584029 823995 74588.5 29772.8 27306 79428.5 226340 444937 777018 672166 582973 1.07585e+06 675941 36594.3 882.057 391220 1.0986e+06 952368 850845 831499 845322 1.05686e+06 1.24704e+06 1.26073e+06 1.09434e+06 925548 801345 932546 1.22308e+06 1.32022e+06 1.47137e+06 1.33575e+06 1.47497e+06 1.09523e+06 374875 97014.2 44801.5 39136.6 39507.1 48760.9 62741.7 83467.8 107972 93495.5 40586.2 43776.1 395166 346517 340844 346419 367656 395610 413725 430925 453642 479306 515133 506557 520764 627556 564742 535913 619406 768014 780997 338886 110138 89806.8 121204 186059 230180 213923 251706 213543 264925 262033 288899 297193 250205 212420 156991 100384 76180 84687.4 191535 411796 454583 288072 192396 85044.2 79872 71239.9 30979.3 59714.6 23041.5 66055.9 124086 213163 376826 368597 339396 228445 124885 79133 53998.3 52615.5 52705.5 27853.9 30797.1 30760.8 25655.8 18464.8 11001.8 5016.74 2312.07 2510.71 21407.1 151068 437685 671847 535993 87113.3 6897.2 17534.2 81994.5 145031 121818 82250.1 51179.7 29260.2 14280.3 5610.05 1964.51 705.144 399.236 430.553 608.415 903.67 1029.03 802.249 479.026 252.141 237.081 233.087 118.589 153.377 230.333 510.404 2017.49 18902.6 152483 554489 745851 743356 676676 515130 220961 10742.7 394.603 31.1783 8.87638 7.94083 11.2072 15.5307 24.6505 31.7968 39.365 52.031 61.6194 94.1907 154.112 232.326 309.883 414.668 515.858 675.059 897.36 1162.6 2462.53 19957.2 63851 156582 310639 450353 504324 396104 231362 140759 34748.8 3016.3 1925.08 136941 838872 1.0091e+06 901837 857627 945666 936072 461739 178944 85648.8 17852.9 6073.65 6592.03 4732.04 4233.33 3771.26 3425.91 3407.07 5137.4 11531.9 22326.6 45796.8 75993.1 132142 249229 364391 417886 283982 178271 200747 50757.2 29759.1 42065.5 69924.2 103510 142056 181667 222879 251972 260435 249748 226086 200507 191637 186338 172691 166190 126613 104098 73133.2 50374.5 25767.5 11492.8 6438.1 6203.22 4811.48 3438.38 3469.75 670.109 12.3803 3.17846 74.1355 17172.8 266866 195590 172996 217792 396355 607247 619624 601582 569064 638985 562760 503999 440326 124808 32213.2 29436.1 28973.4 17278.3 12219 50887.2 71678.7 87422.8 16657.9 609.898 80.5851 71.6251 316.9 14872.3 51064.2 53775.1 20613.9 86631.4 66025.5 8498.59 752.466 157.42 8508.19 41172.5 31446.2 14798.9 10365.2 9306.63 10155.6 12884.2 16453.1 18946 19356.8 19885.1 18691.8 17971.2 19362.1 20865.7 22405.9 25243.8 29849.1 31990.7 53623.1 241112 323515 385402 423938 344920 182802 44436.2 25409 110208 86849.4 45219.1 38044.9 31625.3 45527.1 71865.6 28396.6 2583.66 727.44 20.0623 25.6576 7.9661 11.0859 19.4624 35.6578 2112.81 247729 839385 1.0994e+06 1.06256e+06 1.01583e+06 978908 906985 713306 209310 76765.2 50.3616 0.00453264 0.00561945 0.0165638 3.2349 654.879 26716.9 623528 1.14305e+06 1.11121e+06 1.08123e+06 1.12603e+06 1.2256e+06 1.28903e+06 1.25372e+06 1.16516e+06 1.01272e+06 862587 813054 686586 346477 38270.7 24907 91664.2 70699.8 1955.78 59.4339 1.37159 0.0134596 0.046847 13.1673 563.64 1451.91 283.781 1.7986 0.195918 13.8671 28984.3 532615 899040 996816 993842 979161 912693 1.00997e+06 1.0944e+06 1.02296e+06 1.04414e+06 1.06769e+06 839232 624438 474888 512537 567214 797429 859590 57555.5 31481.6 54735.7 87972.9 288446 611643 888977 823319 853897 906480 74873.9 5546.17 3878.21 813471 1.1214e+06 922279 816273 816260 817733 995096 1.14492e+06 1.27502e+06 1.16282e+06 1.08797e+06 1.05477e+06 1.168e+06 1.34454e+06 1.44901e+06 1.41772e+06 1.41377e+06 1.49922e+06 1.37243e+06 637927 172557 56620.6 38633.8 37172.5 38660.8 53514.9 58823.4 70805.5 60469 36754.4 41788.5 386592 315231 325000 341832 367817 390026 419825 434755 463246 479893 509936 515818 517454 563995 521702 514193 618718 731307 851659 715190 270624 113611 80535.2 89864.2 105308 165883 234505 343727 447049 389244 283687 152115 84037.2 54774.9 41214.7 40485.8 58931 144338 285803 376165 385713 335718 157447 78906.9 13001 2837.49 3812.94 4956.65 6191.41 7137.68 6704.23 7733.42 65259.9 270635 388401 401229 344358 249580 176168 92625.8 38635.5 26439.9 32379.1 38119.2 69688.1 56918.6 35897.8 14901 6621.73 2420.94 1898.4 20664.2 87110.6 133746 58838.2 12051.4 8678.83 52837 109241 119535 101668 73190.1 53750.6 34231.4 18378.2 7410.5 2493.78 744.106 266.769 170.594 202.071 286.861 400.015 421.651 336.757 238.402 170.861 155.665 406.129 496.967 511.729 714.404 2390.75 12177.2 90780 389171 662229 743346 742105 692795 548406 74219 952.865 35.5942 4.59836 1.95736 2.21868 2.66569 3.85095 5.97671 7.39023 11.7842 16.4438 26.9992 44.6123 76.2736 108.313 309.189 769.118 2266.97 4251.36 7938.51 10019.6 14539.7 23304.6 87813.5 183071 261780 268994 230613 161646 95157.7 16667.8 3479.97 24533.6 353376 926363 883975 734918 659723 705971 671917 486932 288389 29927.7 13203 10417.4 4989.94 4520.14 4445.38 3731.78 3132 2862.86 3027.52 3442.21 4864.38 11016.9 23065.9 50582.6 93598.8 126423 132453 108486 100614 59694.7 28594.3 26559.2 44754.6 73370.7 112232 163765 217540 268518 314706 337865 321372 275809 234482 207725 218185 218174 217323 191718 170944 129875 90536.3 56145.9 24582.8 9867.4 5030.38 4544.38 3036.46 1406.53 695.884 76.009 13.4423 199.142 9186.31 178369 318865 234342 108421 235115 372094 561143 561070 641752 536137 554951 367675 205283 35884.4 37568.3 37269.1 30510.8 16112.2 26076.3 94613.8 137613 180108 62042.7 1212.16 106.948 25.3072 112.725 822.373 21787.1 41818.1 75623.3 96965.1 36701.8 7434.97 1177.34 270.112 9053.13 49406 53369 31763.5 16021.6 10244.6 8476.59 8276.82 8711.33 9197.31 10101.3 10754.4 13079.8 16196.6 20472.9 25402.2 35170 34626.1 45753.7 51389.8 60875.9 223097 386945 348584 424430 428600 434863 272069 141993 147560 87585 20792.8 5857.54 3611.2 5205.7 13444.1 32757.5 24352.4 9778.85 1026.67 484.524 62.4019 43.4605 37.1033 111.751 3071.73 301090 894060 1.1015e+06 1.08518e+06 1.03695e+06 1.00834e+06 983923 551804 106606 100333 1973.27 0.344418 0.143254 5.68954 46.8728 1718.83 13764.9 188796 933198 1.29311e+06 1.21029e+06 1.13699e+06 1.09226e+06 1.06982e+06 1.03725e+06 916486 822507 812532 684572 632923 283629 36549.3 41329.9 187918 211015 54715.7 514.763 73.5215 2.73227 0.0400637 0.0176288 0.197364 1.07153 1.38634 1.39996 23.9585 4837.47 399802 963031 1.10158e+06 1.13058e+06 1.18825e+06 1.20826e+06 1.15997e+06 1.12806e+06 1.05543e+06 1.12178e+06 1.1615e+06 944847 748394 668591 680999 684056 776787 1.01996e+06 914085 89419.6 64641.3 131816 236145 548252 1.02047e+06 1.08308e+06 1.09263e+06 963461 113715 22566.5 23664.1 195505 1.23178e+06 1.05998e+06 877976 785058 782335 808088 889727 1.01075e+06 1.2216e+06 1.21518e+06 1.25424e+06 1.2989e+06 1.31883e+06 1.49102e+06 1.48291e+06 1.50912e+06 1.32604e+06 1.50073e+06 1.49402e+06 835923 258377 76605.3 40974.6 36648.2 35535.4 41098.9 49951 54848.5 49318.7 34123.7 39599.3 373872 291216 306820 337733 353099 381615 397739 420996 434484 465901 469596 483923 470884 493632 497647 522838 592106 661864 753385 881704 857289 392542 162867 117216 171899 273139 382414 517958 518301 438417 344328 234116 157912 98579.9 68336.5 77586.4 114346 181779 300364 406217 485485 446385 464329 253324 138708 20853.8 5012.35 5541.48 6465.61 7427.04 8405.09 7396.68 5613.84 6471.85 124066 302821 363772 326727 219079 112722 38981.2 34257.4 44978.1 92046 152087 140945 125258 110098 91875.2 46532.8 13077.5 6265.6 9983.53 13656.2 9289.19 15300.9 53993.5 101555 120709 116686 112195 98632.5 80666.4 59376.2 36141.6 16825.6 5701.31 1650.22 475.355 173.265 101.945 108.189 149.828 197.554 217.618 206.811 198.173 210.659 304.987 336.757 437.967 603.852 1150.87 7227.58 41547.3 157589 412371 620123 693964 701229 674325 443384 7906.31 182.969 9.00892 1.64786 0.998844 1.01954 1.07183 1.45209 1.96988 2.60444 3.76047 6.43983 12.6748 48.1948 210.225 1411.85 4340.85 9662.08 13453 17795.9 21219.7 24290 43104.9 97069.3 130734 178984 200364 197466 174244 96515.4 22919 19105.6 131163 647489 955304 799899 636906 532548 559856 665691 625553 335822 92388.7 35183.8 12298.1 5216.13 3683.14 3519.4 3321.59 2910.68 2530.12 2235.05 2322.48 2544.3 3155.21 4356.51 6407.84 9614.73 13896.3 18808.9 22672 22901.6 23366.5 24470 33605.7 65386.5 104311 151093 192469 237933 285608 323878 332671 318618 287250 249891 215099 211861 231347 266406 235190 249612 207936 173409 116043 73459.3 29946.8 16379.9 11037.4 3808.95 1711.5 600.558 157.003 108.596 22680.6 397007 459285 432939 334051 141015 74670.5 146963 348996 491339 451540 510608 286185 204066 45466.4 45653.9 41961 27588.3 20896 19371 57690.1 148548 157953 177238 121027 19509.4 417.445 61.3858 56.2801 110.825 2137.74 20797.7 42292.9 19987 6051.43 2498.68 1541.22 828.025 13391.9 56834.8 72452.2 51905.4 29058.7 15351.5 10019.2 7925.39 7222.46 7394.4 8054.72 10134 13245.1 18894.4 24337.7 52443.9 92203.7 44970.3 62508.9 72283 68032 184380 415574 360705 374620 417675 393235 292807 269736 247116 128351 34479.6 5687.05 948.011 931.034 527.58 1045.1 1582.1 2293.85 1972.36 1087.6 766.253 627.067 511.068 4309.36 10088.5 527536 989680 1.10091e+06 1.07862e+06 1.04242e+06 994640 941512 353897 21812.7 91535 58109.6 156.525 188.125 736.234 5102.89 49392.4 104942 311599 703545 1.20578e+06 1.32054e+06 1.25152e+06 1.14466e+06 1.05189e+06 926929 834165 835605 730795 670085 483684 91863.7 48544.4 86927.1 324645 412650 201853 30704.5 793.024 217.947 42.8294 6.16936 1.04531 1.58553 21.2683 235.748 9551.36 322084 1.02885e+06 1.20659e+06 1.23442e+06 1.20215e+06 1.19779e+06 1.21775e+06 1.22878e+06 1.21778e+06 1.24227e+06 1.1496e+06 872543 789220 775182 816435 805023 842796 916219 1.08245e+06 1.08163e+06 194110 158765 291267 545309 853159 1.03388e+06 1.09626e+06 720745 143193 44414.2 84766.6 407742 1.22133e+06 1.13612e+06 958498 824156 764450 754441 820032 786690 796863 855561 806886 940167 858547 1.16441e+06 1.20177e+06 1.46564e+06 1.3497e+06 1.45885e+06 1.62444e+06 1.56384e+06 865427 276702 74075.8 39590.5 36764.8 35045.6 35550.8 41820.5 46671.8 41386.6 31498.4 37442.6 353294 271276 286365 321058 342442 356885 377434 388054 403425 414991 424990 425906 431995 446798 476538 500241 541406 585187 627714 693647 806490 931969 555841 236470 210633 271917 316005 443600 424350 513115 355570 390549 213134 147830 103277 100966 126183 203874 305658 409561 470726 563732 544720 582598 509425 322445 101235 12363.4 9217.63 9337.75 9735.82 9852.68 8309.84 5302.71 3842.47 12508.1 64687.3 142152 114673 78086.7 41690.8 42027.5 56101.9 72477.2 146198 132109 142393 160988 175804 397895 454372 277960 116025 72639.2 90646.7 127158 170278 183852 194183 182098 190815 167724 152122 139573 107269 60887.9 25261.6 7482.69 1961.15 545.4 170.81 78.2574 63.5304 66.837 78.4558 89.9979 106.803 128.882 167.198 235.072 331.875 634.948 1753.07 8598.33 28609.6 93527.6 211635 374525 510162 586407 635103 639378 335618 4709.49 100.322 7.70996 1.59671 0.821107 0.588704 0.575433 0.625232 0.925215 1.58252 5.21379 21.4417 225.986 1252.12 4523.33 7277.05 9772.74 10379.7 11260.8 10857.8 11630.4 11650.7 26206.6 58474.3 106131 163713 180840 177448 115263 76957.1 106423 273091 625484 836135 743778 631446 596183 571283 538745 413732 526216 240124 100066 33173.9 9019.77 3390.98 2219.28 2014.84 1941.64 1663.74 1444.05 1319.88 1385.36 1648.37 2122.98 2908.42 4097.05 5793.86 8208.03 11664.3 16566.2 23566.1 36532.5 65260.2 117748 165266 207697 235084 253820 256049 246116 231756 218011 205162 193960 180924 176356 195371 262009 265746 318324 262167 327783 359024 219247 258797 87788.1 69675 51076.4 20961.1 5352.9 3946.29 62904.8 534066 624864 622921 539476 404820 282376 155960 112377 112636 190448 249019 180190 111961 74446.9 54651.3 28163.8 19540.9 15462.2 21282.2 32072.9 126597 214205 221054 251764 241533 110489 14498.6 444.615 133.905 100.455 305.359 1182.37 2914.67 2239.27 1927.94 2979.39 3397.75 3656.59 9612.36 30683.9 54028 55845.9 38677.5 23863.1 15608.7 11822.8 30636 26227.1 12576.7 13758.9 19326.3 37835.6 118521 143995 120709 56917.9 76220 79452.5 69324.1 137047 366415 410944 340629 332023 327744 354430 382608 406347 358859 218586 67435.1 10996.4 2027.93 411.773 199.412 43.9159 40.9031 46.0136 57.2534 79.4098 116.074 191.657 425.488 5560.13 336720 839049 1.01529e+06 1.02786e+06 1.00571e+06 993162 873909 134535 20745.1 58992.5 151276 129039 82449.5 367639 958007 1.09586e+06 1.1613e+06 1.20247e+06 1.23908e+06 1.24285e+06 1.23514e+06 1.16869e+06 1.13747e+06 968616 864927 887717 666117 567699 413347 147238 100987 55300.2 142189 437083 459080 355568 140495 21567.4 7075.55 1789.26 2543.82 6355.5 16611.2 69141.6 279463 816402 1.25246e+06 1.32415e+06 1.28244e+06 1.19463e+06 1.13605e+06 1.1088e+06 1.12105e+06 1.10834e+06 1.08867e+06 963468 837186 832225 861529 869402 909712 935636 919442 890314 1.00281e+06 1.23415e+06 392027 221825 417388 653376 836985 823565 480882 163374 59110.2 54514.5 212941 953260 1.29267e+06 1.01656e+06 880930 788394 772284 776661 842226 735453 704898 417937 404632 302084 422503 409118 861479 1.02842e+06 1.39891e+06 1.57624e+06 1.76667e+06 1.47278e+06 739145 215597 57015.7 37429.8 36310.5 35269.2 34093.7 35922.4 36506.2 33363.6 28306.9 36735.2 322519 257132 272388 297268 318751 334254 349255 358837 372403 383740 400149 409001 429227 445973 472350 491405 503900 527215 554958 575830 605060 684580 844130 765371 365514 217871 217836 265753 245276 315093 247622 327534 252248 331927 341076 329684 342123 361567 403134 444393 518277 521893 543611 507883 521999 499493 540532 332780 46566.6 21134.4 18125.7 15900.7 14053.1 10218.9 7060.04 5229.31 5721.73 8689.97 14791.6 23981 34055.1 43626.5 52081.9 60993.1 74638.2 92274.4 131065 182095 256373 323560 374396 572805 615365 616067 588150 519946 462051 359666 359663 318834 291441 239005 165587 167700 235118 199593 132421 62587.8 19699.3 4882.81 1221.63 354.233 127.819 62.6889 39.3107 39.3254 39.7671 50.5289 167.708 275.826 746.698 2003.69 5435 16118.2 43036.6 91761.8 181694 287805 387476 462227 527202 595101 644057 356141 6574.64 299.344 32.9528 8.65095 3.3688 2.31535 2.7468 4.86849 14.408 67.8428 331.802 1402.09 3281.15 5910.73 7261.11 8305.29 8114.56 8535.06 7440.06 8124.84 7461.79 8727.03 19585.2 48782.1 82286.2 132887 180311 232229 291333 380658 492845 587183 577086 596113 419550 384582 277566 272492 351034 578610 432250 244640 124388 35225.8 8508.2 2984.3 1645.19 1153.37 971.738 826.066 790.791 862.027 1047.24 1431.08 2114.88 3147.3 5009.43 8197.66 14034.1 25374.3 47995.9 90671.9 161111 244216 276426 287575 260925 220137 174880 138074 116934 108391 108883 114671 123368 132634 152649 211558 241763 471059 454823 512898 555207 550514 642233 459285 329930 214576 194422 192033 250879 386709 462155 486366 494487 453469 368967 290650 250976 231826 192720 174735 102191 77482.7 18542 9502.01 7693.81 7479.13 14712.5 20577.8 53484.8 92526 218991 269551 272083 269907 284276 341091 140559 29425.1 3245.31 1846.69 827.785 863.555 1922.82 3035.2 5439.73 10640.5 17535.4 25152.4 26739.8 19052.2 8129.82 6662.34 7430.65 7959.77 7526.86 39261.7 108314 116181 109513 112993 175033 241430 240921 296659 123959 79121.1 84052.5 71206.9 69240.3 113867 248606 376834 402167 397010 404519 412213 416778 412286 439258 469257 437000 321003 158904 57640.1 23504.4 6468.27 2196.4 817.669 274.11 182.819 173.23 156.739 301.26 680.593 124224 503253 874548 997198 1.03222e+06 1.0183e+06 783056 36674.2 17616.7 23505.5 133316 344397 462287 870180 931857 951000 971163 969685 949214 908621 826671 738931 525809 311600 429373 254021 246783 226742 179976 140654 91884.2 57025 206830 473201 487528 316280 139002 83419.9 43206.3 45510.4 50635.5 117965 278045 602545 1.0153e+06 1.29401e+06 1.32338e+06 1.22816e+06 1.1145e+06 1.00937e+06 983671 1.02484e+06 1.09076e+06 1.06866e+06 995863 898751 867212 843445 913051 1.01691e+06 1.08532e+06 964819 898794 820459 866405 1.17946e+06 945233 368765 312053 362188 315550 226087 114712 49646.3 43276.7 66942 164931 713445 1.14795e+06 947757 850479 813298 851035 900919 961092 802559 689923 363331 285135 213877 252067 322493 663254 1.14663e+06 1.57106e+06 1.83323e+06 1.74993e+06 1.17312e+06 428955 88916 37981.9 35978.9 35622.9 35335.5 34322.7 33316.9 31300.5 28755.7 26631.4 35588.9 201407 263274 324633 369916 429259 454213 502563 512545 549078 547497 568868 560825 569392 564231 550715 552487 528581 529279 534925 579926 653740 689736 752073 846303 971242 997332 956648 949723 916020 923453 863504 877849 830882 855299 833193 837654 848501 858290 864057 857592 829318 808863 777201 748701 730913 703714 695728 676534 692803 686845 713313 770508 781642 771623 740274 684234 627397 551122 520523 504690 510907 528839 567719 591374 665832 676481 773231 791321 862383 885212 909711 921419 926901 951122 940665 892599 861749 822788 791291 759371 754963 724878 710030 678896 726219 763513 760093 751929 735446 715203 675561 606398 557058 508506 504736 463114 494024 758738 677377 799191 813994 847401 889399 913840 939002 950144 941667 933089 907232 884075 871263 860257 846016 809586 811033 737981 602853 531208 372343 290721 248189 240626 250433 295915 332228 396650 431393 468337 535785 562769 603676 679007 673195 792853 818699 1.07546e+06 1.21129e+06 1.34229e+06 1.41458e+06 1.46644e+06 1.50827e+06 1.52756e+06 1.49621e+06 1.42085e+06 1.31477e+06 1.21758e+06 1.13911e+06 1.14894e+06 954747 1.04213e+06 906549 953926 879770 898178 819389 817161 795448 812151 771435 699229 634054 599453 575264 585510 599834 620632 633686 652041 662998 682811 706612 731606 755159 779143 791993 807425 783853 793726 752140 757884 723934 731970 723859 750529 754364 769328 768133 757008 743202 725410 715611 777451 751268 790906 739011 730668 761558 766999 870438 992150 1.07949e+06 1.09756e+06 1.118e+06 1.13246e+06 1.16568e+06 1.20104e+06 1.23684e+06 1.26266e+06 1.26111e+06 1.21177e+06 1.11948e+06 1.0181e+06 898899 856058 847197 775649 717065 531883 507415 424130 485065 483271 556356 568655 655053 646792 719212 679633 667558 629651 692755 691800 688251 687821 701132 727366 663301 710541 680510 697285 711450 714531 724897 731887 749124 774886 810125 832394 849972 908205 1.04171e+06 1.21248e+06 1.29393e+06 1.30569e+06 1.2738e+06 1.23104e+06 1.20147e+06 1.15263e+06 1.09569e+06 1.03673e+06 766619 720968 553476 382902 243812 189811 183675 208937 245201 287669 305928 323082 345228 370931 421485 475825 546296 601504 670416 673883 716038 691456 732511 694876 722223 692066 700207 635380 709742 695367 1.26466e+06 1.47073e+06 1.51548e+06 1.53629e+06 1.49828e+06 1.45546e+06 1.24149e+06 379767 382960 517094 683658 661613 671781 753155 790965 856328 929899 992290 1.04204e+06 1.05052e+06 1.04792e+06 931112 733180 605044 542074 512033 552305 530873 547302 543683 529894 539098 952232 1.30409e+06 1.31911e+06 1.2307e+06 1.08855e+06 1.0919e+06 1.08084e+06 1.20051e+06 1.1318e+06 1.12988e+06 1.16561e+06 1.2334e+06 1.27274e+06 1.26643e+06 1.23448e+06 1.20195e+06 1.1956e+06 1.19499e+06 1.24592e+06 1.30771e+06 1.37694e+06 1.44404e+06 1.50379e+06 1.54079e+06 1.57932e+06 1.62359e+06 1.62139e+06 1.56229e+06 1.44748e+06 1.31382e+06 1.23372e+06 1.14584e+06 1.03465e+06 989095 995677 696076 741064 1.0034e+06 1.31829e+06 1.54978e+06 1.56411e+06 1.50809e+06 1.49296e+06 1.48815e+06 1.52676e+06 1.58751e+06 1.54603e+06 1.25027e+06 1.1861e+06 1.16789e+06 1.20272e+06 1.26003e+06 1.35198e+06 1.42084e+06 1.51263e+06 1.5304e+06 1.62929e+06 1.55855e+06 1.76414e+06 1.58249e+06 1.74836e+06 1.5517e+06 1.42651e+06 1.09026e+06 680433 241118 75557.5 56266.9 52716.9 51108.2 53238.3 51393.4 50488.5 49048.1 44153.9 41148.5 35301.9 32133.7 ) ; boundaryField { wand { type calculated; value nonuniform List<scalar> 2048 ( 66038.1 100683 154375 202801 245000 282661 321119 350501 373674 390325 389848 386234 373485 357309 320878 196500 63824.7 95705.9 147775 195566 236647 278841 315866 350872 375859 387957 395166 386592 373872 353294 322519 201407 196500 201407 267458 263274 317569 324633 382166 369916 416728 429259 468969 454213 486680 502563 529249 512545 532869 549078 561670 547497 555798 568868 570755 560825 560216 569392 563745 564231 560759 550715 536981 552487 539796 528581 526528 529279 533747 534925 580641 579926 652828 653740 691104 689736 749490 752073 847007 846303 972451 971242 996426 997332 964559 956648 934484 949723 939268 916020 891934 923453 899308 863504 840830 877849 864070 830882 828658 855299 844516 833193 842876 837654 848213 848501 862977 858290 864066 864057 852656 857592 837777 829318 801629 808863 778296 777201 754343 748701 724743 730913 712203 703714 687490 695728 684659 676534 686512 692803 686597 686845 716485 713313 765824 770508 783048 781642 770478 771623 745183 740274 697171 684234 612087 627397 563217 551122 516056 520523 503445 504690 509430 510907 534389 528839 559753 567719 612293 591374 631275 665832 719653 676481 733064 773231 816064 791321 848013 862383 891453 885212 909109 909711 921596 921419 926332 926901 946959 951122 938945 940665 903594 892599 850756 861749 819770 822788 794093 791291 777395 759371 735118 754963 733008 724878 704058 710030 688590 678896 725017 726219 763850 763513 765707 760093 756513 751929 736735 735446 716426 715203 673970 675561 608420 606398 553374 557058 520540 508506 483576 504736 530133 463114 657472 494024 564683 758738 785300 677377 757442 799191 816115 813994 856470 847401 886089 889399 920221 913840 936940 939002 941363 950144 940704 941667 921756 933089 904214 907232 883016 884075 865235 871263 864770 860257 843923 846016 811815 809586 814231 811033 718112 737981 633791 602853 493091 531208 386179 372343 292764 290721 252373 248189 237594 240626 257823 250433 285261 295915 344443 332228 382199 396650 438811 431393 489181 468337 511235 535785 572574 562769 620533 603676 635255 679007 729168 673195 720469 792853 913220 818699 1.0908e+06 1.07546e+06 1.24667e+06 1.21129e+06 1.32464e+06 1.34229e+06 1.41299e+06 1.41458e+06 1.46797e+06 1.46644e+06 1.51138e+06 1.50827e+06 1.52717e+06 1.52756e+06 1.49636e+06 1.49621e+06 1.42104e+06 1.42085e+06 1.31369e+06 1.31477e+06 1.20368e+06 1.21758e+06 1.18143e+06 1.13911e+06 1.04508e+06 1.14894e+06 1.09572e+06 954747 926317 1.04213e+06 988020 906549 890948 953926 952579 879770 874583 898178 836823 819389 795247 817161 809273 795448 804653 812151 780526 771435 695859 699229 637386 634054 592921 599453 584223 575264 581522 585510 600661 599834 620408 620632 638658 633686 648740 652041 666699 662998 682399 682811 704745 706612 730534 731606 756333 755159 776201 779143 797497 791993 798241 807425 803646 783853 769169 793726 777823 752140 738559 757884 746614 723934 726074 731970 739472 723859 738170 750529 764083 754364 766895 769328 766608 768133 758886 757008 741686 743202 727491 725410 742288 715611 726750 777451 814343 751268 762107 790906 760309 739011 743672 730668 732977 761558 794282 766999 857838 870438 1.00189e+06 992150 1.07113e+06 1.07949e+06 1.11009e+06 1.09756e+06 1.11149e+06 1.118e+06 1.13688e+06 1.13246e+06 1.16131e+06 1.16568e+06 1.20471e+06 1.20104e+06 1.23455e+06 1.23684e+06 1.26568e+06 1.26266e+06 1.26126e+06 1.26111e+06 1.21833e+06 1.21177e+06 1.11878e+06 1.11948e+06 991448 1.0181e+06 921030 898899 868377 856058 817052 847197 796908 775649 699863 717065 642080 531883 397792 507415 450171 424130 446435 485065 514840 483271 524732 556356 608979 568655 604772 655053 697981 646792 682269 719212 703448 679633 654650 667558 635423 629651 666018 692755 704348 691800 693725 688251 681985 687821 716716 701132 714912 727366 712544 663301 652249 710541 705375 680510 700352 697285 701668 711450 716308 714531 724429 724897 732403 731887 748078 749124 775318 774886 805100 810125 840360 832394 862735 849972 870652 908205 1.04266e+06 1.04171e+06 1.20779e+06 1.21248e+06 1.29436e+06 1.29393e+06 1.30488e+06 1.30569e+06 1.27457e+06 1.2738e+06 1.23071e+06 1.23104e+06 1.19404e+06 1.20147e+06 1.16495e+06 1.15263e+06 1.10389e+06 1.09569e+06 993034 1.03673e+06 826926 766619 710903 720968 554707 553476 380901 382902 240919 243812 181038 189811 179390 183675 203665 208937 248933 245201 285997 287669 306818 305928 323825 323082 344618 345228 373117 370931 418817 421485 480089 475825 541994 546296 614760 601504 649621 670416 698920 673883 686697 716038 728082 691456 694706 732511 730638 694876 691100 722223 703424 692066 671795 700207 708424 635380 619164 709742 761303 695367 1.28636e+06 1.26466e+06 1.46691e+06 1.47073e+06 1.53667e+06 1.51548e+06 1.52365e+06 1.53629e+06 1.50834e+06 1.49828e+06 1.43894e+06 1.45546e+06 1.28024e+06 1.24149e+06 358232 379767 373337 382960 556518 517094 625138 683658 670669 661613 703243 671781 727930 753155 805057 790965 859335 856328 930289 929899 995872 992290 1.03972e+06 1.04204e+06 1.06045e+06 1.05052e+06 1.01409e+06 1.04792e+06 947112 931112 823948 733180 585016 605044 509218 542074 538494 512033 521030 552305 557837 530873 541662 547302 533290 543683 539969 529894 534282 539098 964797 952232 1.30755e+06 1.30409e+06 1.3234e+06 1.31911e+06 1.22135e+06 1.2307e+06 1.05688e+06 1.08855e+06 1.03157e+06 1.0919e+06 1.18701e+06 1.08084e+06 1.11872e+06 1.20051e+06 1.1563e+06 1.1318e+06 1.12315e+06 1.12988e+06 1.14906e+06 1.16561e+06 1.22852e+06 1.2334e+06 1.2718e+06 1.27274e+06 1.26719e+06 1.26643e+06 1.23134e+06 1.23448e+06 1.20481e+06 1.20195e+06 1.19066e+06 1.1956e+06 1.19524e+06 1.19499e+06 1.24549e+06 1.24592e+06 1.30965e+06 1.30771e+06 1.37412e+06 1.37694e+06 1.44427e+06 1.44404e+06 1.50599e+06 1.50379e+06 1.54363e+06 1.54079e+06 1.59206e+06 1.57932e+06 1.60299e+06 1.62359e+06 1.61775e+06 1.62139e+06 1.57793e+06 1.56229e+06 1.43523e+06 1.44748e+06 1.31695e+06 1.31382e+06 1.22832e+06 1.23372e+06 1.14818e+06 1.14584e+06 1.03754e+06 1.03465e+06 1.03453e+06 989095 1.0105e+06 995677 682305 696076 739153 741064 996045 1.0034e+06 1.3125e+06 1.31829e+06 1.5556e+06 1.54978e+06 1.57879e+06 1.56411e+06 1.54075e+06 1.50809e+06 1.48801e+06 1.49296e+06 1.48636e+06 1.48815e+06 1.52841e+06 1.52676e+06 1.59091e+06 1.58751e+06 1.54557e+06 1.54603e+06 1.25776e+06 1.25027e+06 1.18004e+06 1.1861e+06 1.17308e+06 1.16789e+06 1.20131e+06 1.20272e+06 1.27036e+06 1.26003e+06 1.34047e+06 1.35198e+06 1.43948e+06 1.42084e+06 1.4895e+06 1.51263e+06 1.57428e+06 1.5304e+06 1.55357e+06 1.62929e+06 1.69744e+06 1.55855e+06 1.56083e+06 1.76414e+06 1.79191e+06 1.58249e+06 1.60511e+06 1.74836e+06 1.65854e+06 1.5517e+06 1.39308e+06 1.42651e+06 1.06183e+06 1.09026e+06 579504 680433 185237 241118 69713 75557.5 55060.4 56266.9 48827.2 52716.9 50410 51108.2 48833.9 53238.3 50033.9 51393.4 48433.8 50488.5 45949.1 49048.1 45146.8 44153.9 40028.1 41148.5 36206 35301.9 32034.1 32133.7 47909 47140.9 43933.4 40593.1 38814.5 36960.2 35478.4 32034.1 44328.7 43776.1 41788.5 39599.3 37442.6 36735.2 35588.9 32133.7 66038.1 63824.7 143448 141478 173752 176340 198569 189038 193693 201601 188996 181216 164757 164983 151910 150804 138265 137082 114049 115873 85569.3 87941.5 71147.6 73574.2 75213 79076.3 57314.2 66489.1 190567 185712 370550 368058 531787 536301 659877 652635 745606 748910 818912 817217 880761 869629 913094 926616 953568 946980 958092 960338 938112 925475 864132 875578 792979 796891 729392 730807 689345 683809 651900 656220 622886 620623 586929 586713 544412 543222 495290 493746 450875 448325 408604 406473 375869 363258 341597 334901 313423 305985 286052 284840 260829 255886 224449 227749 185621 179968 112437 113203 299759 297724 530156 526098 628446 628716 679621 679735 697297 696458 692672 695412 679704 690762 689132 678255 692637 698911 708868 707316 713864 714421 703605 704315 674795 673867 632712 631817 587915 589617 553710 550299 521128 519096 485436 491637 452930 449147 412990 410738 379560 381366 363662 361879 348760 348227 334078 334081 319301 315755 299760 298208 279704 272975 250979 248936 201262 201187 124913 121869 366512 362776 556564 555277 669393 658300 710730 713018 722754 721338 704399 707167 675368 670254 627468 629639 577197 586330 548060 527068 483861 504377 452879 460845 444814 417316 383496 458074 483705 384922 424349 512925 545711 479417 538413 568592 595322 568247 597679 608270 629176 627316 663730 665259 719877 714350 740365 748453 649810 644594 500137 501911 392992 408847 345496 350228 294724 302893 187992 202240 337505 324073 458338 455006 531310 532391 592319 580589 613383 616627 610631 608894 578070 580615 544239 542733 520105 522569 530386 514751 523466 552195 582644 539516 548977 676155 742759 553255 589423 795744 847763 703043 752846 890804 916829 767162 774707 940330 973359 819372 912706 1.01043e+06 1.03001e+06 985733 976040 994122 883198 881449 727633 730813 582324 590098 480137 487653 379247 398182 292936 311680 203355 214980 316333 317677 495549 496104 631517 623536 743718 738994 863222 868638 961608 966793 1.02754e+06 1.01592e+06 1.05296e+06 1.05316e+06 1.06502e+06 1.07421e+06 1.08197e+06 1.07196e+06 1.07486e+06 1.08944e+06 1.09333e+06 1.06234e+06 1.0187e+06 1.07692e+06 913072 1.0021e+06 929344 621229 523127 725325 561903 443484 380901 487986 429645 340014 329426 388644 371793 335331 371486 377663 425307 424662 483499 488992 572200 567846 685819 695257 826823 817156 665686 678233 339222 347701 217133 237236 277306 282489 370987 367935 445527 433949 513184 502813 537854 537183 476062 480306 527914 537605 624441 629101 667221 664124 680052 690183 710623 685353 698937 725241 742021 712694 734765 757918 780743 756262 781577 802155 826343 807159 840892 845123 861583 868966 892511 877018 904351 905173 913445 917626 964551 924811 933927 964022 916809 896096 823553 832782 685182 656458 476781 487472 258633 265314 128819 130285 145214 151339 244420 259306 307854 317052 333195 336490 317069 345605 334030 313198 356490 363399 435072 422552 555610 575992 719782 702530 830366 857788 969623 910515 894378 1.04632e+06 1.06221e+06 677574 662908 978128 924277 775782 874669 910607 941947 930718 948090 948229 926932 924894 878572 887884 841290 820590 763061 785117 733927 718981 698665 707403 666693 668989 618006 613018 512676 498516 355061 340813 182766 172920 21803.7 22432.2 30905.4 34975.6 38816.2 46272.8 51972.4 64439.7 68150.2 91229.6 126631 138756 223552 202053 270530 293499 378236 338216 435939 448939 526273 538484 629497 588779 639105 664922 656448 661997 647450 642465 633337 617150 625213 624428 636216 632330 655276 651676 651757 660577 609125 600993 490944 498392 374190 373060 258510 255248 144164 147010 76934.7 72123.3 43144.6 41540.2 30815.7 29950.9 25709.9 24394.1 19744.1 19104.5 19854.3 19937.4 26461.6 24982 32608.2 32352.4 41864.1 39408.5 50564.7 47840.9 57979.4 55750.7 60741.2 61929.9 65061.3 66223.3 81968.1 82016.3 192210 188772 342243 342744 517697 521103 705472 725335 932322 946527 1.13334e+06 1.11672e+06 1.165e+06 1.02313e+06 959463 1.11595e+06 1.29741e+06 882495 1.11766e+06 1.45171e+06 1.54422e+06 1.49393e+06 1.67671e+06 1.67746e+06 1.77134e+06 1.76642e+06 1.80802e+06 1.81052e+06 1.79099e+06 1.79159e+06 1.70389e+06 1.70628e+06 1.55357e+06 1.55384e+06 1.42388e+06 1.41074e+06 1.25051e+06 1.24742e+06 1.0308e+06 1.02758e+06 672008 670047 26298.4 25581.8 31870 32129 42048.9 41995 58020.2 56380.8 73459.3 78269.8 97249.6 97279.1 115275 120644 142266 149364 185826 188437 215606 230855 289758 267463 373742 389803 591250 603429 937622 903998 1.14135e+06 1.16858e+06 1.30156e+06 1.29909e+06 1.38971e+06 1.40614e+06 1.46196e+06 1.49522e+06 1.5375e+06 1.57233e+06 1.61128e+06 1.64326e+06 1.67338e+06 1.69917e+06 1.69166e+06 1.70801e+06 1.59505e+06 1.6008e+06 1.1502e+06 1.14469e+06 466259 423409 362325 366457 482894 468782 788893 747250 780851 789104 370931 385632 27428.4 27204.2 35930.9 35250.2 44538.8 42132.9 69773.8 64109.3 163207 160306 306874 304504 451454 450848 598483 576247 681127 722825 840693 815925 1.02306e+06 1.02935e+06 1.28045e+06 1.25816e+06 1.41831e+06 1.49175e+06 1.5912e+06 1.52184e+06 1.55227e+06 1.60551e+06 1.53717e+06 1.5206e+06 1.41575e+06 1.42777e+06 1.27122e+06 1.26935e+06 1.08441e+06 1.09064e+06 880868 878785 641981 656448 425184 392144 185923 215312 98591.1 93421.1 61501.7 60834 48389.5 47938.2 41123.5 42244.5 37647.4 38023.4 34536.5 36537.3 31163.5 30444.9 32004.4 32344.8 40146.8 35707.2 41320.3 42260.7 55096.3 56666 73047.3 75862.3 90711.7 91331.3 100950 103268 105439 109925 108019 110454 108449 111450 111029 113918 116619 112383 111951 117307 113573 105170 96996.7 100679 91276.7 82165.2 76147.5 74466.8 67860.1 65168.6 61394.5 59361 56968.8 54455.6 51378.6 52997.1 51029 48094.8 48108 48895.6 49038.8 47044.5 47777.8 45531.5 42764.2 46393.9 42474.4 42077 40988 40921.4 39327.4 41191.9 37949.5 37173.2 57314.2 190567 112437 299759 124913 366512 187992 337505 203355 316333 217133 277306 128819 145214 182766 21803.7 19744.1 19854.3 672008 26298.4 370931 27428.4 31163.5 32004.4 37949.5 139055 272874 204350 416186 226041 461816 319473 416523 379705 550683 559613 432298 273135 278854 497732 39971.7 23921.4 31890.8 1.12034e+06 47367.5 955790 82214.6 28232.6 74429.4 37226.4 214593 373632 242350 539699 276732 554054 417966 500761 504726 709324 743770 548771 266248 395254 492895 61289.2 29787.3 36785.6 972102 51241.2 320080 116267 27581.5 106457 36649.4 283822 527238 281821 684949 322677 618310 505938 559944 585756 863840 809445 620580 251855 461132 455726 100577 42895.1 42395.2 793320 60438 114125 155776 33070.4 144329 37125.7 358030 662891 342751 786420 395577 587731 583360 613323 645689 1.00454e+06 807456 695529 181773 515371 412988 142199 73061.3 50466.3 618926 67825.3 66004.5 206873 55513.2 202724 42611.7 430570 787162 411967 881355 446676 496254 642200 673816 682476 1.07512e+06 739731 767871 127207 532603 408730 202596 118906 64803.9 558790 90046.5 151721 267501 94713.1 258315 45311.9 497788 851339 501818 992878 475981 398530 695114 768969 715528 939061 643998 840440 73662.4 624730 514344 213718 188219 111618 889654 141662 204851 375988 177644 334330 55268.3 568695 782517 899315 835456 743469 1.08012e+06 1.02756e+06 1.13643e+06 495729 196416 401795 262041 772501 1.11526e+06 908374 1.07469e+06 749155 430838 857837 450473 606143 747023 889546 792245 43924.4 461583 598340 881584 698742 635988 65219.4 738408 326948 525173 261391 378135 104263 2233.51 310188 1787.79 415552 900225 305620 435.887 301789 957631 437732 841470 109964 72364.6 47909 66489.1 185712 113203 297724 121869 362776 202240 324073 214980 317677 237236 282489 130285 151339 172920 22432.2 19104.5 19937.4 670047 25581.8 385632 27204.2 30444.9 32344.8 37173.2 143110 272354 209443 415428 223825 462506 325756 430225 386217 545195 555803 444961 237326 284546 495278 38222.9 24039.1 31914.4 1.1119e+06 44742 927282 88568.1 28201 86195.8 37098.6 217240 379772 244226 540414 265364 549179 425463 489043 505912 704230 742543 540732 293981 380476 487214 64654.9 29696.6 35567.6 971845 53407.6 400605 120497 27008.9 113381 34635.5 290475 509613 289719 686791 327518 621159 508649 569308 592088 859683 812749 624939 252167 464050 450385 96486.2 45078.6 41609.8 787682 62137.4 102142 159165 35135.9 158321 36322.5 355398 666185 342367 788365 385518 586277 579870 615871 645532 1.0055e+06 802573 695483 201946 512413 407549 152391 73515.4 51048.1 626709 76609.6 104104 206513 52011.4 208476 39733 423967 776888 411591 879125 451156 495216 645309 655738 686112 1.0708e+06 736896 764926 127365 533065 398755 200302 124468 66110.7 553820 89262 68916.2 266649 96627.6 277222 47080.2 500655 846410 507006 967817 475407 401710 694789 774629 714864 1.01443e+06 660505 843942 81607.5 496805 505442 180687 189061 112729 893481 144279 223430 365398 177860 348637 54897.2 588431 812999 900295 833143 727618 1.0132e+06 1.08557e+06 1.1629e+06 494794 200266 394588 272398 777948 1.12477e+06 912088 1.04314e+06 749102 403384 763312 383767 606365 749998 891329 790186 43108.7 529270 711077 891922 679704 656693 239800 708512 315400 510618 256041 340217 105595 2280.62 292888 1886.94 274887 943382 434358 4784.01 299468 977590 445252 855587 121806 76585.1 44328.7 ) ; } frontAndBack { type empty; } } // ************************************************************************* //
ecf9f3d6848c2b95c3e0cd5e2d769c7c65868add
dcb68c87482166c15576e798a01b1880034c620c
/cpp_indie_studio/src/Threads/DataQueue.hpp
0a5edafc02bef11c576736b8092288ee2554e357
[]
no_license
Toinoux/Epitech
7a5cc1b954c951f765c424c176e128b6ce6f60ae
bdb86c9e679f7121890ec07f2405a0c1afa12c68
refs/heads/master
2020-03-22T21:49:13.546508
2019-03-12T16:17:49
2019-03-12T16:17:49
140,710,308
0
0
null
null
null
null
UTF-8
C++
false
false
1,484
hpp
/* ** EPITECH PROJECT, 2018 ** indie studio ** File description: ** DataQueue */ #pragma once #include <mutex> #include <queue> #include "IDataQueue.hpp" namespace bbm { template <typename T> class DataQueue : public IDataQueue<T> { public: DataQueue(); DataQueue(const DataQueue<T> &dataQueue) = delete; ~DataQueue() = default; DataQueue<T> &operator=(DataQueue<T> &dataQueue) = delete; public: void push(const T &value) final; void pop() final; bool empty() final; size_t size() final; const T &front() final; protected: std::mutex _push; std::mutex _pop; std::mutex _empty; std::mutex _size; std::mutex _front; std::queue<T> _dataQueue; }; } template<typename T> bbm::DataQueue<T>::DataQueue() : _push(), _pop(), _empty(), _size(), _front(), _dataQueue() { } template<typename T> void bbm::DataQueue<T>::push(const T &value) { std::unique_lock<std::mutex> uniqueLock(_push); _dataQueue.push(value); } template<typename T> void bbm::DataQueue<T>::pop() { std::unique_lock<std::mutex> uniqueLock(_pop); _dataQueue.pop(); } template<typename T> bool bbm::DataQueue<T>::empty() { std::unique_lock<std::mutex> uniqueLock(_empty); return _dataQueue.empty(); } template<typename T> size_t bbm::DataQueue<T>::size() { std::unique_lock<std::mutex> uniqueLock(_size); return _dataQueue.size(); } template<typename T> const T &bbm::DataQueue<T>::front() { std::unique_lock<std::mutex> uniqueLock(_front); return _dataQueue.front(); };
99cd4452d0917a4666de2c9b5307520d6a678564
107dd749c9886d781894e5238d9c2419f7952649
/src/qt/C4Tstrings.cpp
f8b5b03e5b2efc02b609c8bfcf577791a2a969fe
[ "MIT" ]
permissive
Coin4Trade/Coin4Trade
ae58e76e09ed5a0cb62def5b91efd848cd77a284
fb5c4b7580212cd7e3daacd93fabf1be4d20ff7c
refs/heads/master
2023-08-23T22:42:33.681882
2021-10-02T20:58:21
2021-10-02T20:58:21
281,785,399
1
0
null
null
null
null
UTF-8
C++
false
false
32,983
cpp
#include <QtGlobal> // Automatically generated by extract_strings.py #ifdef __GNUC__ #define UNUSED __attribute__((unused)) #else #define UNUSED #endif static const char UNUSED *C4T_strings[] = { QT_TRANSLATE_NOOP("C4T-core", " mints deleted\n"), QT_TRANSLATE_NOOP("C4T-core", " mints updated, "), QT_TRANSLATE_NOOP("C4T-core", " unconfirmed transactions removed\n"), QT_TRANSLATE_NOOP("C4T-core", "" "(1 = keep tx meta data e.g. account owner and payment request information, 2 " "= drop tx meta data)"), QT_TRANSLATE_NOOP("C4T-core", "" "Allow JSON-RPC connections from specified source. Valid for <ip> are a " "single IP (e.g. 1.2.3.4), a network/netmask (e.g. 1.2.3.4/255.255.255.0) or " "a network/CIDR (e.g. 1.2.3.4/24). This option can be specified multiple times"), QT_TRANSLATE_NOOP("C4T-core", "" "Bind to given address and always listen on it. Use [host]:port notation for " "IPv6"), QT_TRANSLATE_NOOP("C4T-core", "" "Bind to given address and whitelist peers connecting to it. Use [host]:port " "notation for IPv6"), QT_TRANSLATE_NOOP("C4T-core", "" "Bind to given address to listen for JSON-RPC connections. Use [host]:port " "notation for IPv6. This option can be specified multiple times (default: " "bind to all interfaces)"), QT_TRANSLATE_NOOP("C4T-core", "" "Calculated accumulator checkpoint is not what is recorded by block index"), QT_TRANSLATE_NOOP("C4T-core", "" "Cannot obtain a lock on data directory %s. C4T Core is probably already " "running."), QT_TRANSLATE_NOOP("C4T-core", "" "Change automatic finalized budget voting behavior. mode=auto: Vote for only " "exact finalized budget match to my generated budget. (string, default: auto)"), QT_TRANSLATE_NOOP("C4T-core", "" "Continuously rate-limit free transactions to <n>*1000 bytes per minute " "(default:%u)"), QT_TRANSLATE_NOOP("C4T-core", "" "Create new files with system default permissions, instead of umask 077 (only " "effective with disabled wallet functionality)"), QT_TRANSLATE_NOOP("C4T-core", "" "Delete all wallet transactions and only recover those parts of the " "blockchain through -rescan on startup"), QT_TRANSLATE_NOOP("C4T-core", "" "Delete all zerocoin spends and mints that have been recorded to the " "blockchain database and reindex them (0-1, default: %u)"), QT_TRANSLATE_NOOP("C4T-core", "" "Disable all C4T specific functionality (Masternodes, Zerocoin, SwiftX, " "Budgeting) (0-1, default: %u)"), QT_TRANSLATE_NOOP("C4T-core", "" "Distributed under the MIT software license, see the accompanying file " "COPYING or <http://www.opensource.org/licenses/mit-license.php>."), QT_TRANSLATE_NOOP("C4T-core", "" "Enable SwiftX, show confirmations for locked transactions (bool, default: %s)"), QT_TRANSLATE_NOOP("C4T-core", "" "Enable automatic wallet backups triggered after each zC4T minting (0-1, " "default: %u)"), QT_TRANSLATE_NOOP("C4T-core", "" "Enable or disable staking functionality for C4T inputs (0-1, default: %u)"), QT_TRANSLATE_NOOP("C4T-core", "" "Enable or disable staking functionality for zC4T inputs (0-1, default: %u)"), QT_TRANSLATE_NOOP("C4T-core", "" "Enable spork administration functionality with the appropriate private key."), QT_TRANSLATE_NOOP("C4T-core", "" "Enter regression test mode, which uses a special chain in which blocks can " "be solved instantly."), QT_TRANSLATE_NOOP("C4T-core", "" "Error: Listening for incoming connections failed (listen returned error %s)"), QT_TRANSLATE_NOOP("C4T-core", "" "Error: The transaction is larger than the maximum allowed transaction size!"), QT_TRANSLATE_NOOP("C4T-core", "" "Error: The transaction was rejected! This might happen if some of the coins " "in your wallet were already spent, such as if you used a copy of wallet.dat " "and coins were spent in the copy but not marked as spent here."), QT_TRANSLATE_NOOP("C4T-core", "" "Error: This transaction requires a transaction fee of at least %s because of " "its amount, complexity, or use of recently received funds!"), QT_TRANSLATE_NOOP("C4T-core", "" "Error: Unsupported argument -checklevel found. Checklevel must be level 4."), QT_TRANSLATE_NOOP("C4T-core", "" "Error: Unsupported argument -socks found. Setting SOCKS version isn't " "possible anymore, only SOCKS5 proxies are supported."), QT_TRANSLATE_NOOP("C4T-core", "" "Execute command when a relevant alert is received or we see a really long " "fork (%s in cmd is replaced by message)"), QT_TRANSLATE_NOOP("C4T-core", "" "Execute command when a wallet transaction changes (%s in cmd is replaced by " "TxID)"), QT_TRANSLATE_NOOP("C4T-core", "" "Execute command when the best block changes (%s in cmd is replaced by block " "hash)"), QT_TRANSLATE_NOOP("C4T-core", "" "Execute command when the best block changes and its size is over (%s in cmd " "is replaced by block hash, %d with the block size)"), QT_TRANSLATE_NOOP("C4T-core", "" "Failed to find coin set amongst held coins with less than maxNumber of Spends"), QT_TRANSLATE_NOOP("C4T-core", "" "Fees (in C4T/Kb) smaller than this are considered zero fee for relaying " "(default: %s)"), QT_TRANSLATE_NOOP("C4T-core", "" "Fees (in C4T/Kb) smaller than this are considered zero fee for transaction " "creation (default: %s)"), QT_TRANSLATE_NOOP("C4T-core", "" "Flush database activity from memory pool to disk log every <n> megabytes " "(default: %u)"), QT_TRANSLATE_NOOP("C4T-core", "" "Found unconfirmed denominated outputs, will wait till they confirm to " "continue."), QT_TRANSLATE_NOOP("C4T-core", "" "If paytxfee is not set, include enough fee so transactions begin " "confirmation on average within n blocks (default: %u)"), QT_TRANSLATE_NOOP("C4T-core", "" "In rare cases, a spend with 7 coins exceeds our maximum allowable " "transaction size, please retry spend using 6 or less coins"), QT_TRANSLATE_NOOP("C4T-core", "" "In this mode -genproclimit controls how many blocks are generated " "immediately."), QT_TRANSLATE_NOOP("C4T-core", "" "Insufficient or insufficient confirmed funds, you might need to wait a few " "minutes and try again."), QT_TRANSLATE_NOOP("C4T-core", "" "Invalid amount for -maxtxfee=<amount>: '%s' (must be at least the minrelay " "fee of %s to prevent stuck transactions)"), QT_TRANSLATE_NOOP("C4T-core", "" "Keep the specified amount available for spending at all times (default: 0)"), QT_TRANSLATE_NOOP("C4T-core", "" "Log transaction priority and fee per kB when mining blocks (default: %u)"), QT_TRANSLATE_NOOP("C4T-core", "" "Maintain a full transaction index, used by the getrawtransaction rpc call " "(default: %u)"), QT_TRANSLATE_NOOP("C4T-core", "" "Maximum size of data in data carrier transactions we relay and mine " "(default: %u)"), QT_TRANSLATE_NOOP("C4T-core", "" "Maximum total fees to use in a single wallet transaction, setting too low " "may abort large transactions (default: %s)"), QT_TRANSLATE_NOOP("C4T-core", "" "Number of seconds to keep misbehaving peers from reconnecting (default: %u)"), QT_TRANSLATE_NOOP("C4T-core", "" "Obfuscation uses exact denominated amounts to send funds, you might simply " "need to anonymize some more coins."), QT_TRANSLATE_NOOP("C4T-core", "" "Output debugging information (default: %u, supplying <category> is optional)"), QT_TRANSLATE_NOOP("C4T-core", "" "Preferred Denomination for automatically minted Zerocoin " "(1/5/10/50/100/500/1000/5000), 0 for no preference. default: %u)"), QT_TRANSLATE_NOOP("C4T-core", "" "Query for peer addresses via DNS lookup, if low on addresses (default: 1 " "unless -connect)"), QT_TRANSLATE_NOOP("C4T-core", "" "Randomize credentials for every proxy connection. This enables Tor stream " "isolation (default: %u)"), QT_TRANSLATE_NOOP("C4T-core", "" "Require high priority for relaying free or low-fee transactions (default:%u)"), QT_TRANSLATE_NOOP("C4T-core", "" "Send trace/debug info to console instead of debug.log file (default: %u)"), QT_TRANSLATE_NOOP("C4T-core", "" "Set maximum size of high-priority/low-fee transactions in bytes (default: %d)"), QT_TRANSLATE_NOOP("C4T-core", "" "Set the number of script verification threads (%u to %d, 0 = auto, <0 = " "leave that many cores free, default: %d)"), QT_TRANSLATE_NOOP("C4T-core", "" "Set the number of threads for coin generation if enabled (-1 = all cores, " "default: %d)"), QT_TRANSLATE_NOOP("C4T-core", "" "Show N confirmations for a successfully locked transaction (0-9999, default: " "%u)"), QT_TRANSLATE_NOOP("C4T-core", "" "Specify custom backup path to add a copy of any automatic zC4T backup. If " "set as dir, every backup generates a timestamped file. If set as file, will " "rewrite to that file every backup. If backuppath is set as well, 4 backups " "will happen"), QT_TRANSLATE_NOOP("C4T-core", "" "Specify custom backup path to add a copy of any wallet backup. If set as " "dir, every backup generates a timestamped file. If set as file, will rewrite " "to that file every backup."), QT_TRANSLATE_NOOP("C4T-core", "" "Support filtering of blocks and transaction with bloom filters (default: %u)"), QT_TRANSLATE_NOOP("C4T-core", "" "SwiftX requires inputs with at least 6 confirmations, you might need to wait " "a few minutes and try again."), QT_TRANSLATE_NOOP("C4T-core", "" "This is a pre-release test build - use at your own risk - do not use for " "staking or merchant applications!"), QT_TRANSLATE_NOOP("C4T-core", "" "This product includes software developed by the OpenSSL Project for use in " "the OpenSSL Toolkit <https://www.openssl.org/> and cryptographic software " "written by Eric Young and UPnP software written by Thomas Bernard."), QT_TRANSLATE_NOOP("C4T-core", "" "Unable to bind to %s on this computer. C4T Core is probably already running."), QT_TRANSLATE_NOOP("C4T-core", "" "Unable to locate enough Obfuscation denominated funds for this transaction."), QT_TRANSLATE_NOOP("C4T-core", "" "Unable to locate enough Obfuscation non-denominated funds for this " "transaction that are not equal 10000 C4T."), QT_TRANSLATE_NOOP("C4T-core", "" "Unable to locate enough funds for this transaction that are not equal 10000 " "C4T."), QT_TRANSLATE_NOOP("C4T-core", "" "Use separate SOCKS5 proxy to reach peers via Tor hidden services (default: " "%s)"), QT_TRANSLATE_NOOP("C4T-core", "" "Warning: -maxtxfee is set very high! Fees this large could be paid on a " "single transaction."), QT_TRANSLATE_NOOP("C4T-core", "" "Warning: -paytxfee is set very high! This is the transaction fee you will " "pay if you send a transaction."), QT_TRANSLATE_NOOP("C4T-core", "" "Warning: Please check that your computer's date and time are correct! If " "your clock is wrong C4T Core will not work properly."), QT_TRANSLATE_NOOP("C4T-core", "" "Warning: The network does not appear to fully agree! Some miners appear to " "be experiencing issues."), QT_TRANSLATE_NOOP("C4T-core", "" "Warning: We do not appear to fully agree with our peers! You may need to " "upgrade, or other nodes may need to upgrade."), QT_TRANSLATE_NOOP("C4T-core", "" "Warning: error reading wallet.dat! All keys read correctly, but transaction " "data or address book entries might be missing or incorrect."), QT_TRANSLATE_NOOP("C4T-core", "" "Warning: wallet.dat corrupt, data salvaged! Original wallet.dat saved as " "wallet.{timestamp}.bak in %s; if your balance or transactions are incorrect " "you should restore from a backup."), QT_TRANSLATE_NOOP("C4T-core", "" "Whitelist peers connecting from the given netmask or IP address. Can be " "specified multiple times."), QT_TRANSLATE_NOOP("C4T-core", "" "Whitelisted peers cannot be DoS banned and their transactions are always " "relayed, even if they are already in the mempool, useful e.g. for a gateway"), QT_TRANSLATE_NOOP("C4T-core", "" "You must specify a masternodeprivkey in the configuration. Please see " "documentation for help."), QT_TRANSLATE_NOOP("C4T-core", "(19333 could be used only on mainnet)"), QT_TRANSLATE_NOOP("C4T-core", "(default: %s)"), QT_TRANSLATE_NOOP("C4T-core", "(default: 1)"), QT_TRANSLATE_NOOP("C4T-core", "(must be 19333 for mainnet)"), QT_TRANSLATE_NOOP("C4T-core", "<category> can be:"), QT_TRANSLATE_NOOP("C4T-core", "Accept command line and JSON-RPC commands"), QT_TRANSLATE_NOOP("C4T-core", "Accept connections from outside (default: 1 if no -proxy or -connect)"), QT_TRANSLATE_NOOP("C4T-core", "Accept public REST requests (default: %u)"), QT_TRANSLATE_NOOP("C4T-core", "Add a node to connect to and attempt to keep the connection open"), QT_TRANSLATE_NOOP("C4T-core", "Allow DNS lookups for -addnode, -seednode and -connect"), QT_TRANSLATE_NOOP("C4T-core", "Already have that input."), QT_TRANSLATE_NOOP("C4T-core", "Always query for peer addresses via DNS lookup (default: %u)"), QT_TRANSLATE_NOOP("C4T-core", "Attempt to force blockchain corruption recovery"), QT_TRANSLATE_NOOP("C4T-core", "Attempt to recover private keys from a corrupt wallet.dat"), QT_TRANSLATE_NOOP("C4T-core", "Automatically create Tor hidden service (default: %d)"), QT_TRANSLATE_NOOP("C4T-core", "Block creation options:"), QT_TRANSLATE_NOOP("C4T-core", "Calculating missing accumulators..."), QT_TRANSLATE_NOOP("C4T-core", "Can't denominate: no compatible inputs left."), QT_TRANSLATE_NOOP("C4T-core", "Can't find random Masternode."), QT_TRANSLATE_NOOP("C4T-core", "Can't mix while sync in progress."), QT_TRANSLATE_NOOP("C4T-core", "Cannot downgrade wallet"), QT_TRANSLATE_NOOP("C4T-core", "Cannot resolve -bind address: '%s'"), QT_TRANSLATE_NOOP("C4T-core", "Cannot resolve -externalip address: '%s'"), QT_TRANSLATE_NOOP("C4T-core", "Cannot resolve -whitebind address: '%s'"), QT_TRANSLATE_NOOP("C4T-core", "Cannot write default address"), QT_TRANSLATE_NOOP("C4T-core", "CoinSpend: Accumulator witness does not verify"), QT_TRANSLATE_NOOP("C4T-core", "Collateral not valid."), QT_TRANSLATE_NOOP("C4T-core", "Connect only to the specified node(s)"), QT_TRANSLATE_NOOP("C4T-core", "Connect through SOCKS5 proxy"), QT_TRANSLATE_NOOP("C4T-core", "Connect to a node to retrieve peer addresses, and disconnect"), QT_TRANSLATE_NOOP("C4T-core", "Connection options:"), QT_TRANSLATE_NOOP("C4T-core", "Copyright (C) 2009-%i The Bitcoin Core Developers"), QT_TRANSLATE_NOOP("C4T-core", "Copyright (C) 2014-%i The Dash Core Developers"), QT_TRANSLATE_NOOP("C4T-core", "Copyright (C) %i The C4T Core Developers"), QT_TRANSLATE_NOOP("C4T-core", "Corrupted block database detected"), QT_TRANSLATE_NOOP("C4T-core", "Could not parse masternode.conf"), QT_TRANSLATE_NOOP("C4T-core", "Debugging/Testing options:"), QT_TRANSLATE_NOOP("C4T-core", "Delete blockchain folders and resync from scratch"), QT_TRANSLATE_NOOP("C4T-core", "Disable OS notifications for incoming transactions (default: %u)"), QT_TRANSLATE_NOOP("C4T-core", "Disable safemode, override a real safe mode event (default: %u)"), QT_TRANSLATE_NOOP("C4T-core", "Discover own IP address (default: 1 when listening and no -externalip)"), QT_TRANSLATE_NOOP("C4T-core", "Display the stake modifier calculations in the debug.log file."), QT_TRANSLATE_NOOP("C4T-core", "Display verbose coin stake messages in the debug.log file."), QT_TRANSLATE_NOOP("C4T-core", "Do not load the wallet and disable wallet RPC calls"), QT_TRANSLATE_NOOP("C4T-core", "Do you want to rebuild the block database now?"), QT_TRANSLATE_NOOP("C4T-core", "Done loading"), QT_TRANSLATE_NOOP("C4T-core", "Enable automatic Zerocoin minting (0-1, default: %u)"), QT_TRANSLATE_NOOP("C4T-core", "Enable publish hash block in <address>"), QT_TRANSLATE_NOOP("C4T-core", "Enable publish hash transaction (locked via SwiftX) in <address>"), QT_TRANSLATE_NOOP("C4T-core", "Enable publish hash transaction in <address>"), QT_TRANSLATE_NOOP("C4T-core", "Enable publish raw block in <address>"), QT_TRANSLATE_NOOP("C4T-core", "Enable publish raw transaction (locked via SwiftX) in <address>"), QT_TRANSLATE_NOOP("C4T-core", "Enable publish raw transaction in <address>"), QT_TRANSLATE_NOOP("C4T-core", "Enable staking functionality (0-1, default: %u)"), QT_TRANSLATE_NOOP("C4T-core", "Enable the client to act as a masternode (0-1, default: %u)"), QT_TRANSLATE_NOOP("C4T-core", "Entries are full."), QT_TRANSLATE_NOOP("C4T-core", "Error connecting to Masternode."), QT_TRANSLATE_NOOP("C4T-core", "Error initializing block database"), QT_TRANSLATE_NOOP("C4T-core", "Error initializing wallet database environment %s!"), QT_TRANSLATE_NOOP("C4T-core", "Error loading block database"), QT_TRANSLATE_NOOP("C4T-core", "Error loading wallet.dat"), QT_TRANSLATE_NOOP("C4T-core", "Error loading wallet.dat: Wallet corrupted"), QT_TRANSLATE_NOOP("C4T-core", "Error loading wallet.dat: Wallet requires newer version of C4T Core"), QT_TRANSLATE_NOOP("C4T-core", "Error opening block database"), QT_TRANSLATE_NOOP("C4T-core", "Error reading from database, shutting down."), QT_TRANSLATE_NOOP("C4T-core", "Error recovering public key."), QT_TRANSLATE_NOOP("C4T-core", "Error writing zerocoinDB to disk"), QT_TRANSLATE_NOOP("C4T-core", "Error"), QT_TRANSLATE_NOOP("C4T-core", "Error: A fatal internal error occured, see debug.log for details"), QT_TRANSLATE_NOOP("C4T-core", "Error: A fatal internal error occurred, see debug.log for details"), QT_TRANSLATE_NOOP("C4T-core", "Error: Can't select current denominated inputs"), QT_TRANSLATE_NOOP("C4T-core", "Error: Disk space is low!"), QT_TRANSLATE_NOOP("C4T-core", "Error: No valid utxo!"), QT_TRANSLATE_NOOP("C4T-core", "Error: Unsupported argument -tor found, use -onion."), QT_TRANSLATE_NOOP("C4T-core", "Error: Wallet locked, unable to create transaction!"), QT_TRANSLATE_NOOP("C4T-core", "Error: You already have pending entries in the Obfuscation pool"), QT_TRANSLATE_NOOP("C4T-core", "Failed to calculate accumulator checkpoint"), QT_TRANSLATE_NOOP("C4T-core", "Failed to create mint"), QT_TRANSLATE_NOOP("C4T-core", "Failed to deserialize"), QT_TRANSLATE_NOOP("C4T-core", "Failed to find Zerocoins in wallet.dat"), QT_TRANSLATE_NOOP("C4T-core", "Failed to listen on any port. Use -listen=0 if you want this."), QT_TRANSLATE_NOOP("C4T-core", "Failed to parse host:port string"), QT_TRANSLATE_NOOP("C4T-core", "Failed to read block"), QT_TRANSLATE_NOOP("C4T-core", "Failed to select a zerocoin"), QT_TRANSLATE_NOOP("C4T-core", "Failed to wipe zerocoinDB"), QT_TRANSLATE_NOOP("C4T-core", "Failed to write coin serial number into wallet"), QT_TRANSLATE_NOOP("C4T-core", "Fee (in C4T/kB) to add to transactions you send (default: %s)"), QT_TRANSLATE_NOOP("C4T-core", "Finalizing transaction."), QT_TRANSLATE_NOOP("C4T-core", "Force safe mode (default: %u)"), QT_TRANSLATE_NOOP("C4T-core", "Found enough users, signing ( waiting %s )"), QT_TRANSLATE_NOOP("C4T-core", "Found enough users, signing ..."), QT_TRANSLATE_NOOP("C4T-core", "Generate coins (default: %u)"), QT_TRANSLATE_NOOP("C4T-core", "How many blocks to check at startup (default: %u, 0 = all)"), QT_TRANSLATE_NOOP("C4T-core", "If <category> is not supplied, output all debugging information."), QT_TRANSLATE_NOOP("C4T-core", "Importing..."), QT_TRANSLATE_NOOP("C4T-core", "Imports blocks from external blk000??.dat file"), QT_TRANSLATE_NOOP("C4T-core", "Include IP addresses in debug output (default: %u)"), QT_TRANSLATE_NOOP("C4T-core", "Incompatible mode."), QT_TRANSLATE_NOOP("C4T-core", "Incompatible version."), QT_TRANSLATE_NOOP("C4T-core", "Incorrect or no genesis block found. Wrong datadir for network?"), QT_TRANSLATE_NOOP("C4T-core", "Information"), QT_TRANSLATE_NOOP("C4T-core", "Initialization sanity check failed. C4T Core is shutting down."), QT_TRANSLATE_NOOP("C4T-core", "Input is not valid."), QT_TRANSLATE_NOOP("C4T-core", "Insufficient funds"), QT_TRANSLATE_NOOP("C4T-core", "Insufficient funds."), QT_TRANSLATE_NOOP("C4T-core", "Invalid -onion address or hostname: '%s'"), QT_TRANSLATE_NOOP("C4T-core", "Invalid amount for -maxtxfee=<amount>: '%s'"), QT_TRANSLATE_NOOP("C4T-core", "Invalid amount for -minrelaytxfee=<amount>: '%s'"), QT_TRANSLATE_NOOP("C4T-core", "Invalid amount for -mintxfee=<amount>: '%s'"), QT_TRANSLATE_NOOP("C4T-core", "Invalid amount for -paytxfee=<amount>: '%s' (must be at least %s)"), QT_TRANSLATE_NOOP("C4T-core", "Invalid amount for -paytxfee=<amount>: '%s'"), QT_TRANSLATE_NOOP("C4T-core", "Invalid amount for -reservebalance=<amount>"), QT_TRANSLATE_NOOP("C4T-core", "Invalid amount"), QT_TRANSLATE_NOOP("C4T-core", "Invalid masternodeprivkey. Please see documenation."), QT_TRANSLATE_NOOP("C4T-core", "Invalid netmask specified in -whitelist: '%s'"), QT_TRANSLATE_NOOP("C4T-core", "Invalid port detected in masternode.conf"), QT_TRANSLATE_NOOP("C4T-core", "Invalid private key."), QT_TRANSLATE_NOOP("C4T-core", "Invalid script detected."), QT_TRANSLATE_NOOP("C4T-core", "Keep at most <n> unconnectable transactions in memory (default: %u)"), QT_TRANSLATE_NOOP("C4T-core", "Last Obfuscation was too recent."), QT_TRANSLATE_NOOP("C4T-core", "Last successful Obfuscation action was too recent."), QT_TRANSLATE_NOOP("C4T-core", "Limit size of signature cache to <n> entries (default: %u)"), QT_TRANSLATE_NOOP("C4T-core", "Line: %d"), QT_TRANSLATE_NOOP("C4T-core", "Listen for JSON-RPC connections on <port> (default: %u or testnet: %u)"), QT_TRANSLATE_NOOP("C4T-core", "Listen for connections on <port> (default: %u or testnet: %u)"), QT_TRANSLATE_NOOP("C4T-core", "Loading addresses..."), QT_TRANSLATE_NOOP("C4T-core", "Loading block index..."), QT_TRANSLATE_NOOP("C4T-core", "Loading budget cache..."), QT_TRANSLATE_NOOP("C4T-core", "Loading masternode cache..."), QT_TRANSLATE_NOOP("C4T-core", "Loading masternode payment cache..."), QT_TRANSLATE_NOOP("C4T-core", "Loading sporks..."), QT_TRANSLATE_NOOP("C4T-core", "Loading wallet... (%3.2f %%)"), QT_TRANSLATE_NOOP("C4T-core", "Loading wallet..."), QT_TRANSLATE_NOOP("C4T-core", "Location of the auth cookie (default: data dir)"), QT_TRANSLATE_NOOP("C4T-core", "Lock is already in place."), QT_TRANSLATE_NOOP("C4T-core", "Lock masternodes from masternode configuration file (default: %u)"), QT_TRANSLATE_NOOP("C4T-core", "Lookup(): Invalid -proxy address or hostname: '%s'"), QT_TRANSLATE_NOOP("C4T-core", "Maintain at most <n> connections to peers (default: %u)"), QT_TRANSLATE_NOOP("C4T-core", "Masternode options:"), QT_TRANSLATE_NOOP("C4T-core", "Masternode queue is full."), QT_TRANSLATE_NOOP("C4T-core", "Masternode:"), QT_TRANSLATE_NOOP("C4T-core", "Maximum per-connection receive buffer, <n>*1000 bytes (default: %u)"), QT_TRANSLATE_NOOP("C4T-core", "Maximum per-connection send buffer, <n>*1000 bytes (default: %u)"), QT_TRANSLATE_NOOP("C4T-core", "Mint did not make it into blockchain"), QT_TRANSLATE_NOOP("C4T-core", "Missing input transaction information."), QT_TRANSLATE_NOOP("C4T-core", "Mixing in progress..."), QT_TRANSLATE_NOOP("C4T-core", "Need address because change is not exact"), QT_TRANSLATE_NOOP("C4T-core", "Need to specify a port with -whitebind: '%s'"), QT_TRANSLATE_NOOP("C4T-core", "No Masternodes detected."), QT_TRANSLATE_NOOP("C4T-core", "No compatible Masternode found."), QT_TRANSLATE_NOOP("C4T-core", "No funds detected in need of denominating."), QT_TRANSLATE_NOOP("C4T-core", "No matching denominations found for mixing."), QT_TRANSLATE_NOOP("C4T-core", "Node relay options:"), QT_TRANSLATE_NOOP("C4T-core", "Non-standard public key detected."), QT_TRANSLATE_NOOP("C4T-core", "Not compatible with existing transactions."), QT_TRANSLATE_NOOP("C4T-core", "Not enough file descriptors available."), QT_TRANSLATE_NOOP("C4T-core", "Not in the Masternode list."), QT_TRANSLATE_NOOP("C4T-core", "Number of automatic wallet backups (default: 10)"), QT_TRANSLATE_NOOP("C4T-core", "Number of custom location backups to retain (default: %d)"), QT_TRANSLATE_NOOP("C4T-core", "Obfuscation is idle."), QT_TRANSLATE_NOOP("C4T-core", "Obfuscation request complete:"), QT_TRANSLATE_NOOP("C4T-core", "Obfuscation request incomplete:"), QT_TRANSLATE_NOOP("C4T-core", "Only accept block chain matching built-in checkpoints (default: %u)"), QT_TRANSLATE_NOOP("C4T-core", "Only connect to nodes in network <net> (ipv4, ipv6 or onion)"), QT_TRANSLATE_NOOP("C4T-core", "Options:"), QT_TRANSLATE_NOOP("C4T-core", "Password for JSON-RPC connections"), QT_TRANSLATE_NOOP("C4T-core", "Percentage of automatically minted Zerocoin (1-100, default: %u)"), QT_TRANSLATE_NOOP("C4T-core", "Preparing for resync..."), QT_TRANSLATE_NOOP("C4T-core", "Prepend debug output with timestamp (default: %u)"), QT_TRANSLATE_NOOP("C4T-core", "Print version and exit"), QT_TRANSLATE_NOOP("C4T-core", "RPC server options:"), QT_TRANSLATE_NOOP("C4T-core", "Randomly drop 1 of every <n> network messages"), QT_TRANSLATE_NOOP("C4T-core", "Randomly fuzz 1 of every <n> network messages"), QT_TRANSLATE_NOOP("C4T-core", "Rebuild block chain index from current blk000??.dat files"), QT_TRANSLATE_NOOP("C4T-core", "Receive and display P2P network alerts (default: %u)"), QT_TRANSLATE_NOOP("C4T-core", "Reindex the C4T and zC4T money supply statistics"), QT_TRANSLATE_NOOP("C4T-core", "Reindex the accumulator database"), QT_TRANSLATE_NOOP("C4T-core", "Reindexing zerocoin database..."), QT_TRANSLATE_NOOP("C4T-core", "Reindexing zerocoin failed"), QT_TRANSLATE_NOOP("C4T-core", "Relay and mine data carrier transactions (default: %u)"), QT_TRANSLATE_NOOP("C4T-core", "Relay non-P2SH multisig (default: %u)"), QT_TRANSLATE_NOOP("C4T-core", "Rescan the block chain for missing wallet transactions"), QT_TRANSLATE_NOOP("C4T-core", "Rescanning..."), QT_TRANSLATE_NOOP("C4T-core", "ResetMintZerocoin finished: "), QT_TRANSLATE_NOOP("C4T-core", "ResetSpentZerocoin finished: "), QT_TRANSLATE_NOOP("C4T-core", "Run a thread to flush wallet periodically (default: %u)"), QT_TRANSLATE_NOOP("C4T-core", "Run in the background as a daemon and accept commands"), QT_TRANSLATE_NOOP("C4T-core", "Selected coins value is less than payment target"), QT_TRANSLATE_NOOP("C4T-core", "Send transactions as zero-fee transactions if possible (default: %u)"), QT_TRANSLATE_NOOP("C4T-core", "Session not complete!"), QT_TRANSLATE_NOOP("C4T-core", "Session timed out."), QT_TRANSLATE_NOOP("C4T-core", "Set database cache size in megabytes (%d to %d, default: %d)"), QT_TRANSLATE_NOOP("C4T-core", "Set external address:port to get to this masternode (example: %s)"), QT_TRANSLATE_NOOP("C4T-core", "Set key pool size to <n> (default: %u)"), QT_TRANSLATE_NOOP("C4T-core", "Set maximum block size in bytes (default: %d)"), QT_TRANSLATE_NOOP("C4T-core", "Set minimum block size in bytes (default: %u)"), QT_TRANSLATE_NOOP("C4T-core", "Set the Maximum reorg depth (default: %u)"), QT_TRANSLATE_NOOP("C4T-core", "Set the masternode private key"), QT_TRANSLATE_NOOP("C4T-core", "Set the number of threads to service RPC calls (default: %d)"), QT_TRANSLATE_NOOP("C4T-core", "Sets the DB_PRIVATE flag in the wallet db environment (default: %u)"), QT_TRANSLATE_NOOP("C4T-core", "Show all debugging options (usage: --help -help-debug)"), QT_TRANSLATE_NOOP("C4T-core", "Shrink debug.log file on client startup (default: 1 when no -debug)"), QT_TRANSLATE_NOOP("C4T-core", "Signing failed."), QT_TRANSLATE_NOOP("C4T-core", "Signing timed out."), QT_TRANSLATE_NOOP("C4T-core", "Signing transaction failed"), QT_TRANSLATE_NOOP("C4T-core", "Specify configuration file (default: %s)"), QT_TRANSLATE_NOOP("C4T-core", "Specify connection timeout in milliseconds (minimum: 1, default: %d)"), QT_TRANSLATE_NOOP("C4T-core", "Specify data directory"), QT_TRANSLATE_NOOP("C4T-core", "Specify masternode configuration file (default: %s)"), QT_TRANSLATE_NOOP("C4T-core", "Specify pid file (default: %s)"), QT_TRANSLATE_NOOP("C4T-core", "Specify wallet file (within data directory)"), QT_TRANSLATE_NOOP("C4T-core", "Specify your own public address"), QT_TRANSLATE_NOOP("C4T-core", "Spend Valid"), QT_TRANSLATE_NOOP("C4T-core", "Spend unconfirmed change when sending transactions (default: %u)"), QT_TRANSLATE_NOOP("C4T-core", "Staking options:"), QT_TRANSLATE_NOOP("C4T-core", "Stop running after importing blocks from disk (default: %u)"), QT_TRANSLATE_NOOP("C4T-core", "Submitted following entries to masternode: %u / %d"), QT_TRANSLATE_NOOP("C4T-core", "Submitted to masternode, waiting for more entries ( %u / %d ) %s"), QT_TRANSLATE_NOOP("C4T-core", "Submitted to masternode, waiting in queue %s"), QT_TRANSLATE_NOOP("C4T-core", "SwiftX options:"), QT_TRANSLATE_NOOP("C4T-core", "Synchronization failed"), QT_TRANSLATE_NOOP("C4T-core", "Synchronization finished"), QT_TRANSLATE_NOOP("C4T-core", "Synchronization pending..."), QT_TRANSLATE_NOOP("C4T-core", "Synchronizing budgets..."), QT_TRANSLATE_NOOP("C4T-core", "Synchronizing masternode winners..."), QT_TRANSLATE_NOOP("C4T-core", "Synchronizing masternodes..."), QT_TRANSLATE_NOOP("C4T-core", "Synchronizing sporks..."), QT_TRANSLATE_NOOP("C4T-core", "Syncing zC4T wallet..."), QT_TRANSLATE_NOOP("C4T-core", "The coin spend has been used"), QT_TRANSLATE_NOOP("C4T-core", "The new spend coin transaction did not verify"), QT_TRANSLATE_NOOP("C4T-core", "The selected mint coin is an invalid coin"), QT_TRANSLATE_NOOP("C4T-core", "The transaction did not verify"), QT_TRANSLATE_NOOP("C4T-core", "This help message"), QT_TRANSLATE_NOOP("C4T-core", "This is experimental software."), QT_TRANSLATE_NOOP("C4T-core", "This is intended for regression testing tools and app development."), QT_TRANSLATE_NOOP("C4T-core", "This is not a Masternode."), QT_TRANSLATE_NOOP("C4T-core", "Threshold for disconnecting misbehaving peers (default: %u)"), QT_TRANSLATE_NOOP("C4T-core", "Too many spends needed"), QT_TRANSLATE_NOOP("C4T-core", "Tor control port password (default: empty)"), QT_TRANSLATE_NOOP("C4T-core", "Tor control port to use if onion listening enabled (default: %s)"), QT_TRANSLATE_NOOP("C4T-core", "Transaction Created"), QT_TRANSLATE_NOOP("C4T-core", "Transaction Mint Started"), QT_TRANSLATE_NOOP("C4T-core", "Transaction amount too small"), QT_TRANSLATE_NOOP("C4T-core", "Transaction amounts must be positive"), QT_TRANSLATE_NOOP("C4T-core", "Transaction created successfully."), QT_TRANSLATE_NOOP("C4T-core", "Transaction fees are too high."), QT_TRANSLATE_NOOP("C4T-core", "Transaction not valid."), QT_TRANSLATE_NOOP("C4T-core", "Transaction too large for fee policy"), QT_TRANSLATE_NOOP("C4T-core", "Transaction too large"), QT_TRANSLATE_NOOP("C4T-core", "Transmitting final transaction."), QT_TRANSLATE_NOOP("C4T-core", "Try to spend with a higher security level to include more coins"), QT_TRANSLATE_NOOP("C4T-core", "Trying to spend an already spent serial #, try again."), QT_TRANSLATE_NOOP("C4T-core", "Unable to bind to %s on this computer (bind returned error %s)"), QT_TRANSLATE_NOOP("C4T-core", "Unable to find transaction containing mint"), QT_TRANSLATE_NOOP("C4T-core", "Unable to sign spork message, wrong key?"), QT_TRANSLATE_NOOP("C4T-core", "Unable to start HTTP server. See debug log for details."), QT_TRANSLATE_NOOP("C4T-core", "Unknown network specified in -onlynet: '%s'"), QT_TRANSLATE_NOOP("C4T-core", "Unknown state: id = %u"), QT_TRANSLATE_NOOP("C4T-core", "Upgrade wallet to latest format"), QT_TRANSLATE_NOOP("C4T-core", "Use UPnP to map the listening port (default: %u)"), QT_TRANSLATE_NOOP("C4T-core", "Use UPnP to map the listening port (default: 1 when listening)"), QT_TRANSLATE_NOOP("C4T-core", "Use a custom max chain reorganization depth (default: %u)"), QT_TRANSLATE_NOOP("C4T-core", "Use the test network"), QT_TRANSLATE_NOOP("C4T-core", "Username for JSON-RPC connections"), QT_TRANSLATE_NOOP("C4T-core", "Value is below the smallest available denomination (= 1) of zC4T"), QT_TRANSLATE_NOOP("C4T-core", "Value more than Obfuscation pool maximum allows."), QT_TRANSLATE_NOOP("C4T-core", "Verifying blocks..."), QT_TRANSLATE_NOOP("C4T-core", "Verifying wallet..."), QT_TRANSLATE_NOOP("C4T-core", "Version 1 zC4T require a security level of 100 to successfully spend."), QT_TRANSLATE_NOOP("C4T-core", "Wallet %s resides outside data directory %s"), QT_TRANSLATE_NOOP("C4T-core", "Wallet is locked."), QT_TRANSLATE_NOOP("C4T-core", "Wallet needed to be rewritten: restart C4T Core to complete"), QT_TRANSLATE_NOOP("C4T-core", "Wallet options:"), QT_TRANSLATE_NOOP("C4T-core", "Wallet window title"), QT_TRANSLATE_NOOP("C4T-core", "Warning"), QT_TRANSLATE_NOOP("C4T-core", "Warning: This version is obsolete, upgrade required!"), QT_TRANSLATE_NOOP("C4T-core", "Warning: Unsupported argument -benchmark ignored, use -debug=bench."), QT_TRANSLATE_NOOP("C4T-core", "Warning: Unsupported argument -debugnet ignored, use -debug=net."), QT_TRANSLATE_NOOP("C4T-core", "Will retry..."), QT_TRANSLATE_NOOP("C4T-core", "You don't have enough Zerocoins in your wallet"), QT_TRANSLATE_NOOP("C4T-core", "You need to rebuild the database using -reindex to change -txindex"), QT_TRANSLATE_NOOP("C4T-core", "Your entries added successfully."), QT_TRANSLATE_NOOP("C4T-core", "Your transaction was accepted into the pool!"), QT_TRANSLATE_NOOP("C4T-core", "Zapping all transactions from wallet..."), QT_TRANSLATE_NOOP("C4T-core", "ZeroMQ notification options:"), QT_TRANSLATE_NOOP("C4T-core", "isValid(): Invalid -proxy address or hostname: '%s'"), QT_TRANSLATE_NOOP("C4T-core", "on startup"), QT_TRANSLATE_NOOP("C4T-core", "wallet.dat corrupt, salvage failed"), };
125376c65ec984c4bb916b589f30bbf2f9317520
aab3ae5bb8ce591d29599f51f5fb4cd9c5b05f38
/Tools/ShaderGen/_backup/v3/Main.cxx
be14aa7ad028aa89252640f54d220a43ccd17b80
[]
no_license
S-V/Lollipop
b720ef749e599deaf3fbf48b1e883338dcb573c3
eca4bfe6115437dc87f638af54a69de09956cbfb
refs/heads/master
2022-02-09T04:59:17.474909
2022-01-25T20:20:20
2022-01-25T20:20:20
43,964,835
11
1
null
null
null
null
UTF-8
C++
false
false
69,862
cxx
/* This ALWAYS GENERATED file contains the implementation for the interfaces */ /* File created by HLSL wrapper generator version 0.0 on Sunday, September 11th, at 23:59:42 */ #include "Renderer_PCH.h" #pragma hdrstop #include "Renderer.h" #include <Base/Text/TextUtils.h> #include <Renderer/Core/Geometry.h> #include "Main.hxx" #include "Main.hxx" namespace GPU { // sorted in ascending order const char* g_shaderNames[ TotalNumberOfShaders ] = { p_batched_lines::Name, p_deferred_fill_buffers_fallback::Name, p_fullscreen_colored_triangle_shader::Name, p_fullscreen_textured_triangle_shader::Name, p_test_shader::Name, }; UINT ShaderNameToIndex( const char* str ) { return BinaryStringSearch( g_shaderNames, ARRAY_SIZE(g_shaderNames), str ); } const char* ShaderIndexToName( UINT idx ) { Assert( idx < ARRAY_SIZE(g_shaderNames) ); return g_shaderNames[ idx ]; } //=========================================================================== // Render targets //=========================================================================== // E:/_/Engine/Development/SourceCode/Renderer/GPU/source/r_render_targets.fx(8,13) RenderTarget renderTarget_RT_Diffuse_SpecPower; // E:/_/Engine/Development/SourceCode/Renderer/GPU/source/r_render_targets.fx(17,13) RenderTarget renderTarget_RT_Normal_SpecIntensity; // E:/_/Engine/Development/SourceCode/Renderer/GPU/source/r_render_targets.fx(26,13) RenderTarget renderTarget_RT_LinearDepth; // E:/_/Engine/Development/SourceCode/Renderer/GPU/source/r_render_targets.fx(35,13) RenderTarget renderTarget_RT_MotionXY; static void SetupRenderTargets() { D3D11_TEXTURE2D_DESC texDesc; D3D11_RENDER_TARGET_VIEW_DESC rtvDesc; D3D11_SHADER_RESOURCE_VIEW_DESC srvDesc; ZERO_OUT( texDesc ); ZERO_OUT( rtvDesc ); ZERO_OUT( srvDesc ); // RT_Diffuse_SpecPower // "Diffuse & Specular power" // E:/_/Engine/Development/SourceCode/Renderer/GPU/source/r_render_targets.fx(8,13) { texDesc.Format = DXGI_FORMAT_R8G8B8A8_UNORM; texDesc.Width = GetBackbufferWidth(); texDesc.Height = GetBackbufferHeight(); texDesc.MipLevels = 1; texDesc.ArraySize = 1; texDesc.SampleDesc.Count = 1; texDesc.SampleDesc.Quality = 0; texDesc.Usage = D3D11_USAGE_DEFAULT; texDesc.BindFlags = D3D11_BIND_SHADER_RESOURCE | D3D11_BIND_RENDER_TARGET; texDesc.CPUAccessFlags = 0; texDesc.MiscFlags = 0; rtvDesc.Format = DXGI_FORMAT_R8G8B8A8_UNORM; rtvDesc.ViewDimension = D3D11_RTV_DIMENSION_TEXTURE2D; rtvDesc.Texture2D.MipSlice = 0; srvDesc.Format = DXGI_FORMAT_R8G8B8A8_UNORM; srvDesc.ViewDimension = D3D11_SRV_DIMENSION_TEXTURE2D; srvDesc.Texture2D.MipLevels = 1; srvDesc.Texture2D.MostDetailedMip = 0; graphics.resources->Create_RenderTarget( texDesc, rtvDesc, srvDesc, renderTarget_RT_Diffuse_SpecPower ); dxDbgSetName( renderTarget_RT_Diffuse_SpecPower.pTexture, "RT_Diffuse_SpecPower_T2D" ); dxDbgSetName( renderTarget_RT_Diffuse_SpecPower.pRTV, "RT_Diffuse_SpecPower_RTV" ); dxDbgSetName( renderTarget_RT_Diffuse_SpecPower.pSRV, "RT_Diffuse_SpecPower_SRV" ); } // RT_Normal_SpecIntensity // "Normals & Specular intensity" // E:/_/Engine/Development/SourceCode/Renderer/GPU/source/r_render_targets.fx(17,13) { texDesc.Format = DXGI_FORMAT_R8G8B8A8_UNORM; texDesc.Width = GetBackbufferWidth(); texDesc.Height = GetBackbufferHeight(); texDesc.MipLevels = 1; texDesc.ArraySize = 1; texDesc.SampleDesc.Count = 1; texDesc.SampleDesc.Quality = 0; texDesc.Usage = D3D11_USAGE_DEFAULT; texDesc.BindFlags = D3D11_BIND_SHADER_RESOURCE | D3D11_BIND_RENDER_TARGET; texDesc.CPUAccessFlags = 0; texDesc.MiscFlags = 0; rtvDesc.Format = DXGI_FORMAT_R8G8B8A8_UNORM; rtvDesc.ViewDimension = D3D11_RTV_DIMENSION_TEXTURE2D; rtvDesc.Texture2D.MipSlice = 0; srvDesc.Format = DXGI_FORMAT_R8G8B8A8_UNORM; srvDesc.ViewDimension = D3D11_SRV_DIMENSION_TEXTURE2D; srvDesc.Texture2D.MipLevels = 1; srvDesc.Texture2D.MostDetailedMip = 0; graphics.resources->Create_RenderTarget( texDesc, rtvDesc, srvDesc, renderTarget_RT_Normal_SpecIntensity ); dxDbgSetName( renderTarget_RT_Normal_SpecIntensity.pTexture, "RT_Normal_SpecIntensity_T2D" ); dxDbgSetName( renderTarget_RT_Normal_SpecIntensity.pRTV, "RT_Normal_SpecIntensity_RTV" ); dxDbgSetName( renderTarget_RT_Normal_SpecIntensity.pSRV, "RT_Normal_SpecIntensity_SRV" ); } // RT_LinearDepth // "Depth" // E:/_/Engine/Development/SourceCode/Renderer/GPU/source/r_render_targets.fx(26,13) { texDesc.Format = DXGI_FORMAT_R32_FLOAT; texDesc.Width = GetBackbufferWidth(); texDesc.Height = GetBackbufferHeight(); texDesc.MipLevels = 1; texDesc.ArraySize = 1; texDesc.SampleDesc.Count = 1; texDesc.SampleDesc.Quality = 0; texDesc.Usage = D3D11_USAGE_DEFAULT; texDesc.BindFlags = D3D11_BIND_SHADER_RESOURCE | D3D11_BIND_RENDER_TARGET; texDesc.CPUAccessFlags = 0; texDesc.MiscFlags = 0; rtvDesc.Format = DXGI_FORMAT_R32_FLOAT; rtvDesc.ViewDimension = D3D11_RTV_DIMENSION_TEXTURE2D; rtvDesc.Texture2D.MipSlice = 0; srvDesc.Format = DXGI_FORMAT_R32_FLOAT; srvDesc.ViewDimension = D3D11_SRV_DIMENSION_TEXTURE2D; srvDesc.Texture2D.MipLevels = 1; srvDesc.Texture2D.MostDetailedMip = 0; graphics.resources->Create_RenderTarget( texDesc, rtvDesc, srvDesc, renderTarget_RT_LinearDepth ); dxDbgSetName( renderTarget_RT_LinearDepth.pTexture, "RT_LinearDepth_T2D" ); dxDbgSetName( renderTarget_RT_LinearDepth.pRTV, "RT_LinearDepth_RTV" ); dxDbgSetName( renderTarget_RT_LinearDepth.pSRV, "RT_LinearDepth_SRV" ); } // RT_MotionXY // "MotionXY" // E:/_/Engine/Development/SourceCode/Renderer/GPU/source/r_render_targets.fx(35,13) { texDesc.Format = DXGI_FORMAT_R16G16_FLOAT; texDesc.Width = GetBackbufferWidth(); texDesc.Height = GetBackbufferHeight(); texDesc.MipLevels = 1; texDesc.ArraySize = 1; texDesc.SampleDesc.Count = 1; texDesc.SampleDesc.Quality = 0; texDesc.Usage = D3D11_USAGE_DEFAULT; texDesc.BindFlags = D3D11_BIND_SHADER_RESOURCE | D3D11_BIND_RENDER_TARGET; texDesc.CPUAccessFlags = 0; texDesc.MiscFlags = 0; rtvDesc.Format = DXGI_FORMAT_R16G16_FLOAT; rtvDesc.ViewDimension = D3D11_RTV_DIMENSION_TEXTURE2D; rtvDesc.Texture2D.MipSlice = 0; srvDesc.Format = DXGI_FORMAT_R16G16_FLOAT; srvDesc.ViewDimension = D3D11_SRV_DIMENSION_TEXTURE2D; srvDesc.Texture2D.MipLevels = 1; srvDesc.Texture2D.MostDetailedMip = 0; graphics.resources->Create_RenderTarget( texDesc, rtvDesc, srvDesc, renderTarget_RT_MotionXY ); dxDbgSetName( renderTarget_RT_MotionXY.pTexture, "RT_MotionXY_T2D" ); dxDbgSetName( renderTarget_RT_MotionXY.pRTV, "RT_MotionXY_RTV" ); dxDbgSetName( renderTarget_RT_MotionXY.pSRV, "RT_MotionXY_SRV" ); } } //=========================================================================== // Sampler states //=========================================================================== // E:/_/Engine/Development/SourceCode/Renderer/GPU/source/r_render_states.fx(7,13) SamplerState samplerState_SS_Point; // E:/_/Engine/Development/SourceCode/Renderer/GPU/source/r_render_states.fx(13,13) SamplerState samplerState_SS_Bilinear; // E:/_/Engine/Development/SourceCode/Renderer/GPU/source/r_render_states.fx(27,13) SamplerState samplerState_SS_Aniso; static void SetupSamplerStates() { D3D11_SAMPLER_DESC samplerDesc; ZERO_OUT( samplerDesc ); // SS_Point // E:/_/Engine/Development/SourceCode/Renderer/GPU/source/r_render_states.fx(7,13) { samplerDesc.Filter = D3D11_FILTER_MIN_MAG_MIP_POINT; samplerDesc.AddressU = D3D11_TEXTURE_ADDRESS_CLAMP; samplerDesc.AddressV = D3D11_TEXTURE_ADDRESS_CLAMP; samplerDesc.AddressW = D3D11_TEXTURE_ADDRESS_CLAMP; samplerDesc.MipLODBias = 0; samplerDesc.MaxAnisotropy = 1; samplerDesc.ComparisonFunc = D3D11_COMPARISON_NEVER; samplerDesc.BorderColor[0] = 1.0f; samplerDesc.BorderColor[1] = 1.0f; samplerDesc.BorderColor[2] = 1.0f; samplerDesc.BorderColor[3] = 1.0f; samplerDesc.MinLOD = -FLT_MAX; samplerDesc.MaxLOD = +FLT_MAX; graphics.resources->Create_SamplerState( samplerDesc, samplerState_SS_Point ); dxDbgSetName( samplerState_SS_Point.p, "SS_Point" ); } // SS_Bilinear // E:/_/Engine/Development/SourceCode/Renderer/GPU/source/r_render_states.fx(13,13) { samplerDesc.Filter = D3D11_FILTER_MIN_MAG_LINEAR_MIP_POINT; samplerDesc.AddressU = D3D11_TEXTURE_ADDRESS_WRAP; samplerDesc.AddressV = D3D11_TEXTURE_ADDRESS_WRAP; samplerDesc.AddressW = D3D11_TEXTURE_ADDRESS_CLAMP; samplerDesc.MipLODBias = 0; samplerDesc.MaxAnisotropy = 1; samplerDesc.ComparisonFunc = D3D11_COMPARISON_NEVER; samplerDesc.BorderColor[0] = 1.0f; samplerDesc.BorderColor[1] = 1.0f; samplerDesc.BorderColor[2] = 1.0f; samplerDesc.BorderColor[3] = 1.0f; samplerDesc.MinLOD = -FLT_MAX; samplerDesc.MaxLOD = +FLT_MAX; graphics.resources->Create_SamplerState( samplerDesc, samplerState_SS_Bilinear ); dxDbgSetName( samplerState_SS_Bilinear.p, "SS_Bilinear" ); } // SS_Aniso // E:/_/Engine/Development/SourceCode/Renderer/GPU/source/r_render_states.fx(27,13) { samplerDesc.Filter = D3D11_FILTER_ANISOTROPIC; samplerDesc.AddressU = D3D11_TEXTURE_ADDRESS_WRAP; samplerDesc.AddressV = D3D11_TEXTURE_ADDRESS_WRAP; samplerDesc.AddressW = D3D11_TEXTURE_ADDRESS_CLAMP; samplerDesc.MipLODBias = 0; samplerDesc.MaxAnisotropy = 1; samplerDesc.ComparisonFunc = D3D11_COMPARISON_NEVER; samplerDesc.BorderColor[0] = 1.0f; samplerDesc.BorderColor[1] = 1.0f; samplerDesc.BorderColor[2] = 1.0f; samplerDesc.BorderColor[3] = 1.0f; samplerDesc.MinLOD = -FLT_MAX; samplerDesc.MaxLOD = +FLT_MAX; graphics.resources->Create_SamplerState( samplerDesc, samplerState_SS_Aniso ); dxDbgSetName( samplerState_SS_Aniso.p, "SS_Aniso" ); } } //=========================================================================== // Depth-Stencil states //=========================================================================== // E:/_/Engine/Development/SourceCode/Renderer/GPU/source/r_render_states.fx(61,18) DepthStencilState depthStencilState_DS_NormalZTestWriteNoStencil; // E:/_/Engine/Development/SourceCode/Renderer/GPU/source/r_render_states.fx(68,18) DepthStencilState depthStencilState_DS_NoZTestWriteNoStencil; static void SetupDepthStencilStates() { D3D11_DEPTH_STENCIL_DESC depthStencilDesc; ZERO_OUT( depthStencilDesc ); // DS_NormalZTestWriteNoStencil // E:/_/Engine/Development/SourceCode/Renderer/GPU/source/r_render_states.fx(61,18) { depthStencilDesc.DepthEnable = TRUE; depthStencilDesc.DepthWriteMask = D3D11_DEPTH_WRITE_MASK_ALL; depthStencilDesc.DepthFunc = D3D11_COMPARISON_LESS; depthStencilDesc.StencilEnable = FALSE; depthStencilDesc.StencilReadMask = D3D11_DEFAULT_STENCIL_READ_MASK; depthStencilDesc.StencilWriteMask = D3D11_DEFAULT_STENCIL_WRITE_MASK; depthStencilDesc.FrontFace.StencilFailOp = D3D11_STENCIL_OP_KEEP; depthStencilDesc.FrontFace.StencilDepthFailOp = D3D11_STENCIL_OP_KEEP; depthStencilDesc.FrontFace.StencilPassOp = D3D11_STENCIL_OP_KEEP; depthStencilDesc.FrontFace.StencilFunc = D3D11_COMPARISON_ALWAYS; depthStencilDesc.BackFace.StencilFailOp = D3D11_STENCIL_OP_KEEP; depthStencilDesc.BackFace.StencilDepthFailOp = D3D11_STENCIL_OP_KEEP; depthStencilDesc.BackFace.StencilPassOp = D3D11_STENCIL_OP_KEEP; depthStencilDesc.BackFace.StencilFunc = D3D11_COMPARISON_ALWAYS; graphics.resources->Create_DepthStencilState( depthStencilDesc, depthStencilState_DS_NormalZTestWriteNoStencil ); dxDbgSetName( depthStencilState_DS_NormalZTestWriteNoStencil.p, "DS_NormalZTestWriteNoStencil" ); } // DS_NoZTestWriteNoStencil // E:/_/Engine/Development/SourceCode/Renderer/GPU/source/r_render_states.fx(68,18) { depthStencilDesc.DepthEnable = FALSE; depthStencilDesc.DepthWriteMask = D3D11_DEPTH_WRITE_MASK_ZERO; depthStencilDesc.DepthFunc = D3D11_COMPARISON_LESS; depthStencilDesc.StencilEnable = FALSE; depthStencilDesc.StencilReadMask = D3D11_DEFAULT_STENCIL_READ_MASK; depthStencilDesc.StencilWriteMask = D3D11_DEFAULT_STENCIL_WRITE_MASK; depthStencilDesc.FrontFace.StencilFailOp = D3D11_STENCIL_OP_KEEP; depthStencilDesc.FrontFace.StencilDepthFailOp = D3D11_STENCIL_OP_KEEP; depthStencilDesc.FrontFace.StencilPassOp = D3D11_STENCIL_OP_KEEP; depthStencilDesc.FrontFace.StencilFunc = D3D11_COMPARISON_ALWAYS; depthStencilDesc.BackFace.StencilFailOp = D3D11_STENCIL_OP_KEEP; depthStencilDesc.BackFace.StencilDepthFailOp = D3D11_STENCIL_OP_KEEP; depthStencilDesc.BackFace.StencilPassOp = D3D11_STENCIL_OP_KEEP; depthStencilDesc.BackFace.StencilFunc = D3D11_COMPARISON_ALWAYS; graphics.resources->Create_DepthStencilState( depthStencilDesc, depthStencilState_DS_NoZTestWriteNoStencil ); dxDbgSetName( depthStencilState_DS_NoZTestWriteNoStencil.p, "DS_NoZTestWriteNoStencil" ); } } //=========================================================================== // Rasterizer states //=========================================================================== // E:/_/Engine/Development/SourceCode/Renderer/GPU/source/p_editor_shaders.fx(1,16) RasterizerState rasterizerState_RS_WireframeNoCullNoClip; // E:/_/Engine/Development/SourceCode/Renderer/GPU/source/r_render_states.fx(82,16) RasterizerState rasterizerState_RS_NoCull; // E:/_/Engine/Development/SourceCode/Renderer/GPU/source/r_render_states.fx(89,16) RasterizerState rasterizerState_RS_CullBack; static void SetupRasterizerStates() { D3D11_RASTERIZER_DESC rasterizerDesc; ZERO_OUT( rasterizerDesc ); // RS_WireframeNoCullNoClip // E:/_/Engine/Development/SourceCode/Renderer/GPU/source/p_editor_shaders.fx(1,16) { rasterizerDesc.FillMode = D3D11_FILL_WIREFRAME; rasterizerDesc.CullMode = D3D11_CULL_NONE; rasterizerDesc.FrontCounterClockwise = FALSE; rasterizerDesc.DepthBias = 0; rasterizerDesc.DepthBiasClamp = 0.0f; rasterizerDesc.SlopeScaledDepthBias = 0.0f; rasterizerDesc.DepthClipEnable = FALSE; rasterizerDesc.ScissorEnable = FALSE; rasterizerDesc.MultisampleEnable = FALSE; rasterizerDesc.AntialiasedLineEnable = FALSE; graphics.resources->Create_RasterizerState( rasterizerDesc, rasterizerState_RS_WireframeNoCullNoClip ); dxDbgSetName( rasterizerState_RS_WireframeNoCullNoClip.p, "RS_WireframeNoCullNoClip" ); } // RS_NoCull // E:/_/Engine/Development/SourceCode/Renderer/GPU/source/r_render_states.fx(82,16) { rasterizerDesc.FillMode = D3D11_FILL_SOLID; rasterizerDesc.CullMode = D3D11_CULL_NONE; rasterizerDesc.FrontCounterClockwise = FALSE; rasterizerDesc.DepthBias = 0; rasterizerDesc.DepthBiasClamp = 0.0f; rasterizerDesc.SlopeScaledDepthBias = 0.0f; rasterizerDesc.DepthClipEnable = TRUE; rasterizerDesc.ScissorEnable = FALSE; rasterizerDesc.MultisampleEnable = FALSE; rasterizerDesc.AntialiasedLineEnable = FALSE; graphics.resources->Create_RasterizerState( rasterizerDesc, rasterizerState_RS_NoCull ); dxDbgSetName( rasterizerState_RS_NoCull.p, "RS_NoCull" ); } // RS_CullBack // E:/_/Engine/Development/SourceCode/Renderer/GPU/source/r_render_states.fx(89,16) { rasterizerDesc.FillMode = D3D11_FILL_SOLID; rasterizerDesc.CullMode = D3D11_CULL_BACK; rasterizerDesc.FrontCounterClockwise = FALSE; rasterizerDesc.DepthBias = 0; rasterizerDesc.DepthBiasClamp = 0.0f; rasterizerDesc.SlopeScaledDepthBias = 0.0f; rasterizerDesc.DepthClipEnable = TRUE; rasterizerDesc.ScissorEnable = FALSE; rasterizerDesc.MultisampleEnable = FALSE; rasterizerDesc.AntialiasedLineEnable = FALSE; graphics.resources->Create_RasterizerState( rasterizerDesc, rasterizerState_RS_CullBack ); dxDbgSetName( rasterizerState_RS_CullBack.p, "RS_CullBack" ); } } //=========================================================================== // Blend states //=========================================================================== // E:/_/Engine/Development/SourceCode/Renderer/GPU/source/r_render_states.fx(122,11) BlendState blendState_BS_NoBlending; static void SetupBlendStates() { D3D11_BLEND_DESC blendDesc; ZERO_OUT( blendDesc ); // BS_NoBlending // E:/_/Engine/Development/SourceCode/Renderer/GPU/source/r_render_states.fx(122,11) { blendDesc.AlphaToCoverageEnable = FALSE; blendDesc.IndependentBlendEnable = FALSE; blendDesc.RenderTarget[0].BlendEnable = FALSE; blendDesc.RenderTarget[0].SrcBlend = D3D11_BLEND_ZERO; blendDesc.RenderTarget[0].DestBlend = D3D11_BLEND_ZERO; blendDesc.RenderTarget[0].BlendOp = D3D11_BLEND_OP_ADD; blendDesc.RenderTarget[0].SrcBlendAlpha = D3D11_BLEND_ZERO; blendDesc.RenderTarget[0].DestBlendAlpha = D3D11_BLEND_ZERO; blendDesc.RenderTarget[0].BlendOpAlpha = D3D11_BLEND_OP_ADD; blendDesc.RenderTarget[0].RenderTargetWriteMask = 0x0F; graphics.resources->Create_BlendState( blendDesc, blendState_BS_NoBlending ); dxDbgSetName( blendState_BS_NoBlending.p, "BS_NoBlending" ); } } //=========================================================================== // State blocks //=========================================================================== // E:/_/Engine/Development/SourceCode/Renderer/GPU/source/r_render_states.fx(160,11) StateBlock renderState_Default; // E:/_/Engine/Development/SourceCode/Renderer/GPU/source/r_render_states.fx(174,11) StateBlock renderState_Debug_NoCull; static void SetupStateBlocks() { // Default // E:/_/Engine/Development/SourceCode/Renderer/GPU/source/r_render_states.fx(160,11) { renderState_Default.rasterizer = &rasterizerState_RS_CullBack; renderState_Default.depthStencil = &depthStencilState_DS_NormalZTestWriteNoStencil; renderState_Default.stencilRef = 0; renderState_Default.blend = &blendState_BS_NoBlending; renderState_Default.blendFactorRGBA = FColor( 0.000000f, 0.000000f, 0.000000f, 1.000000f ); renderState_Default.sampleMask = 0xFFFFFFFF; } // Debug_NoCull // E:/_/Engine/Development/SourceCode/Renderer/GPU/source/r_render_states.fx(174,11) { renderState_Debug_NoCull.rasterizer = &rasterizerState_RS_NoCull; renderState_Debug_NoCull.depthStencil = &depthStencilState_DS_NoZTestWriteNoStencil; renderState_Debug_NoCull.stencilRef = 0; renderState_Debug_NoCull.blend = &blendState_BS_NoBlending; renderState_Debug_NoCull.blendFactorRGBA = FColor( 0.000000f, 0.000000f, 0.000000f, 1.000000f ); renderState_Debug_NoCull.sampleMask = 0xFFFFFFFF; } } TypedConstantBuffer< Shared_Globals::PerFrame > Shared_Globals::cb_PerFrame; ID3D11SamplerState* Shared_Globals::pointSampler = nil; ID3D11SamplerState* Shared_Globals::linearSampler = nil; ID3D11SamplerState* Shared_Globals::anisotropicSampler = nil; ID3D11SamplerState* Shared_Globals::colorMapSampler = nil; ID3D11SamplerState* Shared_Globals::detailMapSampler = nil; ID3D11SamplerState* Shared_Globals::normalMapSampler = nil; ID3D11SamplerState* Shared_Globals::specularMapSampler = nil; ID3D11SamplerState* Shared_Globals::attenuationSampler = nil; ID3D11SamplerState* Shared_Globals::cubeMapSampler = nil; TypedConstantBuffer< Shared_View::PerView > Shared_View::cb_PerView; TypedConstantBuffer< Shared_Object::PerObject > Shared_Object::cb_PerObject; ID3D11ShaderResourceView* Shared_GBuffer::RT0 = nil; ID3D11ShaderResourceView* Shared_GBuffer::RT1 = nil; ID3D11ShaderResourceView* Shared_GBuffer::RT2 = nil; ID3D11ShaderResourceView* Shared_GBuffer::RT3 = nil; void SetupSharedSections() { Shared_Globals::cb_PerFrame.Create( GetDeviceContext() ); Shared_Globals::pointSampler = samplerState_SS_Bilinear.p.Ptr; Shared_Globals::linearSampler = samplerState_SS_Bilinear.p.Ptr; Shared_Globals::anisotropicSampler = samplerState_SS_Aniso.p.Ptr; Shared_Globals::colorMapSampler = samplerState_SS_Bilinear.p.Ptr; Shared_Globals::detailMapSampler = samplerState_SS_Bilinear.p.Ptr; Shared_Globals::normalMapSampler = samplerState_SS_Bilinear.p.Ptr; Shared_Globals::specularMapSampler = samplerState_SS_Bilinear.p.Ptr; Shared_Globals::attenuationSampler = samplerState_SS_Bilinear.p.Ptr; Shared_Globals::cubeMapSampler = samplerState_SS_Bilinear.p.Ptr; Shared_View::cb_PerView.Create( GetDeviceContext() ); Shared_Object::cb_PerObject.Create( GetDeviceContext() ); } //=========================================================================== // Shaders //=========================================================================== TypedConstantBuffer< p_batched_lines::Data > p_batched_lines::cb_Data; const char* p_batched_lines::VS_EntryPoint = "VSMain"; const char* p_batched_lines::PS_EntryPoint = "PSMain"; const char* p_batched_lines::Name = "p_batched_lines"; const rxStaticString p_batched_lines::Source = { 640, // length { 0xa,0x23,0x6c,0x69,0x6e,0x65,0x20,0x31,0x39,0x20,0x22,0x45,0x3a,0x2f,0x5f,0x2f,0x45,0x6e,0x67,0x69,0x6e,0x65,0x2f,0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x2f,0x53,0x6f,0x75,0x72,0x63,0x65,0x43,0x6f,0x64,0x65,0x2f,0x52,0x65,0x6e,0x64,0x65,0x72,0x65,0x72,0x2f,0x47,0x50,0x55,0x2f,0x73,0x6f,0x75,0x72,0x63,0x65,0x2f,0x70,0x5f,0x65,0x64,0x69,0x74,0x6f,0x72,0x5f, 0x73,0x68,0x61,0x64,0x65,0x72,0x73,0x2e,0x66,0x78,0x22,0xa,0x63,0x62,0x75,0x66,0x66,0x65,0x72,0x20,0x44,0x61,0x74,0x61,0x20,0x3a,0x20,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x28,0x62,0x30,0x29,0xa,0x7b,0xa,0x9,0x66,0x6c,0x6f,0x61,0x74,0x34,0x78,0x34,0x20,0x76,0x69,0x65,0x77,0x50,0x72,0x6f,0x6a,0x65,0x63,0x74,0x69,0x6f,0x6e,0x4d,0x61,0x74,0x72,0x69,0x78,0x3b,0xa,0x9, 0x66,0x6c,0x6f,0x61,0x74,0x34,0x20,0x6c,0x69,0x6e,0x65,0x43,0x6f,0x6c,0x6f,0x72,0x3b,0xa,0x7d,0x3b,0xa,0xa,0x23,0x6c,0x69,0x6e,0x65,0x20,0x32,0x36,0x20,0x22,0x45,0x3a,0x2f,0x5f,0x2f,0x45,0x6e,0x67,0x69,0x6e,0x65,0x2f,0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x2f,0x53,0x6f,0x75,0x72,0x63,0x65,0x43,0x6f,0x64,0x65,0x2f,0x52,0x65,0x6e,0x64,0x65,0x72,0x65,0x72, 0x2f,0x47,0x50,0x55,0x2f,0x73,0x6f,0x75,0x72,0x63,0x65,0x2f,0x70,0x5f,0x65,0x64,0x69,0x74,0x6f,0x72,0x5f,0x73,0x68,0x61,0x64,0x65,0x72,0x73,0x2e,0x66,0x78,0x22,0xa,0xd,0xa,0x9,0x9,0x73,0x74,0x72,0x75,0x63,0x74,0x20,0x56,0x53,0x49,0x6e,0xd,0xa,0x9,0x9,0x7b,0xd,0xa,0x9,0x9,0x9,0x66,0x6c,0x6f,0x61,0x74,0x34,0x9,0x78,0x79,0x7a,0x20,0x3a,0x20,0x50,0x6f,0x73,0x69, 0x74,0x69,0x6f,0x6e,0x3b,0xd,0xa,0x9,0x9,0x9,0x66,0x6c,0x6f,0x61,0x74,0x34,0x9,0x63,0x6f,0x6c,0x6f,0x72,0x20,0x3a,0x20,0x43,0x6f,0x6c,0x6f,0x72,0x3b,0xd,0xa,0x9,0x9,0x7d,0x3b,0xd,0xa,0x9,0x9,0x73,0x74,0x72,0x75,0x63,0x74,0x20,0x50,0x53,0x49,0x6e,0xd,0xa,0x9,0x9,0x7b,0xd,0xa,0x9,0x9,0x9,0x66,0x6c,0x6f,0x61,0x74,0x34,0x20,0x70,0x6f,0x73,0x48,0x20,0x3a, 0x20,0x53,0x56,0x5f,0x50,0x6f,0x73,0x69,0x74,0x69,0x6f,0x6e,0x3b,0xd,0xa,0x9,0x9,0x9,0x66,0x6c,0x6f,0x61,0x74,0x34,0x20,0x63,0x6f,0x6c,0x6f,0x72,0x20,0x3a,0x20,0x43,0x6f,0x6c,0x6f,0x72,0x3b,0xd,0xa,0x9,0x9,0x7d,0x3b,0xd,0xa,0x9,0x9,0x76,0x6f,0x69,0x64,0x20,0x56,0x53,0x4d,0x61,0x69,0x6e,0x28,0x20,0x69,0x6e,0x20,0x56,0x53,0x49,0x6e,0x20,0x49,0x4e,0x2c,0x20,0x6f, 0x75,0x74,0x20,0x50,0x53,0x49,0x6e,0x20,0x4f,0x55,0x54,0x20,0x29,0xd,0xa,0x9,0x9,0x7b,0xd,0xa,0x9,0x9,0x9,0x4f,0x55,0x54,0x2e,0x70,0x6f,0x73,0x48,0x20,0x3d,0x20,0x6d,0x75,0x6c,0x28,0x20,0x49,0x4e,0x2e,0x78,0x79,0x7a,0x2c,0x20,0x76,0x69,0x65,0x77,0x50,0x72,0x6f,0x6a,0x65,0x63,0x74,0x69,0x6f,0x6e,0x4d,0x61,0x74,0x72,0x69,0x78,0x20,0x29,0x3b,0xd,0xa,0x9,0x9,0x9, 0x4f,0x55,0x54,0x2e,0x63,0x6f,0x6c,0x6f,0x72,0x20,0x3d,0x20,0x49,0x4e,0x2e,0x63,0x6f,0x6c,0x6f,0x72,0x3b,0xd,0xa,0x9,0x9,0x7d,0xd,0xa,0x9,0x9,0x66,0x6c,0x6f,0x61,0x74,0x34,0x20,0x50,0x53,0x4d,0x61,0x69,0x6e,0x28,0x20,0x69,0x6e,0x20,0x50,0x53,0x49,0x6e,0x20,0x49,0x4e,0x20,0x29,0x20,0x3a,0x20,0x53,0x56,0x5f,0x54,0x61,0x72,0x67,0x65,0x74,0xd,0xa,0x9,0x9,0x7b,0xd, 0xa,0x9,0x9,0x9,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x49,0x4e,0x2e,0x63,0x6f,0x6c,0x6f,0x72,0x20,0x2a,0x20,0x6c,0x69,0x6e,0x65,0x43,0x6f,0x6c,0x6f,0x72,0x3b,0xd,0xa,0x9,0x9,0x7d,0xd,0xa,0x9, } }; ShaderInstance p_batched_lines::shaderInstances[1]; void p_batched_lines::Initialize() { p_batched_lines::cb_Data.Create( GetDeviceContext() ); ShaderInfo d; p_batched_lines::GetLoadInfo( d ); p_batched_lines::Load( d, graphics.shaders ); } void p_batched_lines::GetLoadInfo( ShaderInfo & outInfo ) { outInfo.source.code = p_batched_lines::Source.data; outInfo.source.codeLength = p_batched_lines::Source.size; outInfo.uniqueId = p_batched_lines::UID; outInfo.name = p_batched_lines::Name; outInfo.VS_EntryPoint = p_batched_lines::VS_EntryPoint; outInfo.PS_EntryPoint = p_batched_lines::PS_EntryPoint; outInfo.numInstances = p_batched_lines::NumInstances; outInfo.load = p_batched_lines::Load; } void p_batched_lines::Load( const ShaderInfo& shaderInfo, GrShaderSystem* compiler ) { compiler->NewShaderInstance( shaderInfo, shaderInstances[0] ); } void p_batched_lines::Shutdown() { p_batched_lines::cb_Data.Destroy(); graphics.shaders->Destroy_ShaderInstances( 1, p_batched_lines::shaderInstances ); } const char* p_deferred_fill_buffers_fallback::VS_EntryPoint = "VS_Main"; const char* p_deferred_fill_buffers_fallback::PS_EntryPoint = "PS_Main"; const char* p_deferred_fill_buffers_fallback::Name = "p_deferred_fill_buffers_fallback"; const rxStaticString p_deferred_fill_buffers_fallback::Source = { 2060, // length { 0x23,0x6c,0x69,0x6e,0x65,0x20,0x32,0x38,0x20,0x22,0x45,0x3a,0x2f,0x5f,0x2f,0x45,0x6e,0x67,0x69,0x6e,0x65,0x2f,0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x2f,0x53,0x6f,0x75,0x72,0x63,0x65,0x43,0x6f,0x64,0x65,0x2f,0x52,0x65,0x6e,0x64,0x65,0x72,0x65,0x72,0x2f,0x47,0x50,0x55,0x2f,0x73,0x6f,0x75,0x72,0x63,0x65,0x2f,0x6d,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x73,0x2e, 0x66,0x78,0x22,0xa,0x63,0x62,0x75,0x66,0x66,0x65,0x72,0x20,0x50,0x65,0x72,0x46,0x72,0x61,0x6d,0x65,0x20,0x3a,0x20,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x28,0x62,0x30,0x29,0xa,0x7b,0xa,0x9,0x66,0x6c,0x6f,0x61,0x74,0x31,0x20,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x54,0x69,0x6d,0x65,0x49,0x6e,0x53,0x65,0x63,0x6f,0x6e,0x64,0x73,0x3b,0xa,0x7d,0x3b,0xa,0x23,0x6c,0x69,0x6e,0x65, 0x20,0x33,0x37,0x20,0x22,0x45,0x3a,0x2f,0x5f,0x2f,0x45,0x6e,0x67,0x69,0x6e,0x65,0x2f,0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x2f,0x53,0x6f,0x75,0x72,0x63,0x65,0x43,0x6f,0x64,0x65,0x2f,0x52,0x65,0x6e,0x64,0x65,0x72,0x65,0x72,0x2f,0x47,0x50,0x55,0x2f,0x73,0x6f,0x75,0x72,0x63,0x65,0x2f,0x6d,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x73,0x2e,0x66,0x78,0x22,0xa,0x53, 0x61,0x6d,0x70,0x6c,0x65,0x72,0x53,0x74,0x61,0x74,0x65,0x20,0x70,0x6f,0x69,0x6e,0x74,0x53,0x61,0x6d,0x70,0x6c,0x65,0x72,0x20,0x3a,0x20,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x28,0x73,0x30,0x29,0x3b,0xa,0x23,0x6c,0x69,0x6e,0x65,0x20,0x33,0x38,0x20,0x22,0x45,0x3a,0x2f,0x5f,0x2f,0x45,0x6e,0x67,0x69,0x6e,0x65,0x2f,0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x2f, 0x53,0x6f,0x75,0x72,0x63,0x65,0x43,0x6f,0x64,0x65,0x2f,0x52,0x65,0x6e,0x64,0x65,0x72,0x65,0x72,0x2f,0x47,0x50,0x55,0x2f,0x73,0x6f,0x75,0x72,0x63,0x65,0x2f,0x6d,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x73,0x2e,0x66,0x78,0x22,0xa,0x53,0x61,0x6d,0x70,0x6c,0x65,0x72,0x53,0x74,0x61,0x74,0x65,0x20,0x6c,0x69,0x6e,0x65,0x61,0x72,0x53,0x61,0x6d,0x70,0x6c,0x65,0x72,0x20,0x3a,0x20,0x72, 0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x28,0x73,0x31,0x29,0x3b,0xa,0x23,0x6c,0x69,0x6e,0x65,0x20,0x33,0x39,0x20,0x22,0x45,0x3a,0x2f,0x5f,0x2f,0x45,0x6e,0x67,0x69,0x6e,0x65,0x2f,0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x2f,0x53,0x6f,0x75,0x72,0x63,0x65,0x43,0x6f,0x64,0x65,0x2f,0x52,0x65,0x6e,0x64,0x65,0x72,0x65,0x72,0x2f,0x47,0x50,0x55,0x2f,0x73,0x6f,0x75,0x72, 0x63,0x65,0x2f,0x6d,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x73,0x2e,0x66,0x78,0x22,0xa,0x53,0x61,0x6d,0x70,0x6c,0x65,0x72,0x53,0x74,0x61,0x74,0x65,0x20,0x61,0x6e,0x69,0x73,0x6f,0x74,0x72,0x6f,0x70,0x69,0x63,0x53,0x61,0x6d,0x70,0x6c,0x65,0x72,0x20,0x3a,0x20,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x28,0x73,0x32,0x29,0x3b,0xa,0x23,0x6c,0x69,0x6e,0x65,0x20,0x34,0x31,0x20,0x22, 0x45,0x3a,0x2f,0x5f,0x2f,0x45,0x6e,0x67,0x69,0x6e,0x65,0x2f,0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x2f,0x53,0x6f,0x75,0x72,0x63,0x65,0x43,0x6f,0x64,0x65,0x2f,0x52,0x65,0x6e,0x64,0x65,0x72,0x65,0x72,0x2f,0x47,0x50,0x55,0x2f,0x73,0x6f,0x75,0x72,0x63,0x65,0x2f,0x6d,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x73,0x2e,0x66,0x78,0x22,0xa,0x53,0x61,0x6d,0x70,0x6c,0x65, 0x72,0x53,0x74,0x61,0x74,0x65,0x20,0x63,0x6f,0x6c,0x6f,0x72,0x4d,0x61,0x70,0x53,0x61,0x6d,0x70,0x6c,0x65,0x72,0x20,0x3a,0x20,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x28,0x73,0x33,0x29,0x3b,0xa,0x23,0x6c,0x69,0x6e,0x65,0x20,0x34,0x32,0x20,0x22,0x45,0x3a,0x2f,0x5f,0x2f,0x45,0x6e,0x67,0x69,0x6e,0x65,0x2f,0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x2f,0x53,0x6f, 0x75,0x72,0x63,0x65,0x43,0x6f,0x64,0x65,0x2f,0x52,0x65,0x6e,0x64,0x65,0x72,0x65,0x72,0x2f,0x47,0x50,0x55,0x2f,0x73,0x6f,0x75,0x72,0x63,0x65,0x2f,0x6d,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x73,0x2e,0x66,0x78,0x22,0xa,0x53,0x61,0x6d,0x70,0x6c,0x65,0x72,0x53,0x74,0x61,0x74,0x65,0x20,0x64,0x65,0x74,0x61,0x69,0x6c,0x4d,0x61,0x70,0x53,0x61,0x6d,0x70,0x6c,0x65,0x72,0x20,0x3a,0x20, 0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x28,0x73,0x34,0x29,0x3b,0xa,0x23,0x6c,0x69,0x6e,0x65,0x20,0x34,0x33,0x20,0x22,0x45,0x3a,0x2f,0x5f,0x2f,0x45,0x6e,0x67,0x69,0x6e,0x65,0x2f,0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x2f,0x53,0x6f,0x75,0x72,0x63,0x65,0x43,0x6f,0x64,0x65,0x2f,0x52,0x65,0x6e,0x64,0x65,0x72,0x65,0x72,0x2f,0x47,0x50,0x55,0x2f,0x73,0x6f,0x75, 0x72,0x63,0x65,0x2f,0x6d,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x73,0x2e,0x66,0x78,0x22,0xa,0x53,0x61,0x6d,0x70,0x6c,0x65,0x72,0x53,0x74,0x61,0x74,0x65,0x20,0x6e,0x6f,0x72,0x6d,0x61,0x6c,0x4d,0x61,0x70,0x53,0x61,0x6d,0x70,0x6c,0x65,0x72,0x20,0x3a,0x20,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x28,0x73,0x35,0x29,0x3b,0xa,0x23,0x6c,0x69,0x6e,0x65,0x20,0x34,0x34,0x20,0x22,0x45, 0x3a,0x2f,0x5f,0x2f,0x45,0x6e,0x67,0x69,0x6e,0x65,0x2f,0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x2f,0x53,0x6f,0x75,0x72,0x63,0x65,0x43,0x6f,0x64,0x65,0x2f,0x52,0x65,0x6e,0x64,0x65,0x72,0x65,0x72,0x2f,0x47,0x50,0x55,0x2f,0x73,0x6f,0x75,0x72,0x63,0x65,0x2f,0x6d,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x73,0x2e,0x66,0x78,0x22,0xa,0x53,0x61,0x6d,0x70,0x6c,0x65,0x72, 0x53,0x74,0x61,0x74,0x65,0x20,0x73,0x70,0x65,0x63,0x75,0x6c,0x61,0x72,0x4d,0x61,0x70,0x53,0x61,0x6d,0x70,0x6c,0x65,0x72,0x20,0x3a,0x20,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x28,0x73,0x36,0x29,0x3b,0xa,0x23,0x6c,0x69,0x6e,0x65,0x20,0x34,0x35,0x20,0x22,0x45,0x3a,0x2f,0x5f,0x2f,0x45,0x6e,0x67,0x69,0x6e,0x65,0x2f,0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x2f, 0x53,0x6f,0x75,0x72,0x63,0x65,0x43,0x6f,0x64,0x65,0x2f,0x52,0x65,0x6e,0x64,0x65,0x72,0x65,0x72,0x2f,0x47,0x50,0x55,0x2f,0x73,0x6f,0x75,0x72,0x63,0x65,0x2f,0x6d,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x73,0x2e,0x66,0x78,0x22,0xa,0x53,0x61,0x6d,0x70,0x6c,0x65,0x72,0x53,0x74,0x61,0x74,0x65,0x20,0x61,0x74,0x74,0x65,0x6e,0x75,0x61,0x74,0x69,0x6f,0x6e,0x53,0x61,0x6d,0x70,0x6c,0x65, 0x72,0x20,0x3a,0x20,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x28,0x73,0x37,0x29,0x3b,0xa,0x23,0x6c,0x69,0x6e,0x65,0x20,0x34,0x36,0x20,0x22,0x45,0x3a,0x2f,0x5f,0x2f,0x45,0x6e,0x67,0x69,0x6e,0x65,0x2f,0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x2f,0x53,0x6f,0x75,0x72,0x63,0x65,0x43,0x6f,0x64,0x65,0x2f,0x52,0x65,0x6e,0x64,0x65,0x72,0x65,0x72,0x2f,0x47,0x50,0x55, 0x2f,0x73,0x6f,0x75,0x72,0x63,0x65,0x2f,0x6d,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x73,0x2e,0x66,0x78,0x22,0xa,0x53,0x61,0x6d,0x70,0x6c,0x65,0x72,0x53,0x74,0x61,0x74,0x65,0x20,0x63,0x75,0x62,0x65,0x4d,0x61,0x70,0x53,0x61,0x6d,0x70,0x6c,0x65,0x72,0x20,0x3a,0x20,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x28,0x73,0x38,0x29,0x3b,0xa,0x23,0x6c,0x69,0x6e,0x65,0x20,0x36,0x34,0x20, 0x22,0x45,0x3a,0x2f,0x5f,0x2f,0x45,0x6e,0x67,0x69,0x6e,0x65,0x2f,0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x2f,0x53,0x6f,0x75,0x72,0x63,0x65,0x43,0x6f,0x64,0x65,0x2f,0x52,0x65,0x6e,0x64,0x65,0x72,0x65,0x72,0x2f,0x47,0x50,0x55,0x2f,0x73,0x6f,0x75,0x72,0x63,0x65,0x2f,0x6d,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x73,0x2e,0x66,0x78,0x22,0xa,0x63,0x62,0x75,0x66,0x66, 0x65,0x72,0x20,0x50,0x65,0x72,0x56,0x69,0x65,0x77,0x20,0x3a,0x20,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x28,0x62,0x31,0x29,0xa,0x7b,0xa,0x9,0x66,0x6c,0x6f,0x61,0x74,0x34,0x78,0x34,0x20,0x76,0x69,0x65,0x77,0x50,0x72,0x6f,0x6a,0x65,0x63,0x74,0x69,0x6f,0x6e,0x4d,0x61,0x74,0x72,0x69,0x78,0x3b,0xa,0x7d,0x3b,0xa,0x23,0x6c,0x69,0x6e,0x65,0x20,0x39,0x31,0x20,0x22,0x45,0x3a, 0x2f,0x5f,0x2f,0x45,0x6e,0x67,0x69,0x6e,0x65,0x2f,0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x2f,0x53,0x6f,0x75,0x72,0x63,0x65,0x43,0x6f,0x64,0x65,0x2f,0x52,0x65,0x6e,0x64,0x65,0x72,0x65,0x72,0x2f,0x47,0x50,0x55,0x2f,0x73,0x6f,0x75,0x72,0x63,0x65,0x2f,0x6d,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x73,0x2e,0x66,0x78,0x22,0xa,0x63,0x62,0x75,0x66,0x66,0x65,0x72,0x20, 0x50,0x65,0x72,0x4f,0x62,0x6a,0x65,0x63,0x74,0x20,0x3a,0x20,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x28,0x62,0x32,0x29,0xa,0x7b,0xa,0x9,0x66,0x6c,0x6f,0x61,0x74,0x34,0x78,0x34,0x20,0x77,0x6f,0x72,0x6c,0x64,0x4d,0x61,0x74,0x72,0x69,0x78,0x3b,0xa,0x9,0x66,0x6c,0x6f,0x61,0x74,0x34,0x78,0x34,0x20,0x77,0x6f,0x72,0x6c,0x64,0x56,0x69,0x65,0x77,0x4d,0x61,0x74,0x72,0x69,0x78, 0x3b,0xa,0x9,0x66,0x6c,0x6f,0x61,0x74,0x34,0x78,0x34,0x20,0x77,0x6f,0x72,0x6c,0x64,0x56,0x69,0x65,0x77,0x50,0x72,0x6f,0x6a,0x65,0x63,0x74,0x69,0x6f,0x6e,0x4d,0x61,0x74,0x72,0x69,0x78,0x3b,0xa,0x7d,0x3b,0xa,0xa,0xa,0x23,0x6c,0x69,0x6e,0x65,0x20,0x31,0x30,0x34,0x20,0x22,0x45,0x3a,0x2f,0x5f,0x2f,0x45,0x6e,0x67,0x69,0x6e,0x65,0x2f,0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d, 0x65,0x6e,0x74,0x2f,0x53,0x6f,0x75,0x72,0x63,0x65,0x43,0x6f,0x64,0x65,0x2f,0x52,0x65,0x6e,0x64,0x65,0x72,0x65,0x72,0x2f,0x47,0x50,0x55,0x2f,0x73,0x6f,0x75,0x72,0x63,0x65,0x2f,0x70,0x5f,0x64,0x65,0x66,0x65,0x72,0x72,0x65,0x64,0x5f,0x66,0x69,0x6c,0x6c,0x5f,0x62,0x75,0x66,0x66,0x65,0x72,0x73,0x2e,0x66,0x78,0x22,0xa,0xd,0xa,0x23,0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x20,0x22, 0x68,0x5f,0x63,0x6f,0x6d,0x6d,0x6f,0x6e,0x5f,0x76,0x65,0x72,0x74,0x65,0x78,0x5f,0x74,0x79,0x70,0x65,0x73,0x2e,0x68,0x6c,0x73,0x6c,0x22,0xd,0xa,0x23,0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x20,0x22,0x67,0x5f,0x62,0x75,0x66,0x66,0x65,0x72,0x2e,0x68,0x6c,0x73,0x6c,0x22,0xd,0xa,0xd,0xa,0x76,0x6f,0x69,0x64,0x20,0x56,0x53,0x5f,0x4d,0x61,0x69,0x6e,0x28,0x20,0x69,0x6e,0x20,0x66, 0x6c,0x6f,0x61,0x74,0x33,0x20,0x78,0x79,0x7a,0x2c,0x20,0x6f,0x75,0x74,0x20,0x66,0x6c,0x6f,0x61,0x74,0x34,0x20,0x70,0x6f,0x73,0x48,0x20,0x29,0xd,0xa,0x7b,0xd,0xa,0x9,0x66,0x6c,0x6f,0x61,0x74,0x34,0x20,0x70,0x6f,0x73,0x4c,0x6f,0x63,0x61,0x6c,0x20,0x3d,0x20,0x66,0x6c,0x6f,0x61,0x74,0x34,0x28,0x20,0x78,0x79,0x7a,0x2c,0x20,0x31,0x20,0x29,0x3b,0xd,0xa,0xd,0xa,0x9,0x70, 0x6f,0x73,0x48,0x20,0x3d,0x20,0x6d,0x75,0x6c,0x28,0x20,0x70,0x6f,0x73,0x4c,0x6f,0x63,0x61,0x6c,0x2c,0x20,0x77,0x6f,0x72,0x6c,0x64,0x56,0x69,0x65,0x77,0x50,0x72,0x6f,0x6a,0x65,0x63,0x74,0x69,0x6f,0x6e,0x4d,0x61,0x74,0x72,0x69,0x78,0x20,0x29,0x3b,0xd,0xa,0x7d,0xd,0xa,0xd,0xa,0x76,0x6f,0x69,0x64,0x20,0x50,0x53,0x5f,0x4d,0x61,0x69,0x6e,0x28,0x20,0x69,0x6e,0x20,0x66,0x6c, 0x6f,0x61,0x74,0x34,0x20,0x70,0x6f,0x73,0x48,0x2c,0x20,0x6f,0x75,0x74,0x20,0x50,0x53,0x5f,0x4f,0x75,0x74,0x5f,0x47,0x42,0x75,0x66,0x66,0x65,0x72,0x20,0x6f,0x20,0x29,0xd,0xa,0x7b,0xd,0xa,0x9,0x6f,0x2e,0x72,0x74,0x30,0x20,0x3d,0x20,0x66,0x6c,0x6f,0x61,0x74,0x34,0x28,0x31,0x2c,0x31,0x2c,0x31,0x2c,0x31,0x29,0x3b,0xd,0xa,0x9,0x6f,0x2e,0x72,0x74,0x31,0x20,0x3d,0x20,0x66, 0x6c,0x6f,0x61,0x74,0x34,0x28,0x31,0x2c,0x31,0x2c,0x31,0x2c,0x31,0x29,0x3b,0xd,0xa,0x9,0x6f,0x2e,0x72,0x74,0x32,0x20,0x3d,0x20,0x31,0x3b,0xd,0xa,0x7d,0xd,0xa,0xd,0xa, } }; ShaderInstance p_deferred_fill_buffers_fallback::shaderInstances[1]; void p_deferred_fill_buffers_fallback::Initialize() { ShaderInfo d; p_deferred_fill_buffers_fallback::GetLoadInfo( d ); p_deferred_fill_buffers_fallback::Load( d, graphics.shaders ); } void p_deferred_fill_buffers_fallback::GetLoadInfo( ShaderInfo & outInfo ) { outInfo.source.code = p_deferred_fill_buffers_fallback::Source.data; outInfo.source.codeLength = p_deferred_fill_buffers_fallback::Source.size; outInfo.uniqueId = p_deferred_fill_buffers_fallback::UID; outInfo.name = p_deferred_fill_buffers_fallback::Name; outInfo.VS_EntryPoint = p_deferred_fill_buffers_fallback::VS_EntryPoint; outInfo.PS_EntryPoint = p_deferred_fill_buffers_fallback::PS_EntryPoint; outInfo.numInstances = p_deferred_fill_buffers_fallback::NumInstances; outInfo.load = p_deferred_fill_buffers_fallback::Load; } void p_deferred_fill_buffers_fallback::Load( const ShaderInfo& shaderInfo, GrShaderSystem* compiler ) { compiler->NewShaderInstance( shaderInfo, shaderInstances[0] ); } void p_deferred_fill_buffers_fallback::Shutdown() { graphics.shaders->Destroy_ShaderInstances( 1, p_deferred_fill_buffers_fallback::shaderInstances ); } TypedConstantBuffer< p_fullscreen_colored_triangle_shader::Data > p_fullscreen_colored_triangle_shader::cb_Data; const char* p_fullscreen_colored_triangle_shader::VS_EntryPoint = "FullScreenTriangle_VS"; const char* p_fullscreen_colored_triangle_shader::PS_EntryPoint = "PS_Main"; const char* p_fullscreen_colored_triangle_shader::Name = "p_fullscreen_colored_triangle_shader"; const rxStaticString p_fullscreen_colored_triangle_shader::Source = { 348, // length { 0xa,0x23,0x6c,0x69,0x6e,0x65,0x20,0x33,0x31,0x20,0x22,0x45,0x3a,0x2f,0x5f,0x2f,0x45,0x6e,0x67,0x69,0x6e,0x65,0x2f,0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x2f,0x53,0x6f,0x75,0x72,0x63,0x65,0x43,0x6f,0x64,0x65,0x2f,0x52,0x65,0x6e,0x64,0x65,0x72,0x65,0x72,0x2f,0x47,0x50,0x55,0x2f,0x73,0x6f,0x75,0x72,0x63,0x65,0x2f,0x70,0x5f,0x73,0x63,0x72,0x65,0x65,0x6e,0x5f, 0x73,0x68,0x61,0x64,0x65,0x72,0x2e,0x66,0x78,0x22,0xa,0x63,0x62,0x75,0x66,0x66,0x65,0x72,0x20,0x44,0x61,0x74,0x61,0x20,0x3a,0x20,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x28,0x62,0x30,0x29,0xa,0x7b,0xa,0x9,0x66,0x6c,0x6f,0x61,0x74,0x34,0x20,0x63,0x6f,0x6c,0x6f,0x72,0x3b,0xa,0x7d,0x3b,0xa,0xa,0x23,0x6c,0x69,0x6e,0x65,0x20,0x33,0x37,0x20,0x22,0x45,0x3a,0x2f,0x5f,0x2f, 0x45,0x6e,0x67,0x69,0x6e,0x65,0x2f,0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x2f,0x53,0x6f,0x75,0x72,0x63,0x65,0x43,0x6f,0x64,0x65,0x2f,0x52,0x65,0x6e,0x64,0x65,0x72,0x65,0x72,0x2f,0x47,0x50,0x55,0x2f,0x73,0x6f,0x75,0x72,0x63,0x65,0x2f,0x70,0x5f,0x73,0x63,0x72,0x65,0x65,0x6e,0x5f,0x73,0x68,0x61,0x64,0x65,0x72,0x2e,0x66,0x78,0x22,0xa,0xd,0xa,0x9,0x9,0x23, 0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x20,0x22,0x68,0x5f,0x73,0x63,0x72,0x65,0x65,0x6e,0x5f,0x73,0x68,0x61,0x64,0x65,0x72,0x2e,0x68,0x6c,0x73,0x6c,0x22,0xd,0xa,0x9,0x9,0xd,0xa,0x9,0x9,0x66,0x6c,0x6f,0x61,0x74,0x34,0x20,0x50,0x53,0x5f,0x4d,0x61,0x69,0x6e,0x28,0x20,0x69,0x6e,0x20,0x56,0x53,0x5f,0x53,0x63,0x72,0x65,0x65,0x6e,0x4f,0x75,0x74,0x70,0x75,0x74,0x20,0x69,0x6e, 0x70,0x75,0x74,0x20,0x29,0x20,0x3a,0x20,0x53,0x56,0x5f,0x54,0x61,0x72,0x67,0x65,0x74,0xd,0xa,0x9,0x9,0x7b,0xd,0xa,0x9,0x9,0x9,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x63,0x6f,0x6c,0x6f,0x72,0x3b,0xd,0xa,0x9,0x9,0x7d,0xd,0xa,0x9, } }; ShaderInstance p_fullscreen_colored_triangle_shader::shaderInstances[1]; void p_fullscreen_colored_triangle_shader::Initialize() { p_fullscreen_colored_triangle_shader::cb_Data.Create( GetDeviceContext() ); ShaderInfo d; p_fullscreen_colored_triangle_shader::GetLoadInfo( d ); p_fullscreen_colored_triangle_shader::Load( d, graphics.shaders ); } void p_fullscreen_colored_triangle_shader::GetLoadInfo( ShaderInfo & outInfo ) { outInfo.source.code = p_fullscreen_colored_triangle_shader::Source.data; outInfo.source.codeLength = p_fullscreen_colored_triangle_shader::Source.size; outInfo.uniqueId = p_fullscreen_colored_triangle_shader::UID; outInfo.name = p_fullscreen_colored_triangle_shader::Name; outInfo.VS_EntryPoint = p_fullscreen_colored_triangle_shader::VS_EntryPoint; outInfo.PS_EntryPoint = p_fullscreen_colored_triangle_shader::PS_EntryPoint; outInfo.numInstances = p_fullscreen_colored_triangle_shader::NumInstances; outInfo.load = p_fullscreen_colored_triangle_shader::Load; } void p_fullscreen_colored_triangle_shader::Load( const ShaderInfo& shaderInfo, GrShaderSystem* compiler ) { compiler->NewShaderInstance( shaderInfo, shaderInstances[0] ); } void p_fullscreen_colored_triangle_shader::Shutdown() { p_fullscreen_colored_triangle_shader::cb_Data.Destroy(); graphics.shaders->Destroy_ShaderInstances( 1, p_fullscreen_colored_triangle_shader::shaderInstances ); } ID3D11SamplerState* p_fullscreen_textured_triangle_shader::linearSampler = nil; ID3D11ShaderResourceView* p_fullscreen_textured_triangle_shader::sourceTexture = nil; const char* p_fullscreen_textured_triangle_shader::VS_EntryPoint = "FullScreenTriangle_VS"; const char* p_fullscreen_textured_triangle_shader::PS_EntryPoint = "PS_Main"; const char* p_fullscreen_textured_triangle_shader::Name = "p_fullscreen_textured_triangle_shader"; const rxStaticString p_fullscreen_textured_triangle_shader::Source = { 579, // length { 0xa,0x23,0x6c,0x69,0x6e,0x65,0x20,0x35,0x20,0x22,0x45,0x3a,0x2f,0x5f,0x2f,0x45,0x6e,0x67,0x69,0x6e,0x65,0x2f,0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x2f,0x53,0x6f,0x75,0x72,0x63,0x65,0x43,0x6f,0x64,0x65,0x2f,0x52,0x65,0x6e,0x64,0x65,0x72,0x65,0x72,0x2f,0x47,0x50,0x55,0x2f,0x73,0x6f,0x75,0x72,0x63,0x65,0x2f,0x70,0x5f,0x73,0x63,0x72,0x65,0x65,0x6e,0x5f,0x73, 0x68,0x61,0x64,0x65,0x72,0x2e,0x66,0x78,0x22,0xa,0x53,0x61,0x6d,0x70,0x6c,0x65,0x72,0x53,0x74,0x61,0x74,0x65,0x20,0x6c,0x69,0x6e,0x65,0x61,0x72,0x53,0x61,0x6d,0x70,0x6c,0x65,0x72,0x20,0x3a,0x20,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x28,0x73,0x30,0x29,0x3b,0xa,0x23,0x6c,0x69,0x6e,0x65,0x20,0x36,0x20,0x22,0x45,0x3a,0x2f,0x5f,0x2f,0x45,0x6e,0x67,0x69,0x6e,0x65,0x2f,0x44, 0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x2f,0x53,0x6f,0x75,0x72,0x63,0x65,0x43,0x6f,0x64,0x65,0x2f,0x52,0x65,0x6e,0x64,0x65,0x72,0x65,0x72,0x2f,0x47,0x50,0x55,0x2f,0x73,0x6f,0x75,0x72,0x63,0x65,0x2f,0x70,0x5f,0x73,0x63,0x72,0x65,0x65,0x6e,0x5f,0x73,0x68,0x61,0x64,0x65,0x72,0x2e,0x66,0x78,0x22,0xa,0x54,0x65,0x78,0x74,0x75,0x72,0x65,0x32,0x44,0x20,0x73,0x6f,0x75, 0x72,0x63,0x65,0x54,0x65,0x78,0x74,0x75,0x72,0x65,0x20,0x3a,0x20,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x28,0x74,0x30,0x29,0x3b,0xa,0xa,0x23,0x6c,0x69,0x6e,0x65,0x20,0x39,0x20,0x22,0x45,0x3a,0x2f,0x5f,0x2f,0x45,0x6e,0x67,0x69,0x6e,0x65,0x2f,0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x2f,0x53,0x6f,0x75,0x72,0x63,0x65,0x43,0x6f,0x64,0x65,0x2f,0x52,0x65,0x6e, 0x64,0x65,0x72,0x65,0x72,0x2f,0x47,0x50,0x55,0x2f,0x73,0x6f,0x75,0x72,0x63,0x65,0x2f,0x70,0x5f,0x73,0x63,0x72,0x65,0x65,0x6e,0x5f,0x73,0x68,0x61,0x64,0x65,0x72,0x2e,0x66,0x78,0x22,0xa,0xd,0xa,0x9,0x9,0x23,0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x20,0x22,0x68,0x5f,0x73,0x63,0x72,0x65,0x65,0x6e,0x5f,0x73,0x68,0x61,0x64,0x65,0x72,0x2e,0x68,0x6c,0x73,0x6c,0x22,0xd,0xa,0x9, 0x9,0xd,0xa,0x9,0x9,0x66,0x6c,0x6f,0x61,0x74,0x33,0x20,0x50,0x53,0x5f,0x4d,0x61,0x69,0x6e,0x28,0x20,0x69,0x6e,0x20,0x56,0x53,0x5f,0x53,0x63,0x72,0x65,0x65,0x6e,0x4f,0x75,0x74,0x70,0x75,0x74,0x20,0x69,0x6e,0x70,0x75,0x74,0x20,0x29,0x20,0x3a,0x20,0x53,0x56,0x5f,0x54,0x61,0x72,0x67,0x65,0x74,0xd,0xa,0x9,0x9,0x7b,0xd,0xa,0x9,0x9,0x9,0x66,0x6c,0x6f,0x61,0x74,0x33, 0x20,0x6f,0x75,0x74,0x70,0x75,0x74,0x43,0x6f,0x6c,0x6f,0x72,0x20,0x3d,0x20,0x30,0x2e,0x30,0x66,0x3b,0xd,0xa,0x9,0x9,0x9,0x6f,0x75,0x74,0x70,0x75,0x74,0x43,0x6f,0x6c,0x6f,0x72,0x20,0x3d,0x20,0x73,0x6f,0x75,0x72,0x63,0x65,0x54,0x65,0x78,0x74,0x75,0x72,0x65,0x2e,0x53,0x61,0x6d,0x70,0x6c,0x65,0x28,0x20,0x6c,0x69,0x6e,0x65,0x61,0x72,0x53,0x61,0x6d,0x70,0x6c,0x65,0x72,0x2c, 0x20,0x69,0x6e,0x70,0x75,0x74,0x2e,0x74,0x65,0x78,0x43,0x6f,0x6f,0x72,0x64,0x20,0x29,0x2e,0x72,0x67,0x62,0x3b,0xd,0xa,0x9,0x9,0x9,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x6f,0x75,0x74,0x70,0x75,0x74,0x43,0x6f,0x6c,0x6f,0x72,0x3b,0xd,0xa,0x9,0x9,0x7d,0xd,0xa,0x9, } }; ShaderInstance p_fullscreen_textured_triangle_shader::shaderInstances[1]; void p_fullscreen_textured_triangle_shader::Initialize() { ShaderInfo d; p_fullscreen_textured_triangle_shader::GetLoadInfo( d ); p_fullscreen_textured_triangle_shader::Load( d, graphics.shaders ); } void p_fullscreen_textured_triangle_shader::GetLoadInfo( ShaderInfo & outInfo ) { outInfo.source.code = p_fullscreen_textured_triangle_shader::Source.data; outInfo.source.codeLength = p_fullscreen_textured_triangle_shader::Source.size; outInfo.uniqueId = p_fullscreen_textured_triangle_shader::UID; outInfo.name = p_fullscreen_textured_triangle_shader::Name; outInfo.VS_EntryPoint = p_fullscreen_textured_triangle_shader::VS_EntryPoint; outInfo.PS_EntryPoint = p_fullscreen_textured_triangle_shader::PS_EntryPoint; outInfo.numInstances = p_fullscreen_textured_triangle_shader::NumInstances; outInfo.load = p_fullscreen_textured_triangle_shader::Load; } extern SamplerState samplerState_SS_Bilinear; void p_fullscreen_textured_triangle_shader::Load( const ShaderInfo& shaderInfo, GrShaderSystem* compiler ) { p_fullscreen_textured_triangle_shader::linearSampler = samplerState_SS_Bilinear.p.Ptr; compiler->NewShaderInstance( shaderInfo, shaderInstances[0] ); } void p_fullscreen_textured_triangle_shader::Shutdown() { graphics.shaders->Destroy_ShaderInstances( 1, p_fullscreen_textured_triangle_shader::shaderInstances ); } TypedConstantBuffer< p_test_shader::Data > p_test_shader::cb_Data; ID3D11ShaderResourceView* p_test_shader::diffuseTexture = nil; const char* p_test_shader::VS_EntryPoint = "VS_Main"; const char* p_test_shader::PS_EntryPoint = "PS_Main"; const char* p_test_shader::Name = "p_test_shader"; const rxStaticString p_test_shader::Source = { 2175, // length { 0x23,0x6c,0x69,0x6e,0x65,0x20,0x32,0x38,0x20,0x22,0x45,0x3a,0x2f,0x5f,0x2f,0x45,0x6e,0x67,0x69,0x6e,0x65,0x2f,0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x2f,0x53,0x6f,0x75,0x72,0x63,0x65,0x43,0x6f,0x64,0x65,0x2f,0x52,0x65,0x6e,0x64,0x65,0x72,0x65,0x72,0x2f,0x47,0x50,0x55,0x2f,0x73,0x6f,0x75,0x72,0x63,0x65,0x2f,0x6d,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x73,0x2e, 0x66,0x78,0x22,0xa,0x63,0x62,0x75,0x66,0x66,0x65,0x72,0x20,0x50,0x65,0x72,0x46,0x72,0x61,0x6d,0x65,0x20,0x3a,0x20,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x28,0x62,0x30,0x29,0xa,0x7b,0xa,0x9,0x66,0x6c,0x6f,0x61,0x74,0x31,0x20,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x54,0x69,0x6d,0x65,0x49,0x6e,0x53,0x65,0x63,0x6f,0x6e,0x64,0x73,0x3b,0xa,0x7d,0x3b,0xa,0x23,0x6c,0x69,0x6e,0x65, 0x20,0x33,0x37,0x20,0x22,0x45,0x3a,0x2f,0x5f,0x2f,0x45,0x6e,0x67,0x69,0x6e,0x65,0x2f,0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x2f,0x53,0x6f,0x75,0x72,0x63,0x65,0x43,0x6f,0x64,0x65,0x2f,0x52,0x65,0x6e,0x64,0x65,0x72,0x65,0x72,0x2f,0x47,0x50,0x55,0x2f,0x73,0x6f,0x75,0x72,0x63,0x65,0x2f,0x6d,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x73,0x2e,0x66,0x78,0x22,0xa,0x53, 0x61,0x6d,0x70,0x6c,0x65,0x72,0x53,0x74,0x61,0x74,0x65,0x20,0x70,0x6f,0x69,0x6e,0x74,0x53,0x61,0x6d,0x70,0x6c,0x65,0x72,0x20,0x3a,0x20,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x28,0x73,0x30,0x29,0x3b,0xa,0x23,0x6c,0x69,0x6e,0x65,0x20,0x33,0x38,0x20,0x22,0x45,0x3a,0x2f,0x5f,0x2f,0x45,0x6e,0x67,0x69,0x6e,0x65,0x2f,0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x2f, 0x53,0x6f,0x75,0x72,0x63,0x65,0x43,0x6f,0x64,0x65,0x2f,0x52,0x65,0x6e,0x64,0x65,0x72,0x65,0x72,0x2f,0x47,0x50,0x55,0x2f,0x73,0x6f,0x75,0x72,0x63,0x65,0x2f,0x6d,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x73,0x2e,0x66,0x78,0x22,0xa,0x53,0x61,0x6d,0x70,0x6c,0x65,0x72,0x53,0x74,0x61,0x74,0x65,0x20,0x6c,0x69,0x6e,0x65,0x61,0x72,0x53,0x61,0x6d,0x70,0x6c,0x65,0x72,0x20,0x3a,0x20,0x72, 0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x28,0x73,0x31,0x29,0x3b,0xa,0x23,0x6c,0x69,0x6e,0x65,0x20,0x33,0x39,0x20,0x22,0x45,0x3a,0x2f,0x5f,0x2f,0x45,0x6e,0x67,0x69,0x6e,0x65,0x2f,0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x2f,0x53,0x6f,0x75,0x72,0x63,0x65,0x43,0x6f,0x64,0x65,0x2f,0x52,0x65,0x6e,0x64,0x65,0x72,0x65,0x72,0x2f,0x47,0x50,0x55,0x2f,0x73,0x6f,0x75,0x72, 0x63,0x65,0x2f,0x6d,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x73,0x2e,0x66,0x78,0x22,0xa,0x53,0x61,0x6d,0x70,0x6c,0x65,0x72,0x53,0x74,0x61,0x74,0x65,0x20,0x61,0x6e,0x69,0x73,0x6f,0x74,0x72,0x6f,0x70,0x69,0x63,0x53,0x61,0x6d,0x70,0x6c,0x65,0x72,0x20,0x3a,0x20,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x28,0x73,0x32,0x29,0x3b,0xa,0x23,0x6c,0x69,0x6e,0x65,0x20,0x34,0x31,0x20,0x22, 0x45,0x3a,0x2f,0x5f,0x2f,0x45,0x6e,0x67,0x69,0x6e,0x65,0x2f,0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x2f,0x53,0x6f,0x75,0x72,0x63,0x65,0x43,0x6f,0x64,0x65,0x2f,0x52,0x65,0x6e,0x64,0x65,0x72,0x65,0x72,0x2f,0x47,0x50,0x55,0x2f,0x73,0x6f,0x75,0x72,0x63,0x65,0x2f,0x6d,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x73,0x2e,0x66,0x78,0x22,0xa,0x53,0x61,0x6d,0x70,0x6c,0x65, 0x72,0x53,0x74,0x61,0x74,0x65,0x20,0x63,0x6f,0x6c,0x6f,0x72,0x4d,0x61,0x70,0x53,0x61,0x6d,0x70,0x6c,0x65,0x72,0x20,0x3a,0x20,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x28,0x73,0x33,0x29,0x3b,0xa,0x23,0x6c,0x69,0x6e,0x65,0x20,0x34,0x32,0x20,0x22,0x45,0x3a,0x2f,0x5f,0x2f,0x45,0x6e,0x67,0x69,0x6e,0x65,0x2f,0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x2f,0x53,0x6f, 0x75,0x72,0x63,0x65,0x43,0x6f,0x64,0x65,0x2f,0x52,0x65,0x6e,0x64,0x65,0x72,0x65,0x72,0x2f,0x47,0x50,0x55,0x2f,0x73,0x6f,0x75,0x72,0x63,0x65,0x2f,0x6d,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x73,0x2e,0x66,0x78,0x22,0xa,0x53,0x61,0x6d,0x70,0x6c,0x65,0x72,0x53,0x74,0x61,0x74,0x65,0x20,0x64,0x65,0x74,0x61,0x69,0x6c,0x4d,0x61,0x70,0x53,0x61,0x6d,0x70,0x6c,0x65,0x72,0x20,0x3a,0x20, 0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x28,0x73,0x34,0x29,0x3b,0xa,0x23,0x6c,0x69,0x6e,0x65,0x20,0x34,0x33,0x20,0x22,0x45,0x3a,0x2f,0x5f,0x2f,0x45,0x6e,0x67,0x69,0x6e,0x65,0x2f,0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x2f,0x53,0x6f,0x75,0x72,0x63,0x65,0x43,0x6f,0x64,0x65,0x2f,0x52,0x65,0x6e,0x64,0x65,0x72,0x65,0x72,0x2f,0x47,0x50,0x55,0x2f,0x73,0x6f,0x75, 0x72,0x63,0x65,0x2f,0x6d,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x73,0x2e,0x66,0x78,0x22,0xa,0x53,0x61,0x6d,0x70,0x6c,0x65,0x72,0x53,0x74,0x61,0x74,0x65,0x20,0x6e,0x6f,0x72,0x6d,0x61,0x6c,0x4d,0x61,0x70,0x53,0x61,0x6d,0x70,0x6c,0x65,0x72,0x20,0x3a,0x20,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x28,0x73,0x35,0x29,0x3b,0xa,0x23,0x6c,0x69,0x6e,0x65,0x20,0x34,0x34,0x20,0x22,0x45, 0x3a,0x2f,0x5f,0x2f,0x45,0x6e,0x67,0x69,0x6e,0x65,0x2f,0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x2f,0x53,0x6f,0x75,0x72,0x63,0x65,0x43,0x6f,0x64,0x65,0x2f,0x52,0x65,0x6e,0x64,0x65,0x72,0x65,0x72,0x2f,0x47,0x50,0x55,0x2f,0x73,0x6f,0x75,0x72,0x63,0x65,0x2f,0x6d,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x73,0x2e,0x66,0x78,0x22,0xa,0x53,0x61,0x6d,0x70,0x6c,0x65,0x72, 0x53,0x74,0x61,0x74,0x65,0x20,0x73,0x70,0x65,0x63,0x75,0x6c,0x61,0x72,0x4d,0x61,0x70,0x53,0x61,0x6d,0x70,0x6c,0x65,0x72,0x20,0x3a,0x20,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x28,0x73,0x36,0x29,0x3b,0xa,0x23,0x6c,0x69,0x6e,0x65,0x20,0x34,0x35,0x20,0x22,0x45,0x3a,0x2f,0x5f,0x2f,0x45,0x6e,0x67,0x69,0x6e,0x65,0x2f,0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x2f, 0x53,0x6f,0x75,0x72,0x63,0x65,0x43,0x6f,0x64,0x65,0x2f,0x52,0x65,0x6e,0x64,0x65,0x72,0x65,0x72,0x2f,0x47,0x50,0x55,0x2f,0x73,0x6f,0x75,0x72,0x63,0x65,0x2f,0x6d,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x73,0x2e,0x66,0x78,0x22,0xa,0x53,0x61,0x6d,0x70,0x6c,0x65,0x72,0x53,0x74,0x61,0x74,0x65,0x20,0x61,0x74,0x74,0x65,0x6e,0x75,0x61,0x74,0x69,0x6f,0x6e,0x53,0x61,0x6d,0x70,0x6c,0x65, 0x72,0x20,0x3a,0x20,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x28,0x73,0x37,0x29,0x3b,0xa,0x23,0x6c,0x69,0x6e,0x65,0x20,0x34,0x36,0x20,0x22,0x45,0x3a,0x2f,0x5f,0x2f,0x45,0x6e,0x67,0x69,0x6e,0x65,0x2f,0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x2f,0x53,0x6f,0x75,0x72,0x63,0x65,0x43,0x6f,0x64,0x65,0x2f,0x52,0x65,0x6e,0x64,0x65,0x72,0x65,0x72,0x2f,0x47,0x50,0x55, 0x2f,0x73,0x6f,0x75,0x72,0x63,0x65,0x2f,0x6d,0x5f,0x67,0x6c,0x6f,0x62,0x61,0x6c,0x73,0x2e,0x66,0x78,0x22,0xa,0x53,0x61,0x6d,0x70,0x6c,0x65,0x72,0x53,0x74,0x61,0x74,0x65,0x20,0x63,0x75,0x62,0x65,0x4d,0x61,0x70,0x53,0x61,0x6d,0x70,0x6c,0x65,0x72,0x20,0x3a,0x20,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x28,0x73,0x38,0x29,0x3b,0xa,0xa,0x23,0x6c,0x69,0x6e,0x65,0x20,0x35,0x20, 0x22,0x45,0x3a,0x2f,0x5f,0x2f,0x45,0x6e,0x67,0x69,0x6e,0x65,0x2f,0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x2f,0x53,0x6f,0x75,0x72,0x63,0x65,0x43,0x6f,0x64,0x65,0x2f,0x52,0x65,0x6e,0x64,0x65,0x72,0x65,0x72,0x2f,0x47,0x50,0x55,0x2f,0x73,0x6f,0x75,0x72,0x63,0x65,0x2f,0x70,0x5f,0x74,0x65,0x73,0x74,0x5f,0x73,0x68,0x61,0x64,0x65,0x72,0x73,0x2e,0x66,0x78,0x22,0xa, 0x63,0x62,0x75,0x66,0x66,0x65,0x72,0x20,0x44,0x61,0x74,0x61,0x20,0x3a,0x20,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x28,0x62,0x31,0x29,0xa,0x7b,0xa,0x9,0x66,0x6c,0x6f,0x61,0x74,0x34,0x78,0x34,0x20,0x77,0x76,0x70,0x3b,0xa,0x7d,0x3b,0xa,0x23,0x6c,0x69,0x6e,0x65,0x20,0x31,0x30,0x20,0x22,0x45,0x3a,0x2f,0x5f,0x2f,0x45,0x6e,0x67,0x69,0x6e,0x65,0x2f,0x44,0x65,0x76,0x65,0x6c, 0x6f,0x70,0x6d,0x65,0x6e,0x74,0x2f,0x53,0x6f,0x75,0x72,0x63,0x65,0x43,0x6f,0x64,0x65,0x2f,0x52,0x65,0x6e,0x64,0x65,0x72,0x65,0x72,0x2f,0x47,0x50,0x55,0x2f,0x73,0x6f,0x75,0x72,0x63,0x65,0x2f,0x70,0x5f,0x74,0x65,0x73,0x74,0x5f,0x73,0x68,0x61,0x64,0x65,0x72,0x73,0x2e,0x66,0x78,0x22,0xa,0x54,0x65,0x78,0x74,0x75,0x72,0x65,0x32,0x44,0x20,0x64,0x69,0x66,0x66,0x75,0x73,0x65,0x54, 0x65,0x78,0x74,0x75,0x72,0x65,0x20,0x3a,0x20,0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x28,0x74,0x30,0x29,0x3b,0xa,0xa,0x23,0x6c,0x69,0x6e,0x65,0x20,0x31,0x33,0x20,0x22,0x45,0x3a,0x2f,0x5f,0x2f,0x45,0x6e,0x67,0x69,0x6e,0x65,0x2f,0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x2f,0x53,0x6f,0x75,0x72,0x63,0x65,0x43,0x6f,0x64,0x65,0x2f,0x52,0x65,0x6e,0x64,0x65,0x72, 0x65,0x72,0x2f,0x47,0x50,0x55,0x2f,0x73,0x6f,0x75,0x72,0x63,0x65,0x2f,0x70,0x5f,0x74,0x65,0x73,0x74,0x5f,0x73,0x68,0x61,0x64,0x65,0x72,0x73,0x2e,0x66,0x78,0x22,0xa,0xd,0xa,0x9,0x9,0xd,0xa,0x9,0x9,0x73,0x74,0x72,0x75,0x63,0x74,0x20,0x61,0x70,0x70,0x54,0x6f,0x56,0x53,0xd,0xa,0x9,0x9,0x7b,0xd,0xa,0x9,0x9,0x9,0x66,0x6c,0x6f,0x61,0x74,0x33,0x20,0x78,0x79,0x7a, 0x20,0x3a,0x20,0x50,0x6f,0x73,0x69,0x74,0x69,0x6f,0x6e,0x3b,0xd,0xa,0x9,0x9,0x9,0x66,0x6c,0x6f,0x61,0x74,0x32,0x20,0x75,0x76,0x20,0x3a,0x20,0x54,0x65,0x78,0x43,0x6f,0x6f,0x72,0x64,0x3b,0xd,0xa,0x9,0x9,0x9,0x2f,0x2f,0x75,0x69,0x6e,0x74,0x34,0x20,0x6e,0x6f,0x72,0x6d,0x61,0x6c,0x20,0x3a,0x20,0x4e,0x6f,0x72,0x6d,0x61,0x6c,0x3b,0xd,0xa,0x9,0x9,0x9,0x2f,0x2f,0x75, 0x69,0x6e,0x74,0x34,0x20,0x74,0x61,0x6e,0x67,0x65,0x6e,0x74,0x20,0x3a,0x20,0x54,0x61,0x6e,0x67,0x65,0x6e,0x74,0x3b,0xd,0xa,0x9,0x9,0x7d,0x3b,0xd,0xa,0xd,0xa,0x9,0x9,0x73,0x74,0x72,0x75,0x63,0x74,0x20,0x56,0x53,0x5f,0x74,0x6f,0x5f,0x50,0x53,0xd,0xa,0x9,0x9,0x7b,0xd,0xa,0x9,0x9,0x9,0x66,0x6c,0x6f,0x61,0x74,0x34,0x20,0x68,0x50,0x6f,0x73,0x20,0x3a,0x20,0x53, 0x56,0x5f,0x50,0x6f,0x73,0x69,0x74,0x69,0x6f,0x6e,0x3b,0xd,0xa,0x9,0x9,0x9,0x66,0x6c,0x6f,0x61,0x74,0x32,0x20,0x74,0x65,0x78,0x43,0x6f,0x6f,0x72,0x64,0x20,0x3a,0x20,0x54,0x65,0x78,0x43,0x6f,0x6f,0x72,0x64,0x3b,0xd,0xa,0x9,0x9,0x7d,0x3b,0xd,0xa,0x9,0x9,0x76,0x6f,0x69,0x64,0x20,0x56,0x53,0x5f,0x4d,0x61,0x69,0x6e,0x28,0x20,0x69,0x6e,0x20,0x61,0x70,0x70,0x54,0x6f, 0x56,0x53,0x20,0x49,0x4e,0x2c,0x20,0x6f,0x75,0x74,0x20,0x56,0x53,0x5f,0x74,0x6f,0x5f,0x50,0x53,0x20,0x4f,0x55,0x54,0x20,0x29,0xd,0xa,0x9,0x9,0x7b,0xd,0xa,0x9,0x9,0x9,0x4f,0x55,0x54,0x2e,0x68,0x50,0x6f,0x73,0x20,0x3d,0x20,0x6d,0x75,0x6c,0x28,0x66,0x6c,0x6f,0x61,0x74,0x34,0x28,0x49,0x4e,0x2e,0x78,0x79,0x7a,0x2c,0x31,0x29,0x2c,0x77,0x76,0x70,0x29,0x3b,0xd,0xa,0x9, 0x9,0x9,0x4f,0x55,0x54,0x2e,0x74,0x65,0x78,0x43,0x6f,0x6f,0x72,0x64,0x20,0x3d,0x20,0x49,0x4e,0x2e,0x75,0x76,0x3b,0xd,0xa,0x9,0x9,0x7d,0xd,0xa,0x9,0x9,0x66,0x6c,0x6f,0x61,0x74,0x33,0x20,0x50,0x53,0x5f,0x4d,0x61,0x69,0x6e,0x28,0x20,0x69,0x6e,0x20,0x56,0x53,0x5f,0x74,0x6f,0x5f,0x50,0x53,0x20,0x69,0x6e,0x70,0x75,0x74,0x20,0x29,0x20,0x3a,0x20,0x53,0x56,0x5f,0x54,0x61, 0x72,0x67,0x65,0x74,0xd,0xa,0x9,0x9,0x7b,0xd,0xa,0x9,0x9,0x9,0x66,0x6c,0x6f,0x61,0x74,0x33,0x20,0x6f,0x75,0x74,0x70,0x75,0x74,0x43,0x6f,0x6c,0x6f,0x72,0x20,0x3d,0x20,0x30,0x2e,0x30,0x66,0x3b,0xd,0xa,0x9,0x9,0x9,0x6f,0x75,0x74,0x70,0x75,0x74,0x43,0x6f,0x6c,0x6f,0x72,0x20,0x3d,0x20,0x64,0x69,0x66,0x66,0x75,0x73,0x65,0x54,0x65,0x78,0x74,0x75,0x72,0x65,0x2e,0x53, 0x61,0x6d,0x70,0x6c,0x65,0x28,0x20,0x6c,0x69,0x6e,0x65,0x61,0x72,0x53,0x61,0x6d,0x70,0x6c,0x65,0x72,0x2c,0x20,0x69,0x6e,0x70,0x75,0x74,0x2e,0x74,0x65,0x78,0x43,0x6f,0x6f,0x72,0x64,0x20,0x29,0x2e,0x72,0x67,0x62,0x3b,0xd,0xa,0x9,0x9,0x9,0x72,0x65,0x74,0x75,0x72,0x6e,0x20,0x6f,0x75,0x74,0x70,0x75,0x74,0x43,0x6f,0x6c,0x6f,0x72,0x3b,0xd,0xa,0x9,0x9,0x7d,0xd,0xa,0x9, } }; ShaderInstance p_test_shader::shaderInstances[1]; void p_test_shader::Initialize() { p_test_shader::cb_Data.Create( GetDeviceContext() ); ShaderInfo d; p_test_shader::GetLoadInfo( d ); p_test_shader::Load( d, graphics.shaders ); } void p_test_shader::GetLoadInfo( ShaderInfo & outInfo ) { outInfo.source.code = p_test_shader::Source.data; outInfo.source.codeLength = p_test_shader::Source.size; outInfo.uniqueId = p_test_shader::UID; outInfo.name = p_test_shader::Name; outInfo.VS_EntryPoint = p_test_shader::VS_EntryPoint; outInfo.PS_EntryPoint = p_test_shader::PS_EntryPoint; outInfo.numInstances = p_test_shader::NumInstances; outInfo.load = p_test_shader::Load; } void p_test_shader::Load( const ShaderInfo& shaderInfo, GrShaderSystem* compiler ) { compiler->NewShaderInstance( shaderInfo, shaderInstances[0] ); } void p_test_shader::Shutdown() { p_test_shader::cb_Data.Destroy(); graphics.shaders->Destroy_ShaderInstances( 1, p_test_shader::shaderInstances ); } InputLayout Vertex_P3F::layout; InputLayout Vertex_P3F_TEX2F::layout; InputLayout Vertex_P3F_TEX2F_N4UB::layout; InputLayout Vertex_P3F_TEX2F_N4UB_T4UB::layout; InputLayout Vertex_P4F_COL4F::layout; static void CreateInputLayouts() { { dxVertexFormat vtxFormat; { D3D11_INPUT_ELEMENT_DESC & elemDesc = vtxFormat.elements.Add(); elemDesc.SemanticName = "Position"; elemDesc.SemanticIndex = 0; elemDesc.Format = DXGI_FORMAT_R32G32B32_FLOAT; elemDesc.InputSlot = 0; elemDesc.AlignedByteOffset = D3D11_APPEND_ALIGNED_ELEMENT; elemDesc.InputSlotClass = D3D11_INPUT_PER_VERTEX_DATA; elemDesc.InstanceDataStepRate = 0; } graphics.resources->Create_InputLayout( vtxFormat.elements.ToPtr(), vtxFormat.elements.Num(), Vertex_P3F::layout ); dxDbgSetName( Vertex_P3F::layout.p, "Vertex_P3F" ); } { dxVertexFormat vtxFormat; { D3D11_INPUT_ELEMENT_DESC & elemDesc = vtxFormat.elements.Add(); elemDesc.SemanticName = "Position"; elemDesc.SemanticIndex = 0; elemDesc.Format = DXGI_FORMAT_R32G32B32_FLOAT; elemDesc.InputSlot = 0; elemDesc.AlignedByteOffset = D3D11_APPEND_ALIGNED_ELEMENT; elemDesc.InputSlotClass = D3D11_INPUT_PER_VERTEX_DATA; elemDesc.InstanceDataStepRate = 0; } { D3D11_INPUT_ELEMENT_DESC & elemDesc = vtxFormat.elements.Add(); elemDesc.SemanticName = "TexCoord"; elemDesc.SemanticIndex = 0; elemDesc.Format = DXGI_FORMAT_R32G32_FLOAT; elemDesc.InputSlot = 0; elemDesc.AlignedByteOffset = D3D11_APPEND_ALIGNED_ELEMENT; elemDesc.InputSlotClass = D3D11_INPUT_PER_VERTEX_DATA; elemDesc.InstanceDataStepRate = 0; } graphics.resources->Create_InputLayout( vtxFormat.elements.ToPtr(), vtxFormat.elements.Num(), Vertex_P3F_TEX2F::layout ); dxDbgSetName( Vertex_P3F_TEX2F::layout.p, "Vertex_P3F_TEX2F" ); } { dxVertexFormat vtxFormat; { D3D11_INPUT_ELEMENT_DESC & elemDesc = vtxFormat.elements.Add(); elemDesc.SemanticName = "Position"; elemDesc.SemanticIndex = 0; elemDesc.Format = DXGI_FORMAT_R32G32B32_FLOAT; elemDesc.InputSlot = 0; elemDesc.AlignedByteOffset = D3D11_APPEND_ALIGNED_ELEMENT; elemDesc.InputSlotClass = D3D11_INPUT_PER_VERTEX_DATA; elemDesc.InstanceDataStepRate = 0; } { D3D11_INPUT_ELEMENT_DESC & elemDesc = vtxFormat.elements.Add(); elemDesc.SemanticName = "TexCoord"; elemDesc.SemanticIndex = 0; elemDesc.Format = DXGI_FORMAT_R32G32_FLOAT; elemDesc.InputSlot = 0; elemDesc.AlignedByteOffset = D3D11_APPEND_ALIGNED_ELEMENT; elemDesc.InputSlotClass = D3D11_INPUT_PER_VERTEX_DATA; elemDesc.InstanceDataStepRate = 0; } { D3D11_INPUT_ELEMENT_DESC & elemDesc = vtxFormat.elements.Add(); elemDesc.SemanticName = "Normal"; elemDesc.SemanticIndex = 0; elemDesc.Format = DXGI_FORMAT_R8G8B8A8_UINT; elemDesc.InputSlot = 0; elemDesc.AlignedByteOffset = D3D11_APPEND_ALIGNED_ELEMENT; elemDesc.InputSlotClass = D3D11_INPUT_PER_VERTEX_DATA; elemDesc.InstanceDataStepRate = 0; } graphics.resources->Create_InputLayout( vtxFormat.elements.ToPtr(), vtxFormat.elements.Num(), Vertex_P3F_TEX2F_N4UB::layout ); dxDbgSetName( Vertex_P3F_TEX2F_N4UB::layout.p, "Vertex_P3F_TEX2F_N4UB" ); } { dxVertexFormat vtxFormat; { D3D11_INPUT_ELEMENT_DESC & elemDesc = vtxFormat.elements.Add(); elemDesc.SemanticName = "Position"; elemDesc.SemanticIndex = 0; elemDesc.Format = DXGI_FORMAT_R32G32B32_FLOAT; elemDesc.InputSlot = 0; elemDesc.AlignedByteOffset = D3D11_APPEND_ALIGNED_ELEMENT; elemDesc.InputSlotClass = D3D11_INPUT_PER_VERTEX_DATA; elemDesc.InstanceDataStepRate = 0; } { D3D11_INPUT_ELEMENT_DESC & elemDesc = vtxFormat.elements.Add(); elemDesc.SemanticName = "TexCoord"; elemDesc.SemanticIndex = 0; elemDesc.Format = DXGI_FORMAT_R32G32_FLOAT; elemDesc.InputSlot = 1; elemDesc.AlignedByteOffset = D3D11_APPEND_ALIGNED_ELEMENT; elemDesc.InputSlotClass = D3D11_INPUT_PER_VERTEX_DATA; elemDesc.InstanceDataStepRate = 0; } { D3D11_INPUT_ELEMENT_DESC & elemDesc = vtxFormat.elements.Add(); elemDesc.SemanticName = "Normal"; elemDesc.SemanticIndex = 0; elemDesc.Format = DXGI_FORMAT_R8G8B8A8_UINT; elemDesc.InputSlot = 1; elemDesc.AlignedByteOffset = D3D11_APPEND_ALIGNED_ELEMENT; elemDesc.InputSlotClass = D3D11_INPUT_PER_VERTEX_DATA; elemDesc.InstanceDataStepRate = 0; } { D3D11_INPUT_ELEMENT_DESC & elemDesc = vtxFormat.elements.Add(); elemDesc.SemanticName = "Tangent"; elemDesc.SemanticIndex = 0; elemDesc.Format = DXGI_FORMAT_R8G8B8A8_UINT; elemDesc.InputSlot = 1; elemDesc.AlignedByteOffset = D3D11_APPEND_ALIGNED_ELEMENT; elemDesc.InputSlotClass = D3D11_INPUT_PER_VERTEX_DATA; elemDesc.InstanceDataStepRate = 0; } graphics.resources->Create_InputLayout( vtxFormat.elements.ToPtr(), vtxFormat.elements.Num(), Vertex_P3F_TEX2F_N4UB_T4UB::layout ); dxDbgSetName( Vertex_P3F_TEX2F_N4UB_T4UB::layout.p, "Vertex_P3F_TEX2F_N4UB_T4UB" ); } { dxVertexFormat vtxFormat; { D3D11_INPUT_ELEMENT_DESC & elemDesc = vtxFormat.elements.Add(); elemDesc.SemanticName = "Position"; elemDesc.SemanticIndex = 0; elemDesc.Format = DXGI_FORMAT_R32G32B32A32_FLOAT; elemDesc.InputSlot = 0; elemDesc.AlignedByteOffset = D3D11_APPEND_ALIGNED_ELEMENT; elemDesc.InputSlotClass = D3D11_INPUT_PER_VERTEX_DATA; elemDesc.InstanceDataStepRate = 0; } { D3D11_INPUT_ELEMENT_DESC & elemDesc = vtxFormat.elements.Add(); elemDesc.SemanticName = "Color"; elemDesc.SemanticIndex = 0; elemDesc.Format = DXGI_FORMAT_R32G32B32A32_FLOAT; elemDesc.InputSlot = 0; elemDesc.AlignedByteOffset = D3D11_APPEND_ALIGNED_ELEMENT; elemDesc.InputSlotClass = D3D11_INPUT_PER_VERTEX_DATA; elemDesc.InstanceDataStepRate = 0; } graphics.resources->Create_InputLayout( vtxFormat.elements.ToPtr(), vtxFormat.elements.Num(), Vertex_P4F_COL4F::layout ); dxDbgSetName( Vertex_P4F_COL4F::layout.p, "Vertex_P4F_COL4F" ); } } void Vertex_P3F::AssembleVertexData( const IndexedMesh& src, VertexData& dest ) { dest.streams.SetNum( NumStreams ); const SizeT vertexCount = src.numVertices; dest.streams[ xyz_stream ].buffer.stride = xyz_stream_size; dest.streams[ xyz_stream ].buffer.SetNum( vertexCount ); TCopyVertices( cast(float3*)dest.streams[ xyz_stream ].ToPtr(), src.positions, vertexCount, xyz_stream_size, xyz_stream_offset ); } void Vertex_P3F_TEX2F::AssembleVertexData( const IndexedMesh& src, VertexData& dest ) { dest.streams.SetNum( NumStreams ); const SizeT vertexCount = src.numVertices; dest.streams[ xyz_uv_stream ].buffer.stride = xyz_uv_stream_size; dest.streams[ xyz_uv_stream ].buffer.SetNum( vertexCount ); TCopyVertices( cast(float3*)dest.streams[ xyz_uv_stream ].ToPtr(), src.positions, vertexCount, xyz_uv_stream_size, xyz_stream_offset ); TCopyVertices( cast(float2*)dest.streams[ xyz_uv_stream ].ToPtr(), src.texCoords, vertexCount, xyz_uv_stream_size, uv_stream_offset ); } void Vertex_P3F_TEX2F_N4UB::AssembleVertexData( const IndexedMesh& src, VertexData& dest ) { dest.streams.SetNum( NumStreams ); const SizeT vertexCount = src.numVertices; dest.streams[ xyz_uv_N_stream ].buffer.stride = xyz_uv_N_stream_size; dest.streams[ xyz_uv_N_stream ].buffer.SetNum( vertexCount ); TCopyVertices( cast(float3*)dest.streams[ xyz_uv_N_stream ].ToPtr(), src.positions, vertexCount, xyz_uv_N_stream_size, xyz_stream_offset ); TCopyVertices( cast(float2*)dest.streams[ xyz_uv_N_stream ].ToPtr(), src.texCoords, vertexCount, xyz_uv_N_stream_size, uv_stream_offset ); TCopyVertices( cast(rxNormal4*)dest.streams[ xyz_uv_N_stream ].ToPtr(), src.normals, vertexCount, xyz_uv_N_stream_size, N_stream_offset ); } void Vertex_P3F_TEX2F_N4UB_T4UB::AssembleVertexData( const IndexedMesh& src, VertexData& dest ) { dest.streams.SetNum( NumStreams ); const SizeT vertexCount = src.numVertices; dest.streams[ xyz_stream ].buffer.stride = xyz_stream_size; dest.streams[ xyz_stream ].buffer.SetNum( vertexCount ); TCopyVertices( cast(float3*)dest.streams[ xyz_stream ].ToPtr(), src.positions, vertexCount, xyz_stream_size, xyz_stream_offset ); dest.streams[ uv_N_T_stream ].buffer.stride = uv_N_T_stream_size; dest.streams[ uv_N_T_stream ].buffer.SetNum( vertexCount ); TCopyVertices( cast(float2*)dest.streams[ uv_N_T_stream ].ToPtr(), src.texCoords, vertexCount, uv_N_T_stream_size, uv_stream_offset ); TCopyVertices( cast(rxNormal4*)dest.streams[ uv_N_T_stream ].ToPtr(), src.normals, vertexCount, uv_N_T_stream_size, N_stream_offset ); TCopyVertices( cast(rxNormal4*)dest.streams[ uv_N_T_stream ].ToPtr(), src.tangents, vertexCount, uv_N_T_stream_size, T_stream_offset ); } void Vertex_P4F_COL4F::AssembleVertexData( const IndexedMesh& src, VertexData& dest ) { dest.streams.SetNum( NumStreams ); const SizeT vertexCount = src.numVertices; dest.streams[ xyzw_rgba_stream ].buffer.stride = xyzw_rgba_stream_size; dest.streams[ xyzw_rgba_stream ].buffer.SetNum( vertexCount ); TCopyVertices( cast(float4*)dest.streams[ xyzw_rgba_stream ].ToPtr(), src.positions, vertexCount, xyzw_rgba_stream_size, xyzw_stream_offset ); TCopyVertices( cast(float4*)dest.streams[ xyzw_rgba_stream ].ToPtr(), src.colors, vertexCount, xyzw_rgba_stream_size, rgba_stream_offset ); } //=========================================================================== // Creation / Destruction //=========================================================================== void Initialize() { SetupRenderTargets(); SetupSamplerStates(); SetupDepthStencilStates(); SetupRasterizerStates(); SetupBlendStates(); SetupStateBlocks(); CreateInputLayouts(); SetupSharedSections(); p_batched_lines::Initialize(); p_deferred_fill_buffers_fallback::Initialize(); p_fullscreen_colored_triangle_shader::Initialize(); p_fullscreen_textured_triangle_shader::Initialize(); p_test_shader::Initialize(); } void Shutdown() { p_batched_lines::Shutdown(); p_deferred_fill_buffers_fallback::Shutdown(); p_fullscreen_colored_triangle_shader::Shutdown(); p_fullscreen_textured_triangle_shader::Shutdown(); p_test_shader::Shutdown(); graphics.resources->Destroy_SamplerState( samplerState_SS_Point ); graphics.resources->Destroy_SamplerState( samplerState_SS_Bilinear ); graphics.resources->Destroy_SamplerState( samplerState_SS_Aniso ); graphics.resources->Destroy_DepthStencilState( depthStencilState_DS_NormalZTestWriteNoStencil ); graphics.resources->Destroy_DepthStencilState( depthStencilState_DS_NoZTestWriteNoStencil ); graphics.resources->Destroy_RasterizerState( rasterizerState_RS_WireframeNoCullNoClip ); graphics.resources->Destroy_RasterizerState( rasterizerState_RS_NoCull ); graphics.resources->Destroy_RasterizerState( rasterizerState_RS_CullBack ); graphics.resources->Destroy_BlendState( blendState_BS_NoBlending ); graphics.resources->Destroy_RenderTarget( renderTarget_RT_Diffuse_SpecPower ); graphics.resources->Destroy_RenderTarget( renderTarget_RT_Normal_SpecIntensity ); graphics.resources->Destroy_RenderTarget( renderTarget_RT_LinearDepth ); graphics.resources->Destroy_RenderTarget( renderTarget_RT_MotionXY ); ZERO_OUT( renderState_Default ); ZERO_OUT( renderState_Debug_NoCull ); graphics.resources->Destroy_InputLayout( Vertex_P3F::layout ); graphics.resources->Destroy_InputLayout( Vertex_P3F_TEX2F::layout ); graphics.resources->Destroy_InputLayout( Vertex_P3F_TEX2F_N4UB::layout ); graphics.resources->Destroy_InputLayout( Vertex_P3F_TEX2F_N4UB_T4UB::layout ); graphics.resources->Destroy_InputLayout( Vertex_P4F_COL4F::layout ); Shared_Globals::cb_PerFrame.Destroy(); Shared_View::cb_PerView.Destroy(); Shared_Object::cb_PerObject.Destroy(); } }
dfdd996bb8dbfdd389155a8a6c706934cab9e7bb
f3e0d4b2239563446889a77306b4b755c2f8a8b0
/Comp477Project/Mesh.cpp
fee44656bf24e63aec46b9ff9a64583d1bce7718
[]
no_license
Ratslayer/Comp477Project_2014
f430ec2ec6e2f43b2b45cd2006a6d179d68032e3
9719d98a24de349329643d88c933aadca70eccee
refs/heads/master
2016-09-06T06:39:19.049850
2014-11-13T18:50:50
2014-11-13T18:50:50
26,599,983
0
1
null
null
null
null
UTF-8
C++
false
false
6,878
cpp
#include "stdafx.h" #include "Mesh.h" #include "Window.h" Mesh::Mesh() :Asset() { iVerticesVBO = iBinormalsVBO = iTexCoordsVBO = iNormalsVBO = iIndicesVBO = 0; //loadASEFile(fileName); } Mesh::~Mesh() { deleteVBO(iVerticesVBO); deleteVBO(iNormalsVBO); deleteVBO(iTexCoordsVBO); deleteVBO(iBinormalsVBO); deleteVBO(iIndicesVBO); } void Mesh::loadFromFile(std::string fileName) { Asset::loadFromFile(fileName); loadASEFile(fileName); } void Mesh::loadObjFile(string fileName) { ifstream fileStream(fileName); if (fileStream.is_open()) { vector<float> vertices; vector<float> texCoords; vector<float> rawTexCoords; vector<float> normals; //vector<vec3> binormals; vector<pair<unsigned int, unsigned int>> indexPairs; vector<unsigned int> indices; string nextLine; while (getline(fileStream, nextLine)) { string header; istringstream content(nextLine); content >> header; if (header == "v") { readVector<float>(content, vertices, 3); } else if (header == "vt") { readVector<float>(content, rawTexCoords, 2); } else if (header == "vn") { readVector<float>(content, normals, 3); } else if (header == "f") { string indexBatch; for (int i = 0; i < 3; i++) { content >> indexBatch; istringstream indexStream(indexBatch); string firstIndexString, secondIndexString; getline(indexStream, firstIndexString, '/'); getline(indexStream, secondIndexString, '/'); pair<unsigned int, unsigned int> indexPair; indexPair.first = atoi(firstIndexString.c_str()); indexPair.second = atoi(secondIndexString.c_str()); indexPairs.push_back(indexPair); indices.push_back(indexPair.first-1); } //readVector<unsigned int>(content, indices, 3); /*for (int i = 0; i < 3; i++) { unsigned int index; content >> index; indices.push_back(index); }*/ } } /*for (int i = 0; i < rawTexCoords.size() / 2; i++) { rawTexCoords[i + 1] = 1 - rawTexCoords[i + 1]; }*/ texCoords = rawTexCoords;//getTexCoords(indexPairs, rawTexCoords, vertices.size()/3); createVBOs(vertices, texCoords, normals, indices); //createVBO<vec3>(binormals, &iBinormalsVBO); } } void Mesh::bindVBO(GLuint VBOpos, GLuint attribPos, int attribSize) { glBindBuffer(GL_ARRAY_BUFFER, VBOpos); glEnableVertexAttribArray(attribPos); glVertexAttribPointer(attribPos, attribSize, GL_FLOAT, false, 0, 0); } void Mesh::BindVertices(GLuint attribPos) { bindVBO(iVerticesVBO, attribPos, 3); } void Mesh::BindTexCoords(GLuint attribPos) { bindVBO(iTexCoordsVBO, attribPos, 2); } void Mesh::BindNormals(GLuint attribPos) { bindVBO(iNormalsVBO, attribPos, 3); } void Mesh::BindBinormals(GLuint attribPos) { bindVBO(iBinormalsVBO, attribPos, 3); } void Mesh::deleteVBO(GLuint iVBO) { if (iVBO) glDeleteBuffers(1, &iVBO); } void Mesh::draw() { /*BindVertices(effect->getAttribute("position")); BindTexCoords(effect->getAttribute("texCoords")); BindNormals(effect->getAttribute("normal")); BindBinormals(effect->getAttribute("binormal"));*/ glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, iIndicesVBO); glDrawElements(GL_TRIANGLES, numIndices, GL_UNSIGNED_INT, 0); } vector<float> Mesh::getTexCoords(vector<pair<unsigned int, unsigned int>> &indexPairs, vector<float> &rawTexCoords, unsigned int numVertices) { //unsigned int numTexCoords = indexPairs.size() / 3; vector<float> texCoords; for (unsigned int i = 0; i < numVertices; i++) { vec2 texCoord = getAverageTexCoord(i, indexPairs, rawTexCoords); texCoords.push_back(texCoord.x); texCoords.push_back(texCoord.y); } return texCoords; } vec2 Mesh::getAverageTexCoord(unsigned int index, vector<pair<unsigned int, unsigned int>> &indexPairs, const vector<float> &rawTexCoords) { vec2 texCoord; int numOccurences = 0; for (unsigned int i = 0; i < indexPairs.size(); i++) { unsigned int curIndex = indexPairs[i].first - 1; if (curIndex == index) { unsigned int texCoordIndex = indexPairs[i].second - 1; vec2 nextTexCoord = vec2(rawTexCoords[texCoordIndex], rawTexCoords[texCoordIndex + 1]); texCoord += nextTexCoord; numOccurences++; } } texCoord /= (float)numOccurences; return texCoord; } void Mesh::loadASEFile(string fileName) { Scanner sc(fileName); vector<float> vertices; vector<float> texCoords; vector<float> normals; vector<unsigned int> indices; vector<unsigned int> tcIndices; //get translation float translation[3]; sc.jumpAfter("TM_ROW3"); for (int i = 0; i < 3; i++) translation[i] = sc.getFloat(); //get size of model unsigned int numVertices, numFaces; sc.jumpAfter("MESH_NUMVERTEX"); numVertices = sc.getUInt(); sc.jumpAfter("MESH_NUMFACES"); numFaces = sc.getUInt(); //get vertices sc.jumpAfter("MESH_VERTEX_LIST"); for (unsigned int i = 0; i < numVertices; i++) { sc.jumpAfter("MESH_VERTEX"); unsigned int id=sc.getUInt(); for (int j = 0; j < 3; j++) vertices.push_back(sc.getFloat() - translation[j]); } //get faces sc.jumpAfter("MESH_FACE_LIST"); for (unsigned int i = 0; i < numFaces; i++) { sc.jumpAfter("MESH_FACE"); sc.jumpAfter(":"); for (int j = 0; j < 3; j++) { sc.jumpAfter(":"); indices.push_back(sc.getUInt()); } } //get texture coordinates sc.jumpAfter("MESH_NUMTVERTEX"); unsigned int numTexCoords = sc.getUInt(); sc.jumpAfter("MESH_TVERTLIST"); for (unsigned int i = 0; i < numTexCoords; i++) { sc.jumpAfter("MESH_TVERT"); sc.getUInt(); texCoords.push_back(sc.getFloat()); texCoords.push_back(sc.getFloat()); } sc.jumpAfter("MESH_NUMTVFACES"); unsigned int numTcIndices = sc.getUInt(); sc.jumpAfter("MESH_TFACELIST"); for (unsigned int i = 0; i < numTcIndices; i++) { sc.jumpAfter("MESH_TFACE"); sc.getUInt(); for (int j = 0; j < 3; j++) tcIndices.push_back(sc.getUInt()); } unifyIndices(vertices, texCoords, indices, tcIndices); createVBOs(vertices, texCoords, normals, indices); } void Mesh::createVBOs(vector<float> &vertices, vector<float> &texCoords, vector<float> &normals, vector<unsigned int> &indices) { createVBO<float>(vertices, &iVerticesVBO); createVBO<float>(texCoords, &iTexCoordsVBO); createVBO<float>(normals, &iNormalsVBO); createVBO<unsigned int>(indices, &iIndicesVBO); numIndices = indices.size(); } void Mesh::unifyIndices(vector<float> &vertices, vector<float> &texCoords, vector<unsigned int> &indices, vector<unsigned int> &tcIndices) { vector<float> newVertices, newTexCoords; vector<unsigned int> newIndices; for (unsigned int i = 0; i < indices.size(); i++) { for (int j = 0; j < 3; j++) newVertices.push_back(vertices[indices[i] * 3 + j]); for (int j = 0; j < 2; j++) newTexCoords.push_back(texCoords[tcIndices[i] * 2 + j]); } for (unsigned int i = 0; i < newVertices.size(); i++) newIndices.push_back(i); vertices = newVertices; texCoords = newTexCoords; indices = newIndices; }
b3cbf6c01f6a55481d1d0ef20c6950517a156cfb
d3cabb025573597150ab6fa0398f7adba7f768b6
/Game/buttonfactory.h
55e4b4f8865600c21d7c107b8272a1541f2e2e90
[]
no_license
top-araneus/technoatom
5c1a83fd99f7de54db9c4a886c4d26ccb393b8fa
2c3ccebfa75183b9b50162a77acdec14bb941ff5
refs/heads/master
2021-01-19T04:02:58.142207
2017-06-26T00:42:48
2017-06-26T00:42:48
84,426,227
0
1
null
2017-06-25T22:26:48
2017-03-09T09:56:23
C++
UTF-8
C++
false
false
857
h
#ifndef BUTTONFACTORY_H #define BUTTONFACTORY_H #include "buttons.h" class ButtonFactory { public: ButtonFactory(){} static Button* GetButton(LinearVector<int> constraints, LinearVector<int> coords, std::string caption); static Button* GetExitButton(LinearVector<int> window_constraints, LinearVector<int> window_coords); }; Button* ButtonFactory::GetButton(LinearVector<int> constraints, LinearVector<int> coords, std::string caption) { return new Button(constraints, coords, caption); } Button* ButtonFactory::GetExitButton(LinearVector<int> window_constraints, LinearVector<int> window_coords) { LinearVector<int> exit_coords; exit_coords.x_ = window_coords.x_ + window_constraints.x_ - 30; exit_coords.y_ = window_coords.y_ + 5; return new Button(LinearVector<int>(20,20), exit_coords, std::string("X")); } #endif // BUTTONFACTORY_H
6830ec4b55f07a6bb1850b200903081d4e824afd
39d6ad40b021143df3c03a6546ea238cfc5e6e63
/shinobi/SourceCode/math/raypicktomesh.cpp
0e93ec6a04543eaeee58d117af5c2ccb2af41947
[]
no_license
weiqiuxiang/shinobi
eb1c3312e120a04232722099c2b7834cfce07313
8cfa81fbdf2fa36ca01cbac4be4b2bc925dfee5e
refs/heads/master
2020-03-18T18:22:43.405608
2018-05-28T02:01:32
2018-05-28T02:01:32
135,088,800
0
0
null
null
null
null
SHIFT_JIS
C++
false
false
21,890
cpp
#include "raypicktomesh.h" //関数説明 : レイピッキングによる交差判定 静止しているメッシュに対し、移動前、移動後の座標情報での判定 //引数説明 : //moveflag : すべりモードのOn/Off を true か false で渡す //resultpos : 衝突した場合の座標を格納する変数へのアドレス。衝突地点が必要なければ nullptr //pos_before : レイ(線分)の移動前の座標(始点) //pos_after : レイ(線分)の移動後の座標(終点) //mesh : 当たり判定を取るメッシュの頂点情報 //matrix : 当たり判定を取るメッシュを変換する行列 //戻り値説明 : bool型 当ったときにtrue 当っていないときにfalseを返す bool RayPickToMesh::RaypicktoMesh( bool moveflag , D3DXVECTOR3 *resultpos, D3DXVECTOR3 pos_before , D3DXVECTOR3 pos_after , LPD3DXMESH mesh , D3DXMATRIX matrix ) { /////////////////////////////////////////////////////////////////////////////////////////////////////////// // // ポリゴンにあたってすべる処理 // // 交差判定:オブジェクトのローカル座標系で当たり判定を行うため、 // 絶対座標の位置情報を交差判定をするオブジェクトを変換した行列の逆行列を使ってする BOOL hit;DWORD index;float dist; // 交差判定情報受け取り変数 D3DXVECTOR3 _direction; // 変換後の位置、方向を格納する変数:本当はここで定義すべし表示用にグローバル定義にしている D3DXMATRIX invmat; // 逆行列を格納する変数 D3DXVECTOR3 vertex[3],vertexnormal[3]; // 1ポリゴンを構成する3頂点の座標と方向 D3DXVECTOR3 polyNormal; // ポリゴンの法線(方向) D3DXPLANE plane; // 平面処理用の構造体:ポリゴンを平面として処理するため D3DXMatrixInverse ( &invmat , nullptr , &matrix ); // 逆行列の取得 D3DXVec3TransformCoord(&pos_before,&pos_before,&invmat); // 逆行列を使用し、レイ始点情報を変換 位置と向きで変換する関数が異なるので要注意 D3DXVec3TransformCoord(&pos_after,&pos_after,&invmat); // 逆行列を使用し、レイ終点情報を変換 位置と向きで変換する関数が異なるので要注意 D3DXVECTOR3 VecAfterToBefore = pos_after - pos_before; D3DXVec3Normalize (&_direction ,&VecAfterToBefore); // 逆行列を使用し、レイ方向情報を変換 位置と向きで変換する関数が異なるので要注意 // 移動方向レイとの当たり判定を行う D3DXIntersect (mesh,&pos_before,&_direction,&hit,&index,nullptr,nullptr,&dist,nullptr,nullptr ); // これは当たり判定のチェックではない点に注意:あくまで移動方向にポリゴンがあるかどうかを判断している if( hit ) { // 移動方向の先には、この番号のポリゴンに当たるらしい int polyindex = index; //////////////////////////////////////////////////////////////////////////////////////////////////////////////// // // メッシュと取得し、頂点フォーマットなどの情報を取得 // メッシュから、当たり判定に使用することになるポリゴンのの情報を取得する // このあたりの処理はほぼこれで定型と思っていい // LPD3DXMESH pMesh = mesh; // メッシュクラスから実メッシュを取得 DWORD fvf = pMesh->GetFVF(); // 実メッシュから頂点情報を取得 // インデックスバッファと頂点バッファの取得 // インデックスバッファとは1ポリゴンを構成するのにどのポリゴンがしようされているかを表す:通常3点で1ポリを構成する //LPDIRECT3DINDEXBUFFER9 pI; // インデックスバッファ //D3DINDEXBUFFER_DESC Idesc; // インデックスバッファの構成情報 LPVOID pVB,pIB; // 形式なしポインタ、まずこの形式でポインタを取得する _XFileIndexBuffer *i_pt; // 自分が作ったインデックスバッファ処理用構造体へのポインタ // pMesh->GetIndexBuffer( &pI ); // インデックスバッファを取得 // pI->GetDesc( &Idesc ); // インデックスバッファから構成情報を取得 pMesh->LockIndexBuffer( D3DLOCK_READONLY , &pIB ); // インデックスバッファをロックしポインタを取得 pMesh->LockVertexBuffer( D3DLOCK_READONLY , &pVB ); // バーテックスバッファをロックしポインタを取得 pMesh->UnlockIndexBuffer(); // ロックして用がすんだらすぐアンロック pMesh->UnlockVertexBuffer(); // ロックして用がすんだらすぐアンロック // インデックスバッファを値取得用構造体にキャスト i_pt = (_XFileIndexBuffer*)pIB; // こうすることにより、ただのメモリ領域を自分が規定したデータ形式で処理できる、これがC言語の一番強力な機能である // 必要なインデックスまで進める for( int i=0 ; i<polyindex ; i++ ) { i_pt++; } // 頂点フォーマットによってキャストする構造体を変更する if( fvf == ( D3DFVF_XYZ | D3DFVF_NORMAL | D3DFVF_TEX1 ) ) // 位置:方向:テクスチャ1枚の場合 { // 無形ポインタを自分の作成したバーテックスバッファ処理用のポインタにキャストする // こうすることにより、ただのメモリ領域を自分が規定したデータ形式で処理できる、これがC言語の一番強力な機能である _XFileVertexBuffer_p_n_t *v_pt; // 位置:方向:テクスチャ1枚の構造体のポインタ v_pt = (_XFileVertexBuffer_p_n_t*)pVB; // キャスト // 3頂点のデータを取得する for( int i=0 ; i<3 ; i++ ) { // 頂点バッファの先頭アドレス取得 _XFileVertexBuffer_p_n_t *w_pt = v_pt; // 取得した頂点番号までポインタをスキップ for( int j=0 ; j<i_pt->p[i] ; j++ ) w_pt++; // 該当する頂点の法線情報取得と頂点位置情報を取得 vertexnormal[i] = w_pt->normal; // 方向情報 vertex[i] = w_pt->pos; // 位置情報 } } if( fvf == ( D3DFVF_XYZ | D3DFVF_NORMAL) ) // 位置:方向の場合 { // 無形ポインタを自分の作成したバーテックスバッファ処理用のポインタにキャストする // こうすることにより、ただのメモリ領域を自分が規定したデータ形式で処理できる、これがC言語の一番強力な機能である _XFileVertexBuffer_p_n *v_pt; // 位置:方向構造体のポインタ v_pt = (_XFileVertexBuffer_p_n*)pVB; // キャスト // 3頂点のデータを取得する for( int i=0 ; i<3 ; i++ ) { // 頂点バッファの先頭アドレス取得 _XFileVertexBuffer_p_n *w_pt = v_pt; // 取得した頂点番号までポインタをスキップ for( int j=0 ; j<i_pt->p[i] ; j++ ) w_pt++; // 該当する頂点の法線情報取得と頂点位置情報を取得 vertexnormal[i] = w_pt->normal; // 方向情報 vertex[i] = w_pt->pos; // 位置情報 } } // 取得した3点の頂点データから、ポリゴンの向きを求め、そこからすべり後の座標を求める // 取得した3頂点のデータからポリゴンの法線を求める polyNormal.x = ( vertexnormal[0].x + vertexnormal[1].x + vertexnormal[2].x)/3; polyNormal.y = ( vertexnormal[0].y + vertexnormal[1].y + vertexnormal[2].y)/3; polyNormal.z = ( vertexnormal[0].z + vertexnormal[1].z + vertexnormal[2].z)/3; // 3点を用いて無限平面を定義する D3DXPlaneFromPoints( &plane,&vertex[0],&vertex[1],&vertex[2]); ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // // 移動前後の座標がポリゴンを挟んでいるか判定し、はさんでいればアタットミなし、すべり処理を行う // このあたりからは実際の移動前後の座標を使用するので注意する // 移動後、前の位置が平面をはさむかチェック float ans[2]; // 数学の平面と頂点に関する公式を利用する:平面の表面にあるなら正:裏面なら負になる ans[0] = ( plane.a * pos_after.x ) +( plane.b * pos_after.y )+(plane.c * pos_after.z )+plane.d; ans[1] = ( plane.a * pos_before.x ) +( plane.b * pos_before.y )+(plane.c * pos_before.z )+plane.d; // 二つの値の正負が反対ならば、両面をはさむ->当たっているのですべり処理を行う if( ans[0]*ans[1] < 0.0f ) { // ヒットしていた場合にすべりモードが有効でなければ、衝突位置を返して終了 if( moveflag == false ) { if( resultpos ) { *resultpos = pos_before + _direction*(dist+0.05f); // あたり判定オブジェクトのローカル座標系での位置なので、絶対座標に変換しなおす D3DXVec3TransformCoord(resultpos,resultpos,&matrix); } } else { // すべり後の座標が入る変数 D3DXVECTOR3 afterpos; // 移動後の座標からポリゴン法線方向にレイを飛ばし、ポリゴンとの交点を求める D3DXIntersect (mesh,&pos_after,&polyNormal,&hit,&index,nullptr,nullptr,&dist,nullptr,nullptr ); // 交差していた場合は、レイ表示情報の終点位置を更新する if( hit ) { // すべり後の座標ポリゴンの表面より少し多めに戻す afterpos = pos_after+polyNormal*(dist+0.05f); // あたり判定オブジェクトのローカル座標系での位置なので、絶対座標に変換しなおす D3DXVec3TransformCoord(&afterpos,&afterpos,&matrix); // すべての処理がすんだ座標をセット if( resultpos ) { *resultpos = afterpos; } } } return true; } // 2つの値が負の場合、オブジェクトに埋まってしまっているので、反対方向の直近ポリゴンまで移動 if( ans[0] < 0.0f && ans[1] < 0.0f ) { VecAfterToBefore = pos_before - pos_after; // 反対方向にレイを飛ばす D3DXVec3Normalize (&_direction ,&VecAfterToBefore); // 移動方向レイとの当たり判定を行う D3DXIntersect (mesh,&pos_after,&_direction,&hit,&index,nullptr,nullptr,&dist,nullptr,nullptr ); if( hit ) { if( resultpos ) { *resultpos = pos_after + _direction*(dist+0.05f); // あたり判定オブジェクトのローカル座標系での位置なので、絶対座標に変換しなおす D3DXVec3TransformCoord(resultpos,resultpos,&matrix); } return true; } } } // ここまできたら当たっていないのでfalseを返す return false; } // レイピッキングによる交差判定 判定座標が静止しており、メッシュの移動前、移動後の行列情報での判定(レイは動かずにつまり点になるってこと,だけとメッシュが動いている) bool RayPickToMesh::RaypicktoMesh( bool moveflag , D3DXVECTOR3 *resultpos, D3DXVECTOR3 pos , LPD3DXMESH mesh , D3DXMATRIX matrix_befoe , D3DXMATRIX matrix_afiter ) { /////////////////////////////////////////////////////////////////////////////////////////////////////////// // // ポリゴンにあたってすべる処理 // D3DXVECTOR3 pos_before,pos_after; D3DXMATRIX matrix = matrix_afiter; // 交差判定:オブジェクトのローカル座標系で当たり判定を行うため、 // 絶対座標の位置情報を交差判定をするオブジェクトを変換した行列の逆行列を使ってする BOOL hit;DWORD index;float dist; // 交差判定情報受け取り変数 D3DXVECTOR3 _direction; // 変換後の位置、方向を格納する変数:本当はここで定義すべし表示用にグローバル定義にしている D3DXMATRIX invmat_b,invmat_a; // 逆行列を格納する変数 D3DXVECTOR3 vertex[3],vertexnormal[3]; // 1ポリゴンを構成する3頂点の座標と方向 D3DXVECTOR3 polyNormal; // ポリゴンの法線(方向) D3DXPLANE plane; // 平面処理用の構造体:ポリゴンを平面として処理するため D3DXMatrixInverse ( &invmat_b , nullptr , &matrix_befoe ); // 逆行列の取得 D3DXMatrixInverse ( &invmat_a , nullptr , &matrix_afiter ); // メッシュから見た前フレームの位置と現在フレームの位置を算出 D3DXVec3TransformCoord(&pos_before,&pos,&invmat_b); D3DXVec3TransformCoord(&pos_after,&pos,&invmat_a); //D3DXVec3TransformCoord(&pos_before,&pos_before,&invmat); // 逆行列を使用し、レイ始点情報を変換 位置と向きで変換する関数が異なるので要注意 //D3DXVec3TransformCoord(&pos_after,&pos_after,&invmat); // 逆行列を使用し、レイ終点情報を変換 位置と向きで変換する関数が異なるので要注意 D3DXVECTOR3 VecAfterToBefore = pos_after - pos_before; D3DXVec3Normalize (&_direction ,&VecAfterToBefore); // 逆行列を使用し、レイ方向情報を変換 位置と向きで変換する関数が異なるので要注意 // 移動方向レイとの当たり判定を行う D3DXIntersect (mesh,&pos_before,&_direction,&hit,&index,nullptr,nullptr,&dist,nullptr,nullptr ); // これは当たり判定のチェックではない点に注意:あくまで移動方向にポリゴンがあるかどうかを判断している if( hit ) { // 移動方向の先には、この番号のポリゴンに当たるらしい int polyindex = index; //////////////////////////////////////////////////////////////////////////////////////////////////////////////// // // メッシュと取得し、頂点フォーマットなどの情報を取得 // メッシュから、当たり判定に使用することになるポリゴンのの情報を取得する // このあたりの処理はほぼこれで定型と思っていい // LPD3DXMESH pMesh = mesh; // メッシュクラスから実メッシュを取得 DWORD fvf = pMesh->GetFVF(); // 実メッシュから頂点情報を取得 // インデックスバッファと頂点バッファの取得 // インデックスバッファとは1ポリゴンを構成するのにどのポリゴンがしようされているかを表す:通常3点で1ポリを構成する //LPDIRECT3DINDEXBUFFER9 pI; // インデックスバッファ //D3DINDEXBUFFER_DESC Idesc; // インデックスバッファの構成情報 LPVOID pVB,pIB; // 形式なしポインタ、まずこの形式でポインタを取得する _XFileIndexBuffer *i_pt; // 自分が作ったインデックスバッファ処理用構造体へのポインタ // pMesh->GetIndexBuffer( &pI ); // インデックスバッファを取得 // pI->GetDesc( &Idesc ); // インデックスバッファから構成情報を取得 pMesh->LockIndexBuffer( D3DLOCK_READONLY , &pIB ); // インデックスバッファをロックしポインタを取得 pMesh->LockVertexBuffer( D3DLOCK_READONLY , &pVB ); // バーテックスバッファをロックしポインタを取得 pMesh->UnlockIndexBuffer(); // ロックして用がすんだらすぐアンロック pMesh->UnlockVertexBuffer(); // ロックして用がすんだらすぐアンロック // インデックスバッファを値取得用構造体にキャスト i_pt = (_XFileIndexBuffer*)pIB; // こうすることにより、ただのメモリ領域を自分が規定したデータ形式で処理できる、これがC言語の一番強力な機能である // 必要なインデックスまで進める for( int i=0 ; i<polyindex ; i++ ) { i_pt++; } // 頂点フォーマットによってキャストする構造体を変更する if( fvf == ( D3DFVF_XYZ | D3DFVF_NORMAL | D3DFVF_TEX1 ) ) // 位置:方向:テクスチャ1枚の場合 { // 無形ポインタを自分の作成したバーテックスバッファ処理用のポインタにキャストする // こうすることにより、ただのメモリ領域を自分が規定したデータ形式で処理できる、これがC言語の一番強力な機能である _XFileVertexBuffer_p_n_t *v_pt; // 位置:方向:テクスチャ1枚の構造体のポインタ v_pt = (_XFileVertexBuffer_p_n_t*)pVB; // キャスト // 3頂点のデータを取得する for( int i=0 ; i<3 ; i++ ) { // 頂点バッファの先頭アドレス取得 _XFileVertexBuffer_p_n_t *w_pt = v_pt; // 取得した頂点番号までポインタをスキップ for( int j=0 ; j<i_pt->p[i] ; j++ ) w_pt++; // 該当する頂点の法線情報取得と頂点位置情報を取得 vertexnormal[i] = w_pt->normal; // 方向情報 vertex[i] = w_pt->pos; // 位置情報 } } if( fvf == ( D3DFVF_XYZ | D3DFVF_NORMAL) ) // 位置:方向の場合 { // 無形ポインタを自分の作成したバーテックスバッファ処理用のポインタにキャストする // こうすることにより、ただのメモリ領域を自分が規定したデータ形式で処理できる、これがC言語の一番強力な機能である _XFileVertexBuffer_p_n *v_pt; // 位置:方向構造体のポインタ v_pt = (_XFileVertexBuffer_p_n*)pVB; // キャスト // 3頂点のデータを取得する for( int i=0 ; i<3 ; i++ ) { // 頂点バッファの先頭アドレス取得 _XFileVertexBuffer_p_n *w_pt = v_pt; // 取得した頂点番号までポインタをスキップ for( int j=0 ; j<i_pt->p[i] ; j++ ) w_pt++; // 該当する頂点の法線情報取得と頂点位置情報を取得 vertexnormal[i] = w_pt->normal; // 方向情報 vertex[i] = w_pt->pos; // 位置情報 } } // 取得した3点の頂点データから、ポリゴンの向きを求め、そこからすべり後の座標を求める // 取得した3頂点のデータからポリゴンの法線を求める polyNormal.x = ( vertexnormal[0].x + vertexnormal[1].x + vertexnormal[2].x)/3; polyNormal.y = ( vertexnormal[0].y + vertexnormal[1].y + vertexnormal[2].y)/3; polyNormal.z = ( vertexnormal[0].z + vertexnormal[1].z + vertexnormal[2].z)/3; // 3点を用いて無限平面を定義する D3DXPlaneFromPoints( &plane,&vertex[0],&vertex[1],&vertex[2]); ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // // 移動前後の座標がポリゴンを挟んでいるか判定し、はさんでいればアタットミなし、すべり処理を行う // このあたりからは実際の移動前後の座標を使用するので注意する // 移動後、前の位置が平面をはさむかチェック float ans[2]; // 数学の平面と頂点に関する公式を利用する:平面の表面にあるなら正:裏面なら負になる ans[0] = ( plane.a * pos_after.x ) +( plane.b * pos_after.y )+(plane.c * pos_after.z )+plane.d; ans[1] = ( plane.a * pos_before.x ) +( plane.b * pos_before.y )+(plane.c * pos_before.z )+plane.d; // 二つの値の正負が反対ならば、両面をはさむ->当たっているのですべり処理を行う if( ans[0]*ans[1] < 0.0f ) { // ヒットしていた場合にすべりモードが有効でなければ、衝突位置を返して終了 if( moveflag == false ) { if( resultpos ) { *resultpos = pos_before + _direction*(dist+0.05f); // あたり判定オブジェクトのローカル座標系での位置なので、絶対座標に変換しなおす D3DXVec3TransformCoord(resultpos,resultpos,&matrix); } } else { // すべり後の座標が入る変数 D3DXVECTOR3 afterpos; // 移動後の座標からポリゴン法線方向にレイを飛ばし、ポリゴンとの交点を求める D3DXIntersect (mesh,&pos_after,&polyNormal,&hit,&index,nullptr,nullptr,&dist,nullptr,nullptr ); // 交差していた場合は、レイ表示情報の終点位置を更新する if( hit ) { // すべり後の座標ポリゴンの表面より少し多めに戻す afterpos = pos_after+polyNormal*(dist+0.05f); // あたり判定オブジェクトのローカル座標系での位置なので、絶対座標に変換しなおす D3DXVec3TransformCoord(&afterpos,&afterpos,&matrix); // すべての処理がすんだ座標をセット if( resultpos ) { *resultpos = afterpos; } } } return true; } // 2つの値が負の場合、オブジェクトに埋まってしまっているので、反対方向の直近ポリゴンまで移動 if( ans[0] < 0.0f && ans[1] < 0.0f ) { VecAfterToBefore = pos_before - pos_after; // 反対方向にレイを飛ばす D3DXVec3Normalize (&_direction ,&VecAfterToBefore); // 移動方向レイとの当たり判定を行う D3DXIntersect (mesh,&pos_after,&_direction,&hit,&index,nullptr,nullptr,&dist,nullptr,nullptr ); if( hit ) { if( resultpos ) { *resultpos = pos_after + _direction*(dist+0.05f); // あたり判定オブジェクトのローカル座標系での位置なので、絶対座標に変換しなおす D3DXVec3TransformCoord(resultpos,resultpos,&matrix); } return true; } } } // ここまできたら当たっていないのでfalseを返す return false; }
8f612320b901276b5c7cb1a855cb1e65127fbe2b
d022d77de948f0ad036e404968e40f584381f382
/codechef/problems/cnote/sol.cpp
d3ba5ac889b44fa35540323848046eaf65b411f0
[]
no_license
therishav/Competetive-Programming
63994719a0158d7fc8c52774b3a8cfff9b70436f
c7be17b5f886269e1c75494ed1482fcf4dda49d4
refs/heads/master
2023-03-06T11:30:46.048305
2021-01-14T19:27:02
2021-01-14T19:27:02
328,936,091
1
0
null
null
null
null
UTF-8
C++
false
false
1,442
cpp
/* ID: dzlvocp1 TASK: LANG: C++ */ /* LANG can be C++11 or C++14 for those more recent releases */ #include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<int, int> ii; typedef vector<pair<int, int>> vii; typedef vector<int> vi; #define print(a) cout << a << '\n'; #define val(a, b) cout << a << " : " << b << " | "; #define nl cout << '\n'; #define rep(i, a, b) for (int i = a; i < b; i++) #define printV(arr) for (auto i : arr) cout << i << " "; cout << '\n'; #define print2V(arr) for (auto i : arr) { for (auto j : i) cout << j << " "; cout << '\n'; } struct union_find { vector<int> parent; union_find(int n) { parent = vector<int>(n); for (int i = 0; i < n; i++) { parent[i] = i; } } int find(int x) { if (parent[x] == x) { return x; } else { parent[x] = find(parent[x]); return parent[x]; } } void unite(int x, int y) { parent[find(x)] = find(y); } }; void solve() { bool flag = false; int x, y, k, n, req_pages, p, c; cin >> x >> y >> k >> n; req_pages = x - y; rep(i, 0, n) { cin >> p >> c; if (c <= k && p >= req_pages) flag = true; } if (flag) cout << "LuckyChef" << '\n'; else cout << "UnluckyChef" << '\n'; } int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); // ofstream fout (""); // ifstream fin (""); int t; cin >> t; while (t--) solve(); return 0; }
480e2a4e05faa06d05e6c42b8860d4538d33e739
76f3b6dd64acdf60ff464f5c0fe9b4f4151358e0
/source/core/Session.hpp
6e86a4f15ed72de3f5a453ede3e8fdae7451302f
[ "Apache-2.0" ]
permissive
qipengwang/Melon
33ce5d4b683af70215f73b82a7b9c15ffd7706d9
10c9d71cdc609a290bfdd09296db6af3913bb461
refs/heads/main
2023-08-31T17:44:28.797075
2023-08-17T14:24:59
2023-08-17T14:24:59
486,278,764
22
2
null
2022-04-27T16:54:48
2022-04-27T16:54:47
null
UTF-8
C++
false
false
4,006
hpp
// // Session.hpp // MNN // // Created by MNN on 2018/07/30. // Copyright © 2018, Alibaba Group Holding Limited // #ifndef Session_hpp #define Session_hpp #include <MNN/Tensor.hpp> #include <map> #include <memory> #include <vector> #include "Pipeline.hpp" #include "Schedule.hpp" #include "core/Backend.hpp" #include "core/Macro.h" #include "shape/SizeComputer.hpp" namespace MNN { struct Net; /** infer unit. multiple sessions could share one net. */ class MNN_PUBLIC Session { public: Session(Schedule::ScheduleInfo&& info, Interpreter::SessionMode callBackMode, Interpreter::SessionMode inputMode, RuntimeInfo&& runtime); ~Session(); public: /** * @brief infer. * @return result code. */ ErrorCode run() const; /** * @brief infer with callbacks and sync option. * @param enterCallback callback before each op. * @param exitCallback callback after each op. * @param sync wait until all ops done before return or not. * @return result code. */ ErrorCode runWithCallBack(const TensorCallBackWithInfo& enterCallback, const TensorCallBackWithInfo& exitCallback, bool sync = false) const; bool getInfo(Interpreter::SessionInfoCode code, void* ptr) const; void cloneExecution(const std::map<const Op*, std::shared_ptr<Execution>>& cache, int pipelineIndex); const std::map<const Op*, std::shared_ptr<Execution>>& getExecution(int pipelineIndex); public: /** * @brief resize tensors and buffers responding to input changes. * @return result code. */ ErrorCode resize(bool isStatic = false); /** * @brief check if needs resize. * @return needs resize or not. */ bool getNeedResize() const { return mNeedResize; } /** * @brief set if needs resize. * @param flag needs resize or not. */ void setNeedResize(bool flag = true) { mNeedResize = flag; } public: /** * @brief get backend that create the tensor. * @param tensor given tensor. * @return backend that create the tensor, NULL if the tensor is created by default backend (CPU backend). */ const Backend* getBackEnd(const Tensor* tensor) const; /** * @brief get input tensor for given op name. * @param name given op name. if NULL, return first input tensor. * @return input tensor if found, NULL otherwise. */ Tensor* getInput(const char* name) const; /** * @brief get output tensor for given op name. * @param name given op name. if NULL, return first output tensor. * @return output tensor if found, NULL otherwise. */ Tensor* getOutput(const char* name) const; /** * @brief get output tensors map. * @return get output tensors map. */ const std::map<std::string, Tensor*>& getOutputAll() const; const std::map<std::string, Tensor*>& getInputAll() const; /** * @brief check session is valid or not. * @return session is valid or not. */ inline bool valid() const { return mValid; } /** * @brief update the session's const value to origin model's const blob. * @return errorcode */ ErrorCode updateToModel(Net* net) const; bool loadCache(const void* buffer, size_t size); std::pair<const void*, size_t> getCache(); protected: const std::vector<std::shared_ptr<Pipeline>>& getPipelines() const { return this->mPipelines; } private: void _clearCache(); void _setUpTensorInfo(const Schedule::ScheduleInfo& info); private: RuntimeInfo mRuntime; std::vector<std::shared_ptr<Pipeline>> mPipelines; std::vector<std::pair<int, std::shared_ptr<Tensor>>> mTensors; std::map<std::string, Tensor*> mInputs; std::map<std::string, Tensor*> mOutputs; bool mNeedResize = true; bool mValid = true; Interpreter::SessionMode mCallBackMode; }; } // namespace MNN #endif /* Session_hpp */
3c3023e786ca2580bc83bc658669bc18c9a70716
57449b0ceba6922e849117c4a5d618a789365689
/knockpad.ino
8d0c0908976a426e6b52923bce0ec5bb172511da
[]
no_license
mohful/Dual-Lock-System
8046a22f160cbb088fb15e9f3d8964dc01226180
97d6d4494269e0a31cad22b986e3ac496f739844
refs/heads/main
2023-05-03T16:18:18.679636
2021-05-09T21:05:02
2021-05-09T21:05:02
338,494,299
0
0
null
null
null
null
UTF-8
C++
false
false
5,985
ino
#include<Servo.h> #include<LiquidCrystal.h> #include "SparkFun_Qwiic_Keypad_Arduino_Library.h" //time taken for servo to position itself at 90 degrees (value was 225 at first, but then I realized that it wouldnt turn completely, which is why i increased it a little) #define TURN 230 //Servo and Keypad declarations Servo servo1; Servo servo2; KEYPAD keypad; //pin initiation const int green = 9; const int red = 8; const int blue = 7; const int firstServo = 22; const int secondServo = 23; const int RS = 11, EN = 12, D4 = 2, D5 = 3, D6 = 4, D7 = 5; //LCD declaration LiquidCrystal lcd(RS, EN, D4, D5, D6, D7); //value initiation and variable initiation int threshold = 100; int sensorReading = 0; int ledState = LOW; int counter = 0; int keypadCounter; boolean knockDone; String password; String realPass; int r; void setup() { r = random(3); keypadCounter = 0; servo1.attach(firstServo); servo2.attach(secondServo); pinMode(green, OUTPUT); pinMode(red, OUTPUT); pinMode(blue,OUTPUT); lcd.begin(16, 2); lcd.setCursor(0, 0); lcd.print("Knock on door!"); // https://github.com/sparkfun/SparkFun_Qwiic_Keypad_Arduino_Library/blob/master/examples/Example1_ReadButton/Example1_ReadButton.ino // Using begin() like this will use default I2C address, 0x4B. // You can pass begin() a different address like so: keypad1.begin(Wire, 0x4A). if (keypad.begin() == false) { lcd.print("Keypad disconnected"); while (1); } redOn(); } void loop() { if (counter == -1) { //counter is incremented here resetAfterSuccess(); } //read the sensor if we tap or not sensorReading = analogRead(A7); if (sensorReading <= threshold) { ledState = !ledState; toggleblue(); counter++; } //this program is designed to detect 6 knocks as a pattern and then put in the password. if (counter == 6) { //counter is incremented here knockSuccessful(); } if (counter == 7) { //counter is incremented here lcdSetup(); } if (counter == 8) { //UPDATING FIFO so that it recognizes the input button when we press it, otherwise it wont be able to register any input keypad.updateFIFO(); char button = keypad.getButton(); realPass = randomPassword(r); //If we press a button, we want to print it if (button){ lcd.print(button); if(button == '*') { clearPassword(); } else if(button == '#') { if(password == realPass) { passwordSuccess(); } else { passwordFail(); keypadCounter++; if (keypadCounter == 3) { systemReset(); } } password = ""; // clear input password } else { password += button; // append new character to input password string } } } //I delayed a bit so that i dont tie up the I2C bus of the Keypad delay(25); //25 is good, more is better delay(100); //i did more just in case } /** * This method turns the red LED on */ void redOn() { digitalWrite(red, HIGH); } /** * This method turns the green LED on */ void greenOn() { digitalWrite(green, HIGH); } /** * This method turns the red LED off */ void redOff() { digitalWrite(red, LOW); } /** * turns the green LED off */ void greenOff() { digitalWrite(green, LOW); } /** * toggles blue LED to show that a knock has been registered */ void toggleblue() { digitalWrite(blue, ledState); } /** * This method returns the random password through the random number generated through the random class. */ String randomPassword(int randomNumber) { if (randomNumber == 0) return "1234"; if (randomNumber == 1) return "4295"; if (randomNumber == 2) return "7410"; } /** * This method resets the state-of-the-art lock system after a person has been granted access. */ void resetAfterSuccess() { delay(10000); servo1.write(180); delay(TURN); servo1.write(90); servo2.write(180); delay(TURN); servo2.write(90); lcd.clear(); lcd.print("Knock on door!"); counter++; redOn(); greenOff(); } /** * This method unlocks a lock once the knocks have been registered. */ void knockSuccessful() { lcd.clear(); lcd.print("Knock Accepted!"); servo2.write(0); delay(TURN); servo2.write(90); counter++; delay(1500); } /** * This method sets up the LCD for the user to enter a password through the keypad */ void lcdSetup() { lcd.clear(); lcd.print("Enter:"); lcd.setCursor(0, 1); counter++; } /** * This method unlocks a lock, and confirms that the door has been unlocked. It also turns the red LED off and the green LED on. */ void passwordSuccess() { lcd.clear(); lcd.print("Correct Password"); lcd.setCursor(0, 1); lcd.print("Door Unlocked!"); delay(500); lcd.setCursor(0, 0); servo1.write(0); delay(TURN); servo1.write(90); r = random(3); counter = -1; keypadCounter = 0; redOff(); greenOn(); } /** * This method displays a message on the LCD if the password is incorrect. */ void passwordFail() { lcd.clear(); lcd.setCursor(0,0); lcd.print("Incorrect!"); lcd.setCursor(0, 1); } /** * This method resets the system if the password inputted by the user is wrong three times in a row for state-of-the-art security purposes. */ void systemReset() { servo2.write(180); delay(TURN); servo2.write(90); counter = 0; lcd.clear(); lcd.setCursor(0, 0); lcd.print("Knock on door!"); } /** * This method clears the password inputted if the "*" button was pressed. */ void clearPassword() { password = ""; lcd.clear(); if (keypadCounter == 0) { lcd.print("Enter:"); lcd.setCursor(0, 1); } else { lcd.print("Incorrect!"); lcd.setCursor(0, 1); } }
dbd1fecd8bbc624ecf4182ad2ad58a1075ce64f1
0fbcdb391adfc9a823a5ddc2c31ad694cd90c2bf
/libeagle/frame/TaskThread.cpp
b8c38f8065476142bc1a577570d498d477b557f8
[]
no_license
ivanchen36/eagle
a80ad5ddd168551383801cecf01b4a2fcff2b751
d37aa938ef831e5f5173894c9d874cf00099ac01
refs/heads/master
2021-01-17T13:07:22.124481
2016-05-17T16:20:42
2016-05-17T16:20:42
34,203,809
0
0
null
null
null
null
UTF-8
C++
false
false
1,698
cpp
#include "Log.h" #include "StrUtil.h" #include "TaskThread.h" namespace eagle { Task::Task(const char *taskName) : m_name(NULL) { StrUtil::copy(m_name, taskName); } Task::~Task() { if (NULL != m_name) delete []m_name; } const char *Task::getName() { return m_name; } TaskThread::TaskThread(Task *task, const int stackSize) : Thread(stackSize), m_status(WAIT), m_sem(new ThreadSem()), m_task(task) { } TaskThread::~TaskThread() { stop(); while (EXIT != m_status) sched_yield(); if (NULL != m_sem) delete m_sem; } int TaskThread::isStop() { return STOP == m_status; } int TaskThread::isWait() { return WAIT == m_status; } int TaskThread::isRun() { return RUN == m_status; } int TaskThread::start() { if (STOP == m_status || EXIT == m_status) return EG_FAILED; if (WAIT == m_status) m_status = RUN; m_sem->post(); return EG_SUCCESS; } int TaskThread::pause() { if (WAIT == m_status) return EG_SUCCESS; if (STOP == m_status || EXIT == m_status) return EG_FAILED; m_status = WAIT; return EG_SUCCESS; } int TaskThread::stop() { if (STOP == m_status || EXIT == m_status) return EG_SUCCESS; m_status = STOP; m_sem->post(); sched_yield(); return EG_SUCCESS; } void TaskThread::run() { int ret; for (; ;) { if (STOP == m_status) break; if (WAIT != m_status) m_status = WAIT; ret = m_sem->wait(); if (ret < 0) { ERRORLOG1("sem wait err, %s task stop", m_task->getName()); m_status = STOP; break; } while (RUN == m_status && m_task->excute() == EG_SUCCESS); } m_status = EXIT; } }
a09bafb4259128a074a0fb91e39a20c657ef7ee9
9bf2812b2488b46916da9f91de5ba418ba6d525b
/JetPrintDT/CustomeControl/JetPrintButton.h
a2ab4d8d5b3346f2ef134c4d9ce9d13622f58f8c
[]
no_license
maomaoGod/JetPrintDT
0d9c047ed17db59a88245c1208e7735741dbd0ac
baef0992199ebb582773fdf7582c4a4dd2d308d7
refs/heads/master
2020-12-03T08:03:44.506919
2017-08-08T08:21:53
2017-08-08T08:21:53
95,654,139
0
1
null
null
null
null
GB18030
C++
false
false
3,224
h
/************************************************************************ * 文件名: JetPrintBtn.h * 文件描述: 自定义按钮 ************************************************************************/ //#include <atlimage.h> #ifndef __SKIN_BUTTON_H #define __SKIN_BUTTON_H #include "../stdafx.h" // CSkinButton typedef BOOL(WINAPI *fListMoveWnd)(CPoint&, int, LPARAM); class CSkinButton : public CButton { DECLARE_DYNAMIC(CSkinButton) public: CSkinButton(); virtual ~CSkinButton(); enum {BUTTON_DEFAULT,BUTTON_SCROLL,BUTTON_TITLE,BUTTON_NOPICTURE}; typedef enum state { NORMAL, HOVER, DOWN, DISABLE }state; void SetParentWnd(HWND hWnd); BOOL MoveWndBegin(fListMoveWnd lpfListMoveWnd, LPARAM lPARAM); void SetRantageDraw(BOOL bDraw); void SetScrollDraw(int bDrawint, int nNum); void SetMovePain(BOOL bDraw); void SetCurrentShow(long nCode) { m_ShowState = nCode; } protected: DECLARE_MESSAGE_MAP() CBitmap m_imgNormal; CBitmap m_imgHover; CBitmap m_imgDown; CBitmap m_imgDisable; CBitmap m_imgScroll; BOOL m_IconDraw; HICON m_IconIn, m_IconOut; int m_BtnNum; private: int m_ShowState;//显示的状态,选取中以后强制显示 int m_state; COLORREF m_fg, m_bg; bool m_bMouseOver; bool m_bEnabled; CFont *m_pFont; bool m_bDCStored;//是否已经保存背景图 // CBitmap* m_hMouseInIcon; // CBitmap* m_hMouseOutIcon; CPoint m_textPos; CRect m_iconRect; CDC m_memDC; public: afx_msg void OnMouseMove(UINT nFlags, CPoint point); afx_msg void OnTimer(UINT_PTR nIDEvent); afx_msg BOOL OnEraseBkgnd(CDC* pDC); afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message); // void SetRGBColor(int R,int G,int B);//设置背景三个色调 protected: BOOL m_bDrawRantage; int m_bDrawScroll; BOOL m_bRePain; HWND m_ParentWnd; int m_SendTime; virtual void PreSubclassWindow(); virtual void DrawItem(LPDRAWITEMSTRUCT lpDIS); protected: //在按钮中填充颜色 void DrawFilledRect(CDC *DC, CRect R, COLORREF color); //设置按钮上的字体颜色 void DrawButtonText(CDC *DC, CRect R, CString str, COLORREF TextColor); void DrawButton(); void DrawButtonScroll(); void DrawButtonTitle(); void DrawButtonNullPicture(); // int m_ColorR,m_ColorG,m_ColorB; CString m_strTextOut; public: void SetButtonText(CString str); void SetOwnerDraw(bool IsDraw); void SetIcons(int hIconIn, int hIconOut, BOOL bDrawIcon); void SetImage(UINT nNormalID, UINT nHoverID, UINT nDownID, UINT nDisableID); void SetImage(HBITMAP nNormalID, HBITMAP nHoverID, HBITMAP nDownID, HBITMAP nDisableID); void SetImage(CString strNormal, CString strHover, CString strDown, CString strDisable); void SetIcons(CString strMouseOut, CString strMouseIn, BOOL bDrawIcon); void SetColor(COLORREF fgcolor, COLORREF bgcolor); void SetTextPos(CPoint point); // CImage* GetPaintImage(){return &m_imgNormal;} // CImage* GetPaintIcon(){return &m_hMouseOutIcon;} CPoint GetTextPos(){ return m_textPos; } COLORREF GetFGColor() { return m_fg; } COLORREF GetBGColor() { return m_bg; } CRect GetRectInParent(); CRect GetIconRect(){ return m_iconRect; } public: afx_msg void OnEnable(BOOL bEnable); }; #endif // !__SKIN_BUTTON_H
3468fdc64e1e110f459e5acded9ef51cb3b0ae9f
5704ae9ebce8468451712afa57fb3a60e822f790
/contrib/brl/bseg/bvxm/bvxm_edge_util.h
b9c606aa6f45a0b1e46021a927b93e459301d6a1
[]
no_license
liuxinren456852/vxl
2f65fcb3189674c299b1dd7a9ea3a9490017ea1d
fdc95966a88ee011e74f1878d0555108ab809867
refs/heads/master
2020-12-11T03:40:32.805779
2016-03-09T05:01:22
2016-03-09T05:01:22
53,484,067
1
0
null
2016-03-09T09:12:08
2016-03-09T09:12:08
null
UTF-8
C++
false
false
2,638
h
#ifndef bvxm_edge_util_h_ #define bvxm_edge_util_h_ //: // \file // \brief Various utility methods and classes related to edge probability updates // \author Ibrahim Eden ([email protected]) // \date Jul 14, 2009 // // \verbatim // \endverbatim #include <vcl_string.h> #include <vcl_vector.h> #include <vcl_iostream.h> #include <vcl_cmath.h> #include <vbl/vbl_array_2d.h> #include <vpgl/vpgl_camera.h> #include <vpgl/vpgl_rational_camera.h> #include <vpgl/vpgl_perspective_camera.h> #include <vpgl/vpgl_lvcs_sptr.h> #include <vgl/algo/vgl_h_matrix_2d.h> #include <vgl/vgl_point_3d.h> #include <vgl/vgl_box_3d.h> #include <vnl/vnl_math.h> #include <vnl/vnl_matrix_fixed.h> #include <vnl/vnl_double_3x3.h> #include <vnl/vnl_double_3x1.h> #include <vnl/vnl_vector_fixed.h> #include <vil/vil_convert.h> #include <vil/vil_image_view_base.h> #include <vil/vil_image_view.h> #include <vil/vil_pixel_format.h> #include "bvxm_world_params.h" class bvxm_edge_util { public: static vil_image_view<float> multiply_image_with_gaussian_kernel(vil_image_view<float> img, double gaussian_sigma); static vil_image_view<vxl_byte> detect_edges(vil_image_view<vxl_byte> img, double noise_multiplier, double smooth, bool automatic_threshold, bool junctionp, bool aggressive_junction_closure); static void edge_distance_transform(vil_image_view<vxl_byte>& inp_image, vil_image_view<float>& out_edt); static int convert_uncertainty_from_meters_to_pixels(float uncertainty, vpgl_lvcs_sptr lvcs, vpgl_camera_double_sptr camera); static float convert_edge_statistics_to_probability(float edge_statistic, float n_normal, int dof); static void estimate_edge_prob_image(const vil_image_view<vxl_byte>& img_edge, vil_image_view<float>& img_edgeness, const int mask_size, const float mask_sigma); static vbl_array_2d<float> get_spherical_gaussian_kernel(const int size, const float sigma); template <class T_from,class T_to> static void convert_image_types(const vil_image_view<T_from>& inp_image, vil_image_view<T_to>& out_image, float scale, float offset); }; template <class T_from,class T_to> void bvxm_edge_util::convert_image_types(const vil_image_view<T_from>& inp_image, vil_image_view<T_to>& out_image, float scale, float offset) { out_image.set_size(inp_image.ni(),inp_image.nj(),inp_image.nplanes()); for (unsigned i=0; i<inp_image.ni(); i++) { for (unsigned j=0; j<inp_image.nj(); j++) { for (unsigned k=0; k<inp_image.nplanes(); k++) { float curr_pixel = (float)inp_image(i,j,k); out_image(i,j,k) = (T_to)((curr_pixel*scale) + offset); } } } } #endif // bvxm_edge_util_h_
f3e53548a93dc4c828ce43352509577990a26ee7
2ad789090db7a377f746413e397b603c76f547fa
/V-REP_PRO_EDU_V3_6_0_Ubuntu16_04/programming/bluezero/include/spotify-json/test/src/test_skip_chars.cpp
ce854e44de64856f8e7d0d733b6a59091bb02bd2
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference", "JSON", "BSD-3-Clause" ]
permissive
JasonLeeUT/Robotics
442b8217918a32b3e8df454b9890ab83280ee7f3
7e21e5d18b42cfcaafd01b0243f221a051692f11
refs/heads/master
2023-01-23T00:14:41.801025
2020-11-19T02:23:55
2020-11-19T02:23:55
314,112,186
0
1
null
null
null
null
UTF-8
C++
false
false
6,089
cpp
/* * Copyright (c) 2016 Spotify AB * * 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 <cstdlib> #include <boost/mpl/list.hpp> #include <boost/test/unit_test.hpp> #include <spotify/json/detail/skip_chars.hpp> BOOST_AUTO_TEST_SUITE(spotify) BOOST_AUTO_TEST_SUITE(json) BOOST_AUTO_TEST_SUITE(detail) namespace { std::string generate(const std::string &tpl, const std::size_t count) { std::string ws; ws.reserve(count); for (std::size_t i = 0; i < count; i++) { ws += tpl[i % tpl.size()]; } return ws; } template <void (*function)(decode_context &)> void verify_skip_any( const bool use_sse, const std::string &json, const std::size_t prefix = 0, const std::size_t suffix = 0) { auto context = decode_context(json.data() + prefix, json.data() + json.size()); *const_cast<bool *>(&context.has_sse42) &= use_sse; const auto original_context = context; function(context); BOOST_CHECK_EQUAL( reinterpret_cast<intptr_t>(context.position), reinterpret_cast<intptr_t>(original_context.end - suffix)); BOOST_CHECK_EQUAL( reinterpret_cast<intptr_t>(context.end), reinterpret_cast<intptr_t>(original_context.end)); } template <void (*function)(decode_context &)> void verify_skip_empty_nullptr(const bool use_sse) { auto context = decode_context(nullptr, nullptr); *const_cast<bool *>(&context.has_sse42) &= use_sse; function(context); BOOST_CHECK(context.position == nullptr); BOOST_CHECK(context.end == nullptr); } using true_false = boost::mpl::list<boost::true_type, boost::false_type>; } // namespace /* * skip_any_simple_characters */ BOOST_AUTO_TEST_CASE_TEMPLATE(json_skip_any_simple_characters, use_sse, true_false) { for (auto n = 0; n < 1024; n++) { const auto ws = generate("abcdefghIJKLMNOP:-,;'^¨´`xyz", n); const auto with_prefix = "\\" + ws; const auto with_suffix = ws + "\"abcde"; verify_skip_any<skip_any_simple_characters>(use_sse::value, ws); verify_skip_any<skip_any_simple_characters>(use_sse::value, with_prefix, 1); verify_skip_any<skip_any_simple_characters>(use_sse::value, with_suffix, 0, 6); } } BOOST_AUTO_TEST_CASE_TEMPLATE(json_skip_any_simple_characters_null_byte_in_string, use_sse, true_false) { alignas(16) char input_data[17] = "a\0\"\"\"\"\"\"\"\"\"\"\"\"\"\""; auto context = decode_context(input_data, input_data + 16); *const_cast<bool *>(&context.has_sse42) &= use_sse::value; skip_any_simple_characters(context); BOOST_CHECK_EQUAL(context.position - input_data, 2); } BOOST_AUTO_TEST_CASE_TEMPLATE(json_skip_any_simple_characters_with_empty_string, use_sse, true_false) { verify_skip_empty_nullptr<skip_any_simple_characters>(use_sse::value); } /* * skip_any_whitespace */ BOOST_AUTO_TEST_CASE_TEMPLATE(json_skip_any_space, use_sse, true_false) { for (auto n = 0; n < 1024; n++) { const auto ws = generate(" ", n); const auto with_prefix = "}" + ws; const auto with_suffix = ws + "{ "; verify_skip_any<skip_any_whitespace>(use_sse::value, ws); verify_skip_any<skip_any_whitespace>(use_sse::value, with_prefix, 1); verify_skip_any<skip_any_whitespace>(use_sse::value, with_suffix, 0, 2); } } BOOST_AUTO_TEST_CASE_TEMPLATE(json_skip_any_tabs, use_sse, true_false) { for (auto n = 0; n < 1024; n++) { const auto ws = generate("\t", n); const auto with_prefix = "}" + ws; const auto with_suffix = ws + "{ "; verify_skip_any<skip_any_whitespace>(use_sse::value, ws); verify_skip_any<skip_any_whitespace>(use_sse::value, with_prefix, 1); verify_skip_any<skip_any_whitespace>(use_sse::value, with_suffix, 0, 2); } } BOOST_AUTO_TEST_CASE_TEMPLATE(json_skip_any_carriage_return, use_sse, true_false) { for (auto n = 0; n < 1024; n++) { const auto ws = generate("\r", n); const auto with_prefix = "}" + ws; const auto with_suffix = ws + "{ "; verify_skip_any<skip_any_whitespace>(use_sse::value, ws); verify_skip_any<skip_any_whitespace>(use_sse::value, with_prefix, 1); verify_skip_any<skip_any_whitespace>(use_sse::value, with_suffix, 0, 2); } } BOOST_AUTO_TEST_CASE_TEMPLATE(json_skip_any_line_feed, use_sse, true_false) { for (auto n = 0; n < 1024; n++) { const auto ws = generate("\n", n); const auto with_prefix = "}" + ws; const auto with_suffix = ws + "{ "; verify_skip_any<skip_any_whitespace>(use_sse::value, ws); verify_skip_any<skip_any_whitespace>(use_sse::value, with_prefix, 1); verify_skip_any<skip_any_whitespace>(use_sse::value, with_suffix, 0, 2); } } BOOST_AUTO_TEST_CASE_TEMPLATE(json_skip_any_whitespace, use_sse, true_false) { for (auto n = 0; n < 1024; n++) { const auto ws = generate("\n\t\r\n", n); const auto with_prefix = "}" + ws; const auto with_suffix = ws + "{ "; verify_skip_any<skip_any_whitespace>(use_sse::value, ws); verify_skip_any<skip_any_whitespace>(use_sse::value, with_prefix, 1); verify_skip_any<skip_any_whitespace>(use_sse::value, with_suffix, 0, 2); } } BOOST_AUTO_TEST_CASE_TEMPLATE(json_skip_any_whitespace_with_empty_string, use_sse, true_false) { verify_skip_empty_nullptr<skip_any_whitespace>(use_sse::value); } BOOST_AUTO_TEST_SUITE_END() // detail BOOST_AUTO_TEST_SUITE_END() // json BOOST_AUTO_TEST_SUITE_END() // spotify
f1fb7bc47daca8a21845242015374ff84ea5b3a3
9b33deabb2039cfaf972c3e9dddd551dd81bfbad
/src/Fight.cpp
e6b62ce515f155a8f1185ced54509143825fa9bd
[]
no_license
Larzid/PRIME
efd8afc8a1fa0ec8765bdfa13de584e2f84fdd05
54b4c44ec12a3ca242c332528a876eebd2fffc43
refs/heads/master
2022-12-25T11:44:57.439551
2020-09-18T16:33:07
2020-09-21T11:36:17
295,263,849
11
0
null
null
null
null
UTF-8
C++
false
false
122,608
cpp
/************************************************** * This file is for weapon attack resolution code. * **************************************************/ #ifndef _WIN32 #include <unistd.h> #endif #include "Global.h" #include "Util.h" #include "Hero.h" #include "Game.h" #include "ObjectType.h" #include "Interface.h" #include "Mutant.h" #include "Weapon.h" #include "Transport.h" static const char * beamHitsMesg (shAttack *atk) { switch (atk->mType) { case shAttack::kNoAttack: case shAttack::kAccelerationRay: case shAttack::kAcidSplash: case shAttack::kAugmentationRay: case shAttack::kBlast: case shAttack::kBolt: case shAttack::kCombi: case shAttack::kDecelerationRay: case shAttack::kDecontaminationRay: case shAttack::kEnsnare: case shAttack::kExplode: case shAttack::kFlash: case shAttack::kGammaRay: case shAttack::kGaussRay: case shAttack::kHealingRay: case shAttack::kIncendiary: case shAttack::kRestorationRay: case shAttack::kTransporterRay: return NULL; case shAttack::kBreatheFire: return "The fire engulfs %s!"; case shAttack::kBreatheBugs: return "The cloud of bugs envelopes %s!"; case shAttack::kBreatheViruses: return "The cloud of viruses envelopes %s!"; case shAttack::kBreatheTime: return "The time warp envelopes %s!"; case shAttack::kBreatheTraffic: return "The packet storm envelopes %s!"; //case shAttack::kCombi: return "The spear pierces %s!"; case shAttack::kDisintegrationRay: return "The disintegration ray hits %s!"; case shAttack::kFreezeRay: return "The freeze ray hits %s!"; case shAttack::kHeatRay: return "The heat ray hits %s!"; case shAttack::kLaserBeam: case shAttack::kOpticBlast: return "The laser beam hits %s!"; case shAttack::kLight: return "The blinding light affects %s."; case shAttack::kMentalBlast: return "The mental blast makes %s suffer!"; case shAttack::kPlague: return "The vomit hits %s!"; case shAttack::kPlasmaGlob: return "The plasma glob hits %s!"; case shAttack::kPoisonRay: return "The poison ray hits %s!"; case shAttack::kShot: return "The shrapnel hits %s!"; case shAttack::kSpit: return "The green spit hits %s!"; case shAttack::kSplash: return "%s is splashed!"; case shAttack::kStasisRay: return "The stasis ray hits %s!"; case shAttack::kVomit: return "The psionic vomit hits %s!"; case shAttack::kWaterRay: return "Water douses %s."; default: return "It hits %s!"; } } static const char * beamHitsBlindYouMesg (shAttack *atk) { switch (atk->mType) { case shAttack::kNoAttack: case shAttack::kAccelerationRay: case shAttack::kAugmentationRay: case shAttack::kBlast: case shAttack::kDecelerationRay: case shAttack::kDecontaminationRay: case shAttack::kFlash: case shAttack::kLight: case shAttack::kGammaRay: case shAttack::kGaussRay: case shAttack::kStasisRay: case shAttack::kTransporterRay: case shAttack::kHealingRay: case shAttack::kRestorationRay: return NULL; case shAttack::kBreatheTime: return "You are eveloped by a time warp!"; case shAttack::kBreatheTraffic: return "You are enveloped by a packet storm !"; case shAttack::kBreatheBugs: case shAttack::kBreatheViruses: return "You are enveloped by a dense cloud!"; case shAttack::kCombi: return "You are punctured!"; case shAttack::kDisintegrationRay: return "You are caught in a disintegration zone!"; case shAttack::kFreezeRay: return "You are frozen!"; case shAttack::kBreatheFire: case shAttack::kHeatRay: case shAttack::kIncendiary: case shAttack::kPlasmaGlob: return "You are burned!"; case shAttack::kMentalBlast: return "A mental blast hits you!"; case shAttack::kPoisonRay: return "You feel poisoned!"; case shAttack::kPsionicStorm: return "Something wrecks your mind!"; case shAttack::kWaterRay: return "You are doused in water."; case shAttack::kPlague: case shAttack::kSpit: return "Something splashes against you!"; default: return "You are hit!"; } } /* Attack types should come with pointers to tables that would have all this filled. This huge switch is disgusting! */ extern eff::type beam_effect (shAttack *attack, shDirection dir, bool head = true); const char * youHitMonMesg (shAttack::Type type) { switch (type) { case shAttack::kNoAttack: return " don't attack"; case shAttack::kAnalProbe: return " probe"; case shAttack::kBite: return " bite"; case shAttack::kBlast: return " blast"; case shAttack::kClaw: return " claw"; case shAttack::kClub: return " club"; case shAttack::kChoke: return " choke"; case shAttack::kCombi: return " puncture"; case shAttack::kCrush: return " crush"; case shAttack::kCut: return " cut"; case shAttack::kDrill: return " drill"; case shAttack::kHeadButt: return " head butt"; case shAttack::kImpact: return " smack"; case shAttack::kKick: if (Hero.cr ()->mBoots and !RNG (4)) return " apply your mighty boot to"; return " kick"; case shAttack::kOilSpill: return " spill oil at"; case shAttack::kPlague: return " vomit plague at"; case shAttack::kPrick: return " prick"; case shAttack::kPunch: return " punch"; case shAttack::kRake: return " rake"; case shAttack::kSaw: return " saw"; case shAttack::kScorch: return " scorch"; case shAttack::kSlash: return " slash"; case shAttack::kSlime: return " slime"; case shAttack::kSmash: return " smack"; case shAttack::kStab: return " stab"; case shAttack::kSting: return " sting"; case shAttack::kStomp: return " stomp"; case shAttack::kSword: return " slice"; case shAttack::kTailSlap: return " tail-slap"; case shAttack::kTouch: return " touch"; case shAttack::kVomit: return " vomit at"; case shAttack::kWhip: return " whip"; case shAttack::kZap: return " zap"; default: return " think deadly thoughts about"; } } const char * youShootMonMesg (shAttack::Type type) { switch (type) { case shAttack::kWaterRay: return "splash"; default: return "hit"; } } const char * monShootsMonMesg (shAttack::Type type) { switch (type) { case shAttack::kWaterRay: return "splashes"; default: return "hits"; } } static const char * monHitsYouMesg (shAttack *atk) { switch (atk->mType) { case shAttack::kNoAttack: return " doesn't attack"; case shAttack::kAttach: return " attaches an object to you"; case shAttack::kAnalProbe: return " probes you"; case shAttack::kBite: return " bites you"; case shAttack::kBlast: return " blasts you"; case shAttack::kBolt: return " blasts you"; case shAttack::kClaw: return " claws you"; case shAttack::kClub: return " clubs you"; case shAttack::kChoke: return " chokes you"; case shAttack::kCrush: return " crushes you"; case shAttack::kCut: return " cuts you"; case shAttack::kDisintegrationRay: return " zaps you with a disintegration ray"; case shAttack::kDrill: return " drills you"; case shAttack::kExtractBrain: return NULL; case shAttack::kFaceHug: return " attacks your face"; case shAttack::kFlash: return " blasts you with a bright light"; case shAttack::kFreezeRay: return " zaps you with a freeze ray"; case shAttack::kGammaRay: return " zaps you with a gamma ray"; case shAttack::kGaussRay: return " zaps you with a gauss ray"; case shAttack::kGun: case shAttack::kPea: case shAttack::kShot: return " shoots you"; case shAttack::kHalf: return " subjects you to torment"; case shAttack::kHeadButt: return " head butts you"; case shAttack::kHealingRay: return " zaps you with a healing ray"; case shAttack::kHeatRay: return " zaps you with a heat ray"; case shAttack::kIncendiary: return " sets you on fire"; case shAttack::kKick: return " kicks you"; case shAttack::kLaserBeam: case shAttack::kOilSpill: return " spills oil at you"; case shAttack::kOpticBlast: return " zaps you with a laser beam"; case shAttack::kLight: return " flashes you with blinding light"; case shAttack::kLegalThreat: return " raises an objection"; case shAttack::kMentalBlast: return " blasts your mind"; case shAttack::kPlague: return NULL; case shAttack::kPoisonRay: return "zaps you with a poison ray"; case shAttack::kPrick: return " pricks you"; case shAttack::kPunch: return " punches you"; case shAttack::kQuill: return " sticks you with a quill"; case shAttack::kRail: return " rails you"; case shAttack::kRake: return " rakes you"; case shAttack::kRestorationRay: return " zaps you with a restoration ray"; case shAttack::kSaw: return " saws you"; case shAttack::kScorch: return " scorches you"; case shAttack::kSlash: return " slashes you"; case shAttack::kSlime: return " slimes you"; case shAttack::kSmash: return " smacks you"; case shAttack::kStab: return " stabs you"; case shAttack::kStasisRay: return " zaps you with a stasis ray"; case shAttack::kSting: return " stings you"; case shAttack::kStomp: return " stomps you"; case shAttack::kSword: return " slices you"; case shAttack::kTailSlap: return "'s tail whips you"; case shAttack::kTouch: return " touches you"; case shAttack::kTransporterRay: return " zaps you with a transporter ray"; case shAttack::kWhip: return " whips you"; case shAttack::kZap: return " zaps you"; default: return " hits you"; } } static const char * monHitsMonMesg (shAttack *atk) { switch (atk->mType) { case shAttack::kNoAttack: return " doesn't attack"; case shAttack::kAnalProbe: return " probes"; case shAttack::kAttach: return " attaches an object to"; case shAttack::kBite: return " bites"; case shAttack::kBlast: return " blasts"; case shAttack::kBolt: return " blasts"; case shAttack::kClaw: return " claws"; case shAttack::kClub: return " clubs"; case shAttack::kChoke: return " chokes"; case shAttack::kCrush: return " crushes"; case shAttack::kCut: return " cuts"; case shAttack::kDisintegrationRay: return " zaps a disintegration ray at"; case shAttack::kDrill: return " drills"; case shAttack::kExtractBrain: return " extracts the brain of"; case shAttack::kFaceHug: return " attacks the face of"; case shAttack::kFlash: return " flashes a bright light at"; case shAttack::kFreezeRay: return " zaps a freeze ray at"; case shAttack::kGammaRay: return " zaps a gamma ray at"; case shAttack::kGaussRay: return " zaps a gauss ray at"; case shAttack::kGun: case shAttack::kPea: case shAttack::kShot: return " shoots"; case shAttack::kHeadButt: return " head butts"; case shAttack::kHealingRay: return " zaps a healing ray at"; case shAttack::kIncendiary: return " sets fire to"; case shAttack::kHeatRay: return " zaps a heat ray at"; case shAttack::kKick: return " kicks"; case shAttack::kLaserBeam: case shAttack::kOpticBlast: return " zaps a laser beam at"; case shAttack::kLight: return " emits blinding light at"; case shAttack::kMentalBlast: return " blasts the mind of"; case shAttack::kOilSpill: return " spills oil at"; case shAttack::kPlague: return " vomits at"; case shAttack::kPoisonRay: return " zaps a poison ray at"; case shAttack::kPrick: return " pricks"; case shAttack::kPunch: return " punches"; case shAttack::kQuill: return " quills"; case shAttack::kRail: return " rails"; case shAttack::kRake: return " rakes"; case shAttack::kRestorationRay: return " zaps a restoration ray at"; case shAttack::kSaw: return " saws"; case shAttack::kScorch: return " scorches"; case shAttack::kSlash: return " slashes"; case shAttack::kSlime: return " slimes"; case shAttack::kSmash: return " smacks"; case shAttack::kSpit: return " spits"; case shAttack::kStab: return " stabs"; case shAttack::kStasisRay: return " zaps a stasis ray at"; case shAttack::kSting: return " stings"; case shAttack::kStomp: return " stomps"; case shAttack::kSword: return " slices"; case shAttack::kTailSlap: return "'s tail whips"; case shAttack::kTouch: return " touches"; case shAttack::kTransporterRay: return " zaps a transporter ray at"; case shAttack::kWhip: return " whips"; case shAttack::kZap: return " zaps"; default: return " hits"; } } static shDirection reflectBackDir (shDirection dir) { dir = uTurn (dir); switch (RNG (4)) { case 0: return leftTurn (dir); case 1: return rightTurn (dir); default: return dir; } } shSkillCode shObjectIlk::getSkillForAttack (shAttack *attack) { if (attack->isMissileAttack ()) { return kGrenade; } else if (attack->isMeleeAttack ()) { return mMeleeSkill; } else if (attack->isAimedAttack ()) { return mGunSkill; } else { return kNoSkillCode; } } /* roll to save against the attack returns: 0 if save failed, true if made */ int shCreature::reflexSave (int DC) { if (is (kAsleep) or feat (kSessile)) return 0; int result = RNG (1, 20) + mReflexSaveBonus + ABILITY_MODIFIER (mAbil.Agi ()); return result >= DC; } int shCreature::misfire (shObject *weapon, shAttack *attack) { bool observed = Hero.cr ()->canSee (this); if (attack->mEffect == shAttack::kExtend) { if (isHero ()) { weapon->set (obj::known_bugginess); I->p ("Your weapon jams!"); } else if (observed) { I->p ("%s's weapon jams!", the ()); weapon->set (obj::known_bugginess); } return attack->mAttackTime; } else if (weapon->isA (kRayGun) and RNG (3)) { int died; if (isHero ()) { I->p ("Your ray gun explodes!"); } else if (observed) { I->p ("%s's ray gun explodes!", the ()); } else { I->p ("You hear an explosion"); } /* For all weapons that may explode, these caveats apply: 1. One needs to remove the weapon from inventory first, so no risk of double-deletion due to it somehow getting destroyed by a secondary explosion effect. 2. Deletion must be done after any potential clerkbot has had a look at to determine if it was unpaid. 3. Remember to return -2 if the attacker is killed in the explosion, because higher level code will handle deletion. For blowing up ray guns the following is done: Kludgily borrow and modify the weapon's own attack structure to save typing in new exploding ray gun attacks. */ removeObjectFromInventory (weapon); /* Handles unwielding. */ /* Turn the thing into an explosion. */ shAttack::Type saved_type = attack->mType; attack->mType = shAttack::kBlast; shAttack::Effect saved_effect = attack->mEffect; attack->mEffect = shAttack::kBurst; died = mLevel->attackEffect (attack, NULL, mX, mY, kNoDirection, this, 0); /* All right, repair the attack. */ attack->mType = saved_type; attack->mEffect = saved_effect; if (mState != kDead) usedUpItem (weapon, 1, "destroy"); delete weapon; return died ? -2 : attack->mAttackTime; } /* Weapon misfire wastes ammo and turn. */ if (weapon->vulnerability () == kCorrosive and weapon->mDamage == 3 and RNG (2)) { if (weapon->myIlk ()->mAmmoType == kObjEnergyCell) { /* Thoroughly corroded energy weapons may explode. */ if (isHero ()) { I->p ("Your weapon misfires and explodes!"); } else if (observed) { I->p ("%s's weapon misfires and explodes!", the ()); weapon->set (obj::known_bugginess); } else { I->p ("You hear a weapon misfire."); } removeObjectFromInventory (weapon); int died = mLevel->attackEffect (kAttConcussionGrenade, NULL, mX, mY, kNoDirection, this, 0); if (mState != kDead) usedUpItem (weapon, 1, "destroy"); delete weapon; return died ? -2 : attack->mAttackTime; } else { /* Thoroughly corroded conventional weapons may fall apart. */ if (isHero ()) { I->p ("Your weapon misfires and falls apart!"); } else if (observed) { I->p ("%s's weapon misfires and falls apart!", the ()); } else { I->p ("You hear a weapon misfire."); } /* Since a weapon falling apart has no side effects one can just delete it after clerkbot has complained about it. */ removeObjectFromInventory (weapon); usedUpItem (weapon, 1, "destroy"); delete weapon; return attack->mAttackTime; } } else { /* Usual misfire. */ if (isHero ()) { weapon->set (obj::known_bugginess); I->p ("Your weapon misfires!"); } else if (observed) { I->p ("%s weapon misfires!", namedher ()); weapon->set (obj::known_bugginess); } else { hear ("You hear a weapon misfire."); } } return attack->mAttackTime; } /* roll to hit the target returns: -x for a miss (returns the amount missed by) 1 for a hit 2+ for a critical (returns the appropriate damage multiplier) */ int shCreature::attackRoll (shAttack *attack, shObject *weapon, int attackmod, int AC, shCreature *target) { int result = RNG (1, 20); int dmul = 1; int threatrange = weapon ? weapon->getThreatRange () : 20; int critmult = weapon ? weapon->getCriticalMultiplier () : 2; const char *thetarget = target->the (); /* Rolling a 1 always results in a miss unless you shot yourself. */ if (1 == result and this != target) { I->diag ("attacking %s: rolled a 1 against AC %d.", thetarget, AC); return -99; } if (20 == result or result + attackmod >= AC) { /* Hit. */ if ((!target->isImmuneToCriticalHits ()) and (result >= threatrange)) { /* critical threat */ int threat = RNG (1, 20); if ((1 != threat) and ((20 == threat) or (threat + attackmod >= AC))) { /* critical hit */ dmul = critmult; I->diag ("attacking %s: rolled %d, then %d+%d=%d against " "AC %d: critical hit, dmg mult %d!", thetarget, result, threat, attackmod, threat + attackmod, AC, dmul); } else { I->diag ("attacking %s: rolled %d, then %d+%d=%d against AC %d", thetarget, result, threat, attackmod, threat + attackmod, AC); } } else { I->diag ("attacking %s: rolled a %d+%d=%d against AC %d", thetarget, result, attackmod, result + attackmod, AC); } /* Skilled characters may learn something about their weapon. */ if (result == 20 and isHero () and weapon and weapon->isA (kWeapon)) { if (!weapon->is (obj::known_bugginess)) { weapon->set (obj::known_bugginess); I->p ("You are using %s.", THE (weapon)); I->pause (); } else if (!weapon->is (obj::known_enhancement)) { shSkillCode s = weapon->myIlk ()->getSkillForAttack (attack); if (s != kNoSkillCode) { int skill = getSkill (s) -> mRanks; if (RNG (20) < skill) { weapon->set (obj::known_enhancement); I->p ("You are using %s.", THE (weapon)); I->pause (); } } } } return dmul; } I->diag ("attacking %s: rolled a %d+%d=%d against AC %d", thetarget, result, attackmod, result + attackmod, AC); return result + attackmod - AC; } /* determine if a ranged attack hits. returns: -x for a miss (returns amount missed by) 1 for a hit 2+ for a critical hit (returns damage multiplier) modifies: adds calculated damage bonuses to *dbonus */ int shCreature::rangedAttackHits (shAttack *attack, shObject *weapon, int attackmod, shCreature *target, int *dbonus) { int AC; int flatfooted = 0; /* set to 1 if the target is unable to react to the attack due to unawareness or other disability */ int range = distance (target, this); int wrange = attack->mRange; *dbonus += mDamageModifier; if (weapon) { *dbonus += weapon->mEnhancement; attackmod += weapon->myIlk ()->mToHitModifier; } if (!attack->isMeleeAttack () and target->intr (kShielded) and target->countEnergy ()) { /* almost always hits the targets shield and the target gets no benefit from concealment */ attackmod += 100; } canSee (target); if (attack->isMissileAttack ()) { if (weapon) { attackmod += getWeaponSkillModifier (weapon->myIlk (), attack); if (weapon->myIlk ()->mMissileAttack) { attackmod += weapon->mEnhancement; attackmod -= 2 * weapon->mDamage; } else { /* improvised missile weapon */ //FIXME: assess stiff penalties for large or impractical missiles } } /* Else a mutant power generating missiles or some such. */ } else { if (!weapon) { /* psionic or innate attack - caller should have already added relevant skill bonus to attackmod */ } else if (weapon->isA (kRayGun)) { attackmod += mToHitModifier; attackmod += 4; /* ray guns are normally pretty reliable */ } else { attackmod += getWeaponSkillModifier (weapon->myIlk (), attack); attackmod += weapon->mEnhancement; attackmod -= 2 * weapon->mDamage; } if (weapon and weapon->isOptimized ()) { attackmod += 2; } } if (0 == target->canSee (this)) { attackmod += 2; flatfooted = 1; } if (target->is (kStunned)) { flatfooted = 1; attackmod += 2; } if (target->isHelpless () or target->feat (kSessile)) { flatfooted = 1; attackmod += 4; } if (wrange) { if (shAttack::kShot == attack->mType) { attackmod += 2 * (range / wrange); *dbonus -= 4 * (range / wrange); } else { attackmod -= 2 * (range / 30); } } else if (target == this) { /* Throwing at self? */ attackmod = 100; } if (attack->isTouchAttack ()) { AC = target->getTouchAC (flatfooted); } else { AC = target->getAC (flatfooted); } /* roll to hit */ return attackRoll (attack, weapon, attackmod, AC, target); } /* works out the ranged attack against the target returns: 1 if the target is eliminated (e.g. it dies, teleports away, etc.) 0 if the target is hit but not eliminated -1 if the attack was a complete miss -2 if the attack was reflected */ int shCreature::resolveRangedAttack (shAttack *attack, shObject *weapon, int attackmod, shCreature *target, shObject *stack) { const char *n_target; const char *n_weapon; int dbonus = 0; int dmul = -1; int cantsee = 1; if (target->isHero ()) { n_target = "you"; cantsee = 0; } else if (Hero.cr ()->canSee (target) or Hero.cr ()->canHearThoughts (target)) { n_target = target->the (); cantsee = 0; } else { n_target = "something"; } if (weapon) { n_weapon = weapon->theQuick (); } else if (&Attacks[kAttOpticBlast] == attack) { if (isHero ()) n_weapon = "your laser beam"; else n_weapon = "the laser blast"; } else { n_weapon = "it"; } /* work out hit/miss */ dmul = rangedAttackHits (attack, weapon, attackmod, target, &dbonus); if (dmul <= 0) { //FIXME: determine if the attack hit armor or just plain missed dmul = -1; goto youmiss; } /* successful hit */ if (target->mHidden) { target->revealSelf (); } if (attack->mEffect == shAttack::kFarBurst) { Level->attackEffect (attack, weapon, target->mX, target->mY, kOrigin, this, weapon->mEnhancement); return target->mState == kDead; } if (attack->isMissileAttack () and weapon and !weapon->isA (kObjSmartDisc)) { weapon->impact (target, vectorDirection (mX, mY, target->mX, target->mY), this, stack); return target->mState == kDead; } if (isHero () and !target->isHero ()) { /* SufferDamage will handle message and getting angry. */ if (target->sufferDamage (attack, this, weapon, dbonus, dmul)) { target->die (kSlain, this, weapon, attack); return 1; } return 0; } else if (target->isHero ()) { if (target->sufferDamage (attack, this, weapon, dbonus, dmul)) { shCauseOfDeath reason; if (attack->dealsEnergy (kDisintegrating)) { reason = kAnnihilated; } else if (isHero ()) { reason = kSuicide; } else { reason = kSlain; } target->die (reason, this, weapon, attack); return 1; } target->interrupt (); return 0; } else { if (target->sufferDamage (attack, this, weapon, dbonus, dmul)) { shCauseOfDeath reason; if (attack->dealsEnergy (kDisintegrating)) { reason = kAnnihilated; } else { reason = kSlain; } if (!cantsee) target->pDeathMessage (n_target, reason); target->die (reason, this, weapon, attack); return 1; } if (isPet ()) { /* monsters will tolerate friendly-fire */ target->newEnemy (this); } target->interrupt (); return 0; } youmiss: if (attack->isMissileAttack ()) { if (target->isHero ()) { if (!Hero.cr ()->intr (kBlind)) I->p ("%s misses you!", n_weapon); else I->p ("Something flies past you!"); } else { I->p ("%s misses %s.", n_weapon, n_target); } } else if (&Attacks[kAttOpticBlast] == attack) { ; /* No message because the ray itself is invisible. */ } else { if (eff::none == beam_effect (attack, kOrigin)) { if (isHero () and target->mHidden <= 0 and (canSee (target) or canHearThoughts (target))) { I->p ("You miss %s.", n_target); } /* else if (target->isHero ()) { I->p ("%s misses.", n_attacker); } else { I->p ("%s misses %s", n_attacker, n_target); } */ } } target->interrupt (); target->newEnemy (this); return -1; } /* Work out the result of firing the weapon in the given direction. Can be called with weapon == NULL for special monster ranged attacks. returns: ms elapsed, -2 if attacker dies */ int shCreature::shootWeapon (shObject *weapon, shDirection dir, shAttack *attack) { int numrounds = 0; int setemptyraygun = 0; int basehitmod = 0; Hero.interrupt (); if (!weapon) { numrounds = 1; /* Only single round for monster attacks. */ basehitmod = mCLevel; } else { attack = wpn::get_gun_attack (this, &weapon, basehitmod, numrounds); if (!attack) return HALFTURN; if (weapon->isA (kRayGun) and weapon->isChargeable () and !weapon->mCharges and weapon->is (obj::known_charges)) { setemptyraygun = 1; } if (0 == numrounds) { int elapsed = FULLTURN; if (isHero ()) { if (weapon->isA (kRayGun)) { weapon->mIlkId = kObjEmptyRayGun; weapon->set (obj::known_charges | obj::known_type | obj::known_appearance); I->p ("Nothing happens."); weapon->announce (); } else { I->p ("You're out of ammo!"); elapsed = 0; } } return elapsed; } /* Some weapons identify themselves when shot. */ if (!intr (kBlind) and (isHero () or Hero.cr ()->canSee (this))) { if (weapon->isA (kObjHeatRayGun) or weapon->isA (kObjFreezeRayGun) or weapon->isA (kObjDisintegrationRayGun) or weapon->isA (kObjPoisonRayGun) or weapon->isA (kObjStasisRayGun) or weapon->isA (kObjSquirtRayGun) or weapon->isA (kObjAccelerationRayGun) or weapon->isA (kObjDecelerationRayGun)) { weapon->set (obj::known_type); } if (weapon->isA (kObjGammaRayGun) and Hero.cr ()->usesPower (kGammaSight)) { weapon->set (obj::known_type); } } if (!isHero ()) { int knownappearance = weapon->is (obj::known_appearance); if (Hero.cr ()->canSee (this)) { weapon->set (obj::known_appearance); I->p ("%s shoots %s!", the (), weapon->her (this)); } else if (Hero.cr ()->canHearThoughts (this)) { I->p ("%s shoots %s!", the (), weapon->anVague ()); } else { const char *a_weap = weapon->anVague (); if (!Hero.cr ()->intr (kBlind) and Level->isInLOS (mX, mY)) { /* muzzle flash gives away position */ I->p ("Someone shoots %s!", a_weap); Level->feelSq (mX, mY); } else { I->p ("You hear someone shooting %s!", a_weap); } if (!knownappearance) { weapon->clear (obj::known_appearance); } } } if (weapon->isBuggy () and !isOrc () and !RNG (5)) { return misfire (weapon, attack); } } /* End of shoot with weapon block. */ /* Clerkbots charge for usage of leased guns and ray guns. */ if (weapon and weapon->is (obj::unpaid)) { if (weapon->isA (kRayGun)) { employedItem (weapon, weapon->myIlk ()->mCost / 50); } else { employedItem (weapon, 2); } } switch (attack->mEffect) { case shAttack::kSingle: case shAttack::kFarBurst: if (-1 == numrounds) /* pea shooter */ numrounds = 1; while (numrounds--) { Level->attackEffect (attack, weapon, mX, mY, dir, this, basehitmod); /* Multishot weapon may jam. */ if (numrounds and weapon and weapon->isBuggy () and !RNG (12)) { if (isHero ()) { I->p ("Your weapon jams!"); weapon->set (obj::known_bugginess); } else if (Hero.cr ()->canSee (this)) { I->p ("%s %s jams!", namedher (), weapon->getShortDescription ()); weapon->set (obj::known_bugginess); } /* TODO: Give back the rest of ammo. */ break; } } break; case shAttack::kBeam: case shAttack::kExtend: if (usesPower (kImbue)) { if (mAbil.Psi () >= 1) { mAbil.temp_mod (abil::Psi, -1); } else { mMutantPowers[kImbue] = MUT_POWER_PRESENT; } } Level->attackEffect (attack, weapon, mX, mY, dir, this, 0); break; case shAttack::kCone: Level->attackEffect (attack, weapon, mX, mY, dir, this, 0); break; default: I->p ("Unknown weapon type!"); break; } if (weapon and setemptyraygun) { weapon->mIlkId = kObjEmptyRayGun; weapon->set (obj::known_type); weapon->announce (); } return attack->mAttackTime; } void shCreature::projectile (shObject *obj, shObject *stack, int x, int y, shDirection dir, shAttack *attack, int basehit, int range) { if (obj->isA (kObjSmartDisc)) { Level->attackEffect (attack, obj, x, y, dir, this, obj->mEnhancement); return; } int firsttarget = 1; while (range--) { shFeature *f; if (!mLevel->moveForward (dir, &x, &y)) { mLevel->moveForward (uTurn (dir), &x, &y); obj->impact (x, y, dir, this, stack); return; } if (mLevel->isOccupied (x, y)) { shCreature *c = mLevel->getCreature (x, y); /* Throw to self. */ if (c == this and dir != kOrigin and !mWeapon and numHands ()) { bool add = addObjectToInventory (obj, 1); see (fmt ("%s %scatch%s %s.", THE (this), add ? "" : "almost ", isHero () ? "" : "es", obj->theQuick ())); if (add) { if (!mWeapon) wield (obj, 1); } else { mLevel->putObject (obj, x, y); } return; } int tohitmod = basehit; if (!isHero () and !c->isHero ()) { tohitmod -= 8; /* avoid friendly fire */ } else if (!firsttarget) { tohitmod -= 4; } int r = resolveRangedAttack (attack, obj, tohitmod, c, stack); firsttarget = 0; if (r >= 0) { /* a hit - resolveRangedAttack will have called obj->impact */ return; } else if (Hero.cr ()->canSee (c)) { /* a miss - assuming we were aiming at this creature, the object shouldn't land too far away */ range = mini (range, RNG (1, 3) - 1); if (-1 == range) { /* land in the square in front */ mLevel->moveForward (uTurn (dir), &x, &y); obj->impact (x, y, dir, this, stack); } } } f = mLevel->getFeature (x, y); if (f) { switch (f->mType) { case shFeature::kDoorHiddenVert: case shFeature::kDoorHiddenHoriz: case shFeature::kDoorClosed: case shFeature::kComputerTerminal: case shFeature::kPortal: /* The thrown object will hit these solid features. */ obj->impact (f, dir, this, stack); return; default: /* It will fly right past other features. */ break; } } if (mLevel->isObstacle (x, y)) { obj->impact (x, y, dir, this, stack); return; } } /* maximum range */ obj->impact (x, y, dir, this, stack); } /* work out the result of throwing the object in the given direction returns: ms elapsed */ int shCreature::throwObject (shObject *obj, shObject *stack, shDirection dir) { obj->mOwner = NULL; /* Needed to get correct destruction messages. */ if (isHero ()) { usedUpItem (obj, obj->mCount, "throw"); obj->clear (obj::unpaid); /* Hero threw this. Pick this up automatically next time. */ if (obj->isThrownWeapon ()) obj->set (obj::thrown); if (usesPower (kImbue)) { if (mAbil.Psi () >= 2) { mAbil.temp_mod (abil::Psi, -2); } else { mMutantPowers[kImbue] = MUT_POWER_PRESENT; } } } shAttack *attack; if (obj->myIlk ()->mMissileAttack) { attack = &Attacks[obj->myIlk ()->mMissileAttack]; } else { attack = &Attacks[kAttImprovisedThrow]; } bool launch = isRobot () or (mWeapon and mWeapon->isA (kObjPulseRifle)); appear (fmt ("%s %ss %s!", THE (this), launch ? "launch" : "throw", obj->anQuick ())) or (launch and msg (fmt ("You launch %s.", obj->anQuick ()))); if (kUp == dir) { if (isHero ()) { I->p ("It bounces off the ceiling and lands on your head!"); /* ACME sign could fall. */ shFeature *f = mLevel->getFeature (mX, mY); if (f and f->mType == shFeature::kACMESign) Level->checkTraps (mX, mY); } obj->impact (this, kDown, this, stack); return attack->mAttackTime; } else if (kDown == dir) { obj->impact (mX, mY, kDown, this, stack); return attack->mAttackTime; } int maxrange; if (launch) { maxrange = 60; /* Grenade launcher. */ } else { /* 5 range increments @ 5 ft per increment. */ maxrange = 4 + ABILITY_MODIFIER (mAbil.Str ()) + NDX (2, 4); } /* Calculate hit bonus. */ int tohit = 0; if (usesPower (kImbue)) tohit = mini (10, maxi (1, getSkillModifier (kMutantPower, kImbue))); /* M41 Pulse Rifle has integrated grenade launcher. */ if (mWeapon and mWeapon->isA (kObjPulseRifle)) { tohit += 2 + mWeapon->mBugginess; } else if (isRobot ()) { tohit += 2; /* Robo-launcher. */ } projectile (obj, stack, mX, mY, dir, attack, tohit, maxrange); return attack->mAttackTime; } static bool ACMETest () { shCreature *h = Hero.cr (); shFeature *f = Level->getFeature (h->mX, h->mY); if (NOT0 (f,->mType == shFeature::kACMESign)) { h->msg ("You destroy the loose ACME sign!"); Level->removeFeature (f); h->beatChallenge (2); return true; } return false; } int shCreature::kick (shDirection dir) { assert (isHero ()); if (!isHero ()) return FULLTURN; const char *verb = "kick"; const char *gerund = "kicking"; /* Sealed body armor makes tail slaps impossible. */ if (!mBodyArmor or !mBodyArmor->isSealedArmor ()) for (int i = 0; i < MAXATTACKS; ++i) { shAttack *atk = &Attacks[myIlk ()->mAttacks[i].mAttId]; /* Sometimes replace kick with tail slap for flavor. */ if (atk and atk->mType == shAttack::kTailSlap and RNG (2)) { verb = "tail slap"; gerund = "tail slapping"; break; } } shFeature *f; int x = mX, y = mY; bool known = mLevel->getMemory (x, y).mTerr != kMaxTerrainType; Hero.feel (x, y); if (mLevel->isWatery (x, y)) { I->p ("You slosh around uselessly."); return HALFTURN; } if (usesPower (kImbue)) { if (mAbil.Psi () >= 1) { mAbil.temp_mod (abil::Psi, -1); } else { mMutantPowers[kImbue] = MUT_POWER_PRESENT; } } if (dir == kUp and mZ == 1) { f = mLevel->getFeature (x, y); if (!ACMETest ()) { I->p ("You kick the ceiling!"); if (!Hero.getStoryFlag ("kick ceiling")) { I->nonlOnce (); I->p (" You always wanted to do this."); Hero.setStoryFlag ("kick ceiling", 1); } if (sufferDamage (kAttKickedWall)) { die (kKilled, "kicking the ceiling"); } } return FULLTURN; } else if (dir == kUp) { I->p ("You %s the air!", verb); return FULLTURN; } if (mZ < 0) { f = mLevel->getFeature (x, y); if (f) { switch (f->mType) { case shFeature::kPit: I->p ("You %s the pit wall!", verb); if (sufferDamage (kAttKickedWall)) { char *reason = GetBuf (); snprintf (reason, SHBUFLEN, "%s a pit wall", gerund); die (kKilled, reason); } return FULLTURN; case shFeature::kAcidPit: I->p ("Your useless %s splashes acid everywhere.", verb); if (sufferDamage (kAttAcidPitBath)) die (kMisc, "Dissolved in acid"); return FULLTURN; case shFeature::kSewagePit: I->p ("You slosh around uselessly."); return FULLTURN; default: I->p ("UNEXPECTED: don't know how to handle %s from here.", verb); I->p ("(Please file a bug report!)"); return 0; } } else { I->p ("UNEXPECTED: don't know how to handle %s from here.", verb); I->p ("(Please file a bug report!)"); return 0; } } if (!mLevel->moveForward (dir, &x, &y)) { I->p ("You kick the map boundary. That was weird feeling."); } else if (dir != kDown and mLevel->isOccupied (x, y)) { /* Treat as unarmed attack. */ shCreature *c = Level->getCreature (x, y); /* Find a kick. Chance to replace with tail slap 20% if available. */ shAttack *atk = NULL; for (int i = 0; i < MAXATTACKS; ++i) { shAttack *a = &Attacks[myIlk ()->mAttacks[i].mAttId]; if (a and (a->mType == shAttack::kKick or a->mType == shAttack::kRake)) atk = a; if (a and a->mType == shAttack::kTailSlap and !RNG (5)) atk = a; } if (!atk) { I->p ("Oddly, you seem to have nothing to kick with."); return FULLTURN; } resolveMeleeAttack (atk, NULL, c); } else if (mLevel->countObjects (x, y)) { int maxrange = ABILITY_MODIFIER (mAbil.Str ()) + NDX (2, 4); shObject *obj; shAttack *atk; int dbonus = 0; obj = mLevel->removeObject (x, y, kObjFootball); if (obj) { atk = &Attacks[kAttKickedFootball]; dbonus = ABILITY_MODIFIER (mAbil.Str ()); dbonus += obj->mEnhancement; } else { /* Remove top object ourselves. */ shObjectVector *v = mLevel->getObjects (x, y); obj = findBestObject (v); v->remove (obj); if (0 == v->count ()) { delete v; mLevel->setObjects (x, y, NULL); } atk = &Attacks[kAttImprovisedThrow]; maxrange = maxi (2, maxrange); } if (kDown == dir) { I->p ("You stomp on %s.", obj->theQuick ()); if (obj->is (obj::unpaid)) { usedUpItem (obj, obj->mCount, "kick"); obj->clear (obj::unpaid); } obj->impact (x, y, kDown, this, NULL); } else { if (obj->is (obj::unpaid)) { usedUpItem (obj, obj->mCount, verb); obj->clear (obj::unpaid); } int tohit = getSkillModifier (kUnarmedCombat); if (Hero.mProfession != Quarterback) tohit /= 2; projectile (obj, NULL, x, y, dir, atk, tohit, maxrange); } } else if ((f = mLevel->getFeature (x, y))) { int score = D20 () + getWeaponSkillModifier (NULL); if (Hero.mProfession == Quarterback) score += 5; if (usesPower (kImbue)) score += 5 + getSkillModifier (kMutantPower, kImbue) / 2; switch (f->mType) { case shFeature::kDoorHiddenVert: case shFeature::kDoorHiddenHoriz: score += f->mSportingChance++; if (score >= 20 and !(shFeature::kLocked & f->mDoor.mFlags)) { I->p ("Your %s opens a secret door!", verb); f->mType = shFeature::kDoorOpen; f->mSportingChance = 0; } else if (score > 18) { I->p ("Your %s uncovers a secret door!", verb); f->mType = shFeature::kDoorClosed; f->mSportingChance = 0; } else { I->p ("You %s %s wall!", verb, known ? "the" : "a"); if (sufferDamage (kAttKickedWall)) { char *reason = GetBuf (); snprintf (reason, SHBUFLEN, "%s a secret door", gerund); die (kKilled, reason); } } break; case shFeature::kDoorClosed: if (f->isMagneticallySealed ()) { I->p ("Your %s a force field! Ow!", verb); if (sufferDamage (kAttKickedWall)) { char *reason = GetBuf (); snprintf (reason, SHBUFLEN, "%s a magnetically sealed door", gerund); die (kKilled, reason); } break; } score += f->mSportingChance; f->mSportingChance += RNG (1, 3); if (score >= (shFeature::kLocked & f->mDoor.mFlags ? 22 : 20)) { f->mType = shFeature::kDoorOpen; f->mDoor.mFlags &= ~shFeature::kLocked; if (!f->isLockBrokenDoor () and f->keyNeededForDoor ()) { I->p ("You smash the lock as you %s the door open!", verb); f->mDoor.mFlags |= shFeature::kLockBroken; } else { I->p ("You %s the door open!", verb); } f->mSportingChance = 0; } else { I->p ("The door shudders.%s", Hero.mProfession == Quarterback ? "" : " Ow!"); if (sufferDamage (kAttKickedWall)) { char *reason = GetBuf (); snprintf (reason, SHBUFLEN, "%s a door", gerund); die (kKilled, reason); } } if (f->isAlarmedDoor ()) { I->p ("You set off an alarm!"); Level->doorAlarm (f); } break; case shFeature::kComputerTerminal: case shFeature::kPortal: case shFeature::kStairsUp: case shFeature::kStairsDown: case shFeature::kRadTrap: case shFeature::kVat: case shFeature::kMaxFeatureType: I->p ("You %s %s!", verb, known ? f->the () : f->an ()); if (sufferDamage (kAttKickedWall)) { char *reason = GetBuf (); snprintf (reason, SHBUFLEN, "%s %s", gerund, f->an ()); die (kKilled, reason); } if (mState == kActing and dir != kDown and f->mType == shFeature::kVat) { /* Splash some sludge around. */ if (!mLevel->moveForward (dir, &x, &y)) break; mLevel->attackEffect (kAttVatSpill, NULL, x, y, kNoDirection, this, 0); } break; case shFeature::kDoorOpen: default: I->p ("You %s the air!", verb); break; } } else if (mLevel->isObstacle (x, y)) { I->p ("You %s %s!", verb, known ? mLevel->the (x, y) : mLevel->an (x, y)); if (sufferDamage (kAttKickedWall)) { char *reason = GetBuf (); snprintf (reason, SHBUFLEN, "%s %s", gerund, mLevel->an (x, y)); die (kKilled, reason); } } else if (dir == kDown and mZ != 1) { I->p ("You stamp your foot."); } else { I->p ("You %s the air!", verb); } Hero.feel (x, y); return FULLTURN; } /* work out the melee attack against the target returns: 1 if the target is eliminated (e.g. it dies, telports away, etc.) 0 if the target is hit but not eliminated -1 if the attack was a complete miss -2 if the attacker dies */ int shCreature::resolveMeleeAttack (shAttack *attack, shObject *weapon, shCreature *target) { int attackmod; int AC; int flatfooted = 0; /* set to 1 if the target is unable to react to the attack due to unawareness or other disability */ int vis; const char *n_attacker; const char *n_target; int dbonus = 0; int dmul = 0; int cantsee = 1; if (isHero ()) { n_attacker = "you"; cantsee = 0; } else if (Hero.cr ()->canSee (this) or Hero.cr ()->canHearThoughts (this)) { n_attacker = the (); cantsee = 0; } else { n_attacker = "something"; } if (target->isHero ()) { n_target = "you"; cantsee = 0; } else if (Hero.cr ()->canSee (target)) { n_target = target->the (); cantsee = 0; } else { n_target = "something"; } vis = canSee (target); if (is (kFrightened) and vis) { if (isHero ()) { I->p ("You are too afraid to attack %s!", n_target); } return -1; } if (is (kUnableAttack)) { if (isHero ()) { I->p ("What a blatant display of belligerence."); } return -1; } if (target->intr (kScary) and isHero () and !intr (kBlind) and !is (kConfused) and !is (kStunned) and RNG (2)) { /* Brain shield doesn't help in this case. */ I->p ("You are suddenly too afraid to %s %s!", weapon ? "attack" : "touch", n_target); inflict (kFrightened, 1000 * NDX (2, 10)); return -1; } if (weapon) { if (weapon->isMeleeWeapon ()) { expendAmmo (weapon); attackmod = getWeaponSkillModifier (weapon->myIlk (), attack); attackmod += weapon->mEnhancement; attackmod -= 2 * weapon->mDamage; dbonus = weapon->mEnhancement; dbonus -= weapon->mDamage; } else { if (weapon->isA (kWeapon)) { /* e.g. pistol whipping, use unarmed combat skill */ attackmod = getWeaponSkillModifier (NULL); attackmod += weapon->mEnhancement; attackmod -= 2 * weapon->mDamage; } else { /* improvised melee weapon */ attackmod = ABILITY_MODIFIER (mAbil.Str ()) - 4; dbonus = ABILITY_MODIFIER (mAbil.Str ()) / 2; } } attackmod += weapon->myIlk ()->mToHitModifier; } else { /* Basic hand to hand attack. */ attackmod = getWeaponSkillModifier (NULL); } attackmod += mToHitModifier; dbonus += mDamageModifier; if (0 == target->canSee (this)) { attackmod += 2; flatfooted = 1; } if (target->is (kStunned)) { flatfooted = 1; attackmod += 2; } if (target->isHelpless () or target->feat (kSessile)) { flatfooted = 1; attackmod += 8; } if (attack->isTouchAttack ()) { AC = target->getTouchAC (flatfooted); } else { AC = target->getAC (flatfooted); } /* roll to hit */ dmul = attackRoll (attack, weapon, attackmod, AC, target); if (dmul <= 0) { /* Miss. */ dmul = -1; if (target->mHidden <= 0) { if (isHero ()) { I->p ("You miss %s.", n_target); } else if (target->isHero ()) { I->p ("%s misses.", n_attacker); } else if (!cantsee) { I->p ("%s misses %s.", n_attacker, n_target); } target->newEnemy (this); } target->interrupt (); return dmul; } else if (isHero ()) { if (target->isA (kMonMonolith) and !target->isHostile () and ( (attack->mType == shAttack::kPunch and !mWeapon) or /* Humanoid. */ (attack->mType == shAttack::kClaw and !mWeapon) or /* Xel'Naga. */ (attack->mType == shAttack::kKick and !mBoots) )) { Hero.touchMonolith (target); return 1; } if (usesPower (kImbue)) { if (mAbil.Psi () >= 1) { mAbil.temp_mod (abil::Psi, -1); } else { mMutantPowers[kImbue] = MUT_POWER_PRESENT; } } int retval; /* SufferDamage will handle hit message. */ if (target->sufferDamage (attack, this, weapon, dbonus, dmul)) { target->die (kSlain, this, weapon, attack); retval = 1; } else { target->newEnemy (this); target->interrupt (); retval = 0; } /* Check for unpaid stuff. */ if (attack->mType == shAttack::kKick and NOT0 (mBoots,->is (obj::unpaid))) employedItem (mBoots, 3); if (attack->mType == shAttack::kHeadButt and NOT0 (mHelmet,->is (obj::unpaid))) employedItem (mHelmet, 3); if (NOT0 (weapon,->is (obj::unpaid))) employedItem (weapon, 1); return retval; } else if (target->isHero ()) { const char *hitsmesg = monHitsYouMesg (attack); if (hitsmesg) I->p ("%s%s!", n_attacker, hitsmesg); if (shAttack::kFaceHug == attack->mType and target->isAlive () and !mImpregnation) { if (target->is (kFrozen)) { I->p ("%s bounces off ice encasing you.", the ()); return 0; } int chance; if (target->is (kAsleep) or target->is (kParalyzed)) { chance = 1; /* Guaranteed. */ } else if (NOT0 (target->mHelmet,->isSealedArmor ())) { chance = 3; /* Sealed helmet protects somewhat. */ } else { chance = 2; } int result = RNG (chance); if (!result) { I->p ("%s impregnates you with an alien embryo!", the ()); target->mImpregnation = 1; die (kSuicide); if (chance == 3) { /* Damage helmet. */ shObject *helmet = target->mHelmet; int *enh = &helmet->mEnhancement; if (*enh < -helmet->myIlk ()->mMaxEnhancement) { I->p ("%s was destroyed.", YOUR (helmet)); target->doff (helmet); target->removeObjectFromInventory (helmet); delete helmet; } else { I->p ("%s has been damaged.", YOUR (helmet)); --(*enh); } I->drawSideWin (this); /* Possible AC change. */ } return -2; } else if (result == 2) { I->p ("The facehugger bounces off %s.", YOUR (target->mHelmet)); return 0; } else { I->nonlOnce (); if (RNG (2)) { I->p (" You dodge."); } else { I->p (" It misses."); } return -1; } } if (target->sufferDamage (attack, this, weapon, dbonus, dmul)) { if (shAttack::kExtractBrain == attack->mType) { char *buf = GetBuf (); snprintf (buf, SHBUFLEN, "Brain-napped by %s", myIlk ()->mName); target->die (kMiscNoYouDie, this, weapon, attack, buf); } else { target->die (kSlain, this, weapon, attack); } return 1; } return 0; } else { if (!cantsee) { I->p ("%s%s %s!", n_attacker, monHitsMonMesg (attack), n_target); } if (target->sufferDamage (attack, this, weapon, dbonus, dmul)) { if (!cantsee) { target->pDeathMessage (n_target, kSlain); } target->die (kSlain, this, weapon, attack); return 1; } target->newEnemy (this); target->interrupt (); return 0; } } /* Following three routines return: 1 if target is eliminated (dies, teleports, etc) 0 if target was attacked -1 if target was missed -2 if the attacking monster dies */ /* Determine exact square attacked. */ int shCreature::meleeAttack (shObject *weapon, shDirection dir) { int x = mX, y = mY; if (!Level->moveForward (dir, &x, &y)) { /* impossible to attack off the edge of the map? */ msg ("There's nothing there!"); return 0; } return meleeAttack (weapon, x, y); } /* Determines attack used. */ int shCreature::meleeAttack (shObject *weapon, int x, int y) { shCreature *target = mLevel->getCreature (x, y); shAttack *attack = &Attacks[kAttDummy]; if (!weapon) { if (isHero () and !Hero.getStoryFlag ("strange weapon message")) { if (Hero.mProfession == XelNaga) { I->p ("You start ripping your foes with your clawed hands."); } else { I->p ("You start pummeling your foes with your bare hands."); } Hero.setStoryFlag ("strange weapon message", 1); } if (NOT0 (target,->isA (kMonMonolith))) { /* Always punch monoliths. FIXME: Find punch. */ attack = &Attacks[myIlk ()->mAttacks[0].mAttId]; } else { /* Note: only hero will use this paths, as monsters do choose their own attack and pass it. */ // FIXME: Use probabilities instead of choosing at random. // Reuse choosing melee attack procedure from MonsterAI.cpp attack = &Attacks[myIlk ()->mAttacks[0].mAttId]; } } else if (weapon->isMeleeWeapon () and (!weapon->isA (kObjLightSaber) or weapon->is (obj::known_type))) { if (hasAmmo (weapon)) { attack = &Attacks[weapon->myIlk ()->mMeleeAttack]; } else { if (isHero () and !Hero.getStoryFlag ("strange weapon message")) { I->p ("You are out of power for %s.", YOUR (weapon)); I->p ("You start clumsily smashing your enemies with it."); Hero.setStoryFlag ("strange weapon message", 1); } attack = &Attacks[kAttImprovisedMelee]; } } else { if (isHero () and !Hero.getStoryFlag ("strange weapon message")) { I->p ("You start smashing enemies with %s.", YOUR (weapon)); Hero.setStoryFlag ("strange weapon message", 1); } attack = &Attacks[kAttImprovisedMelee]; } assert (attack != &Attacks[kAttDummy]); return meleeAttack (attack, weapon, x, y); } /* Returns status as commented for above procedure. Except for heroes! Then time elapsed is returned. Sigh ... curse the inconsistencies. */ int shCreature::meleeAttack (shAttack *attack, shObject *weapon, int x, int y) { shCreature *target = mLevel->getCreature (x, y); if (!target) { msg ("You attack thin air.") or appear (fmt ("%s attacks thin air!", the ())); if (isHero ()) Hero.feel (x, y); return isHero () ? attack->mAttackTime : -1; /* Miss result. */ } if (isHero () and NOT0 (target,->mHidden)) { target->revealSelf (); } /* Place invisible monster marker for unseen monster that has attacked the hero in melee. */ if (NOT0 (target,->isHero ()) and target->intr (kBlind)) { Hero.feel (mX, mY); } int ret = resolveMeleeAttack (attack, weapon, target); if (isHero ()) { Hero.feel (x, y); return attack->mAttackTime; } return ret; } void shObject::breakAt (int x, int y) { if (isA (kFloppyDisk) and isBuggy () and RNG (2)) { bool found_site = false; if (!Level->isOccupied (x, y) and Level->isFloor (x, y)) found_site = true; if (!found_site and !Level->findAdjacentUnoccupiedSquare (&x, &y)) { found_site = true; } if (found_site) { shMonId mon = myIlk ()->mCost >= 250 ? kMonRadbug : kMonGiantCockroach; shCreature *bug = shCreature::monster (mon); Level->putCreature (bug, x, y); if (Hero.cr ()->canSee (x, y)) { I->p ("A black cloud rises forth from floppy disk remains!"); I->p ("It coalesces into a bug."); } else if (distance (x, y, Hero.cr ()->mX, Hero.cr ()->mY) <= 5 * 8) { I->p ("You hear a%s evil hissing.", mon == kMonRadbug ? " truly" : "n"); } } } delete this; } namespace combat { bool fails_to_explode(shObject *grenade) { if (grenade->isBuggy () and !RNG(4)) return true; return false; } } bool is_grenade(shObject *obj) { shAttack *atk = &Attacks[obj->myIlk ()->mMissileAttack]; if (shAttack::kBurst == atk->mEffect) return true; return false; } void shObject::impact (int x, int y, shDirection dir, shCreature *thrower, shObject *stack) { if (Level->isObstacle (x, y)) { /* bounce back one square */ Level->moveForward (uTurn (dir), &x, &y); } if (myIlk ()->mMissileAttack) { shAttack *atk = &Attacks[myIlk ()->mMissileAttack]; if (is_grenade (this) and !combat::fails_to_explode (this)) { if (Hero.cr ()->intr (kBlind)) I->p ("Boom!"); Level->attackEffect (atk, this, x, y, dir, thrower, mEnhancement, 0); /* Identifying thrown grenade identifies whole stack. */ if (stack) stack->mFlags = this->mFlags; if (thrower->isHero () and thrower->intr (kBlind)) { this->maybeName (); /* Heard this item explode. */ } delete this; return; } } if (sufferDamage (kAttGroundCollision, thrower, x, y)) { breakAt (x, y); } else { Level->putObject (this, x, y); } } void shObject::impact (shCreature *c, shDirection dir, shCreature *thrower, shObject *stack) { int dbonus = 0; const char *the_monster = c->the (); int x = c->mX; int y = c->mY; if (mIlkId == kObjRestrainingBolt and c->isRobot ()) { I->p ("%s clings to %s.", theQuick (), the_monster); c->attemptRestraining (this); return; } shAttackId attid; if (myIlk ()->mMissileAttack) { attid = myIlk ()->mMissileAttack; dbonus += mEnhancement; if (shAttack::kSingle == Attacks[attid].mEffect) { dbonus += ABILITY_MODIFIER (thrower->mAbil.Str ()); } } else { attid = kAttImprovisedThrow; } shAttack *atk = &Attacks[attid]; if (shAttack::kBurst != atk->mEffect) { if (c->sufferDamage (atk, thrower, NULL, dbonus)) { shCauseOfDeath reason; if (atk->dealsEnergy (kDisintegrating)) { reason = kAnnihilated; } else { reason = kSlain; } c->die (reason, thrower, this, atk); } else { if (thrower->isHero () or thrower->isPet ()) { c->newEnemy (thrower); } c->interrupt (); } /* Hits the monster and then falls to the ground. */ if (sufferDamage (kAttGroundCollision, thrower, x, y)) { breakAt (x, y); } else { Level->putObject (this, x, y); } } else if (is_grenade (this) and !combat::fails_to_explode (this)) { if (Hero.cr ()->intr (kBlind)) I->p ("Boom!"); Level->attackEffect (atk, this, c->mX, c->mY, dir, thrower, 0, dbonus); if (stack) stack->mFlags = this->mFlags; if (thrower->isHero () and thrower->intr (kBlind)) { this->maybeName (); } delete this; } else { Level->putObject (this, x, y); } } void shObject::impact (shFeature *f, shDirection dir, shCreature *thrower, shObject *stack) { int x = f->mX; int y = f->mY; if (myIlk ()->mMissileAttack) { shAttack *atk = &Attacks[myIlk ()->mMissileAttack]; if (is_grenade (this) and !combat::fails_to_explode (this)) { if (f->isObstacle () and atk->mRadius > 0) { /* bounce back one square */ Level->moveForward (uTurn (dir), &x, &y); } if (Hero.cr ()->intr (kBlind)) I->p ("Boom!"); Level->attackEffect (atk, this, x, y, dir, thrower, 0, mEnhancement); if (stack) stack->mFlags = this->mFlags; if (thrower->isHero () and thrower->intr (kBlind)) { this->maybeName (); } delete this; return; } } if (sufferDamage (kAttGroundCollision, thrower, x, y)) { breakAt (x, y); } else { if (f->isObstacle ()) { /* bounce back one square */ Level->moveForward (uTurn (dir), &x, &y); } Level->putObject (this, x, y); } } /* Someone stands close and attacks a door. Warning: weapon pointer may be NULL! */ void shCreature::shootLock (shObject *weapon, shAttack *attack, shFeature *door) { if (!isHero ()) return; if (weapon and !weapon->myIlk ()->mGunAttack) /* Ray guns. */ return; if (areAdjacent (mX, mY, door->mX, door->mY) and canSee (door->mX, door->mY)) { int score = D20 () + 4 + /* Might be without weapon. For example Optic Blast. */ (weapon ? getWeaponSkillModifier(weapon->myIlk (), attack) : 0) + attack->mDamage[0].mHigh + door->mSportingChance; door->mSportingChance += RNG (2, 6); if ((door->isLockBrokenDoor () and !door->isLockedDoor ()) or !door->isLockDoor ()) { /* Silent. */ } else if (score < 22) { I->p ("You damage the lock."); } else if (door->isLockBrokenDoor ()) { I->p ("The broken lock falls apart!"); door->mDoor.mFlags &= ~shFeature::kLocked; } else if (RNG (3) or score > 32) { I->p ("The lock falls apart!"); door->mDoor.mFlags |= shFeature::kLockBroken; door->mDoor.mFlags &= ~shFeature::kLocked; } else { I->p ("You break the lock!"); door->mDoor.mFlags |= shFeature::kLockBroken; } if (door->isAlarmedDoor ()) { I->p ("You set off an alarm!"); Level->doorAlarm (door); } } } /* returns: 1 if the feature should block further effect 0 if effect should continue -1 if effect should be reflected (message printed) */ int shMapLevel::areaEffectFeature (shAttack *atk, shObject *weapon, int x, int y, shDirection, shCreature *attacker) { shFeature *f = getFeature (x, y); int destroy = 0; int block = 1; if (atk->mType == shAttack::kDisintegrationRay) { block = 0; } if (atk->mType == shAttack::kFlare) setLit (x, y); if (!f or GameOver) return 0; bool seetile = Hero.cr ()->canSee (x, y); switch (f->mType) { case shFeature::kDoorOpen: if (atk->mType == shAttack::kIncendiary) { if (seetile) { I->p ("The flames burn down the door!"); } destroy = 1; } else if (atk->mType == shAttack::kBlast) { if (atk->dealsEnergy (kDisintegrating)) { if (seetile) { I->p ("The door is annihilated!"); } else { I->p ("You hear a loud bang!"); if (weapon) weapon->maybeName (); } destroy = 1; } else if (atk->dealsEnergy (kBurning) or atk->dealsEnergy (kPlasma)) { if (seetile) { I->p ("The door melts down!"); } destroy = 1; } else if (atk->dealsEnergy (kExplosive)) { f->mDoor.mFlags |= shFeature::kLockBroken; f->mDoor.mFlags &= ~shFeature::kLocked; } } else if (atk->mType == shAttack::kGaussRay) { f->mDoor.mFlags &= ~shFeature::kAutomatic; f->mDoor.mFlags &= ~shFeature::kBerserk; if (f->isLockDoor ()) { f->mDoor.mFlags &= ~shFeature::kLocked; f->mDoor.mFlags |= shFeature::kLockBroken; } } block = 0; break; case shFeature::kDoorClosed: if (f->isMagneticallySealed ()) { if (kLaser == atk->mDamage[0].mEnergy or kParticle == atk->mDamage[0].mEnergy ) { if (seetile) I->p ("The %s bounces off the door!", atk->noun ()); return -1; } if (seetile and shAttack::kGaussRay != atk->mType) I->p ("The %s is absorbed by a force field!", atk->noun ()); return 1; } switch (atk->mType) { case shAttack::kBlast: if (atk->dealsEnergy (kBurning) or atk->dealsEnergy (kPlasma)) { if (seetile) { I->p ("The door melts down!"); } destroy = 1; break; } else if (atk->dealsEnergy (kExplosive) and !f->isMagneticallySealed ()) { f->mDoor.mFlags |= shFeature::kLockBroken; f->mDoor.mFlags &= ~shFeature::kLocked; break; } else if (atk->dealsEnergy (kDisintegrating)) { /* Fall through to disintegration ray. */ } else { break; } case shAttack::kDisintegrationRay: if (seetile) { I->p ("The door is annihilated!"); } else { I->p ("You hear a loud bang!"); if (weapon) weapon->maybeName (); } destroy = 1; break; case shAttack::kGaussRay: f->mDoor.mFlags &= ~shFeature::kAutomatic; f->mDoor.mFlags &= ~shFeature::kBerserk; if (f->isLockDoor ()) { f->mDoor.mFlags &= ~shFeature::kLocked; f->mDoor.mFlags |= shFeature::kLockBroken; } block = 0; break; case shAttack::kHeatRay: if (seetile) { setSpecialEffect (x, y, beam_effect (atk, kOrigin)); drawSq (x, y); I->p ("The heat ray melts a hole through the door!"); } destroy = 1; break; case shAttack::kIncendiary: if (seetile) { I->p ("The flames burn down the door!"); } destroy = 1; break; case shAttack::kGammaRay: /* no message */ case shAttack::kTransporterRay: case shAttack::kStasisRay: case shAttack::kHealingRay: case shAttack::kRestorationRay: case shAttack::kFlash: break; case shAttack::kPoisonRay: case shAttack::kFreezeRay: default: break; } if (!destroy and (atk->mEffect == shAttack::kSingle or atk->mEffect == shAttack::kBeam)) { attacker->shootLock (weapon, atk, f); } break; case shFeature::kDoorHiddenVert: case shFeature::kDoorHiddenHoriz: switch (atk->mType) { case shAttack::kBlast: if (atk->mDamage[0].mEnergy != kDisintegrating) break; case shAttack::kDisintegrationRay: if (seetile) { setSpecialEffect (x, y, beam_effect (atk, kOrigin)); drawSq (x, y); } /* Silently because antimatter may dig. */ destroy = 1; break; case shAttack::kGaussRay: if (f->isLockDoor ()) { f->mDoor.mFlags &= ~shFeature::kLocked; f->mDoor.mFlags |= shFeature::kLockBroken; } block = 0; break; case shAttack::kHeatRay: if (seetile) { setSpecialEffect (x, y, beam_effect (atk, kOrigin)); drawSq (x, y); I->p ("The heat ray melts a hole through a secret door!"); } destroy = 1; break; case shAttack::kIncendiary: if (seetile) { setSpecialEffect (x, y, beam_effect (atk, kOrigin)); drawSq (x, y); I->p ("The flames burn down a secret door!"); } destroy = 1; break; case shAttack::kPoisonRay: case shAttack::kFreezeRay: case shAttack::kGammaRay: case shAttack::kStasisRay: case shAttack::kHealingRay: case shAttack::kRestorationRay: default: break; } break; case shFeature::kMovingHWall: switch (atk->mType) { case shAttack::kBlast: if (atk->mDamage[0].mEnergy != kDisintegrating) break; case shAttack::kDisintegrationRay: if (seetile) { I->p ("The moving wall section is annihilated!"); } else { I->p ("You hear a loud bang!"); if (weapon) weapon->maybeName (); } destroy = 1; break; default: break; } break; case shFeature::kMachinery: switch (atk->mType) { case shAttack::kBlast: if (atk->mDamage[0].mEnergy != kDisintegrating) break; case shAttack::kDisintegrationRay: if (seetile) { I->p ("The machinery is annihilated!"); } else { I->p ("You hear a loud bang!"); if (weapon) weapon->maybeName (); } destroy = 1; /* KLUDGE: stop the wall from moving */ int w; for (w = y+1; w <= y +8; w++) { shFeature *g = Level->getFeature (x, w); if (!g) break; if (shFeature::kMovingHWall == g->mType) { g->mType = shFeature::kMachinery; if (seetile) { I->p ("The wall segment lurches and halts."); } else { I->p ("You hear gears lurching and grinding."); } break; } if (shFeature::kMovingHWall != g->mType) break; } for (w = y-1; w <= y - 8; w--) { shFeature *g = Level->getFeature (x, w); if (!g) break; if (shFeature::kMovingHWall == g->mType) { g->mType = shFeature::kMachinery; if (seetile) { I->p ("The wall segment lurches and halts."); } else { I->p ("You hear gears lurching and grinding."); } break; } if (shFeature::kMovingHWall != g->mType) break; } break; default: break; } break; case shFeature::kVat: if (atk->dealsEnergy (kDisintegrating)) { if (seetile) { I->p ("The vat is annihilated!"); } else { I->p ("You hear a gurgling hiss!"); if (weapon) weapon->maybeName (); } destroy = 1; break; } if (atk->dealsEnergy (kTransporting)) { int i = atk->findEnergyType (kTransporting); int nx = x, ny = y; int min = atk->mDamage[i].mLow; int max = atk->mDamage[i].mHigh; trn::coord_pred predicate = &shMapLevel::is_open_sq; trn::coord_in_stripe (nx, ny, min, max, predicate); bool noticed = shFeature::teleportVat (f, attacker, nx, ny); if (noticed and weapon) weapon->set (obj::known_type); } block = 0; //TODO: Tractor beam. break; case shFeature::kRadTrap: switch (atk->mType) { case shAttack::kBlast: if (atk->mDamage[0].mEnergy != kDisintegrating) break; if (seetile) { I->p ("The radiation trap is annihilated!"); } else { I->p ("You hear a loud bang!"); if (weapon) weapon->maybeName (); } destroy = 1; break; default: block = 0; break; } break; case shFeature::kPit: if (atk->mType == shAttack::kAcidSplash and !RNG (4)) { if (seetile) { I->p ("The pit is filled with acidic blood."); } f->mType = shFeature::kAcidPit; } block = 0; break; case shFeature::kAcidPit: if (atk->dealsEnergy (kTransporting)) { int i = atk->findEnergyType (kTransporting); int nx = x, ny = y; int min = atk->mDamage[i].mLow; int max = atk->mDamage[i].mHigh; trn::coord_pred predicate = &shMapLevel::is_open_sq; trn::coord_in_stripe (nx, ny, min, max, predicate); bool noticed = shFeature::teleportAcid (f, attacker, nx, ny); if (noticed and weapon) weapon->set (obj::known_type); } case shFeature::kFloorGrating: { bool dmg = atk->dealsEnergy (kExplosive) or atk->dealsEnergy (kCorrosive); bool melt = atk->dealsEnergy (kBurning); bool ann = atk->dealsEnergy (kDisintegrating); if (dmg or melt or ann) { f->mType = dmg ? shFeature::kBrokenGrating : shFeature::kHole; if (seetile) { I->p ("The floor grating %s.", dmg ? "is destroyed" : ann ? "is annihilated" : "melts"); } Level->checkTraps (x, y); } break; } case shFeature::kBrokenGrating: if (atk->dealsEnergy (kBurning) or atk->dealsEnergy (kDisintegrating)) { f->mType = shFeature::kHole; if (seetile) { I->p ("The floor grating remains %s.", atk->dealsEnergy (kBurning) ? "melt" : "are annihilated"); } Level->checkTraps (x, y); } break; default: /* no effect */ block = 0; break; } if (destroy) { Level->removeFeature (f); Level->computeVisibility (Hero.cr ()); if (attacker and Level->isInShop (x, y)) { attacker->damagedShop (x, y); } } return block; } void shMapLevel::areaEffectObjects (shAttack *atk, shObject *, int x, int y, shCreature *attacker) { shObjectVector *v = Level->getObjects (x, y); if (!v or GameOver) return; for (int i = v->count () - 1; i >= 0; --i) { shObject *obj = v->get (i); int numdestroyed = obj->sufferDamage (atk, attacker, x, y); if (numdestroyed) { if (obj->is (obj::unpaid)) { if (atk->mDamage[0].mEnergy == kDisintegrating) { attacker->usedUpItem (obj, numdestroyed, "annihilate"); } else { attacker->usedUpItem (obj, numdestroyed, "destroy"); } } if (numdestroyed == obj->mCount) { v->remove (obj); extern shObjectVector DeletedObjects; DeletedObjects.add (obj); } else { obj->mCount -= numdestroyed; } } } if (!v->count ()) { delete v; Level->setObjects (x, y, NULL); } } /* returns: -2 if attacker dies, 0 if effect should keep going, 1 if effect should stop */ int shMapLevel::areaEffectCreature (shAttack *atk, shObject *weapon, int x, int y, shDirection dir, shCreature *attacker, int attackmod, int dbonus /* = 0 */) { const char *msg = beamHitsMesg (atk); int died = 0; int dmul = 0; int block = 0; int divider = 1; int dc = 15 + attackmod; shCauseOfDeath howdead = kSlain; shCreature *c = getCreature (x, y); if (!c or GameOver or kDead == c->mState) return 0; const char *the_monster = c->the (); /* if (atk->mType == shAttack::kTransporterRay) { bool self = c == attacker; if (c->mHidden <= 0 and weapon) weapon->set (obj::known_type); if (!self) c->newEnemy (attacker); died = c->transport (-1, -1); if (1 == died and self) return -2; return 0; } */ bool h_see_this = Hero.cr ()->canSee (c); bool h_see_tile = Hero.cr ()->canSee (x, y); if (atk->mType == shAttack::kNoAttack) { /* Special things. */ } else if (atk->mType == shAttack::kTractor) { if (c->isA (kMonMonolith) or c->isA (kMonManEatingPlant)) return 1; shDirection tdir = uTurn (dir); int mvx = x, mvy = y; if (Level->moveForward (tdir, &mvx, &mvy)) { if (!Level->isOccupied (mvx, mvy)) { Level->moveCreature (c, mvx, mvy); } return 0; } else { return 1; } } else if (atk->mType == shAttack::kFlare) { msg = NULL; } else if (atk->mType == shAttack::kLight) { /* Shielding does not protect against flashbang grenade. */ if (c->intr (kBlind)) { /* Does not even notice. */ return 0; } if (c->reflexSave (dc)) { if (c->isHero ()) { I->p ("You close your eyes just in time!"); } else if (h_see_this) { if (!c->isRobot ()) { I->p ("%s managed to close eyes in time.", the_monster); } } return 0; } } else if (atk->mType == shAttack::kAcidSplash) { /* Acid splash is a slow projectile and is not stopped by shield. */ dmul = 1; if (c == attacker) { return 0; /* That's your own acidic blood. */ } if (c->isHero ()) { I->p ("You are splashed by acid!"); } else if (h_see_this) { I->p ("%s is splashed by acid!", the_monster); } } else if (atk->mType == shAttack::kFlash) { /* Shield does not protect against irradiation. */ dmul = 1; } else if (atk->mType == shAttack::kEnsnare) { if (c->isHero ()) { I->p ("You are ensnared within webs."); } else if (h_see_this) { I->p ("%s is ensnared within webs.", the_monster); } dmul = 1; } else if (c->intr (kShielded) and c->countEnergy ()) { /* The shield is big, so it's always hit. */ block = 1; dmul = 1; if (atk->mType == shAttack::kBlast) { c->msg ("You are caught in the blast!") or (h_see_tile and I->p ("%s is caught in the blast!", the_monster)); } } else if (atk->dealsEnergy (kDisintegrating)) { dmul = 1; /* Means death anyway, no point in dodging. */ if (c->isA (kMonMonolith) and atk->mType == shAttack::kDisintegrationRay) { if (h_see_this) I->p ("The antimatter stream harmlessly enters the monolith."); return 1; /* Block the effect. */ } } else if (atk->mType == shAttack::kBlast or (atk->mType == shAttack::kExplode and atk->mDamage[0].mEnergy != kPsychic) or atk->mType == shAttack::kIncendiary) { /* save for half damage */ dmul = 1; if (c != attacker and !c->isHelpless () and c->reflexSave (dc)) { ++divider; const char *what = (atk->mType == shAttack::kIncendiary) ? "flames" : "blast"; if (h_see_this) { I->p ("%s duck%s some of the %s.", the_monster, c->isHero () ? "" : "s", what); } } else { const char *what = (atk->mType == shAttack::kIncendiary) ? "engulfed by the flames" : "caught in the blast"; if (h_see_this) { I->p ("%s %s %s!", the_monster, c->are (), what); } } } else if (atk->mType == shAttack::kOpticBlast or atk->mType == shAttack::kLaserBeam) { dmul = attacker->rangedAttackHits (atk, weapon, attackmod, c, &dbonus); if (dmul <= 0) { if (!c->isHero () and attacker and (attacker->isHero () or attacker->isPet ())) { c->newEnemy (attacker); } return 0; } } else if (atk->mType == shAttack::kShot) { dmul = 1; /* Shrapnel of sawn-off shotgun can't be dodged. */ } else if (atk->mType == shAttack::kPlague) { dmul = 1; } else if (atk->mType == shAttack::kPsionicStorm) { dmul = 1; } else if (c != attacker and !c->feat (kSessile) and !c->isHelpless () and c->reflexSave (dc)) { const char *attack_desc; if (weapon and weapon->isA (kRayGun) and (weapon->is (obj::known_type | obj::known_appearance) or Hero.cr ()->intr (kBlind))) { attack_desc = "ray"; } else { attack_desc = atk->noun (); } /* save for no damage */ if (c->isHero ()) { I->p ("You dodge the %s!", attack_desc); } else { if ((h_see_this and c->mHidden <= 0) or Hero.cr ()->canHearThoughts (c)) { I->p ("%s dodges the %s.", the_monster, attack_desc); } if (attacker and (attacker->isHero () or attacker->isPet ())) { c->newEnemy (attacker); } } return 0; } else { dmul = 1; if (atk->mType == shAttack::kBlast and h_see_this) { I->p ("%s %s caught in the blast!", THE (c), c->are ()); } } if (h_see_tile or atk->isLightGenerating ()) { setSpecialEffect (x, y, beam_effect (atk, kOrigin)); drawSq (x, y); } if (shAttack::kLaserBeam == atk->mType or shAttack::kOpticBlast == atk->mType) block = 1; if (c->isHero ()) { if (msg) { if (!c->intr (kBlind)) { I->p (msg, "you"); if (weapon and weapon->isA (kRayGun)) weapon->set (obj::known_type); } else { msg = beamHitsBlindYouMesg (atk); if (msg) I->p ("%s", msg); } } else if (weapon and weapon->mOwner == Hero.cr ()) { if (weapon->isA (kObjHealingRayGun) or weapon->isA (kObjRestorationRayGun) or weapon->isA (kObjStasisRayGun)) { weapon->set (obj::known_type | obj::known_appearance); } } draw (); //I->pauseXY (Hero.mX, Hero.mY); if (c->sufferDamage (atk, attacker, weapon, dbonus, dmul, divider)) { if (attacker == c) { died = -2; } if (atk->mType == shAttack::kDisintegrationRay) { c->die (kAnnihilated, "a disintegration ray"); } else { char deathbuf[50]; if (attacker and !attacker->isHero () and c->isHero ()) { c->resetBlind (); Level->setLit (attacker->mX, attacker->mY, 1, 1, 1, 1); Level->mVisibility [attacker->mX][attacker->mY] = 1; if (attacker->isA (kMonDalek)) { strncpy (deathbuf, AN (attacker), 50); } else { snprintf (deathbuf, 50, "%s's %s", AN (attacker), weapon ? weapon->getShortDescription () : atk->noun ()); } } else { snprintf (deathbuf, 50, "%s %s", isvowel (atk->noun ()[0]) ? "an" : "a", atk->noun ()); } c->die (kSlain, attacker, weapon, atk, deathbuf); } } } else { if (h_see_this or atk->isLightGenerating () or Hero.cr ()->canHearThoughts (c)) { if (msg) { if (h_see_this or atk->isLightGenerating ()) { draw (); } I->p (beamHitsMesg (atk), the_monster); } } if (c->sufferDamage (atk, attacker, weapon, dbonus, dmul, divider)) { if (h_see_this or Hero.cr ()->canHearThoughts (c)) { if (atk->dealsEnergy (kDisintegrating)) { howdead = kAnnihilated; } else if (atk->isPure (kMagnetic)) { howdead = kMisc; } if (atk->mEffect != shAttack::kExtend) c->pDeathMessage (the_monster, howdead); } if (attacker == c) { died = -2; } c->die (howdead, attacker, weapon, atk); } else { /* Creature survived the attack. */ if (attacker and atk->mType != shAttack::kNoAttack and (attacker->isHero () or attacker->isPet ())) { /* Get angry at player or pets unless the attack was harmless. */ c->newEnemy (attacker); } c->interrupt (); } } return died ? -2 : block; } /* static void zapBeamAtCeiling (shCreature *attacker, shAttack *atk, shObject *weapon, int x, int y) */ static void zapBeamAtFloor (shCreature *attacker, shAttack *atk, shObject *weapon, int x, int y) { shObjectVector *v; if (shAttack::kDisintegrationRay == atk->mType) { if (!Level->isInGarbageCompactor (x, y)) { shFeature *f = Level->getFeature (x, y); if (f) Level->removeFeature (f); Level->addTrap (x, y, shFeature::kHole); Level->checkTraps (x, y, 100); } } else if (shAttack::kTransporterRay == atk->mType) { if (Level->noTransport ()) return; v = Level->getObjects (x, y); if (v) { if (weapon) weapon->set (obj::known_type); for (int i = v->count () - 1; i >= 0; --i) { shObject *obj = v->removeByIndex (i); int total_qty = obj->mCount; int unpaid = obj->is (obj::unpaid); int nx, ny; obj->clear (obj::unpaid); while (obj->mCount > 1) { shObject *one = obj->split (1); Level->findLandingSquare (&nx, &ny); Level->putObject (one, nx, ny); } Level->findLandingSquare (&nx, &ny); /* Do check before putting last object since it may get destroyed by landing in acid pit or other such place. */ if (unpaid) { obj->set (obj::unpaid); attacker->usedUpItem (obj, total_qty, "transport"); obj->clear (obj::unpaid); } Level->putObject (obj, nx, ny); } /* Keep in mind objects may land in the original square too. */ if (!v->count ()) { delete v; Level->setObjects (x, y, NULL); } weapon->set (obj::known_type); } shFeature *f = Level->getFeature (x, y); int new_x, new_y; if (!f) { } else if (f->mType == shFeature::kVat) { Level->findSuitableStairSquare (&new_x, &new_y); bool noticed = shFeature::teleportVat (f, attacker, new_x, new_y); if (noticed and weapon and Hero.cr ()->canSee (x, y)) weapon->set (obj::known_type); } else if (f->mType == shFeature::kAcidPit) { Level->findOpenSquare (&new_x, &new_y); bool noticed = shFeature::teleportAcid (f, attacker, new_x, new_y); if (noticed and weapon and Hero.cr ()->canSee (x, y)) weapon->set (obj::known_type); } } else if (shAttack::kGammaRay == atk->mType) { Level->getSquare (x, y)->mFlags |= shSquare::kRadioactive; } else if (shAttack::kDecontaminationRay == atk->mType) { if (!Level->isPermaRadioactive ()) Level->getSquare (x, y)->mFlags &= ~shSquare::kRadioactive; shFeature *f = Level->getFeature (x, y); if (f and f->mType == shFeature::kVat) { f->mVat.mRadioactive = 0; } } bool dig = RNG (100) < atk->dealsEnergy (kDigging); bool disin = RNG (100) < atk->dealsEnergy (kDisintegrating); if (dig or disin) { bool hole = disin; shFeature *f = Level->getFeature (x, y); if (f) { /* TODO */ if (Level->isBottomLevel ()) return; if (f->mType != shFeature::kPit and f->mType != shFeature::kAcidPit and f->mType != shFeature::kSewagePit) return; /* TODO */ Level->removeFeature (f); hole = true; } if (hole) { Level->addTrap (x, y, shFeature::kHole); } else { Level->addTrap (x, y, shFeature::kPit); } f = Level->getFeature (x, y); f->mTrapUnknown = 0; if (Hero.cr ()->canSee (x, y)) { I->p ("%s dig%s a %s.", attacker->the (), attacker->isHero () ? "" : "s", hole ? "hole" : "pit"); } } } static int smartDiscPath (shAttack *attack, shObject *weapon, int *x, int *y, shDirection dir, shCreature *attacker) { while (Level->moveForward (dir, x, y)) { eff::type e = beam_effect (attack, dir); if (e and !Hero.cr ()->intr (kBlind)) { Level->setSpecialEffect (*x, *y, e); Level->drawSq (*x, *y); } if (Level->isOccupied (*x, *y)) { shCreature *c = Level->getCreature (*x, *y); if (c == attacker) { /* Get back to hand. */ if (attacker->addObjectToInventory (weapon, 1)) { if (!attacker->mWeapon) { attacker->wield (weapon, 1); } } else { Level->putObject (weapon, *x, *y); } Level->setSpecialEffect (*x, *y, eff::none); return 0; } if (!c->isFriendly (attacker) or !weapon->isOptimized ()) { int r = attacker->resolveRangedAttack (attack, weapon, 0, c); if (r >= 0 and c->intr (kShielded)) { /* Shields stop discs. */ Level->putObject (weapon, *x, *y); return 0; } } } if (Level->isObstacle (*x, *y)) { break; } if (e) { I->pauseXY (Hero.cr ()->mX, Hero.cr ()->mY, 10); Level->setSpecialEffect (*x, *y, eff::none); } } Level->setSpecialEffect (*x, *y, eff::none); Level->moveForward (uTurn (dir), x, y); return 1; } static int extendAttackHitObstacle (shObject *weapon, shCreature *attacker) { if (weapon->isOptimized () and RNG (4)) { if (attacker->isHero ()) I->p ("Bonk!"); return 0; } if (weapon->mEnhancement == -5) { if (attacker->isHero ()) I->p ("%s breaks!", YOUR (weapon)); attacker->doff (weapon); attacker->removeObjectFromInventory (weapon); delete weapon; if (attacker->isHero () and Hero.mProfession == Yautja) { Level->clearSpecialEffects (); I->p ("THE SACRILEGE!!! Having defiled your honor you take your life."); attacker->die (kSuicide, attacker); return -2; } } else { if (attacker->isHero ()) I->p ("You damaged %s.", YOUR (weapon)); --weapon->mEnhancement; } return 0; } static void explosionMessage (shObject *weapon, int x, int y) { bool seen = Hero.cr ()->canSee (x, y); bool los = Level->existsLOS (Hero.cr ()->mX, Hero.cr ()->mY, x, y); if (los and weapon->mIlkId == kObjFlare) { I->p ("%s lights up.", weapon->the (1)); return; } if (weapon->mIlkId == kObjFlashbang) { I->p ("Poof!"); return; } if (weapon->has_subtype (grenade)) { I->p ("Boom!"); return; } /* Effects that require sight. */ if (!seen) return; } #define leave(x) \ {\ --call_depth;\ if (!call_depth) Level->clearSpecialEffects ();\ return (x);\ } /* returns -2 if attacker dies, 0 otherwise */ int shMapLevel::attackEffect (shAttack *atk, shObject *weapon, int x, int y, shDirection dir, shCreature *attacker, int attackmod, int dbonus /* = 0 */) { static int call_depth = 0; shCreature *hero = Hero.cr (); if (weapon and dir == kOrigin) explosionMessage (weapon, x, y); int u, v; int res; int died = 0; int seen = 0; int firsttarget = 1; shMapLevel *savelev = Level; /* Some area effects may cause hero to fall down a hole. Then any leftover flashy things are not to be drawn. */ /* General rule: affect any features first, then creatures, because the death of a monster might cause an automatic door to close and get blown up, when it shouldn't have been affected. Next affect any objects because most probably you don't want to affect dropped inventories by dead monsters. Creatures go last. */ ++call_depth; shAttack::Effect effect = atk->mEffect; if (effect == shAttack::kFarBurst and dir == kOrigin) effect = shAttack::kBurst; switch (effect) { case shAttack::kOther: /* Something is wrong. */ assert (false); break; case shAttack::kSingle: case shAttack::kFarBurst: { if (kOrigin == dir) { if (!attacker) leave (0); if (attacker->sufferDamage (atk, attacker, weapon, 0, 1)) { attacker->die (kSuicide, attacker); leave (-2); } leave (0); } else if (kUp == dir) { if (attacker and attacker->isHero ()) { if (!ACMETest ()) I->p ("You shoot at the ceiling."); } leave (0); } else if (kDown == dir) { if (attacker and attacker->isHero ()) I->p ("You shoot at %s.", Level->mSquares[x][y].the ()); leave (0); } int timeout = 100; while (Level->moveForward (dir, &x, &y) and --timeout) { eff::type effect = beam_effect (atk, dir); int ef_idx = -1; /* Shrapnel in flight is not drawn. */ if (effect == eff::shrapnel) effect = eff::none; if (effect and !hero->intr (kBlind) and (hero->canSee (x, y) or (atk->isLightGenerating () and existsLOS (hero->mX, hero->mY, x, y)))) { ef_idx = Level->setSpecialEffect (x, y, effect); Level->drawSq (x, y); } if (Level->isOccupied (x, y)) { shCreature *c = Level->getCreature (x, y); int tohitmod = attackmod; if ((attacker and !attacker->isHero ()) and !c->isHero ()) tohitmod -= 8; /* Avoid friendly fire. */ else if (!firsttarget) tohitmod -= 4; firsttarget = 0; if (c->reflectAttack (atk, &dir)) { int idx = Level->setSpecialEffect (x, y, beam_effect (atk, kOrigin)); I->pauseXY (hero->mX, hero->mY, 10); Level->clearSpecialEffect (idx); continue; } int r = attacker->resolveRangedAttack (atk, weapon, tohitmod, Level->getCreature (x, y)); if (r >= 0 and /* Not a piercing attack. */ shAttack::kRail != atk->mType and (shAttack::kSpear != atk->mType or RNG (2))) { int idx = Level->setSpecialEffect (x, y, beam_effect (atk, kOrigin)); I->pauseXY (hero->mX, hero->mY, 10); Level->clearSpecialEffect (idx); break; } } if (Level->isOcclusive (x, y)) { shFeature *f = Level->getFeature (x, y); if (f) { switch (f->mType) { case shFeature::kDoorClosed: if (f->isMagneticallySealed ()) { if (kParticle == atk->mDamage[0].mEnergy) { if (hero->canSee (x, y)) I->p ("The %s bounces off the door!", atk->noun ()); dir = reflectBackDir (dir); int idx = Level->setSpecialEffect (x, y, beam_effect (atk, kOrigin)); I->pauseXY (hero->mX, hero->mY, 10); Level->clearSpecialEffect (idx); continue; } else { if (attacker->isHero () and attacker->canSee (x, y)) I->p ("Your shot hits a force field!"); } break; } if (attacker and weapon and !weapon->isA (kRayGun)) { attacker->shootLock (weapon, atk, f); } break; default: /* TODO: shoot other types of features */ break; } } if (ef_idx != -1) Level->clearSpecialEffect (ef_idx); if (atk->mEffect == shAttack::kFarBurst) { Level->moveForward (uTurn (dir), &x, &y); Level->attackEffect (atk, weapon, x, y, kOrigin, attacker, weapon->mEnhancement); } /* Railgun pierces occlusive features. */ if (!f or atk->mType != shAttack::kRail) break; } if (effect) { if (timeout > 85 or firsttarget or distance (x, y, hero->mX, hero->mY) < 40 or !RNG (5)) { /* trying not to pause too much */ if (effect != eff::shrapnel) I->pauseXY (hero->mX, hero->mY, 5); else I->pauseXY (hero->mX, hero->mY, 175); } if (ef_idx != -1) Level->clearSpecialEffect (ef_idx); } } leave (died); } case shAttack::kBeam: case shAttack::kExtend: { /* Beams disperse somewhat randomly varying their range slightly. */ int range = atk->mRange; if (atk->mEffect == shAttack::kBeam) range += RNG (1, 6); for (int i = range; i > 0; --i) { if (!moveForward (dir, &x, &y)) { break; /* Out of map. */ } if (kUp == dir and attacker and attacker->isHero ()) { if (ACMETest ()) { } else if (atk->mEffect == shAttack::kExtend and weapon) { int res = extendAttackHitObstacle (weapon, attacker); if (res) leave (res); } break; } if (!isFloor (x, y)) { /* Obstacles stop most such attacks. */ if (atk->mType == shAttack::kDisintegrationRay or RNG (100) < atk->dealsEnergy (kDigging)) { Level->dig (x, y); } else { if (attacker and attacker->isHero () and atk->mEffect == shAttack::kExtend and weapon) { int res = extendAttackHitObstacle (weapon, attacker); if (res) leave (res); } break; } } /* Draw beam effect if it can be seen. */ bool seen_segment = false; if (!hero->intr (kBlind) and beam_effect (atk, dir) and kDown != dir and appearsToBeFloor (x, y) and (hero->canSee (x, y) or (atk->isLightGenerating () and existsLOS (hero->mX, hero->mY, x, y)))) { seen_segment = true; shFeature *f = Level->getFeature (x, y); if (f and f->isObstacle ()) setSpecialEffect (x, y, beam_effect (atk, kOrigin)); else setSpecialEffect (x, y, beam_effect (atk, dir)); draw (); seen++; } /* Bounce off creature having reflection? */ shCreature *c = getCreature (x, y); if (c and c->reflectAttack (atk, &dir)) { if (!hero->intr (kBlind)) { setSpecialEffect (x, y, beam_effect (atk, kOrigin)); draw (); seen++; } continue; } /* Bounce off force field or some such feature? */ res = areaEffectFeature (atk, weapon, x, y, dir, attacker); if (res < 0) { dir = reflectBackDir (dir); if (!hero->intr (kBlind)) { setSpecialEffect (x, y, beam_effect (atk, kOrigin)); draw (); seen++; } continue; } else if (res > 0) { if (atk->mEffect == shAttack::kExtend and weapon) { int res = extendAttackHitObstacle (weapon, attacker); if (res) leave (res); } break; } areaEffectObjects (atk, weapon, x, y, attacker); if (atk->mEffect == shAttack::kExtend) { I->pauseXY (hero->mX, hero->mY, 33); if (!hero->intr (kBlind)) { setSpecialEffect (x, y, beam_effect (atk, dir, false)); draw (); } } /* Did we hit that creature in beam path? */ if (c and kDown != dir) { int tohitmod = 0; if (!attacker->isHero () and !c->isHero ()) { tohitmod -= 8; /* Avoid friendly fire. */ } else if (!firsttarget) { tohitmod -= 4; } firsttarget = 0; if (c == attacker and dir == kOrigin) /* Shooting self. */ tohitmod = +100; int what = areaEffectCreature (atk, weapon, x, y, dir, attacker, attackmod + tohitmod, dbonus); if (-2 == what) { died = -2; } else if (1 == what) { break; } } if (kDown == dir) { if (atk->mEffect == shAttack::kExtend and weapon) { int res = extendAttackHitObstacle (weapon, attacker); if (res) leave (res); } else { zapBeamAtFloor (attacker, atk, weapon, x, y); } break; } if (kOrigin == dir or kNoDirection == dir or kUp == dir) { break; } extern bool draw_corners (shMapLevel *, shAttack *, shDirection, int, int); if (seen_segment and draw_corners (this, atk, dir, x, y)) draw (); } if (seen) { if (Level == savelev and kDead != hero->mState) { int times100 = 0; draw (); if (atk->mEffect == shAttack::kBeam) { times100 = 3; } else if (atk->mEffect == shAttack::kExtend) { /* no additional delay */ } for (int i = 0; i < times100; ++i) { draw (); I->pauseXY (hero->mX, hero->mY, 90); } } if (!call_depth) savelev->clearSpecialEffects (); draw (); } leave (died); } /* Radius means how many squares to travel before widening. */ /* kCone area effect attack picture for * radius = 2 range = 7 * * gggg * gfff * gfeee * gfedd * edcc g * cb efg * a cdefg * @abcdefg * cdefg * efg * g */ case shAttack::kCone: { struct shFlameTongue { int x; int y; int present; } flame[20]; int flames = 1; flame[0].x = x; flame[0].y = y; flame[0].present = 1; /* Cones directed at self, ceiling and floor. */ eff::type eff = beam_effect(atk, dir); if (dir == kOrigin) { died = areaEffectCreature (atk, weapon, x, y, dir, attacker, dbonus); setSpecialEffect (x, y, eff); draw (); seen++; } else if (dir == kUp) { if (attacker and attacker->isHero ()) ACMETest (); setSpecialEffect (x, y, eff); draw (); seen++; } else if (dir == kDown) { areaEffectFeature (atk, weapon, x, y, dir, attacker); areaEffectObjects (atk, weapon, x, y, attacker); /* Generic case. */ } else for (int r = 0; r < atk->mRange; ++r) { if (r % atk->mRadius == 0 and r != 0) { /* Widen cone. */ /* Only middle stream may expand. */ if (flame[0].present) { flame[flames].x = flame[0].x; flame[flames].y = flame[0].y; flame[flames++].present = 1; flame[flames].x = flame[0].x; flame[flames].y = flame[0].y; flame[flames++].present = 1; } } /* Process all flames. */ for (int fl = 0; fl < flames; ++fl) { shDirection newdir; /* Turn to side? */ if (r % atk->mRadius == 0 and r != 0 and fl != 0) { newdir = fl % 2 ? leftTurn (dir) : rightTurn (dir); } else { /* Or push forward. */ newdir = dir; } if (flame[fl].present and moveForward (newdir, &flame[fl].x, &flame[fl].y)) { if (!isFloor (flame[fl].x, flame[fl].y)) { /* Hit obstacle. */ flame[fl].present = 0; continue; } if (!hero->intr (kBlind) and appearsToBeFloor (flame[fl].x, flame[fl].y) and (hero->canSee (flame[fl].x, flame[fl].y) or atk->isLightGenerating ())) { eff = beam_effect(atk, newdir); setSpecialEffect (flame[fl].x, flame[fl].y, eff); draw (); seen++; } int feature_blocks = areaEffectFeature (atk, weapon, flame[fl].x, flame[fl].y, dir, attacker); areaEffectObjects (atk, weapon, flame[fl].x, flame[fl].y, attacker); int creature_blocks = areaEffectCreature (atk, weapon, flame[fl].x, flame[fl].y, dir, attacker, dbonus); /* Flame tongue might be blocked or absorbed. */ flame[fl].present = !feature_blocks and !creature_blocks; } else { /* Hit map bound. */ flame[fl].present = 0; } } } if (seen and kDead != hero->mState and effectsInEffect ()) { for (int i = 0; i < 6; ++i) { draw (); I->pauseXY (hero->mX, hero->mY, 50); } if (!call_depth) clearSpecialEffects (); draw (); } leave (died); } case shAttack::kBurst: { bool disintegrating = atk->dealsEnergy (kDisintegrating); for (u = x - atk->mRadius; u <= x + atk->mRadius; u++) { for (v = y - atk->mRadius; v <= y + atk->mRadius; v++) { if (isInBounds (u, v) and distance (u, v, x, y) <= 5 * atk->mRadius + 2 /* Only flares and antimatter affect walls. */ and (isFloor (u, v) or (weapon and weapon->isA (kObjFlare)) or disintegrating) and (existsLOS (x, y, u, v) or disintegrating)) { if (disintegrating and !isFloor (u, v)) dig (u, v); if (!hero->intr (kBlind) and appearsToBeFloor (u, v) and (hero->canSee (u, v) or atk->isLightGenerating ())) { eff::type eff = beam_effect(atk, kNoDirection); setSpecialEffect (u, v, eff); draw (); seen++; } shDirection vdir = vectorDirection (x, y, u, v); areaEffectFeature (atk, weapon, u, v, vdir, attacker); } } } for (u = x - atk->mRadius; u <= x + atk->mRadius; u++) { for (v = y - atk->mRadius; v <= y + atk->mRadius; v++) { if (isInBounds (u, v) and distance (u, v, x, y) <= 5 * atk->mRadius + 2 and (existsLOS (x, y, u, v) or disintegrating)) { areaEffectObjects (atk, weapon, u, v, attacker); shDirection vdir = vectorDirection (x, y, u, v); if (-2 == areaEffectCreature (atk, weapon, u, v, vdir, attacker, dbonus)) { died = -2; } } } } if (seen and kDead != hero->mState) { /* Do not move effectsInEffect check to outer conditional check because nested calling (a chain of explosions) may disable this and prevent identification of grenades! -- MB */ if (effectsInEffect ()) { for (int i = 0; i < 6; ++i) { draw (); I->pauseXY (hero->mX, hero->mY, 50); } } /* Was the item causing explosion a grenade/canister? */ if (weapon and weapon->myIlk ()->mMissileAttack) { weapon->set (obj::known_type); } if (!call_depth) clearSpecialEffects (); draw (); } leave (died); } case shAttack::kSmartDisc: { int start_x = x, start_y = y; int thrwr_x = attacker ? attacker->mX : x; int thrwr_y = attacker ? attacker->mY : y; if (kOrigin == dir or kUp == dir) { if (attacker->isHero ()) { if (kOrigin == dir) { I->p ("You toss the disc from hand to hand."); } else if (!ACMETest ()) { I->p ("You throw the disc up and catch it as it falls."); } } if (attacker->addObjectToInventory (weapon)) { if (!attacker->mWeapon) { attacker->wield (weapon, 1); } } else { Level->putObject (weapon, x, y); } leave (0); } else if (kDown == dir) { Level->putObject (weapon, x, y); leave (0); } /* First phase: fly forward until obstacle is hit. */ if (!smartDiscPath (atk, weapon, &x, &y, dir, attacker)) leave (0); if (x == start_x and y == start_y) { /* Immediately hit a wall. */ Level->putObject (weapon, x, y); leave (0); } /* Second phase: determine direction to bounce. */ int bnc_x = x, bnc_y = y; struct shScoreDir { int pts; shDirection dir; } score[8]; for (int i = 0; i < 8; ++i) { score[i].pts = 0; score[i].dir = (shDirection) i; if (i == dir or i == uTurn (dir) or i == leftTurn (dir) or i == rightTurn (dir)) { continue; } x = bnc_x; y = bnc_y; /* Check chosen direction. */ while (Level->moveForward ((shDirection) i, &x, &y)) { if (Level->isOccupied (x, y)) { shCreature *c = Level->getCreature (x, y); if (!c->isFriendly (attacker) or !weapon->isOptimized ()) { score[i].pts += 2; /* Count targets on this line. */ } } if (Level->isOcclusive (x, y)) { break; } } Level->moveForward (uTurn (i), &x, &y); /* Can thrower be reached from this point? */ shDirection ricochet = linedUpDirection (x, y, thrwr_x, thrwr_y); if (ricochet != kNoDirection and ricochet != uTurn (dir) and existsLOS (x, y, start_x, start_y)) /* No obstacles? */ { /* That plus one will matter when someone throws disc into empty area for practice or toying around. */ score[i].pts = score[i].pts * 100 + 1; } } x = bnc_x; y = bnc_y; /* Third phase: choose direction. */ shuffle (score, 8, sizeof (shScoreDir)); /* Break ties randomly. */ int best = 0; for (int i = 1; i < 8; ++i) { if (score[i].pts > score[best].pts) best = i; } if (!score[best].pts) { /* Thud! No enemies or way to return found. */ Level->putObject (weapon, x, y); break; } dir = score[best].dir; /* Fourth phase: fly next part. */ if (attacker->isHero () or hero->canSee (x, y)) weapon->set (obj::known_type); /* Saw disc bounce and continue flight. */ if (!smartDiscPath (atk, weapon, &x, &y, dir, attacker)) leave (0); /* Fifth phase: fly until point of origin is reached if possible. */ if ((dir = linedUpDirection (x, y, thrwr_x, thrwr_y)) != kNoDirection) { if (smartDiscPath (atk, weapon, &x, &y, dir, attacker)) Level->putObject (weapon, x, y); } else { Level->putObject (weapon, x, y); } break; } } leave (0); } #undef leave
fee84a630923f212971338857f4c0f6a279c238d
55ea622a6475d7fa5636914b6a90f4231204f4d3
/src/include/flowData.hpp
814520e7a167719b1c96ab453d3b34d4490049de
[]
no_license
pontikos/flowWorkspace
16c8f33a202fc2d2e1ec7408f991fc8c1384d5ef
607db43929a8a4afc1c78b12ca82522149c794cc
refs/heads/master
2020-05-02T06:18:40.147598
2014-04-15T20:50:08
2014-04-15T20:50:08
null
0
0
null
null
null
null
UTF-8
C++
false
false
2,960
hpp
/* * flowData.hpp * * Created on: Apr 13, 2012 * Author: wjiang2 */ #ifndef FLOWDATA_HPP_ #define FLOWDATA_HPP_ #include <vector> #include <iostream> #include <string> #include <valarray> #include <stdexcept> #include <Rcpp.h> using namespace std; using namespace Rcpp; #include <boost/config.hpp> #include <boost/archive/tmpdir.hpp> #include <boost/archive/text_iarchive.hpp> #include <boost/archive/text_oarchive.hpp> #include <boost/archive/binary_iarchive.hpp> #include <boost/archive/binary_oarchive.hpp> #include <boost/archive/xml_iarchive.hpp> #include <boost/archive/xml_oarchive.hpp> #include <boost/serialization/scoped_ptr.hpp> #include <boost/serialization/base_object.hpp> #include <boost/serialization/utility.hpp> #include <boost/serialization/list.hpp> #include <boost/serialization/map.hpp> #include <boost/serialization/vector.hpp> #include <boost/serialization/valarray.hpp> #include <boost/graph/adj_list_serialize.hpp> #include <boost/serialization/assume_abstract.hpp> #include <boost/serialization/split_member.hpp> #include <boost/serialization/version.hpp> #include <boost/serialization/split_member.hpp> #include <boost/algorithm/string.hpp> /* * representing one FCS data * currently used as a transient copy of flow data (passed from R) * resource is released once the gating is done */ class flowData{ friend std::ostream & operator<<(std::ostream &os, const flowData &fdata); friend class boost::serialization::access; private: vector<string> params; unsigned sampleID;//it is only valid when access cdf version of flowdata, used as index for sample dimension valarray<double> data; unsigned nEvents; bool ignore_case; //whether channel-searching is case sensitive template<class Archive> void serialize(Archive &ar, const unsigned int version) { ar & BOOST_SERIALIZATION_NVP(params); ar & BOOST_SERIALIZATION_NVP(sampleID); ar & BOOST_SERIALIZATION_NVP(data); ar & BOOST_SERIALIZATION_NVP(nEvents); } public: flowData & operator=(const flowData& source);//explicitly define the copy assignment since the default one is compiler-specific flowData(); flowData(const double* mat,vector<string>,unsigned _nEvents,unsigned _sampleID, bool _ignore_case = false); flowData(NumericMatrix mat,unsigned _sampleID, bool _ignore_case=false); slice getSlice(string channel); void updateSlice(string channel,valarray<double> x); valarray<double> subset(string channel); /* * accessors */ void setParams(vector<string> _params); vector<string> getParams(){return params;}; void setEventCount(unsigned _nEvents){nEvents=_nEvents;}; unsigned getEventsCount(){return nEvents;}; void setSampleID(unsigned _sampleID){sampleID=_sampleID;}; unsigned getSampleID(){return sampleID;}; void clear(){data.resize(0);}; unsigned dataSize(){return data.size();}; void getData(double * mat,unsigned nSize); valarray<double> getData(); }; #endif /* FLOWDATA_HPP_ */
[ "m.jiang@bc3139a8-67e5-0310-9ffc-ced21a209358" ]
m.jiang@bc3139a8-67e5-0310-9ffc-ced21a209358
1ff94aacb032dcf5eda5890f0f3cdf421f33bf11
e90bb6a20665f2b875e047f12bd05839c2396c5d
/blasius_laminar_github/3.5/U
161b51020bfca587273eb7bab8e2fc8f74414d26
[]
no_license
fluidko/laminar_BL_OpenFOAM
5dabd283090720211ef819367bd92109df068105
c3e0bf11355d723ed47a3712e121d48edb4e8c92
refs/heads/master
2023-03-16T14:30:33.059718
2020-06-16T01:59:58
2020-06-16T01:59:58
null
0
0
null
null
null
null
UTF-8
C++
false
false
227,760
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: v1906 | | \\ / A nd | Web: www.OpenFOAM.com | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class volVectorField; location "3.5"; object U; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [0 1 -1 0 0 0 0]; internalField nonuniform List<vector> 9600 ( (0.816992 -0.0041712 0) (1.18403 0.0058952 0) (0.872103 0.00562676 0) (1.0689 -0.00217395 0) (0.839738 -0.0163403 0) (1.19004 -0.0131927 0) (0.961717 -0.00187414 0) (1.10739 0.0121336 0) (0.935662 0.0154903 0) (1.05107 0.000876439 0) (0.88064 0.00233269 0) (1.0716 -0.0176272 0) (0.854205 -0.0114838 0) (1.1061 -0.0166524 0) (0.843401 -0.0161356 0) (1.1395 -0.0132331 0) (0.862293 -0.0144856 0) (1.14391 -0.00584749 0) (0.872506 -0.00247655 0) (1.13599 0.00442779 0) (0.83012 -0.00427579 0) (1.17288 0.00562455 0) (0.89105 0.0063802 0) (1.05425 -0.0016639 0) (0.860359 -0.0178826 0) (1.16925 -0.0143452 0) (0.972515 -0.00111372 0) (1.09485 0.0125319 0) (0.953047 0.0159246 0) (1.03223 0.00202418 0) (0.915762 0.00172846 0) (1.03746 -0.0168454 0) (0.900881 -0.0124715 0) (1.05582 -0.0162142 0) (0.905049 -0.0170921 0) (1.07496 -0.0138317 0) (0.940064 -0.0143627 0) (1.06113 -0.00670662 0) (0.976364 -0.00122956 0) (1.01693 0.00319444 0) (0.854332 -0.00439654 0) (1.14862 0.00536474 0) (0.921308 0.00720116 0) (1.03435 -0.00133743 0) (0.88928 -0.0190127 0) (1.13305 -0.0152326 0) (0.992832 -0.00052671 0) (1.07147 0.0129551 0) (0.97645 0.0166691 0) (1.01514 0.00245702 0) (0.952132 0.00162397 0) (1.01341 -0.0165762 0) (0.945665 -0.0128269 0) (1.01665 -0.0163867 0) (0.958373 -0.0174097 0) (1.02492 -0.01462 0) (0.990164 -0.0139939 0) (1.0161 -0.0076001 0) (1.00804 -0.000363361 0) (1.00125 0.00399711 0) (0.885674 -0.00447519 0) (1.11478 0.0050414 0) (0.952404 0.007921 0) (1.01596 -0.00099472 0) (0.919032 -0.019888 0) (1.0898 -0.0161243 0) (1.01289 -3.83033e-06 0) (1.04835 0.0132879 0) (0.994867 0.0172437 0) (1.00786 0.00275247 0) (0.977932 0.00162593 0) (1.00333 -0.0164062 0) (0.972287 -0.0128369 0) (0.998579 -0.0166839 0) (0.982932 -0.0174187 0) (1.00432 -0.0153596 0) (1.00363 -0.0138587 0) (1.00714 -0.00792296 0) (1.00857 -0.000207525 0) (1.00666 0.00499874 0) (0.91854 -0.00450767 0) (1.07803 0.0046539 0) (0.977239 0.00854928 0) (1.00406 -0.000645108 0) (0.943727 -0.0204834 0) (1.0496 -0.0170128 0) (1.02432 0.000289107 0) (1.03293 0.0135747 0) (1.00655 0.0176191 0) (1.00904 0.002982 0) (0.994045 0.00168416 0) (1.00325 -0.0161928 0) (0.985283 -0.0127448 0) (0.993819 -0.0168936 0) (0.990578 -0.0174111 0) (0.998074 -0.0159105 0) (1.00307 -0.0138355 0) (1.00515 -0.0081164 0) (1.00636 -0.000213166 0) (1.00698 0.00572358 0) (0.947588 -0.00449743 0) (1.04529 0.00429347 0) (0.99331 0.00902027 0) (1.00008 -0.000314784 0) (0.961824 -0.0207884 0) (1.01902 -0.0178092 0) (1.02533 0.000323658 0) (1.02502 0.0138328 0) (1.01409 0.0178363 0) (1.01411 0.00315839 0) (1.00457 0.00177812 0) (1.00716 -0.0159071 0) (0.992173 -0.0125757 0) (0.993773 -0.016985 0) (0.992629 -0.0173905 0) (0.995372 -0.0162588 0) (0.999856 -0.0138833 0) (1.00153 -0.00834542 0) (1.00359 -0.000280762 0) (1.00441 0.00623377 0) (0.969519 -0.00444946 0) (1.02095 0.0040086 0) (1.00179 0.0092801 0) (1.00205 -1.63938e-05 0) (0.974754 -0.0208281 0) (0.999384 -0.018441 0) (1.01895 0.000133254 0) (1.02073 0.0139799 0) (1.01935 0.0179025 0) (1.01947 0.00329676 0) (1.01193 0.00190113 0) (1.01146 -0.0155529 0) (0.99677 -0.0123172 0) (0.994905 -0.0169861 0) (0.993362 -0.0173003 0) (0.993453 -0.0164661 0) (0.996558 -0.0139756 0) (0.997192 -0.00847201 0) (0.999544 -0.000417451 0) (1.00075 0.00658504 0) (0.983699 -0.00437595 0) (1.00585 0.00379875 0) (1.00546 0.0093382 0) (1.00667 0.000233885 0) (0.984445 -0.0206512 0) (0.988555 -0.0188815 0) (1.00945 -0.000221857 0) (1.01693 0.0139372 0) (1.02262 0.0178301 0) (1.02317 0.00341117 0) (1.01688 0.00204205 0) (1.0147 -0.0151371 0) (1.00022 -0.0119993 0) (0.996275 -0.0168954 0) (0.993799 -0.0171377 0) (0.992029 -0.0165652 0) (0.993568 -0.0140351 0) (0.993174 -0.00846217 0) (0.995074 -0.000626652 0) (0.99663 0.00681007 0) (0.991546 -0.00428927 0) (0.9981 0.00364139 0) (1.00684 0.00924572 0) (1.01123 0.000418895 0) (0.992038 -0.0203158 0) (0.983547 -0.0191271 0) (1.00006 -0.000653643 0) (1.01249 0.0136967 0) (1.02369 0.0176406 0) (1.02454 0.00349966 0) (1.01964 0.00218806 0) (1.01652 -0.0146806 0) (1.00275 -0.0116562 0) (0.997613 -0.0167117 0) (0.994192 -0.0169371 0) (0.991048 -0.0165319 0) (0.991049 -0.0140401 0) (0.989743 -0.00836928 0) (0.991024 -0.000900786 0) (0.992707 0.00697212 0) (0.995302 -0.00419737 0) (0.994901 0.00351249 0) (1.00729 0.00905428 0) (1.01434 0.000545333 0) (0.997914 -0.019877 0) (0.981975 -0.0191902 0) (0.992428 -0.00108195 0) (1.00761 0.0133028 0) (1.02275 0.0173573 0) (1.02382 0.00355389 0) (1.02051 0.00232092 0) (1.01709 -0.0142069 0) (1.00444 -0.0113164 0) (0.998788 -0.0164475 0) (0.994631 -0.016716 0) (0.99046 -0.0163506 0) (0.989101 -0.0140191 0) (0.986949 -0.00820243 0) (0.987733 -0.00117797 0) (0.989468 0.00707274 0) (0.996966 -0.00410394 0) (0.993914 0.00339377 0) (1.00724 0.00881048 0) (1.01578 0.000621805 0) (1.0022 -0.0193806 0) (0.982282 -0.0191014 0) (0.987056 -0.00146351 0) (1.00287 0.0128111 0) (1.02038 0.0170032 0) (1.02172 0.00357292 0) (1.01997 0.00242315 0) (1.01676 -0.0137328 0) (1.00539 -0.0110054 0) (0.999717 -0.0161177 0) (0.995128 -0.01648 0) (0.99022 -0.0160421 0) (0.987761 -0.0139812 0) (0.984827 -0.00794906 0) (0.985239 -0.00137651 0) (0.987034 0.007064 0) (0.997797 -0.00401091 0) (0.993753 0.00327924 0) (1.00679 0.00854646 0) (1.01593 0.000647173 0) (1.0051 -0.0188612 0) (0.983502 -0.0188956 0) (0.983752 -0.00177721 0) (0.998752 0.0122687 0) (1.0173 0.0165991 0) (1.019 0.00355667 0) (1.01858 0.00248356 0) (1.01595 -0.0132663 0) (1.00575 -0.0107407 0) (1.00035 -0.0157345 0) (0.995637 -0.0162465 0) (0.990255 -0.0156277 0) (0.987003 -0.0139022 0) (0.983377 -0.00764006 0) (0.98347 -0.00155217 0) (0.985286 0.00690853 0) (0.998367 -0.00391934 0) (0.993806 0.00317146 0) (1.00608 0.008276 0) (1.01535 0.000632427 0) (1.00689 -0.0183389 0) (0.98504 -0.0186072 0) (0.982028 -0.00201703 0) (0.995453 0.0117133 0) (1.0141 0.0161605 0) (1.01625 0.00351051 0) (1.0168 0.00249793 0) (1.01496 -0.0128085 0) (1.00572 -0.0105287 0) (1.0007 -0.0153076 0) (0.996101 -0.0160304 0) (0.990457 -0.0151297 0) (0.986735 -0.0137688 0) (0.98253 -0.00730794 0) (0.982309 -0.00167457 0) (0.984042 0.00662237 0) (0.998842 -0.00382906 0) (0.993882 0.00307178 0) (1.00529 0.0080066 0) (1.01447 0.000586263 0) (1.0079 -0.0178223 0) (0.986548 -0.0182649 0) (0.981354 -0.00218803 0) (0.992959 0.0111696 0) (1.01113 0.0156971 0) (1.0138 0.00343961 0) (1.01499 0.00246386 0) (1.01398 -0.0123573 0) (1.0055 -0.0103674 0) (1.00079 -0.0148456 0) (0.996485 -0.015835 0) (0.990716 -0.0145728 0) (0.986817 -0.0135763 0) (0.982165 -0.00698616 0) (0.981624 -0.00166562 0) (0.983154 0.00624735 0) (0.999236 -0.00373968 0) (0.993949 0.00297991 0) (1.0046 0.00774156 0) (1.01358 0.000515642 0) (1.00839 -0.0173142 0) (0.987857 -0.0178865 0) (0.981294 -0.00229779 0) (0.991149 0.010649 0) (1.00859 0.0152133 0) (1.01175 0.00335013 0) (1.01336 0.00238135 0) (1.01311 -0.0119087 0) (1.00523 -0.0102479 0) (1.00071 -0.0143572 0) (0.996784 -0.0156537 0) (0.99096 -0.0139789 0) (0.987104 -0.0133271 0) (0.982151 -0.00668158 0) (0.981295 -0.00152682 0) (0.982553 0.00582706 0) (0.999539 -0.00365052 0) (0.994018 0.00289414 0) (1.00408 0.00748082 0) (1.01278 0.000426878 0) (1.00853 -0.0168125 0) (0.988908 -0.017485 0) (0.98156 -0.00235697 0) (0.989901 0.0101538 0) (1.00656 0.01471 0) (1.01014 0.00324585 0) (1.012 0.00225522 0) (1.01236 -0.0114575 0) (1.005 -0.0101668 0) (1.00053 -0.013839 0) (0.997008 -0.0154864 0) (0.991165 -0.0133758 0) (0.987479 -0.0129939 0) (0.982376 -0.00640889 0) (0.981226 -0.00128481 0) (0.982215 0.00540768 0) (0.999755 -0.00356088 0) (0.994102 0.00281161 0) (1.00372 0.00722341 0) (1.01209 0.000324906 0) (1.00847 -0.0163142 0) (0.989717 -0.0170692 0) (0.981989 -0.00237766 0) (0.989127 0.00968227 0) (1.00504 0.014187 0) (1.00893 0.00313151 0) (1.01094 0.00208984 0) (1.01173 -0.0109968 0) (1.00481 -0.0101151 0) (1.00029 -0.0133024 0) (0.997169 -0.0153146 0) (0.99134 -0.0127886 0) (0.98787 -0.0125659 0) (0.98276 -0.00618958 0) (0.981359 -0.000963768 0) (0.98214 0.00502929 0) (0.999894 -0.00347013 0) (0.994212 0.00272938 0) (1.0035 0.00696843 0) (1.01151 0.00021379 0) (1.00828 -0.0158165 0) (0.990334 -0.0166429 0) (0.982497 -0.00237374 0) (0.988754 0.00923018 0) (1.00399 0.0136436 0) (1.00806 0.00301666 0) (1.01013 0.0018896 0) (1.0112 -0.0105282 0) (1.00468 -0.0100739 0) (1.00005 -0.0127616 0) (0.997279 -0.015121 0) (0.991503 -0.0122334 0) (0.988242 -0.0120656 0) (0.983258 -0.00600487 0) (0.981656 -0.000614712 0) (0.982309 0.00472027 0) (0.99997 -0.00337797 0) (0.994354 0.0026456 0) (1.00334 0.00671467 0) (1.01103 9.69701e-05 0) (1.00802 -0.0153171 0) (0.990825 -0.0162094 0) (0.983041 -0.00235387 0) (0.988705 0.00879043 0) (1.0033 0.0130788 0) (1.00745 0.00290402 0) (1.0095 0.00166292 0) (1.01075 -0.010051 0) (1.00458 -0.0100442 0) (0.999832 -0.0122107 0) (0.997348 -0.0148945 0) (0.991673 -0.0117289 0) (0.988584 -0.0114939 0) (0.983832 -0.00586533 0) (0.982085 -0.000261634 0) (0.982686 0.0044953 0) (0.999991 -0.00328436 0) (0.994535 0.00255943 0) (1.00322 0.00646123 0) (1.01061 -2.30462e-05 0) (1.0077 -0.0148149 0) (0.991249 -0.0157687 0) (0.983599 -0.00232726 0) (0.98889 0.00835936 0) (1.00285 0.012493 0) (1.00701 0.00279608 0) (1.00898 0.00141501 0) (1.01034 -0.00956733 0) (1.00448 -0.0100157 0) (0.999632 -0.0116658 0) (0.997384 -0.014619 0) (0.991866 -0.0112835 0) (0.988899 -0.0108515 0) (0.984462 -0.00575299 0) (0.982615 7.02987e-05 0) (0.983208 0.00436245 0) (0.999965 -0.00318926 0) (0.994753 0.00247046 0) (1.00309 0.00620776 0) (1.01025 -0.000143894 0) (1.00736 -0.0143106 0) (0.991651 -0.0153193 0) (0.984156 -0.00230261 0) (0.989228 0.00793685 0) (1.00255 0.0118894 0) (1.00668 0.00269604 0) (1.0085 0.00115592 0) (1.00997 -0.00908604 0) (1.00438 -0.00997044 0) (0.999456 -0.0111413 0) (0.997394 -0.0142863 0) (0.992091 -0.0108867 0) (0.989194 -0.0101694 0) (0.985127 -0.00562826 0) (0.983217 0.000315003 0) (0.983818 0.00430985 0) (0.9999 -0.00309331 0) (0.995006 0.00237973 0) (1.00294 0.00595329 0) (1.00993 -0.000263054 0) (1.00699 -0.0138049 0) (0.992053 -0.0148622 0) (0.984708 -0.0022831 0) (0.989653 0.00752367 0) (1.00231 0.0112695 0) (1.0064 0.00260244 0) (1.00803 0.000892798 0) (1.0096 -0.00861308 0) (1.00426 -0.00990164 0) (0.999299 -0.010637 0) (0.997384 -0.0138899 0) (0.99235 -0.010535 0) (0.989479 -0.00947717 0) (0.985811 -0.00547507 0) (0.983867 0.000475953 0) (0.984465 0.00431173 0) (0.999808 -0.00299621 0) (0.995284 0.00228709 0) (1.00278 0.00569638 0) (1.00962 -0.000380221 0) (1.00661 -0.0132992 0) (0.992461 -0.0143961 0) (0.985254 -0.00227174 0) (0.99012 0.00711858 0) (1.00209 0.0106381 0) (1.00613 0.00251435 0) (1.00757 0.000628239 0) (1.00924 -0.00815347 0) (1.00414 -0.0098014 0) (0.999156 -0.0101595 0) (0.997358 -0.0134397 0) (0.992642 -0.0102202 0) (0.989762 -0.00878347 0) (0.986499 -0.00528111 0) (0.984551 0.000557712 0) (0.985118 0.00434113 0) (0.999703 -0.00289796 0) (0.995573 0.00219327 0) (1.0026 0.00543575 0) (1.00932 -0.00049335 0) (1.00622 -0.0127967 0) (0.992871 -0.0139209 0) (0.9858 -0.00226751 0) (0.990603 0.00672011 0) (1.00188 0.0099967 0) (1.00587 0.00242415 0) (1.0071 0.000376666 0) (1.00887 -0.00771536 0) (1.00401 -0.00966995 0) (0.999023 -0.00971313 0) (0.997319 -0.0129363 0) (0.992962 -0.00993089 0) (0.99005 -0.00810745 0) (0.987177 -0.00505768 0) (0.98526 0.000564929 0) (0.985763 0.00436989 0) (0.999599 -0.00280013 0) (0.99586 0.00210117 0) (1.00244 0.00517091 0) (1.00902 -0.00059943 0) (1.00584 -0.0122998 0) (0.993273 -0.0134363 0) (0.986351 -0.0022712 0) (0.991083 0.00633009 0) (1.00168 0.00934996 0) (1.0056 0.00232738 0) (1.00665 0.000141713 0) (1.00849 -0.00730066 0) (1.00388 -0.00951063 0) (0.998898 -0.00929216 0) (0.997273 -0.0123827 0) (0.993301 -0.00965625 0) (0.990352 -0.00746301 0) (0.987832 -0.00479702 0) (0.985992 0.000515572 0) (0.986395 0.00438466 0) (0.99951 -0.00270194 0) (0.996132 0.00201072 0) (1.00228 0.00490056 0) (1.00871 -0.000698903 0) (1.00547 -0.0118086 0) (0.99366 -0.0129445 0) (0.986912 -0.00228274 0) (0.99155 0.00594599 0) (1.0015 0.00871021 0) (1.00532 0.00222467 0) (1.0062 -7.79011e-05 0) (1.0081 -0.00690568 0) (1.00376 -0.00932111 0) (0.998783 -0.00889516 0) (0.997225 -0.0117873 0) (0.993652 -0.0093904 0) (0.990672 -0.00685478 0) (0.988457 -0.00448347 0) (0.98674 0.000422508 0) (0.987018 0.00437966 0) (0.999442 -0.00260338 0) (0.996383 0.00192252 0) (1.00215 0.00462304 0) (1.00837 -0.000790047 0) (1.00513 -0.0113237 0) (0.994027 -0.0124479 0) (0.987485 -0.0023033 0) (0.991998 0.00556239 0) (1.00133 0.00807622 0) (1.00502 0.00211227 0) (1.00578 -0.000274719 0) (1.00769 -0.00653413 0) (1.00364 -0.00909963 0) (0.998677 -0.00851562 0) (0.997177 -0.0111649 0) (0.994011 -0.00911513 0) (0.99102 -0.00630214 0) (0.989042 -0.00412328 0) (0.987497 0.000289035 0) (0.98764 0.00433214 0) (0.999399 -0.00250558 0) (0.996608 0.0018386 0) (1.00203 0.00433958 0) (1.00802 -0.000874038 0) (1.0048 -0.0108473 0) (0.994376 -0.011944 0) (0.988068 -0.00232732 0) (0.992424 0.0051779 0) (1.00118 0.00744786 0) (1.00472 0.00198683 0) (1.00537 -0.000450164 0) (1.00727 -0.00618826 0) (1.00353 -0.00884733 0) (0.998582 -0.00814989 0) (0.99713 -0.0105238 0) (0.99437 -0.00882329 0) (0.991396 -0.00580983 0) (0.989588 -0.00372573 0) (0.988251 0.000139806 0) (0.988274 0.00420512 0) (0.999379 -0.00240838 0) (0.996811 0.00175943 0) (1.00193 0.00405161 0) (1.00765 -0.000953019 0) (1.00449 -0.010378 0) (0.994708 -0.0114381 0) (0.98866 -0.00234774 0) (0.99283 0.00479147 0) (1.00105 0.00683327 0) (1.00441 0.00184998 0) (1.00497 -0.000606618 0) (1.00685 -0.00586559 0) (1.00342 -0.00857276 0) (0.9985 -0.00780061 0) (0.997083 -0.009866 0) (0.994728 -0.00850943 0) (0.991804 -0.00537639 0) (0.990096 -0.00330629 0) (0.988986 1.49832e-05 0) (0.988933 0.00397348 0) (0.999376 -0.0023115 0) (0.996995 0.00168444 0) (1.00184 0.00375957 0) (1.00728 -0.00102362 0) (1.0042 -0.00991514 0) (0.995028 -0.010941 0) (0.989257 -0.00236384 0) (0.993219 0.00440636 0) (1.00092 0.00623063 0) (1.00409 0.00170354 0) (1.00458 -0.000741531 0) (1.00642 -0.00556497 0) (1.00331 -0.00827895 0) (0.998432 -0.00746277 0) (0.997036 -0.00919783 0) (0.995078 -0.00816914 0) (0.992241 -0.00500879 0) (0.990574 -0.00288269 0) (0.989683 -4.10007e-05 0) (0.989618 0.00365119 0) (0.999386 -0.00221566 0) (0.997166 0.00161393 0) (1.00175 0.00346644 0) (1.0069 -0.0010923 0) (1.00392 -0.00945425 0) (0.995337 -0.0104572 0) (0.989855 -0.00236923 0) (0.993593 0.0040247 0) (1.00081 0.00563974 0) (1.00378 0.00154499 0) (1.0042 -0.000854809 0) (1.00599 -0.00528165 0) (1.00319 -0.00796824 0) (0.99838 -0.0071317 0) (0.996988 -0.00853315 0) (0.995415 -0.00779484 0) (0.992706 -0.00469575 0) (0.991036 -0.00248151 0) (0.990329 -1.67809e-05 0) (0.990316 0.00328686 0) (0.999403 -0.0021207 0) (0.997327 0.00154726 0) (1.00167 0.0031734 0) (1.00652 -0.00116189 0) (1.00364 -0.00898987 0) (0.995637 -0.00998974 0) (0.99045 -0.00237327 0) (0.993953 0.00364707 0) (1.0007 0.00506299 0) (1.00347 0.00137937 0) (1.00383 -0.000939343 0) (1.00557 -0.00500979 0) (1.00306 -0.00764497 0) (0.998345 -0.00680351 0) (0.996939 -0.00788288 0) (0.995732 -0.00739146 0) (0.993192 -0.00441378 0) (0.991493 -0.00211696 0) (0.99092 7.5015e-05 0) (0.991005 0.00294714 0) (0.999425 -0.00202488 0) (0.997481 0.00147899 0) (1.00159 0.00288705 0) (1.00614 -0.00123499 0) (1.00336 -0.00852397 0) (0.995929 -0.0095391 0) (0.991037 -0.00237218 0) (0.9943 0.00327911 0) (1.0006 0.00449271 0) (1.00317 0.00119794 0) (1.00347 -0.00100269 0) (1.00514 -0.00474915 0) (1.00294 -0.0073217 0) (0.998329 -0.00647718 0) (0.996891 -0.00724743 0) (0.996029 -0.00697169 0) (0.993694 -0.00415462 0) (0.991951 -0.00179264 0) (0.991458 0.000205287 0) (0.991661 0.0026784 0) (0.999448 -0.00193009 0) (0.997629 0.00141056 0) (1.0015 0.00261543 0) (1.00577 -0.00132611 0) (1.00309 -0.00805198 0) (0.996212 -0.0091017 0) (0.991615 -0.00237305 0) (0.994633 0.0029268 0) (1.0005 0.00394508 0) (1.00288 0.00100472 0) (1.00311 -0.00104961 0) (1.00472 -0.00449238 0) (1.00281 -0.00699844 0) (0.998334 -0.00615721 0) (0.996845 -0.00662373 0) (0.996299 -0.00652936 0) (0.994204 -0.00392606 0) (0.992414 -0.00151217 0) (0.991954 0.000337662 0) (0.992271 0.00247892 0) (0.999471 -0.00183404 0) (0.997772 0.00133657 0) (1.00141 0.00236525 0) (1.00541 -0.00143373 0) (1.00283 -0.00758062 0) (0.996485 -0.00868178 0) (0.992182 -0.0023814 0) (0.994952 0.00260341 0) (1.0004 0.00341798 0) (1.0026 0.000801011 0) (1.00276 -0.00107815 0) (1.0043 -0.0042312 0) (1.00268 -0.00666191 0) (0.99836 -0.00584783 0) (0.996805 -0.00601556 0) (0.996539 -0.00606338 0) (0.994717 -0.0037209 0) (0.992886 -0.00125983 0) (0.992414 0.000472895 0) (0.992829 0.00232782 0) (0.999495 -0.00173706 0) (0.99791 0.0012557 0) (1.00131 0.00214224 0) (1.00506 -0.00155185 0) (1.00257 -0.00712151 0) (0.996747 -0.0082677 0) (0.99274 -0.00240997 0) (0.995256 0.00229895 0) (1.0003 0.00291543 0) (1.00233 0.000579519 0) (1.00243 -0.00109622 0) (1.00389 -0.00396942 0) (1.00254 -0.00632082 0) (0.998408 -0.00555257 0) (0.996775 -0.00543304 0) (0.996745 -0.00557796 0) (0.995225 -0.00353448 0) (0.993369 -0.00104222 0) (0.992841 0.00061775 0) (0.993331 0.00220751 0) (0.999518 -0.00163932 0) (0.998044 0.00116548 0) (1.00121 0.001955 0) (1.00471 -0.00168604 0) (1.00232 -0.00667814 0) (0.996995 -0.00784483 0) (0.993287 -0.00246592 0) (0.995549 0.00199745 0) (1.0002 0.00245767 0) (1.00209 0.000362139 0) (1.00211 -0.00110694 0) (1.00348 -0.00370457 0) (1.00239 -0.005978 0) (0.998475 -0.00526407 0) (0.996759 -0.00488455 0) (0.996913 -0.00507989 0) (0.99572 -0.0033585 0) (0.993869 -0.00088816 0) (0.993242 0.000764038 0) (0.993777 0.00211462 0) (0.999541 -0.00153718 0) (0.998175 0.00105679 0) (1.0011 0.00180349 0) (1.00437 -0.00182142 0) (1.00208 -0.00626617 0) (0.997228 -0.0074075 0) (0.99382 -0.00253655 0) (0.995833 0.00169816 0) (1.0001 0.00203952 0) (1.00185 0.000140594 0) (1.00181 -0.00112501 0) (1.00308 -0.00344247 0) (1.00223 -0.0056315 0) (0.998558 -0.00498341 0) (0.996758 -0.00438084 0) (0.997045 -0.00456861 0) (0.99619 -0.00317499 0) (0.994387 -0.000783612 0) (0.993631 0.000907881 0) (0.994169 0.00206078 0) (0.999563 -0.00143479 0) (0.998304 0.000937606 0) (1.00098 0.00167215 0) (1.00404 -0.00193323 0) (1.00186 -0.00590185 0) (0.997445 -0.00695972 0) (0.994335 -0.002614 0) (0.99611 0.00140711 0) (0.999997 0.00167941 0) (1.00163 -7.65634e-05 0) (1.00153 -0.00114435 0) (1.00268 -0.00318431 0) (1.00206 -0.00527458 0) (0.998655 -0.00472306 0) (0.99678 -0.00392635 0) (0.997143 -0.00406107 0) (0.996626 -0.00298144 0) (0.994923 -0.000725698 0) (0.994017 0.00102697 0) (0.994507 0.00204553 0) (0.999584 -0.00133048 0) (0.99843 0.000806997 0) (1.00086 0.0015592 0) (1.00372 -0.00201722 0) (1.00165 -0.00558104 0) (0.997647 -0.00650961 0) (0.994831 -0.00267742 0) (0.996382 0.00111511 0) (0.999895 0.00136671 0) (1.00143 -0.000276034 0) (1.00127 -0.00117771 0) (1.00231 -0.00294713 0) (1.00188 -0.00491742 0) (0.998763 -0.00447722 0) (0.996829 -0.003526 0) (0.997214 -0.00357 0) (0.997016 -0.0027668 0) (0.995469 -0.000716094 0) (0.994415 0.00109876 0) (0.994799 0.002065 0) (0.999604 -0.00122707 0) (0.998555 0.000662499 0) (1.00074 0.00146516 0) (1.00341 -0.00206383 0) (1.00146 -0.00530602 0) (0.997836 -0.00606197 0) (0.995302 -0.00271574 0) (0.996648 0.000816449 0) (0.999794 0.00108973 0) (1.00123 -0.000437143 0) (1.00104 -0.0012228 0) (1.00195 -0.0027404 0) (1.0017 -0.00457453 0) (0.998883 -0.00424666 0) (0.99691 -0.00318498 0) (0.997268 -0.00310526 0) (0.997355 -0.00252915 0) (0.996013 -0.000722412 0) (0.994838 0.00111724 0) (0.99506 0.00210176 0) (0.999624 -0.0011187 0) (0.99868 0.00049893 0) (1.00062 0.00137276 0) (1.00309 -0.00206369 0) (1.00129 -0.00505887 0) (0.998017 -0.0056572 0) (0.995749 -0.00271865 0) (0.996907 0.000519745 0) (0.999696 0.000861242 0) (1.00103 -0.000539239 0) (1.00083 -0.00125181 0) (1.00161 -0.0025431 0) (1.00152 -0.00423212 0) (0.99901 -0.00402098 0) (0.997026 -0.0028882 0) (0.997315 -0.00267371 0) (0.997643 -0.00227329 0) (0.996544 -0.000732852 0) (0.995288 0.00108098 0) (0.99531 0.00212343 0) (0.999642 -0.00101549 0) (0.998805 0.000338508 0) (1.00051 0.00127224 0) (1.00279 -0.00202652 0) (1.00113 -0.004832 0) (0.998195 -0.00526516 0) (0.996171 -0.00275147 0) (0.997163 0.000229641 0) (0.999612 0.000699879 0) (1.00084 -0.000590541 0) (1.00063 -0.00125891 0) (1.0013 -0.00235245 0) (1.00134 -0.00388881 0) (0.999138 -0.0037892 0) (0.997174 -0.00263902 0) (0.997362 -0.00227923 0) (0.997877 -0.00199675 0) (0.997046 -0.000737668 0) (0.995766 0.00100749 0) (0.995573 0.00211641 0) (0.999661 -0.000917377 0) (0.998932 0.000183372 0) (1.00041 0.00114607 0) (1.00249 -0.00193453 0) (1.00099 -0.00464232 0) (0.99836 -0.00490287 0) (0.996562 -0.00268852 0) (0.997439 -2.50827e-05 0) (0.999559 0.000494132 0) (1.00067 -0.000652144 0) (1.00045 -0.00126474 0) (1.00101 -0.00218212 0) (1.00114 -0.00356167 0) (0.999251 -0.00355935 0) (0.997342 -0.00243499 0) (0.997414 -0.00193359 0) (0.998055 -0.00170835 0) (0.997505 -0.000724466 0) (0.996265 0.000903832 0) (0.995866 0.00206562 0) (0.999679 -0.000819405 0) (0.999055 3.05448e-05 0) (1.00032 0.00100541 0) (1.0022 -0.00182144 0) (1.00086 -0.00443092 0) (0.998535 -0.00455655 0) (0.996936 -0.00254559 0) (0.997691 -0.000273769 0) (0.999516 0.000229428 0) (1.00051 -0.000738699 0) (1.00029 -0.00127824 0) (1.00074 -0.0020351 0) (1.00095 -0.00325295 0) (0.999363 -0.003334 0) (0.997541 -0.00226124 0) (0.997491 -0.00164215 0) (0.998195 -0.0014195 0) (0.997914 -0.000680113 0) (0.996771 0.000780209 0) (0.996194 0.00197085 0) (0.999695 -0.00073385 0) (0.999179 -0.000100001 0) (1.00025 0.000837 0) (1.00192 -0.00168864 0) (1.00074 -0.00415761 0) (0.998711 -0.00423802 0) (0.997282 -0.00244959 0) (0.997929 -0.000489967 0) (0.999489 -9.93738e-06 0) (1.00037 -0.000836212 0) (1.00015 -0.0012937 0) (1.0005 -0.0018954 0) (1.00077 -0.00294753 0) (0.99947 -0.00309913 0) (0.997767 -0.00210312 0) (0.997601 -0.00139966 0) (0.998312 -0.00114186 0) (0.998266 -0.000601043 0) (0.997271 0.000659942 0) (0.996559 0.00184998 0) (0.999712 -0.000655156 0) (0.999296 -0.000214991 0) (1.00019 0.000642225 0) (1.00166 -0.00152327 0) (1.00063 -0.0038697 0) (0.998885 -0.00398152 0) (0.997611 -0.00234613 0) (0.99815 -0.00064469 0) (0.999469 -0.000235011 0) (1.00026 -0.000931877 0) (1.00004 -0.00129287 0) (1.00031 -0.00174905 0) (1.0006 -0.00264582 0) (0.999566 -0.00285437 0) (0.998007 -0.00195566 0) (0.99774 -0.00120583 0) (0.998414 -0.000893285 0) (0.998561 -0.000497008 0) (0.997749 0.000552726 0) (0.996956 0.00170203 0) (0.999728 -0.000587806 0) (0.999407 -0.000306448 0) (1.00016 0.000450301 0) (1.00142 -0.00138045 0) (1.00052 -0.00358045 0) (0.999055 -0.00373696 0) (0.997925 -0.00224757 0) (0.998359 -0.000758841 0) (0.999461 -0.000413531 0) (1.00016 -0.00100853 0) (0.999956 -0.00129242 0) (1.00014 -0.00162107 0) (1.00044 -0.00236958 0) (0.999648 -0.0026122 0) (0.998253 -0.00182092 0) (0.99791 -0.00105298 0) (0.998515 -0.000676678 0) (0.998805 -0.000368018 0) (0.998193 0.000475122 0) (0.997378 0.00153674 0) (0.999744 -0.000529125 0) (0.99951 -0.000376678 0) (1.00014 0.000244479 0) (1.00121 -0.00126247 0) (1.00041 -0.00326137 0) (0.999219 -0.00349429 0) (0.998229 -0.0021645 0) (0.998558 -0.000847876 0) (0.999459 -0.000544222 0) (1.00009 -0.00107316 0) (0.9999 -0.00130271 0) (1.00001 -0.00151432 0) (1.0003 -0.00211128 0) (0.999719 -0.00237003 0) (0.9985 -0.00168647 0) (0.998109 -0.000929154 0) (0.998627 -0.000499379 0) (0.999006 -0.000232274 0) (0.998588 0.000433297 0) (0.997809 0.00136971 0) (0.99976 -0.000481399 0) (0.999604 -0.000425257 0) (1.00013 3.59823e-05 0) (1.00103 -0.00116727 0) (1.00031 -0.00292839 0) (0.999369 -0.00325161 0) (0.998518 -0.00210187 0) (0.998754 -0.000920856 0) (0.999467 -0.000634999 0) (1.00003 -0.00111529 0) (0.999867 -0.00131257 0) (0.99992 -0.00142656 0) (1.00018 -0.0018687 0) (0.999779 -0.00213264 0) (0.99874 -0.00155057 0) (0.998327 -0.000826744 0) (0.998755 -0.00036105 0) (0.99918 -0.00010536 0) (0.998934 0.000426871 0) (0.998235 0.00122014 0) (0.999775 -0.000444857 0) (0.999686 -0.000446825 0) (1.00014 -0.000162963 0) (1.00089 -0.00111267 0) (1.00022 -0.00259275 0) (0.999503 -0.00299598 0) (0.998795 -0.00204864 0) (0.998949 -0.000985299 0) (0.999482 -0.000701877 0) (0.999975 -0.00113457 0) (0.999854 -0.00131753 0) (0.999867 -0.00135941 0) (1.00009 -0.00165225 0) (0.999832 -0.00189758 0) (0.998973 -0.00141205 0) (0.99856 -0.000735758 0) (0.998901 -0.000249769 0) (0.99934 8.06025e-06 0) (0.999231 0.000444336 0) (0.998635 0.001096 0) (0.99979 -0.000414361 0) (0.999756 -0.000450011 0) (1.00015 -0.000337074 0) (1.00078 -0.00107855 0) (1.00014 -0.00227038 0) (0.999614 -0.00273107 0) (0.999051 -0.00200291 0) (0.999145 -0.0010608 0) (0.99951 -0.000749481 0) (0.999934 -0.00111701 0) (0.999854 -0.00129588 0) (0.999847 -0.0013005 0) (1.00002 -0.00146566 0) (0.999881 -0.00167241 0) (0.999193 -0.00127481 0) (0.998802 -0.000658295 0) (0.999065 -0.000163908 0) (0.999493 9.89824e-05 0) (0.999487 0.000467998 0) (0.998998 0.00100271 0) (0.999805 -0.000390611 0) (0.999813 -0.000432426 0) (1.00017 -0.00046909 0) (1.0007 -0.00106692 0) (1.00008 -0.00198925 0) (0.999704 -0.00246572 0) (0.999281 -0.00194667 0) (0.999341 -0.00113884 0) (0.999555 -0.000789321 0) (0.999902 -0.00107999 0) (0.999859 -0.00125907 0) (0.999852 -0.00125245 0) (0.999986 -0.00131199 0) (0.999929 -0.00146741 0) (0.999397 -0.00113898 0) (0.999047 -0.000589262 0) (0.999243 -9.6752e-05 0) (0.999644 0.000171548 0) (0.999715 0.000490347 0) (0.999321 0.000940344 0) (0.999818 -0.000370766 0) (0.999861 -0.000404076 0) (1.00018 -0.000549632 0) (1.00065 -0.00108327 0) (1.00004 -0.00175707 0) (0.999774 -0.00220153 0) (0.999482 -0.00187199 0) (0.999534 -0.00121168 0) (0.999618 -0.0008317 0) (0.999882 -0.00103092 0) (0.999868 -0.00119892 0) (0.999877 -0.00119959 0) (0.999978 -0.00118042 0) (0.99998 -0.0012844 0) (0.999586 -0.0010072 0) (0.999289 -0.000521204 0) (0.999434 -4.95983e-05 0) (0.999794 0.000229622 0) (0.999919 0.000506692 0) (0.999609 0.000888101 0) (0.999831 -0.000351131 0) (0.9999 -0.000376259 0) (1.00018 -0.000586122 0) (1.00062 -0.00111039 0) (1.00002 -0.0015745 0) (0.999829 -0.00194603 0) (0.999649 -0.00176893 0) (0.999717 -0.00126698 0) (0.9997 -0.000880764 0) (0.999876 -0.000981244 0) (0.999876 -0.00111692 0) (0.999913 -0.00113853 0) (0.999991 -0.0010678 0) (1.00003 -0.00112027 0) (0.99976 -0.000883837 0) (0.999521 -0.000456372 0) (0.99963 -1.49421e-05 0) (0.999945 0.000270259 0) (1.0001 0.000522457 0) (0.999869 0.000835957 0) (0.999842 -0.000330543 0) (0.999933 -0.000354883 0) (1.00017 -0.000588361 0) (1.0006 -0.00112736 0) (1.00002 -0.00143853 0) (0.999877 -0.00171182 0) (0.999783 -0.00163777 0) (0.999881 -0.00129394 0) (0.999796 -0.000931242 0) (0.999891 -0.0009435 0) (0.999886 -0.00102612 0) (0.999952 -0.00106458 0) (1.00002 -0.000973724 0) (1.00009 -0.000974998 0) (0.99992 -0.000769051 0) (0.999741 -0.000398334 0) (0.999828 1.49883e-05 0) (1.0001 0.000293504 0) (1.00026 0.000539064 0) (1.0001 0.000789873 0) (0.999851 -0.000307692 0) (0.999963 -0.000343599 0) (1.00016 -0.000569889 0) (1.00059 -0.0011239 0) (1.00004 -0.00133772 0) (0.999924 -0.00150433 0) (0.999887 -0.00149018 0) (1.00002 -0.00128963 0) (0.9999 -0.000972915 0) (0.999927 -0.000916772 0) (0.999903 -0.000938295 0) (0.99999 -0.000975803 0) (1.00007 -0.000883974 0) (1.00016 -0.000852703 0) (1.00007 -0.000661581 0) (0.999949 -0.000345125 0) (1.00002 3.73395e-05 0) (1.00026 0.000303887 0) (1.00041 0.000546682 0) (1.0003 0.000755712 0) (0.999859 -0.000283423 0) (0.99999 -0.000339452 0) (1.00014 -0.00053859 0) (1.00057 -0.00109392 0) (1.00007 -0.00126082 0) (0.999975 -0.00132943 0) (0.999966 -0.0013375 0) (1.00014 -0.00125076 0) (1.00001 -0.00099651 0) (0.999983 -0.000900972 0) (0.999931 -0.000859393 0) (1.00003 -0.000885025 0) (1.00012 -0.00079162 0) (1.00023 -0.000746557 0) (1.0002 -0.000566861 0) (1.00014 -0.000294469 0) (1.00021 5.01774e-05 0) (1.00042 0.000304962 0) (1.00056 0.000540632 0) (1.00047 0.000729358 0) (0.999865 -0.000258083 0) (1.00002 -0.000338867 0) (1.00012 -0.000501752 0) (1.00056 -0.00103699 0) (1.00012 -0.00119505 0) (1.00003 -0.00119266 0) (1.00003 -0.0011888 0) (1.00023 -0.00117985 0) (1.0001 -0.000995305 0) (1.00005 -0.000887197 0) (0.999973 -0.0007922 0) (1.00007 -0.000796134 0) (1.00017 -0.000703652 0) (1.0003 -0.000645661 0) (1.00032 -0.00048479 0) (1.00032 -0.000247286 0) (1.00039 6.09631e-05 0) (1.00058 0.000296434 0) (1.0007 0.000524847 0) (1.00062 0.000700594 0) (0.99987 -0.000232406 0) (1.00004 -0.000338548 0) (1.0001 -0.000465111 0) (1.00054 -0.000959905 0) (1.00017 -0.00112662 0) (1.0001 -0.00108708 0) (1.00009 -0.00105292 0) (1.0003 -0.00108966 0) (1.00019 -0.000966935 0) (1.00013 -0.000867965 0) (1.00003 -0.000736905 0) (1.00012 -0.000709605 0) (1.00022 -0.000620951 0) (1.00037 -0.000553956 0) (1.00044 -0.000407433 0) (1.00048 -0.000208393 0) (1.00056 7.34258e-05 0) (1.00073 0.00028259 0) (1.00084 0.000501275 0) (1.00076 0.000666358 0) (0.999873 -0.000207603 0) (1.00006 -0.000333585 0) (1.00009 -0.000432095 0) (1.00052 -0.000871083 0) (1.00022 -0.00104961 0) (1.00018 -0.00100027 0) (1.00014 -0.00093343 0) (1.00036 -0.000988548 0) (1.00027 -0.000911022 0) (1.00021 -0.000835477 0) (1.0001 -0.000689393 0) (1.00017 -0.000632727 0) (1.00028 -0.000540437 0) (1.00044 -0.000476907 0) (1.00054 -0.000334245 0) (1.00062 -0.000173604 0) (1.00072 7.97962e-05 0) (1.00087 0.000270013 0) (1.00097 0.0004685 0) (1.00089 0.000628058 0) (0.999876 -0.00018477 0) (1.00009 -0.000322358 0) (1.00008 -0.00040207 0) (1.0005 -0.000778001 0) (1.00026 -0.00096126 0) (1.00025 -0.000923374 0) (1.00019 -0.000831278 0) (1.0004 -0.000884478 0) (1.00033 -0.000836512 0) (1.00029 -0.000785823 0) (1.00017 -0.000642206 0) (1.00023 -0.000569767 0) (1.00033 -0.00046404 0) (1.0005 -0.000405937 0) (1.00063 -0.000272024 0) (1.00075 -0.000135567 0) (1.00086 7.82743e-05 0) (1.001 0.000256707 0) (1.0011 0.000431435 0) (1.00101 0.000582194 0) (0.999878 -0.00016362 0) (1.0001 -0.000304879 0) (1.00007 -0.000373298 0) (1.00049 -0.000687901 0) (1.0003 -0.000862382 0) (1.00033 -0.000846195 0) (1.00025 -0.000744384 0) (1.00044 -0.000782341 0) (1.00038 -0.000750683 0) (1.00036 -0.000722029 0) (1.00025 -0.000587406 0) (1.0003 -0.000513018 0) (1.00039 -0.000399649 0) (1.00056 -0.000337175 0) (1.00071 -0.000221283 0) (1.00086 -9.91815e-05 0) (1.00099 7.90361e-05 0) (1.00113 0.000236818 0) (1.00121 0.000397615 0) (1.00113 0.000528823 0) (0.99988 -0.000144487 0) (1.00012 -0.000281536 0) (1.00007 -0.000341554 0) (1.00048 -0.000603313 0) (1.00033 -0.000758023 0) (1.00039 -0.000764749 0) (1.00031 -0.000662902 0) (1.00048 -0.000685372 0) (1.00042 -0.000655664 0) (1.00042 -0.00064573 0) (1.00032 -0.000526169 0) (1.00037 -0.000452489 0) (1.00045 -0.000345856 0) (1.00062 -0.000280192 0) (1.00078 -0.000174251 0) (1.00095 -7.56986e-05 0) (1.00109 8.07321e-05 0) (1.00123 0.000207879 0) (1.00132 0.000357922 0) (1.00123 0.000468781 0) (0.999881 -0.000127168 0) (1.00013 -0.00025394 0) (1.00008 -0.000305032 0) (1.00047 -0.000521075 0) (1.00036 -0.000653416 0) (1.00046 -0.000677463 0) (1.00036 -0.000582496 0) (1.00051 -0.000592939 0) (1.00046 -0.000558043 0) (1.00047 -0.000558425 0) (1.00038 -0.000460366 0) (1.00043 -0.000390081 0) (1.00051 -0.000290407 0) (1.00068 -0.000234442 0) (1.00084 -0.000131409 0) (1.00103 -5.77063e-05 0) (1.00118 7.53458e-05 0) (1.00133 0.000180707 0) (1.0014 0.000308892 0) (1.00133 0.000408392 0) (0.999882 -0.000110579 0) (1.00014 -0.00022381 0) (1.00008 -0.000264319 0) (1.00046 -0.0004418 0) (1.00038 -0.000549359 0) (1.00051 -0.000583268 0) (1.00041 -0.00049944 0) (1.00055 -0.000501 0) (1.00049 -0.000460326 0) (1.00051 -0.000464199 0) (1.00044 -0.000383009 0) (1.00049 -0.000328312 0) (1.00056 -0.0002318 0) (1.00072 -0.000189766 0) (1.00089 -9.95098e-05 0) (1.00108 -3.90571e-05 0) (1.00125 6.2641e-05 0) (1.0014 0.000153308 0) (1.00148 0.000257576 0) (1.0014 0.000344321 0) (0.999883 -9.48624e-05 0) (1.00015 -0.00019135 0) (1.00008 -0.000221033 0) (1.00046 -0.000364654 0) (1.0004 -0.000448753 0) (1.00055 -0.000485471 0) (1.00046 -0.000410741 0) (1.00058 -0.000405412 0) (1.00052 -0.000360732 0) (1.00054 -0.000366284 0) (1.00048 -0.000294939 0) (1.00053 -0.000258374 0) (1.0006 -0.000176552 0) (1.00076 -0.000141178 0) (1.00093 -7.33213e-05 0) (1.00112 -2.40461e-05 0) (1.0013 5.05701e-05 0) (1.00145 0.000117319 0) (1.00153 0.000205941 0) (1.00146 0.000270545 0) (0.999883 -7.89516e-05 0) (1.00015 -0.000157348 0) (1.00008 -0.000173856 0) (1.00046 -0.000287411 0) (1.00042 -0.000350012 0) (1.00059 -0.000386028 0) (1.0005 -0.000317845 0) (1.00061 -0.000306638 0) (1.00054 -0.000255348 0) (1.00057 -0.000263068 0) (1.00052 -0.000202175 0) (1.00057 -0.000175969 0) (1.00063 -0.000118737 0) (1.00078 -9.33881e-05 0) (1.00094 -4.53353e-05 0) (1.00114 -1.86001e-05 0) (1.00132 3.89672e-05 0) (1.00148 7.29161e-05 0) (1.00156 0.000146758 0) (1.0015 0.000188855 0) (0.999883 -6.55199e-05 0) (1.00016 -0.000118821 0) (1.00009 -0.000120509 0) (1.00046 -0.000207922 0) (1.00043 -0.000249331 0) (1.00063 -0.000282592 0) (1.00054 -0.000219 0) (1.00064 -0.000204671 0) (1.00056 -0.000146895 0) (1.00059 -0.000151672 0) (1.00054 -0.000101746 0) (1.00058 -8.60449e-05 0) (1.00064 -4.63767e-05 0) (1.00078 -4.2574e-05 0) (1.00094 -1.48851e-05 0) (1.00114 -2.74493e-05 0) (1.00131 6.99722e-06 0) (1.00148 1.14861e-05 0) (1.00157 6.00164e-05 0) (1.00151 8.67756e-05 0) (0.999883 -4.97977e-05 0) (1.00016 -8.72585e-05 0) (1.00009 -6.96958e-05 0) (1.00046 -0.000126041 0) (1.00044 -0.000147424 0) (1.00065 -0.000172754 0) (1.00057 -0.000114645 0) (1.00067 -9.13242e-05 0) (1.00057 -3.20479e-05 0) (1.0006 -2.93593e-05 0) (1.00055 1.92792e-05 0) (1.00058 1.63084e-05 0) (1.00063 3.9336e-05 0) (1.00076 2.20935e-05 0) (1.00089 3.37413e-05 0) (1.00109 1.01443e-05 0) (1.00127 1.02312e-05 0) (1.00144 -1.12519e-05 0) (1.00154 -1.93941e-06 0) (1.00149 2.35274e-06 0) (0.999883 -3.2254e-05 0) (1.00016 -4.93297e-05 0) (1.00009 -1.39587e-05 0) (1.00046 -5.19865e-05 0) (1.00045 -5.36273e-05 0) (1.00067 -6.6157e-05 0) (1.0006 -1.90657e-06 0) (1.00069 2.40857e-05 0) (1.00059 9.40908e-05 0) (1.0006 0.000102612 0) (1.00054 0.000158628 0) (1.00056 0.000150785 0) (1.00059 0.000141129 0) (1.00072 7.94825e-05 0) (1.00085 2.41415e-05 0) (1.00102 -6.17664e-05 0) (1.00119 -0.000115754 0) (1.00135 -0.000179485 0) (1.00145 -0.000206478 0) (1.00143 -0.000238608 0) (0.999884 -1.82436e-05 0) (1.00016 3.37265e-06 0) (1.00009 5.17061e-05 0) (1.00046 2.40527e-05 0) (1.00046 4.26141e-05 0) (1.00069 4.43077e-05 0) (1.00061 0.000113109 0) (1.00071 0.000151503 0) (1.0006 0.000219033 0) (1.00061 0.000243876 0) (1.00054 0.000304212 0) (1.00052 0.000325774 0) (1.0005 0.00034322 0) (1.00057 0.000302861 0) (1.00066 0.000241727 0) (1.00083 0.000112966 0) (1.00101 -3.34888e-06 0) (1.0012 -0.000146141 0) (1.00131 -0.000242102 0) (1.00132 -0.000352893 0) (0.999883 -3.18037e-06 0) (1.00016 3.13061e-05 0) (1.00008 9.88821e-05 0) (1.00045 0.000108796 0) (1.00046 0.000155369 0) (1.0007 0.000161328 0) (1.00063 0.000240411 0) (1.00072 0.000281603 0) (1.0006 0.00037843 0) (1.00061 0.000410084 0) (1.00055 0.000447257 0) (1.00053 0.00040244 0) (1.00049 0.000338707 0) (1.00053 0.000193445 0) (1.00054 5.11492e-05 0) (1.00062 -0.000151012 0) (1.00072 -0.000328027 0) (1.00088 -0.00053182 0) (1.00099 -0.000666724 0) (1.00099 -0.000768984 0) (0.999883 2.19387e-05 0) (1.00016 5.70196e-05 0) (1.00009 0.000166724 0) (1.00046 0.000187309 0) (1.00047 0.00026348 0) (1.00071 0.000259618 0) (1.00064 0.000366083 0) (1.00074 0.00040011 0) (1.00062 0.000551932 0) (1.00059 0.000659329 0) (1.00046 0.000883082 0) (1.00034 0.00104441 0) (1.0002 0.00119166 0) (1.00017 0.00110094 0) (1.00015 0.000881609 0) (1.00024 0.000498477 0) (1.00036 7.88152e-05 0) (1.00056 -0.000428658 0) (1.00078 -0.000951104 0) (1.00095 -0.00152513 0) (0.999883 4.12128e-05 0) (1.00016 0.000123405 0) (1.00009 0.00026859 0) (1.00045 0.000293277 0) (1.00046 0.000348027 0) (1.00071 0.000318899 0) (1.00066 0.000375112 0) (1.00077 0.000418514 0) (1.00071 0.000554984 0) (1.00079 0.000632297 0) (1.00078 0.000706286 0) (1.00072 0.000608062 0) (1.00044 0.00050341 0) (1.00008 0.000318502 0) (0.999705 0.000172296 0) (0.999458 -3.30606e-05 0) (0.999275 -0.000238007 0) (0.999151 -0.000527094 0) (0.998987 -0.000837919 0) (0.99886 -0.00122852 0) (0.999882 6.40774e-05 0) (1.00016 0.000187528 0) (1.00008 0.000333385 0) (1.00042 0.000417896 0) (1.00041 0.000514915 0) (1.00065 0.000575808 0) (1.00061 0.00067366 0) (1.00076 0.000670668 0) (1.00067 0.000584603 0) (1.00059 0.000365188 0) (1.00029 8.03497e-05 0) (0.999995 -0.000250368 0) (0.999744 -0.000486054 0) (0.999645 -0.000591711 0) (0.999566 -0.000559737 0) (0.999545 -0.000514039 0) (0.999495 -0.00046469 0) (0.999466 -0.000529998 0) (0.999427 -0.000604815 0) (0.999421 -0.000698176 0) (0.999883 9.1594e-05 0) (1.00014 0.000306616 0) (1.00007 0.000433107 0) (1.00044 0.000456031 0) (1.00044 0.000383699 0) (1.00069 0.000225792 0) (1.00059 5.10403e-05 0) (1.00057 -0.000179717 0) (1.00032 -0.000431347 0) (1.00021 -0.000663902 0) (1.00007 -0.000823239 0) (1.00002 -0.000826098 0) (0.999933 -0.000753411 0) (0.999837 -0.000669529 0) (0.999621 -0.000542607 0) (0.999386 -0.000438508 0) (0.999017 -0.000237883 0) (0.998675 5.31113e-06 0) (0.998423 0.000347261 0) (0.998354 0.00070905 0) (0.999882 0.000120758 0) (1.00011 0.000472195 0) (0.999959 0.000681759 0) (1.00021 0.000627159 0) (1.0001 0.000426982 0) (1.00025 0.000128849 0) (1.00013 -0.00010877 0) (1.0002 -0.000324445 0) (1.00007 -0.000394712 0) (1.00004 -0.000377765 0) (0.999925 -0.000367207 0) (0.99984 -0.000347232 0) (0.999678 -0.000312265 0) (0.999657 -0.00038511 0) (0.999621 -0.00035042 0) (0.999748 -0.000391755 0) (0.999966 -0.000345864 0) (1.00026 -0.000295592 0) (1.00054 -0.000199913 0) (1.00074 -9.47869e-05 0) (0.999881 0.000122927 0) (1.00012 0.000406964 0) (0.999869 0.000643894 0) (1.00003 0.000629299 0) (0.999882 0.000537987 0) (1.00008 0.000327085 0) (0.999993 0.000203628 0) (1.00007 3.90936e-05 0) (0.999984 -3.62761e-05 0) (0.999943 -8.25045e-05 0) (0.999804 -8.82473e-05 0) (0.999775 -0.000128307 0) (0.999574 -2.70561e-05 0) (0.999473 -4.80929e-05 0) (0.99927 2.84315e-06 0) (0.999037 -2.93851e-05 0) (0.998781 -0.000102625 0) (0.998513 -0.000274156 0) (0.998359 -0.000530981 0) (0.998281 -0.00081935 0) (0.999881 5.05508e-05 0) (1.00011 0.000137651 0) (0.999821 0.000221728 0) (0.9999 0.000222931 0) (0.999654 0.00016918 0) (0.999765 1.50141e-05 0) (0.999658 -0.000142905 0) (0.999743 -0.000299189 0) (0.999695 -0.000416127 0) (0.999716 -0.000511224 0) (0.999602 -0.000547101 0) (0.99964 -0.000604536 0) (0.999492 -0.000577675 0) (0.99942 -0.00058465 0) (0.999363 -0.0005404 0) (0.999303 -0.000450838 0) (0.999269 -0.00031076 0) (0.999194 -0.000114697 0) (0.99917 0.000100843 0) (0.999189 0.000326281 0) (0.860292 0.0116676 0) (0.582642 0.010648 0) (0.347029 0.00551679 0) (0.238044 0.00115472 0) (0.198542 -1.62494e-05 0) (0.177319 1.22341e-05 0) (0.163315 6.55443e-05 0) (0.152771 8.12443e-05 0) (0.143976 8.50018e-05 0) (0.136356 7.87022e-05 0) (0.129576 7.03518e-05 0) (0.123212 7.06033e-05 0) (0.117083 7.24686e-05 0) (0.111433 6.44852e-05 0) (0.106593 5.06234e-05 0) (0.102534 4.06857e-05 0) (0.0989632 3.63398e-05 0) (0.0956239 3.42203e-05 0) (0.0924321 3.40842e-05 0) (0.089417 3.3562e-05 0) (0.0867194 2.81191e-05 0) (0.0843728 2.17675e-05 0) (0.0822148 2.06015e-05 0) (0.0800643 2.19905e-05 0) (0.0779643 2.14231e-05 0) (0.0760326 1.83644e-05 0) (0.0743297 1.46362e-05 0) (0.0727667 1.29774e-05 0) (0.0712464 1.37439e-05 0) (0.0697475 1.37153e-05 0) (0.0683652 1.16217e-05 0) (0.0671027 9.79454e-06 0) (0.0658955 9.96518e-06 0) (0.0646678 1.06634e-05 0) (0.0634645 1.0267e-05 0) (0.0623038 9.33e-06 0) (0.0611936 8.94231e-06 0) (0.0600966 8.75687e-06 0) (0.0590562 7.96738e-06 0) (0.0580655 7.0372e-06 0) (0.0571216 6.84299e-06 0) (0.0561771 6.77093e-06 0) (0.0552782 6.20089e-06 0) (0.0544041 5.64158e-06 0) (0.0535428 6.00077e-06 0) (0.052639 6.45373e-06 0) (0.0517712 5.91046e-06 0) (0.0509359 5.1917e-06 0) (0.0501379 5.2553e-06 0) (0.0493179 5.36537e-06 0) (0.0485606 4.63425e-06 0) (0.0478369 3.94989e-06 0) (0.0471404 4.28953e-06 0) (0.0464128 4.28373e-06 0) (0.0457498 3.6305e-06 0) (0.0450738 3.71604e-06 0) (0.0444176 3.89841e-06 0) (0.0437493 3.47466e-06 0) (0.0431425 3.2942e-06 0) (0.0425067 3.30061e-06 0) (0.041924 3.08134e-06 0) (0.0413195 2.93101e-06 0) (0.0407736 2.80053e-06 0) (0.0401956 2.67198e-06 0) (0.0396775 2.59698e-06 0) (0.0391184 2.50464e-06 0) (0.0386248 2.41459e-06 0) (0.038084 2.32791e-06 0) (0.0376175 2.20188e-06 0) (0.0370994 2.10017e-06 0) (0.0366553 2.08351e-06 0) (0.0361463 2.00678e-06 0) (0.0357236 1.92294e-06 0) (0.0352321 1.82222e-06 0) (0.034833 1.77065e-06 0) (0.034352 1.70155e-06 0) (0.0339688 1.69207e-06 0) (0.0334933 1.61201e-06 0) (0.0331298 1.57348e-06 0) (0.0326655 1.47066e-06 0) (0.0323235 1.4581e-06 0) (0.031865 1.37918e-06 0) (0.0315414 1.37579e-06 0) (0.0310877 1.28712e-06 0) (0.0307848 1.28219e-06 0) (0.0303352 1.1941e-06 0) (0.0300552 1.18804e-06 0) (0.02961 1.09852e-06 0) (0.0293535 1.11322e-06 0) (0.028908 1.02462e-06 0) (0.0286765 1.03425e-06 0) (0.0282323 9.34671e-07 0) (0.0280319 9.32611e-07 0) (0.0275867 8.67182e-07 0) (0.0274246 7.97632e-07 0) (0.0269796 7.66512e-07 0) (0.0268811 5.90095e-07 0) (0.0264797 3.32185e-07 0) (0.0264547 2.81421e-08 0) (0.0265526 -2.02188e-06 0) (1.00908 0.0182417 0) (0.936776 0.0213904 0) (0.799873 0.0170355 0) (0.683778 0.00891946 0) (0.603801 0.00402207 0) (0.545227 0.00222231 0) (0.502073 0.00150158 0) (0.46885 0.00115101 0) (0.441524 0.000953524 0) (0.418213 0.000815373 0) (0.397547 0.000725587 0) (0.378197 0.000678218 0) (0.359797 0.000626707 0) (0.342909 0.000540454 0) (0.328102 0.00044456 0) (0.315256 0.000376306 0) (0.303812 0.000338778 0) (0.293162 0.000313388 0) (0.283117 0.000291722 0) (0.273903 0.000265866 0) (0.265822 0.0002291 0) (0.258667 0.000198492 0) (0.25196 0.000188154 0) (0.24538 0.000183891 0) (0.239107 0.000170998 0) (0.233355 0.00015092 0) (0.228146 0.00013231 0) (0.223197 0.000122572 0) (0.2184 0.000119556 0) (0.213804 0.000112663 0) (0.209583 0.00010044 0) (0.205632 9.13075e-05 0) (0.201835 8.92315e-05 0) (0.19809 8.81594e-05 0) (0.194505 8.36097e-05 0) (0.191036 7.81267e-05 0) (0.187693 7.47775e-05 0) (0.184403 7.17038e-05 0) (0.18128 6.67546e-05 0) (0.178248 6.1996e-05 0) (0.175328 5.9892e-05 0) (0.172433 5.78801e-05 0) (0.169682 5.44698e-05 0) (0.166964 5.17188e-05 0) (0.164297 5.20191e-05 0) (0.161586 5.18423e-05 0) (0.159013 4.83843e-05 0) (0.156483 4.49816e-05 0) (0.154051 4.41942e-05 0) (0.1516 4.29471e-05 0) (0.149329 3.91204e-05 0) (0.147086 3.62358e-05 0) (0.14493 3.66439e-05 0) (0.142731 3.53346e-05 0) (0.140701 3.24178e-05 0) (0.138611 3.21716e-05 0) (0.136629 3.17996e-05 0) (0.134611 2.94842e-05 0) (0.132756 2.8285e-05 0) (0.130822 2.75377e-05 0) (0.129054 2.60927e-05 0) (0.12721 2.49432e-05 0) (0.125543 2.39044e-05 0) (0.123774 2.28981e-05 0) (0.12219 2.21106e-05 0) (0.120485 2.1229e-05 0) (0.118981 2.0439e-05 0) (0.117336 1.96261e-05 0) (0.115914 1.87632e-05 0) (0.11433 1.80008e-05 0) (0.112976 1.75651e-05 0) (0.111432 1.68507e-05 0) (0.110149 1.62205e-05 0) (0.108652 1.55155e-05 0) (0.107435 1.50726e-05 0) (0.105968 1.45053e-05 0) (0.104804 1.42067e-05 0) (0.103362 1.35802e-05 0) (0.102261 1.32117e-05 0) (0.100848 1.25602e-05 0) (0.0998062 1.23324e-05 0) (0.0984098 1.17572e-05 0) (0.0974263 1.15607e-05 0) (0.0960461 1.09605e-05 0) (0.0951248 1.07923e-05 0) (0.0937555 1.01986e-05 0) (0.0929018 1.0037e-05 0) (0.0915431 9.44702e-06 0) (0.0907597 9.38416e-06 0) (0.0894012 8.79052e-06 0) (0.0886944 8.71876e-06 0) (0.0873376 8.08245e-06 0) (0.0867193 7.99516e-06 0) (0.0853575 7.45227e-06 0) (0.0848479 7.13499e-06 0) (0.0834766 6.61301e-06 0) (0.0831465 5.81689e-06 0) (0.0818335 4.61171e-06 0) (0.0816885 1.89244e-06 0) (0.0814486 -6.05412e-06 0) (0.999866 0.0187154 0) (1.00091 0.0247454 0) (0.959389 0.0227018 0) (0.902212 0.0146805 0) (0.850156 0.00876294 0) (0.804197 0.00595984 0) (0.765198 0.00445558 0) (0.731639 0.00354808 0) (0.701436 0.00296253 0) (0.673776 0.00253631 0) (0.647985 0.00226519 0) (0.622818 0.00212123 0) (0.597821 0.00197034 0) (0.573686 0.00173405 0) (0.551287 0.00146836 0) (0.530821 0.00125967 0) (0.51205 0.00112715 0) (0.494398 0.00103446 0) (0.477664 0.000947042 0) (0.46231 0.000842317 0) (0.448878 0.000725534 0) (0.437012 0.000641551 0) (0.426006 0.000607269 0) (0.415348 0.000582528 0) (0.405217 0.000536727 0) (0.395861 0.000478904 0) (0.387259 0.000431763 0) (0.378945 0.00040543 0) (0.370831 0.000388 0) (0.363061 0.000359875 0) (0.355895 0.000324676 0) (0.349142 0.0002997 0) (0.342692 0.000288602 0) (0.336443 0.000278166 0) (0.330549 0.000262482 0) (0.324847 0.000247526 0) (0.319329 0.000237184 0) (0.31389 0.00022647 0) (0.308703 0.000212734 0) (0.303602 0.000200585 0) (0.298656 0.000193268 0) (0.29377 0.000185277 0) (0.289142 0.000175446 0) (0.284557 0.000168143 0) (0.280083 0.000166281 0) (0.275598 0.000162265 0) (0.271349 0.000152735 0) (0.267114 0.000144442 0) (0.263033 0.000140684 0) (0.258942 0.000135036 0) (0.255128 0.000125302 0) (0.251301 0.000118478 0) (0.247644 0.000117288 0) (0.243949 0.000112204 0) (0.240509 0.000105243 0) (0.236961 0.000103355 0) (0.233631 0.000100585 0) (0.230225 9.44722e-05 0) (0.227077 9.08754e-05 0) (0.223803 8.78044e-05 0) (0.220808 8.36158e-05 0) (0.217673 8.00456e-05 0) (0.214838 7.67963e-05 0) (0.211826 7.36215e-05 0) (0.209133 7.09483e-05 0) (0.206232 6.80388e-05 0) (0.203678 6.54811e-05 0) (0.200881 6.28081e-05 0) (0.198465 6.023e-05 0) (0.195767 5.78365e-05 0) (0.19347 5.61516e-05 0) (0.19085 5.38212e-05 0) (0.188676 5.18804e-05 0) (0.186133 4.97478e-05 0) (0.184068 4.83023e-05 0) (0.181577 4.64853e-05 0) (0.179609 4.53223e-05 0) (0.177165 4.33832e-05 0) (0.175302 4.21739e-05 0) (0.172904 4.02974e-05 0) (0.171138 3.9443e-05 0) (0.168767 3.76966e-05 0) (0.167101 3.69125e-05 0) (0.164758 3.51487e-05 0) (0.163194 3.44916e-05 0) (0.160867 3.27474e-05 0) (0.159415 3.21255e-05 0) (0.157102 3.04013e-05 0) (0.155769 3.00197e-05 0) (0.153456 2.82787e-05 0) (0.152252 2.79042e-05 0) (0.149939 2.60792e-05 0) (0.148881 2.5724e-05 0) (0.146556 2.40224e-05 0) (0.145676 2.32738e-05 0) (0.143323 2.13886e-05 0) (0.142733 1.95956e-05 0) (0.140421 1.66298e-05 0) (0.140111 8.41791e-06 0) (0.139203 -7.95581e-06 0) (0.997618 0.0183292 0) (1.00204 0.0250701 0) (0.996305 0.0242983 0) (0.976467 0.017016 0) (0.952167 0.0110145 0) (0.927609 0.00803125 0) (0.905216 0.00636055 0) (0.884886 0.00532426 0) (0.865452 0.0046466 0) (0.846328 0.00412446 0) (0.827374 0.00378293 0) (0.807942 0.0036342 0) (0.78754 0.00349289 0) (0.766412 0.00321411 0) (0.745191 0.00285763 0) (0.724048 0.00254489 0) (0.703063 0.00231878 0) (0.682065 0.00214649 0) (0.661207 0.00197113 0) (0.641373 0.00174728 0) (0.62363 0.00149995 0) (0.607906 0.00131958 0) (0.593624 0.00123581 0) (0.580115 0.00117751 0) (0.567357 0.00108704 0) (0.555472 0.000978644 0) (0.54443 0.000895062 0) (0.533615 0.000849501 0) (0.522889 0.000813095 0) (0.512407 0.000753754 0) (0.502551 0.000683892 0) (0.493141 0.000632771 0) (0.484167 0.000602782 0) (0.475569 0.000572671 0) (0.467585 0.000537566 0) (0.459938 0.000508454 0) (0.452572 0.000488184 0) (0.445294 0.000466602 0) (0.438322 0.000441421 0) (0.431373 0.000420044 0) (0.424557 0.000404784 0) (0.41778 0.000386487 0) (0.411367 0.000366276 0) (0.405015 0.000351582 0) (0.398854 0.000344602 0) (0.392728 0.000333411 0) (0.386952 0.000315655 0) (0.381144 0.000301133 0) (0.375526 0.000292509 0) (0.369882 0.000280027 0) (0.364589 0.000262616 0) (0.359212 0.000250172 0) (0.354089 0.000245165 0) (0.348929 0.000234145 0) (0.344105 0.000221647 0) (0.339122 0.000216459 0) (0.334473 0.000209617 0) (0.329691 0.000198237 0) (0.325259 0.000190905 0) (0.320641 0.00018402 0) (0.316414 0.000175758 0) (0.311971 0.000168395 0) (0.307956 0.000161692 0) (0.303677 0.000155052 0) (0.299857 0.000149316 0) (0.295733 0.000143156 0) (0.292106 0.00013776 0) (0.288127 0.000132085 0) (0.284696 0.000126822 0) (0.280855 0.000121767 0) (0.277596 0.000117942 0) (0.273872 0.000113026 0) (0.270789 0.000109007 0) (0.267174 0.000104601 0) (0.264248 0.000101497 0) (0.260711 9.765e-05 0) (0.257927 9.50195e-05 0) (0.25446 9.10341e-05 0) (0.251825 8.84814e-05 0) (0.248419 8.47328e-05 0) (0.245918 8.28151e-05 0) (0.24255 7.92512e-05 0) (0.240189 7.74779e-05 0) (0.236856 7.39455e-05 0) (0.234638 7.24675e-05 0) (0.231323 6.89697e-05 0) (0.229259 6.75764e-05 0) (0.22596 6.41175e-05 0) (0.224061 6.31557e-05 0) (0.220759 5.96616e-05 0) (0.219041 5.87505e-05 0) (0.215733 5.51304e-05 0) (0.214218 5.43115e-05 0) (0.210889 5.07985e-05 0) (0.209623 4.95073e-05 0) (0.206238 4.53995e-05 0) (0.205371 4.24763e-05 0) (0.201994 3.70574e-05 0) (0.201486 2.14147e-05 0) (0.199705 -4.6264e-06 0) (1.00191 0.0179927 0) (1.00198 0.0246806 0) (1.00248 0.0244199 0) (0.996523 0.0178137 0) (0.985909 0.0119052 0) (0.973883 0.00887814 0) (0.962791 0.00719656 0) (0.95296 0.00616398 0) (0.943741 0.00550768 0) (0.934391 0.00500297 0) (0.924747 0.00468213 0) (0.914578 0.00459038 0) (0.903496 0.00452357 0) (0.891243 0.00429433 0) (0.878105 0.00396768 0) (0.86398 0.00368916 0) (0.848597 0.00350324 0) (0.831378 0.00336432 0) (0.812289 0.00318357 0) (0.792327 0.0028797 0) (0.773199 0.00249544 0) (0.755618 0.00218339 0) (0.739761 0.00201083 0) (0.725215 0.0018943 0) (0.711819 0.001749 0) (0.699381 0.00158423 0) (0.687818 0.00146194 0) (0.676412 0.00140311 0) (0.664929 0.00135849 0) (0.653322 0.00127515 0) (0.641968 0.00117117 0) (0.630707 0.00108913 0) (0.619743 0.00103114 0) (0.609165 0.000968387 0) (0.599444 0.000900672 0) (0.590309 0.000848475 0) (0.581694 0.00081411 0) (0.573246 0.000779601 0) (0.565176 0.000742639 0) (0.557039 0.000713656 0) (0.548924 0.000691543 0) (0.540666 0.000660818 0) (0.53276 0.000626344 0) (0.524888 0.000600753 0) (0.517291 0.000585012 0) (0.509779 0.000562408 0) (0.502773 0.000533809 0) (0.495723 0.000512368 0) (0.488897 0.000498116 0) (0.481983 0.000477302 0) (0.475462 0.000451376 0) (0.468735 0.000432392 0) (0.46231 0.000421536 0) (0.455822 0.000402392 0) (0.449748 0.000382942 0) (0.443453 0.000372799 0) (0.437612 0.000360294 0) (0.431564 0.000342426 0) (0.425954 0.000330264 0) (0.420073 0.000318248 0) (0.414687 0.000304733 0) (0.40899 0.000292282 0) (0.403845 0.000280926 0) (0.398335 0.00026954 0) (0.393423 0.000259582 0) (0.388096 0.00024894 0) (0.383419 0.000239601 0) (0.378267 0.000229708 0) (0.373836 0.000220725 0) (0.368856 0.000211896 0) (0.364647 0.000204968 0) (0.359818 0.00019641 0) (0.355836 0.000189449 0) (0.35115 0.000181814 0) (0.347377 0.000176312 0) (0.342797 0.000169578 0) (0.339212 0.000164827 0) (0.334724 0.000158006 0) (0.331331 0.000153566 0) (0.326918 0.000147248 0) (0.323696 0.000143811 0) (0.319331 0.000137757 0) (0.316286 0.000134588 0) (0.311959 0.000128657 0) (0.309092 0.000126027 0) (0.30478 0.000120147 0) (0.302107 0.000117676 0) (0.297806 0.000111852 0) (0.295341 0.000110053 0) (0.291028 0.000104162 0) (0.288793 0.000102485 0) (0.284464 9.64135e-05 0) (0.282488 9.49495e-05 0) (0.278121 8.88979e-05 0) (0.276469 8.70106e-05 0) (0.272007 7.97623e-05 0) (0.270861 7.56316e-05 0) (0.266367 6.71327e-05 0) (0.265647 4.27374e-05 0) (0.262839 5.56317e-06 0) (1.00345 0.0175065 0) (1.00376 0.0242256 0) (1.00471 0.024426 0) (1.00268 0.0183801 0) (0.997203 0.0124797 0) (0.990328 0.00933637 0) (0.9841 0.00761042 0) (0.979026 0.00655072 0) (0.974923 0.00587975 0) (0.971071 0.00537332 0) (0.967252 0.0050605 0) (0.963439 0.00499926 0) (0.959456 0.00498396 0) (0.95473 0.00480273 0) (0.949369 0.00451952 0) (0.94336 0.00430897 0) (0.936407 0.00423627 0) (0.927322 0.00424894 0) (0.915175 0.00421012 0) (0.90005 0.00396549 0) (0.883534 0.00353693 0) (0.866957 0.00312382 0) (0.851555 0.00284494 0) (0.837667 0.00263757 0) (0.825423 0.00241638 0) (0.814384 0.00218726 0) (0.804341 0.00202311 0) (0.794506 0.00195401 0) (0.784646 0.00191653 0) (0.774409 0.00183529 0) (0.763928 0.00172546 0) (0.752773 0.00163399 0) (0.741217 0.00155707 0) (0.729524 0.00145685 0) (0.718605 0.00134176 0) (0.708462 0.00124976 0) (0.699239 0.00118929 0) (0.69044 0.00113543 0) (0.682252 0.00108545 0) (0.674026 0.0010534 0) (0.665747 0.00103276 0) (0.65698 0.000995986 0) (0.648297 0.000948762 0) (0.639409 0.000910522 0) (0.630783 0.00088236 0) (0.622235 0.000842681 0) (0.614385 0.000798227 0) (0.606572 0.00076797 0) (0.599096 0.000748213 0) (0.591456 0.000719165 0) (0.584235 0.000685698 0) (0.576623 0.000661426 0) (0.569277 0.000644255 0) (0.56176 0.000615352 0) (0.554717 0.000587787 0) (0.54736 0.000571152 0) (0.540583 0.000551443 0) (0.533518 0.000526146 0) (0.526978 0.000508553 0) (0.520056 0.000490611 0) (0.513716 0.000471153 0) (0.506931 0.000452672 0) (0.500812 0.000435721 0) (0.494198 0.000418503 0) (0.488322 0.000403344 0) (0.481892 0.000387148 0) (0.476264 0.000372879 0) (0.470013 0.000357586 0) (0.464661 0.000343855 0) (0.458601 0.000330133 0) (0.45351 0.000319136 0) (0.447624 0.000305836 0) (0.442799 0.000295002 0) (0.437082 0.000283072 0) (0.432517 0.000274351 0) (0.426935 0.000263802 0) (0.422603 0.000256236 0) (0.417133 0.000245728 0) (0.413033 0.000238813 0) (0.407652 0.000229176 0) (0.40376 0.000223755 0) (0.398431 0.000214522 0) (0.394748 0.000209567 0) (0.389455 0.00020059 0) (0.38598 0.0001965 0) (0.380693 0.000187599 0) (0.377443 0.000183777 0) (0.372153 0.000174942 0) (0.369147 0.000172084 0) (0.363828 0.000163123 0) (0.361094 0.000160483 0) (0.355739 0.000151247 0) (0.353316 0.000149001 0) (0.347896 0.000139587 0) (0.345873 0.000137113 0) (0.340311 0.00012574 0) (0.338892 0.000120318 0) (0.333259 0.000108127 0) (0.332326 7.4119e-05 0) (0.328386 2.42263e-05 0) (1.0019 0.0169035 0) (1.00393 0.023766 0) (1.00584 0.0245284 0) (1.00556 0.0189763 0) (1.00239 0.0130006 0) (0.997729 0.0096788 0) (0.993365 0.00788148 0) (0.989881 0.00677731 0) (0.987465 0.0060648 0) (0.98553 0.00552616 0) (0.983954 0.00518558 0) (0.982818 0.00510831 0) (0.982194 0.00510043 0) (0.981365 0.00493708 0) (0.980325 0.0046651 0) (0.979235 0.00447411 0) (0.978297 0.00447045 0) (0.976316 0.00463384 0) (0.971751 0.00480603 0) (0.963395 0.00474782 0) (0.95193 0.00441113 0) (0.938579 0.00399173 0) (0.925281 0.00363974 0) (0.913116 0.00332789 0) (0.902893 0.00300454 0) (0.894225 0.00269512 0) (0.886823 0.00248134 0) (0.879758 0.00239408 0) (0.872937 0.00236029 0) (0.865904 0.00229379 0) (0.858644 0.00221255 0) (0.850177 0.00216105 0) (0.84036 0.00211256 0) (0.829202 0.00200315 0) (0.81805 0.00184352 0) (0.80744 0.00169614 0) (0.798095 0.00158901 0) (0.789536 0.00149837 0) (0.78202 0.00142355 0) (0.774766 0.00138556 0) (0.767726 0.00137588 0) (0.75997 0.00135055 0) (0.751855 0.00130648 0) (0.742935 0.00126431 0) (0.733973 0.00122549 0) (0.724864 0.00116437 0) (0.716561 0.00109613 0) (0.708429 0.00105038 0) (0.700921 0.00102267 0) (0.693273 0.000985625 0) (0.686136 0.000947347 0) (0.678415 0.000922512 0) (0.670843 0.000902561 0) (0.662845 0.000864885 0) (0.6553 0.000829347 0) (0.64728 0.000805205 0) (0.639952 0.000776731 0) (0.632251 0.000743072 0) (0.62519 0.000719911 0) (0.617617 0.000696093 0) (0.610704 0.000671045 0) (0.60316 0.000646534 0) (0.596372 0.000623769 0) (0.588911 0.000600151 0) (0.582322 0.00057925 0) (0.575008 0.000556874 0) (0.568642 0.000537139 0) (0.561465 0.000515587 0) (0.555362 0.000496282 0) (0.548364 0.000476696 0) (0.542538 0.000460819 0) (0.535716 0.000441819 0) (0.530172 0.000426269 0) (0.523522 0.000408964 0) (0.518274 0.000396153 0) (0.511784 0.000380819 0) (0.506813 0.000369744 0) (0.500451 0.000354692 0) (0.495746 0.000344702 0) (0.489482 0.000330964 0) (0.485019 0.000323104 0) (0.478811 0.000310022 0) (0.474583 0.000302948 0) (0.4684 0.00029031 0) (0.4644 0.000284516 0) (0.458204 0.00027199 0) (0.454452 0.000266619 0) (0.44823 0.000254164 0) (0.444746 0.00025011 0) (0.438464 0.000237431 0) (0.435283 0.000233709 0) (0.428933 0.000220584 0) (0.426107 0.000217508 0) (0.419651 0.000203853 0) (0.417291 0.00020087 0) (0.410638 0.000184383 0) (0.408967 0.000177549 0) (0.402208 0.000161041 0) (0.401076 0.000116994 0) (0.395954 5.29335e-05 0) (0.998889 0.016323 0) (1.00232 0.0232327 0) (1.00556 0.0245187 0) (1.00684 0.019435 0) (1.00547 0.013396 0) (1.00236 0.00990525 0) (0.999088 0.00805932 0) (0.996226 0.00694039 0) (0.994232 0.0062019 0) (0.992621 0.00562762 0) (0.99144 0.00524104 0) (0.990845 0.005119 0) (0.991138 0.00508755 0) (0.991572 0.00491923 0) (0.992065 0.00463586 0) (0.992738 0.00441716 0) (0.994332 0.00440516 0) (0.996088 0.00464295 0) (0.996538 0.00499946 0) (0.9936 0.00517488 0) (0.987009 0.005025 0) (0.977407 0.00469297 0) (0.966902 0.00432671 0) (0.956856 0.0039245 0) (0.948711 0.00348263 0) (0.942352 0.00307258 0) (0.937602 0.0027979 0) (0.933296 0.00268307 0) (0.929456 0.00263695 0) (0.925699 0.00256696 0) (0.92232 0.002512 0) (0.918033 0.00253284 0) (0.912039 0.00257742 0) (0.903392 0.00252753 0) (0.893379 0.00236504 0) (0.883018 0.00216756 0) (0.873962 0.00199744 0) (0.865958 0.00184836 0) (0.859415 0.00172586 0) (0.853525 0.00166024 0) (0.84856 0.00165268 0) (0.8432 0.00165203 0) (0.837326 0.00163939 0) (0.829865 0.00162103 0) (0.821697 0.00158953 0) (0.81276 0.0015131 0) (0.804456 0.00141632 0) (0.796307 0.00134392 0) (0.789172 0.00129844 0) (0.782095 0.00124821 0) (0.775834 0.00120535 0) (0.768942 0.00118616 0) (0.762127 0.00117226 0) (0.754488 0.00113259 0) (0.74715 0.00109333 0) (0.739032 0.00106299 0) (0.731646 0.00102477 0) (0.723763 0.000981323 0) (0.716685 0.000952067 0) (0.708982 0.000922793 0) (0.702054 0.000893721 0) (0.694268 0.000864831 0) (0.687293 0.000837566 0) (0.679395 0.000808071 0) (0.672481 0.000781597 0) (0.664638 0.000753083 0) (0.657888 0.000728179 0) (0.650093 0.000700333 0) (0.643524 0.000675217 0) (0.635832 0.000649151 0) (0.629519 0.0006279 0) (0.621983 0.000602637 0) (0.615937 0.000581929 0) (0.608532 0.000558411 0) (0.602777 0.000540703 0) (0.595536 0.000519607 0) (0.590099 0.000504369 0) (0.583 0.000483997 0) (0.577851 0.000470408 0) (0.570847 0.000451808 0) (0.565967 0.00044107 0) (0.559019 0.000423506 0) (0.554398 0.000414068 0) (0.54746 0.000397242 0) (0.543077 0.000389619 0) (0.536097 0.000372958 0) (0.53197 0.000365964 0) (0.524929 0.000349376 0) (0.521082 0.000344136 0) (0.513936 0.000327187 0) (0.510405 0.000322415 0) (0.503141 0.000304741 0) (0.499992 0.000300928 0) (0.492565 0.000282189 0) (0.489931 0.00027884 0) (0.48225 0.000256363 0) (0.480356 0.000247955 0) (0.472535 0.0002265 0) (0.471231 0.00017238 0) (0.464941 9.28092e-05 0) (0.995645 0.0158055 0) (0.999991 0.0225407 0) (1.0044 0.0242562 0) (1.00715 0.0196907 0) (1.00747 0.0136691 0) (1.00579 0.0100416 0) (1.00346 0.00817615 0) (1.00103 0.00708031 0) (0.999176 0.00634409 0) (0.997466 0.00574552 0) (0.996102 0.00531115 0) (0.995266 0.00513275 0) (0.995455 0.00505984 0) (0.995931 0.00487126 0) (0.996651 0.00456876 0) (0.997506 0.00430512 0) (0.999494 0.00423589 0) (1.00225 0.00447376 0) (1.0048 0.00495312 0) (1.00475 0.00534825 0) (1.00138 0.00541627 0) (0.994753 0.00522074 0) (0.986888 0.00488559 0) (0.978943 0.00441925 0) (0.972654 0.00385904 0) (0.968098 0.00333357 0) (0.965394 0.00298646 0) (0.963151 0.00283987 0) (0.961438 0.00277302 0) (0.95987 0.00267365 0) (0.959336 0.00260679 0) (0.958763 0.00268176 0) (0.957087 0.00285255 0) (0.952092 0.002938 0) (0.944381 0.00284655 0) (0.934979 0.00263348 0) (0.926578 0.00239804 0) (0.919351 0.00217627 0) (0.913859 0.00198895 0) (0.909103 0.00186682 0) (0.905999 0.00182629 0) (0.903361 0.00183425 0) (0.90081 0.00187025 0) (0.896228 0.00191358 0) (0.890187 0.00192707 0) (0.882418 0.00186092 0) (0.874767 0.00174545 0) (0.866891 0.00164055 0) (0.860269 0.00156291 0) (0.85394 0.00148489 0) (0.848961 0.00142779 0) (0.843585 0.00141404 0) (0.838484 0.00141571 0) (0.832191 0.0013868 0) (0.825979 0.00135512 0) (0.818505 0.00132588 0) (0.811656 0.00128031 0) (0.80406 0.00122602 0) (0.797442 0.00118878 0) (0.790119 0.00115305 0) (0.783786 0.0011213 0) (0.7764 0.00109109 0) (0.769889 0.00106299 0) (0.762118 0.0010303 0) (0.755391 0.000999673 0) (0.747477 0.000965711 0) (0.740825 0.000936788 0) (0.732857 0.000903934 0) (0.726245 0.000874043 0) (0.718211 0.000841653 0) (0.711756 0.000814918 0) (0.703831 0.000783322 0) (0.697615 0.000757794 0) (0.689735 0.000727999 0) (0.683733 0.000705001 0) (0.675962 0.00067725 0) (0.670294 0.000657214 0) (0.662683 0.000630902 0) (0.657323 0.000613414 0) (0.649784 0.000589342 0) (0.644697 0.000575336 0) (0.637209 0.00055268 0) (0.632404 0.000540719 0) (0.624913 0.000519319 0) (0.62035 0.000509915 0) (0.612775 0.000488771 0) (0.60846 0.00048025 0) (0.600778 0.000459156 0) (0.59674 0.000452935 0) (0.588897 0.00043135 0) (0.585169 0.000425776 0) (0.577139 0.000403066 0) (0.573794 0.000398799 0) (0.565531 0.000374315 0) (0.562716 0.000370822 0) (0.554136 0.000341726 0) (0.552072 0.000331597 0) (0.543316 0.000304599 0) (0.541876 0.00024074 0) (0.534507 0.000144547 0) (0.992876 0.015306 0) (0.997826 0.0216758 0) (1.00311 0.0237602 0) (1.00707 0.0197881 0) (1.00889 0.013869 0) (1.00842 0.0101233 0) (1.00687 0.00825149 0) (1.00474 0.00720451 0) (1.00299 0.00649564 0) (1.00115 0.00588881 0) (0.999576 0.00541364 0) (0.998393 0.00517796 0) (0.998239 0.00505612 0) (0.998356 0.00483662 0) (0.998892 0.00451106 0) (0.999483 0.0042045 0) (1.00113 0.0040665 0) (1.00358 0.00426677 0) (1.00638 0.00482054 0) (1.00721 0.00540045 0) (1.00537 0.00567221 0) (1.00064 0.00561469 0) (0.994918 0.00532522 0) (0.9889 0.00481522 0) (0.984304 0.00414946 0) (0.981112 0.00350785 0) (0.979775 0.00308361 0) (0.97877 0.00290711 0) (0.97826 0.00282388 0) (0.977709 0.00268369 0) (0.978533 0.00256398 0) (0.98008 0.00264145 0) (0.981637 0.00292316 0) (0.980017 0.00318889 0) (0.974942 0.00324357 0) (0.966879 0.00306658 0) (0.959337 0.00277418 0) (0.953023 0.00247044 0) (0.94872 0.00221548 0) (0.94483 0.00202597 0) (0.942797 0.00191376 0) (0.942051 0.00188318 0) (0.942652 0.00195094 0) (0.94147 0.00207958 0) (0.938436 0.00218128 0) (0.932692 0.00216566 0) (0.926428 0.00205896 0) (0.919259 0.00193165 0) (0.913262 0.00181516 0) (0.90755 0.001692 0) (0.903738 0.00160025 0) (0.899956 0.00157781 0) (0.897031 0.001595 0) (0.892798 0.00158832 0) (0.888566 0.0015802 0) (0.882541 0.00156698 0) (0.876903 0.00152389 0) (0.870069 0.00146186 0) (0.864293 0.00141499 0) (0.857687 0.00136919 0) (0.852396 0.00133282 0) (0.845976 0.0013029 0) (0.84062 0.00127904 0) (0.833639 0.00124901 0) (0.827695 0.00121827 0) (0.820207 0.00118042 0) (0.814165 0.00114875 0) (0.806556 0.00111319 0) (0.80044 0.00108152 0) (0.792516 0.00104465 0) (0.786328 0.00101291 0) (0.778403 0.000975071 0) (0.772446 0.000945779 0) (0.76449 0.000911022 0) (0.758591 0.000883553 0) (0.750577 0.00084875 0) (0.744958 0.000823252 0) (0.737118 0.000790428 0) (0.731844 0.000769092 0) (0.724045 0.000739361 0) (0.719008 0.000721907 0) (0.711227 0.000693574 0) (0.706492 0.000678934 0) (0.698707 0.000652684 0) (0.694219 0.000641759 0) (0.686306 0.000616032 0) (0.682041 0.000606288 0) (0.67396 0.000580491 0) (0.669959 0.000573681 0) (0.661659 0.000547352 0) (0.65794 0.000541481 0) (0.649376 0.000513555 0) (0.646006 0.000509335 0) (0.637128 0.000478804 0) (0.634259 0.000475499 0) (0.624997 0.000439543 0) (0.622843 0.000427677 0) (0.613352 0.000394663 0) (0.611833 0.00032178 0) (0.603554 0.000208217 0) (0.990803 0.0147982 0) (0.996167 0.0206991 0) (1.00205 0.0230975 0) (1.00687 0.0197577 0) (1.00984 0.0140138 0) (1.01027 0.0101642 0) (1.00925 0.00828986 0) (1.00728 0.0073067 0) (1.00558 0.00664576 0) (1.00367 0.00604682 0) (1.00203 0.00554036 0) (1.00065 0.00525231 0) (1.00024 0.0050834 0) (0.999956 0.00482781 0) (1.00024 0.00447325 0) (1.00054 0.00412868 0) (1.00179 0.00393094 0) (1.00357 0.00408818 0) (1.00586 0.00469243 0) (1.00652 0.0054236 0) (1.00522 0.00586368 0) (1.00162 0.00591546 0) (0.997581 0.00566037 0) (0.993263 0.00511458 0) (0.990246 0.00436095 0) (0.988151 0.00361781 0) (0.987687 0.00312478 0) (0.987254 0.00292652 0) (0.987261 0.00283715 0) (0.986979 0.00265897 0) (0.988145 0.00246434 0) (0.990317 0.00249532 0) (0.993476 0.00284679 0) (0.993996 0.00329866 0) (0.991058 0.00354867 0) (0.984317 0.00345591 0) (0.977689 0.00311785 0) (0.972276 0.00271967 0) (0.969285 0.00239883 0) (0.966261 0.00215648 0) (0.9647 0.00195924 0) (0.964624 0.00183847 0) (0.96723 0.00189044 0) (0.968843 0.00209847 0) (0.968771 0.00231815 0) (0.965282 0.00239187 0) (0.960829 0.00232701 0) (0.954798 0.00220012 0) (0.949675 0.00205343 0) (0.944479 0.00187774 0) (0.941484 0.0017308 0) (0.938842 0.00167498 0) (0.93785 0.00169281 0) (0.935733 0.00170858 0) (0.933854 0.00173544 0) (0.929818 0.00175537 0) (0.925988 0.0017316 0) (0.920375 0.00167262 0) (0.915758 0.00161945 0) (0.910014 0.00156039 0) (0.905896 0.00151325 0) (0.900675 0.00147942 0) (0.896943 0.00146173 0) (0.891354 0.00144178 0) (0.886799 0.00141899 0) (0.880202 0.00138132 0) (0.875192 0.0013477 0) (0.868409 0.0013109 0) (0.863348 0.00128179 0) (0.856053 0.00124513 0) (0.85056 0.00121051 0) (0.843011 0.00116623 0) (0.837746 0.00113386 0) (0.830187 0.00109666 0) (0.824842 0.00106773 0) (0.816937 0.00102708 0) (0.811661 0.000995685 0) (0.80389 0.00095546 0) (0.799031 0.000930454 0) (0.791305 0.000895588 0) (0.786616 0.000875117 0) (0.778819 0.000840723 0) (0.774418 0.000823136 0) (0.76663 0.000791722 0) (0.762505 0.000779666 0) (0.75456 0.000749575 0) (0.750617 0.000739192 0) (0.742433 0.000708711 0) (0.738723 0.000701801 0) (0.730273 0.000670884 0) (0.726808 0.000665446 0) (0.718018 0.000632547 0) (0.714835 0.000629095 0) (0.705648 0.000592712 0) (0.702891 0.000590097 0) (0.693251 0.000547537 0) (0.691121 0.000534182 0) (0.68118 0.000494954 0) (0.679658 0.000414172 0) (0.670728 0.00028305 0) (0.989293 0.0142931 0) (0.994904 0.0196805 0) (1.00112 0.0223085 0) (1.00643 0.019603 0) (1.01015 0.014112 0) (1.01114 0.0101813 0) (1.01045 0.00830266 0) (1.00852 0.00738944 0) (1.00687 0.00679062 0) (1.00497 0.0062111 0) (1.00344 0.00568003 0) (1.00206 0.00534524 0) (1.0016 0.00513642 0) (1.00102 0.00484513 0) (1.0011 0.00445544 0) (1.00115 0.00407471 0) (1.00211 0.00383147 0) (1.00323 0.00395639 0) (1.00486 0.00460323 0) (1.00503 0.00545705 0) (1.00394 0.00602374 0) (1.00115 0.00614559 0) (0.998486 0.00590313 0) (0.995589 0.00532093 0) (0.993958 0.00449665 0) (0.992743 0.00367667 0) (0.992826 0.00313559 0) (0.992533 0.00292941 0) (0.992641 0.00284298 0) (0.99228 0.00263269 0) (0.993375 0.00235946 0) (0.99533 0.00231827 0) (0.998798 0.00270251 0) (1.00011 0.00332285 0) (0.998461 0.00378294 0) (0.992823 0.00380228 0) (0.987159 0.0034277 0) (0.982567 0.0029201 0) (0.980833 0.00252931 0) (0.978766 0.00226042 0) (0.977543 0.00199707 0) (0.977291 0.00175762 0) (0.980577 0.00173992 0) (0.98373 0.00199774 0) (0.985795 0.00234412 0) (0.984108 0.002532 0) (0.981358 0.00253246 0) (0.976627 0.00242716 0) (0.972651 0.00226804 0) (0.968055 0.00204707 0) (0.965654 0.00183626 0) (0.963588 0.00172489 0) (0.963847 0.00172057 0) (0.963261 0.00174605 0) (0.96343 0.00180697 0) (0.961364 0.00186956 0) (0.959578 0.00188117 0) (0.955498 0.00184105 0) (0.952305 0.00179249 0) (0.947496 0.00172325 0) (0.944443 0.00165988 0) (0.940245 0.00161182 0) (0.938143 0.00159359 0) (0.934231 0.00158674 0) (0.931527 0.00158236 0) (0.926213 0.00155373 0) (0.922489 0.00152012 0) (0.916774 0.00148079 0) (0.913168 0.00145687 0) (0.906989 0.00142756 0) (0.902596 0.00139565 0) (0.89571 0.00134524 0) (0.891446 0.00130848 0) (0.884717 0.00127062 0) (0.880405 0.0012453 0) (0.873029 0.00120314 0) (0.868382 0.00116689 0) (0.860937 0.00111787 0) (0.856783 0.00108866 0) (0.849487 0.00104968 0) (0.84546 0.00102774 0) (0.83794 0.000987653 0) (0.834111 0.000966824 0) (0.826602 0.000929647 0) (0.823106 0.000916669 0) (0.81546 0.0008827 0) (0.812111 0.000872617 0) (0.804147 0.000837818 0) (0.800969 0.00083126 0) (0.792713 0.00079607 0) (0.789749 0.000791869 0) (0.781101 0.000754698 0) (0.77833 0.000752903 0) (0.769212 0.000711406 0) (0.766754 0.000710184 0) (0.757117 0.000661831 0) (0.755157 0.000647578 0) (0.745134 0.000602392 0) (0.743703 0.00051526 0) (0.734473 0.000367201 0) (0.988091 0.013796 0) (0.993738 0.0186623 0) (1.00005 0.021416 0) (1.00548 0.0193304 0) (1.00958 0.0141797 0) (1.0109 0.0101979 0) (1.01044 0.00830612 0) (1.00854 0.00745981 0) (1.00699 0.00692822 0) (1.0052 0.00637304 0) (1.00392 0.00581894 0) (1.00271 0.00544032 0) (1.00238 0.00519989 0) (1.00168 0.00487869 0) (1.00164 0.00445306 0) (1.00147 0.00403819 0) (1.00222 0.00376274 0) (1.00279 0.00386997 0) (1.00384 0.00455599 0) (1.0036 0.0055045 0) (1.00277 0.00615601 0) (1.00072 0.00631174 0) (0.999217 0.00606417 0) (0.997411 0.00544506 0) (0.996851 0.00456598 0) (0.996243 0.0036966 0) (0.99663 0.00313327 0) (0.99625 0.00293501 0) (0.996275 0.00285684 0) (0.995723 0.00261636 0) (0.996671 0.00226994 0) (0.998105 0.00215399 0) (1.00119 0.00255205 0) (1.00237 0.0033173 0) (1.00131 0.0039738 0) (0.996577 0.00410648 0) (0.992007 0.00370023 0) (0.988191 0.0030744 0) (0.98747 0.00260529 0) (0.986293 0.00233148 0) (0.985521 0.0020383 0) (0.984835 0.00168307 0) (0.987885 0.00155896 0) (0.991329 0.00183059 0) (0.994438 0.0022955 0) (0.993772 0.00260578 0) (0.992253 0.00267911 0) (0.988662 0.00260365 0) (0.985942 0.00244659 0) (0.982119 0.00219569 0) (0.980314 0.00192703 0) (0.978476 0.00175121 0) (0.979311 0.00170683 0) (0.979426 0.00172462 0) (0.980865 0.00180775 0) (0.980207 0.00190974 0) (0.980207 0.00196304 0) (0.97766 0.00195414 0) (0.976013 0.00192448 0) (0.972215 0.00185651 0) (0.970084 0.00177927 0) (0.966522 0.0017073 0) (0.965613 0.00167331 0) (0.96318 0.00167184 0) (0.962444 0.0016922 0) (0.958664 0.00168561 0) (0.956331 0.00165861 0) (0.951666 0.00161377 0) (0.949582 0.00159235 0) (0.944823 0.00157644 0) (0.941845 0.00155693 0) (0.935811 0.00150365 0) (0.932642 0.00145913 0) (0.92698 0.00141872 0) (0.924073 0.0014016 0) (0.917659 0.00136576 0) (0.913914 0.00132922 0) (0.906985 0.00127049 0) (0.9037 0.00123481 0) (0.897137 0.00119207 0) (0.894056 0.00117129 0) (0.88711 0.00112741 0) (0.884029 0.00110356 0) (0.877034 0.00105972 0) (0.874348 0.00104536 0) (0.867307 0.00100789 0) (0.86478 0.000999342 0) (0.857354 0.000961188 0) (0.854894 0.000955383 0) (0.847158 0.000916189 0) (0.844898 0.000913813 0) (0.836776 0.000873406 0) (0.834615 0.000874226 0) (0.825973 0.000828812 0) (0.823997 0.000829824 0) (0.814788 0.000777017 0) (0.813151 0.000762753 0) (0.803476 0.000712454 0) (0.802239 0.000620889 0) (0.793144 0.000457574 0) (0.987023 0.0133002 0) (0.992472 0.0176817 0) (0.99865 0.0204538 0) (1.00389 0.0189558 0) (1.00813 0.0142294 0) (1.00965 0.0102311 0) (1.00945 0.00830979 0) (1.00766 0.00751712 0) (1.00629 0.00704828 0) (1.00468 0.006518 0) (1.00374 0.0059406 0) (1.00278 0.00551981 0) (1.0027 0.00525583 0) (1.00202 0.00491482 0) (1.00199 0.00446049 0) (1.00164 0.00401767 0) (1.0022 0.00372125 0) (1.00232 0.00382262 0) (1.00294 0.00454124 0) (1.00247 0.0055535 0) (1.00205 0.00625082 0) (1.00073 0.00641405 0) (1.0002 0.00615528 0) (0.999144 0.00550535 0) (0.999283 0.00458726 0) (0.998979 0.00369315 0) (0.999471 0.0031297 0) (0.998925 0.00295135 0) (0.998858 0.00288326 0) (0.998125 0.00261143 0) (0.998953 0.00220064 0) (0.999814 0.00202123 0) (1.00226 0.00242888 0) (1.00292 0.00331666 0) (1.00209 0.00413837 0) (0.998184 0.0043634 0) (0.994852 0.00392666 0) (0.991815 0.00318762 0) (0.991782 0.00263662 0) (0.991217 0.00236794 0) (0.990973 0.00207871 0) (0.989968 0.00163246 0) (0.992393 0.00139198 0) (0.995265 0.0016497 0) (0.998499 0.00221574 0) (0.998164 0.00264299 0) (0.997376 0.00278346 0) (0.99461 0.00273236 0) (0.99305 0.00258153 0) (0.990096 0.00231491 0) (0.98898 0.00200346 0) (0.987283 0.0017691 0) (0.988272 0.00167961 0) (0.988409 0.0016778 0) (0.990292 0.00176837 0) (0.990259 0.00189675 0) (0.991436 0.00198543 0) (0.9901 0.00200986 0) (0.989888 0.00200901 0) (0.987134 0.00195736 0) (0.985857 0.00187866 0) (0.982618 0.001782 0) (0.982295 0.00171616 0) (0.980769 0.00170162 0) (0.981683 0.00174212 0) (0.979449 0.00176899 0) (0.978499 0.00176114 0) (0.974719 0.00171061 0) (0.973886 0.00168347 0) (0.970538 0.00168116 0) (0.969102 0.00168505 0) (0.964029 0.00163706 0) (0.961862 0.00158183 0) (0.95725 0.00153222 0) (0.95585 0.0015235 0) (0.95073 0.00150275 0) (0.948118 0.00147516 0) (0.941847 0.00140861 0) (0.939423 0.00136266 0) (0.933761 0.00131409 0) (0.931804 0.00129694 0) (0.925702 0.00125303 0) (0.923472 0.00122781 0) (0.917157 0.00117664 0) (0.91533 0.00115948 0) (0.909115 0.00111812 0) (0.90754 0.0011122 0) (0.900937 0.00107246 0) (0.899283 0.00106801 0) (0.892332 0.00102491 0) (0.890878 0.00102435 0) (0.883621 0.000981785 0) (0.882201 0.000986086 0) (0.874411 0.00093821 0) (0.873049 0.000942239 0) (0.864683 0.00088672 0) (0.863493 0.000873415 0) (0.854613 0.000819436 0) (0.85366 0.000725542 0) (0.845179 0.000549827 0) (0.986069 0.0127985 0) (0.991119 0.0167787 0) (0.996999 0.0194631 0) (1.00185 0.0184982 0) (1.00606 0.0142661 0) (1.00776 0.0102891 0) (1.00788 0.00831466 0) (1.0063 0.00755218 0) (1.00519 0.00713542 0) (1.0038 0.00663201 0) (1.00321 0.00603544 0) (1.00251 0.00557605 0) (1.00271 0.00529514 0) (1.00215 0.00494428 0) (1.0022 0.00447297 0) (1.0017 0.00401259 0) (1.00211 0.00370471 0) (1.00187 0.00380706 0) (1.00221 0.00454633 0) (1.00169 0.00558919 0) (1.00175 0.00629917 0) (1.00107 0.00645501 0) (1.00129 0.00619041 0) (1.00071 0.00552317 0) (1.00122 0.00458234 0) (1.00097 0.00368281 0) (1.00143 0.00313241 0) (1.00073 0.00297781 0) (1.00065 0.00291887 0) (0.999813 0.00261545 0) (1.00055 0.002152 0) (1.00087 0.00192642 0) (1.00264 0.00234461 0) (1.00274 0.00333185 0) (1.00209 0.00427926 0) (0.999023 0.0045644 0) (0.996974 0.00409764 0) (0.994696 0.00326541 0) (0.995048 0.00264022 0) (0.994739 0.00237721 0) (0.994958 0.00211155 0) (0.993838 0.00160613 0) (0.9956 0.00126265 0) (0.997486 0.0014925 0) (1.00029 0.00213808 0) (0.999888 0.00266697 0) (0.999515 0.00286163 0) (0.997306 0.00282221 0) (0.996681 0.0026728 0) (0.994554 0.00239888 0) (0.994149 0.00206146 0) (0.992623 0.00178379 0) (0.993591 0.00165648 0) (0.993395 0.00163302 0) (0.995143 0.00172047 0) (0.995093 0.00185965 0) (0.996782 0.00196882 0) (0.996185 0.00201797 0) (0.997079 0.00204685 0) (0.995287 0.00202314 0) (0.994829 0.00196068 0) (0.991809 0.00185014 0) (0.9916 0.00174431 0) (0.99035 0.00169493 0) (0.99228 0.00173923 0) (0.991331 0.00180252 0) (0.991642 0.00182859 0) (0.988585 0.00177873 0) (0.988559 0.00173656 0) (0.986325 0.00174034 0) (0.986298 0.00177513 0) (0.982214 0.00174427 0) (0.980862 0.00167873 0) (0.977112 0.00161094 0) (0.977009 0.00160457 0) (0.973283 0.00160428 0) (0.971921 0.00159759 0) (0.966438 0.00152991 0) (0.964734 0.00147034 0) (0.959974 0.00141078 0) (0.959136 0.00139761 0) (0.954071 0.00135835 0) (0.952714 0.00133532 0) (0.947185 0.00127738 0) (0.946129 0.00125553 0) (0.940837 0.00120859 0) (0.940201 0.00120535 0) (0.934632 0.00116641 0) (0.933772 0.0011646 0) (0.927768 0.00111769 0) (0.927088 0.00111802 0) (0.920934 0.00107399 0) (0.920277 0.00108234 0) (0.913625 0.00103351 0) (0.912916 0.00104098 0) (0.905738 0.000984661 0) (0.905048 0.000973068 0) (0.897359 0.000917227 0) (0.89674 0.000822971 0) (0.88933 0.000638727 0) (0.985306 0.0122852 0) (0.989836 0.0159783 0) (0.995334 0.0184776 0) (0.999701 0.0179741 0) (1.0038 0.0142867 0) (1.00567 0.0103698 0) (1.00617 0.0083151 0) (1.00487 0.0075535 0) (1.00405 0.00717825 0) (1.00288 0.00670856 0) (1.0026 0.00610404 0) (1.00212 0.00561235 0) (1.00258 0.00531776 0) (1.00214 0.00496276 0) (1.00231 0.00448554 0) (1.00172 0.0040199 0) (1.002 0.00370935 0) (1.0015 0.00381565 0) (1.00167 0.00456057 0) (1.00119 0.00560293 0) (1.00169 0.00630109 0) (1.0015 0.00644399 0) (1.00224 0.00618456 0) (1.00193 0.0055168 0) (1.0026 0.0045689 0) (1.00226 0.0036776 0) (1.00261 0.00314442 0) (1.00181 0.00300904 0) (1.00182 0.0029563 0) (1.00097 0.00262453 0) (1.00163 0.00212345 0) (1.00146 0.00187054 0) (1.00262 0.00229876 0) (1.00228 0.00335844 0) (1.00191 0.00438995 0) (0.999689 0.00470313 0) (0.998812 0.00420969 0) (0.997202 0.00331444 0) (0.997708 0.00263327 0) (0.997374 0.00237192 0) (0.997896 0.00213415 0) (0.996808 0.00159806 0) (0.998012 0.00117869 0) (0.998837 0.00137844 0) (1.00098 0.00207992 0) (1.00041 0.00268835 0) (1.00033 0.00292225 0) (0.998534 0.00288206 0) (0.998588 0.00272603 0) (0.99714 0.00244809 0) (0.997342 0.00209908 0) (0.996006 0.00179581 0) (0.996897 0.00164444 0) (0.996294 0.00160497 0) (0.997647 0.00168502 0) (0.997259 0.00182243 0) (0.998972 0.00193524 0) (0.998694 0.00199469 0) (1.00026 0.00204632 0) (0.999232 0.00205477 0) (0.999495 0.0020243 0) (0.996753 0.00191792 0) (0.996454 0.0017753 0) (0.995065 0.00167503 0) (0.997331 0.00170118 0) (0.997222 0.00179292 0) (0.998534 0.00186351 0) (0.996116 0.00182659 0) (0.99648 0.00176453 0) (0.994942 0.00176214 0) (0.995958 0.00182852 0) (0.992803 0.00182637 0) (0.992065 0.0017548 0) (0.988976 0.00166151 0) (0.989753 0.00164748 0) (0.98726 0.00166676 0) (0.98707 0.00169124 0) (0.982489 0.0016333 0) (0.981324 0.00155985 0) (0.977347 0.00148242 0) (0.977428 0.00147015 0) (0.97347 0.00143932 0) (0.972912 0.00142334 0) (0.968231 0.00136108 0) (0.967767 0.00133324 0) (0.963374 0.00127806 0) (0.963509 0.00127572 0) (0.959077 0.00123972 0) (0.958906 0.00124279 0) (0.953908 0.00119268 0) (0.953841 0.0011921 0) (0.948892 0.00114651 0) (0.948903 0.00115898 0) (0.943542 0.00111056 0) (0.943409 0.00112129 0) (0.937633 0.00106596 0) (0.937402 0.00105635 0) (0.931178 0.00100049 0) (0.930879 0.000907331 0) (0.924893 0.00071893 0) (0.984824 0.011751 0) (0.988796 0.0152787 0) (0.993903 0.0175201 0) (0.99778 0.0173938 0) (1.0017 0.0142749 0) (1.00376 0.0104629 0) (1.00465 0.00830836 0) (1.00366 0.00751965 0) (1.0031 0.00717782 0) (1.00213 0.00674968 0) (1.00209 0.00615144 0) (1.00177 0.00563449 0) (1.00241 0.0053262 0) (1.00207 0.00496891 0) (1.00234 0.0044944 0) (1.0017 0.00403528 0) (1.0019 0.00373027 0) (1.00123 0.0038415 0) (1.00131 0.00457768 0) (1.0009 0.00559487 0) (1.00171 0.00626614 0) (1.00182 0.00639576 0) (1.00288 0.00615114 0) (1.00272 0.00549767 0) (1.00344 0.0045563 0) (1.00299 0.00368237 0) (1.00323 0.00316499 0) (1.00238 0.00303922 0) (1.00254 0.00298876 0) (1.00173 0.0026353 0) (1.00233 0.0021136 0) (1.00175 0.00185109 0) (1.00241 0.00228549 0) (1.00178 0.00338694 0) (1.00177 0.00446308 0) (1.00034 0.00477985 0) (1.0004 0.00426779 0) (0.99931 0.0033426 0) (0.999823 0.00262831 0) (0.999321 0.0023637 0) (0.999985 0.002148 0) (0.99899 0.00160244 0) (0.999763 0.00113841 0) (0.999665 0.00131236 0) (1.00116 0.00204532 0) (1.00047 0.00270773 0) (1.00066 0.00296713 0) (0.999217 0.00291842 0) (0.999713 0.00274963 0) (0.998759 0.00246875 0) (0.999372 0.00211902 0) (0.9982 0.00180567 0) (0.99899 0.00164429 0) (0.998063 0.00159716 0) (0.998993 0.0016697 0) (0.998242 0.00179772 0) (0.999725 0.00190051 0) (0.999508 0.00195604 0) (1.00135 0.00202022 0) (1.00082 0.00205825 0) (1.00161 0.00206856 0) (0.999248 0.00198416 0) (0.998862 0.00181627 0) (0.997237 0.00165955 0) (0.999334 0.00164858 0) (0.999602 0.00175333 0) (1.00154 0.00187046 0) (0.999723 0.00186007 0) (1.00021 0.00178028 0) (0.999005 0.00176007 0) (1.0006 0.00185234 0) (0.99824 0.00188625 0) (0.997938 0.00181449 0) (0.995391 0.00169265 0) (0.996609 0.00166188 0) (0.995017 0.00169459 0) (0.995715 0.00175467 0) (0.992102 0.00171797 0) (0.99133 0.00163466 0) (0.987995 0.00153358 0) (0.988665 0.00151644 0) (0.985739 0.00149533 0) (0.985821 0.00149097 0) (0.982004 0.0014283 0) (0.981931 0.00139483 0) (0.978339 0.00132889 0) (0.978965 0.00132383 0) (0.975644 0.00129162 0) (0.975996 0.00130246 0) (0.971977 0.00125078 0) (0.972277 0.00124708 0) (0.968497 0.00119885 0) (0.968984 0.00121487 0) (0.964923 0.00116811 0) (0.96519 0.00118121 0) (0.96087 0.00112821 0) (0.960971 0.00112028 0) (0.956311 0.0010659 0) (0.956255 0.000974524 0) (0.951868 0.000786048 0) (0.98467 0.0111851 0) (0.988112 0.0146633 0) (0.992855 0.016614 0) (0.9963 0.0167675 0) (1.00001 0.0142071 0) (1.00222 0.0105573 0) (1.00347 0.00829851 0) (1.00277 0.00745825 0) (1.00244 0.00714067 0) (1.0016 0.0067579 0) (1.00173 0.00617954 0) (1.00152 0.00564568 0) (1.00227 0.00532385 0) (1.002 0.00496542 0) (1.00231 0.00449988 0) (1.00166 0.00405592 0) (1.00182 0.00376273 0) (1.00105 0.00387891 0) (1.0011 0.00459504 0) (1.00074 0.00557059 0) (1.00173 0.00620771 0) (1.00198 0.00632522 0) (1.0032 0.00609992 0) (1.00315 0.00547077 0) (1.00388 0.00454687 0) (1.00334 0.0036964 0) (1.00351 0.0031915 0) (1.00267 0.00306499 0) (1.00295 0.00301298 0) (1.00223 0.00264624 0) (1.00274 0.00212021 0) (1.00188 0.00186265 0) (1.00214 0.0022973 0) (1.00137 0.00340982 0) (1.00171 0.00449641 0) (1.00096 0.00480206 0) (1.00166 0.00428315 0) (1.00093 0.00335765 0) (1.00137 0.00263165 0) (1.00069 0.00235966 0) (1.00137 0.00215634 0) (1.00048 0.0016155 0) (1.00093 0.00113522 0) (1.00015 0.00128948 0) (1.0011 0.00203062 0) (1.00041 0.00272175 0) (1.00084 0.00299553 0) (0.999731 0.00293611 0) (1.00047 0.00275267 0) (0.999838 0.00246997 0) (1.00064 0.00212727 0) (0.999594 0.00181515 0) (1.00026 0.00165428 0) (0.999149 0.00160653 0) (0.999732 0.00167262 0) (0.998758 0.00178789 0) (0.999938 0.00187246 0) (0.999677 0.001914 0) (1.00148 0.00198175 0) (1.00121 0.00204311 0) (1.00228 0.00209493 0) (1.00037 0.00204444 0) (0.999987 0.00186506 0) (0.998254 0.00165617 0) (0.999927 0.00159793 0) (1.00023 0.00169935 0) (1.00238 0.0018563 0) (1.00112 0.00188212 0) (1.0016 0.00179233 0) (1.00054 0.00174731 0) (1.00228 0.00185641 0) (1.00056 0.00192799 0) (1.00054 0.00186044 0) (0.998511 0.00171115 0) (0.999835 0.00165959 0) (0.998791 0.00169814 0) (0.999975 0.00179111 0) (0.997311 0.00178342 0) (0.996845 0.00169733 0) (0.994059 0.00157055 0) (0.994968 0.00154234 0) (0.992897 0.00152943 0) (0.993399 0.00153942 0) (0.990415 0.00148043 0) (0.990559 0.00144348 0) (0.987651 0.00136581 0) (0.988458 0.00135354 0) (0.986109 0.00132398 0) (0.986789 0.0013453 0) (0.983663 0.00129488 0) (0.984074 0.0012861 0) (0.981321 0.0012334 0) (0.98205 0.00125178 0) (0.979175 0.00120777 0) (0.979613 0.00122182 0) (0.976647 0.00117183 0) (0.976907 0.00116482 0) (0.973726 0.0011128 0) (0.973797 0.00102318 0) (0.970973 0.000837634 0) (0.984825 0.0105806 0) (0.987799 0.0141052 0) (0.992212 0.0157754 0) (0.99531 0.0161043 0) (0.99878 0.0140645 0) (1.00108 0.0106464 0) (1.00264 0.00829417 0) (1.00222 0.00738069 0) (1.00205 0.00707347 0) (1.0013 0.00673537 0) (1.00151 0.00618907 0) (1.00137 0.00564945 0) (1.00217 0.00531652 0) (1.00194 0.00495814 0) (1.00225 0.00450475 0) (1.00161 0.00407975 0) (1.00174 0.00380173 0) (1.00095 0.00392259 0) (1.00097 0.00461141 0) (1.00067 0.00553614 0) (1.00171 0.00613671 0) (1.00202 0.00624307 0) (1.00329 0.00603673 0) (1.00335 0.0054373 0) (1.00406 0.00453946 0) (1.0035 0.00371632 0) (1.00362 0.00322109 0) (1.00282 0.0030858 0) (1.00318 0.0030293 0) (1.00254 0.00265753 0) (1.00295 0.00214043 0) (1.00193 0.00189799 0) (1.00192 0.00232682 0) (1.0011 0.00342409 0) (1.0017 0.00449418 0) (1.00147 0.00478216 0) (1.00253 0.00426905 0) (1.00204 0.00336559 0) (1.00239 0.00264429 0) (1.0016 0.00236223 0) (1.00222 0.00216238 0) (1.00143 0.00163511 0) (1.00163 0.00116035 0) (1.00043 0.0013001 0) (1.00098 0.00202951 0) (1.00036 0.00272769 0) (1.00097 0.00300771 0) (1.00018 0.00293952 0) (1.00099 0.00274354 0) (1.00056 0.00246085 0) (1.00138 0.00213022 0) (1.00042 0.00182626 0) (1.00093 0.00167185 0) (0.99979 0.00162757 0) (1.00012 0.00168759 0) (0.999104 0.00178955 0) (0.99999 0.00185312 0) (0.999679 0.001876 0) (1.00124 0.00194176 0) (1.00107 0.0020195 0) (1.00218 0.00210722 0) (1.00074 0.00209463 0) (1.00043 0.00191499 0) (0.998804 0.00166422 0) (0.999998 0.00155847 0) (1.00016 0.00164476 0) (1.00217 0.00182952 0) (1.00139 0.00189435 0) (1.00182 0.00180402 0) (1.00085 0.00173301 0) (1.00244 0.0018498 0) (1.00124 0.00195577 0) (1.00137 0.00189405 0) (0.999857 0.00172072 0) (1.00109 0.00165033 0) (1.00033 0.00168944 0) (1.00162 0.00180727 0) (0.999791 0.00182999 0) (0.999587 0.00174866 0) (0.997315 0.00159866 0) (0.998194 0.00155532 0) (0.996753 0.00154718 0) (0.997452 0.00157171 0) (0.995217 0.0015193 0) (0.995458 0.00148208 0) (0.993133 0.0013939 0) (0.993871 0.00137066 0) (0.992277 0.00134085 0) (0.993096 0.00137422 0) (0.990746 0.00132864 0) (0.991071 0.00131371 0) (0.989145 0.00125439 0) (0.989895 0.00127351 0) (0.988009 0.00123329 0) (0.988404 0.00124675 0) (0.986574 0.00119967 0) (0.986824 0.00119262 0) (0.984897 0.00114317 0) (0.984973 0.0010548 0) (0.983495 0.00087365 0) (0.985223 0.00994573 0) (0.987805 0.0135704 0) (0.991903 0.0150115 0) (0.994742 0.0154165 0) (0.997946 0.0138428 0) (1.00029 0.0107262 0) (1.00208 0.00830228 0) (1.00191 0.00729793 0) (1.00184 0.00698361 0) (1.00115 0.00668672 0) (1.00138 0.00618178 0) (1.0013 0.00564891 0) (1.0021 0.00530885 0) (1.00191 0.00495162 0) (1.00218 0.00451086 0) (1.00156 0.00410524 0) (1.00167 0.00384355 0) (1.00091 0.00396871 0) (1.00091 0.00462655 0) (1.00065 0.00549638 0) (1.00167 0.00605999 0) (1.00202 0.0061555 0) (1.00326 0.00596502 0) (1.00343 0.00539744 0) (1.00411 0.00453217 0) (1.00358 0.0037386 0) (1.00367 0.00325158 0) (1.00294 0.00310303 0) (1.00331 0.00304021 0) (1.00274 0.00267031 0) (1.00304 0.00217128 0) (1.00196 0.00194963 0) (1.00176 0.0023678 0) (1.00096 0.00343034 0) (1.00171 0.00446469 0) (1.00185 0.00473358 0) (1.00305 0.0042371 0) (1.00272 0.00336991 0) (1.00298 0.00266409 0) (1.00216 0.00237089 0) (1.00268 0.00216857 0) (1.00197 0.00166 0) (1.00199 0.00120476 0) (1.00061 0.0013334 0) (1.00087 0.00203633 0) (1.00037 0.00272537 0) (1.00107 0.00300591 0) (1.00055 0.0029329 0) (1.00133 0.00272902 0) (1.00101 0.00244857 0) (1.00172 0.00213262 0) (1.00086 0.00184006 0) (1.00121 0.00169416 0) (1.00015 0.0016548 0) (1.0003 0.00170821 0) (0.999383 0.0017979 0) (1.00001 0.00184183 0) (0.999677 0.00184591 0) (1.00089 0.00190749 0) (1.00074 0.00199556 0) (1.00171 0.00210999 0) (1.00071 0.00213245 0) (1.00052 0.00195929 0) (0.999167 0.00167898 0) (0.999929 0.00153305 0) (0.999925 0.00159905 0) (1.00155 0.00179856 0) (1.00114 0.00189841 0) (1.00152 0.00181523 0) (1.00068 0.00172144 0) (1.00197 0.00183872 0) (1.00118 0.00197295 0) (1.00138 0.00191646 0) (1.00035 0.00172319 0) (1.00141 0.00164005 0) (1.00079 0.00167817 0) (1.00191 0.00181085 0) (1.00075 0.00185923 0) (1.00078 0.00178827 0) (0.999006 0.00162113 0) (0.999708 0.00156215 0) (0.998684 0.00155485 0) (0.999406 0.00159187 0) (0.997791 0.00154705 0) (0.99806 0.00151261 0) (0.996235 0.00141707 0) (0.996763 0.00138112 0) (0.995693 0.00134737 0) (0.996495 0.00139265 0) (0.994789 0.00135535 0) (0.994922 0.00133436 0) (0.993615 0.00126665 0) (0.994225 0.00128477 0) (0.993096 0.00124922 0) (0.9933 0.00126082 0) (0.99233 0.00121591 0) (0.992451 0.00120792 0) (0.991474 0.00116068 0) (0.991466 0.00107303 0) (0.991011 0.000896196 0) (0.985775 0.00930357 0) (0.98804 0.0130276 0) (0.991819 0.0143238 0) (0.99447 0.0147197 0) (0.997399 0.0135488 0) (0.999739 0.0107896 0) (1.00168 0.00832507 0) (1.00174 0.00721833 0) (1.00174 0.00687991 0) (1.00109 0.00661881 0) (1.0013 0.00616019 0) (1.00127 0.00564548 0) (1.00203 0.00530294 0) (1.00189 0.00494819 0) (1.00209 0.00451916 0) (1.00152 0.00413152 0) (1.0016 0.00388624 0) (1.0009 0.00401491 0) (1.00088 0.00464045 0) (1.00067 0.00545439 0) (1.00163 0.0059809 0) (1.00202 0.00606549 0) (1.0032 0.00588727 0) (1.00347 0.00535157 0) (1.00411 0.00452348 0) (1.00363 0.00376059 0) (1.00371 0.00328174 0) (1.00304 0.00311883 0) (1.00337 0.00304883 0) (1.00287 0.00268582 0) (1.00305 0.00221014 0) (1.00199 0.00201133 0) (1.00167 0.00241562 0) (1.00093 0.00343105 0) (1.00171 0.00441723 0) (1.00209 0.00466792 0) (1.00329 0.0041956 0) (1.00309 0.00337192 0) (1.00327 0.00268787 0) (1.00249 0.00238402 0) (1.0029 0.00217657 0) (1.00226 0.00168925 0) (1.00213 0.00126052 0) (1.00074 0.00138 0) (1.0008 0.00204745 0) (1.00043 0.00271672 0) (1.00112 0.00299376 0) (1.00084 0.00292005 0) (1.0015 0.00271381 0) (1.00126 0.00243764 0) (1.00181 0.00213691 0) (1.00106 0.0018565 0) (1.00125 0.00171866 0) (1.00034 0.00168394 0) (1.00035 0.00172986 0) (0.99962 0.00180908 0) (1.00002 0.00183723 0) (0.999703 0.00182526 0) (1.00054 0.0018826 0) (1.00039 0.00197626 0) (1.00113 0.00210715 0) (1.00052 0.00215753 0) (1.00043 0.00199357 0) (0.99944 0.00169555 0) (0.999851 0.0015206 0) (0.999716 0.00156677 0) (1.00086 0.00177009 0) (1.00071 0.00189642 0) (1.00103 0.00182445 0) (1.00038 0.00171335 0) (1.00134 0.00182644 0) (1.00089 0.00198174 0) (1.00111 0.00192928 0) (1.00048 0.0017201 0) (1.00134 0.0016314 0) (1.00081 0.00166967 0) (1.00165 0.00180829 0) (1.00098 0.0018739 0) (1.00119 0.00181593 0) (0.999882 0.00163928 0) (1.00037 0.00156751 0) (0.999597 0.00155768 0) (1.00024 0.00160389 0) (0.999098 0.00156605 0) (0.999358 0.00153644 0) (0.997958 0.00143747 0) (0.998247 0.0013895 0) (0.997493 0.00134863 0) (0.998174 0.00140397 0) (0.996976 0.00137737 0) (0.996904 0.00135139 0) (0.996031 0.0012744 0) (0.996416 0.00129001 0) (0.995821 0.00125978 0) (0.995771 0.00126874 0) (0.99539 0.00122488 0) (0.995324 0.00121531 0) (0.994994 0.00116954 0) (0.994858 0.00108232 0) (0.995084 0.000908642 0) (0.986402 0.0086825 0) (0.988419 0.0124533 0) (0.991858 0.0137054 0) (0.994371 0.0140299 0) (0.997031 0.0131922 0) (0.999321 0.010824 0) (1.00135 0.00836405 0) (1.00164 0.00714921 0) (1.00168 0.00677175 0) (1.00108 0.00653727 0) (1.00123 0.00612558 0) (1.00126 0.00563818 0) (1.00197 0.00529866 0) (1.00187 0.00494852 0) (1.002 0.00453059 0) (1.00149 0.00415855 0) (1.00153 0.00392919 0) (1.00092 0.0040599 0) (1.00088 0.00465258 0) (1.00072 0.00541132 0) (1.00159 0.00590034 0) (1.00203 0.00597387 0) (1.00313 0.00580524 0) (1.00349 0.00530058 0) (1.00407 0.00451276 0) (1.00367 0.00378094 0) (1.00372 0.00331111 0) (1.00313 0.00313492 0) (1.00339 0.00305747 0) (1.00296 0.00270468 0) (1.00301 0.00225472 0) (1.00203 0.00207836 0) (1.00162 0.00246694 0) (1.00096 0.00342862 0) (1.00171 0.0043596 0) (1.00224 0.00459361 0) (1.00335 0.00414978 0) (1.00327 0.00337198 0) (1.00338 0.00271297 0) (1.00269 0.00240013 0) (1.00296 0.00218732 0) (1.0024 0.00172206 0) (1.00215 0.00132164 0) (1.00086 0.00143313 0) (1.00077 0.00206109 0) (1.00052 0.00270445 0) (1.00114 0.00297505 0) (1.00104 0.00290391 0) (1.00156 0.00270047 0) (1.00139 0.00243013 0) (1.00175 0.00214372 0) (1.00113 0.00187486 0) (1.00117 0.0017435 0) (1.00046 0.00171237 0) (1.00035 0.00175013 0) (0.999818 0.00182092 0) (1.00002 0.001838 0) (0.999747 0.00181392 0) (1.00024 0.00186782 0) (1.00009 0.00196346 0) (1.00058 0.00210141 0) (1.00029 0.00217104 0) (1.00028 0.00201644 0) (0.999651 0.00171075 0) (0.999791 0.00151853 0) (0.999586 0.00154842 0) (1.00027 0.00174794 0) (1.00028 0.00189051 0) (1.00055 0.00183033 0) (1.00011 0.0017078 0) (1.00076 0.00181435 0) (1.00058 0.00198353 0) (1.00081 0.00193446 0) (1.00047 0.00171343 0) (1.00114 0.00162506 0) (1.00069 0.00166527 0) (1.00127 0.00180362 0) (1.00092 0.00187761 0) (1.00126 0.00183257 0) (1.00034 0.00165348 0) (1.00065 0.00157377 0) (1.00001 0.00155919 0) (1.00055 0.00161106 0) (0.999732 0.00157874 0) (0.999967 0.00155469 0) (0.998913 0.00145584 0) (0.999008 0.00139851 0) (0.998415 0.00134873 0) (0.998921 0.0014111 0) (0.998104 0.00139606 0) (0.997873 0.00136675 0) (0.997289 0.00128072 0) (0.997428 0.00129276 0) (0.997181 0.00126807 0) (0.996886 0.00127416 0) (0.996869 0.00123018 0) (0.996613 0.00121867 0) (0.996677 0.00117346 0) (0.996411 0.00108679 0) (0.997031 0.000914578 0) (0.987048 0.00811125 0) (0.988877 0.011842 0) (0.991954 0.013145 0) (0.994353 0.0133622 0) (0.996764 0.0127813 0) (0.99897 0.0108136 0) (1.00104 0.0084179 0) (1.00155 0.00709519 0) (1.00163 0.00666583 0) (1.00108 0.00644512 0) (1.00115 0.00607708 0) (1.00124 0.00562289 0) (1.00189 0.00529366 0) (1.00185 0.00495158 0) (1.0019 0.00454555 0) (1.00146 0.00418634 0) (1.00147 0.00397155 0) (1.00095 0.00410243 0) (1.00089 0.00466179 0) (1.00078 0.00536704 0) (1.00157 0.00581861 0) (1.00205 0.00588084 0) (1.00306 0.00572038 0) (1.00349 0.00524574 0) (1.004 0.00450006 0) (1.00369 0.0037993 0) (1.00371 0.00333954 0) (1.0032 0.00315213 0) (1.00338 0.0030673 0) (1.00301 0.00272682 0) (1.00295 0.00230323 0) (1.00206 0.00214764 0) (1.00161 0.00251953 0) (1.00104 0.00342458 0) (1.00171 0.00429706 0) (1.00233 0.0045157 0) (1.00332 0.00410231 0) (1.00333 0.00337012 0) (1.00339 0.00273769 0) (1.0028 0.0024182 0) (1.00296 0.00220118 0) (1.00246 0.00175779 0) (1.00211 0.00138443 0) (1.00098 0.00148865 0) (1.00076 0.00207654 0) (1.00061 0.00269079 0) (1.00113 0.00295271 0) (1.00118 0.00288633 0) (1.00156 0.00268982 0) (1.00144 0.00242644 0) (1.00164 0.00215272 0) (1.00115 0.00189433 0) (1.00106 0.00176775 0) (1.00053 0.00173894 0) (1.00033 0.00176841 0) (0.999973 0.00183258 0) (1.00002 0.00184298 0) (0.999797 0.00181068 0) (0.999996 0.00186192 0) (0.999886 0.00195685 0) (1.00015 0.00209442 0) (1.0001 0.0021751 0) (1.00013 0.00202888 0) (0.999808 0.00172334 0) (0.999748 0.00152405 0) (0.999524 0.00154186 0) (0.999841 0.0017331 0) (0.999942 0.00188238 0) (1.00017 0.0018323 0) (0.99992 0.00170362 0) (1.00033 0.00180306 0) (1.00034 0.00197943 0) (1.00059 0.00193392 0) (1.00043 0.00170526 0) (1.00092 0.00162086 0) (1.00057 0.00166385 0) (1.00096 0.00179867 0) (1.00078 0.0018741 0) (1.0012 0.00184034 0) (1.00058 0.00166396 0) (1.00077 0.00158154 0) (1.00021 0.00156119 0) (1.00063 0.00161572 0) (1.00003 0.00158737 0) (1.00023 0.00156857 0) (0.999439 0.00147221 0) (0.999414 0.00140916 0) (0.998886 0.0013504 0) (0.999207 0.00141634 0) (0.998657 0.00141208 0) (0.998334 0.00138117 0) (0.997935 0.00128745 0) (0.997851 0.00129541 0) (0.997811 0.00127596 0) (0.997325 0.00127928 0) (0.99751 0.00123426 0) (0.997092 0.00122068 0) (0.997372 0.00117508 0) (0.996999 0.00108941 0) (0.997811 0.000917004 0) (0.987681 0.00760298 0) (0.989375 0.0111974 0) (0.992075 0.0126297 0) (0.99436 0.0127303 0) (0.996556 0.0123249 0) (0.998652 0.0107453 0) (1.00071 0.00847948 0) (1.00143 0.00705712 0) (1.00156 0.00656559 0) (1.00106 0.00634626 0) (1.00107 0.00601617 0) (1.00121 0.00559613 0) (1.00181 0.00528483 0) (1.00181 0.00495578 0) (1.0018 0.00456389 0) (1.00142 0.00421524 0) (1.00141 0.00401228 0) (1.00099 0.00414127 0) (1.00091 0.00466712 0) (1.00085 0.00532105 0) (1.00156 0.00573622 0) (1.00207 0.00578705 0) (1.003 0.00563394 0) (1.00347 0.0051883 0) (1.00392 0.00448547 0) (1.00367 0.00381546 0) (1.00367 0.00336666 0) (1.00324 0.0031703 0) (1.00334 0.00307856 0) (1.00303 0.00275179 0) (1.00289 0.00235434 0) (1.00209 0.00221729 0) (1.0016 0.0025719 0) (1.00112 0.00341963 0) (1.00171 0.00423278 0) (1.00238 0.00443697 0) (1.00326 0.00405443 0) (1.00333 0.00336642 0) (1.00335 0.00276116 0) (1.00285 0.00243748 0) (1.00291 0.00221794 0) (1.00247 0.00179588 0) (1.00206 0.00144715 0) (1.00107 0.00154458 0) (1.00077 0.00209363 0) (1.00069 0.00267717 0) (1.00111 0.00292873 0) (1.00126 0.00286822 0) (1.00152 0.00268148 0) (1.00147 0.00242598 0) (1.00153 0.00216329 0) (1.00115 0.00191439 0) (1.00096 0.00179129 0) (1.00058 0.00176357 0) (1.0003 0.00178512 0) (1.00009 0.001844 0) (1.00001 0.00185102 0) (0.999846 0.00181372 0) (0.999828 0.00186272 0) (0.999768 0.001955 0) (0.999849 0.00208713 0) (0.99998 0.0021722 0) (1.00001 0.00203324 0) (0.999917 0.00173337 0) (0.999719 0.00153473 0) (0.999507 0.00154388 0) (0.999568 0.00172463 0) (0.99972 0.00187313 0) (0.999913 0.00183059 0) (0.999817 0.00169995 0) (1.00005 0.00179292 0) (1.00017 0.00197059 0) (1.00045 0.00192921 0) (1.0004 0.00169717 0) (1.00076 0.00161843 0) (1.00047 0.00166362 0) (1.00077 0.00179386 0) (1.00067 0.00186658 0) (1.00111 0.00184199 0) (1.00069 0.00167118 0) (1.00084 0.00159042 0) (1.0003 0.00156434 0) (1.00065 0.00161939 0) (1.00016 0.00159376 0) (1.00034 0.00157934 0) (0.999721 0.00148654 0) (0.999643 0.00142138 0) (0.999131 0.001355 0) (0.999286 0.00142132 0) (0.998909 0.00142582 0) (0.998555 0.0013948 0) (0.998272 0.0012955 0) (0.998007 0.00129931 0) (0.998078 0.00128429 0) (0.997466 0.0012851 0) (0.997753 0.00123853 0) (0.997212 0.00122287 0) (0.997598 0.00117598 0) (0.99715 0.00109192 0) (0.998035 0.000917982 0) (0.988285 0.00716046 0) (0.989893 0.0105214 0) (0.992213 0.0121429 0) (0.994365 0.0121504 0) (0.996387 0.0118347 0) (0.998359 0.010615 0) (1.00038 0.00853882 0) (1.00128 0.00703575 0) (1.00148 0.00647377 0) (1.00104 0.00624562 0) (1.00099 0.00594618 0) (1.00116 0.00555806 0) (1.00172 0.00527023 0) (1.00176 0.00496051 0) (1.0017 0.00458547 0) (1.00138 0.00424643 0) (1.00135 0.00405178 0) (1.00102 0.00417636 0) (1.00094 0.00466922 0) (1.00092 0.00527377 0) (1.00155 0.00565406 0) (1.00208 0.00569361 0) (1.00294 0.00554718 0) (1.00343 0.00512958 0) (1.00382 0.0044695 0) (1.00363 0.00382967 0) (1.00362 0.0033924 0) (1.00326 0.00318926 0) (1.0033 0.00309144 0) (1.00302 0.00277928 0) (1.00282 0.00240737 0) (1.00211 0.00228648 0) (1.00161 0.00262327 0) (1.0012 0.00341395 0) (1.00172 0.00416843 0) (1.0024 0.00435881 0) (1.00318 0.00400687 0) (1.00331 0.00336145 0) (1.00328 0.00278331 0) (1.00287 0.00245762 0) (1.00286 0.00223711 0) (1.00247 0.00183583 0) (1.00201 0.00150927 0) (1.00114 0.00160009 0) (1.00078 0.00211214 0) (1.00075 0.00266425 0) (1.00109 0.00290434 0) (1.0013 0.00285008 0) (1.00148 0.00267468 0) (1.00147 0.00242785 0) (1.00144 0.00217485 0) (1.00116 0.00193474 0) (1.00088 0.00181444 0) (1.00062 0.0017867 0) (1.00029 0.00180099 0) (1.00016 0.00185541 0) (1 0.00186105 0) (0.99989 0.0018211 0) (0.999725 0.00186791 0) (0.999719 0.00195627 0) (0.999672 0.00208007 0) (0.999913 0.00216472 0) (0.999939 0.0020322 0) (0.999984 0.00174154 0) (0.999701 0.00154857 0) (0.999515 0.00155125 0) (0.999422 0.00172065 0) (0.999601 0.0018633 0) (0.999767 0.00182602 0) (0.999776 0.00169639 0) (0.999896 0.00178408 0) (1.00007 0.00195818 0) (1.00039 0.00192148 0) (1.00039 0.00168997 0) (1.00064 0.00161736 0) (1.00041 0.0016632 0) (1.00067 0.00178908 0) (1.00061 0.00185736 0) (1.00105 0.00184009 0) (1.00072 0.00167581 0) (1.00087 0.00159972 0) (1.00035 0.0015687 0) (1.00064 0.00162301 0) (1.00021 0.00159917 0) (1.00037 0.00158822 0) (0.999862 0.00149906 0) (0.999777 0.0014347 0) (0.999262 0.00136282 0) (0.999283 0.00142701 0) (0.99901 0.00143769 0) (0.998661 0.00140759 0) (0.99845 0.00130512 0) (0.998051 0.00130499 0) (0.998179 0.00129327 0) (0.997495 0.00129182 0) (0.997828 0.00124359 0) (0.997203 0.00122588 0) (0.997635 0.00117687 0) (0.997142 0.00109507 0) (0.998042 0.000918672 0) (0.988853 0.00679228 0) (0.990419 0.00981526 0) (0.992374 0.0116563 0) (0.994355 0.0116377 0) (0.996246 0.0113244 0) (0.99809 0.0104254 0) (1.00003 0.00858602 0) (1.00109 0.00703018 0) (1.00137 0.00639191 0) (1.001 0.00614709 0) (1.0009 0.00586903 0) (1.00111 0.00551001 0) (1.00164 0.00524771 0) (1.00171 0.00496436 0) (1.00161 0.00460913 0) (1.00133 0.00427898 0) (1.0013 0.00408943 0) (1.00105 0.00420651 0) (1.00097 0.0046676 0) (1.00098 0.00522483 0) (1.00154 0.00557169 0) (1.00208 0.00560078 0) (1.00288 0.0054608 0) (1.00337 0.00507042 0) (1.00372 0.0044526 0) (1.00357 0.00384225 0) (1.00355 0.00341673 0) (1.00324 0.00320865 0) (1.00324 0.00310575 0) (1.00299 0.00280872 0) (1.00275 0.00246161 0) (1.00212 0.00235476 0) (1.00163 0.0026734 0) (1.00127 0.00340777 0) (1.00173 0.0041049 0) (1.0024 0.00428178 0) (1.00311 0.0039597 0) (1.00326 0.00335551 0) (1.00321 0.00280421 0) (1.00287 0.00247837 0) (1.0028 0.00225822 0) (1.00245 0.0018773 0) (1.00196 0.00157091 0) (1.0012 0.00165503 0) (1.0008 0.00213184 0) (1.0008 0.00265217 0) (1.00107 0.00288014 0) (1.00132 0.00283214 0) (1.00144 0.00266874 0) (1.00147 0.00243129 0) (1.00136 0.00218708 0) (1.00116 0.00195532 0) (1.00083 0.00183763 0) (1.00064 0.0018089 0) (1.00028 0.00181667 0) (1.00021 0.00186705 0) (0.999997 0.00187227 0) (0.999927 0.00183124 0) (0.999671 0.00187563 0) (0.999715 0.00195925 0) (0.999584 0.00207354 0) (0.999885 0.00215459 0) (0.999896 0.00202809 0) (1.00002 0.00174862 0) (0.999693 0.00156415 0) (0.999537 0.00156148 0) (0.999361 0.00171937 0) (0.999556 0.00185311 0) (0.9997 0.00181955 0) (0.99977 0.00169281 0) (0.999824 0.00177647 0) (1.00001 0.0019433 0) (1.00037 0.00191152 0) (1.00038 0.00168377 0) (1.00058 0.00161725 0) (1.00037 0.00166192 0) (1.00064 0.00178417 0) (1.00057 0.00184775 0) (1.001 0.00183657 0) (1.00073 0.00167862 0) (1.00089 0.00160889 0) (1.00038 0.00157413 0) (1.00063 0.0016271 0) (1.00022 0.00160428 0) (1.00037 0.00159615 0) (0.999923 0.00151026 0) (0.99985 0.00144863 0) (0.999334 0.00137351 0) (0.999258 0.00143393 0) (0.99904 0.00144817 0) (0.998713 0.00141958 0) (0.998546 0.00131624 0) (0.998055 0.00131251 0) (0.998208 0.00130283 0) (0.997493 0.00129932 0) (0.997844 0.00124958 0) (0.997164 0.00122984 0) (0.997615 0.00117799 0) (0.997098 0.00109898 0) (0.997994 0.000919599 0) (0.989376 0.00651763 0) (0.990943 0.00909876 0) (0.99257 0.011133 0) (0.994333 0.0111985 0) (0.996124 0.0108113 0) (0.997852 0.0101777 0) (0.999693 0.00861596 0) (1.00087 0.00703748 0) (1.00126 0.00631817 0) (1.00094 0.00605333 0) (1.00082 0.0057864 0) (1.00106 0.00545214 0) (1.00157 0.00521353 0) (1.00165 0.00496257 0) (1.00152 0.00463342 0) (1.00127 0.00431289 0) (1.00126 0.0041269 0) (1.00107 0.00423319 0) (1.00101 0.00466295 0) (1.00103 0.00517503 0) (1.00154 0.00548912 0) (1.00207 0.00550845 0) (1.00282 0.0053752 0) (1.0033 0.00501105 0) (1.0036 0.00443461 0) (1.00349 0.00385312 0) (1.00347 0.00343936 0) (1.00322 0.00322783 0) (1.00318 0.00312097 0) (1.00295 0.00283925 0) (1.00269 0.00251615 0) (1.00212 0.00242152 0) (1.00165 0.00272196 0) (1.00134 0.00340111 0) (1.00175 0.00404272 0) (1.00238 0.00420636 0) (1.00303 0.00391307 0) (1.00319 0.0033489 0) (1.00314 0.0028239 0) (1.00284 0.00249937 0) (1.00274 0.00228061 0) (1.00242 0.00191982 0) (1.00191 0.00163221 0) (1.00123 0.0017094 0) (1.00082 0.00215255 0) (1.00084 0.00264107 0) (1.00105 0.00285653 0) (1.00132 0.00281448 0) (1.0014 0.00266309 0) (1.00146 0.00243561 0) (1.00131 0.00219972 0) (1.00116 0.00197605 0) (1.0008 0.00186116 0) (1.00066 0.00183071 0) (1.00027 0.00183257 0) (1.00024 0.00187905 0) (0.999995 0.00188407 0) (0.999959 0.00184298 0) (0.999651 0.00188467 0) (0.999733 0.00196299 0) (0.999553 0.00206763 0) (0.999879 0.00214313 0) (0.999876 0.00202254 0) (1.00004 0.00175517 0) (0.999691 0.00158044 0) (0.999564 0.00157296 0) (0.999351 0.00171946 0) (0.999552 0.00184265 0) (0.999682 0.00181206 0) (0.99978 0.00168918 0) (0.999802 0.0017698 0) (0.999987 0.00192686 0) (1.00036 0.00189998 0) (1.00038 0.00167832 0) (1.00054 0.00161777 0) (1.00036 0.0016597 0) (1.00063 0.00177908 0) (1.00055 0.00183828 0) (1.00097 0.00183254 0) (1.00071 0.00168032 0) (1.0009 0.00161765 0) (1.0004 0.00158041 0) (1.00061 0.00163188 0) (1.00022 0.0016094 0) (1.00037 0.00160379 0) (0.99994 0.0015207 0) (0.999885 0.00146283 0) (0.999372 0.00138639 0) (0.999233 0.00144219 0) (0.999039 0.00145778 0) (0.998736 0.00143094 0) (0.998597 0.0013286 0) (0.998049 0.00132162 0) (0.998212 0.00131282 0) (0.997488 0.00130738 0) (0.997844 0.00125644 0) (0.997132 0.00123463 0) (0.997591 0.00117936 0) (0.997063 0.00110355 0) (0.99795 0.000920925 0) (0.989857 0.00634235 0) (0.991447 0.00842134 0) (0.992812 0.0105401 0) (0.994307 0.0108225 0) (0.996012 0.0103247 0) (0.99765 0.00986489 0) (0.999369 0.0086208 0) (1.00062 0.00705609 0) (1.00113 0.00624829 0) (1.00088 0.00596692 0) (1.00074 0.00570417 0) (1.00099 0.00538659 0) (1.00151 0.0051692 0) (1.00159 0.00495193 0) (1.00144 0.00465646 0) (1.00121 0.00434805 0) (1.00122 0.00416425 0) (1.00109 0.00425687 0) (1.00105 0.00465453 0) (1.00108 0.00512433 0) (1.00154 0.00540704 0) (1.00205 0.0054168 0) (1.00276 0.005291 0) (1.00322 0.00495223 0) (1.00349 0.0044157 0) (1.0034 0.00386248 0) (1.00339 0.00346029 0) (1.00317 0.00324645 0) (1.00313 0.00313692 0) (1.0029 0.00287069 0) (1.00264 0.00257092 0) (1.00212 0.0024869 0) (1.00167 0.00276909 0) (1.00139 0.00339426 0) (1.00176 0.00398226 0) (1.00236 0.00413291 0) (1.00296 0.00386722 0) (1.00312 0.00334203 0) (1.00306 0.00284277 0) (1.0028 0.00252066 0) (1.00268 0.00230397 0) (1.00239 0.00196302 0) (1.00188 0.00169318 0) (1.00126 0.00176312 0) (1.00085 0.00217401 0) (1.00087 0.00263101 0) (1.00105 0.00283383 0) (1.00131 0.00279729 0) (1.00137 0.00265756 0) (1.00144 0.00244041 0) (1.00127 0.00221259 0) (1.00115 0.00199682 0) (1.00078 0.00188503 0) (1.00067 0.00185239 0) (1.00027 0.00184889 0) (1.00026 0.00189154 0) (0.999997 0.00189613 0) (0.999984 0.00185556 0) (0.999651 0.00189431 0) (0.999759 0.00196699 0) (0.999552 0.00206235 0) (0.999884 0.00213109 0) (0.999868 0.00201647 0) (1.00004 0.00176156 0) (0.999694 0.00159682 0) (0.999593 0.00158474 0) (0.999365 0.00172018 0) (0.999568 0.00183198 0) (0.999687 0.00180413 0) (0.999794 0.00168547 0) (0.999806 0.00176372 0) (0.999979 0.00190949 0) (1.00036 0.00188736 0) (1.00039 0.00167331 0) (1.00052 0.00161864 0) (1.00035 0.00165677 0) (1.00063 0.00177387 0) (1.00054 0.00182906 0) (1.00094 0.0018285 0) (1.00069 0.00168146 0) (1.00089 0.00162598 0) (1.0004 0.00158737 0) (1.0006 0.00163739 0) (1.00021 0.00161464 0) (1.00035 0.00161153 0) (0.999934 0.00153093 0) (0.999893 0.00147717 0) (0.99939 0.0014008 0) (0.999214 0.0014517 0) (0.999027 0.00146702 0) (0.998743 0.00144193 0) (0.998621 0.00134194 0) (0.998042 0.00133199 0) (0.99821 0.00132315 0) (0.997487 0.00131586 0) (0.997844 0.001264 0) (0.997115 0.0012401 0) (0.997577 0.00118095 0) (0.997047 0.0011086 0) (0.997926 0.000922662 0) (0.990306 0.00622952 0) (0.991908 0.00784859 0) (0.993099 0.00986907 0) (0.994293 0.0104718 0) (0.995895 0.00990268 0) (0.997482 0.00948665 0) (0.99907 0.00858194 0) (1.00035 0.00708908 0) (1.00099 0.00618062 0) (1.0008 0.00588567 0) (1.00065 0.00562874 0) (1.00093 0.00531301 0) (1.00144 0.0051154 0) (1.00153 0.00493175 0) (1.00136 0.00467553 0) (1.00114 0.00438418 0) (1.00118 0.00420045 0) (1.00111 0.00427724 0) (1.00109 0.00464228 0) (1.00111 0.00507246 0) (1.00153 0.00532633 0) (1.00202 0.00532598 0) (1.0027 0.0052078 0) (1.00313 0.00489431 0) (1.00338 0.00439608 0) (1.0033 0.00387047 0) (1.0033 0.00347974 0) (1.00312 0.00326425 0) (1.00307 0.00315328 0) (1.00285 0.00290264 0) (1.00259 0.00262549 0) (1.00211 0.00255074 0) (1.0017 0.00281487 0) (1.00144 0.00338762 0) (1.00178 0.00392395 0) (1.00233 0.00406165 0) (1.00289 0.00382207 0) (1.00304 0.00333475 0) (1.00299 0.00286074 0) (1.00275 0.00254205 0) (1.00262 0.00232807 0) (1.00235 0.00200671 0) (1.00185 0.00175389 0) (1.00128 0.00181633 0) (1.00088 0.0021962 0) (1.00089 0.00262214 0) (1.00104 0.00281228 0) (1.00129 0.00278069 0) (1.00133 0.00265213 0) (1.00142 0.00244552 0) (1.00124 0.00222569 0) (1.00114 0.00201774 0) (1.00077 0.00190932 0) (1.00067 0.00187417 0) (1.00028 0.00186568 0) (1.00027 0.0019046 0) (1 0.00190846 0) (1.00001 0.00186863 0) (0.999661 0.00190428 0) (0.999786 0.00197103 0) (0.999567 0.0020577 0) (0.999892 0.00211899 0) (0.999867 0.00201031 0) (1.00004 0.00176793 0) (0.999701 0.00161305 0) (0.999621 0.00159647 0) (0.99939 0.00172117 0) (0.999592 0.00182116 0) (0.9997 0.00179607 0) (0.999808 0.00168157 0) (0.99982 0.00175785 0) (0.999981 0.00189164 0) (1.00036 0.00187409 0) (1.00038 0.00166845 0) (1.00052 0.00161966 0) (1.00035 0.00165336 0) (1.00063 0.00176864 0) (1.00052 0.00182001 0) (1.00093 0.00182464 0) (1.00066 0.00168242 0) (1.00088 0.00163403 0) (1.0004 0.00159484 0) (1.00058 0.00164361 0) (1.00019 0.00162004 0) (1.00034 0.00161959 0) (0.999918 0.00154128 0) (0.999886 0.00149161 0) (0.999396 0.00141622 0) (0.9992 0.0014623 0) (0.999013 0.00147626 0) (0.998741 0.00145282 0) (0.998631 0.00135602 0) (0.998038 0.00134329 0) (0.998207 0.00133379 0) (0.99749 0.00132468 0) (0.997847 0.00127212 0) (0.997112 0.00124608 0) (0.997573 0.00118274 0) (0.997044 0.001114 0) (0.997918 0.000924779 0) (0.990749 0.00610281 0) (0.99231 0.00741746 0) (0.993417 0.00915088 0) (0.994313 0.0100844 0) (0.995767 0.00956799 0) (0.997338 0.00907043 0) (0.998809 0.00847295 0) (1.00007 0.00714011 0) (1.00082 0.0061196 0) (1.00071 0.00579757 0) (1.00056 0.00556424 0) (1.00085 0.00523535 0) (1.00138 0.00504972 0) (1.00147 0.00490287 0) (1.00129 0.00468772 0) (1.00108 0.00442012 0) (1.00114 0.00423673 0) (1.00111 0.00429546 0) (1.00112 0.00462826 0) (1.00114 0.00502006 0) (1.00152 0.00524739 0) (1.00199 0.00523638 0) (1.00264 0.00512468 0) (1.00305 0.00483686 0) (1.00327 0.00437593 0) (1.0032 0.00387712 0) (1.00322 0.00349804 0) (1.00306 0.00328134 0) (1.00301 0.00316974 0) (1.00279 0.00293445 0) (1.00255 0.002679 0) (1.00211 0.00261235 0) (1.00174 0.00285886 0) (1.00149 0.00338121 0) (1.00179 0.00386812 0) (1.0023 0.00399304 0) (1.00282 0.00377804 0) (1.00296 0.00332741 0) (1.00291 0.00287803 0) (1.0027 0.0025634 0) (1.00257 0.00235256 0) (1.0023 0.00205043 0) (1.00182 0.00181403 0) (1.0013 0.00186889 0) (1.00091 0.00221902 0) (1.00092 0.00261461 0) (1.00104 0.00279216 0) (1.00127 0.00276486 0) (1.00131 0.00264689 0) (1.00139 0.00245076 0) (1.00121 0.00223884 0) (1.00112 0.00203861 0) (1.00076 0.00193389 0) (1.00067 0.00189619 0) (1.00028 0.00188292 0) (1.00028 0.00191814 0) (1.00001 0.00192105 0) (1.00002 0.00188199 0) (0.999678 0.00191446 0) (0.999812 0.00197501 0) (0.999587 0.00205356 0) (0.999902 0.00210711 0) (0.999867 0.00200429 0) (1.00004 0.00177422 0) (0.999709 0.0016289 0) (0.999649 0.001608 0) (0.999419 0.0017224 0) (0.999616 0.00181031 0) (0.999715 0.00178802 0) (0.999821 0.00167743 0) (0.999838 0.00175198 0) (0.999988 0.00187357 0) (1.00036 0.00186048 0) (1.00038 0.00166356 0) (1.00051 0.00162068 0) (1.00035 0.00164963 0) (1.00063 0.00176345 0) (1.00051 0.00181106 0) (1.00091 0.00182096 0) (1.00064 0.00168343 0) (1.00086 0.00164196 0) (1.00039 0.0016027 0) (1.00056 0.00165044 0) (1.00017 0.00162567 0) (1.00032 0.00162804 0) (0.999896 0.00155198 0) (0.999871 0.00150623 0) (0.999393 0.00143232 0) (0.99919 0.00147379 0) (0.999 0.00148576 0) (0.998735 0.00146382 0) (0.998632 0.00137069 0) (0.998036 0.00135532 0) (0.998206 0.00134472 0) (0.997496 0.00133381 0) (0.997853 0.00128067 0) (0.997117 0.00125246 0) (0.997576 0.00118476 0) (0.997049 0.00111965 0) (0.997921 0.000927248 0) (0.991209 0.00589193 0) (0.992654 0.00711517 0) (0.993739 0.00845277 0) (0.994385 0.00961094 0) (0.995632 0.00930839 0) (0.997201 0.00866801 0) (0.998593 0.00826685 0) (0.999782 0.00719502 0) (1.00063 0.00608239 0) (1.00062 0.00569292 0) (1.00047 0.00550975 0) (1.00076 0.00516757 0) (1.00132 0.00497148 0) (1.00141 0.00486495 0) (1.00122 0.00469139 0) (1.00101 0.00445027 0) (1.0011 0.00427195 0) (1.00112 0.00431118 0) (1.00115 0.00461273 0) (1.00116 0.00496764 0) (1.00151 0.00516975 0) (1.00195 0.00514869 0) (1.00258 0.00504155 0) (1.00296 0.00477896 0) (1.00316 0.00435509 0) (1.0031 0.003882 0) (1.00313 0.00351473 0) (1.003 0.00329769 0) (1.00295 0.00318631 0) (1.00273 0.00296613 0) (1.00251 0.00273143 0) (1.00211 0.00267184 0) (1.00177 0.0029013 0) (1.00153 0.00337539 0) (1.00181 0.00381489 0) (1.00227 0.00392692 0) (1.00276 0.00373479 0) (1.00289 0.00331975 0) (1.00284 0.00289479 0) (1.00265 0.00258496 0) (1.00252 0.00237761 0) (1.00226 0.0020942 0) (1.0018 0.00187351 0) (1.00132 0.00192071 0) (1.00095 0.00224232 0) (1.00094 0.00260838 0) (1.00104 0.00277345 0) (1.00126 0.0027498 0) (1.00128 0.0026419 0) (1.00136 0.0024562 0) (1.00118 0.00225213 0) (1.00111 0.00205945 0) (1.00075 0.00195856 0) (1.00068 0.00191846 0) (1.00029 0.00190068 0) (1.00029 0.00193223 0) (1.00002 0.00193394 0) (1.00004 0.00189555 0) (0.999698 0.00192486 0) (0.999836 0.00197901 0) (0.999609 0.00204983 0) (0.999912 0.00209551 0) (0.999867 0.00199854 0) (1.00004 0.00178053 0) (0.999718 0.00164436 0) (0.999674 0.00161919 0) (0.999448 0.00172379 0) (0.999639 0.00179953 0) (0.999728 0.00178001 0) (0.999833 0.00167292 0) (0.999856 0.00174598 0) (0.999996 0.00185548 0) (1.00035 0.00184676 0) (1.00037 0.00165859 0) (1.0005 0.00162163 0) (1.00034 0.00164568 0) (1.00062 0.00175833 0) (1.00049 0.00180217 0) (1.00088 0.00181743 0) (1.00061 0.00168454 0) (1.00083 0.00164988 0) (1.00037 0.00161089 0) (1.00054 0.00165785 0) (1.00015 0.00163161 0) (1.0003 0.00163691 0) (0.999873 0.00156308 0) (0.999852 0.00152108 0) (0.999386 0.00144892 0) (0.999182 0.00148604 0) (0.998988 0.00149567 0) (0.998726 0.00147509 0) (0.99863 0.00138586 0) (0.998036 0.00136791 0) (0.998207 0.00135601 0) (0.997503 0.00134323 0) (0.997859 0.00128959 0) (0.997127 0.0012592 0) (0.997583 0.00118705 0) (0.997058 0.00112551 0) (0.997927 0.000930061 0) (0.991705 0.0055749 0) (0.992957 0.00688806 0) (0.994035 0.00784781 0) (0.994513 0.00903842 0) (0.995508 0.0090713 0) (0.997052 0.00833568 0) (0.998418 0.00796904 0) (0.999508 0.00721454 0) (1.00041 0.00608873 0) (1.00052 0.0055756 0) (1.00038 0.00544826 0) (1.00067 0.00511968 0) (1.00126 0.00488392 0) (1.00136 0.00481165 0) (1.00115 0.00468983 0) (1.00094 0.00447346 0) (1.00105 0.00430483 0) (1.00112 0.00432565 0) (1.00118 0.00459564 0) (1.00118 0.00491628 0) (1.00149 0.00509352 0) (1.0019 0.00506318 0) (1.00252 0.00495954 0) (1.00288 0.00472028 0) (1.00306 0.00433363 0) (1.003 0.00388575 0) (1.00305 0.00352975 0) (1.00294 0.00331313 0) (1.00289 0.00320271 0) (1.00267 0.00299719 0) (1.00246 0.00278231 0) (1.0021 0.0027289 0) (1.0018 0.00294209 0) (1.00157 0.00337051 0) (1.00182 0.00376486 0) (1.00224 0.00386385 0) (1.00269 0.00369266 0) (1.00281 0.00331167 0) (1.00277 0.00291078 0) (1.00259 0.0026065 0) (1.00247 0.00240308 0) (1.00222 0.0021379 0) (1.00178 0.00193233 0) (1.00133 0.00197189 0) (1.00098 0.0022662 0) (1.00097 0.00260368 0) (1.00104 0.00275637 0) (1.00124 0.00273563 0) (1.00126 0.00263721 0) (1.00134 0.00246176 0) (1.00115 0.00226556 0) (1.00109 0.00208038 0) (1.00075 0.0019834 0) (1.00068 0.00194098 0) (1.0003 0.0019189 0) (1.00031 0.00194684 0) (1.00003 0.00194721 0) (1.00006 0.0019092 0) (0.999719 0.00193542 0) (0.999859 0.00198312 0) (0.999631 0.0020466 0) (0.999922 0.00208437 0) (0.999866 0.001993 0) (1.00004 0.00178673 0) (0.999726 0.00165949 0) (0.999698 0.00163009 0) (0.999477 0.00172533 0) (0.99966 0.00178891 0) (0.999739 0.00177207 0) (0.999842 0.00166799 0) (0.999872 0.0017397 0) (1 0.00183743 0) (1.00035 0.00183306 0) (1.00036 0.00165346 0) (1.00049 0.00162247 0) (1.00033 0.00164159 0) (1.00061 0.00175331 0) (1.00048 0.0017934 0) (1.00086 0.00181406 0) (1.00058 0.00168579 0) (1.00081 0.00165786 0) (1.00035 0.00161934 0) (1.00052 0.00166578 0) (1.00012 0.00163794 0) (1.00027 0.00164621 0) (0.999851 0.00157462 0) (0.999831 0.00153624 0) (0.999377 0.00146595 0) (0.999175 0.00149894 0) (0.998978 0.00150609 0) (0.998717 0.00148672 0) (0.998626 0.00140149 0) (0.998037 0.00138101 0) (0.998207 0.00136768 0) (0.997509 0.00135296 0) (0.997866 0.00129885 0) (0.997138 0.00126626 0) (0.99759 0.00118965 0) (0.997068 0.00113157 0) (0.997935 0.00093322 0) (0.992234 0.00517989 0) (0.993247 0.00665949 0) (0.994286 0.00737454 0) (0.994684 0.00840463 0) (0.99542 0.00878311 0) (0.996882 0.00809338 0) (0.998268 0.00762826 0) (0.999267 0.00714996 0) (1.00017 0.00613613 0) (1.00039 0.00546843 0) (1.00029 0.00535785 0) (1.00056 0.00509196 0) (1.00118 0.00480469 0) (1.0013 0.00473673 0) (1.00108 0.00468205 0) (1.00086 0.00449192 0) (1.001 0.00433041 0) (1.00111 0.00433739 0) (1.0012 0.00457573 0) (1.00119 0.00486496 0) (1.00146 0.00501883 0) (1.00186 0.00497879 0) (1.00246 0.00487903 0) (1.0028 0.00466081 0) (1.00296 0.00431081 0) (1.0029 0.00388915 0) (1.00297 0.00354421 0) (1.00288 0.00332847 0) (1.00283 0.00321983 0) (1.0026 0.00302803 0) (1.00241 0.00283135 0) (1.00209 0.00278287 0) (1.00183 0.00298032 0) (1.00161 0.00336577 0) (1.00183 0.00371758 0) (1.00221 0.00380372 0) (1.00263 0.00365183 0) (1.00274 0.00330354 0) (1.0027 0.00292645 0) (1.00254 0.0026283 0) (1.00242 0.00242896 0) (1.00218 0.00218122 0) (1.00176 0.00199011 0) (1.00134 0.00202217 0) (1.00101 0.00229046 0) (1.00099 0.0026005 0) (1.00104 0.00274102 0) (1.00123 0.00272254 0) (1.00123 0.00263305 0) (1.00131 0.00246758 0) (1.00113 0.00227912 0) (1.00107 0.0021013 0) (1.00074 0.00200836 0) (1.00068 0.00196382 0) (1.00031 0.00193762 0) (1.00032 0.00196196 0) (1.00004 0.00196097 0) (1.00007 0.00192308 0) (0.999739 0.00194613 0) (0.99988 0.00198728 0) (0.999652 0.00204382 0) (0.999931 0.00207383 0) (0.999864 0.00198787 0) (1.00003 0.00179274 0) (0.999733 0.00167412 0) (0.999718 0.00164065 0) (0.999504 0.00172703 0) (0.999679 0.00177847 0) (0.999749 0.00176421 0) (0.99985 0.00166274 0) (0.999885 0.00173323 0) (1.00001 0.00181946 0) (1.00034 0.00181943 0) (1.00035 0.00164813 0) (1.00048 0.00162312 0) (1.00032 0.00163734 0) (1.0006 0.00174836 0) (1.00046 0.00178473 0) (1.00083 0.00181084 0) (1.00056 0.00168719 0) (1.00078 0.00166596 0) (1.00033 0.00162803 0) (1.00049 0.0016742 0) (1.0001 0.00164471 0) (1.00025 0.00165589 0) (0.999828 0.00158658 0) (0.99981 0.00155174 0) (0.999366 0.00148339 0) (0.999168 0.00151243 0) (0.998969 0.00151708 0) (0.998707 0.00149876 0) (0.998621 0.00141759 0) (0.998038 0.00139458 0) (0.998207 0.0013798 0) (0.997515 0.00136297 0) (0.997872 0.00130845 0) (0.997149 0.00127366 0) (0.997597 0.00119261 0) (0.997078 0.00113783 0) (0.997943 0.000936738 0) (0.992784 0.00475767 0) (0.99355 0.00637501 0) (0.994487 0.00702149 0) (0.994868 0.0077853 0) (0.995388 0.00839738 0) (0.996699 0.00791416 0) (0.998119 0.00731481 0) (0.999066 0.00698018 0) (0.999919 0.00619037 0) (1.00024 0.00540772 0) (1.00021 0.00523589 0) (1.00045 0.00506418 0) (1.00109 0.00475165 0) (1.00125 0.00464362 0) (1.00102 0.004657 0) (1.00079 0.00451052 0) (1.00094 0.00434854 0) (1.0011 0.00434468 0) (1.00121 0.00455577 0) (1.00119 0.00481528 0) (1.00143 0.00494833 0) (1.0018 0.00489616 0) (1.00239 0.00479922 0) (1.00271 0.00460032 0) (1.00286 0.00428438 0) (1.00279 0.00389013 0) (1.00288 0.0035572 0) (1.00281 0.00334268 0) (1.00276 0.00323715 0) (1.00253 0.00305883 0) (1.00236 0.00287898 0) (1.00207 0.0028344 0) (1.00185 0.00301679 0) (1.00164 0.00336198 0) (1.00183 0.0036735 0) (1.00217 0.00374636 0) (1.00257 0.00361155 0) (1.00267 0.00329427 0) (1.00264 0.00294095 0) (1.00248 0.00264998 0) (1.00237 0.00245538 0) (1.00213 0.00222448 0) (1.00174 0.00204714 0) (1.00135 0.00207174 0) (1.00104 0.00231508 0) (1.00101 0.00259872 0) (1.00104 0.00272721 0) (1.00121 0.00271026 0) (1.00121 0.00262916 0) (1.00128 0.00247357 0) (1.0011 0.00229283 0) (1.00106 0.0021222 0) (1.00073 0.00203338 0) (1.00068 0.00198693 0) (1.00031 0.00195681 0) (1.00033 0.00197746 0) (1.00005 0.00197501 0) (1.00008 0.00193707 0) (0.999759 0.00195705 0) (0.9999 0.00199156 0) (0.999672 0.00204139 0) (0.99994 0.00206383 0) (0.999861 0.0019832 0) (1.00003 0.00179875 0) (0.999739 0.00168838 0) (0.999736 0.00165077 0) (0.999528 0.00172888 0) (0.999697 0.00176837 0) (0.999757 0.00175644 0) (0.999856 0.00165708 0) (0.999894 0.00172653 0) (1.00001 0.00180163 0) (1.00032 0.00180591 0) (1.00033 0.00164261 0) (1.00047 0.00162364 0) (1.00031 0.00163301 0) (1.00058 0.00174348 0) (1.00044 0.00177618 0) (1.0008 0.0018077 0) (1.00053 0.00168865 0) (1.00075 0.00167415 0) (1.00031 0.00163695 0) (1.00047 0.00168309 0) (1.00008 0.00165201 0) (1.00022 0.00166601 0) (0.999804 0.00159897 0) (0.999788 0.00156759 0) (0.999354 0.00150124 0) (0.999161 0.00152648 0) (0.998959 0.0015287 0) (0.998697 0.00151124 0) (0.998616 0.00143417 0) (0.998038 0.0014086 0) (0.998207 0.0013924 0) (0.99752 0.00137326 0) (0.997877 0.0013184 0) (0.99716 0.00128139 0) (0.997603 0.00119597 0) (0.997086 0.00114429 0) (0.997948 0.000940636 0) (0.993333 0.00435186 0) (0.993882 0.00602371 0) (0.994653 0.00674008 0) (0.995035 0.00724947 0) (0.995412 0.00791798 0) (0.996527 0.00773584 0) (0.997951 0.00707994 0) (0.998898 0.00673346 0) (0.999679 0.00619453 0) (1.00006 0.00540888 0) (1.00011 0.00510736 0) (1.00035 0.00500665 0) (1.00099 0.00472759 0) (1.00119 0.00455252 0) (1.00097 0.00460171 0) (1.00071 0.00452587 0) (1.00088 0.00436391 0) (1.00107 0.00434189 0) (1.00121 0.00453345 0) (1.00118 0.00476642 0) (1.00139 0.00488194 0) (1.00174 0.00481735 0) (1.00232 0.00472065 0) (1.00263 0.00454123 0) (1.00276 0.00425674 0) (1.00269 0.00388901 0) (1.00279 0.00356936 0) (1.00274 0.00335574 0) (1.0027 0.00325358 0) (1.00246 0.00308851 0) (1.00231 0.00292392 0) (1.00205 0.00288218 0) (1.00187 0.00305049 0) (1.00166 0.00335877 0) (1.00183 0.0036331 0) (1.00214 0.00369309 0) (1.0025 0.00357349 0) (1.00259 0.00328538 0) (1.00257 0.00295531 0) (1.00243 0.00267197 0) (1.00232 0.00248226 0) (1.00209 0.00226732 0) (1.00171 0.00210301 0) (1.00136 0.00212045 0) (1.00106 0.00234015 0) (1.00103 0.00259866 0) (1.00104 0.00271544 0) (1.0012 0.00269931 0) (1.00119 0.00262591 0) (1.00125 0.00247994 0) (1.00108 0.00230682 0) (1.00104 0.00214314 0) (1.00073 0.00205845 0) (1.00067 0.00201032 0) (1.00032 0.00197659 0) (1.00033 0.00199361 0) (1.00006 0.00198954 0) (1.00009 0.00195115 0) (0.999778 0.00196813 0) (0.999918 0.00199616 0) (0.999691 0.00203957 0) (0.999948 0.00205453 0) (0.999857 0.00197894 0) (1.00002 0.00180462 0) (0.999742 0.0017023 0) (0.99975 0.00166046 0) (0.99955 0.00173066 0) (0.999712 0.00175853 0) (0.999762 0.00174897 0) (0.999859 0.00165124 0) (0.999899 0.00171962 0) (1.00001 0.00178389 0) (1.00031 0.00179245 0) (1.00031 0.00163679 0) (1.00045 0.00162394 0) (1.0003 0.00162864 0) (1.00056 0.00173871 0) (1.00041 0.00176782 0) (1.00077 0.00180471 0) (1.00049 0.00169023 0) (1.00072 0.00168244 0) (1.00028 0.00164606 0) (1.00045 0.00169236 0) (1.00005 0.00165982 0) (1.00019 0.00167654 0) (0.99978 0.00161185 0) (0.999765 0.00158384 0) (0.99934 0.00151952 0) (0.999152 0.00154109 0) (0.998949 0.00154101 0) (0.998685 0.00152417 0) (0.998609 0.00145126 0) (0.998038 0.00142307 0) (0.998206 0.00140552 0) (0.997524 0.00138385 0) (0.997881 0.00132873 0) (0.997169 0.00128948 0) (0.997607 0.00119977 0) (0.997092 0.00115098 0) (0.997952 0.00094493 0) (0.993865 0.0039824 0) (0.994246 0.00562519 0) (0.994807 0.0064722 0) (0.995166 0.00682237 0) (0.995476 0.00739235 0) (0.996394 0.00748777 0) (0.997761 0.00691751 0) (0.998741 0.00647246 0) (0.999468 0.00610629 0) (0.999855 0.00544146 0) (0.999998 0.00501191 0) (1.00025 0.00490818 0) (1.00087 0.00471291 0) (1.00112 0.00448854 0) (1.00092 0.0045208 0) (1.00064 0.00452423 0) (1.00081 0.00438353 0) (1.00104 0.00432979 0) (1.00121 0.00450389 0) (1.00117 0.00471786 0) (1.00135 0.00481695 0) (1.00168 0.00474104 0) (1.00225 0.00464123 0) (1.00254 0.00448102 0) (1.00265 0.00422824 0) (1.00258 0.00388519 0) (1.0027 0.00358068 0) (1.00267 0.0033696 0) (1.00263 0.00327097 0) (1.00239 0.00311899 0) (1.00225 0.00296802 0) (1.00203 0.0029272 0) (1.00187 0.00308147 0) (1.00168 0.00335533 0) (1.00182 0.00359483 0) (1.0021 0.00364193 0) (1.00244 0.00353577 0) (1.00252 0.00327524 0) (1.00249 0.00296843 0) (1.00237 0.00269376 0) (1.00226 0.00250953 0) (1.00204 0.00230985 0) (1.00169 0.00215778 0) (1.00136 0.00216812 0) (1.00109 0.0023653 0) (1.00104 0.00259983 0) (1.00103 0.00270516 0) (1.00118 0.00268933 0) (1.00116 0.00262306 0) (1.00123 0.00248659 0) (1.00105 0.00232112 0) (1.00102 0.00216419 0) (1.00072 0.00208357 0) (1.00067 0.00203382 0) (1.00032 0.00199663 0) (1.00034 0.00201007 0) (1.00007 0.00200453 0) (1.0001 0.00196545 0) (0.999796 0.00197925 0) (0.999935 0.00200084 0) (0.999707 0.00203825 0) (0.999954 0.00204605 0) (0.999853 0.0019753 0) (1.00001 0.00181039 0) (0.999743 0.00171579 0) (0.999762 0.00166983 0) (0.999569 0.00173255 0) (0.999725 0.00174886 0) (0.999766 0.00174154 0) (0.99986 0.00164527 0) (0.999901 0.00171269 0) (1 0.00176636 0) (1.00029 0.00177913 0) (1.00029 0.00163079 0) (1.00043 0.00162406 0) (1.00028 0.00162422 0) (1.00054 0.00173402 0) (1.00038 0.00175958 0) (1.00073 0.00180177 0) (1.00046 0.00169195 0) (1.00068 0.00169087 0) (1.00025 0.00165538 0) (1.00042 0.00170202 0) (1.00002 0.00166819 0) (1.00016 0.00168744 0) (0.999753 0.00162515 0) (0.99974 0.00160041 0) (0.999324 0.00153822 0) (0.999141 0.0015562 0) (0.998938 0.00155404 0) (0.998672 0.00153755 0) (0.998601 0.00146891 0) (0.998036 0.00143799 0) (0.998204 0.00141925 0) (0.997527 0.00139474 0) (0.997883 0.00133947 0) (0.997176 0.00129796 0) (0.99761 0.00120403 0) (0.997097 0.00115791 0) (0.997953 0.000949657 0) (0.99437 0.00365129 0) (0.994636 0.00520934 0) (0.994973 0.00618174 0) (0.995258 0.00648827 0) (0.995552 0.00688888 0) (0.996312 0.0071457 0) (0.997567 0.00678351 0) (0.998572 0.00626228 0) (0.999287 0.00593499 0) (0.999646 0.00545046 0) (0.999853 0.0049758 0) (1.00015 0.00478886 0) (1.00076 0.00467312 0) (1.00103 0.00445476 0) (1.00087 0.00443506 0) (1.00057 0.0044903 0) (1.00072 0.00440431 0) (1.001 0.00431829 0) (1.0012 0.0044646 0) (1.00115 0.00467022 0) (1.00129 0.00475653 0) (1.0016 0.0046695 0) (1.00217 0.00456428 0) (1.00245 0.00441927 0) (1.00254 0.00419899 0) (1.00247 0.00387848 0) (1.0026 0.00358786 0) (1.00259 0.00338158 0) (1.00255 0.00328685 0) (1.00231 0.00314773 0) (1.00218 0.00301011 0) (1.002 0.00296941 0) (1.00187 0.00311046 0) (1.00169 0.00335313 0) (1.00181 0.00356069 0) (1.00206 0.00359503 0) (1.00238 0.00350024 0) (1.00244 0.00326507 0) (1.00242 0.00298075 0) (1.00231 0.00271535 0) (1.00221 0.00253694 0) (1.00199 0.00235177 0) (1.00166 0.00221131 0) (1.00136 0.0022148 0) (1.0011 0.00239073 0) (1.00105 0.00260269 0) (1.00103 0.00269687 0) (1.00116 0.00268071 0) (1.00114 0.00262084 0) (1.0012 0.00249349 0) (1.00102 0.00233557 0) (1.001 0.00218526 0) (1.0007 0.00210885 0) (1.00066 0.00205777 0) (1.00032 0.00201724 0) (1.00035 0.00202689 0) (1.00007 0.00201973 0) (1.00011 0.00197981 0) (0.999812 0.00199053 0) (0.999951 0.0020057 0) (0.999722 0.0020373 0) (0.999959 0.00203828 0) (0.999846 0.00197231 0) (1 0.00181621 0) (0.999742 0.00172883 0) (0.99977 0.0016786 0) (0.999585 0.00173448 0) (0.999735 0.00173976 0) (0.999767 0.00173441 0) (0.999857 0.00163905 0) (0.999898 0.0017056 0) (0.999994 0.00174899 0) (1.00026 0.00176585 0) (1.00026 0.00162451 0) (1.00041 0.001624 0) (1.00026 0.00161988 0) (1.00051 0.0017295 0) (1.00035 0.00175159 0) (1.0007 0.00179891 0) (1.00042 0.00169377 0) (1.00064 0.00169938 0) (1.00022 0.00166487 0) (1.00039 0.00171198 0) (0.999992 0.00167717 0) (1.00013 0.00169883 0) (0.999723 0.001639 0) (0.999712 0.0016173 0) (0.999306 0.00155734 0) (0.999128 0.00157179 0) (0.998924 0.00156782 0) (0.998657 0.00155135 0) (0.998591 0.00148708 0) (0.998033 0.0014533 0) (0.9982 0.00143358 0) (0.997528 0.00140595 0) (0.997883 0.00135062 0) (0.997181 0.00130682 0) (0.997611 0.00120879 0) (0.9971 0.0011651 0) (0.997952 0.000954836 0) (0.994837 0.00335896 0) (0.995042 0.00479644 0) (0.995165 0.00585815 0) (0.995323 0.00621214 0) (0.995612 0.00645507 0) (0.996281 0.00673165 0) (0.997396 0.00661369 0) (0.998382 0.00612156 0) (0.999118 0.00573466 0) (0.999456 0.00539047 0) (0.999682 0.00498316 0) (1.00004 0.00469195 0) (1.00065 0.00459436 0) (1.00092 0.00443262 0) (1.0008 0.00436831 0) (1.00051 0.00442687 0) (1.00064 0.00440842 0) (1.00094 0.004312 0) (1.00118 0.00441464 0) (1.00113 0.00461518 0) (1.00123 0.00470025 0) (1.00152 0.00460202 0) (1.00208 0.00449091 0) (1.00236 0.004357 0) (1.00244 0.00416915 0) (1.00236 0.00387282 0) (1.0025 0.00359342 0) (1.00251 0.00339307 0) (1.00248 0.00330348 0) (1.00223 0.00317529 0) (1.00211 0.00304933 0) (1.00196 0.00300717 0) (1.00187 0.00313499 0) (1.00169 0.00334957 0) (1.00179 0.00352853 0) (1.00201 0.00355101 0) (1.00231 0.00346635 0) (1.00236 0.00325513 0) (1.00235 0.00299288 0) (1.00224 0.00273741 0) (1.00215 0.00256516 0) (1.00194 0.00239357 0) (1.00162 0.00226379 0) (1.00135 0.00226042 0) (1.00111 0.00241598 0) (1.00106 0.00260668 0) (1.00102 0.0026902 0) (1.00115 0.00267335 0) (1.00112 0.00261948 0) (1.00117 0.00250119 0) (1.00099 0.00235062 0) (1.00098 0.00220648 0) (1.00069 0.00213399 0) (1.00065 0.00208174 0) (1.00032 0.00203823 0) (1.00035 0.00204424 0) (1.00008 0.0020355 0) (1.00012 0.00199449 0) (0.999826 0.00200214 0) (0.999965 0.00201118 0) (0.999736 0.00203719 0) (0.999962 0.00203141 0) (0.999838 0.00196994 0) (0.999993 0.00182207 0) (0.999739 0.00174162 0) (0.999775 0.00168695 0) (0.999598 0.00173608 0) (0.999743 0.00173076 0) (0.999766 0.00172767 0) (0.999851 0.00163299 0) (0.999891 0.00169848 0) (0.99998 0.00173185 0) (1.00024 0.00175277 0) (1.00023 0.00161802 0) (1.00038 0.00162362 0) (1.00023 0.00161548 0) (1.00048 0.00172503 0) (1.00032 0.00174373 0) (1.00065 0.0017961 0) (1.00038 0.00169582 0) (1.0006 0.00170802 0) (1.00018 0.00167452 0) (1.00035 0.00172217 0) (0.999958 0.00168669 0) (1.00009 0.00171059 0) (0.999691 0.00165338 0) (0.999681 0.00163453 0) (0.999285 0.00157695 0) (0.999113 0.00158788 0) (0.998909 0.00158245 0) (0.99864 0.00156562 0) (0.998579 0.00150587 0) (0.998028 0.00146904 0) (0.998195 0.00144857 0) (0.997526 0.00141751 0) (0.997882 0.00136222 0) (0.997184 0.00131612 0) (0.997609 0.00121407 0) (0.9971 0.00117258 0) (0.997948 0.0009605 0) (0.995257 0.00310406 0) (0.995453 0.00439362 0) (0.995391 0.00550218 0) (0.995379 0.00595923 0) (0.99564 0.00610585 0) (0.996277 0.00629787 0) (0.99727 0.00636437 0) (0.998183 0.0060194 0) (0.998939 0.00556699 0) (0.999289 0.00525663 0) (0.999505 0.0049818 0) (0.999895 0.00464623 0) (1.00054 0.00449437 0) (1.00082 0.00439395 0) (1.00072 0.00432755 0) (1.00045 0.00435843 0) (1.00056 0.00438618 0) (1.00087 0.0043086 0) (1.00115 0.00436577 0) (1.0011 0.00454953 0) (1.00116 0.00464523 0) (1.00143 0.00453839 0) (1.00199 0.00441824 0) (1.00226 0.00429302 0) (1.00233 0.00413469 0) (1.00224 0.00386588 0) (1.00239 0.00359684 0) (1.00242 0.00340119 0) (1.0024 0.00332014 0) (1.00215 0.00320307 0) (1.00204 0.00308767 0) (1.00192 0.00304383 0) (1.00185 0.00315852 0) (1.00168 0.00334726 0) (1.00177 0.00349972 0) (1.00197 0.00351005 0) (1.00224 0.00343326 0) (1.00229 0.0032439 0) (1.00227 0.0030031 0) (1.00218 0.00275816 0) (1.0021 0.00259271 0) (1.00189 0.00243431 0) (1.00159 0.00231477 0) (1.00134 0.00230504 0) (1.00112 0.00244141 0) (1.00106 0.00261212 0) (1.00101 0.00268527 0) (1.00113 0.00266696 0) (1.00109 0.00261822 0) (1.00114 0.00250882 0) (1.00096 0.00236573 0) (1.00096 0.00222787 0) (1.00068 0.00215945 0) (1.00064 0.0021061 0) (1.00031 0.00205954 0) (1.00035 0.00206168 0) (1.00008 0.00205122 0) (1.00012 0.0020089 0) (0.99984 0.00201337 0) (0.999979 0.00201664 0) (0.999748 0.00203778 0) (0.999964 0.00202577 0) (0.999829 0.00196848 0) (0.999979 0.00182795 0) (0.999733 0.00175394 0) (0.999778 0.00169509 0) (0.999609 0.00173806 0) (0.999748 0.00172231 0) (0.999762 0.00172116 0) (0.999842 0.00162707 0) (0.999879 0.00169156 0) (0.999962 0.00171499 0) (1.0002 0.0017398 0) (1.0002 0.00161153 0) (1.00035 0.00162327 0) (1.0002 0.00161136 0) (1.00044 0.00172082 0) (1.00027 0.00173613 0) (1.0006 0.00179325 0) (1.00033 0.00169806 0) (1.00055 0.00171678 0) (1.00014 0.00168432 0) (1.00031 0.00173254 0) (0.999921 0.00169686 0) (1.00005 0.00172278 0) (0.999656 0.00166827 0) (0.999647 0.00165197 0) (0.999262 0.00159697 0) (0.999095 0.00160437 0) (0.998892 0.00159789 0) (0.998622 0.00158031 0) (0.998565 0.00152524 0) (0.998021 0.00148515 0) (0.998188 0.00146426 0) (0.997524 0.00142948 0) (0.997878 0.00137427 0) (0.997186 0.00132591 0) (0.997606 0.00121992 0) (0.997098 0.00118041 0) (0.997941 0.000966718 0) (0.995618 0.00289885 0) (0.995853 0.00401249 0) (0.995652 0.00512346 0) (0.995446 0.00570383 0) (0.995632 0.00583125 0) (0.99627 0.00589714 0) (0.997194 0.00603646 0) (0.997998 0.00589864 0) (0.998738 0.00545963 0) (0.999132 0.00508916 0) (0.999344 0.0049222 0) (0.999733 0.00463837 0) (1.00042 0.00440851 0) (1.00072 0.00432159 0) (1.00064 0.00429126 0) (1.00038 0.00430003 0) (1.00049 0.00434183 0) (1.0008 0.0042917 0) (1.00111 0.00432247 0) (1.00107 0.00447755 0) (1.00109 0.0045867 0) (1.00133 0.00448207 0) (1.00189 0.00434972 0) (1.00216 0.00423157 0) (1.00222 0.00409963 0) (1.00212 0.00385841 0) (1.00228 0.00360111 0) (1.00233 0.00340601 0) (1.00232 0.00333411 0) (1.00206 0.00322964 0) (1.00196 0.00312225 0) (1.00187 0.00307573 0) (1.00183 0.00317799 0) (1.00167 0.00334381 0) (1.00173 0.00347325 0) (1.00191 0.0034726 0) (1.00217 0.00340272 0) (1.00221 0.00323383 0) (1.00219 0.00301395 0) (1.00211 0.00277987 0) (1.00204 0.00262115 0) (1.00184 0.00247502 0) (1.00155 0.00236465 0) (1.00133 0.00234849 0) (1.00112 0.00246662 0) (1.00106 0.00261866 0) (1.00099 0.00268207 0) (1.00111 0.00266211 0) (1.00107 0.0026179 0) (1.00111 0.00251716 0) (1.00093 0.00238132 0) (1.00093 0.00224938 0) (1.00066 0.00218497 0) (1.00063 0.00213088 0) (1.00031 0.00208138 0) (1.00035 0.00207955 0) (1.00008 0.00206731 0) (1.00013 0.00202357 0) (0.999853 0.00202481 0) (0.999991 0.00202233 0) (0.999759 0.00203869 0) (0.999964 0.00202092 0) (0.999819 0.00196775 0) (0.999964 0.00183382 0) (0.999726 0.00176543 0) (0.999779 0.00170202 0) (0.999617 0.00173945 0) (0.99975 0.00171436 0) (0.999755 0.00171514 0) (0.99983 0.00162111 0) (0.999865 0.00168455 0) (0.999939 0.00169842 0) (1.00017 0.00172679 0) (1.00016 0.00160458 0) (1.00031 0.00162246 0) (1.00016 0.00160731 0) (1.0004 0.0017167 0) (1.00023 0.00172874 0) (1.00055 0.00179044 0) (1.00028 0.00170059 0) (1.0005 0.00172563 0) (1.00009 0.00169425 0) (1.00027 0.00174298 0) (0.999881 0.00170758 0) (1.00001 0.00173538 0) (0.999617 0.00168379 0) (0.999611 0.00166966 0) (0.999236 0.00161746 0) (0.999074 0.00162129 0) (0.998872 0.0016142 0) (0.998601 0.00159542 0) (0.99855 0.00154518 0) (0.998013 0.00150158 0) (0.998181 0.0014806 0) (0.99752 0.00144184 0) (0.997873 0.00138671 0) (0.997186 0.00133617 0) (0.997601 0.00122632 0) (0.997095 0.00118855 0) (0.997931 0.000973476 0) (0.995913 0.00275506 0) (0.996226 0.00366535 0) (0.995941 0.00473147 0) (0.99554 0.0054252 0) (0.995597 0.00560854 0) (0.996234 0.00556169 0) (0.997152 0.00566546 0) (0.997854 0.00571377 0) (0.998522 0.00539843 0) (0.998963 0.00495004 0) (0.999204 0.00480034 0) (0.999569 0.00462735 0) (1.00027 0.00436774 0) (1.00062 0.00423613 0) (1.00056 0.00423965 0) (1.0003 0.00425255 0) (1.00041 0.00429545 0) (1.00072 0.00425671 0) (1.00106 0.00427597 0) (1.00104 0.00440619 0) (1.00102 0.00452011 0) (1.00122 0.00442644 0) (1.00179 0.00428316 0) (1.00206 0.0041678 0) (1.0021 0.0040621 0) (1.00199 0.00384728 0) (1.00216 0.00360515 0) (1.00224 0.00341002 0) (1.00223 0.00334518 0) (1.00198 0.00325644 0) (1.00188 0.00315617 0) (1.00181 0.0031046 0) (1.0018 0.00319509 0) (1.00165 0.00334015 0) (1.0017 0.00344891 0) (1.00186 0.00343757 0) (1.0021 0.00337273 0) (1.00213 0.00322246 0) (1.00211 0.00302264 0) (1.00204 0.00279997 0) (1.00198 0.00264846 0) (1.00179 0.00251452 0) (1.00151 0.00241321 0) (1.00131 0.00239099 0) (1.00112 0.00249183 0) (1.00106 0.00262633 0) (1.00098 0.0026803 0) (1.00109 0.00265832 0) (1.00104 0.00261801 0) (1.00108 0.00252588 0) (1.0009 0.00239737 0) (1.00091 0.0022713 0) (1.00065 0.00221086 0) (1.00062 0.0021563 0) (1.0003 0.00210393 0) (1.00035 0.00209788 0) (1.00008 0.00208365 0) (1.00013 0.00203844 0) (0.999865 0.00203677 0) (1 0.00202924 0) (0.999768 0.00204125 0) (0.999964 0.00201782 0) (0.999809 0.00196832 0) (0.999951 0.00184043 0) (0.99972 0.00177731 0) (0.999779 0.00170926 0) (0.999622 0.00174102 0) (0.99975 0.0017069 0) (0.999747 0.00170988 0) (0.999816 0.00161593 0) (0.999848 0.00167789 0) (0.999914 0.00168231 0) (1.00013 0.00171424 0) (1.00012 0.00159796 0) (1.00027 0.00162168 0) (1.00012 0.00160355 0) (1.00035 0.00171277 0) (1.00018 0.00172154 0) (1.0005 0.00178755 0) (1.00023 0.00170343 0) (1.00044 0.00173456 0) (1.00004 0.00170431 0) (1.00022 0.00175351 0) (0.999838 0.00171893 0) (0.999963 0.00174829 0) (0.999577 0.00169981 0) (0.999573 0.00168746 0) (0.999208 0.00163838 0) (0.999051 0.00163857 0) (0.998851 0.00163143 0) (0.998579 0.00161099 0) (0.998533 0.00156576 0) (0.998003 0.00151845 0) (0.998172 0.00149766 0) (0.997515 0.00145476 0) (0.997867 0.00139964 0) (0.997184 0.00134703 0) (0.997594 0.00123338 0) (0.99709 0.00119714 0) (0.99792 0.00098088 0) (0.996144 0.00266722 0) (0.996553 0.00336191 0) (0.996248 0.00433494 0) (0.995674 0.00510977 0) (0.995556 0.00540391 0) (0.996158 0.00529601 0) (0.997117 0.00529401 0) (0.997763 0.00544505 0) (0.998315 0.00532644 0) (0.998767 0.00486495 0) (0.999074 0.00464163 0) (0.999423 0.00456117 0) (1.00012 0.00435609 0) (1.00051 0.00416669 0) (1.00048 0.00416437 0) (1.00023 0.00419687 0) (1.00033 0.0042547 0) (1.00063 0.00421876 0) (1.00101 0.00421799 0) (1.00099 0.00433726 0) (1.00095 0.00445614 0) (1.00111 0.0043717 0) (1.00167 0.00422322 0) (1.00196 0.00410583 0) (1.00199 0.00402461 0) (1.00186 0.00383538 0) (1.00204 0.00360768 0) (1.00214 0.00341436 0) (1.00215 0.00335276 0) (1.00189 0.0032803 0) (1.0018 0.0031895 0) (1.00176 0.00313037 0) (1.00177 0.00320923 0) (1.00162 0.00333671 0) (1.00165 0.00342736 0) (1.0018 0.00340644 0) (1.00203 0.00334539 0) (1.00205 0.00321237 0) (1.00203 0.00303195 0) (1.00197 0.00282072 0) (1.00191 0.00267627 0) (1.00173 0.00255363 0) (1.00147 0.00246077 0) (1.00129 0.00243271 0) (1.00112 0.00251703 0) (1.00106 0.00263533 0) (1.00097 0.00268028 0) (1.00107 0.00265587 0) (1.00102 0.0026187 0) (1.00105 0.00253476 0) (1.00087 0.00241324 0) (1.00089 0.00229268 0) (1.00063 0.00223603 0) (1.00061 0.00218139 0) (1.0003 0.00212638 0) (1.00035 0.00211622 0) (1.00009 0.00209986 0) (1.00014 0.00205283 0) (0.999876 0.00204793 0) (1.00001 0.0020356 0) (0.999775 0.0020438 0) (0.999962 0.00201532 0) (0.999801 0.00196904 0) (0.99994 0.00184631 0) (0.999716 0.001788 0) (0.999779 0.00171582 0) (0.999627 0.00174276 0) (0.999747 0.0017001 0) (0.999736 0.00170471 0) (0.9998 0.00161081 0) (0.999829 0.00167152 0) (0.999888 0.0016666 0) (1.0001 0.00170156 0) (1.00008 0.00159116 0) (1.00023 0.00162085 0) (1.00007 0.0016002 0) (1.0003 0.00170913 0) (1.00012 0.00171483 0) (1.00044 0.0017848 0) (1.00017 0.00170664 0) (1.00038 0.00174361 0) (0.999993 0.00171466 0) (1.00017 0.0017642 0) (0.999791 0.00173098 0) (0.999914 0.00176165 0) (0.999534 0.00171651 0) (0.999533 0.00170551 0) (0.999179 0.00165984 0) (0.999026 0.0016563 0) (0.998829 0.00164953 0) (0.998557 0.00162701 0) (0.998517 0.00158691 0) (0.997994 0.00153574 0) (0.998163 0.00151539 0) (0.99751 0.00146823 0) (0.997861 0.001413 0) (0.997183 0.0013585 0) (0.997587 0.0012411 0) (0.997085 0.00120616 0) (0.997907 0.00098897 0) (0.996324 0.00262735 0) (0.996823 0.00312419 0) (0.996557 0.00395722 0) (0.995855 0.0047672 0) (0.995535 0.00519427 0) (0.996045 0.0050988 0) (0.997063 0.00497016 0) (0.99772 0.00512022 0) (0.998148 0.00520278 0) (0.998548 0.00483188 0) (0.998928 0.0045062 0) (0.999301 0.00443513 0) (0.999964 0.00433597 0) (1.00038 0.00413495 0) (1.00039 0.00408636 0) (1.00017 0.0041188 0) (1.00025 0.00420477 0) (1.00054 0.00418773 0) (1.00094 0.00415024 0) (1.00095 0.00425139 0) (1.00088 0.00439409 0) (1.00099 0.00431639 0) (1.00155 0.00416172 0) (1.00185 0.00404339 0) (1.00188 0.00398329 0) (1.00173 0.00382153 0) (1.00191 0.0036066 0) (1.00203 0.0034165 0) (1.00206 0.00335787 0) (1.0018 0.00329862 0) (1.00171 0.00322019 0) (1.0017 0.00315322 0) (1.00174 0.00321858 0) (1.00159 0.00333181 0) (1.00161 0.00340679 0) (1.00174 0.00337673 0) (1.00197 0.00331829 0) (1.00197 0.00320095 0) (1.00194 0.00303934 0) (1.00189 0.00283965 0) (1.00185 0.00270203 0) (1.00168 0.00259015 0) (1.00143 0.00250546 0) (1.00128 0.00247237 0) (1.00112 0.00254128 0) (1.00105 0.0026448 0) (1.00095 0.00268151 0) (1.00105 0.00265457 0) (1.001 0.00262006 0) (1.00102 0.00254439 0) (1.00084 0.00242982 0) (1.00087 0.0023145 0) (1.00062 0.00226122 0) (1.0006 0.00220658 0) (1.0003 0.00214891 0) (1.00036 0.00213479 0) (1.0001 0.00211677 0) (1.00015 0.0020684 0) (0.999888 0.00206038 0) (1.00002 0.00204326 0) (0.999782 0.00204735 0) (0.999961 0.00201402 0) (0.999795 0.00197089 0) (0.999932 0.00185284 0) (0.999714 0.00179861 0) (0.999781 0.00172206 0) (0.99963 0.00174442 0) (0.999743 0.00169414 0) (0.999723 0.00170032 0) (0.999784 0.00160585 0) (0.99981 0.00166506 0) (0.999861 0.00165166 0) (1.00006 0.0016895 0) (1.00003 0.00158438 0) (1.00018 0.00161952 0) (1.00003 0.0015968 0) (1.00025 0.00170528 0) (1.00007 0.0017082 0) (1.00037 0.00178188 0) (1.0001 0.00170984 0) (1.00032 0.00175215 0) (0.999939 0.00172489 0) (1.00012 0.00177481 0) (0.999742 0.00174341 0) (0.999864 0.00177494 0) (0.999491 0.00173345 0) (0.999492 0.00172344 0) (0.999149 0.00168158 0) (0.999001 0.00167428 0) (0.998807 0.00166837 0) (0.998535 0.00164329 0) (0.9985 0.0016085 0) (0.997984 0.00155336 0) (0.998154 0.00153372 0) (0.997506 0.00148227 0) (0.997855 0.0014268 0) (0.997182 0.00137062 0) (0.99758 0.00124955 0) (0.99708 0.00121563 0) (0.997894 0.00099775 0) (0.996477 0.00259939 0) (0.997031 0.00294952 0) (0.996853 0.00360949 0) (0.996086 0.00440238 0) (0.995562 0.00495441 0) (0.995918 0.00494385 0) (0.996975 0.00471483 0) (0.997707 0.00477526 0) (0.998045 0.0050013 0) (0.998332 0.00480553 0) (0.998751 0.00442905 0) (0.999188 0.00427601 0) (0.99983 0.00426487 0) (1.00024 0.00412773 0) (1.00029 0.00403585 0) (1.0001 0.00402908 0) (1.00017 0.00413149 0) (1.00044 0.00416344 0) (1.00085 0.0041005 0) (1.00091 0.00414723 0) (1.0008 0.00432568 0) (1.00087 0.00427476 0) (1.00142 0.0041009 0) (1.00174 0.00398085 0) (1.00177 0.00394252 0) (1.0016 0.00380841 0) (1.00177 0.00360621 0) (1.00193 0.00341667 0) (1.00198 0.00336314 0) (1.00172 0.00331482 0) (1.00163 0.00324824 0) (1.00163 0.0031762 0) (1.0017 0.00322584 0) (1.00156 0.0033266 0) (1.00156 0.00338975 0) (1.00168 0.00335092 0) (1.00189 0.00329417 0) (1.00189 0.00319123 0) (1.00186 0.00304761 0) (1.00182 0.0028597 0) (1.00179 0.0027286 0) (1.00163 0.00262682 0) (1.00139 0.00254964 0) (1.00126 0.00251174 0) (1.00112 0.00256602 0) (1.00105 0.00265598 0) (1.00094 0.0026852 0) (1.00103 0.0026558 0) (1.00098 0.00262314 0) (1.001 0.00255528 0) (1.00081 0.00244724 0) (1.00085 0.00233666 0) (1.00061 0.00228651 0) (1.00059 0.00223238 0) (1.0003 0.00217227 0) (1.00036 0.00215413 0) (1.0001 0.00213419 0) (1.00016 0.00208447 0) (0.999902 0.00207355 0) (1.00003 0.00205216 0) (0.999792 0.00205228 0) (0.999963 0.00201383 0) (0.999791 0.00197312 0) (0.999924 0.00185961 0) (0.999712 0.00180958 0) (0.999781 0.00172915 0) (0.999634 0.00174695 0) (0.999739 0.00168898 0) (0.999712 0.00169654 0) (0.999767 0.0016018 0) (0.999791 0.00165906 0) (0.999833 0.00163726 0) (1.00002 0.00167804 0) (0.999984 0.0015785 0) (1.00013 0.00161866 0) (0.999978 0.00159399 0) (1.0002 0.00170188 0) (1.00001 0.0017025 0) (1.00031 0.0017795 0) (1.00004 0.0017137 0) (1.00026 0.00176082 0) (0.999884 0.00173551 0) (1.00007 0.00178576 0) (0.999691 0.00175671 0) (0.999814 0.00178869 0) (0.999448 0.00175106 0) (0.999452 0.00174166 0) (0.999119 0.00170394 0) (0.998976 0.00169277 0) (0.998785 0.00168816 0) (0.998514 0.00166015 0) (0.998485 0.0016307 0) (0.997976 0.00157152 0) (0.998147 0.0015526 0) (0.997503 0.00149697 0) (0.99785 0.001441 0) (0.997182 0.00138346 0) (0.997574 0.00125878 0) (0.997077 0.00122566 0) (0.997881 0.00100734 0) (0.996621 0.00255307 0) (0.99718 0.00282289 0) (0.99711 0.00330687 0) (0.996345 0.00402521 0) (0.995645 0.00467215 0) (0.995797 0.00479399 0) (0.996838 0.00452746 0) (0.997689 0.00444923 0) (0.998005 0.00472733 0) (0.998149 0.00473516 0) (0.998541 0.00440453 0) (0.99906 0.00413286 0) (0.999726 0.00412923 0) (1.00011 0.00410157 0) (1.00017 0.00402054 0) (1.00001 0.00394931 0) (1.00011 0.00402667 0) (1.00035 0.00411772 0) (1.00075 0.00407735 0) (1.00086 0.00404186 0) (1.00075 0.00422584 0) (1.00075 0.00424318 0) (1.00128 0.00404963 0) (1.00164 0.00390903 0) (1.00166 0.00389897 0) (1.00148 0.00379386 0) (1.00164 0.0036042 0) (1.00182 0.00341239 0) (1.0019 0.00336396 0) (1.00164 0.00332913 0) (1.00154 0.00327151 0) (1.00156 0.00319666 0) (1.00166 0.00323172 0) (1.00152 0.00331977 0) (1.00151 0.00337519 0) (1.00162 0.00332863 0) (1.00182 0.00327134 0) (1.00182 0.00318136 0) (1.00177 0.00305423 0) (1.00174 0.00287777 0) (1.00173 0.00275284 0) (1.00158 0.0026606 0) (1.00136 0.00259095 0) (1.00124 0.0025491 0) (1.00111 0.00259003 0) (1.00105 0.00266776 0) (1.00092 0.00268985 0) (1.00101 0.00265776 0) (1.00096 0.00262615 0) (1.00097 0.00256559 0) (1.00079 0.00246362 0) (1.00083 0.00235726 0) (1.00061 0.00230986 0) (1.00059 0.00225681 0) (1.0003 0.00219482 0) (1.00037 0.00217323 0) (1.00011 0.00215153 0) (1.00017 0.00210021 0) (0.999918 0.00208598 0) (1.00004 0.00206063 0) (0.999807 0.00205743 0) (0.999969 0.00201479 0) (0.999791 0.00197602 0) (0.999919 0.00186597 0) (0.999711 0.00181937 0) (0.999784 0.00173554 0) (0.99964 0.00174966 0) (0.999739 0.00168482 0) (0.999704 0.00169305 0) (0.999753 0.00159792 0) (0.999772 0.00165383 0) (0.999805 0.00162432 0) (0.999975 0.0016669 0) (0.999938 0.00157225 0) (1.00009 0.00161737 0) (0.999931 0.00159144 0) (1.00014 0.00169856 0) (0.999957 0.00169729 0) (1.00025 0.00177728 0) (0.999977 0.00171769 0) (1.00019 0.00176921 0) (0.999827 0.00174632 0) (1.00001 0.0017968 0) (0.999641 0.00177042 0) (0.999763 0.00180247 0) (0.999404 0.00176903 0) (0.999411 0.00175984 0) (0.99909 0.00172664 0) (0.998951 0.00171165 0) (0.998765 0.00170869 0) (0.998494 0.00167746 0) (0.998471 0.0016534 0) (0.99797 0.00159032 0) (0.998142 0.00157216 0) (0.997502 0.00151254 0) (0.997848 0.00145573 0) (0.997184 0.00139713 0) (0.997569 0.00126892 0) (0.997075 0.00123634 0) (0.997869 0.00101786 0) (0.996777 0.00248833 0) (0.997283 0.00273186 0) (0.997312 0.00307116 0) (0.996611 0.00366536 0) (0.995789 0.00435851 0) (0.995707 0.0046273 0) (0.996663 0.00439972 0) (0.997639 0.00418246 0) (0.998011 0.00441608 0) (0.998028 0.0045971 0) (0.998321 0.00440216 0) (0.998895 0.00404948 0) (0.999636 0.00395849 0) (1.00001 0.00401835 0) (1.00004 0.00402354 0) (0.999912 0.00390542 0) (1.00005 0.00390883 0) (1.00028 0.00402719 0) (1.00065 0.00406363 0) (1.00079 0.00396815 0) (1.0007 0.00408999 0) (1.00064 0.00419481 0) (1.00114 0.00402355 0) (1.00153 0.00383022 0) (1.00157 0.0038433 0) (1.00135 0.00378111 0) (1.0015 0.00360166 0) (1.00171 0.00340552 0) (1.00181 0.00335889 0) (1.00155 0.00334068 0) (1.00145 0.00329165 0) (1.00149 0.00321153 0) (1.00161 0.00323487 0) (1.00149 0.00330994 0) (1.00145 0.0033588 0) (1.00155 0.00330725 0) (1.00176 0.0032476 0) (1.00175 0.00316983 0) (1.00169 0.00305939 0) (1.00167 0.00289421 0) (1.00167 0.00277524 0) (1.00153 0.00269192 0) (1.00132 0.00262956 0) (1.00121 0.00258446 0) (1.00111 0.00261299 0) (1.00104 0.00267996 0) (1.00091 0.00269545 0) (1.00099 0.00266052 0) (1.00094 0.00262948 0) (1.00095 0.00257655 0) (1.00077 0.00248109 0) (1.00082 0.00237915 0) (1.0006 0.0023344 0) (1.00059 0.00228267 0) (1.00031 0.0022185 0) (1.00038 0.00219322 0) (1.00013 0.00216974 0) (1.00018 0.00211704 0) (0.999937 0.00209945 0) (1.00006 0.00207031 0) (0.999824 0.00206379 0) (0.999979 0.0020174 0) (0.999795 0.00198069 0) (0.999919 0.00187387 0) (0.999716 0.00182969 0) (0.99979 0.00174197 0) (0.999649 0.00175235 0) (0.999741 0.00168168 0) (0.999699 0.00169088 0) (0.999741 0.0015949 0) (0.999757 0.00164857 0) (0.999779 0.00161212 0) (0.999937 0.00165674 0) (0.999894 0.00156652 0) (1.00004 0.00161569 0) (0.999884 0.00158909 0) (1.00009 0.00169551 0) (0.999899 0.00169244 0) (1.00018 0.00177468 0) (0.999915 0.00172164 0) (1.00013 0.00177712 0) (0.999769 0.00175686 0) (0.999957 0.00180745 0) (0.999592 0.00178442 0) (0.999714 0.00181621 0) (0.999362 0.00178719 0) (0.999371 0.00177784 0) (0.999062 0.00174938 0) (0.998927 0.00173068 0) (0.998746 0.00172982 0) (0.998476 0.00169513 0) (0.998459 0.00167632 0) (0.997965 0.00160948 0) (0.99814 0.00159208 0) (0.997504 0.00152882 0) (0.997848 0.00147088 0) (0.997188 0.00141147 0) (0.997567 0.00127991 0) (0.997076 0.00124751 0) (0.99786 0.00102919 0) (0.996957 0.00239603 0) (0.997362 0.00264503 0) (0.997458 0.00288979 0) (0.996861 0.00334161 0) (0.995985 0.00401899 0) (0.995674 0.00442119 0) (0.996472 0.00429727 0) (0.997537 0.00398384 0) (0.998035 0.00410136 0) (0.99798 0.00438365 0) (0.998127 0.00437168 0) (0.998689 0.00402433 0) (0.999532 0.00380236 0) (0.999959 0.0038671 0) (0.999939 0.00400411 0) (0.999785 0.00390643 0) (0.999975 0.00381362 0) (1.00023 0.00389607 0) (1.00055 0.00402575 0) (1.00069 0.00394424 0) (1.00066 0.0039553 0) (1.00056 0.00410176 0) (1.00098 0.00402203 0) (1.00141 0.00377046 0) (1.00148 0.00376706 0) (1.00124 0.0037694 0) (1.00136 0.00360623 0) (1.0016 0.00339754 0) (1.00173 0.00334996 0) (1.00148 0.00334837 0) (1.00137 0.00331206 0) (1.00142 0.00322364 0) (1.00156 0.00323592 0) (1.00145 0.00330244 0) (1.0014 0.00334479 0) (1.00149 0.00329078 0) (1.00169 0.00322848 0) (1.00168 0.00316037 0) (1.00162 0.00306658 0) (1.0016 0.00291244 0) (1.00161 0.00279848 0) (1.00149 0.00272361 0) (1.00128 0.00266793 0) (1.00119 0.00262 0) (1.0011 0.00263685 0) (1.00104 0.00269447 0) (1.0009 0.00270433 0) (1.00098 0.0026663 0) (1.00093 0.00263446 0) (1.00093 0.00258824 0) (1.00075 0.00249848 0) (1.00081 0.00240015 0) (1.0006 0.00235764 0) (1.00059 0.00230796 0) (1.00032 0.00224196 0) (1.0004 0.00221311 0) (1.00014 0.0021878 0) (1.0002 0.0021337 0) (0.999959 0.00211286 0) (1.00008 0.0020805 0) (0.999843 0.00207079 0) (0.999992 0.00202063 0) (0.999805 0.00198509 0) (0.999926 0.00188113 0) (0.999727 0.00183969 0) (0.999801 0.00174875 0) (0.999662 0.00175542 0) (0.999747 0.00167905 0) (0.999697 0.00168896 0) (0.999733 0.00159295 0) (0.999744 0.00164468 0) (0.999757 0.00160101 0) (0.999903 0.00164678 0) (0.999854 0.0015614 0) (0.999997 0.00161461 0) (0.999839 0.00158758 0) (1.00004 0.00169313 0) (0.999844 0.00168884 0) (1.00012 0.00177282 0) (0.999853 0.00172647 0) (1.00007 0.00178565 0) (0.999714 0.00176818 0) (0.999902 0.00181857 0) (0.999543 0.00179922 0) (0.999665 0.00183062 0) (0.99932 0.00180605 0) (0.999333 0.00179619 0) (0.999035 0.00177263 0) (0.998905 0.00175028 0) (0.998729 0.00175169 0) (0.998461 0.00171341 0) (0.99845 0.00169958 0) (0.997964 0.00162928 0) (0.99814 0.00161249 0) (0.997509 0.00154595 0) (0.997851 0.00148656 0) (0.997197 0.00142662 0) (0.997568 0.00129194 0) (0.99708 0.00125939 0) (0.997854 0.0010415 0) (0.997172 0.00227838 0) (0.997436 0.00255162 0) (0.99756 0.00274529 0) (0.997077 0.00307282 0) (0.996215 0.00367624 0) (0.995711 0.00417345 0) (0.996295 0.00419232 0) (0.997386 0.00385192 0) (0.998045 0.0038261 0) (0.997997 0.00411791 0) (0.997988 0.00428375 0) (0.998462 0.0040318 0) (0.999387 0.00370464 0) (0.999927 0.00367501 0) (0.999882 0.00392046 0) (0.999651 0.00392909 0) (0.999865 0.00376627 0) (1.00019 0.00374915 0) (1.00049 0.00393069 0) (1.00058 0.00394363 0) (1.00059 0.00386636 0) (1.0005 0.00395757 0) (1.00084 0.00400281 0) (1.00126 0.00375099 0) (1.0014 0.00367256 0) (1.00114 0.00373665 0) (1.00121 0.00362148 0) (1.00147 0.00338795 0) (1.00165 0.00333369 0) (1.00141 0.00335047 0) (1.00128 0.00333089 0) (1.00134 0.00323554 0) (1.00151 0.0032323 0) (1.00141 0.00329459 0) (1.00134 0.00333216 0) (1.00142 0.00327401 0) (1.00162 0.00320916 0) (1.00161 0.00314803 0) (1.00154 0.00306961 0) (1.00152 0.00292736 0) (1.00155 0.00281735 0) (1.00144 0.00275071 0) (1.00124 0.00270217 0) (1.00117 0.00265195 0) (1.0011 0.00265779 0) (1.00104 0.00270708 0) (1.00089 0.00271239 0) (1.00096 0.00267186 0) (1.00091 0.00263869 0) (1.00092 0.00259934 0) (1.00073 0.00251557 0) (1.0008 0.00242052 0) (1.0006 0.00237979 0) (1.00059 0.0023327 0) (1.00033 0.00226527 0) (1.00042 0.00223313 0) (1.00016 0.0022064 0) (1.00022 0.00215107 0) (0.999985 0.00212665 0) (1.0001 0.00209139 0) (0.999866 0.00207906 0) (1.00001 0.002026 0) (0.99982 0.00199148 0) (0.999937 0.00188931 0) (0.999742 0.00184958 0) (0.999816 0.00175597 0) (0.999678 0.0017598 0) (0.999755 0.00167873 0) (0.999699 0.00168851 0) (0.999729 0.00159158 0) (0.999736 0.00164156 0) (0.99974 0.00159218 0) (0.999874 0.00163843 0) (0.999817 0.00155675 0) (0.999956 0.00161343 0) (0.999797 0.00158681 0) (0.999992 0.00169125 0) (0.999792 0.00168561 0) (1.00006 0.00177073 0) (0.999793 0.00173105 0) (1 0.0017935 0) (0.999659 0.00177899 0) (0.999848 0.00182921 0) (0.999495 0.00181388 0) (0.999617 0.00184466 0) (0.999281 0.00182481 0) (0.999296 0.00181431 0) (0.999009 0.00179583 0) (0.998884 0.00177013 0) (0.998714 0.00177406 0) (0.998448 0.00173217 0) (0.998443 0.00172306 0) (0.997965 0.00164973 0) (0.998142 0.00163335 0) (0.997517 0.00156402 0) (0.997857 0.00150282 0) (0.997208 0.00144272 0) (0.997573 0.00130519 0) (0.997089 0.00127232 0) (0.997851 0.00105506 0) (0.997426 0.00213711 0) (0.997521 0.00245135 0) (0.997633 0.002618 0) (0.99725 0.00285613 0) (0.996454 0.0033544 0) (0.995817 0.00388694 0) (0.996161 0.00405722 0) (0.997198 0.00376061 0) (0.998014 0.00360872 0) (0.998054 0.00382934 0) (0.997926 0.00412346 0) (0.998247 0.00402706 0) (0.999191 0.00366865 0) (0.999887 0.00349222 0) (0.999882 0.00375913 0) (0.999543 0.00392782 0) (0.999718 0.00377206 0) (1.00013 0.00362663 0) (1.00046 0.0037806 0) (1.00049 0.00391764 0) (1.00049 0.00384462 0) (1.00044 0.00380796 0) (1.00073 0.00392467 0) (1.00111 0.00376999 0) (1.00131 0.0035984 0) (1.00106 0.00366732 0) (1.00108 0.00364391 0) (1.00134 0.00339171 0) (1.00158 0.00330829 0) (1.00134 0.00334727 0) (1.00119 0.00334634 0) (1.00126 0.00324605 0) (1.00146 0.00322296 0) (1.00137 0.00328058 0) (1.00128 0.00332044 0) (1.00135 0.00325809 0) (1.00155 0.00319091 0) (1.00155 0.00313805 0) (1.00147 0.00307338 0) (1.00145 0.00294353 0) (1.0015 0.00283677 0) (1.0014 0.00277675 0) (1.0012 0.00273563 0) (1.00114 0.00268376 0) (1.00109 0.00267912 0) (1.00103 0.00272116 0) (1.00087 0.00272259 0) (1.00095 0.00267979 0) (1.00091 0.00264439 0) (1.00091 0.00261144 0) (1.00071 0.00253394 0) (1.00079 0.0024418 0) (1.00061 0.00240197 0) (1.0006 0.00235756 0) (1.00034 0.00228871 0) (1.00044 0.00225327 0) (1.00019 0.00222536 0) (1.00024 0.0021694 0) (1.00001 0.00214139 0) (1.00013 0.00210291 0) (0.999891 0.0020873 0) (1.00003 0.00203135 0) (0.999839 0.00199796 0) (0.999953 0.00189808 0) (0.999761 0.00185977 0) (0.999834 0.00176303 0) (0.999697 0.00176365 0) (0.999767 0.00167862 0) (0.999705 0.00168878 0) (0.999729 0.0015912 0) (0.999732 0.00163837 0) (0.999726 0.00158327 0) (0.999849 0.0016306 0) (0.999784 0.0015531 0) (0.999919 0.00161232 0) (0.999757 0.00158595 0) (0.999947 0.00168973 0) (0.999743 0.00168357 0) (1 0.00176933 0) (0.999736 0.00173616 0) (0.999946 0.00180156 0) (0.999608 0.00179025 0) (0.999796 0.00184025 0) (0.999449 0.00182926 0) (0.99957 0.00185913 0) (0.999242 0.00184389 0) (0.99926 0.0018326 0) (0.998984 0.00181938 0) (0.998863 0.00179052 0) (0.9987 0.0017971 0) (0.998436 0.00175157 0) (0.998438 0.00174673 0) (0.997967 0.0016708 0) (0.998147 0.00165448 0) (0.997528 0.0015828 0) (0.997865 0.00151942 0) (0.997223 0.00145922 0) (0.997581 0.00131922 0) (0.997101 0.00128563 0) (0.997852 0.00106949 0) (0.997718 0.00197632 0) (0.997626 0.00234419 0) (0.997689 0.00250039 0) (0.997386 0.00267618 0) (0.99668 0.00307438 0) (0.995979 0.00358011 0) (0.996092 0.00387934 0) (0.997001 0.00368222 0) (0.997932 0.00345225 0) (0.998117 0.00355877 0) (0.997938 0.0039027 0) (0.998078 0.00397756 0) (0.998958 0.0036757 0) (0.999804 0.0033653 0) (0.999922 0.00354826 0) (0.999492 0.00385977 0) (0.999554 0.00380929 0) (1.00002 0.00355972 0) (1.00045 0.00360659 0) (1.00045 0.00382594 0) (1.00037 0.00386084 0) (1.00036 0.00371294 0) (1.00066 0.00377919 0) (1.00097 0.00377473 0) (1.0012 0.00357751 0) (1.001 0.00356531 0) (1.00096 0.00364029 0) (1.0012 0.00341861 0) (1.00149 0.00327585 0) (1.00129 0.00333123 0) (1.00111 0.00336192 0) (1.00118 0.00325789 0) (1.0014 0.00321565 0) (1.00133 0.00326525 0) (1.00123 0.00331219 0) (1.00128 0.00324808 0) (1.00149 0.0031729 0) (1.00149 0.00312797 0) (1.0014 0.00307624 0) (1.00138 0.00295743 0) (1.00144 0.00285409 0) (1.00136 0.00279941 0) (1.00117 0.00276574 0) (1.00112 0.00271379 0) (1.00108 0.00269928 0) (1.00103 0.00273537 0) (1.00086 0.00273411 0) (1.00094 0.00268921 0) (1.0009 0.00265049 0) (1.00089 0.00262287 0) (1.0007 0.00255119 0) (1.00079 0.00246199 0) (1.00061 0.0024229 0) (1.0006 0.0023817 0) (1.00035 0.00231169 0) (1.00046 0.00227286 0) (1.00021 0.00224373 0) (1.00026 0.00218743 0) (1.00004 0.00215639 0) (1.00016 0.0021157 0) (0.99992 0.00209728 0) (1.00005 0.00203835 0) (0.999862 0.00200505 0) (0.999973 0.00190672 0) (0.999784 0.00187016 0) (0.999856 0.00177142 0) (0.99972 0.00176913 0) (0.999783 0.00168 0) (0.999715 0.00168985 0) (0.999733 0.0015921 0) (0.999732 0.00163755 0) (0.999718 0.0015771 0) (0.999828 0.00162396 0) (0.999757 0.00155025 0) (0.999886 0.00161249 0) (0.999722 0.00158671 0) (0.999906 0.00168895 0) (0.999698 0.00168243 0) (0.999945 0.00176867 0) (0.999681 0.0017418 0) (0.99989 0.00180959 0) (0.999558 0.00180162 0) (0.999745 0.0018514 0) (0.999404 0.00184479 0) (0.999526 0.00187374 0) (0.999205 0.00186318 0) (0.999226 0.00185081 0) (0.99896 0.0018426 0) (0.998844 0.00181091 0) (0.998687 0.0018201 0) (0.998427 0.00177133 0) (0.998434 0.00177039 0) (0.997972 0.00169261 0) (0.998153 0.00167597 0) (0.997541 0.00160254 0) (0.997876 0.00153685 0) (0.99724 0.00147663 0) (0.997591 0.0013347 0) (0.997116 0.00129987 0) (0.997856 0.00108511 0) (0.998039 0.00180055 0) (0.997763 0.00221953 0) (0.997739 0.00238931 0) (0.997492 0.00251641 0) (0.99688 0.00283721 0) (0.996172 0.00328002 0) (0.996096 0.00365679 0) (0.996824 0.00359078 0) (0.997804 0.00334067 0) (0.998157 0.00333141 0) (0.998007 0.00364741 0) (0.997982 0.00386354 0) (0.998719 0.00368977 0) (0.999662 0.00330446 0) (0.999968 0.00333923 0) (0.999514 0.00371018 0) (0.999411 0.00383138 0) (0.999868 0.00355686 0) (1.00042 0.00345373 0) (1.00045 0.00366766 0) (1.00028 0.00385536 0) (1.00024 0.00370007 0) (1.0006 0.00361944 0) (1.00087 0.00371022 0) (1.00107 0.00361008 0) (1.00093 0.00348192 0) (1.00087 0.00358665 0) (1.00106 0.00346456 0) (1.0014 0.00326081 0) (1.00124 0.00329491 0) (1.00104 0.00337545 0) (1.00109 0.00327163 0) (1.00135 0.0032051 0) (1.00129 0.00324541 0) (1.00117 0.00329928 0) (1.0012 0.00323998 0) (1.00142 0.00315386 0) (1.00144 0.00311409 0) (1.00133 0.00307882 0) (1.00131 0.00297085 0) (1.00138 0.0028705 0) (1.00132 0.00282102 0) (1.00113 0.00279351 0) (1.00109 0.00274186 0) (1.00107 0.00271708 0) (1.00102 0.00274731 0) (1.00085 0.00274512 0) (1.00092 0.00269932 0) (1.00089 0.00265721 0) (1.00089 0.00263493 0) (1.00069 0.00256877 0) (1.00078 0.00248149 0) (1.00062 0.00244269 0) (1.00061 0.0024054 0) (1.00037 0.00233498 0) (1.00048 0.00229328 0) (1.00024 0.00226316 0) (1.00029 0.00220615 0) (1.00007 0.00217137 0) (1.00019 0.00212801 0) (0.999951 0.00210705 0) (1.00008 0.00204606 0) (0.999888 0.00201332 0) (0.999997 0.00191624 0) (0.999811 0.00188051 0) (0.999882 0.00177978 0) (0.999746 0.00177542 0) (0.999802 0.00168325 0) (0.999729 0.00169241 0) (0.999742 0.00159349 0) (0.999736 0.00163644 0) (0.999713 0.00157216 0) (0.999813 0.00161921 0) (0.999734 0.00154834 0) (0.999857 0.00161226 0) (0.99969 0.00158767 0) (0.999868 0.00168908 0) (0.999656 0.00168226 0) (0.999894 0.00176829 0) (0.999629 0.00174749 0) (0.999836 0.00181755 0) (0.99951 0.00181307 0) (0.999697 0.00186282 0) (0.99936 0.00186054 0) (0.999482 0.00188825 0) (0.999169 0.00188225 0) (0.999193 0.00186919 0) (0.998937 0.0018661 0) (0.998826 0.00183201 0) (0.998674 0.00184364 0) (0.998418 0.00179166 0) (0.998431 0.00179406 0) (0.997977 0.00171504 0) (0.998161 0.00169785 0) (0.997555 0.00162304 0) (0.997889 0.00155499 0) (0.99726 0.00149472 0) (0.997604 0.00135143 0) (0.997133 0.00131526 0) (0.997863 0.00110201 0) (0.998376 0.00162634 0) (0.997939 0.00207449 0) (0.997794 0.0022832 0) (0.997575 0.00237586 0) (0.997053 0.00263431 0) (0.996374 0.00301174 0) (0.996166 0.00340726 0) (0.996692 0.00347079 0) (0.997648 0.00325713 0) (0.998158 0.00315542 0) (0.998101 0.00339536 0) (0.997965 0.00368667 0) (0.99851 0.00367452 0) (0.999467 0.00329382 0) (0.999981 0.00317485 0) (0.999596 0.0035008 0) (0.999325 0.00378887 0) (0.99968 0.00359761 0) (1.00034 0.00335879 0) (1.00048 0.0034743 0) (1.00023 0.00378073 0) (1.0001 0.00373939 0) (1.00051 0.00351939 0) (1.00082 0.00356476 0) (1.00095 0.00363457 0) (1.00084 0.00346337 0) (1.00081 0.00348728 0) (1.00093 0.00348611 0) (1.00129 0.00328153 0) (1.00121 0.00324156 0) (1.00098 0.00337102 0) (1.00099 0.00329309 0) (1.00128 0.00319205 0) (1.00126 0.00322293 0) (1.00112 0.00328594 0) (1.00113 0.00323563 0) (1.00135 0.00314083 0) (1.00138 0.00309889 0) (1.00127 0.00307985 0) (1.00124 0.00298366 0) (1.00133 0.00288306 0) (1.00128 0.00283922 0) (1.0011 0.00281927 0) (1.00106 0.00276968 0) (1.00105 0.00273627 0) (1.00102 0.00276024 0) (1.00084 0.00275731 0) (1.00091 0.00271067 0) (1.00088 0.00266367 0) (1.00088 0.00264647 0) (1.00068 0.00258689 0) (1.00078 0.00250132 0) (1.00063 0.00246199 0) (1.00062 0.00242849 0) (1.00038 0.0023571 0) (1.0005 0.00231209 0) (1.00026 0.00228171 0) (1.00032 0.00222511 0) (1.0001 0.00218753 0) (1.00022 0.00214201 0) (0.999984 0.0021181 0) (1.00011 0.00205467 0) (0.999917 0.00202209 0) (1.00002 0.0019264 0) (0.99984 0.00189163 0) (0.99991 0.00178865 0) (0.999774 0.00178165 0) (0.999824 0.00168703 0) (0.999747 0.00169629 0) (0.999754 0.00159718 0) (0.999743 0.00163737 0) (0.999713 0.00156828 0) (0.999802 0.00161505 0) (0.999716 0.00154798 0) (0.999833 0.00161385 0) (0.999663 0.00158961 0) (0.999834 0.0016897 0) (0.999618 0.00168331 0) (0.999848 0.0017692 0) (0.999582 0.00175385 0) (0.999786 0.00182561 0) (0.999465 0.00182456 0) (0.99965 0.00187441 0) (0.999319 0.00187673 0) (0.999441 0.00190356 0) (0.999135 0.00190204 0) (0.999161 0.00188791 0) (0.998914 0.00188971 0) (0.998808 0.00185345 0) (0.998662 0.00186743 0) (0.998411 0.00181257 0) (0.998429 0.00181771 0) (0.997983 0.00173791 0) (0.998169 0.00171968 0) (0.997571 0.00164405 0) (0.997903 0.00157366 0) (0.997281 0.00151335 0) (0.997619 0.00136925 0) (0.997153 0.00133145 0) (0.997873 0.00112009 0) (0.998706 0.00147483 0) (0.998151 0.00191483 0) (0.997866 0.002172 0) (0.997639 0.00225252 0) (0.997201 0.00245191 0) (0.99657 0.00277418 0) (0.996281 0.00315009 0) (0.99662 0.00331003 0) (0.997489 0.00317758 0) (0.998113 0.00302119 0) (0.99819 0.00317251 0) (0.998015 0.00346892 0) (0.998362 0.00360661 0) (0.999243 0.00330799 0) (0.999935 0.00307354 0) (0.999703 0.00328203 0) (0.999319 0.00366666 0) (0.999498 0.00363639 0) (1.00021 0.00333646 0) (1.00051 0.00329265 0) (1.00026 0.00363033 0) (0.999973 0.00376382 0) (1.00036 0.00351071 0) (1.00078 0.00339359 0) (1.00087 0.0035789 0) (1.00072 0.00350825 0) (1.00074 0.00339975 0) (1.00084 0.00344437 0) (1.00116 0.00333123 0) (1.00116 0.00320456 0) (1.00094 0.00333624 0) (1.0009 0.00332264 0) (1.00121 0.00318673 0) (1.00123 0.00319252 0) (1.00108 0.00327097 0) (1.00106 0.00322979 0) (1.00128 0.00312918 0) (1.00133 0.00308282 0) (1.00122 0.00307745 0) (1.00117 0.00299825 0) (1.00127 0.00289559 0) (1.00124 0.00285404 0) (1.00106 0.00284251 0) (1.00102 0.00279482 0) (1.00103 0.00275311 0) (1.00101 0.00277175 0) (1.00082 0.00276913 0) (1.00089 0.00272338 0) (1.00087 0.00267093 0) (1.00087 0.00265729 0) (1.00067 0.00260429 0) (1.00077 0.00252006 0) (1.00064 0.00247983 0) (1.00063 0.00245145 0) (1.00039 0.00238016 0) (1.00052 0.00233165 0) (1.00029 0.00230073 0) (1.00034 0.00224417 0) (1.00014 0.00220348 0) (1.00025 0.00215622 0) (1.00002 0.00213 0) (1.00014 0.00206406 0) (0.999948 0.00203087 0) (1.00005 0.00193597 0) (0.999871 0.00190266 0) (0.99994 0.00179874 0) (0.999804 0.00178973 0) (0.999849 0.00169204 0) (0.999767 0.00170037 0) (0.999769 0.00160086 0) (0.999754 0.00163963 0) (0.999716 0.00156734 0) (0.999795 0.00161289 0) (0.999702 0.0015479 0) (0.999813 0.0016158 0) (0.999639 0.00159324 0) (0.999803 0.0016919 0) (0.999585 0.00168519 0) (0.999805 0.00177052 0) (0.999538 0.00176077 0) (0.99974 0.0018342 0) (0.999422 0.00183665 0) (0.999606 0.00188649 0) (0.999279 0.00189302 0) (0.999401 0.00191839 0) (0.999102 0.00192131 0) (0.999131 0.00190634 0) (0.998892 0.00191299 0) (0.99879 0.00187517 0) (0.998651 0.0018913 0) (0.998404 0.00183413 0) (0.998427 0.00184142 0) (0.997989 0.00176186 0) (0.998177 0.00174202 0) (0.997587 0.0016658 0) (0.997918 0.00159302 0) (0.997302 0.00153235 0) (0.997634 0.00138823 0) (0.997174 0.00134846 0) (0.997885 0.00113936 0) (0.999015 0.00135059 0) (0.998383 0.00175016 0) (0.997963 0.00204563 0) (0.99769 0.00214132 0) (0.997323 0.00228968 0) (0.996752 0.00256152 0) (0.996422 0.00290676 0) (0.996606 0.00311886 0) (0.99735 0.00308486 0) (0.998035 0.00291866 0) (0.998253 0.00298886 0) (0.998106 0.0032429 0) (0.998289 0.00347945 0) (0.999025 0.00331316 0) (0.999827 0.00302606 0) (0.999795 0.00309313 0) (0.999385 0.00348102 0) (0.999364 0.00361956 0) (1.00002 0.00336755 0) (1.00049 0.00316292 0) (1.00034 0.00342916 0) (0.999902 0.00371986 0) (1.00018 0.00356515 0) (1.00071 0.00328211 0) (1.00086 0.0034318 0) (1.00062 0.0035528 0) (1.00064 0.0033886 0) (1.00077 0.00334768 0) (1.00105 0.00335986 0) (1.00109 0.00321243 0) (1.00091 0.00327373 0) (1.00082 0.00333558 0) (1.00112 0.00319973 0) (1.0012 0.0031544 0) (1.00104 0.00325101 0) (1.00099 0.00322822 0) (1.00121 0.00311829 0) (1.00129 0.00306807 0) (1.00117 0.00307189 0) (1.00111 0.00301155 0) (1.00121 0.00290963 0) (1.00121 0.00286572 0) (1.00103 0.00286312 0) (1.00099 0.00281943 0) (1.00101 0.00276841 0) (1.001 0.00278224 0) (1.00081 0.00278089 0) (1.00087 0.00273661 0) (1.00086 0.00267916 0) (1.00087 0.00266827 0) (1.00065 0.0026218 0) (1.00076 0.00253842 0) (1.00064 0.00249609 0) (1.00063 0.00247299 0) (1.0004 0.00240269 0) (1.00054 0.00235043 0) (1.00031 0.0023191 0) (1.00037 0.00226266 0) (1.00017 0.00221878 0) (1.00028 0.00216957 0) (1.00005 0.00214203 0) (1.00017 0.00207506 0) (0.999978 0.00204209 0) (1.00008 0.00194725 0) (0.999902 0.00191403 0) (0.999969 0.00180828 0) (0.999834 0.00179805 0) (0.999874 0.00169908 0) (0.999788 0.00170701 0) (0.999786 0.00160634 0) (0.999767 0.00164219 0) (0.999721 0.00156695 0) (0.99979 0.00161269 0) (0.999691 0.00155046 0) (0.999795 0.00161892 0) (0.999618 0.00159709 0) (0.999776 0.00169501 0) (0.999554 0.00168905 0) (0.999766 0.00177336 0) (0.999498 0.00176841 0) (0.999696 0.00184302 0) (0.999382 0.00184884 0) (0.999564 0.00189866 0) (0.999241 0.0019096 0) (0.999364 0.00193386 0) (0.99907 0.00194083 0) (0.999101 0.00192517 0) (0.998869 0.0019363 0) (0.998773 0.00189743 0) (0.998639 0.00191517 0) (0.998396 0.00185628 0) (0.998425 0.00186496 0) (0.997994 0.00178617 0) (0.998185 0.00176481 0) (0.997602 0.00168821 0) (0.997932 0.0016137 0) (0.997324 0.00155213 0) (0.99765 0.00140867 0) (0.997195 0.00136662 0) (0.997897 0.00115981 0) (0.999298 0.00124901 0) (0.99862 0.00159955 0) (0.99809 0.00190599 0) (0.997741 0.00203602 0) (0.997418 0.00215133 0) (0.996917 0.00237122 0) (0.996573 0.00268378 0) (0.996642 0.00291519 0) (0.997247 0.00296591 0) (0.997936 0.00282947 0) (0.99828 0.00283802 0) (0.998208 0.00302926 0) (0.998285 0.00330399 0) (0.998842 0.00327799 0) (0.99967 0.00301147 0) (0.99984 0.00295206 0) (0.999493 0.00327399 0) (0.999304 0.00353015 0) (0.999811 0.00341138 0) (1.00041 0.00311086 0) (1.00042 0.00322615 0) (0.999911 0.00359783 0) (0.999997 0.00361734 0) (1.00057 0.00326666 0) (1.00087 0.00324963 0) (1.00057 0.00351221 0) (1.0005 0.00345221 0) (1.00069 0.00326153 0) (1.00098 0.00331741 0) (1.001 0.0032577 0) (1.00088 0.00322301 0) (1.00077 0.00330936 0) (1.00103 0.00323027 0) (1.00116 0.0031245 0) (1.00102 0.00321679 0) (1.00092 0.00323256 0) (1.00114 0.00311025 0) (1.00124 0.0030504 0) (1.00112 0.00306376 0) (1.00104 0.00301957 0) (1.00115 0.00292277 0) (1.00117 0.00287556 0) (1.001 0.00288062 0) (1.00095 0.00284567 0) (1.00099 0.0027849 0) (1.00099 0.00279163 0) (1.00079 0.00279239 0) (1.00085 0.00274891 0) (1.00085 0.00268596 0) (1.00086 0.00267853 0) (1.00064 0.00263988 0) (1.00075 0.00255763 0) (1.00065 0.00251231 0) (1.00064 0.0024935 0) (1.00041 0.00242426 0) (1.00056 0.00236827 0) (1.00034 0.00233731 0) (1.00039 0.00228217 0) (1.00019 0.00223607 0) (1.00031 0.00218475 0) (1.00008 0.00215481 0) (1.0002 0.00208549 0) (1.00001 0.00205209 0) (1.00011 0.00195814 0) (0.999932 0.00192656 0) (0.999998 0.00181981 0) (0.999863 0.00180743 0) (0.999899 0.00170634 0) (0.999809 0.00171413 0) (0.999803 0.00161369 0) (0.999779 0.00164763 0) (0.999727 0.00156881 0) (0.999787 0.00161267 0) (0.999682 0.00155298 0) (0.999779 0.0016236 0) (0.999599 0.00160309 0) (0.999751 0.00169903 0) (0.999525 0.00169321 0) (0.999729 0.0017769 0) (0.999459 0.00177678 0) (0.999654 0.00185247 0) (0.999343 0.00186166 0) (0.999523 0.00191179 0) (0.999205 0.00192687 0) (0.999327 0.00195005 0) (0.999039 0.00196095 0) (0.999072 0.00194443 0) (0.998847 0.00195951 0) (0.998754 0.00191999 0) (0.998626 0.00193904 0) (0.998388 0.00187874 0) (0.998421 0.0018883 0) (0.997998 0.00181074 0) (0.998192 0.00178766 0) (0.997616 0.00171076 0) (0.997944 0.00163506 0) (0.997343 0.00157255 0) (0.997665 0.00143039 0) (0.997215 0.00138623 0) (0.997909 0.00118173 0) (0.999561 0.00115643 0) (0.998848 0.00147162 0) (0.998238 0.00175831 0) (0.997804 0.00192342 0) (0.997492 0.00202768 0) (0.997058 0.0021986 0) (0.996724 0.00247479 0) (0.996711 0.00270937 0) (0.997185 0.00282095 0) (0.997836 0.00273599 0) (0.998272 0.00271515 0) (0.9983 0.00284134 0) (0.998333 0.00311 0) (0.998717 0.00319581 0) (0.999493 0.00300722 0) (0.999827 0.00286332 0) (0.999607 0.00308348 0) (0.999319 0.00338302 0) (0.999636 0.00341707 0) (1.00025 0.00312373 0) (1.00047 0.0030667 0) (0.999987 0.00341591 0) (0.999863 0.00361185 0) (1.00037 0.00332042 0) (1.00085 0.00311785 0) (1.00059 0.00336781 0) (1.00038 0.00351636 0) (1.00057 0.00325745 0) (1.00093 0.00321165 0) (1.00092 0.00328388 0) (1.00083 0.00322465 0) (1.00072 0.00324907 0) (1.00094 0.00324877 0) (1.0011 0.00311946 0) (1.001 0.00316447 0) (1.00086 0.00323077 0) (1.00105 0.00311389 0) (1.00119 0.00303074 0) (1.00108 0.00305689 0) (1.00098 0.00302925 0) (1.00109 0.00293428 0) (1.00114 0.00288354 0) (1.00097 0.00289143 0) (1.00091 0.00286729 0) (1.00096 0.00280071 0) (1.00098 0.00279926 0) (1.00078 0.00280491 0) (1.00082 0.00276446 0) (1.00084 0.00269347 0) (1.00086 0.0026875 0) (1.00063 0.00265652 0) (1.00074 0.00257474 0) (1.00065 0.0025267 0) (1.00064 0.00251398 0) (1.00041 0.00244715 0) (1.00057 0.00238702 0) (1.00036 0.00235527 0) (1.00041 0.00230012 0) (1.00022 0.00225154 0) (1.00033 0.00219876 0) (1.00011 0.0021682 0) (1.00022 0.00209799 0) (1.00003 0.00206412 0) (1.00013 0.00196931 0) (0.999959 0.00193829 0) (1.00002 0.00183098 0) (0.99989 0.00181822 0) (0.999921 0.00171588 0) (0.999829 0.00172263 0) (0.999819 0.00162117 0) (0.999791 0.00165344 0) (0.999733 0.00157326 0) (0.999784 0.00161645 0) (0.999673 0.00155765 0) (0.999764 0.00162825 0) (0.999581 0.00160932 0) (0.999726 0.0017048 0) (0.999498 0.00169929 0) (0.999694 0.00178139 0) (0.999422 0.00178578 0) (0.999614 0.00186253 0) (0.999305 0.00187513 0) (0.999483 0.00192508 0) (0.999169 0.00194427 0) (0.999291 0.00196611 0) (0.999008 0.00198083 0) (0.999042 0.00196406 0) (0.998824 0.00198303 0) (0.998735 0.00194342 0) (0.998613 0.00196318 0) (0.998379 0.00190226 0) (0.998416 0.00191187 0) (0.998 0.00183607 0) (0.998196 0.00181096 0) (0.997627 0.00173358 0) (0.997955 0.00165686 0) (0.997361 0.00159296 0) (0.997678 0.00145275 0) (0.997233 0.00140665 0) (0.99792 0.00120495 0) (0.999805 0.00106394 0) (0.999063 0.00135915 0) (0.998393 0.00161558 0) (0.997884 0.00179808 0) (0.997553 0.00191233 0) (0.997175 0.00204459 0) (0.996868 0.00228492 0) (0.996804 0.00251054 0) (0.997163 0.002667 0) (0.997751 0.0026338 0) (0.998239 0.00261499 0) (0.998367 0.00268652 0) (0.99841 0.00291983 0) (0.998655 0.0030745 0) (0.999325 0.00298336 0) (0.999761 0.00281257 0) (0.999694 0.00292403 0) (0.999386 0.00320451 0) (0.999521 0.0033566 0) (1.00006 0.00315553 0) (1.00046 0.0029747 0) (1.00009 0.00321193 0) (0.999808 0.00353113 0) (1.00015 0.00338614 0) (1.00076 0.00308062 0) (1.00065 0.00318137 0) (1.00032 0.00349581 0) (1.00041 0.00333739 0) (1.00087 0.003116 0) (1.00089 0.00323147 0) (1.00075 0.00326941 0) (1.00067 0.00320035 0) (1.00087 0.00322599 0) (1.00102 0.00314199 0) (1.00098 0.00311752 0) (1.00082 0.00320739 0) (1.00097 0.00312957 0) (1.00114 0.00301122 0) (1.00105 0.00303889 0) (1.00092 0.00304022 0) (1.00103 0.00294501 0) (1.0011 0.00289077 0) (1.00094 0.00290259 0) (1.00087 0.00288685 0) (1.00093 0.00281701 0) (1.00097 0.00280546 0) (1.00076 0.00281429 0) (1.0008 0.00278036 0) (1.00082 0.0027018 0) (1.00085 0.0026958 0) (1.00061 0.0026747 0) (1.00073 0.00259306 0) (1.00066 0.00253963 0) (1.00065 0.00253181 0) (1.00042 0.00246815 0) (1.00058 0.00240426 0) (1.00037 0.00237346 0) (1.00042 0.00231928 0) (1.00024 0.00226838 0) (1.00036 0.00221316 0) (1.00013 0.00218127 0) (1.00024 0.00211004 0) (1.00006 0.00207659 0) (1.00016 0.00198163 0) (0.999984 0.00195116 0) (1.00005 0.00184243 0) (0.999913 0.0018286 0) (0.999942 0.00172596 0) (0.999846 0.00173313 0) (0.999833 0.00163135 0) (0.999802 0.00166107 0) (0.999738 0.00157822 0) (0.999781 0.00162061 0) (0.999664 0.00156491 0) (0.999749 0.00163651 0) (0.999563 0.001618 0) (0.999703 0.00171125 0) (0.999471 0.00170673 0) (0.999659 0.00178753 0) (0.999386 0.00179582 0) (0.999575 0.00187248 0) (0.999268 0.00188842 0) (0.999444 0.00193854 0) (0.999133 0.00196183 0) (0.999254 0.00198296 0) (0.998976 0.00200098 0) (0.999013 0.00198401 0) (0.9988 0.00200598 0) (0.998715 0.00196748 0) (0.998598 0.00198737 0) (0.998368 0.00192658 0) (0.998409 0.00193568 0) (0.997999 0.00186187 0) (0.998198 0.00183524 0) (0.997637 0.0017571 0) (0.997963 0.00168049 0) (0.997376 0.00161437 0) (0.997688 0.00147649 0) (0.997248 0.00142796 0) (0.997929 0.0012291 0) (1.00003 0.000979537 0) (0.999269 0.00125119 0) (0.998546 0.00149122 0) (0.997979 0.00166711 0) (0.997612 0.00180148 0) (0.997271 0.00190854 0) (0.997 0.00211681 0) (0.996912 0.00232112 0) (0.997176 0.00250658 0) (0.997687 0.00251909 0) (0.998196 0.00251468 0) (0.998405 0.00255584 0) (0.998492 0.00273683 0) (0.998644 0.00292348 0) (0.999187 0.00292231 0) (0.999659 0.00277673 0) (0.999738 0.0028055 0) (0.999474 0.00302855 0) (0.999474 0.00324742 0) (0.999874 0.00316808 0) (1.00037 0.00295129 0) (1.00019 0.00303598 0) (0.999832 0.00338742 0) (0.999969 0.00341142 0) (1.00059 0.00311503 0) (1.00069 0.0030346 0) (1.00034 0.00336996 0) (1.00024 0.00342445 0) (1.00075 0.0031074 0) (1.00089 0.00310851 0) (1.0007 0.00329205 0) (1.0006 0.00320741 0) (1.00081 0.00316427 0) (1.00095 0.0031563 0) (1.00095 0.00310169 0) (1.00079 0.00316078 0) (1.00088 0.00314443 0) (1.00107 0.00300876 0) (1.00102 0.00300856 0) (1.00087 0.0030477 0) (1.00096 0.0029597 0) (1.00106 0.00289238 0) (1.00092 0.00291242 0) (1.00083 0.00290608 0) (1.00089 0.00283242 0) (1.00095 0.00281236 0) (1.00075 0.0028217 0) (1.00077 0.00279442 0) (1.0008 0.00271019 0) (1.00085 0.00270161 0) (1.0006 0.00269162 0) (1.00071 0.00261273 0) (1.00066 0.0025531 0) (1.00065 0.00254968 0) (1.00041 0.00248978 0) (1.00059 0.00242084 0) (1.00039 0.00239018 0) (1.00043 0.00233752 0) (1.00025 0.00228527 0) (1.00038 0.00222854 0) (1.00015 0.00219578 0) (1.00026 0.00212307 0) (1.00008 0.00208915 0) (1.00018 0.00199391 0) (1.00001 0.0019648 0) (1.00007 0.00185574 0) (0.999934 0.00184078 0) (0.999959 0.00173692 0) (0.999861 0.00174346 0) (0.999845 0.00164195 0) (0.99981 0.00167046 0) (0.99974 0.00158648 0) (0.999776 0.00162658 0) (0.999654 0.00157169 0) (0.999733 0.00164396 0) (0.999544 0.0016283 0) (0.999678 0.00172046 0) (0.999443 0.00171594 0) (0.999625 0.00179471 0) (0.99935 0.00180716 0) (0.999536 0.00188444 0) (0.999231 0.00190327 0) (0.999405 0.00195326 0) (0.999097 0.00197975 0) (0.999218 0.002 0) (0.998945 0.00202085 0) (0.998983 0.00200445 0) (0.998776 0.0020288 0) (0.998694 0.00199146 0) (0.998582 0.00201112 0) (0.998356 0.00195081 0) (0.998401 0.00195964 0) (0.997997 0.00188781 0) (0.998199 0.00186026 0) (0.997643 0.00178078 0) (0.997968 0.00170504 0) (0.997388 0.00163677 0) (0.997696 0.0015017 0) (0.99726 0.00145149 0) (0.997935 0.00125506 0) (1.00022 0.000910839 0) (0.999467 0.00114446 0) (0.998695 0.00138032 0) (0.998079 0.00154117 0) (0.997675 0.00168757 0) (0.997351 0.0017856 0) (0.997114 0.00196374 0) (0.997022 0.00214385 0) (0.997216 0.00233729 0) (0.997646 0.00239521 0) (0.998151 0.00240655 0) (0.998418 0.00244324 0) (0.998565 0.00257579 0) (0.998671 0.0027623 0) (0.999093 0.00283459 0) (0.999549 0.00273591 0) (0.999737 0.00272412 0) (0.999558 0.00287264 0) (0.999482 0.00310865 0) (0.999727 0.00313638 0) (1.00023 0.00295882 0) (1.00023 0.00291651 0) (0.999904 0.00320953 0) (0.999848 0.00337174 0) (1.00039 0.00316912 0) (1.00066 0.00296678 0) (1.00041 0.00319263 0) (1.00013 0.00343227 0) (1.00056 0.00318948 0) (1.00087 0.00299589 0) (1.0007 0.00323269 0) (1.0005 0.00326237 0) (1.00074 0.00311473 0) (1.0009 0.00312336 0) (1.0009 0.00311422 0) (1.00075 0.00311464 0) (1.00081 0.00313521 0) (1.00099 0.0030287 0) (1.00099 0.00298016 0) (1.00083 0.00304154 0) (1.00089 0.00298194 0) (1.00102 0.00289058 0) (1.00089 0.00291227 0) (1.00079 0.00292443 0) (1.00085 0.0028458 0) (1.00094 0.00281899 0) (1.00073 0.0028322 0) (1.00074 0.00281018 0) (1.00078 0.00272035 0) (1.00084 0.00270645 0) (1.00058 0.00270486 0) (1.00069 0.00263001 0) (1.00065 0.00256443 0) (1.00065 0.00256556 0) (1.00041 0.00251191 0) (1.0006 0.00243851 0) (1.0004 0.00240736 0) (1.00044 0.00235564 0) (1.00027 0.0023014 0) (1.00039 0.00224255 0) (1.00017 0.00221009 0) (1.00028 0.00213735 0) (1.0001 0.00210352 0) (1.0002 0.00200709 0) (1.00002 0.00197824 0) (1.00008 0.00186877 0) (0.999951 0.00185394 0) (0.999973 0.00175073 0) (0.999873 0.00175681 0) (0.999854 0.00165424 0) (0.999816 0.00168022 0) (0.999741 0.0015954 0) (0.999769 0.001635 0) (0.999642 0.00158218 0) (0.999716 0.0016535 0) (0.999524 0.00163815 0) (0.999653 0.00172888 0) (0.999415 0.00172641 0) (0.99959 0.00180377 0) (0.999314 0.00181967 0) (0.999497 0.00189666 0) (0.999193 0.00191881 0) (0.999365 0.00196895 0) (0.999061 0.00199887 0) (0.999182 0.00201849 0) (0.998912 0.00204157 0) (0.998952 0.00202551 0) (0.99875 0.00205174 0) (0.998672 0.00201651 0) (0.998565 0.00203538 0) (0.998343 0.00197584 0) (0.998391 0.00198354 0) (0.997993 0.00191347 0) (0.998197 0.00188522 0) (0.997648 0.00180436 0) (0.997971 0.0017299 0) (0.997397 0.00165962 0) (0.997701 0.00152728 0) (0.99727 0.00147605 0) (0.997939 0.00128266 0) (1.00038 0.000851359 0) (0.99965 0.00104532 0) (0.998843 0.00126861 0) (0.99818 0.00142464 0) (0.997743 0.00156783 0) (0.997421 0.00166816 0) (0.997211 0.00182063 0) (0.997127 0.00197978 0) (0.997278 0.00216667 0) (0.997631 0.00226401 0) (0.998115 0.00229769 0) (0.998419 0.00233777 0) (0.998618 0.00244428 0) (0.99872 0.00260386 0) (0.99904 0.002729 0) (0.999445 0.00267926 0) (0.999702 0.00265954 0) (0.999615 0.00274473 0) (0.999524 0.00295555 0) (0.999632 0.00306168 0) (1.00007 0.00295824 0) (1.00021 0.00285491 0) (0.999986 0.00304239 0) (0.999801 0.00327431 0) (1.00019 0.00320375 0) (1.00056 0.00296568 0) (1.00048 0.00303859 0) (1.00011 0.00333882 0) (1.00036 0.00328562 0) (1.00079 0.0029681 0) (1.00074 0.00309849 0) (1.00043 0.00329755 0) (1.00063 0.00313062 0) (1.00086 0.00305342 0) (1.00085 0.00311817 0) (1.00071 0.00309985 0) (1.00075 0.00309552 0) (1.00091 0.00304509 0) (1.00095 0.00296882 0) (1.0008 0.00301625 0) (1.00082 0.00300438 0) (1.00096 0.00290128 0) (1.00087 0.0029053 0) (1.00076 0.00294195 0) (1.00081 0.00286169 0) (1.00092 0.00281902 0) (1.00072 0.00283899 0) (1.00071 0.00282522 0) (1.00075 0.00273018 0) (1.00084 0.0027126 0) (1.00057 0.00272059 0) (1.00066 0.00264936 0) (1.00065 0.00257603 0) (1.00066 0.00257866 0) (1.00041 0.00253124 0) (1.0006 0.00245394 0) (1.00041 0.0024234 0) (1.00045 0.00237427 0) (1.00028 0.00231934 0) (1.00041 0.00225768 0) (1.00019 0.00222432 0) (1.00029 0.00215083 0) (1.00011 0.00211755 0) (1.00021 0.00202138 0) (1.00004 0.0019938 0) (1.0001 0.00188351 0) (0.999965 0.00186705 0) (0.999985 0.00176409 0) (0.999882 0.00177094 0) (0.99986 0.00166971 0) (0.999819 0.0016936 0) (0.999739 0.00160744 0) (0.999761 0.00164411 0) (0.999629 0.00159339 0) (0.999697 0.00166534 0) (0.999502 0.00165245 0) (0.999627 0.00174007 0) (0.999386 0.00173734 0) (0.999555 0.00181224 0) (0.999277 0.00183206 0) (0.999457 0.00190907 0) (0.999154 0.00193399 0) (0.999325 0.00198456 0) (0.999023 0.00201742 0) (0.999144 0.00203746 0) (0.998879 0.0020625 0) (0.99892 0.00204831 0) (0.998723 0.00207525 0) (0.998647 0.00204276 0) (0.998547 0.00206012 0) (0.998328 0.00200185 0) (0.998379 0.00200872 0) (0.997987 0.00194012 0) (0.998193 0.00191182 0) (0.99765 0.00182861 0) (0.997971 0.00175613 0) (0.997403 0.00168323 0) (0.997703 0.00155389 0) (0.997276 0.00150107 0) (0.99794 0.00131093 0) (1.00053 0.000792587 0) (0.999811 0.000958303 0) (0.998987 0.00115731 0) (0.998281 0.00131426 0) (0.997811 0.00145307 0) (0.997485 0.00155226 0) (0.997293 0.00169279 0) (0.997223 0.00183002 0) (0.997352 0.00200719 0) (0.997642 0.00212486 0) (0.998091 0.00218789 0) (0.998416 0.0022281 0) (0.998655 0.00232631 0) (0.998773 0.00245419 0) (0.999022 0.00260326 0) (0.99936 0.00260753 0) (0.999648 0.00259465 0) (0.999641 0.00264728 0) (0.999575 0.00281006 0) (0.999587 0.00295827 0) (0.99993 0.00293383 0) (1.00014 0.002825 0) (1.00004 0.00291538 0) (0.99981 0.00313906 0) (1.00003 0.00319428 0) (1.00041 0.0029951 0) (1.0005 0.00294618 0) (1.00015 0.00319183 0) (1.0002 0.00331671 0) (1.00063 0.00302843 0) (1.00077 0.00296495 0) (1.00041 0.00324577 0) (1.00049 0.00319676 0) (1.00079 0.00299982 0) (1.00083 0.0030739 0) (1.00065 0.00311778 0) (1.00069 0.00306166 0) (1.00084 0.00303531 0) (1.00089 0.00297971 0) (1.00077 0.00298754 0) (1.00076 0.00300572 0) (1.0009 0.0029218 0) (1.00085 0.00289589 0) (1.00072 0.002949 0) (1.00075 0.00288501 0) (1.00089 0.0028207 0) (1.00071 0.00284149 0) (1.00067 0.00284209 0) (1.00072 0.00273924 0) (1.00083 0.00271317 0) (1.00056 0.00273326 0) (1.00063 0.00266878 0) (1.00064 0.0025886 0) (1.00066 0.00259389 0) (1.0004 0.00255359 0) (1.00059 0.00247061 0) (1.00042 0.00243787 0) (1.00046 0.00239047 0) (1.00028 0.00233558 0) (1.00042 0.00227262 0) (1.0002 0.00223996 0) (1.00031 0.0021665 0) (1.00013 0.00213235 0) (1.00022 0.00203479 0) (1.00005 0.00200789 0) (1.00011 0.0018988 0) (0.999975 0.0018823 0) (0.999992 0.00178019 0) (0.999888 0.00178567 0) (0.999863 0.00168465 0) (0.999819 0.00170701 0) (0.999733 0.00162211 0) (0.99975 0.00165733 0) (0.999612 0.00160776 0) (0.999677 0.00167795 0) (0.999478 0.00166667 0) (0.999598 0.00175351 0) (0.999353 0.00175233 0) (0.999517 0.00182493 0) (0.999238 0.00184666 0) (0.999415 0.00192309 0) (0.999113 0.00194995 0) (0.999282 0.00200094 0) (0.998983 0.00203555 0) (0.999104 0.0020561 0) (0.998843 0.00208199 0) (0.998886 0.00206986 0) (0.998694 0.00209762 0) (0.998621 0.00206852 0) (0.998526 0.00208521 0) (0.998311 0.00202805 0) (0.998365 0.00203512 0) (0.997979 0.00196704 0) (0.998186 0.0019401 0) (0.99765 0.00185414 0) (0.997969 0.00178405 0) (0.997406 0.00170917 0) (0.997702 0.00158233 0) (0.997279 0.00152922 0) (0.997938 0.00134148 0) (1.00065 0.000733479 0) (0.999954 0.000875962 0) (0.999123 0.0010539 0) (0.998386 0.00120029 0) (0.997879 0.00134545 0) (0.997549 0.00143533 0) (0.997366 0.00157495 0) (0.997308 0.00169391 0) (0.997431 0.00185798 0) (0.997673 0.0019833 0) (0.99808 0.00207132 0) (0.998411 0.00212004 0) (0.99868 0.00221214 0) (0.998821 0.00232359 0) (0.999031 0.00246935 0) (0.9993 0.00252545 0) (0.99959 0.00252851 0) (0.99964 0.00256864 0) (0.999616 0.00268888 0) (0.999578 0.00283759 0) (0.999817 0.0028839 0) (1.00004 0.00279843 0) (1.00005 0.00282843 0) (0.999843 0.0029976 0) (0.999932 0.00313182 0) (1.00023 0.00302015 0) (1.00046 0.00290826 0) (1.00021 0.00305224 0) (1.00011 0.00326445 0) (1.00043 0.00311508 0) (1.00074 0.00290941 0) (1.00045 0.00311803 0) (1.00037 0.00324454 0) (1.00068 0.00301143 0) (1.00082 0.00298658 0) (1.00061 0.00311988 0) (1.00061 0.00306445 0) (1.00078 0.00300017 0) (1.00083 0.0029895 0) (1.00073 0.00298232 0) (1.0007 0.00298752 0) (1.00083 0.00293806 0) (1.00082 0.00289516 0) (1.00069 0.00293996 0) (1.00069 0.00290376 0) (1.00086 0.00282834 0) (1.0007 0.00283857 0) (1.00064 0.0028594 0) (1.00067 0.00275548 0) (1.00082 0.00271251 0) (1.00055 0.00274298 0) (1.0006 0.00268774 0) (1.00063 0.00259733 0) (1.00066 0.00260342 0) (1.00039 0.00257412 0) (1.00059 0.00248809 0) (1.00043 0.00245444 0) (1.00046 0.00240956 0) (1.00029 0.0023541 0) (1.00042 0.00228777 0) (1.00021 0.00225446 0) (1.00031 0.00218151 0) (1.00014 0.0021483 0) (1.00023 0.00205084 0) (1.00006 0.00202427 0) (1.00011 0.00191477 0) (0.999982 0.00189692 0) (0.999997 0.00179652 0) (0.99989 0.0018029 0) (0.999863 0.00170297 0) (0.999816 0.00172216 0) (0.999726 0.00163638 0) (0.999737 0.00166947 0) (0.999594 0.00162306 0) (0.999653 0.00169329 0) (0.999451 0.00168351 0) (0.999567 0.00176695 0) (0.99932 0.00176652 0) (0.999478 0.00183766 0) (0.999196 0.00186307 0) (0.999371 0.00193927 0) (0.99907 0.00196811 0) (0.999237 0.00201952 0) (0.998942 0.0020555 0) (0.999062 0.00207674 0) (0.998806 0.00210281 0) (0.998849 0.00209265 0) (0.998662 0.00211993 0) (0.998592 0.002094 0) (0.998503 0.00210941 0) (0.998291 0.00205313 0) (0.998349 0.00206034 0) (0.997968 0.001993 0) (0.998176 0.00196733 0) (0.997646 0.00187983 0) (0.997964 0.00181175 0) (0.997406 0.00173642 0) (0.997699 0.00161156 0) (0.997279 0.00155892 0) (0.997933 0.00137433 0) (1.00077 0.000675137 0) (1.00008 0.000794383 0) (0.999245 0.000958314 0) (0.998492 0.00108565 0) (0.99795 0.00123637 0) (0.997609 0.00132306 0) (0.997436 0.00145502 0) (0.997382 0.00157011 0) (0.997508 0.00171408 0) (0.997718 0.00184607 0) (0.998087 0.00194912 0) (0.998411 0.00201604 0) (0.998701 0.00210377 0) (0.998863 0.00220731 0) (0.999057 0.00234234 0) (0.999268 0.00242895 0) (0.999536 0.0024614 0) (0.999623 0.00249384 0) (0.999638 0.00259214 0) (0.999587 0.00271744 0) (0.999739 0.00281178 0) (0.999931 0.00276861 0) (1.00002 0.00276873 0) (0.99987 0.0028815 0) (0.999884 0.00303298 0) (1.00008 0.00301612 0) (1.00036 0.00290082 0) (1.00024 0.0029464 0) (1.0001 0.00315842 0) (1.00025 0.003156 0) (1.00064 0.00293527 0) (1.00051 0.00298638 0) (1.00031 0.00321737 0) (1.00052 0.00308107 0) (1.00078 0.00291819 0) (1.0006 0.003066 0) (1.00052 0.00309361 0) (1.0007 0.00297048 0) (1.00079 0.00296521 0) (1.00068 0.0029963 0) (1.00065 0.00297499 0) (1.00077 0.00293869 0) (1.00078 0.00291042 0) (1.00066 0.00293458 0) (1.00064 0.00291135 0) (1.00081 0.00283928 0) (1.00069 0.00283104 0) (1.0006 0.00286518 0) (1.00062 0.00277285 0) (1.00081 0.00271185 0) (1.00054 0.00274934 0) (1.00056 0.00271047 0) (1.00061 0.00260998 0) (1.00066 0.0026118 0) (1.00037 0.00259327 0) (1.00057 0.00250295 0) (1.00043 0.00246596 0) (1.00046 0.00242509 0) (1.00028 0.00237214 0) (1.00042 0.00230481 0) (1.00021 0.00227201 0) (1.00032 0.00219937 0) (1.00014 0.00216556 0) (1.00024 0.00206759 0) (1.00007 0.00204182 0) (1.00012 0.00193409 0) (0.999985 0.00191523 0) (0.999998 0.00181589 0) (0.99989 0.00182083 0) (0.999859 0.0017226 0) (0.99981 0.00174019 0) (0.999714 0.00165594 0) (0.99972 0.00168564 0) (0.999573 0.00163999 0) (0.999628 0.00170825 0) (0.999422 0.00170108 0) (0.999533 0.00178305 0) (0.999283 0.00178288 0) (0.999437 0.00185115 0) (0.999153 0.0018777 0) (0.999324 0.00195428 0) (0.999024 0.00198434 0) (0.999189 0.00203801 0) (0.998897 0.00207444 0) (0.999016 0.00209853 0) (0.998765 0.00212405 0) (0.998809 0.00211772 0) (0.998627 0.00214412 0) (0.99856 0.00212171 0) (0.998476 0.00213573 0) (0.998268 0.00207997 0) (0.998329 0.00208756 0) (0.997953 0.00201999 0) (0.998164 0.00199584 0) (0.997639 0.00190595 0) (0.997955 0.00183971 0) (0.997403 0.00176358 0) (0.997691 0.00164125 0) (0.997275 0.00158873 0) (0.997924 0.00140772 0) (1.00087 0.000606486 0) (1.00019 0.000710642 0) (0.999355 0.000858383 0) (0.998591 0.000975142 0) (0.998027 0.00111795 0) (0.997666 0.001215 0) (0.997504 0.00133125 0) (0.99745 0.00145043 0) (0.997581 0.00158008 0) (0.997775 0.00171184 0) (0.99811 0.00182987 0) (0.998421 0.00190855 0) (0.998719 0.00200372 0) (0.9989 0.00209587 0) (0.999087 0.00222715 0) (0.999259 0.00232169 0) (0.999494 0.00238601 0) (0.999597 0.00241943 0) (0.999646 0.0025041 0) (0.9996 0.00261018 0) (0.999693 0.00271904 0) (0.999834 0.00272867 0) (0.999968 0.00272102 0) (0.999875 0.00279429 0) (0.999863 0.00293005 0) (0.999966 0.00297733 0) (1.00024 0.00290699 0) (1.00023 0.00288149 0) (1.00011 0.00304365 0) (1.00013 0.00313109 0) (1.00049 0.0029849 0) (1.00051 0.00290761 0) (1.00031 0.00311467 0) (1.00037 0.00313867 0) (1.00069 0.00291738 0) (1.00061 0.00297369 0) (1.00045 0.00310803 0) (1.0006 0.00298553 0) (1.00074 0.00291707 0) (1.00064 0.00299519 0) (1.00057 0.00298258 0) (1.0007 0.00291926 0) (1.00073 0.00291312 0) (1.00062 0.00294145 0) (1.00058 0.00291444 0) (1.00076 0.00285097 0) (1.00067 0.0028341 0) (1.00057 0.00286963 0) (1.00057 0.00278998 0) (1.00079 0.00271164 0) (1.00053 0.00274798 0) (1.00052 0.0027283 0) (1.00058 0.00262208 0) (1.00066 0.00261806 0) (1.00036 0.00261377 0) (1.00055 0.0025218 0) (1.00043 0.00247915 0) (1.00046 0.00243995 0) (1.00028 0.00238836 0) (1.00042 0.0023186 0) (1.00022 0.00228648 0) (1.00032 0.00221546 0) (1.00014 0.0021825 0) (1.00024 0.00208463 0) (1.00007 0.00205939 0) (1.00012 0.00195333 0) (0.999984 0.00193447 0) (0.999995 0.00183779 0) (0.999884 0.00184297 0) (0.999852 0.00174579 0) (0.9998 0.00176068 0) (0.999699 0.00167721 0) (0.9997 0.00170578 0) (0.999548 0.0016627 0) (0.999599 0.00172953 0) (0.99939 0.00172205 0) (0.999498 0.00180126 0) (0.999245 0.00180118 0) (0.999392 0.00186876 0) (0.999107 0.00189595 0) (0.999275 0.00197232 0) (0.998976 0.00200151 0) (0.999139 0.0020564 0) (0.99885 0.00209179 0) (0.998968 0.00211776 0) (0.998721 0.00214259 0) (0.998766 0.00213876 0) (0.998589 0.00216569 0) (0.998524 0.00214639 0) (0.998445 0.00216182 0) (0.998242 0.00210591 0) (0.998305 0.00211593 0) (0.997936 0.00204777 0) (0.998147 0.00202608 0) (0.997628 0.00193472 0) (0.997943 0.00187039 0) (0.997395 0.00179419 0) (0.99768 0.00167373 0) (0.997267 0.00162153 0) (0.997911 0.0014442 0) (1.00096 0.000527763 0) (1.00029 0.000625339 0) (0.999455 0.000753237 0) (0.998683 0.000866142 0) (0.998107 0.000995487 0) (0.997726 0.00110116 0) (0.997567 0.00121048 0) (0.99752 0.00132425 0) (0.99765 0.00145548 0) (0.997842 0.0015747 0) (0.998147 0.0017101 0) (0.998443 0.00179401 0) (0.99874 0.0019032 0) (0.998932 0.00199055 0) (0.999121 0.00211796 0) (0.999264 0.00222001 0) (0.999468 0.00230164 0) (0.999568 0.0023528 0) (0.999642 0.00242271 0) (0.999607 0.00251989 0) (0.999668 0.00262166 0) (0.999757 0.00267018 0) (0.999897 0.00267618 0) (0.999859 0.00271968 0) (0.999849 0.00283651 0) (0.999887 0.00290887 0) (1.00011 0.00290076 0) (1.00017 0.00285163 0) (1.00012 0.00294922 0) (1.00006 0.00307033 0) (1.00033 0.00301588 0) (1.00046 0.00289429 0) (1.00034 0.0029979 0) (1.00026 0.00312753 0) (1.00055 0.00296336 0) (1.00061 0.00289035 0) (1.00042 0.00306051 0) (1.00047 0.00302784 0) (1.00068 0.00288695 0) (1.00061 0.00295884 0) (1.00049 0.00300804 0) (1.00063 0.00291521 0) (1.0007 0.00289061 0) (1.00058 0.00294863 0) (1.00052 0.00292077 0) (1.00071 0.00284739 0) (1.00065 0.00283315 0) (1.00054 0.00287622 0) (1.00051 0.00280819 0) (1.00076 0.0027175 0) (1.00052 0.00275033 0) (1.00048 0.00274918 0) (1.00055 0.00263584 0) (1.00065 0.00262072 0) (1.00034 0.00262904 0) (1.00053 0.0025389 0) (1.00042 0.00249075 0) (1.00045 0.00245623 0) (1.00027 0.00240795 0) (1.00042 0.00233674 0) (1.00021 0.00230294 0) (1.00032 0.00223316 0) (1.00014 0.0021991 0) (1.00023 0.00210235 0) (1.00007 0.00207638 0) (1.00011 0.00197319 0) (0.999978 0.00195194 0) (0.999989 0.00185884 0) (0.999876 0.00186273 0) (0.999839 0.00176986 0) (0.999786 0.00178173 0) (0.99968 0.00170119 0) (0.999677 0.00172521 0) (0.999521 0.00168527 0) (0.999567 0.00175021 0) (0.999355 0.00174696 0) (0.999457 0.0018234 0) (0.999202 0.00182371 0) (0.999345 0.00188802 0) (0.999059 0.00191692 0) (0.999222 0.00199298 0) (0.998924 0.00202337 0) (0.999084 0.00207902 0) (0.998799 0.00211456 0) (0.998916 0.00214085 0) (0.998673 0.00216555 0) (0.998719 0.00216214 0) (0.998547 0.00218948 0) (0.998485 0.00216988 0) (0.998411 0.00218626 0) (0.998212 0.00212824 0) (0.998277 0.00214094 0) (0.997914 0.00207166 0) (0.998126 0.00205307 0) (0.997613 0.00196017 0) (0.997926 0.00189903 0) (0.997383 0.00182244 0) (0.997665 0.00170677 0) (0.997254 0.00165376 0) (0.997895 0.00148295 0) (1.00104 0.000447762 0) (1.00037 0.000535036 0) (0.999543 0.000650135 0) (0.998769 0.000753132 0) (0.998184 0.000878072 0) (0.99779 0.000981047 0) (0.997626 0.00109818 0) (0.99759 0.00119957 0) (0.997718 0.00133805 0) (0.99791 0.00144618 0) (0.998199 0.00158889 0) (0.998476 0.00168409 0) (0.998771 0.00179857 0) (0.998965 0.00189493 0) (0.99916 0.00201112 0) (0.999281 0.00212421 0) (0.999458 0.0022132 0) (0.999545 0.00228343 0) (0.999629 0.00235134 0) (0.999606 0.00243732 0) (0.999648 0.00253665 0) (0.999699 0.00259771 0) (0.999822 0.00263216 0) (0.999823 0.00265682 0) (0.999832 0.00275485 0) (0.999833 0.002831 0) (1.00001 0.00286523 0) (1.00009 0.00283414 0) (1.00011 0.00287832 0) (1.00002 0.00299398 0) (1.0002 0.00301341 0) (1.00035 0.0029132 0) (1.00034 0.00292686 0) (1.00021 0.00306482 0) (1.0004 0.00301302 0) (1.00055 0.00286739 0) (1.00042 0.00297041 0) (1.00036 0.00304453 0) (1.00058 0.00289643 0) (1.0006 0.00289104 0) (1.00043 0.00300713 0) (1.00052 0.0029405 0) (1.00065 0.00285939 0) (1.00055 0.00293851 0) (1.00044 0.00294566 0) (1.00064 0.0028442 0) (1.00063 0.0028176 0) (1.00051 0.00287748 0) (1.00044 0.00282211 0) (1.00072 0.00271276 0) (1.00052 0.00274444 0) (1.00044 0.00276846 0) (1.0005 0.00265371 0) (1.00064 0.00262572 0) (1.00032 0.00264866 0) (1.0005 0.00256009 0) (1.00041 0.00250338 0) (1.00044 0.00246979 0) (1.00025 0.00242644 0) (1.0004 0.00235454 0) (1.00021 0.00232233 0) (1.00031 0.00225477 0) (1.00013 0.00222114 0) (1.00023 0.00212401 0) (1.00006 0.0020982 0) (1.0001 0.00199776 0) (0.999967 0.00197677 0) (0.999976 0.00188537 0) (0.999862 0.00188839 0) (0.999823 0.00179561 0) (0.999768 0.00180586 0) (0.999657 0.00172618 0) (0.999649 0.00175039 0) (0.999489 0.00171045 0) (0.999532 0.00177458 0) (0.999317 0.00176864 0) (0.999416 0.00184548 0) (0.999157 0.00184354 0) (0.999294 0.00190993 0) (0.999007 0.00193581 0) (0.999167 0.00201445 0) (0.99887 0.00204154 0) (0.999027 0.00210149 0) (0.998744 0.00213421 0) (0.998861 0.00216511 0) (0.998621 0.00218829 0) (0.998668 0.00218888 0) (0.9985 0.00221561 0) (0.998441 0.00219965 0) (0.998371 0.00221564 0) (0.998177 0.00215845 0) (0.998244 0.00217032 0) (0.997887 0.00210203 0) (0.998101 0.00208165 0) (0.997593 0.00198988 0) (0.997904 0.00192656 0) (0.997366 0.00185235 0) (0.997645 0.0017354 0) (0.997237 0.00168534 0) (0.997874 0.00151482 0) (1.00111 0.000363327 0) (1.00044 0.000433794 0) (0.999619 0.000540493 0) (0.998849 0.000630029 0) (0.998261 0.000752444 0) (0.99786 0.000852644 0) (0.99769 0.000977054 0) (0.99766 0.00107871 0) (0.997789 0.00121673 0) (0.997979 0.00133187 0) (0.998262 0.00146982 0) (0.99852 0.00158516 0) (0.998811 0.00169967 0) (0.999 0.00180981 0) (0.999198 0.00191999 0) (0.999308 0.00203271 0) (0.999459 0.00213119 0) (0.999532 0.00220448 0) (0.999612 0.00228367 0) (0.999602 0.00235477 0) (0.999631 0.00245616 0) (0.999654 0.00252098 0) (0.999755 0.00257733 0) (0.999771 0.0026077 0) (0.999804 0.00268423 0) (0.999787 0.00276481 0) (0.999921 0.00281543 0) (0.999995 0.00281462 0) (1.00007 0.00283273 0) (0.999998 0.00291533 0) (1.0001 0.00297707 0) (1.00023 0.00292001 0) (1.0003 0.0028922 0) (1.00019 0.00298517 0) (1.00027 0.00301946 0) (1.00044 0.00289732 0) (1.00041 0.00290019 0) (1.00029 0.00302188 0) (1.00044 0.00294628 0) (1.00055 0.00284999 0) (1.0004 0.00296466 0) (1.00041 0.00297703 0) (1.00058 0.00284304 0) (1.00054 0.00289267 0) (1.00037 0.00296458 0) (1.00055 0.00285807 0) (1.0006 0.00279175 0) (1.00048 0.00287301 0) (1.00036 0.00284666 0) (1.00066 0.00270953 0) (1.00051 0.00272703 0) (1.0004 0.0027796 0) (1.00045 0.00266238 0) (1.00063 0.00261574 0) (1.0003 0.00265334 0) (1.00046 0.00257416 0) (1.00038 0.0025101 0) (1.00042 0.00248024 0) (1.00023 0.00244252 0) (1.00039 0.00237043 0) (1.0002 0.00233633 0) (1.0003 0.00227197 0) (1.00012 0.00223872 0) (1.00021 0.00214471 0) (1.00005 0.00211884 0) (1.00008 0.00202315 0) (0.99995 0.00200118 0) (0.999959 0.00191493 0) (0.999843 0.00191833 0) (0.9998 0.00183047 0) (0.999744 0.00183822 0) (0.999629 0.00176145 0) (0.999617 0.00178292 0) (0.999454 0.00174608 0) (0.999492 0.00180913 0) (0.999273 0.00180555 0) (0.999368 0.00187963 0) (0.999109 0.00187692 0) (0.999241 0.00194089 0) (0.998952 0.00196781 0) (0.999108 0.00204539 0) (0.998811 0.0020732 0) (0.998966 0.0021323 0) (0.998686 0.00216566 0) (0.998802 0.00219499 0) (0.998566 0.0022198 0) (0.998613 0.00221943 0) (0.998449 0.00224932 0) (0.998393 0.00223302 0) (0.998327 0.00225308 0) (0.998137 0.00219538 0) (0.998207 0.00221198 0) (0.997854 0.00214505 0) (0.998069 0.00212898 0) (0.997567 0.00203852 0) (0.997877 0.00197971 0) (0.997342 0.00190653 0) (0.997619 0.0017959 0) (0.997214 0.0017453 0) (0.997846 0.00158322 0) (1.00115 0.000267218 0) (1.00049 0.000323896 0) (0.999682 0.000416639 0) (0.998918 0.000498448 0) (0.998337 0.000610283 0) (0.997935 0.000713693 0) (0.997763 0.000837225 0) (0.997736 0.000951262 0) (0.997871 0.00108641 0) (0.998056 0.00121649 0) (0.998337 0.0013553 0) (0.998581 0.00148527 0) (0.998861 0.00161159 0) (0.999045 0.00172673 0) (0.999235 0.00184929 0) (0.999337 0.00195185 0) (0.999463 0.00206367 0) (0.999523 0.00213356 0) (0.999596 0.00222159 0) (0.999589 0.00228547 0) (0.999616 0.0023779 0) (0.999617 0.00244921 0) (0.9997 0.00250884 0) (0.999717 0.00255566 0) (0.999769 0.00261636 0) (0.999748 0.00269571 0) (0.999849 0.00276021 0) (0.999907 0.00278021 0) (1 0.00280668 0) (0.999964 0.00285611 0) (1.00003 0.00293123 0) (1.00012 0.00291563 0) (1.00023 0.00287817 0) (1.00016 0.00292009 0) (1.00018 0.00297902 0) (1.00032 0.00291818 0) (1.00037 0.00286169 0) (1.00026 0.00295351 0) (1.00031 0.002977 0) (1.00047 0.00285512 0) (1.00039 0.00290702 0) (1.00031 0.00300322 0) (1.00047 0.00287705 0) (1.00052 0.00284959 0) (1.00032 0.00296591 0) (1.00044 0.0028965 0) (1.00055 0.00277079 0) (1.00047 0.00284858 0) (1.00028 0.00287764 0) (1.00059 0.00272006 0) (1.00051 0.00270999 0) (1.00036 0.00279755 0) (1.00037 0.00268637 0) (1.00061 0.00261216 0) (1.00028 0.00265767 0) (1.00041 0.00258726 0) (1.00036 0.00251044 0) (1.00041 0.00247833 0) (1.00021 0.00244579 0) (1.00036 0.00237345 0) (1.00018 0.00233743 0) (1.00028 0.00227502 0) (1.0001 0.00224045 0) (1.00019 0.00214604 0) (1.00003 0.00211792 0) (1.00006 0.00202531 0) (0.999928 0.00200198 0) (0.999937 0.00191679 0) (0.999819 0.00191812 0) (0.999774 0.00183081 0) (0.999716 0.0018368 0) (0.999597 0.00176095 0) (0.99958 0.00178201 0) (0.999414 0.00174383 0) (0.999449 0.00180564 0) (0.999228 0.00179914 0) (0.999318 0.00187393 0) (0.999055 0.00186843 0) (0.999182 0.00193366 0) (0.998893 0.00195673 0) (0.999045 0.00203563 0) (0.99875 0.00206054 0) (0.998902 0.00212236 0) (0.998623 0.00215357 0) (0.998738 0.00218542 0) (0.998505 0.00220944 0) (0.998553 0.0022107 0) (0.998392 0.00223971 0) (0.99834 0.00222429 0) (0.998278 0.00224275 0) (0.998093 0.00218448 0) (0.998165 0.00219878 0) (0.997818 0.00213212 0) (0.998034 0.00211349 0) (0.997537 0.00202395 0) (0.997846 0.00196353 0) (0.997315 0.00189205 0) (0.997589 0.00178215 0) (0.997186 0.00173365 0) (0.997816 0.00157407 0) (1.00118 0.000143565 0) (1.00053 0.000193027 0) (0.99973 0.000269834 0) (0.998976 0.000348171 0) (0.998408 0.000450721 0) (0.998014 0.000557416 0) (0.997847 0.000684538 0) (0.997824 0.000809492 0) (0.997965 0.000953253 0) (0.998152 0.00109196 0) (0.998426 0.00124556 0) (0.998662 0.00138025 0) (0.998926 0.0015259 0) (0.999104 0.00164141 0) (0.99928 0.00177807 0) (0.99937 0.0018797 0) (0.999476 0.00199637 0) (0.999516 0.00207532 0) (0.999581 0.00216149 0) (0.999567 0.00223285 0) (0.999595 0.00231311 0) (0.999579 0.00239113 0) (0.999648 0.00245446 0) (0.999662 0.00250789 0) (0.999722 0.00256996 0) (0.99971 0.00263335 0) (0.999788 0.00271126 0) (0.999833 0.00273941 0) (0.999937 0.00277854 0) (0.999918 0.00281551 0) (0.999973 0.00288041 0) (1.00002 0.00290427 0) (1.00014 0.00287613 0) (1.00011 0.00288797 0) (1.00011 0.00294481 0) (1.0002 0.00292844 0) (1.00028 0.00287114 0) (1.00023 0.002898 0) (1.00022 0.00297008 0) (1.00035 0.00288771 0) (1.00036 0.00285683 0) (1.00025 0.00298038 0) (1.00034 0.00292747 0) (1.00047 0.00282969 0) (1.00029 0.00294219 0) (1.00032 0.00295732 0) (1.00047 0.00279297 0) (1.00047 0.00282772 0) (1.0002 0.00292654 0) (1.00049 0.00276888 0) (1.0005 0.0027121 0) (1.00033 0.00283373 0) (1.00029 0.00274692 0) (1.00057 0.00264747 0) (1.00026 0.00270314 0) (1.00035 0.00265495 0) (1.00031 0.00257349 0) (1.00038 0.00254162 0) (1.00018 0.00251859 0) (1.00033 0.00244901 0) (1.00015 0.00241244 0) (1.00025 0.00235368 0) (1.00007 0.00232198 0) (1.00016 0.00223076 0) (1 0.00220398 0) (1.00003 0.0021166 0) (0.999898 0.00209544 0) (0.999906 0.00201412 0) (0.999786 0.00201824 0) (0.999738 0.0019342 0) (0.999679 0.00194003 0) (0.999558 0.00186573 0) (0.999538 0.0018879 0) (0.999369 0.00185118 0) (0.999399 0.00191396 0) (0.999175 0.00190702 0) (0.999262 0.00198053 0) (0.998998 0.00197271 0) (0.999121 0.00203703 0) (0.998829 0.00205975 0) (0.998978 0.00213755 0) (0.998683 0.00216201 0) (0.998833 0.00222203 0) (0.998556 0.00225314 0) (0.998671 0.00228291 0) (0.99844 0.00230838 0) (0.998489 0.00230882 0) (0.998331 0.00234056 0) (0.998281 0.00232621 0) (0.998223 0.00234811 0) (0.998041 0.00229215 0) (0.998114 0.00230961 0) (0.997773 0.00224671 0) (0.99799 0.00223048 0) (0.997497 0.00214424 0) (0.997806 0.00208693 0) (0.997279 0.00201737 0) (0.997551 0.00191205 0) (0.99715 0.00186389 0) (0.997776 0.00171091 0) (1.00118 3.18897e-05 0) (1.00055 6.07239e-05 0) (0.999765 0.000116891 0) (0.99903 0.000178353 0) (0.998479 0.000273115 0) (0.998104 0.000369933 0) (0.997947 0.000505675 0) (0.997934 0.000634895 0) (0.998078 0.000796519 0) (0.998268 0.000946768 0) (0.998534 0.00112095 0) (0.99876 0.00126786 0) (0.999008 0.00142527 0) (0.999173 0.00155023 0) (0.999337 0.0016808 0) (0.999408 0.00178717 0) (0.999498 0.00188835 0) (0.999516 0.00197332 0) (0.999569 0.0020471 0) (0.999549 0.00211629 0) (0.999573 0.00219175 0) (0.99955 0.00226122 0) (0.9996 0.0023407 0) (0.999611 0.00238974 0) (0.999669 0.00246649 0) (0.999664 0.00251909 0) (0.999731 0.00260017 0) (0.999757 0.00264502 0) (0.999866 0.00268038 0) (0.999858 0.00272343 0) (0.999919 0.00276338 0) (0.999935 0.00280499 0) (1.00004 0.00279396 0) (1.00006 0.00277995 0) (1.00005 0.00283274 0) (1.0001 0.00283268 0) (1.00018 0.00280608 0) (1.00017 0.00279781 0) (1.00014 0.00286161 0) (1.00022 0.00285278 0) (1.0003 0.00277644 0) (1.00022 0.00285625 0) (1.00022 0.00288868 0) (1.00039 0.00275931 0) (1.00029 0.00279657 0) (1.00023 0.00289452 0) (1.00036 0.00273379 0) (1.00047 0.00268452 0) (1.00015 0.0028403 0) (1.00037 0.00271887 0) (1.00047 0.00259433 0) (1.00031 0.00273032 0) (1.0002 0.00267704 0) (1.00053 0.00254301 0) (1.00025 0.00258861 0) (1.0003 0.00256166 0) (1.00027 0.00247034 0) (1.00036 0.00243276 0) (1.00014 0.00241546 0) (1.00029 0.0023493 0) (1.00012 0.00230951 0) (1.00022 0.00225378 0) (1.00004 0.00222229 0) (1.00013 0.00213453 0) (0.999972 0.00210538 0) (0.999995 0.00202323 0) (0.999864 0.00200109 0) (0.999873 0.00192176 0) (0.999752 0.00192411 0) (0.9997 0.00184335 0) (0.99964 0.00184757 0) (0.999514 0.00177576 0) (0.99949 0.0017966 0) (0.999319 0.00175919 0) (0.999346 0.00181915 0) (0.99912 0.00181116 0) (0.999202 0.00188333 0) (0.998935 0.00187475 0) (0.999053 0.00193769 0) (0.998761 0.00195878 0) (0.998907 0.00203483 0) (0.998612 0.00205921 0) (0.998759 0.00211913 0) (0.998483 0.00215078 0) (0.998597 0.00218077 0) (0.998369 0.00220719 0) (0.99842 0.00220788 0) (0.998265 0.00223954 0) (0.998218 0.00222526 0) (0.998164 0.0022458 0) (0.997986 0.00218996 0) (0.998062 0.00220575 0) (0.997726 0.00214417 0) (0.997944 0.0021274 0) (0.997456 0.00204332 0) (0.997763 0.00198779 0) (0.997239 0.00192052 0) (0.997508 0.00182018 0) (0.99711 0.0017743 0) (0.997733 0.00162849 0) (1.00112 -0.000223813 0) (1.00051 -0.000207623 0) (0.999754 -0.000132628 0) (0.999052 -4.75486e-05 0) (0.998528 9.85734e-05 0) (0.998186 0.000242278 0) (0.998057 0.000429948 0) (0.998062 0.000596269 0) (0.998223 0.000794199 0) (0.998418 0.000983255 0) (0.998677 0.00118625 0) (0.998882 0.00136719 0) (0.999108 0.00153854 0) (0.999243 0.00168714 0) (0.999385 0.0018149 0) (0.999431 0.00192471 0) (0.999501 0.00201911 0) (0.999501 0.0020989 0) (0.999536 0.0021771 0) (0.999518 0.00223164 0) (0.999537 0.00231709 0) (0.999518 0.00236945 0) (0.999557 0.00246379 0) (0.999563 0.00250991 0) (0.999623 0.00258969 0) (0.999615 0.00264584 0) (0.999686 0.00271387 0) (0.999689 0.00278075 0) (0.999795 0.002812 0) (0.99979 0.00286041 0) (0.999849 0.00289572 0) (0.999855 0.00293002 0) (0.999933 0.00295139 0) (0.999971 0.00292 0) (0.999984 0.0029633 0) (1 0.00296659 0) (1.00008 0.00295308 0) (1.0001 0.00293878 0) (1.00009 0.00296433 0) (1.00011 0.002997 0) (1.0002 0.00294407 0) (1.00018 0.00295127 0) (1.00012 0.00304274 0) (1.00026 0.00296319 0) (1.00026 0.00290643 0) (1.00016 0.00304822 0) (1.00021 0.00296312 0) (1.00044 0.00281655 0) (1.00013 0.002988 0) (1.00023 0.00294715 0) (1.00042 0.00276285 0) (1.0003 0.0028851 0) (1.0001 0.00289626 0) (1.00045 0.00274122 0) (1.00022 0.00277221 0) (1.00023 0.00277606 0) (1.0002 0.00268633 0) (1.00031 0.00263788 0) (1.0001 0.0026295 0) (1.00024 0.00256483 0) (1.00008 0.00252486 0) (1.00018 0.00246799 0) (0.999993 0.00244032 0) (1.00008 0.00235229 0) (0.999931 0.00232406 0) (0.999951 0.00224272 0) (0.999818 0.00222521 0) (0.999827 0.00214484 0) (0.999705 0.00215159 0) (0.99965 0.00207037 0) (0.999589 0.00207671 0) (0.999463 0.00200301 0) (0.999435 0.00202823 0) (0.999261 0.00198914 0) (0.999284 0.00205176 0) (0.999057 0.00204021 0) (0.999136 0.00211255 0) (0.998869 0.00209985 0) (0.998982 0.00216316 0) (0.998688 0.00218152 0) (0.99883 0.00225665 0) (0.998536 0.00227804 0) (0.998681 0.00233598 0) (0.998407 0.00236461 0) (0.998521 0.00239336 0) (0.998294 0.00241818 0) (0.998345 0.00241968 0) (0.998192 0.00245033 0) (0.998147 0.00243899 0) (0.998095 0.00245906 0) (0.997921 0.00240772 0) (0.997999 0.00242276 0) (0.997667 0.00236569 0) (0.997887 0.00234767 0) (0.997402 0.00226717 0) (0.997709 0.00221144 0) (0.997189 0.00214614 0) (0.997457 0.00204644 0) (0.99706 0.00200157 0) (0.99768 0.00185815 0) (1.00107 -0.000411377 0) (1.00053 -0.000471976 0) (0.99986 -0.000472722 0) (0.999231 -0.000452475 0) (0.998763 -0.000360732 0) (0.99844 -0.000247476 0) (0.998305 -8.25742e-05 0) (0.998294 0.000111174 0) (0.998459 0.000338689 0) (0.998645 0.000570255 0) (0.998887 0.000794116 0) (0.999058 0.00100008 0) (0.999249 0.00117683 0) (0.999346 0.00132729 0) (0.999447 0.00145223 0) (0.999467 0.00154777 0) (0.999509 0.00164225 0) (0.999499 0.00170805 0) (0.999511 0.00179683 0) (0.999492 0.00184796 0) (0.999504 0.00194157 0) (0.999483 0.00200123 0) (0.999519 0.00209659 0) (0.999508 0.00216483 0) (0.999573 0.00223855 0) (0.999554 0.0023134 0) (0.999632 0.00237198 0) (0.999624 0.00244512 0) (0.999718 0.00248549 0) (0.999723 0.0025209 0) (0.999776 0.00256559 0) (0.999787 0.00258467 0) (0.999838 0.00262313 0) (0.999877 0.00260978 0) (0.999909 0.00263105 0) (0.999903 0.00265873 0) (0.999968 0.00265401 0) (0.999996 0.00265407 0) (1.00001 0.0026702 0) (1.00002 0.00269259 0) (1.00008 0.00269317 0) (1.00012 0.00265292 0) (1.00006 0.00271245 0) (1.00013 0.00272774 0) (1.00021 0.0025984 0) (1.00014 0.00270057 0) (1.00006 0.00273344 0) (1.00036 0.00252938 0) (1.00014 0.0026411 0) (1.0001 0.0027109 0) (1.00032 0.00249494 0) (1.0003 0.00255589 0) (1.00002 0.002631 0) (1.00037 0.00247617 0) (1.0002 0.0024639 0) (1.00019 0.00249979 0) (1.00013 0.00241809 0) (1.00027 0.00236006 0) (1.00006 0.00235804 0) (1.00018 0.0023055 0) (1.00003 0.00226441 0) (1.00014 0.00221394 0) (0.999943 0.00218971 0) (1.00003 0.00211187 0) (0.999884 0.0020827 0) (0.999903 0.00201135 0) (0.999768 0.00199451 0) (0.999778 0.00192053 0) (0.999655 0.00192594 0) (0.999597 0.00185367 0) (0.999534 0.00185739 0) (0.999405 0.00179073 0) (0.999375 0.00181227 0) (0.999199 0.00177707 0) (0.99922 0.00183342 0) (0.998988 0.00182602 0) (0.999063 0.00189219 0) (0.998793 0.00188366 0) (0.998903 0.00194068 0) (0.998608 0.00196225 0) (0.998747 0.00203091 0) (0.998453 0.00205668 0) (0.998595 0.00211031 0) (0.998321 0.00214345 0) (0.998434 0.00216959 0) (0.99821 0.00219829 0) (0.998263 0.00219822 0) (0.998113 0.00223162 0) (0.998072 0.00221924 0) (0.998024 0.00224147 0) (0.997854 0.00219043 0) (0.997934 0.00220818 0) (0.997606 0.00215271 0) (0.997826 0.00213965 0) (0.997345 0.00206209 0) (0.997651 0.00201425 0) (0.997134 0.00195166 0) (0.997399 0.0018632 0) (0.997003 0.00181998 0) (0.997622 0.00169084 0) (1.00074 -0.000790166 0) (1.00021 -0.000782536 0) (0.999594 -0.000698834 0) (0.999043 -0.000564691 0) (0.998667 -0.00035553 0) (0.998437 -0.000106672 0) (0.99843 0.000193817 0) (0.998525 0.000502562 0) (0.998731 0.000810542 0) (0.998908 0.00108335 0) (0.999114 0.00132669 0) (0.999238 0.00151837 0) (0.999369 0.0016837 0) (0.999422 0.00179599 0) (0.999477 0.00190384 0) (0.999473 0.00196934 0) (0.999494 0.00205675 0) (0.999478 0.00210992 0) (0.999486 0.00219516 0) (0.999465 0.00225352 0) (0.999485 0.00233984 0) (0.999461 0.00241215 0) (0.999502 0.00249596 0) (0.999477 0.00257342 0) (0.99954 0.00264555 0) (0.999514 0.00271497 0) (0.999582 0.00278223 0) (0.999569 0.00283299 0) (0.999637 0.00289146 0) (0.999644 0.00291034 0) (0.999692 0.00295687 0) (0.999701 0.00297297 0) (0.999751 0.00299551 0) (0.999778 0.00300725 0) (0.999832 0.00299892 0) (0.999829 0.00301939 0) (0.999878 0.00302789 0) (0.999918 0.00300534 0) (0.999926 0.00303885 0) (0.999937 0.00302754 0) (0.999967 0.00305781 0) (1 0.00304065 0) (0.999998 0.00302758 0) (0.999995 0.00311581 0) (1.00007 0.0030073 0) (1.00012 0.00299902 0) (0.999937 0.00313256 0) (1.00023 0.00294639 0) (1.00014 0.00294371 0) (1 0.00309668 0) (1.00018 0.00291783 0) (1.00029 0.00288282 0) (0.999943 0.0030095 0) (1.00024 0.00288654 0) (1.00015 0.00282711 0) (1.00013 0.00287281 0) (1.00004 0.0028153 0) (1.00021 0.00273525 0) (1 0.00273319 0) (1.00012 0.00268266 0) (0.999968 0.0026425 0) (1.00008 0.00258171 0) (0.999887 0.0025623 0) (0.999972 0.0024798 0) (0.999826 0.00245006 0) (0.999844 0.00237386 0) (0.999705 0.00236264 0) (0.999716 0.00228116 0) (0.999593 0.00229116 0) (0.999532 0.00221434 0) (0.999469 0.0022215 0) (0.999339 0.00214936 0) (0.999304 0.00217692 0) (0.999126 0.00213594 0) (0.999144 0.0021958 0) (0.998913 0.00218138 0) (0.998985 0.00224947 0) (0.998715 0.00223398 0) (0.998822 0.00229381 0) (0.998525 0.00230822 0) (0.998661 0.00237839 0) (0.998367 0.00239623 0) (0.998508 0.00245087 0) (0.998236 0.00247511 0) (0.998349 0.00250394 0) (0.998125 0.00252452 0) (0.998177 0.00252921 0) (0.998029 0.00255446 0) (0.997989 0.00254811 0) (0.997942 0.00256255 0) (0.997775 0.00251901 0) (0.997856 0.00252871 0) (0.997532 0.00248002 0) (0.997754 0.00245857 0) (0.997277 0.00238764 0) (0.997583 0.00233217 0) (0.997069 0.00227518 0) (0.997333 0.00217952 0) (0.996939 0.002142 0) (0.997555 0.00200594 0) (1.00088 -0.00201762 0) (1.00053 -0.002342 0) (1.00008 -0.00238645 0) (0.999661 -0.00218232 0) (0.999379 -0.00176917 0) (0.999195 -0.0012439 0) (0.999137 -0.000670316 0) (0.999113 -0.000139896 0) (0.999196 0.000329474 0) (0.999258 0.000679438 0) (0.999353 0.000949094 0) (0.999391 0.0011144 0) (0.999449 0.00124091 0) (0.999452 0.00130471 0) (0.999477 0.00137229 0) (0.99946 0.00141863 0) (0.999476 0.00148824 0) (0.999455 0.00154539 0) (0.999466 0.00162123 0) (0.999439 0.00169684 0) (0.99946 0.00178027 0) (0.999428 0.00186405 0) (0.999461 0.00194895 0) (0.99943 0.00202555 0) (0.99948 0.00211031 0) (0.999454 0.00217006 0) (0.99951 0.00225023 0) (0.999496 0.0022902 0) (0.999557 0.00235094 0) (0.999556 0.00238023 0) (0.999612 0.00241391 0) (0.999606 0.00245152 0) (0.999657 0.00246202 0) (0.99967 0.00249702 0) (0.99971 0.00249691 0) (0.999724 0.00250288 0) (0.999745 0.00254426 0) (0.999797 0.00251192 0) (0.999816 0.00255487 0) (0.999826 0.00254999 0) (0.999881 0.00255837 0) (0.999892 0.00259489 0) (0.999936 0.00253457 0) (0.999933 0.00262007 0) (0.999933 0.00259552 0) (1.00008 0.00249884 0) (0.999872 0.00265115 0) (1.00007 0.00256426 0) (1.00012 0.00245474 0) (0.999947 0.00263065 0) (1.00003 0.00253725 0) (1.00025 0.00242496 0) (0.999908 0.0025576 0) (1.00012 0.00249804 0) (1.00009 0.00240469 0) (1.00009 0.00245044 0) (0.999952 0.00242505 0) (1.00013 0.00234732 0) (0.999946 0.00234003 0) (1.00005 0.00230769 0) (0.999891 0.00227564 0) (1.00002 0.00221949 0) (0.999818 0.00220736 0) (0.999899 0.00214192 0) (0.999757 0.00211276 0) (0.999778 0.00205032 0) (0.999636 0.00204362 0) (0.999647 0.00197204 0) (0.999526 0.00198231 0) (0.99946 0.00191933 0) (0.999396 0.00192414 0) (0.999266 0.00186281 0) (0.99923 0.00188683 0) (0.99905 0.00185353 0) (0.999066 0.0019058 0) (0.998831 0.00189868 0) (0.998899 0.00195801 0) (0.998626 0.00194875 0) (0.998731 0.00199999 0) (0.998432 0.00201929 0) (0.998566 0.00208072 0) (0.998271 0.00210392 0) (0.998408 0.00215158 0) (0.998136 0.00218103 0) (0.998249 0.00220563 0) (0.998028 0.00223173 0) (0.998081 0.00223395 0) (0.997937 0.00226472 0) (0.9979 0.00225667 0) (0.997857 0.00227759 0) (0.997693 0.00223482 0) (0.997776 0.00225217 0) (0.997456 0.00220498 0) (0.997677 0.0021938 0) (0.997202 0.00212576 0) (0.997506 0.00208401 0) (0.996994 0.00202861 0) (0.997256 0.00195053 0) (0.996863 0.001912 0) (0.997477 0.00179873 0) (0.998941 -0.00157649 0) (0.999258 -0.00180668 0) (0.999666 -0.00178045 0) (0.999976 -0.00153599 0) (1.00018 -0.0010912 0) (1.00021 -0.000564563 0) (1.00017 3.94315e-06 0) (1.00005 0.000519247 0) (0.999914 0.00096777 0) (0.999725 0.00129169 0) (0.999604 0.00153757 0) (0.999481 0.00169058 0) (0.99944 0.00180224 0) (0.999394 0.00186739 0) (0.999416 0.00192835 0) (0.999411 0.00198054 0) (0.99944 0.00203979 0) (0.999427 0.00209119 0) (0.999452 0.00215727 0) (0.999433 0.00221968 0) (0.999454 0.00229959 0) (0.999423 0.0023624 0) (0.999446 0.0024496 0) (0.999415 0.00250611 0) (0.99945 0.00259402 0) (0.999416 0.00264294 0) (0.999459 0.00271657 0) (0.999425 0.00276046 0) (0.999484 0.00280369 0) (0.999466 0.00284755 0) (0.999529 0.00286413 0) (0.99952 0.00290334 0) (0.99957 0.00291624 0) (0.999593 0.00293035 0) (0.999615 0.0029532 0) (0.999658 0.00292788 0) (0.999665 0.00297949 0) (0.999705 0.00295112 0) (0.999738 0.00296788 0) (0.999715 0.00299113 0) (0.999786 0.00296334 0) (0.999766 0.003017 0) (0.999808 0.00297296 0) (0.999851 0.00298687 0) (0.999773 0.00304269 0) (0.999982 0.00291799 0) (0.999824 0.00300391 0) (0.9999 0.0030238 0) (1.00004 0.00286384 0) (0.999915 0.00298119 0) (0.999871 0.00298746 0) (1.00015 0.00282924 0) (0.999864 0.00292294 0) (0.999992 0.00291663 0) (0.999992 0.00281034 0) (1.00003 0.00282332 0) (0.99986 0.00282213 0) (1.00005 0.00274392 0) (0.999882 0.00272341 0) (0.999979 0.00269002 0) (0.999819 0.00266755 0) (0.99995 0.00259793 0) (0.999756 0.00258654 0) (0.999828 0.00252068 0) (0.999687 0.00248828 0) (0.999711 0.00241995 0) (0.999561 0.00241751 0) (0.999572 0.00233829 0) (0.999453 0.00234927 0) (0.999384 0.00228339 0) (0.999318 0.00229 0) (0.999188 0.00222436 0) (0.999147 0.00225166 0) (0.998964 0.002213 0) (0.998979 0.00226574 0) (0.998744 0.0022531 0) (0.99881 0.00231345 0) (0.998537 0.00229899 0) (0.998637 0.00235216 0) (0.998337 0.00236515 0) (0.998469 0.00242734 0) (0.998175 0.00244383 0) (0.998311 0.00249219 0) (0.998039 0.00251412 0) (0.998151 0.00254066 0) (0.99793 0.00255976 0) (0.997982 0.00256484 0) (0.997838 0.00258841 0) (0.997803 0.00258314 0) (0.99776 0.00259745 0) (0.997599 0.00255939 0) (0.997684 0.00257007 0) (0.997368 0.00252675 0) (0.997591 0.00250947 0) (0.99712 0.00244613 0) (0.997425 0.00239927 0) (0.996915 0.00234735 0) (0.997177 0.00226497 0) (0.996786 0.00222981 0) (0.997399 0.00211311 0) (0.999563 -0.000727347 0) (0.999933 -0.000746601 0) (1.00042 -0.000702924 0) (1.00079 -0.000635071 0) (1.00102 -0.000500453 0) (1.00102 -0.000335071 0) (1.0009 -0.00011407 0) (1.00062 0.00011531 0) (1.00033 0.000356085 0) (1.00001 0.000596976 0) (0.999797 0.000825898 0) (0.999596 0.00104087 0) (0.999499 0.00122765 0) (0.999413 0.0013902 0) (0.999409 0.00152546 0) (0.999385 0.00162606 0) (0.999391 0.00171498 0) (0.999374 0.00176913 0) (0.999391 0.00184336 0) (0.999377 0.00187874 0) (0.999388 0.00195409 0) (0.999358 0.00198685 0) (0.999373 0.00206622 0) (0.999337 0.00210989 0) (0.999371 0.00218023 0) (0.999324 0.00223637 0) (0.999373 0.00228655 0) (0.999322 0.00235445 0) (0.999387 0.00238286 0) (0.99936 0.00244427 0) (0.999414 0.00246488 0) (0.999412 0.00249483 0) (0.999436 0.00253354 0) (0.999466 0.00251754 0) (0.999462 0.00256829 0) (0.999509 0.0025328 0) (0.999525 0.00257246 0) (0.999538 0.00257449 0) (0.999609 0.00255301 0) (0.999574 0.00261055 0) (0.999661 0.00256854 0) (0.999663 0.00261234 0) (0.999673 0.00262258 0) (0.999776 0.00257413 0) (0.999658 0.00267418 0) (0.999842 0.0025883 0) (0.999772 0.00258799 0) (0.999755 0.00268549 0) (0.999891 0.00254222 0) (0.999873 0.00257708 0) (0.999729 0.00265923 0) (1.00002 0.00251604 0) (0.999814 0.00255186 0) (0.999877 0.00259467 0) (0.99987 0.00250974 0) (0.999956 0.00249347 0) (0.999761 0.00251329 0) (0.999931 0.00245845 0) (0.99978 0.00242632 0) (0.999879 0.00240095 0) (0.999706 0.00239256 0) (0.999838 0.00232441 0) (0.999653 0.00231613 0) (0.999719 0.00226671 0) (0.999578 0.00223594 0) (0.999612 0.00217855 0) (0.999458 0.00218227 0) (0.99947 0.0021123 0) (0.999356 0.0021238 0) (0.999284 0.00207033 0) (0.999215 0.00207627 0) (0.999089 0.00202045 0) (0.999049 0.00204645 0) (0.998865 0.00201466 0) (0.998879 0.00206128 0) (0.998642 0.00205305 0) (0.998704 0.00210583 0) (0.998429 0.00209482 0) (0.998528 0.00214079 0) (0.998225 0.00215438 0) (0.998355 0.00220833 0) (0.998059 0.00222523 0) (0.998191 0.00226716 0) (0.997918 0.00228851 0) (0.99803 0.00231115 0) (0.997811 0.00233041 0) (0.997865 0.00233481 0) (0.997724 0.00235895 0) (0.997691 0.00235466 0) (0.997651 0.00237085 0) (0.997493 0.00233805 0) (0.997578 0.00235143 0) (0.997264 0.00231409 0) (0.997486 0.00230213 0) (0.997016 0.00224658 0) (0.997319 0.00220864 0) (0.99681 0.00216264 0) (0.997071 0.00209334 0) (0.996679 0.00206141 0) (0.997292 0.00196224 0) (0.998561 0.00108741 0) (0.999027 0.00136561 0) (0.999613 0.00148571 0) (1.0001 0.00144956 0) (1.00049 0.00129748 0) (1.00068 0.00111513 0) (1.00076 0.000940571 0) (1.00067 0.000854381 0) (1.00055 0.000843424 0) (1.00032 0.000936779 0) (1.00014 0.00108638 0) (0.999932 0.0012777 0) (0.999785 0.00148821 0) (0.999639 0.00166705 0) (0.999542 0.00184682 0) (0.999451 0.00194425 0) (0.999394 0.00206457 0) (0.99935 0.00210352 0) (0.999335 0.00218558 0) (0.999311 0.00219756 0) (0.99932 0.00225568 0) (0.999288 0.00228051 0) (0.999319 0.00232654 0) (0.99927 0.00238237 0) (0.999318 0.00241113 0) (0.999254 0.00248664 0) (0.999311 0.00250936 0) (0.999252 0.00258453 0) (0.999303 0.00261897 0) (0.999282 0.00265704 0) (0.999308 0.00271079 0) (0.999329 0.00269745 0) (0.999326 0.00276932 0) (0.999367 0.00272614 0) (0.999369 0.00277976 0) (0.999399 0.00277031 0) (0.999448 0.00276653 0) (0.999418 0.00281963 0) (0.99951 0.00276406 0) (0.999467 0.00283151 0) (0.999521 0.00281253 0) (0.999561 0.00280371 0) (0.999515 0.00287402 0) (0.999654 0.00278161 0) (0.999551 0.00287214 0) (0.99967 0.002848 0) (0.999694 0.00277704 0) (0.999646 0.0028954 0) (0.999725 0.00280666 0) (0.999812 0.00277091 0) (0.999618 0.00287785 0) (0.999859 0.0027779 0) (0.999739 0.00276483 0) (0.999773 0.00281057 0) (0.999732 0.00276509 0) (0.999862 0.00271731 0) (0.99967 0.00273463 0) (0.999819 0.00270574 0) (0.999682 0.00266474 0) (0.999797 0.00263272 0) (0.999613 0.00264195 0) (0.999743 0.00256817 0) (0.999571 0.00255974 0) (0.999626 0.00251709 0) (0.999481 0.00248677 0) (0.999522 0.00242732 0) (0.99936 0.00243665 0) (0.999367 0.00236401 0) (0.999258 0.00237567 0) (0.999182 0.00232281 0) (0.99911 0.00233097 0) (0.998984 0.0022741 0) (0.998939 0.0023027 0) (0.998751 0.00226819 0) (0.998764 0.00231404 0) (0.998528 0.00230222 0) (0.998588 0.00235535 0) (0.998312 0.00234212 0) (0.998408 0.00238967 0) (0.998105 0.00239912 0) (0.998232 0.00245306 0) (0.997938 0.00246625 0) (0.998069 0.00250872 0) (0.997799 0.00252613 0) (0.997909 0.00255029 0) (0.99769 0.00256632 0) (0.997744 0.00257279 0) (0.997603 0.00259336 0) (0.997572 0.002591 0) (0.997533 0.00260364 0) (0.997377 0.00257496 0) (0.997464 0.00258486 0) (0.997154 0.00255102 0) (0.997378 0.00253629 0) (0.996911 0.00248557 0) (0.997216 0.00244604 0) (0.996709 0.00240347 0) (0.996969 0.00233335 0) (0.996579 0.00230424 0) (0.997192 0.00220502 0) (1.00078 -1.18688e-05 0) (1.00058 8.54043e-05 0) (1.00033 0.000160395 0) (1.0001 0.000282263 0) (0.999997 0.000393423 0) (0.99996 0.000557148 0) (1.00004 0.000706517 0) (1.0001 0.00088555 0) (1.00016 0.00106131 0) (1.00015 0.00123033 0) (1.00012 0.00141249 0) (1.00002 0.00154337 0) (0.999889 0.00170907 0) (0.999737 0.00178769 0) (0.999577 0.00191867 0) (0.999439 0.00195556 0) (0.999337 0.0020547 0) (0.999247 0.0020813 0) (0.999214 0.00214385 0) (0.999153 0.00217713 0) (0.999178 0.00220727 0) (0.999123 0.00226535 0) (0.99918 0.00227436 0) (0.999115 0.00234852 0) (0.999173 0.00235069 0) (0.999118 0.00241686 0) (0.999164 0.00244288 0) (0.999135 0.002476 0) (0.999148 0.00254238 0) (0.999154 0.00252681 0) (0.999144 0.00261315 0) (0.99917 0.00257099 0) (0.99916 0.00263681 0) (0.999169 0.00261458 0) (0.999209 0.00261841 0) (0.999186 0.00266193 0) (0.999274 0.00260221 0) (0.999227 0.00267541 0) (0.99931 0.00262451 0) (0.999321 0.00264365 0) (0.999322 0.00268571 0) (0.999426 0.00261337 0) (0.999354 0.00271774 0) (0.999483 0.00264069 0) (0.999446 0.0026733 0) (0.999473 0.00272457 0) (0.999549 0.00261895 0) (0.999524 0.00271075 0) (0.999513 0.00269035 0) (0.999681 0.00261033 0) (0.999485 0.0027063 0) (0.999665 0.00265259 0) (0.999599 0.0026227 0) (0.99964 0.00264976 0) (0.99956 0.00263971 0) (0.999704 0.00259507 0) (0.999532 0.00259272 0) (0.999657 0.00258729 0) (0.999506 0.0025569 0) (0.999644 0.00250874 0) (0.999444 0.00253124 0) (0.999562 0.00246467 0) (0.999407 0.00244754 0) (0.999455 0.00241681 0) (0.999303 0.00239182 0) (0.999359 0.00233356 0) (0.999193 0.00234945 0) (0.999198 0.00228512 0) (0.999096 0.0022949 0) (0.999019 0.00225054 0) (0.998944 0.00226038 0) (0.998824 0.00220963 0) (0.998781 0.00223839 0) (0.998594 0.00220869 0) (0.99861 0.0022495 0) (0.998372 0.00223799 0) (0.998431 0.00228428 0) (0.998154 0.00227158 0) (0.99825 0.00231307 0) (0.997947 0.00231905 0) (0.998073 0.00236405 0) (0.997776 0.00237337 0) (0.997905 0.0024086 0) (0.997633 0.00242025 0) (0.997743 0.00243936 0) (0.997526 0.00245047 0) (0.997581 0.00245617 0) (0.997443 0.00247217 0) (0.997413 0.0024718 0) (0.997376 0.0024821 0) (0.99722 0.00246141 0) (0.997309 0.00246983 0) (0.996997 0.0024445 0) (0.99722 0.00243223 0) (0.996751 0.00239201 0) (0.997054 0.00235911 0) (0.996544 0.00232393 0) (0.996804 0.0022651 0) (0.996411 0.0022399 0) (0.997023 0.00215651 0) (0.998506 -0.00111092 0) (0.998988 -0.00126276 0) (0.999658 -0.00123467 0) (1.00026 -0.000995038 0) (1.00075 -0.000619303 0) (1.00103 -0.000160796 0) (1.00113 0.000324747 0) (1.00107 0.000749845 0) (1.0009 0.00113782 0) (1.00067 0.00139884 0) (1.00039 0.00163281 0) (1.00013 0.00173936 0) (0.999866 0.00185725 0) (0.999643 0.00188063 0) (0.999463 0.00194137 0) (0.999306 0.00195635 0) (0.999226 0.0020009 0) (0.999111 0.00203764 0) (0.999102 0.0020674 0) (0.999018 0.00212589 0) (0.999061 0.00214649 0) (0.998991 0.00221578 0) (0.99904 0.00223677 0) (0.99898 0.00229362 0) (0.99901 0.00232831 0) (0.998984 0.00235794 0) (0.99899 0.00242005 0) (0.998992 0.00241829 0) (0.998975 0.00249896 0) (0.998984 0.00248076 0) (0.998978 0.00254755 0) (0.998972 0.00254261 0) (0.999 0.00256357 0) (0.998962 0.00259328 0) (0.999048 0.002568 0) (0.999001 0.00262746 0) (0.999081 0.00259417 0) (0.999067 0.00262727 0) (0.999088 0.00264462 0) (0.999157 0.00261338 0) (0.999107 0.00268986 0) (0.999218 0.00262933 0) (0.999175 0.00268983 0) (0.999238 0.00268503 0) (0.99928 0.00265845 0) (0.999261 0.00273066 0) (0.999327 0.00266995 0) (0.999376 0.00269195 0) (0.999284 0.00273322 0) (0.999488 0.00265852 0) (0.999325 0.00271512 0) (0.999449 0.00270438 0) (0.999409 0.00267924 0) (0.999467 0.002688 0) (0.999368 0.00269188 0) (0.999508 0.00266577 0) (0.999356 0.00265665 0) (0.999484 0.00264555 0) (0.999313 0.00264339 0) (0.999474 0.00258938 0) (0.99928 0.002608 0) (0.99938 0.0025632 0) (0.999241 0.00254414 0) (0.999289 0.0025118 0) (0.999123 0.00250379 0) (0.999189 0.00244171 0) (0.99902 0.00245866 0) (0.999019 0.00240179 0) (0.998922 0.00241094 0) (0.998845 0.00236563 0) (0.998765 0.00238197 0) (0.998646 0.00233147 0) (0.9986 0.00236097 0) (0.99841 0.0023314 0) (0.998424 0.00237194 0) (0.998188 0.00235798 0) (0.998244 0.00240529 0) (0.997967 0.00239244 0) (0.99806 0.00243503 0) (0.997756 0.00243904 0) (0.997881 0.00248436 0) (0.997586 0.00249159 0) (0.997712 0.00252802 0) (0.997443 0.0025382 0) (0.997552 0.00255931 0) (0.997335 0.0025694 0) (0.997389 0.00257746 0) (0.997253 0.00259151 0) (0.997223 0.00259367 0) (0.997188 0.00260219 0) (0.997035 0.0025859 0) (0.997125 0.0025921 0) (0.996816 0.00257059 0) (0.997041 0.00255683 0) (0.996575 0.00252206 0) (0.996879 0.00248848 0) (0.996372 0.00245787 0) (0.996633 0.00239896 0) (0.996241 0.00237753 0) (0.996856 0.00229294 0) (0.999476 0.000547102 0) (1.00001 0.000767713 0) (1.00069 0.00100629 0) (1.00124 0.00123642 0) (1.00161 0.00146553 0) (1.00177 0.00165017 0) (1.00174 0.00183983 0) (1.00154 0.00197182 0) (1.00122 0.00210493 0) (1.00086 0.00217436 0) (1.00049 0.00225396 0) (1.00014 0.00228212 0) (0.999835 0.00232391 0) (0.999563 0.00233133 0) (0.999384 0.00235023 0) (0.999211 0.0023588 0) (0.999144 0.00237011 0) (0.999024 0.00238718 0) (0.999022 0.00239617 0) (0.998942 0.00241848 0) (0.998977 0.00243086 0) (0.998921 0.00245085 0) (0.998948 0.00247144 0) (0.998904 0.00248052 0) (0.998913 0.00251135 0) (0.9989 0.00250882 0) (0.998896 0.00254814 0) (0.998894 0.00253962 0) (0.998885 0.00257647 0) (0.998871 0.00257265 0) (0.998882 0.0025933 0) (0.998845 0.00260115 0) (0.998884 0.00259939 0) (0.998834 0.00261487 0) (0.99891 0.00260286 0) (0.998881 0.00261231 0) (0.998929 0.00261266 0) (0.998949 0.00259882 0) (0.998949 0.00262551 0) (0.999031 0.00259552 0) (0.999 0.00263311 0) (0.999085 0.00261755 0) (0.999083 0.00263324 0) (0.999116 0.00265139 0) (0.999167 0.00263979 0) (0.999167 0.00266545 0) (0.999188 0.00266722 0) (0.999278 0.00265209 0) (0.999168 0.00268975 0) (0.999353 0.00265683 0) (0.999225 0.00267652 0) (0.999326 0.00267585 0) (0.999283 0.00267269 0) (0.999356 0.00266724 0) (0.999249 0.00267799 0) (0.999385 0.00266127 0) (0.99923 0.00266658 0) (0.999365 0.00264499 0) (0.999178 0.00265595 0) (0.999336 0.00261581 0) (0.999147 0.00262219 0) (0.999235 0.00258607 0) (0.999094 0.00257896 0) (0.999152 0.00253726 0) (0.998977 0.00254207 0) (0.999051 0.00248884 0) (0.998886 0.0025036 0) (0.998884 0.00245736 0) (0.998789 0.00247219 0) (0.998718 0.00242848 0) (0.998636 0.00245014 0) (0.998524 0.00240704 0) (0.998482 0.00243721 0) (0.998296 0.00241057 0) (0.998311 0.00244972 0) (0.998076 0.00243287 0) (0.998131 0.00247467 0) (0.997854 0.00245974 0) (0.997947 0.00249824 0) (0.997643 0.00249511 0) (0.997765 0.00253313 0) (0.997467 0.002532 0) (0.99759 0.00256161 0) (0.997318 0.002561 0) (0.997425 0.00257779 0) (0.997209 0.00257782 0) (0.997263 0.00258723 0) (0.997129 0.00259176 0) (0.997099 0.00259917 0) (0.997065 0.00260113 0) (0.996911 0.00259824 0) (0.997001 0.00259954 0) (0.99669 0.00259158 0) (0.996913 0.00257734 0) (0.996444 0.00255866 0) (0.996748 0.00252919 0) (0.996237 0.0025108 0) (0.996501 0.0024611 0) (0.996104 0.00244909 0) (0.996722 0.00237777 0) ) ; boundaryField { zeroGradientPlanes { type zeroGradient; } inlet { type fixedValue; value uniform (1 0 0); } plate { type noSlip; } frontAndBack { type empty; } } // ************************************************************************* //
cf61617bf83b04501e308ba9a218cc3e71b26694
a44bf620dee146806546a17ae902e2e614ebf4e6
/Model.h
6a2438ca617bbbec78632bb88b652aac1097d1cc
[]
no_license
ArpanGyawali/GraphicsProject
c79ce8542fc3260b0c29b895ed2c368b88172600
3e9b5c9e63bf55a4eb9855f380695755b7def1f8
refs/heads/main
2023-06-30T01:09:19.732743
2021-07-30T05:15:29
2021-07-30T05:15:29
390,207,699
2
0
null
null
null
null
UTF-8
C++
false
false
655
h
#pragma once #include "Vec3.h" #include <vector> #include "VertexIndexBuf.h" #include "Vertex.h" #include "OBJLoader.h" class Model { private: std::vector<Vec3f> vertices; std::vector<Vec3f> normals; //std::vector<size_t> indices; public: Model() { std::vector<Vertex> model; model = loadOBJ("OBJFiles/Statue_de_la_libert__Model_1.obj"); for (size_t i = 0; i < model.size(); i++) { vertices.emplace_back(model[i].position); } } VertexIndexBuf GetTriangle() const { /*return{ //for wire framed vertices,{ 0,1, 1,3, 3,2, 2,0, 0,4, 1,5, 3,7, 2,6, 4,5, 5,7, 7,6, 6,4 } };*/ return{ vertices }; } };
8f3b905e960d444fc0690fc16c0f07c323b7cc92
17c4e1fa8df9ece967575508ba564a0ed4458550
/core/gv_hashmap.h
e5d3141bf2e2bf78fb4b02328d2fcc2de6d3fed3
[]
no_license
storming/OpenGxV
539e6896af69b87bfc3277334f209cdcb640090d
298ef02aaf9c1560b76153c75f2fff6b2dfedee6
refs/heads/master
2021-01-01T05:48:38.045351
2014-07-30T07:45:08
2014-07-30T07:45:08
null
0
0
null
null
null
null
UTF-8
C++
false
false
5,900
h
#ifndef __GV_HASHMAP_H__ #define __GV_HASHMAP_H__ #include "gv_platform.h" #include "gv_hash.h" #include "gv_object.h" #include "gv_memory.h" GV_NS_BEGIN template <typename _Key, typename _T> struct equal { bool operator()(const _Key &lhs, const _T &rhs) noexcept { return lhs == rhs; } }; struct hashmap_entry : public list_entry { hash_t _hash; }; template < typename _Key, typename _T, typename _Entry, _Entry _T::*__field, typename _Hash = hash<_Key>, typename _Compare = equal<_Key, _T>> class hashmap { public: typedef _T type; typedef _Key key_type; typedef _Entry entry_type; typedef _Hash hash_type; typedef _Compare compare_type; typedef bsdlist<_T, typename member_of< decltype(__field) >::class_type, entry_type, __field, entry_type::list_type, is_ptr<_T>::value> list_type; typedef typename list_type::pointer pointer; typedef typename list_type::iterator iterator; private: static entry_type &get_entry(type *elm) noexcept { return elm->*__field; } unsigned get_bucket(hash_t h) noexcept { return h & _capacity; } unsigned get_bucket(type *elm) noexcept { return get_bucket(get_entry(elm)._hash); } type *get_next(unsigned bucket, type *elm) noexcept { type* next = list_type::next(elm); if (next && get_bucket(get_entry(elm)._hash) != bucket) { next = nullptr; } return next; } bool equal(hash_t hash, const key_type &key, type *elm) noexcept { return hash == get_entry(elm)._hash && _compare(key, *elm); } pointer link(type **head, const pointer &elm) noexcept { if (*head) { list_type::insert_front(*head, elm); } else { _list.push_front(elm); } *head = elm; return elm; } pointer unlink(unsigned bucket, type**head, type *elm) noexcept { --_size; if (*head == elm) { *head = get_next(bucket, elm); } return list_type::remove(elm); } public: hashmap(size_t capacity = 0, hash_type hash = hash_type(), compare_type compare = compare_type()) noexcept : _hash(hash), _compare(compare), _map(), _size(), _capacity(3) { expand(); } ~hashmap() noexcept { mem_free(_map, sizeof(type*) * (_capacity + 1)); } size_t size() const noexcept { return _size; } size_t capacity() const noexcept { return _capacity; } void expand() noexcept { if (_map) { mem_free(_map, sizeof(type*) * (_capacity + 1)); _capacity = ((_capacity + 1) << 1) - 1; } _map = (type**)mem_alloc(sizeof(type*) * (_capacity + 1)); memset(_map, 0, sizeof(type*) * (_capacity + 1)); list_type list; list = std::move(_list); pointer elm; while ((elm = list.pop_front())) { type **head = _map + get_bucket(elm); link(head, elm); } } template <typename _Constructor, typename ..._Args> std::pair<pointer, bool> emplace(const key_type &key, _Constructor constructor, _Args&&...args) { hash_t hash = _hash(key); unsigned bucket = get_bucket(hash); type **head = _map + bucket; type *elm = *head; while (elm) { if (equal(hash, key, elm)) { return std::pair<type*, bool>(elm, false); } elm = get_next(bucket, elm); } ++_size; return std::pair<pointer, bool>(link(head, constructor(std::forward<_Args>(args)...)), true); } type* find(const key_type &key) noexcept { hash_t hash = _hash(key); unsigned bucket = get_bucket(hash); type *elm = *(_map + bucket); while (elm) { if (equal(hash, key, elm)) { break; } elm = get_next(bucket, elm); } return elm; } pointer erase(type *elm) noexcept { hash_t hash = get_entry(elm)._hash; unsigned bucket = get_bucket(hash); return unlink(bucket, _map + bucket, elm); } pointer erase(const key_type &key) noexcept { hash_t hash = _hash(key); unsigned bucket = hash & _capacity; type **head = _map + bucket; type *elm = *head; while (elm) { if (equal(hash, key, elm)) { return unlink(bucket, head, elm); } elm = get_next(bucket, elm); } return nullptr; } pointer replace(const key_type &key, const pointer &new_elm) noexcept { hash_t hash = _hash(key); unsigned bucket = hash & _capacity; type **head = _map + bucket; type *elm = *head; while (elm) { if (equal(hash, key, elm)) { break; } elm = get_next(bucket, elm); } pointer ret(nullptr); if (elm) { ret = unlink(bucket, head, elm); } ++_size; link(head, new_elm); return ret; } protected: list_type _list; hash_type _hash; compare_type _compare; type **_map; size_t _size; size_t _capacity; }; GV_NS_END #define gv_hashmap(_Key, _T, entry,...) GV_NS::hashmap< \ _Key, \ _T, \ typename GV_NS::member_of<decltype(&_T::entry)>::type, \ &_T::entry, ##__VA_ARGS__> #endif
970cb796f9c0c4d4d1a0ab96fac7ce50fd8c6309
c88ee72c6aa257560e6e56992aa54135e50b0537
/Json/Token.cpp
e0f438d4af47e61f87fed6261536bcb206cfe656
[]
no_license
madelmann/libMyJson
b562f5bbe65fb738771cf207b2d6ebb5a69c1a36
211247883968aec3a4a3a71979a14dd07387c961
refs/heads/master
2023-02-03T11:08:18.970129
2020-12-21T19:04:53
2020-12-21T19:04:53
256,962,669
1
0
null
null
null
null
UTF-8
C++
false
false
701
cpp
// Header #include "Token.h" // Library includes // Project includes // Namespace declarations namespace Json { Token::Token(Type::E type) : mType(type) { } Token::Token(Type::E type, const std::string& content) : mContent(content), mType(type) { } Token::Token(Type::E type, const std::string& content, const Position& pos) : mContent(content), mPosition(pos), mType(type) { } const std::string& Token::content() const { return mContent; } const Token::Position& Token::position() const { return mPosition; } void Token::resetTypeTo(Type::E type) { mType = type; } Token::Type::E Token::type() const { return mType; } }
[ "madelmann@a1cf54fd-c598-4065-951b-5e5a467d183e" ]
madelmann@a1cf54fd-c598-4065-951b-5e5a467d183e
2002ebc9be937456bebe9333ac0d5b8e639bb84b
ba5f81f5df6dfe914b5ed31d6afdfb32262dab11
/!Qt_MacVendorLookup/src/main.cpp
34238d01b1e08ef056b7e54bc67ac88541a49990
[]
no_license
korha/ManySmallApps
a720c6915727f5f2354cc5344db846c0d06ca9d2
b9f64f7d7315101ea00a65c4cafec6f56115ec44
refs/heads/master
2021-01-23T18:31:48.979744
2017-09-08T01:11:24
2017-09-08T01:11:24
102,799,599
0
0
null
null
null
null
UTF-8
C++
false
false
157
cpp
#include "macvendorlookup.h" int main(int argc, char *argv[]) { QApplication a(argc, argv); MacVendorLookup w; w.show(); return a.exec(); }
8ecb958da3dd4bad87a94f14e10a9a713479bdef
7ae4ba858dce04bd4c74c755e6624581784912ff
/Mazegame.h
8c5f6fcc5b02d9e8986a7c02dd58f456825dcc8a
[]
no_license
cavinneoh/MazeCPP
e6407b790c41ba45104c907a2d8dbe530528a654
8e312db54e64eb7c502fe504ab3a540b81a4dd53
refs/heads/master
2020-05-10T00:07:05.716463
2019-04-15T16:08:29
2019-04-15T16:08:29
181,521,905
0
0
null
null
null
null
UTF-8
C++
false
false
1,024
h
#ifndef MAZEGAME_H #define MAZEGAME_H #include <string> using namespace std; class Exit { char* exitDirection; char* nextRoom; public: Exit(char dir, char next); char getExitDirection(); char getNextRoom(); void printDirection(); }; class Room { char* roomLabel; int numOfExits = 0; Exit* exits[5]; public: Room(char label); char getRoomLabel(); virtual char renderRoom(); }; class EscapeRoom : public Room { public: EscapeRoom(char label); char renderRoom(); }; class Maze { char* firstRoomLabel; char* escapeRoomLabel; Room* currentRoom; int numOfMoves = 0; public: Maze(char layout); char getEscapeRoomLabel(); char getCurrentRoomLabel(); void leaveCurrentRoom(); void generateRandomRoomFile(char label); }; void printErrorMessage(int errorCode); void printFancyMessage(string message, char symbol); void quitProgram(); char setMazeLayout(); bool isValidTextFileInput(string textLine); string getFileName(char letter); #endif
b09bbdb84ec983c1facde67202cc5d0667f595b0
1ef5e56554e7f25273fd3125e89809e63a121e86
/剑指offer10_链表中倒数第k个结点/test.cpp
bb3fa0e957d5ddb8eacb524c880b22edd74f629f
[]
no_license
LHQQ/jianzhioffer10_reverse_Knode
5127a79979a342862f9543873e783ec065deee7c
0992a6be0f6fbe4bff77c2142a8db855497bbd66
refs/heads/master
2020-05-03T23:12:05.163267
2019-01-16T04:28:21
2019-01-16T04:28:21
null
0
0
null
null
null
null
GB18030
C++
false
false
3,970
cpp
#include<iostream> #include<stack> #include<assert.h> #include<list> using namespace std; struct ListNode { int val; struct ListNode *next; ListNode(int x) : val(x), next(NULL) { } }; typedef int DataType; class Solution { public: Solution() :_phead(nullptr) {} ListNode* BuyNewNode(DataType val){ ListNode * NewNode = (ListNode*)new ListNode(val); return NewNode; } void PushFront(DataType data){ ListNode* NewNode = BuyNewNode(data); if (NewNode == nullptr){ assert(NewNode); return; } NewNode->next = _phead; _phead = NewNode; } ListNode* FindKthToTail(ListNode* pListHead, unsigned int k) { ListNode* cur = pListHead; ListNode* pre = pListHead; int count = 0; while (cur != nullptr&&count < k){ cur = cur->next; ++count; } if (count < k&&cur == nullptr){ return nullptr; } while (cur != nullptr){ cur = cur->next; pre = pre->next; } return pre; } ListNode* ReverseList1(ListNode* pHead){ //定义三个指针 ListNode* pre = pHead; ListNode* cur = pHead; ListNode* nPhead = nullptr; while (nullptr != cur){ pre = cur; cur = cur->next; //头插放入新的链表中 pre->next = nPhead; nPhead = pre; } return nPhead; } ListNode* ReverseList2(ListNode* pHead) { if (pHead == NULL || pHead->next == NULL) return pHead; ListNode* p = pHead; stack<ListNode* > s; while (p->next) { s.push(p); p = p->next; } ListNode* head = p; while (!s.empty()) { p->next = s.top(); p = p->next; s.pop(); } p->next = NULL; return head; } //第三种方法:只使用两个指针 ListNode* ReverseList3(ListNode* pHead){ if (nullptr == pHead || nullptr == pHead->next){ return pHead; //没有节点或者只有一个节点的情况 } ListNode* p = pHead->next; ListNode* q = nullptr; while (p->next){ q = p->next; p->next = q->next; q->next = pHead->next; pHead->next = q; } //出了循环之后p指向链表的最后一个节点,此时链表顺序为51234 //所以要将phead的结点接到p之后 ListNode* cur = pHead; pHead = cur->next; cur->next = nullptr; p->next = cur; return pHead; } ~Solution(){ ListNode* cur = _phead; while (cur){ cur = cur->next; delete _phead; _phead = cur; } } public: ListNode* _phead; }; void TestFunc3(){ Solution s3; //先创建链表 s3.PushFront(1); s3.PushFront(2); s3.PushFront(3); s3.PushFront(4); s3.PushFront(5); ListNode* cur = nullptr; cout << "逆转前的单链表为:"; cur = s3._phead; while (cur){ cout << cur->val << "-->"; cur = cur->next; } cout << endl; cur = s3.ReverseList3(s3._phead); cout << "逆转后的单链表为:"; while (cur){ cout << cur->val << "-->"; cur = cur->next; } cout << endl; } void TestFunc(){ Solution s1; //先创建链表 s1.PushFront(1); s1.PushFront(2); s1.PushFront(3); s1.PushFront(4); s1.PushFront(5); //找倒数第k个结点 ListNode* cur = s1.FindKthToTail(s1._phead, 3); //找倒数第三个,应该是3; cout << "倒数第k个结点为:"; cout << cur->val << " " << endl; } void TestFunc2(){ Solution s1; ListNode* cur = nullptr; //先创建链表 s1.PushFront(1); s1.PushFront(2); s1.PushFront(3); s1.PushFront(4); s1.PushFront(5); cur = s1._phead; cout << "逆转前的链表为:" << endl; while (cur){ cout << cur->val << "-->"; cur = cur->next; } cout << endl; cout <<"逆转后的链表为:"<< endl; cur = s1.ReverseList2(s1._phead); while (cur){ cout << cur->val << "-->"; cur = cur->next; } } int main(){ TestFunc3(); //Solution s1; ////先创建链表 //s1.PushFront(1); //s1.PushFront(2); //s1.PushFront(3); //s1.PushFront(4); //s1.PushFront(5); ////找倒数第k个结点 //ListNode* cur = s1.FindKthToTail(s1._phead, 3); ////找倒数第三个,应该是3; //cout << "倒数第k个结点为:"; //cout << cur->val << " " << endl; system("pause"); return 0; }
fcb7d21b64dc99e1077127e9da9532f7eec5277a
a30f23cf1de0c912ba53ece0bedc3ce8fd2fc822
/src/UpdateInst.cpp
31615b58dea81c3009309bf60173ddbc018b63da
[]
no_license
zhengkw18/Simulated-MySQL
a868cc64ac4bfa647f7e87e72db34ae9ff0e3320
5bcd5cc28c8061662e4c04fa03beff465b25b291
refs/heads/master
2022-12-14T02:33:42.718170
2020-09-16T03:39:03
2020-09-16T03:39:03
192,161,957
2
0
null
null
null
null
UTF-8
C++
false
false
712
cpp
#include "Instruction.h" using namespace std; Parser UpdateInst::ps; UpdateInst::UpdateInst(string s){ ps.reset(s); ps.match_token("update"); tablename = ps.get_str(); ps.match_token("set"); attrname = ps.get_str(); ps.match_token("="); attrexp = ps.get_str(); if(ps.lookahead("where")) { ps.skip(); whereclauses_str = ps.get_str(); while(!ps.ended() && !ps.lookahead(";")) whereclauses_str = whereclauses_str + " " + ps.get_str(); } } void UpdateInst::exec(SQL &sql){ shared_ptr<Table> table = sql.get_current_database()->get_table(tablename); table->update(attrname, attrexp, WhereClauses(whereclauses_str, table->export_name2id())); }
b1a59fa3439a5305af211a9324bb196a75a5dacb
a066ceeb74a7f6fc2b4183e94b9d22ffa637ca2c
/linux_Programming/modern_cpp_concurrency/ch02.05_atomic_types_lockfree.cpp
1dd0886a1a6e74608c3fc957b4076458156a83dc
[]
no_license
phenixwutao/DemoProjects
d3b99b573d0c44b5dfa1d7aa2ce3841a47fe209c
2b283b60e5eb6ac6d0bfa5cad0cafc3b33700f8c
refs/heads/master
2023-03-15T23:50:21.098595
2023-03-15T20:26:41
2023-03-15T20:26:41
97,414,242
0
0
null
null
null
null
UTF-8
C++
false
false
1,262
cpp
#include <iostream> #include <iomanip> #include <vector> #include <thread> #include <utility> #include <atomic> #include <condition_variable> using namespace std; std::vector<int> mySharedWork; std::mutex mutex_; std::condition_variable condVar; bool dataReady {false}; void waitingForWork() { std::cout << "waitingForWork Waiting ...\n"; std::unique_lock<std::mutex> lck(mutex_); condVar.wait(lck, [](){ return dataReady; }); mySharedWork[2] = 2; std::cout << "waitingForWork Work done\n"; } void setDataReady() { mySharedWork = {1,0,3}; { std::unique_lock<std::mutex> lck(mutex_); dataReady = true; } std::cout << "setDataReady Data is prepared\n"; condVar.notify_one(); } int main(int argc, char *argv[]) { { std::cout << std::boolalpha; std::atomic<bool> flag1; cout <<flag1.is_lock_free() << '\n'; // template function bool flag2 = false; std::atomic_ref<bool> flag2_ref(flag2); cout << flag2_ref.is_always_lock_free << '\n'; // const expression } { std::thread t1(waitingForWork); std::thread t2(setDataReady); t1.join(); t2.join(); for(auto i : mySharedWork) cout << i << ' '; cout << '\n'; } return 0; }
cea1657abce0b97ddc97728377e47d8b2f17b394
3cf9e141cc8fee9d490224741297d3eca3f5feff
/C++ Benchmark Programs/Benchmark Files 1/classtester/autogen-sources/source-18951.cpp
6b5c3a67fec7323ed5f9cb80b05ced50af56bc61
[]
no_license
TeamVault/tauCFI
e0ac60b8106fc1bb9874adc515fc01672b775123
e677d8cc7acd0b1dd0ac0212ff8362fcd4178c10
refs/heads/master
2023-05-30T20:57:13.450360
2021-06-14T09:10:24
2021-06-14T09:10:24
154,563,655
0
1
null
null
null
null
UTF-8
C++
false
false
3,533
cpp
struct c0; void __attribute__ ((noinline)) tester0(c0* p); struct c0 { bool active0; c0() : active0(true) {} virtual ~c0() { tester0(this); active0 = false; } virtual void f0(){} }; void __attribute__ ((noinline)) tester0(c0* p) { p->f0(); } struct c1; void __attribute__ ((noinline)) tester1(c1* p); struct c1 : virtual c0 { bool active1; c1() : active1(true) {} virtual ~c1() { tester1(this); c0 *p0_0 = (c0*)(c1*)(this); tester0(p0_0); active1 = false; } virtual void f1(){} }; void __attribute__ ((noinline)) tester1(c1* p) { p->f1(); if (p->active0) p->f0(); } struct c2; void __attribute__ ((noinline)) tester2(c2* p); struct c2 : virtual c1 { bool active2; c2() : active2(true) {} virtual ~c2() { tester2(this); c0 *p0_0 = (c0*)(c1*)(c2*)(this); tester0(p0_0); c1 *p1_0 = (c1*)(c2*)(this); tester1(p1_0); active2 = false; } virtual void f2(){} }; void __attribute__ ((noinline)) tester2(c2* p) { p->f2(); if (p->active0) p->f0(); if (p->active1) p->f1(); } struct c3; void __attribute__ ((noinline)) tester3(c3* p); struct c3 : virtual c1, c2 { bool active3; c3() : active3(true) {} virtual ~c3() { tester3(this); c0 *p0_0 = (c0*)(c1*)(c3*)(this); tester0(p0_0); c0 *p0_1 = (c0*)(c1*)(c2*)(c3*)(this); tester0(p0_1); c1 *p1_0 = (c1*)(c3*)(this); tester1(p1_0); c1 *p1_1 = (c1*)(c2*)(c3*)(this); tester1(p1_1); c2 *p2_0 = (c2*)(c3*)(this); tester2(p2_0); active3 = false; } virtual void f3(){} }; void __attribute__ ((noinline)) tester3(c3* p) { p->f3(); if (p->active2) p->f2(); if (p->active0) p->f0(); if (p->active1) p->f1(); } struct c4; void __attribute__ ((noinline)) tester4(c4* p); struct c4 : virtual c1, c3 { bool active4; c4() : active4(true) {} virtual ~c4() { tester4(this); c0 *p0_0 = (c0*)(c1*)(c4*)(this); tester0(p0_0); c0 *p0_1 = (c0*)(c1*)(c3*)(c4*)(this); tester0(p0_1); c0 *p0_2 = (c0*)(c1*)(c2*)(c3*)(c4*)(this); tester0(p0_2); c1 *p1_0 = (c1*)(c4*)(this); tester1(p1_0); c1 *p1_1 = (c1*)(c3*)(c4*)(this); tester1(p1_1); c1 *p1_2 = (c1*)(c2*)(c3*)(c4*)(this); tester1(p1_2); c2 *p2_0 = (c2*)(c3*)(c4*)(this); tester2(p2_0); c3 *p3_0 = (c3*)(c4*)(this); tester3(p3_0); active4 = false; } virtual void f4(){} }; void __attribute__ ((noinline)) tester4(c4* p) { p->f4(); if (p->active2) p->f2(); if (p->active3) p->f3(); if (p->active0) p->f0(); if (p->active1) p->f1(); } int __attribute__ ((noinline)) inc(int v) {return ++v;} int main() { c0* ptrs0[25]; ptrs0[0] = (c0*)(new c0()); ptrs0[1] = (c0*)(c1*)(new c1()); ptrs0[2] = (c0*)(c1*)(c2*)(new c2()); ptrs0[3] = (c0*)(c1*)(c3*)(new c3()); ptrs0[4] = (c0*)(c1*)(c2*)(c3*)(new c3()); ptrs0[5] = (c0*)(c1*)(c4*)(new c4()); ptrs0[6] = (c0*)(c1*)(c3*)(c4*)(new c4()); ptrs0[7] = (c0*)(c1*)(c2*)(c3*)(c4*)(new c4()); for (int i=0;i<8;i=inc(i)) { tester0(ptrs0[i]); delete ptrs0[i]; } c1* ptrs1[25]; ptrs1[0] = (c1*)(new c1()); ptrs1[1] = (c1*)(c2*)(new c2()); ptrs1[2] = (c1*)(c3*)(new c3()); ptrs1[3] = (c1*)(c2*)(c3*)(new c3()); ptrs1[4] = (c1*)(c4*)(new c4()); ptrs1[5] = (c1*)(c3*)(c4*)(new c4()); ptrs1[6] = (c1*)(c2*)(c3*)(c4*)(new c4()); for (int i=0;i<7;i=inc(i)) { tester1(ptrs1[i]); delete ptrs1[i]; } c2* ptrs2[25]; ptrs2[0] = (c2*)(new c2()); ptrs2[1] = (c2*)(c3*)(new c3()); ptrs2[2] = (c2*)(c3*)(c4*)(new c4()); for (int i=0;i<3;i=inc(i)) { tester2(ptrs2[i]); delete ptrs2[i]; } c3* ptrs3[25]; ptrs3[0] = (c3*)(new c3()); ptrs3[1] = (c3*)(c4*)(new c4()); for (int i=0;i<2;i=inc(i)) { tester3(ptrs3[i]); delete ptrs3[i]; } c4* ptrs4[25]; ptrs4[0] = (c4*)(new c4()); for (int i=0;i<1;i=inc(i)) { tester4(ptrs4[i]); delete ptrs4[i]; } return 0; }
784538a65ee61944d513c6e94eeb7ce43534315a
8172a9600f2f078c6dd32f3ae7215aec05ba072e
/bytd/src/OwThermNet.h
f3b8bee941a616f41e7680e48b3c4e80734a2de3
[]
no_license
jp99567/byt
379df194675fadf3934d2e08cb623eb9a94c6d22
565822791e485e59af8dc7edef5e15da41439f23
refs/heads/master
2023-08-18T12:17:28.579842
2023-08-11T11:23:51
2023-08-11T11:23:51
30,658,500
0
0
null
null
null
null
UTF-8
C++
false
false
1,408
h
#pragma once #include<memory> #include "Pru.h" #include "data.h" namespace ow { struct ThermScratchpad { int16_t temperature; int8_t alarmH; int8_t alarmL; uint8_t conf; char reserved[3]; uint8_t crc; }__attribute__ ((__packed__)); class OwThermNet { enum class Cmd : uint8_t { READ_ROM = 0x33, CONVERT = 0x44, MATCH_ROM = 0x55, READ_SCRATCHPAD = 0xBE, SKIP_ROM = 0xCC, SEARCH = 0xF0, }; public: explicit OwThermNet(std::shared_ptr<Pru> pru); ~OwThermNet(); std::vector<RomCode> search(); bool convert(); float measure(const RomCode &rc); bool read_rom(RomCode& rc); bool read_scratchpad(const RomCode& rc, ThermScratchpad& v); private: bool presence(); void write_bits(const void* data, std::size_t bitlen, bool strong_pwr=false); bool read_bits(std::size_t bitlen); void write_simple_cmd(Cmd cmd, bool strongpower=false); int search_triplet(bool branch_direction); std::shared_ptr<Pru> pru; std::shared_ptr<PruRxMsg> rxMsg; struct PruWriteMsg { struct { uint32_t code; uint32_t bitlen; } h; uint8_t data[24]; }; struct PruReadMsg { struct { uint32_t code; } h; uint8_t data[28]; }; union { PruWriteMsg wr; PruReadMsg rd; } msg; }; }
d2260eb2ca997e4f027984db04503197e9b74281
e96cfbf2c4ce40c7a694d297eac733a739487886
/5674-782/170.cpp
3841914d939e370fe078daae7e1e91b816cf78d2
[]
no_license
KimDoKy/Cpp-ex-200
9cbfd6cad74a77783d2318ccb069c7693adf829a
3f07d8cd9677b804cdf7e0ae55188845933df9e5
refs/heads/master
2022-12-31T09:29:27.991438
2020-10-19T10:21:35
2020-10-19T10:21:35
293,564,880
0
0
null
null
null
null
UHC
C++
false
false
829
cpp
#include "stdafx.h" #include <iostream> #include <algorithm> #include <vector> #include <string> using namespace std; int main() { vector<int> data1 = { 1, 3, 5, 7 }; vector<string> data2 = { "ab", "cd", "ef" }; if (all_of(data1.begin(), data1.end(), [](int i) { return i % 2; })) cout << "data1 : 모두 홀수입니다." << endl; if (all_of(data1.begin(), data1.end(), [](int i) { return i < 10; })) cout << "data1 : 모두 10보다 작습니다." << endl; if (all_of(data2.begin(), data2.end(), [](string i) { return i.length() < 4 ? true : false; })) cout << "data2 : 모두 길이가 4 이하입니다." << endl; if (all_of(data2.begin(), data2.end(), [](string i) { return i.find('A'); })) cout << "data2 : 모두 문자 A를 포함하지 않습니다." << endl; return 0; }
c211b320c48a11708c465e9dc9627aec9fe85570
5c151fba3601ef01dfc3459fe4289b2033bc3386
/lock_smain.cc
8234e3eae571908895660b673b53dd2adbf63af7
[]
no_license
actzendaria/CSP-2013
532d20841a190da989da5402e638bf9a461b6c85
51ee9f484307c6c8b6583df0482303b6a45fe2a6
refs/heads/master
2020-04-30T08:14:22.746129
2014-01-04T14:44:04
2014-01-04T14:45:14
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,119
cc
#include "rpc.h" #include <arpa/inet.h> #include <stdlib.h> #include <stdio.h> //#include "lock_server.h" #include "lock_server_cache.h" #include "jsl_log.h" // Main loop of lock_server int main(int argc, char *argv[]) { int count = 0; setvbuf(stdout, NULL, _IONBF, 0); setvbuf(stderr, NULL, _IONBF, 0); srandom(getpid()); if(argc != 2){ fprintf(stderr, "Usage: %s port\n", argv[0]); exit(1); } char *count_env = getenv("RPC_COUNT"); if(count_env != NULL){ count = atoi(count_env); } //jsl_set_debug(2); #ifndef RSM /*lock_server ls; rpcs server(atoi(argv[1]), count); server.reg(lock_protocol::stat, &ls, &lock_server::stat); server.reg(lock_protocol::acquire, &ls, &lock_server::acquire); server.reg(lock_protocol::release, &ls, &lock_server::release);*/ lock_server_cache ls; rpcs server(atoi(argv[1]), count); server.reg(lock_protocol::stat, &ls, &lock_server_cache::stat); server.reg(lock_protocol::release, &ls, &lock_server_cache::release); server.reg(lock_protocol::acquire, &ls, &lock_server_cache::acquire); #endif while(1) sleep(1000); }
aadda1aeafe51f5602ee7bf6305b29095cdb40c5
9c16d6b984c9a22c219bd2a20a02db21a51ba8d7
/chrome/browser/ui/app_list/speech_recognizer.cc
9cd17414c6421ec8b3fccfb0197ce1d420f6467f
[ "BSD-3-Clause" ]
permissive
nv-chromium/chromium-crosswalk
fc6cc201cb1d6a23d5f52ffd3a553c39acd59fa7
b21ec2ffe3a13b6a8283a002079ee63b60e1dbc5
refs/heads/nv-crosswalk-17
2022-08-25T01:23:53.343546
2019-01-16T21:35:23
2019-01-16T21:35:23
63,197,891
0
0
NOASSERTION
2019-01-16T21:38:06
2016-07-12T22:58:43
null
UTF-8
C++
false
false
11,538
cc
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/ui/app_list/speech_recognizer.h" #include <algorithm> #include "base/bind.h" #include "base/strings/string16.h" #include "base/timer/timer.h" #include "chrome/browser/ui/app_list/speech_recognizer_delegate.h" #include "content/public/browser/browser_thread.h" #include "content/public/browser/render_process_host.h" #include "content/public/browser/speech_recognition_event_listener.h" #include "content/public/browser/speech_recognition_manager.h" #include "content/public/browser/speech_recognition_session_config.h" #include "content/public/browser/speech_recognition_session_preamble.h" #include "content/public/common/child_process_host.h" #include "content/public/common/speech_recognition_error.h" #include "net/url_request/url_request_context_getter.h" #include "ui/app_list/speech_ui_model_observer.h" namespace app_list { // Length of timeout to cancel recognition if there's no speech heard. static const int kNoSpeechTimeoutInSeconds = 5; // Length of timeout to cancel recognition if no different results are received. static const int kNoNewSpeechTimeoutInSeconds = 2; // Invalid speech session. static const int kInvalidSessionId = -1; // Speech recognizer listener. This is separate from SpeechRecognizer because // the speech recognition engine must function from the IO thread. Because of // this, the lifecycle of this class must be decoupled from the lifecycle of // SpeechRecognizer. To avoid circular references, this class has no reference // to SpeechRecognizer. Instead, it has a reference to the // SpeechRecognizerDelegate via a weak pointer that is only ever referenced from // the UI thread. class SpeechRecognizer::EventListener : public base::RefCountedThreadSafe<SpeechRecognizer::EventListener>, public content::SpeechRecognitionEventListener { public: EventListener(const base::WeakPtr<SpeechRecognizerDelegate>& delegate, net::URLRequestContextGetter* url_request_context_getter, const std::string& locale); void StartOnIOThread( const std::string& auth_scope, const std::string& auth_token, const scoped_refptr<content::SpeechRecognitionSessionPreamble>& preamble); void StopOnIOThread(); private: friend class base::RefCountedThreadSafe<SpeechRecognizer::EventListener>; ~EventListener() override; void NotifyRecognitionStateChanged(SpeechRecognitionState new_state); // Starts a timer for |timeout_seconds|. When the timer expires, will stop // capturing audio and get a final utterance from the recognition manager. void StartSpeechTimeout(int timeout_seconds); void StopSpeechTimeout(); void SpeechTimeout(); // Overidden from content::SpeechRecognitionEventListener: // These are always called on the IO thread. void OnRecognitionStart(int session_id) override; void OnRecognitionEnd(int session_id) override; void OnRecognitionResults( int session_id, const content::SpeechRecognitionResults& results) override; void OnRecognitionError( int session_id, const content::SpeechRecognitionError& error) override; void OnSoundStart(int session_id) override; void OnSoundEnd(int session_id) override; void OnAudioLevelsChange( int session_id, float volume, float noise_volume) override; void OnEnvironmentEstimationComplete(int session_id) override; void OnAudioStart(int session_id) override; void OnAudioEnd(int session_id) override; // Only dereferenced from the UI thread, but copied on IO thread. base::WeakPtr<SpeechRecognizerDelegate> delegate_; // All remaining members only accessed from the IO thread. scoped_refptr<net::URLRequestContextGetter> url_request_context_getter_; std::string locale_; base::Timer speech_timeout_; int session_; base::string16 last_result_str_; base::WeakPtrFactory<EventListener> weak_factory_; DISALLOW_COPY_AND_ASSIGN(EventListener); }; SpeechRecognizer::EventListener::EventListener( const base::WeakPtr<SpeechRecognizerDelegate>& delegate, net::URLRequestContextGetter* url_request_context_getter, const std::string& locale) : delegate_(delegate), url_request_context_getter_(url_request_context_getter), locale_(locale), speech_timeout_(false, false), session_(kInvalidSessionId), weak_factory_(this) { DCHECK_CURRENTLY_ON(content::BrowserThread::UI); } SpeechRecognizer::EventListener::~EventListener() { DCHECK(!speech_timeout_.IsRunning()); } void SpeechRecognizer::EventListener::StartOnIOThread( const std::string& auth_scope, const std::string& auth_token, const scoped_refptr<content::SpeechRecognitionSessionPreamble>& preamble) { DCHECK_CURRENTLY_ON(content::BrowserThread::IO); if (session_ != kInvalidSessionId) StopOnIOThread(); content::SpeechRecognitionSessionConfig config; config.language = locale_; config.is_legacy_api = false; config.continuous = true; config.interim_results = true; config.max_hypotheses = 1; config.filter_profanities = true; config.url_request_context_getter = url_request_context_getter_; config.event_listener = weak_factory_.GetWeakPtr(); // kInvalidUniqueID is not a valid render process, so the speech permission // check allows the request through. config.initial_context.render_process_id = content::ChildProcessHost::kInvalidUniqueID; config.auth_scope = auth_scope; config.auth_token = auth_token; config.preamble = preamble; auto speech_instance = content::SpeechRecognitionManager::GetInstance(); session_ = speech_instance->CreateSession(config); speech_instance->StartSession(session_); } void SpeechRecognizer::EventListener::StopOnIOThread() { DCHECK_CURRENTLY_ON(content::BrowserThread::IO); if (session_ == kInvalidSessionId) return; // Prevent recursion. int session = session_; session_ = kInvalidSessionId; StopSpeechTimeout(); content::SpeechRecognitionManager::GetInstance()->StopAudioCaptureForSession( session); } void SpeechRecognizer::EventListener::NotifyRecognitionStateChanged( SpeechRecognitionState new_state) { content::BrowserThread::PostTask( content::BrowserThread::UI, FROM_HERE, base::Bind(&SpeechRecognizerDelegate::OnSpeechRecognitionStateChanged, delegate_, new_state)); } void SpeechRecognizer::EventListener::StartSpeechTimeout(int timeout_seconds) { DCHECK_CURRENTLY_ON(content::BrowserThread::IO); speech_timeout_.Start( FROM_HERE, base::TimeDelta::FromSeconds(timeout_seconds), base::Bind(&SpeechRecognizer::EventListener::SpeechTimeout, this)); } void SpeechRecognizer::EventListener::StopSpeechTimeout() { DCHECK_CURRENTLY_ON(content::BrowserThread::IO); speech_timeout_.Stop(); } void SpeechRecognizer::EventListener::SpeechTimeout() { DCHECK_CURRENTLY_ON(content::BrowserThread::IO); StopOnIOThread(); } void SpeechRecognizer::EventListener::OnRecognitionStart(int session_id) { NotifyRecognitionStateChanged(SPEECH_RECOGNITION_RECOGNIZING); } void SpeechRecognizer::EventListener::OnRecognitionEnd(int session_id) { StopOnIOThread(); NotifyRecognitionStateChanged(SPEECH_RECOGNITION_READY); } void SpeechRecognizer::EventListener::OnRecognitionResults( int session_id, const content::SpeechRecognitionResults& results) { base::string16 result_str; size_t final_count = 0; // The number of results with |is_provisional| false. If |final_count| == // results.size(), then all results are non-provisional and the recognition is // complete. for (const auto& result : results) { if (!result.is_provisional) final_count++; result_str += result.hypotheses[0].utterance; } content::BrowserThread::PostTask( content::BrowserThread::UI, FROM_HERE, base::Bind(&SpeechRecognizerDelegate::OnSpeechResult, delegate_, result_str, final_count == results.size())); // Stop the moment we have a final result. If we receive any new or changed // text, restart the timer to give the user more time to speak. (The timer is // recording the amount of time since the most recent utterance.) if (final_count == results.size()) StopOnIOThread(); else if (result_str != last_result_str_) StartSpeechTimeout(kNoNewSpeechTimeoutInSeconds); last_result_str_ = result_str; } void SpeechRecognizer::EventListener::OnRecognitionError( int session_id, const content::SpeechRecognitionError& error) { StopOnIOThread(); if (error.code == content::SPEECH_RECOGNITION_ERROR_NETWORK) { NotifyRecognitionStateChanged(SPEECH_RECOGNITION_NETWORK_ERROR); } NotifyRecognitionStateChanged(SPEECH_RECOGNITION_READY); } void SpeechRecognizer::EventListener::OnSoundStart(int session_id) { StartSpeechTimeout(kNoSpeechTimeoutInSeconds); NotifyRecognitionStateChanged(SPEECH_RECOGNITION_IN_SPEECH); } void SpeechRecognizer::EventListener::OnSoundEnd(int session_id) { StopOnIOThread(); NotifyRecognitionStateChanged(SPEECH_RECOGNITION_RECOGNIZING); } void SpeechRecognizer::EventListener::OnAudioLevelsChange( int session_id, float volume, float noise_volume) { DCHECK_LE(0.0, volume); DCHECK_GE(1.0, volume); DCHECK_LE(0.0, noise_volume); DCHECK_GE(1.0, noise_volume); volume = std::max(0.0f, volume - noise_volume); // Both |volume| and |noise_volume| are defined to be in the range [0.0, 1.0]. // See: content/public/browser/speech_recognition_event_listener.h int16_t sound_level = static_cast<int16_t>(INT16_MAX * volume); content::BrowserThread::PostTask( content::BrowserThread::UI, FROM_HERE, base::Bind(&SpeechRecognizerDelegate::OnSpeechSoundLevelChanged, delegate_, sound_level)); } void SpeechRecognizer::EventListener::OnEnvironmentEstimationComplete( int session_id) { } void SpeechRecognizer::EventListener::OnAudioStart(int session_id) { } void SpeechRecognizer::EventListener::OnAudioEnd(int session_id) { } SpeechRecognizer::SpeechRecognizer( const base::WeakPtr<SpeechRecognizerDelegate>& delegate, net::URLRequestContextGetter* url_request_context_getter, const std::string& locale) : delegate_(delegate), speech_event_listener_(new EventListener( delegate, url_request_context_getter, locale)) { DCHECK_CURRENTLY_ON(content::BrowserThread::UI); } SpeechRecognizer::~SpeechRecognizer() { DCHECK_CURRENTLY_ON(content::BrowserThread::UI); Stop(); } void SpeechRecognizer::Start( const scoped_refptr<content::SpeechRecognitionSessionPreamble>& preamble) { DCHECK_CURRENTLY_ON(content::BrowserThread::UI); std::string auth_scope; std::string auth_token; delegate_->GetSpeechAuthParameters(&auth_scope, &auth_token); content::BrowserThread::PostTask( content::BrowserThread::IO, FROM_HERE, base::Bind(&SpeechRecognizer::EventListener::StartOnIOThread, speech_event_listener_, auth_scope, auth_token, preamble)); } void SpeechRecognizer::Stop() { DCHECK_CURRENTLY_ON(content::BrowserThread::UI); content::BrowserThread::PostTask( content::BrowserThread::IO, FROM_HERE, base::Bind(&SpeechRecognizer::EventListener::StopOnIOThread, speech_event_listener_)); } } // namespace app_list
544b235f9057eb899d70f5ea6be422a84295f703
37cca16f12e7b1d4d01d6f234da6d568c318abee
/src/rice/selector/ProfileSelector_printStats_2.cpp
85f4f61e43c4f5b27262f2668e85a57337abbcc9
[]
no_license
subhash1-0/thirstyCrow
e48155ce68fc886f2ee8e7802567c1149bc54206
78b7e4e3d2b9a9530ad7d66b44eacfe73ceea582
refs/heads/master
2016-09-06T21:25:54.075724
2015-09-21T17:21:15
2015-09-21T17:21:15
42,881,521
0
0
null
null
null
null
UTF-8
C++
false
false
1,868
cpp
// Generated from /pastry-2.1/src/rice/selector/ProfileSelector.java #include <rice/selector/ProfileSelector_printStats_2.hpp> #include <java/lang/ClassCastException.hpp> #include <java/lang/NullPointerException.hpp> #include <rice/selector/ProfileSelector_Stat.hpp> #include <rice/selector/ProfileSelector.hpp> template<typename T, typename U> static T java_cast(U* u) { if(!u) return static_cast<T>(nullptr); auto t = dynamic_cast<T>(u); if(!t) throw new ::java::lang::ClassCastException(); return t; } template<typename T> static T* npc(T* t) { if(!t) throw new ::java::lang::NullPointerException(); return t; } rice::selector::ProfileSelector_printStats_2::ProfileSelector_printStats_2(ProfileSelector *ProfileSelector_this) : super(*static_cast< ::default_init_tag* >(0)) , ProfileSelector_this(ProfileSelector_this) { clinit(); ctor(); } bool rice::selector::ProfileSelector_printStats_2::equals(::java::lang::Object* arg0) { return false; } int32_t rice::selector::ProfileSelector_printStats_2::compare(ProfileSelector_Stat* arg0, ProfileSelector_Stat* arg1) { auto stat1 = java_cast< ProfileSelector_Stat* >(arg0); auto stat2 = java_cast< ProfileSelector_Stat* >(arg1); return static_cast< int32_t >((npc(stat2)->totalTime - npc(stat1)->totalTime)); } int32_t rice::selector::ProfileSelector_printStats_2::compare(::java::lang::Object* arg0, ::java::lang::Object* arg1) { return compare(dynamic_cast< ProfileSelector_Stat* >(arg0), dynamic_cast< ProfileSelector_Stat* >(arg1)); } extern java::lang::Class *class_(const char16_t *c, int n); java::lang::Class* rice::selector::ProfileSelector_printStats_2::class_() { static ::java::lang::Class* c = ::class_(u"", 0); return c; } java::lang::Class* rice::selector::ProfileSelector_printStats_2::getClass0() { return class_(); }
d90cb8d28da29e1de801e73f05396d0baf0f2d6b
777a75e6ed0934c193aece9de4421f8d8db01aac
/src/Providers/UNIXProviders/DeviceServicesLocation/UNIX_DeviceServicesLocation_TRU64.hxx
f30e37335c9c26bb5beccde8d2376f09b8e02de5
[ "MIT" ]
permissive
brunolauze/openpegasus-providers-old
20fc13958016e35dc4d87f93d1999db0eae9010a
b00f1aad575bae144b8538bf57ba5fd5582a4ec7
refs/heads/master
2021-01-01T20:05:44.559362
2014-04-30T17:50:06
2014-04-30T17:50:06
19,132,738
1
0
null
null
null
null
UTF-8
C++
false
false
140
hxx
#ifdef PEGASUS_OS_TRU64 #ifndef __UNIX_DEVICESERVICESLOCATION_PRIVATE_H #define __UNIX_DEVICESERVICESLOCATION_PRIVATE_H #endif #endif
d2ee9a21866d7e403c8df73e2c055cb3b0f3a6d9
98326f3e4daaaf7cbe7f6f8c0733a7be42f6e09c
/src/librenderer/SamplesPipe.cpp
144e01acf0b4894d37eb8dd6028d060045b91fcb
[ "MIT" ]
permissive
fbksd/fbksd
f072afb1fc2fbc8e824f1740234974216eb2f741
ded762b571b8effd4cc30180a1bc11ba71547532
refs/heads/master
2020-03-09T03:53:02.344536
2019-06-28T02:08:27
2019-06-28T05:42:19
128,574,955
10
2
null
null
null
null
UTF-8
C++
false
false
4,644
cpp
/* * Copyright (c) 2019 Jonas Deyson * * This software is released under the MIT License. * * You should have received a copy of the MIT License * along with this program. If not, see <https://opensource.org/licenses/MIT> */ #include "fbksd/renderer/SamplesPipe.h" #include "TilePool.h" using namespace fbksd; #include <cassert> // ====================================================== // SampleBuffer // ====================================================== // Static initialization std::array<bool, NUM_RANDOM_PARAMETERS> SampleBuffer::m_ioMask; SampleBuffer::SampleBuffer() { m_paramentersBuffer.fill(0.f); m_featuresBuffer.fill(0.f); } float SampleBuffer::set(RandomParameter i, float v) { if(m_ioMask[i] == SampleLayout::INPUT) return m_paramentersBuffer[i]; else return m_paramentersBuffer[i] = v; } float SampleBuffer::get(RandomParameter i) { return m_paramentersBuffer[i]; } float SampleBuffer::set(Feature f, float v) { return m_featuresBuffer[f] = v; } float SampleBuffer::set(Feature f, int number, float v) { if(number > 1) number = 1; return m_featuresBuffer[toNumbered(f, number)] = v; } float SampleBuffer::get(Feature f) { return m_featuresBuffer[f]; } void SampleBuffer::setLayout(const SampleLayout& layout) { m_ioMask.fill(false); RandomParameter p; for(const auto& par: layout.parameters) { if(stringToRandomParameter(par.name, &p)) m_ioMask[p] = par.io; } } // ====================================================== // SamplesPipe // ====================================================== // Static initialization int64_t SamplesPipe::sm_sampleSize = 0; int64_t SamplesPipe::sm_numSamples = 0; std::vector<std::pair<int, int>> SamplesPipe::sm_inputParameterIndices; std::vector<std::pair<int, int>> SamplesPipe::sm_outputParameterIndices; std::vector<std::pair<int, int>> SamplesPipe::sm_outputFeatureIndices; SamplesPipe::SamplesPipe(const Point2l &begin, const Point2l &end, int64_t numSamples): m_begin(begin), m_end(end), m_width(end.x - begin.x), m_informedNumSamples(numSamples) { m_samples = m_currentSamplePtr = TilePool::getFreeTile(begin, end, numSamples); } SamplesPipe::SamplesPipe(SamplesPipe &&pipe) { m_samples = pipe.m_samples; m_currentSamplePtr = pipe.m_currentSamplePtr; m_begin = pipe.m_begin; m_end = pipe.m_end; m_width = pipe.m_width; pipe.m_samples = pipe.m_currentSamplePtr = nullptr; } SamplesPipe::~SamplesPipe() { TilePool::releaseWorkedTile(*this); } void SamplesPipe::seek(int x, int y) { assert(m_begin.x <= x); assert(x < m_end.x); assert(m_begin.y <= y); assert(y < m_end.y); auto index = int64_t(x - m_begin.x) * sm_sampleSize * sm_numSamples + int64_t(y - m_begin.y) * sm_sampleSize * sm_numSamples * m_width; m_currentSamplePtr = &m_samples[index]; } size_t SamplesPipe::getPosition() const { return m_currentSamplePtr - m_samples; } size_t SamplesPipe::getNumSamples() const { return m_numSamples; } SampleBuffer SamplesPipe::getBuffer() { SampleBuffer buffer; for(const auto& pair: sm_inputParameterIndices) buffer.m_paramentersBuffer[pair.first] = m_currentSamplePtr[pair.second]; return buffer; } SamplesPipe& SamplesPipe::operator<<(const SampleBuffer& buffer) { for(const auto& pair: sm_outputParameterIndices) m_currentSamplePtr[pair.second] = buffer.m_paramentersBuffer[pair.first]; for(const auto& pair: sm_outputFeatureIndices) m_currentSamplePtr[pair.second] = buffer.m_featuresBuffer[pair.first]; m_currentSamplePtr += sm_sampleSize; ++m_numSamples; return *this; } void SamplesPipe::setLayout(const SampleLayout& layout) { SampleBuffer::setLayout(layout); sm_sampleSize = layout.getSampleSize(); sm_inputParameterIndices.clear(); sm_outputParameterIndices.clear(); sm_outputFeatureIndices.clear(); for(size_t i = 0; i < layout.parameters.size(); ++i) { auto &par = layout.parameters[i]; RandomParameter p; if(stringToRandomParameter(par.name, &p)) { if(par.io == SampleLayout::INPUT) sm_inputParameterIndices.emplace_back(p, i); else sm_outputParameterIndices.emplace_back(p, i); } else { Feature f; if(stringToFeature(par.name, &f)) { f = toNumbered(f, par.number); sm_outputFeatureIndices.emplace_back(f, i); } } } }
a1e650fadef1e92779701a91f74bd8553acab555
2d75901ef564df4b1d8bcfa7e1dc3331106ed263
/Arrays/maxNonNegSubarray.cpp
98e532b22e0f0eccf543ac67363c3d60b9be64fe
[]
no_license
sidgupta234/Interview-Questions-Wiki
16f4e5a9e3859776ec389b22a4115464b750ba7f
eff77d8216dfabb779a9a0e40b060b1067415963
refs/heads/master
2021-01-18T18:28:38.297925
2019-08-05T02:28:42
2019-08-05T02:28:42
64,216,402
11
4
null
null
null
null
UTF-8
C++
false
false
971
cpp
// https://www.interviewbit.com/problems/max-non-negative-subarray/ vector<int> Solution::maxset(vector<int> &A) { long long int start=0, end=0, ansStart=0, length=0, ansLength=0, ansEnd=-1, sumTillNow = INT_MIN, maxTillNow=INT_MIN; int i=0; while(i<A.size()){ if(A[i]>=0){ start = i; sumTillNow =0; length =0; while(A[i]>=0 && i<A.size()){ sumTillNow +=A[i]; i++; } end = i-1; if( ( sumTillNow>maxTillNow ) || ( sumTillNow==maxTillNow && end - start +1 < ansLength ) ){ ansStart = start; ansEnd = end; ansLength = start + end -1 ; maxTillNow = sumTillNow; } } i++; } vector <int> ans; for(int i=ansStart; i<=ansEnd;i++){ ans.push_back(A[i]); } return ans; }
4345adefcdd549b6669c938446d5a67c8c97ebc0
148dcb9af8e2424b1cdd321262ecce5a6b7437b5
/lib/Color.h
d8ea18ea779b8066b08bc09465ae718bcc168cf1
[]
no_license
mgalindor/rd-pnd-moko
718d6628d30d2c5698e88156988305ecc3646216
f92d3fe87bf1485aa53238d284c25215b0967c2f
refs/heads/master
2020-08-02T16:22:36.194916
2019-11-25T02:10:49
2019-11-25T02:10:49
211,427,275
0
0
null
null
null
null
UTF-8
C++
false
false
812
h
/* * Color.h * * Basic class definition that represents a RGB channels of a Color, this class can be * used to: * - Save the data of a color (the r,g,b channels ant it's type represented with an int) * - Given a list of know colors, determinate the type of color * * Created on: 7 sep. 2019 * Author: Miguel Galindo */ #ifndef LIB_COLOR_H_ #define LIB_COLOR_H_ class Color { public: Color(int r, int g, int b); Color(int r, int g, int b, int totalColors, Color allColors[]); Color(int r, int g, int b, int colorType); int getR(); int getG(); int getB(); bool isWellKnow(); int getColorType(); double getDistance(Color color); private: int r; int g; int b; bool wellKnown; int colorType; int calculateColorType(int totalColors, Color allColors[]); }; #endif /* LIB_COLOR_H_ */
35efa1525a0d19613f4b92fe8683eeda0002c61f
3364cadd9f6bd437f6b2c3992da5292efd8d1875
/List_public_test.cpp
501dbef1e6b6ec8c7646a8b0ddbed8ddb271a49d
[]
no_license
andrewkwolek/Calculator
025a338acc2df79246010407721ef200a4ef0086
fc277f5cbaa4e5e4a9365e4a9cc1b64815d78126
refs/heads/master
2023-03-13T07:05:39.430256
2021-03-08T22:44:01
2021-03-08T22:44:01
null
0
0
null
null
null
null
UTF-8
C++
false
false
233
cpp
// Project UID c1f28c309e55405daf00c565d57ff9ad #include "List.h" #include "unit_test_framework.h" using namespace std; TEST(test_list_default_ctor) { List<int> empty_list; ASSERT_TRUE(empty_list.empty()); } TEST_MAIN()
98e369d5bf24707361390053137962712fd6ecc4
532125c61259a1629b326356c016678165a79f24
/MOV/ABOUT.cpp
002e2e99182ccc70793be35d48e134f577a6a771
[]
no_license
haotian95119/MFC-Moive-tickets-sale-system
1d7f1460e63ab22b57ac07c4d04d19cc0d0def00
513ebdcbc4621bb471b437aa49dcd3897000e54a
refs/heads/master
2021-05-13T21:10:34.199260
2018-01-06T05:20:30
2018-01-06T05:20:30
null
0
0
null
null
null
null
UTF-8
C++
false
false
960
cpp
// ABOUT.cpp : implementation file // #include "stdafx.h" #include "MOV.h" #include "ABOUT.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // ABOUT dialog ABOUT::ABOUT(CWnd* pParent /*=NULL*/) : CDialog(ABOUT::IDD, pParent) { //{{AFX_DATA_INIT(ABOUT) // NOTE: the ClassWizard will add member initialization here //}}AFX_DATA_INIT } void ABOUT::DoDataExchange(CDataExchange* pDX) { CDialog::DoDataExchange(pDX); //{{AFX_DATA_MAP(ABOUT) // NOTE: the ClassWizard will add DDX and DDV calls here //}}AFX_DATA_MAP } BEGIN_MESSAGE_MAP(ABOUT, CDialog) //{{AFX_MSG_MAP(ABOUT) // NOTE: the ClassWizard will add message map macros here //}}AFX_MSG_MAP END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // ABOUT message handlers
cfd0422f4606272db0432ceb2f229a6c3a5b094e
6a13518e3cfa9d6decc3fa813f9af41de7af3984
/swig/adaptative_filtering_swig.i
d971cfa9d931829c8bdf397d1ca31d9f4a11c4e7
[]
no_license
franalbani/gr-adaptative-filtering
221e8fa720aee5053ff55a9288d3754943b841e8
d5a99d62125db3db6ad21a5d3b9ac77c3d7f3b78
refs/heads/master
2021-01-10T11:45:05.535893
2015-12-02T03:19:28
2015-12-02T03:19:28
47,226,932
1
0
null
null
null
null
UTF-8
C++
false
false
185
i
/* -*- c++ -*- */ #define ADAPTATIVE_FILTERING_API %include "gnuradio.i" // the common stuff //load generated python docstrings %include "adaptative_filtering_swig_doc.i" %{ %}
071f5446097c27a31f6bd4a67a42423cf2fdb464
5d056eba554c9c5d19687af8a95ff0db5b5f457b
/oneflow/user/ops/combined_margin_loss_op.cpp
6724daa38518bc86123fb99426911312aba030ae
[ "Apache-2.0" ]
permissive
wanghongsheng01/framework_cambricon
e96597f9b4ebfb6057bed0e13ce3a20a8baf07e2
187faaa2cb9ba995080ba22499b6219c2d36f0ac
refs/heads/master
2023-07-02T04:03:18.827934
2021-07-26T08:56:01
2021-07-26T08:56:01
null
0
0
null
null
null
null
UTF-8
C++
false
false
5,521
cpp
/* Copyright 2020 The OneFlow Authors. 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 "oneflow/core/framework/framework.h" namespace oneflow { REGISTER_USER_OP("combined_margin_loss") .Input("x") .Input("label") .Output("y") .Output("theta") .Attr<float>("m1") .Attr<float>("m2") .Attr<float>("m3") .Attr<int64_t>("depth") .SetTensorDescInferFn([](user_op::InferContext* ctx) -> Maybe<void> { const user_op::TensorDesc* x = ctx->TensorDesc4ArgNameAndIndex("x", 0); const user_op::TensorDesc* label = ctx->TensorDesc4ArgNameAndIndex("label", 0); user_op::TensorDesc* theta = ctx->OutputTensorDesc("theta", 0); CHECK_EQ_OR_RETURN(label->shape().At(0), x->shape().At(0)); CHECK_GE_OR_RETURN(x->shape().NumAxes(), 2); *ctx->OutputShape("y", 0) = ctx->InputShape("x", 0); *ctx->IsDynamic4ArgNameAndIndex("y", 0) = ctx->InputIsDynamic("x", 0); *theta->mut_is_dynamic() = x->is_dynamic(); *theta->mut_shape() = label->shape(); return Maybe<void>::Ok(); }) .SetInputArgModifyFn([](user_op::GetInputArgModifier GetInputArgModifierFn, const user_op::UserOpConfWrapper&) { user_op::InputArgModifier* label_arg_modifier = GetInputArgModifierFn("label", 0); label_arg_modifier->set_requires_grad(false); }) .SetGetSbpFn([](user_op::SbpContext* ctx) -> Maybe<void> { ctx->NewBuilder() .Split(user_op::OpArg("x", 0), 0) .Split(user_op::OpArg("label", 0), 0) .Split(user_op::OpArg("y", 0), 0) .Split(user_op::OpArg("theta", 0), 0) .Build(); ctx->NewBuilder() .Split(user_op::OpArg("x", 0), 1) .Broadcast(user_op::OpArg("label", 0)) .Split(user_op::OpArg("y", 0), 1) .PartialSum(user_op::OpArg("theta", 0)) .Build(); return Maybe<void>::Ok(); }) .SetDataTypeInferFn([](user_op::InferContext* ctx) -> Maybe<void> { *ctx->OutputDType("y", 0) = ctx->InputDType("x", 0); *ctx->OutputDType("theta", 0) = ctx->InputDType("x", 0); return Maybe<void>::Ok(); }); REGISTER_USER_OP("combined_margin_loss_grad") .Input("dy") .Input("label") .Input("theta") .Output("dx") .Attr<float>("m1") .Attr<float>("m2") .Attr<float>("m3") .Attr<int64_t>("depth") .SetTensorDescInferFn([](user_op::InferContext* ctx) -> Maybe<void> { const user_op::TensorDesc* dy = ctx->TensorDesc4ArgNameAndIndex("dy", 0); const user_op::TensorDesc* label = ctx->TensorDesc4ArgNameAndIndex("label", 0); const user_op::TensorDesc* theta = ctx->TensorDesc4ArgNameAndIndex("theta", 0); CHECK_EQ_OR_RETURN(label->shape().At(0), dy->shape().At(0)); CHECK_EQ_OR_RETURN(label->shape().At(0), theta->shape().At(0)); CHECK_GE_OR_RETURN(dy->shape().NumAxes(), 2); *ctx->OutputShape("dx", 0) = ctx->InputShape("dy", 0); *ctx->IsDynamic4ArgNameAndIndex("dx", 0) = ctx->InputIsDynamic("dy", 0); return Maybe<void>::Ok(); }) .SetDataTypeInferFn([](user_op::InferContext* ctx) -> Maybe<void> { *ctx->OutputDType("dx", 0) = ctx->InputDType("dy", 0); return Maybe<void>::Ok(); }) .SetGetSbpFn([](user_op::SbpContext* ctx) -> Maybe<void> { ctx->NewBuilder() .Split(user_op::OpArg("dy", 0), 0) .Split(user_op::OpArg("label", 0), 0) .Split(user_op::OpArg("theta", 0), 0) .Split(user_op::OpArg("dx", 0), 0) .Build(); ctx->NewBuilder() .Split(user_op::OpArg("dy", 0), 1) .Broadcast(user_op::OpArg("label", 0)) .Broadcast(user_op::OpArg("theta", 0)) .Split(user_op::OpArg("dx", 0), 1) .Build(); return Maybe<void>::Ok(); }); REGISTER_USER_OP_GRAD("combined_margin_loss") .SetGenBackwardOpConfFn([](const user_op::UserOpWrapper& op, user_op::AddOpFn AddOp) { if (op.NeedGenGradTensor4OpInput("x", 0)) { user_op::UserOpConfWrapperBuilder builder(op.op_name() + "_grad"); user_op::UserOpConfWrapper grad_op = builder.Op("combined_margin_loss_grad") .Input("label", op.input("label", 0)) .Input("theta", op.output("theta", 0)) .Input("dy", op.GetGradTensorWithOpOutput("y", 0)) .Output("dx") .Attr("m1", op.attr<float>("m1")) .Attr("m2", op.attr<float>("m2")) .Attr("m3", op.attr<float>("m3")) .Attr("depth", op.attr<int64_t>("depth")) .Build(); op.BindGradTensorWithOpInput(grad_op.output("dx", 0), "x", 0); AddOp(grad_op); } }); } // namespace oneflow
e2ac50d1c2779c6c041b44a46e32f7c186eea4d4
4fe61538186e0ffbcd8cf51b3b52c2350192d0f5
/tools/clang/include/clang/Serialization/ASTBitCodes.h
0473401f172a882b9888455943475e209aea7df8
[ "NCSA" ]
permissive
PaintX/llvm-z80
10bd39a1ee2812d27a2facb2880a771d49d2af62
7c59bd2697829b77496c38c730194f2c42c728ca
refs/heads/master
2021-01-13T16:55:49.177771
2016-12-15T09:42:44
2016-12-15T10:04:47
null
0
0
null
null
null
null
UTF-8
C++
false
false
63,385
h
//===- ASTBitCodes.h - Enum values for the PCH bitcode format ---*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// // // This header defines Bitcode enum values for Clang serialized AST files. // // The enum values defined in this file should be considered permanent. If // new features are added, they should have values added at the end of the // respective lists. // //===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_SERIALIZATION_ASTBITCODES_H #define LLVM_CLANG_SERIALIZATION_ASTBITCODES_H #include "clang/AST/DeclarationName.h" #include "clang/AST/Type.h" #include "llvm/ADT/DenseMap.h" #include "llvm/Bitcode/BitCodes.h" #include "llvm/Support/DataTypes.h" namespace clang { namespace serialization { /// \brief AST file major version number supported by this version of /// Clang. /// /// Whenever the AST file format changes in a way that makes it /// incompatible with previous versions (such that a reader /// designed for the previous version could not support reading /// the new version), this number should be increased. /// /// Version 4 of AST files also requires that the version control branch and /// revision match exactly, since there is no backward compatibility of /// AST files at this time. const unsigned VERSION_MAJOR = 6; /// \brief AST file minor version number supported by this version of /// Clang. /// /// Whenever the AST format changes in a way that is still /// compatible with previous versions (such that a reader designed /// for the previous version could still support reading the new /// version by ignoring new kinds of subblocks), this number /// should be increased. const unsigned VERSION_MINOR = 0; /// \brief An ID number that refers to an identifier in an AST file. /// /// The ID numbers of identifiers are consecutive (in order of discovery) /// and start at 1. 0 is reserved for NULL. typedef uint32_t IdentifierID; /// \brief An ID number that refers to a declaration in an AST file. /// /// The ID numbers of declarations are consecutive (in order of /// discovery), with values below NUM_PREDEF_DECL_IDS being reserved. /// At the start of a chain of precompiled headers, declaration ID 1 is /// used for the translation unit declaration. typedef uint32_t DeclID; // FIXME: Turn these into classes so we can have some type safety when // we go from local ID to global and vice-versa. typedef DeclID LocalDeclID; typedef DeclID GlobalDeclID; /// \brief An ID number that refers to a type in an AST file. /// /// The ID of a type is partitioned into two parts: the lower /// three bits are used to store the const/volatile/restrict /// qualifiers (as with QualType) and the upper bits provide a /// type index. The type index values are partitioned into two /// sets. The values below NUM_PREDEF_TYPE_IDs are predefined type /// IDs (based on the PREDEF_TYPE_*_ID constants), with 0 as a /// placeholder for "no type". Values from NUM_PREDEF_TYPE_IDs are /// other types that have serialized representations. typedef uint32_t TypeID; /// \brief A type index; the type ID with the qualifier bits removed. class TypeIdx { uint32_t Idx; public: TypeIdx() : Idx(0) { } explicit TypeIdx(uint32_t index) : Idx(index) { } uint32_t getIndex() const { return Idx; } TypeID asTypeID(unsigned FastQuals) const { if (Idx == uint32_t(-1)) return TypeID(-1); return (Idx << Qualifiers::FastWidth) | FastQuals; } static TypeIdx fromTypeID(TypeID ID) { if (ID == TypeID(-1)) return TypeIdx(-1); return TypeIdx(ID >> Qualifiers::FastWidth); } }; /// A structure for putting "fast"-unqualified QualTypes into a /// DenseMap. This uses the standard pointer hash function. struct UnsafeQualTypeDenseMapInfo { static inline bool isEqual(QualType A, QualType B) { return A == B; } static inline QualType getEmptyKey() { return QualType::getFromOpaquePtr((void*) 1); } static inline QualType getTombstoneKey() { return QualType::getFromOpaquePtr((void*) 2); } static inline unsigned getHashValue(QualType T) { assert(!T.getLocalFastQualifiers() && "hash invalid for types with fast quals"); uintptr_t v = reinterpret_cast<uintptr_t>(T.getAsOpaquePtr()); return (unsigned(v) >> 4) ^ (unsigned(v) >> 9); } }; /// \brief An ID number that refers to an identifier in an AST file. typedef uint32_t IdentID; /// \brief The number of predefined identifier IDs. const unsigned int NUM_PREDEF_IDENT_IDS = 1; /// \brief An ID number that refers to a macro in an AST file. typedef uint32_t MacroID; /// \brief A global ID number that refers to a macro in an AST file. typedef uint32_t GlobalMacroID; /// \brief A local to a module ID number that refers to a macro in an /// AST file. typedef uint32_t LocalMacroID; /// \brief The number of predefined macro IDs. const unsigned int NUM_PREDEF_MACRO_IDS = 1; /// \brief An ID number that refers to an ObjC selector in an AST file. typedef uint32_t SelectorID; /// \brief The number of predefined selector IDs. const unsigned int NUM_PREDEF_SELECTOR_IDS = 1; /// \brief An ID number that refers to a set of CXXBaseSpecifiers in an /// AST file. typedef uint32_t CXXBaseSpecifiersID; /// \brief An ID number that refers to a list of CXXCtorInitializers in an /// AST file. typedef uint32_t CXXCtorInitializersID; /// \brief An ID number that refers to an entity in the detailed /// preprocessing record. typedef uint32_t PreprocessedEntityID; /// \brief An ID number that refers to a submodule in a module file. typedef uint32_t SubmoduleID; /// \brief The number of predefined submodule IDs. const unsigned int NUM_PREDEF_SUBMODULE_IDS = 1; /// \brief Source range/offset of a preprocessed entity. struct PPEntityOffset { /// \brief Raw source location of beginning of range. unsigned Begin; /// \brief Raw source location of end of range. unsigned End; /// \brief Offset in the AST file. uint32_t BitOffset; PPEntityOffset(SourceRange R, uint32_t BitOffset) : Begin(R.getBegin().getRawEncoding()), End(R.getEnd().getRawEncoding()), BitOffset(BitOffset) { } SourceLocation getBegin() const { return SourceLocation::getFromRawEncoding(Begin); } SourceLocation getEnd() const { return SourceLocation::getFromRawEncoding(End); } }; /// \brief Source range/offset of a preprocessed entity. struct DeclOffset { /// \brief Raw source location. unsigned Loc; /// \brief Offset in the AST file. uint32_t BitOffset; DeclOffset() : Loc(0), BitOffset(0) { } DeclOffset(SourceLocation Loc, uint32_t BitOffset) : Loc(Loc.getRawEncoding()), BitOffset(BitOffset) { } void setLocation(SourceLocation L) { Loc = L.getRawEncoding(); } SourceLocation getLocation() const { return SourceLocation::getFromRawEncoding(Loc); } }; /// \brief The number of predefined preprocessed entity IDs. const unsigned int NUM_PREDEF_PP_ENTITY_IDS = 1; /// \brief Describes the various kinds of blocks that occur within /// an AST file. enum BlockIDs { /// \brief The AST block, which acts as a container around the /// full AST block. AST_BLOCK_ID = llvm::bitc::FIRST_APPLICATION_BLOCKID, /// \brief The block containing information about the source /// manager. SOURCE_MANAGER_BLOCK_ID, /// \brief The block containing information about the /// preprocessor. PREPROCESSOR_BLOCK_ID, /// \brief The block containing the definitions of all of the /// types and decls used within the AST file. DECLTYPES_BLOCK_ID, /// \brief The block containing the detailed preprocessing record. PREPROCESSOR_DETAIL_BLOCK_ID, /// \brief The block containing the submodule structure. SUBMODULE_BLOCK_ID, /// \brief The block containing comments. COMMENTS_BLOCK_ID, /// \brief The control block, which contains all of the /// information that needs to be validated prior to committing /// to loading the AST file. CONTROL_BLOCK_ID, /// \brief The block of input files, which were used as inputs /// to create this AST file. /// /// This block is part of the control block. INPUT_FILES_BLOCK_ID, /// \brief The block of configuration options, used to check that /// a module is being used in a configuration compatible with the /// configuration in which it was built. /// /// This block is part of the control block. OPTIONS_BLOCK_ID, /// \brief A block containing a module file extension. EXTENSION_BLOCK_ID, }; /// \brief Record types that occur within the control block. enum ControlRecordTypes { /// \brief AST file metadata, including the AST file version number /// and information about the compiler used to build this AST file. METADATA = 1, /// \brief Record code for the list of other AST files imported by /// this AST file. IMPORTS, /// \brief Record code for the original file that was used to /// generate the AST file, including both its file ID and its /// name. ORIGINAL_FILE, /// \brief The directory that the PCH was originally created in. ORIGINAL_PCH_DIR, /// \brief Record code for file ID of the file or buffer that was used to /// generate the AST file. ORIGINAL_FILE_ID, /// \brief Offsets into the input-files block where input files /// reside. INPUT_FILE_OFFSETS, /// \brief Record code for the module name. MODULE_NAME, /// \brief Record code for the module map file that was used to build this /// AST file. MODULE_MAP_FILE, /// \brief Record code for the signature that identifiers this AST file. SIGNATURE, /// \brief Record code for the module build directory. MODULE_DIRECTORY, }; /// \brief Record types that occur within the options block inside /// the control block. enum OptionsRecordTypes { /// \brief Record code for the language options table. /// /// The record with this code contains the contents of the /// LangOptions structure. We serialize the entire contents of /// the structure, and let the reader decide which options are /// actually important to check. LANGUAGE_OPTIONS = 1, /// \brief Record code for the target options table. TARGET_OPTIONS, /// \brief Record code for the diagnostic options table. DIAGNOSTIC_OPTIONS, /// \brief Record code for the filesystem options table. FILE_SYSTEM_OPTIONS, /// \brief Record code for the headers search options table. HEADER_SEARCH_OPTIONS, /// \brief Record code for the preprocessor options table. PREPROCESSOR_OPTIONS, }; /// \brief Record code for extension blocks. enum ExtensionBlockRecordTypes { /// Metadata describing this particular extension. EXTENSION_METADATA = 1, /// The first record ID allocated to the extensions themselves. FIRST_EXTENSION_RECORD_ID = 4 }; /// \brief Record types that occur within the input-files block /// inside the control block. enum InputFileRecordTypes { /// \brief An input file. INPUT_FILE = 1 }; /// \brief Record types that occur within the AST block itself. enum ASTRecordTypes { /// \brief Record code for the offsets of each type. /// /// The TYPE_OFFSET constant describes the record that occurs /// within the AST block. The record itself is an array of offsets that /// point into the declarations and types block (identified by /// DECLTYPES_BLOCK_ID). The index into the array is based on the ID /// of a type. For a given type ID @c T, the lower three bits of /// @c T are its qualifiers (const, volatile, restrict), as in /// the QualType class. The upper bits, after being shifted and /// subtracting NUM_PREDEF_TYPE_IDS, are used to index into the /// TYPE_OFFSET block to determine the offset of that type's /// corresponding record within the DECLTYPES_BLOCK_ID block. TYPE_OFFSET = 1, /// \brief Record code for the offsets of each decl. /// /// The DECL_OFFSET constant describes the record that occurs /// within the block identified by DECL_OFFSETS_BLOCK_ID within /// the AST block. The record itself is an array of offsets that /// point into the declarations and types block (identified by /// DECLTYPES_BLOCK_ID). The declaration ID is an index into this /// record, after subtracting one to account for the use of /// declaration ID 0 for a NULL declaration pointer. Index 0 is /// reserved for the translation unit declaration. DECL_OFFSET = 2, /// \brief Record code for the table of offsets of each /// identifier ID. /// /// The offset table contains offsets into the blob stored in /// the IDENTIFIER_TABLE record. Each offset points to the /// NULL-terminated string that corresponds to that identifier. IDENTIFIER_OFFSET = 3, /// \brief This is so that older clang versions, before the introduction /// of the control block, can read and reject the newer PCH format. /// *DON'T CHANGE THIS NUMBER*. METADATA_OLD_FORMAT = 4, /// \brief Record code for the identifier table. /// /// The identifier table is a simple blob that contains /// NULL-terminated strings for all of the identifiers /// referenced by the AST file. The IDENTIFIER_OFFSET table /// contains the mapping from identifier IDs to the characters /// in this blob. Note that the starting offsets of all of the /// identifiers are odd, so that, when the identifier offset /// table is loaded in, we can use the low bit to distinguish /// between offsets (for unresolved identifier IDs) and /// IdentifierInfo pointers (for already-resolved identifier /// IDs). IDENTIFIER_TABLE = 5, /// \brief Record code for the array of eagerly deserialized decls. /// /// The AST file contains a list of all of the declarations that should be /// eagerly deserialized present within the parsed headers, stored as an /// array of declaration IDs. These declarations will be /// reported to the AST consumer after the AST file has been /// read, since their presence can affect the semantics of the /// program (e.g., for code generation). EAGERLY_DESERIALIZED_DECLS = 6, /// \brief Record code for the set of non-builtin, special /// types. /// /// This record contains the type IDs for the various type nodes /// that are constructed during semantic analysis (e.g., /// __builtin_va_list). The SPECIAL_TYPE_* constants provide /// offsets into this record. SPECIAL_TYPES = 7, /// \brief Record code for the extra statistics we gather while /// generating an AST file. STATISTICS = 8, /// \brief Record code for the array of tentative definitions. TENTATIVE_DEFINITIONS = 9, // ID 10 used to be for a list of extern "C" declarations. /// \brief Record code for the table of offsets into the /// Objective-C method pool. SELECTOR_OFFSETS = 11, /// \brief Record code for the Objective-C method pool, METHOD_POOL = 12, /// \brief The value of the next __COUNTER__ to dispense. /// [PP_COUNTER_VALUE, Val] PP_COUNTER_VALUE = 13, /// \brief Record code for the table of offsets into the block /// of source-location information. SOURCE_LOCATION_OFFSETS = 14, /// \brief Record code for the set of source location entries /// that need to be preloaded by the AST reader. /// /// This set contains the source location entry for the /// predefines buffer and for any file entries that need to be /// preloaded. SOURCE_LOCATION_PRELOADS = 15, /// \brief Record code for the set of ext_vector type names. EXT_VECTOR_DECLS = 16, /// \brief Record code for the array of unused file scoped decls. UNUSED_FILESCOPED_DECLS = 17, /// \brief Record code for the table of offsets to entries in the /// preprocessing record. PPD_ENTITIES_OFFSETS = 18, /// \brief Record code for the array of VTable uses. VTABLE_USES = 19, // ID 20 used to be for a list of dynamic classes. /// \brief Record code for referenced selector pool. REFERENCED_SELECTOR_POOL = 21, /// \brief Record code for an update to the TU's lexically contained /// declarations. TU_UPDATE_LEXICAL = 22, // ID 23 used to be for a list of local redeclarations. /// \brief Record code for declarations that Sema keeps references of. SEMA_DECL_REFS = 24, /// \brief Record code for weak undeclared identifiers. WEAK_UNDECLARED_IDENTIFIERS = 25, /// \brief Record code for pending implicit instantiations. PENDING_IMPLICIT_INSTANTIATIONS = 26, // ID 27 used to be for a list of replacement decls. /// \brief Record code for an update to a decl context's lookup table. /// /// In practice, this should only be used for the TU and namespaces. UPDATE_VISIBLE = 28, /// \brief Record for offsets of DECL_UPDATES records for declarations /// that were modified after being deserialized and need updates. DECL_UPDATE_OFFSETS = 29, // ID 30 used to be a decl update record. These are now in the DECLTYPES // block. // ID 31 used to be a list of offsets to DECL_CXX_BASE_SPECIFIERS records. /// \brief Record code for \#pragma diagnostic mappings. DIAG_PRAGMA_MAPPINGS = 32, /// \brief Record code for special CUDA declarations. CUDA_SPECIAL_DECL_REFS = 33, /// \brief Record code for header search information. HEADER_SEARCH_TABLE = 34, /// \brief Record code for floating point \#pragma options. FP_PRAGMA_OPTIONS = 35, /// \brief Record code for enabled OpenCL extensions. OPENCL_EXTENSIONS = 36, /// \brief The list of delegating constructor declarations. DELEGATING_CTORS = 37, /// \brief Record code for the set of known namespaces, which are used /// for typo correction. KNOWN_NAMESPACES = 38, /// \brief Record code for the remapping information used to relate /// loaded modules to the various offsets and IDs(e.g., source location /// offests, declaration and type IDs) that are used in that module to /// refer to other modules. MODULE_OFFSET_MAP = 39, /// \brief Record code for the source manager line table information, /// which stores information about \#line directives. SOURCE_MANAGER_LINE_TABLE = 40, /// \brief Record code for map of Objective-C class definition IDs to the /// ObjC categories in a module that are attached to that class. OBJC_CATEGORIES_MAP = 41, /// \brief Record code for a file sorted array of DeclIDs in a module. FILE_SORTED_DECLS = 42, /// \brief Record code for an array of all of the (sub)modules that were /// imported by the AST file. IMPORTED_MODULES = 43, // ID 44 used to be a table of merged canonical declarations. // ID 45 used to be a list of declaration IDs of local redeclarations. /// \brief Record code for the array of Objective-C categories (including /// extensions). /// /// This array can only be interpreted properly using the Objective-C /// categories map. OBJC_CATEGORIES = 46, /// \brief Record code for the table of offsets of each macro ID. /// /// The offset table contains offsets into the blob stored in /// the preprocessor block. Each offset points to the corresponding /// macro definition. MACRO_OFFSET = 47, /// \brief A list of "interesting" identifiers. Only used in C++ (where we /// don't normally do lookups into the serialized identifier table). These /// are eagerly deserialized. INTERESTING_IDENTIFIERS = 48, /// \brief Record code for undefined but used functions and variables that /// need a definition in this TU. UNDEFINED_BUT_USED = 49, /// \brief Record code for late parsed template functions. LATE_PARSED_TEMPLATE = 50, /// \brief Record code for \#pragma optimize options. OPTIMIZE_PRAGMA_OPTIONS = 51, /// \brief Record code for potentially unused local typedef names. UNUSED_LOCAL_TYPEDEF_NAME_CANDIDATES = 52, // ID 53 used to be a table of constructor initializer records. /// \brief Delete expressions that will be analyzed later. DELETE_EXPRS_TO_ANALYZE = 54, /// \brief Record code for \#pragma ms_struct options. MSSTRUCT_PRAGMA_OPTIONS = 55, /// \brief Record code for \#pragma ms_struct options. POINTERS_TO_MEMBERS_PRAGMA_OPTIONS = 56, /// \brief Number of unmatched #pragma clang cuda_force_host_device begin /// directives we've seen. CUDA_PRAGMA_FORCE_HOST_DEVICE_DEPTH = 57, }; /// \brief Record types used within a source manager block. enum SourceManagerRecordTypes { /// \brief Describes a source location entry (SLocEntry) for a /// file. SM_SLOC_FILE_ENTRY = 1, /// \brief Describes a source location entry (SLocEntry) for a /// buffer. SM_SLOC_BUFFER_ENTRY = 2, /// \brief Describes a blob that contains the data for a buffer /// entry. This kind of record always directly follows a /// SM_SLOC_BUFFER_ENTRY record or a SM_SLOC_FILE_ENTRY with an /// overridden buffer. SM_SLOC_BUFFER_BLOB = 3, /// \brief Describes a zlib-compressed blob that contains the data for /// a buffer entry. SM_SLOC_BUFFER_BLOB_COMPRESSED = 4, /// \brief Describes a source location entry (SLocEntry) for a /// macro expansion. SM_SLOC_EXPANSION_ENTRY = 5 }; /// \brief Record types used within a preprocessor block. enum PreprocessorRecordTypes { // The macros in the PP section are a PP_MACRO_* instance followed by a // list of PP_TOKEN instances for each token in the definition. /// \brief An object-like macro definition. /// [PP_MACRO_OBJECT_LIKE, IdentInfoID, SLoc, IsUsed] PP_MACRO_OBJECT_LIKE = 1, /// \brief A function-like macro definition. /// [PP_MACRO_FUNCTION_LIKE, \<ObjectLikeStuff>, IsC99Varargs, /// IsGNUVarars, NumArgs, ArgIdentInfoID* ] PP_MACRO_FUNCTION_LIKE = 2, /// \brief Describes one token. /// [PP_TOKEN, SLoc, Length, IdentInfoID, Kind, Flags] PP_TOKEN = 3, /// \brief The macro directives history for a particular identifier. PP_MACRO_DIRECTIVE_HISTORY = 4, /// \brief A macro directive exported by a module. /// [PP_MODULE_MACRO, SubmoduleID, MacroID, (Overridden SubmoduleID)*] PP_MODULE_MACRO = 5, }; /// \brief Record types used within a preprocessor detail block. enum PreprocessorDetailRecordTypes { /// \brief Describes a macro expansion within the preprocessing record. PPD_MACRO_EXPANSION = 0, /// \brief Describes a macro definition within the preprocessing record. PPD_MACRO_DEFINITION = 1, /// \brief Describes an inclusion directive within the preprocessing /// record. PPD_INCLUSION_DIRECTIVE = 2 }; /// \brief Record types used within a submodule description block. enum SubmoduleRecordTypes { /// \brief Metadata for submodules as a whole. SUBMODULE_METADATA = 0, /// \brief Defines the major attributes of a submodule, including its /// name and parent. SUBMODULE_DEFINITION = 1, /// \brief Specifies the umbrella header used to create this module, /// if any. SUBMODULE_UMBRELLA_HEADER = 2, /// \brief Specifies a header that falls into this (sub)module. SUBMODULE_HEADER = 3, /// \brief Specifies a top-level header that falls into this (sub)module. SUBMODULE_TOPHEADER = 4, /// \brief Specifies an umbrella directory. SUBMODULE_UMBRELLA_DIR = 5, /// \brief Specifies the submodules that are imported by this /// submodule. SUBMODULE_IMPORTS = 6, /// \brief Specifies the submodules that are re-exported from this /// submodule. SUBMODULE_EXPORTS = 7, /// \brief Specifies a required feature. SUBMODULE_REQUIRES = 8, /// \brief Specifies a header that has been explicitly excluded /// from this submodule. SUBMODULE_EXCLUDED_HEADER = 9, /// \brief Specifies a library or framework to link against. SUBMODULE_LINK_LIBRARY = 10, /// \brief Specifies a configuration macro for this module. SUBMODULE_CONFIG_MACRO = 11, /// \brief Specifies a conflict with another module. SUBMODULE_CONFLICT = 12, /// \brief Specifies a header that is private to this submodule. SUBMODULE_PRIVATE_HEADER = 13, /// \brief Specifies a header that is part of the module but must be /// textually included. SUBMODULE_TEXTUAL_HEADER = 14, /// \brief Specifies a header that is private to this submodule but /// must be textually included. SUBMODULE_PRIVATE_TEXTUAL_HEADER = 15, /// \brief Specifies some declarations with initializers that must be /// emitted to initialize the module. SUBMODULE_INITIALIZERS = 16, }; /// \brief Record types used within a comments block. enum CommentRecordTypes { COMMENTS_RAW_COMMENT = 0 }; /// \defgroup ASTAST AST file AST constants /// /// The constants in this group describe various components of the /// abstract syntax tree within an AST file. /// /// @{ /// \brief Predefined type IDs. /// /// These type IDs correspond to predefined types in the AST /// context, such as built-in types (int) and special place-holder /// types (the \<overload> and \<dependent> type markers). Such /// types are never actually serialized, since they will be built /// by the AST context when it is created. enum PredefinedTypeIDs { /// \brief The NULL type. PREDEF_TYPE_NULL_ID = 0, /// \brief The void type. PREDEF_TYPE_VOID_ID = 1, /// \brief The 'bool' or '_Bool' type. PREDEF_TYPE_BOOL_ID = 2, /// \brief The 'char' type, when it is unsigned. PREDEF_TYPE_CHAR_U_ID = 3, /// \brief The 'unsigned char' type. PREDEF_TYPE_UCHAR_ID = 4, /// \brief The 'unsigned short' type. PREDEF_TYPE_USHORT_ID = 5, /// \brief The 'unsigned int' type. PREDEF_TYPE_UINT_ID = 6, /// \brief The 'unsigned long' type. PREDEF_TYPE_ULONG_ID = 7, /// \brief The 'unsigned long long' type. PREDEF_TYPE_ULONGLONG_ID = 8, /// \brief The 'char' type, when it is signed. PREDEF_TYPE_CHAR_S_ID = 9, /// \brief The 'signed char' type. PREDEF_TYPE_SCHAR_ID = 10, /// \brief The C++ 'wchar_t' type. PREDEF_TYPE_WCHAR_ID = 11, /// \brief The (signed) 'short' type. PREDEF_TYPE_SHORT_ID = 12, /// \brief The (signed) 'int' type. PREDEF_TYPE_INT_ID = 13, /// \brief The (signed) 'long' type. PREDEF_TYPE_LONG_ID = 14, /// \brief The (signed) 'long long' type. PREDEF_TYPE_LONGLONG_ID = 15, /// \brief The 'float' type. PREDEF_TYPE_FLOAT_ID = 16, /// \brief The 'double' type. PREDEF_TYPE_DOUBLE_ID = 17, /// \brief The 'long double' type. PREDEF_TYPE_LONGDOUBLE_ID = 18, /// \brief The placeholder type for overloaded function sets. PREDEF_TYPE_OVERLOAD_ID = 19, /// \brief The placeholder type for dependent types. PREDEF_TYPE_DEPENDENT_ID = 20, /// \brief The '__uint128_t' type. PREDEF_TYPE_UINT128_ID = 21, /// \brief The '__int128_t' type. PREDEF_TYPE_INT128_ID = 22, /// \brief The type of 'nullptr'. PREDEF_TYPE_NULLPTR_ID = 23, /// \brief The C++ 'char16_t' type. PREDEF_TYPE_CHAR16_ID = 24, /// \brief The C++ 'char32_t' type. PREDEF_TYPE_CHAR32_ID = 25, /// \brief The ObjC 'id' type. PREDEF_TYPE_OBJC_ID = 26, /// \brief The ObjC 'Class' type. PREDEF_TYPE_OBJC_CLASS = 27, /// \brief The ObjC 'SEL' type. PREDEF_TYPE_OBJC_SEL = 28, /// \brief The 'unknown any' placeholder type. PREDEF_TYPE_UNKNOWN_ANY = 29, /// \brief The placeholder type for bound member functions. PREDEF_TYPE_BOUND_MEMBER = 30, /// \brief The "auto" deduction type. PREDEF_TYPE_AUTO_DEDUCT = 31, /// \brief The "auto &&" deduction type. PREDEF_TYPE_AUTO_RREF_DEDUCT = 32, /// \brief The OpenCL 'half' / ARM NEON __fp16 type. PREDEF_TYPE_HALF_ID = 33, /// \brief ARC's unbridged-cast placeholder type. PREDEF_TYPE_ARC_UNBRIDGED_CAST = 34, /// \brief The pseudo-object placeholder type. PREDEF_TYPE_PSEUDO_OBJECT = 35, /// \brief The placeholder type for builtin functions. PREDEF_TYPE_BUILTIN_FN = 36, /// \brief OpenCL event type. PREDEF_TYPE_EVENT_ID = 37, /// \brief OpenCL clk event type. PREDEF_TYPE_CLK_EVENT_ID = 38, /// \brief OpenCL sampler type. PREDEF_TYPE_SAMPLER_ID = 39, /// \brief OpenCL queue type. PREDEF_TYPE_QUEUE_ID = 40, /// \brief OpenCL ndrange type. PREDEF_TYPE_NDRANGE_ID = 41, /// \brief OpenCL reserve_id type. PREDEF_TYPE_RESERVE_ID_ID = 42, /// \brief The placeholder type for OpenMP array section. PREDEF_TYPE_OMP_ARRAY_SECTION = 43, /// \brief The '__float128' type PREDEF_TYPE_FLOAT128_ID = 44, /// \brief OpenCL image types with auto numeration #define IMAGE_TYPE(ImgType, Id, SingletonId, Access, Suffix) \ PREDEF_TYPE_##Id##_ID, #include "clang/Basic/OpenCLImageTypes.def" /// \brief The '__uint48_t' type. PREDEF_TYPE_UINT48_ID = 81, /// \brief The '__int48_t' type. PREDEF_TYPE_INT48_ID = 82 }; /// \brief The number of predefined type IDs that are reserved for /// the PREDEF_TYPE_* constants. /// /// Type IDs for non-predefined types will start at /// NUM_PREDEF_TYPE_IDs. const unsigned NUM_PREDEF_TYPE_IDS = 100; /// \brief Record codes for each kind of type. /// /// These constants describe the type records that can occur within a /// block identified by DECLTYPES_BLOCK_ID in the AST file. Each /// constant describes a record for a specific type class in the /// AST. Note that DeclCode values share this code space. enum TypeCode { /// \brief An ExtQualType record. TYPE_EXT_QUAL = 1, /// \brief A ComplexType record. TYPE_COMPLEX = 3, /// \brief A PointerType record. TYPE_POINTER = 4, /// \brief A BlockPointerType record. TYPE_BLOCK_POINTER = 5, /// \brief An LValueReferenceType record. TYPE_LVALUE_REFERENCE = 6, /// \brief An RValueReferenceType record. TYPE_RVALUE_REFERENCE = 7, /// \brief A MemberPointerType record. TYPE_MEMBER_POINTER = 8, /// \brief A ConstantArrayType record. TYPE_CONSTANT_ARRAY = 9, /// \brief An IncompleteArrayType record. TYPE_INCOMPLETE_ARRAY = 10, /// \brief A VariableArrayType record. TYPE_VARIABLE_ARRAY = 11, /// \brief A VectorType record. TYPE_VECTOR = 12, /// \brief An ExtVectorType record. TYPE_EXT_VECTOR = 13, /// \brief A FunctionNoProtoType record. TYPE_FUNCTION_NO_PROTO = 14, /// \brief A FunctionProtoType record. TYPE_FUNCTION_PROTO = 15, /// \brief A TypedefType record. TYPE_TYPEDEF = 16, /// \brief A TypeOfExprType record. TYPE_TYPEOF_EXPR = 17, /// \brief A TypeOfType record. TYPE_TYPEOF = 18, /// \brief A RecordType record. TYPE_RECORD = 19, /// \brief An EnumType record. TYPE_ENUM = 20, /// \brief An ObjCInterfaceType record. TYPE_OBJC_INTERFACE = 21, /// \brief An ObjCObjectPointerType record. TYPE_OBJC_OBJECT_POINTER = 22, /// \brief a DecltypeType record. TYPE_DECLTYPE = 23, /// \brief An ElaboratedType record. TYPE_ELABORATED = 24, /// \brief A SubstTemplateTypeParmType record. TYPE_SUBST_TEMPLATE_TYPE_PARM = 25, /// \brief An UnresolvedUsingType record. TYPE_UNRESOLVED_USING = 26, /// \brief An InjectedClassNameType record. TYPE_INJECTED_CLASS_NAME = 27, /// \brief An ObjCObjectType record. TYPE_OBJC_OBJECT = 28, /// \brief An TemplateTypeParmType record. TYPE_TEMPLATE_TYPE_PARM = 29, /// \brief An TemplateSpecializationType record. TYPE_TEMPLATE_SPECIALIZATION = 30, /// \brief A DependentNameType record. TYPE_DEPENDENT_NAME = 31, /// \brief A DependentTemplateSpecializationType record. TYPE_DEPENDENT_TEMPLATE_SPECIALIZATION = 32, /// \brief A DependentSizedArrayType record. TYPE_DEPENDENT_SIZED_ARRAY = 33, /// \brief A ParenType record. TYPE_PAREN = 34, /// \brief A PackExpansionType record. TYPE_PACK_EXPANSION = 35, /// \brief An AttributedType record. TYPE_ATTRIBUTED = 36, /// \brief A SubstTemplateTypeParmPackType record. TYPE_SUBST_TEMPLATE_TYPE_PARM_PACK = 37, /// \brief A AutoType record. TYPE_AUTO = 38, /// \brief A UnaryTransformType record. TYPE_UNARY_TRANSFORM = 39, /// \brief An AtomicType record. TYPE_ATOMIC = 40, /// \brief A DecayedType record. TYPE_DECAYED = 41, /// \brief An AdjustedType record. TYPE_ADJUSTED = 42, /// \brief A PipeType record. TYPE_PIPE = 43, /// \brief An ObjCTypeParamType record. TYPE_OBJC_TYPE_PARAM = 44 }; /// \brief The type IDs for special types constructed by semantic /// analysis. /// /// The constants in this enumeration are indices into the /// SPECIAL_TYPES record. enum SpecialTypeIDs { /// \brief CFConstantString type SPECIAL_TYPE_CF_CONSTANT_STRING = 0, /// \brief C FILE typedef type SPECIAL_TYPE_FILE = 1, /// \brief C jmp_buf typedef type SPECIAL_TYPE_JMP_BUF = 2, /// \brief C sigjmp_buf typedef type SPECIAL_TYPE_SIGJMP_BUF = 3, /// \brief Objective-C "id" redefinition type SPECIAL_TYPE_OBJC_ID_REDEFINITION = 4, /// \brief Objective-C "Class" redefinition type SPECIAL_TYPE_OBJC_CLASS_REDEFINITION = 5, /// \brief Objective-C "SEL" redefinition type SPECIAL_TYPE_OBJC_SEL_REDEFINITION = 6, /// \brief C ucontext_t typedef type SPECIAL_TYPE_UCONTEXT_T = 7 }; /// \brief The number of special type IDs. const unsigned NumSpecialTypeIDs = 8; /// \brief Predefined declaration IDs. /// /// These declaration IDs correspond to predefined declarations in the AST /// context, such as the NULL declaration ID. Such declarations are never /// actually serialized, since they will be built by the AST context when /// it is created. enum PredefinedDeclIDs { /// \brief The NULL declaration. PREDEF_DECL_NULL_ID = 0, /// \brief The translation unit. PREDEF_DECL_TRANSLATION_UNIT_ID = 1, /// \brief The Objective-C 'id' type. PREDEF_DECL_OBJC_ID_ID = 2, /// \brief The Objective-C 'SEL' type. PREDEF_DECL_OBJC_SEL_ID = 3, /// \brief The Objective-C 'Class' type. PREDEF_DECL_OBJC_CLASS_ID = 4, /// \brief The Objective-C 'Protocol' type. PREDEF_DECL_OBJC_PROTOCOL_ID = 5, /// \brief The signed 128-bit integer type. PREDEF_DECL_INT_128_ID = 6, /// \brief The unsigned 128-bit integer type. PREDEF_DECL_UNSIGNED_INT_128_ID = 7, /// \brief The internal 'instancetype' typedef. PREDEF_DECL_OBJC_INSTANCETYPE_ID = 8, /// \brief The internal '__builtin_va_list' typedef. PREDEF_DECL_BUILTIN_VA_LIST_ID = 9, /// \brief The internal '__va_list_tag' struct, if any. PREDEF_DECL_VA_LIST_TAG = 10, /// \brief The internal '__builtin_ms_va_list' typedef. PREDEF_DECL_BUILTIN_MS_VA_LIST_ID = 11, /// \brief The extern "C" context. PREDEF_DECL_EXTERN_C_CONTEXT_ID = 12, /// \brief The internal '__make_integer_seq' template. PREDEF_DECL_MAKE_INTEGER_SEQ_ID = 13, /// \brief The internal '__NSConstantString' typedef. PREDEF_DECL_CF_CONSTANT_STRING_ID = 14, /// \brief The internal '__NSConstantString' tag type. PREDEF_DECL_CF_CONSTANT_STRING_TAG_ID = 15, /// \brief The internal '__type_pack_element' template. PREDEF_DECL_TYPE_PACK_ELEMENT_ID = 16, /// \brief The signed 48-bit integer type. PREDEF_DECL_INT_48_ID = 17, /// \brief The unsigned 48-bit integer type. PREDEF_DECL_UNSIGNED_INT_48_ID = 18, }; /// \brief The number of declaration IDs that are predefined. /// /// For more information about predefined declarations, see the /// \c PredefinedDeclIDs type and the PREDEF_DECL_*_ID constants. const unsigned int NUM_PREDEF_DECL_IDS = 17; /// \brief Record of updates for a declaration that was modified after /// being deserialized. This can occur within DECLTYPES_BLOCK_ID. const unsigned int DECL_UPDATES = 49; /// \brief Record code for a list of local redeclarations of a declaration. /// This can occur within DECLTYPES_BLOCK_ID. const unsigned int LOCAL_REDECLARATIONS = 50; /// \brief Record codes for each kind of declaration. /// /// These constants describe the declaration records that can occur within /// a declarations block (identified by DECLTYPES_BLOCK_ID). Each /// constant describes a record for a specific declaration class /// in the AST. Note that TypeCode values share this code space. enum DeclCode { /// \brief A TypedefDecl record. DECL_TYPEDEF = 51, /// \brief A TypeAliasDecl record. DECL_TYPEALIAS, /// \brief An EnumDecl record. DECL_ENUM, /// \brief A RecordDecl record. DECL_RECORD, /// \brief An EnumConstantDecl record. DECL_ENUM_CONSTANT, /// \brief A FunctionDecl record. DECL_FUNCTION, /// \brief A ObjCMethodDecl record. DECL_OBJC_METHOD, /// \brief A ObjCInterfaceDecl record. DECL_OBJC_INTERFACE, /// \brief A ObjCProtocolDecl record. DECL_OBJC_PROTOCOL, /// \brief A ObjCIvarDecl record. DECL_OBJC_IVAR, /// \brief A ObjCAtDefsFieldDecl record. DECL_OBJC_AT_DEFS_FIELD, /// \brief A ObjCCategoryDecl record. DECL_OBJC_CATEGORY, /// \brief A ObjCCategoryImplDecl record. DECL_OBJC_CATEGORY_IMPL, /// \brief A ObjCImplementationDecl record. DECL_OBJC_IMPLEMENTATION, /// \brief A ObjCCompatibleAliasDecl record. DECL_OBJC_COMPATIBLE_ALIAS, /// \brief A ObjCPropertyDecl record. DECL_OBJC_PROPERTY, /// \brief A ObjCPropertyImplDecl record. DECL_OBJC_PROPERTY_IMPL, /// \brief A FieldDecl record. DECL_FIELD, /// \brief A MSPropertyDecl record. DECL_MS_PROPERTY, /// \brief A VarDecl record. DECL_VAR, /// \brief An ImplicitParamDecl record. DECL_IMPLICIT_PARAM, /// \brief A ParmVarDecl record. DECL_PARM_VAR, /// \brief A DecompositionDecl record. DECL_DECOMPOSITION, /// \brief A BindingDecl record. DECL_BINDING, /// \brief A FileScopeAsmDecl record. DECL_FILE_SCOPE_ASM, /// \brief A BlockDecl record. DECL_BLOCK, /// \brief A CapturedDecl record. DECL_CAPTURED, /// \brief A record that stores the set of declarations that are /// lexically stored within a given DeclContext. /// /// The record itself is a blob that is an array of declaration IDs, /// in the order in which those declarations were added to the /// declaration context. This data is used when iterating over /// the contents of a DeclContext, e.g., via /// DeclContext::decls_begin() and DeclContext::decls_end(). DECL_CONTEXT_LEXICAL, /// \brief A record that stores the set of declarations that are /// visible from a given DeclContext. /// /// The record itself stores a set of mappings, each of which /// associates a declaration name with one or more declaration /// IDs. This data is used when performing qualified name lookup /// into a DeclContext via DeclContext::lookup. DECL_CONTEXT_VISIBLE, /// \brief A LabelDecl record. DECL_LABEL, /// \brief A NamespaceDecl record. DECL_NAMESPACE, /// \brief A NamespaceAliasDecl record. DECL_NAMESPACE_ALIAS, /// \brief A UsingDecl record. DECL_USING, /// \brief A UsingShadowDecl record. DECL_USING_SHADOW, /// \brief A ConstructorUsingShadowDecl record. DECL_CONSTRUCTOR_USING_SHADOW, /// \brief A UsingDirecitveDecl record. DECL_USING_DIRECTIVE, /// \brief An UnresolvedUsingValueDecl record. DECL_UNRESOLVED_USING_VALUE, /// \brief An UnresolvedUsingTypenameDecl record. DECL_UNRESOLVED_USING_TYPENAME, /// \brief A LinkageSpecDecl record. DECL_LINKAGE_SPEC, /// \brief An ExportDecl record. DECL_EXPORT, /// \brief A CXXRecordDecl record. DECL_CXX_RECORD, /// \brief A CXXMethodDecl record. DECL_CXX_METHOD, /// \brief A CXXConstructorDecl record. DECL_CXX_CONSTRUCTOR, /// \brief A CXXConstructorDecl record for an inherited constructor. DECL_CXX_INHERITED_CONSTRUCTOR, /// \brief A CXXDestructorDecl record. DECL_CXX_DESTRUCTOR, /// \brief A CXXConversionDecl record. DECL_CXX_CONVERSION, /// \brief An AccessSpecDecl record. DECL_ACCESS_SPEC, /// \brief A FriendDecl record. DECL_FRIEND, /// \brief A FriendTemplateDecl record. DECL_FRIEND_TEMPLATE, /// \brief A ClassTemplateDecl record. DECL_CLASS_TEMPLATE, /// \brief A ClassTemplateSpecializationDecl record. DECL_CLASS_TEMPLATE_SPECIALIZATION, /// \brief A ClassTemplatePartialSpecializationDecl record. DECL_CLASS_TEMPLATE_PARTIAL_SPECIALIZATION, /// \brief A VarTemplateDecl record. DECL_VAR_TEMPLATE, /// \brief A VarTemplateSpecializationDecl record. DECL_VAR_TEMPLATE_SPECIALIZATION, /// \brief A VarTemplatePartialSpecializationDecl record. DECL_VAR_TEMPLATE_PARTIAL_SPECIALIZATION, /// \brief A FunctionTemplateDecl record. DECL_FUNCTION_TEMPLATE, /// \brief A TemplateTypeParmDecl record. DECL_TEMPLATE_TYPE_PARM, /// \brief A NonTypeTemplateParmDecl record. DECL_NON_TYPE_TEMPLATE_PARM, /// \brief A TemplateTemplateParmDecl record. DECL_TEMPLATE_TEMPLATE_PARM, /// \brief A TypeAliasTemplateDecl record. DECL_TYPE_ALIAS_TEMPLATE, /// \brief A StaticAssertDecl record. DECL_STATIC_ASSERT, /// \brief A record containing CXXBaseSpecifiers. DECL_CXX_BASE_SPECIFIERS, /// \brief A record containing CXXCtorInitializers. DECL_CXX_CTOR_INITIALIZERS, /// \brief A IndirectFieldDecl record. DECL_INDIRECTFIELD, /// \brief A NonTypeTemplateParmDecl record that stores an expanded /// non-type template parameter pack. DECL_EXPANDED_NON_TYPE_TEMPLATE_PARM_PACK, /// \brief A TemplateTemplateParmDecl record that stores an expanded /// template template parameter pack. DECL_EXPANDED_TEMPLATE_TEMPLATE_PARM_PACK, /// \brief A ClassScopeFunctionSpecializationDecl record a class scope /// function specialization. (Microsoft extension). DECL_CLASS_SCOPE_FUNCTION_SPECIALIZATION, /// \brief An ImportDecl recording a module import. DECL_IMPORT, /// \brief An OMPThreadPrivateDecl record. DECL_OMP_THREADPRIVATE, /// \brief An EmptyDecl record. DECL_EMPTY, /// \brief An ObjCTypeParamDecl record. DECL_OBJC_TYPE_PARAM, /// \brief An OMPCapturedExprDecl record. DECL_OMP_CAPTUREDEXPR, /// \brief A PragmaCommentDecl record. DECL_PRAGMA_COMMENT, /// \brief A PragmaDetectMismatchDecl record. DECL_PRAGMA_DETECT_MISMATCH, /// \brief An OMPDeclareReductionDecl record. DECL_OMP_DECLARE_REDUCTION, }; /// \brief Record codes for each kind of statement or expression. /// /// These constants describe the records that describe statements /// or expressions. These records occur within type and declarations /// block, so they begin with record values of 128. Each constant /// describes a record for a specific statement or expression class in the /// AST. enum StmtCode { /// \brief A marker record that indicates that we are at the end /// of an expression. STMT_STOP = 128, /// \brief A NULL expression. STMT_NULL_PTR, /// \brief A reference to a previously [de]serialized Stmt record. STMT_REF_PTR, /// \brief A NullStmt record. STMT_NULL, /// \brief A CompoundStmt record. STMT_COMPOUND, /// \brief A CaseStmt record. STMT_CASE, /// \brief A DefaultStmt record. STMT_DEFAULT, /// \brief A LabelStmt record. STMT_LABEL, /// \brief An AttributedStmt record. STMT_ATTRIBUTED, /// \brief An IfStmt record. STMT_IF, /// \brief A SwitchStmt record. STMT_SWITCH, /// \brief A WhileStmt record. STMT_WHILE, /// \brief A DoStmt record. STMT_DO, /// \brief A ForStmt record. STMT_FOR, /// \brief A GotoStmt record. STMT_GOTO, /// \brief An IndirectGotoStmt record. STMT_INDIRECT_GOTO, /// \brief A ContinueStmt record. STMT_CONTINUE, /// \brief A BreakStmt record. STMT_BREAK, /// \brief A ReturnStmt record. STMT_RETURN, /// \brief A DeclStmt record. STMT_DECL, /// \brief A CapturedStmt record. STMT_CAPTURED, /// \brief A GCC-style AsmStmt record. STMT_GCCASM, /// \brief A MS-style AsmStmt record. STMT_MSASM, /// \brief A PredefinedExpr record. EXPR_PREDEFINED, /// \brief A DeclRefExpr record. EXPR_DECL_REF, /// \brief An IntegerLiteral record. EXPR_INTEGER_LITERAL, /// \brief A FloatingLiteral record. EXPR_FLOATING_LITERAL, /// \brief An ImaginaryLiteral record. EXPR_IMAGINARY_LITERAL, /// \brief A StringLiteral record. EXPR_STRING_LITERAL, /// \brief A CharacterLiteral record. EXPR_CHARACTER_LITERAL, /// \brief A ParenExpr record. EXPR_PAREN, /// \brief A ParenListExpr record. EXPR_PAREN_LIST, /// \brief A UnaryOperator record. EXPR_UNARY_OPERATOR, /// \brief An OffsetOfExpr record. EXPR_OFFSETOF, /// \brief A SizefAlignOfExpr record. EXPR_SIZEOF_ALIGN_OF, /// \brief An ArraySubscriptExpr record. EXPR_ARRAY_SUBSCRIPT, /// \brief A CallExpr record. EXPR_CALL, /// \brief A MemberExpr record. EXPR_MEMBER, /// \brief A BinaryOperator record. EXPR_BINARY_OPERATOR, /// \brief A CompoundAssignOperator record. EXPR_COMPOUND_ASSIGN_OPERATOR, /// \brief A ConditionOperator record. EXPR_CONDITIONAL_OPERATOR, /// \brief An ImplicitCastExpr record. EXPR_IMPLICIT_CAST, /// \brief A CStyleCastExpr record. EXPR_CSTYLE_CAST, /// \brief A CompoundLiteralExpr record. EXPR_COMPOUND_LITERAL, /// \brief An ExtVectorElementExpr record. EXPR_EXT_VECTOR_ELEMENT, /// \brief An InitListExpr record. EXPR_INIT_LIST, /// \brief A DesignatedInitExpr record. EXPR_DESIGNATED_INIT, /// \brief A DesignatedInitUpdateExpr record. EXPR_DESIGNATED_INIT_UPDATE, /// \brief An NoInitExpr record. EXPR_NO_INIT, /// \brief An ArrayInitLoopExpr record. EXPR_ARRAY_INIT_LOOP, /// \brief An ArrayInitIndexExpr record. EXPR_ARRAY_INIT_INDEX, /// \brief An ImplicitValueInitExpr record. EXPR_IMPLICIT_VALUE_INIT, /// \brief A VAArgExpr record. EXPR_VA_ARG, /// \brief An AddrLabelExpr record. EXPR_ADDR_LABEL, /// \brief A StmtExpr record. EXPR_STMT, /// \brief A ChooseExpr record. EXPR_CHOOSE, /// \brief A GNUNullExpr record. EXPR_GNU_NULL, /// \brief A ShuffleVectorExpr record. EXPR_SHUFFLE_VECTOR, /// \brief A ConvertVectorExpr record. EXPR_CONVERT_VECTOR, /// \brief BlockExpr EXPR_BLOCK, /// \brief A GenericSelectionExpr record. EXPR_GENERIC_SELECTION, /// \brief A PseudoObjectExpr record. EXPR_PSEUDO_OBJECT, /// \brief An AtomicExpr record. EXPR_ATOMIC, // Objective-C /// \brief An ObjCStringLiteral record. EXPR_OBJC_STRING_LITERAL, EXPR_OBJC_BOXED_EXPRESSION, EXPR_OBJC_ARRAY_LITERAL, EXPR_OBJC_DICTIONARY_LITERAL, /// \brief An ObjCEncodeExpr record. EXPR_OBJC_ENCODE, /// \brief An ObjCSelectorExpr record. EXPR_OBJC_SELECTOR_EXPR, /// \brief An ObjCProtocolExpr record. EXPR_OBJC_PROTOCOL_EXPR, /// \brief An ObjCIvarRefExpr record. EXPR_OBJC_IVAR_REF_EXPR, /// \brief An ObjCPropertyRefExpr record. EXPR_OBJC_PROPERTY_REF_EXPR, /// \brief An ObjCSubscriptRefExpr record. EXPR_OBJC_SUBSCRIPT_REF_EXPR, /// \brief UNUSED EXPR_OBJC_KVC_REF_EXPR, /// \brief An ObjCMessageExpr record. EXPR_OBJC_MESSAGE_EXPR, /// \brief An ObjCIsa Expr record. EXPR_OBJC_ISA, /// \brief An ObjCIndirectCopyRestoreExpr record. EXPR_OBJC_INDIRECT_COPY_RESTORE, /// \brief An ObjCForCollectionStmt record. STMT_OBJC_FOR_COLLECTION, /// \brief An ObjCAtCatchStmt record. STMT_OBJC_CATCH, /// \brief An ObjCAtFinallyStmt record. STMT_OBJC_FINALLY, /// \brief An ObjCAtTryStmt record. STMT_OBJC_AT_TRY, /// \brief An ObjCAtSynchronizedStmt record. STMT_OBJC_AT_SYNCHRONIZED, /// \brief An ObjCAtThrowStmt record. STMT_OBJC_AT_THROW, /// \brief An ObjCAutoreleasePoolStmt record. STMT_OBJC_AUTORELEASE_POOL, /// \brief An ObjCBoolLiteralExpr record. EXPR_OBJC_BOOL_LITERAL, /// \brief An ObjCAvailabilityCheckExpr record. EXPR_OBJC_AVAILABILITY_CHECK, // C++ /// \brief A CXXCatchStmt record. STMT_CXX_CATCH, /// \brief A CXXTryStmt record. STMT_CXX_TRY, /// \brief A CXXForRangeStmt record. STMT_CXX_FOR_RANGE, /// \brief A CXXOperatorCallExpr record. EXPR_CXX_OPERATOR_CALL, /// \brief A CXXMemberCallExpr record. EXPR_CXX_MEMBER_CALL, /// \brief A CXXConstructExpr record. EXPR_CXX_CONSTRUCT, /// \brief A CXXInheritedCtorInitExpr record. EXPR_CXX_INHERITED_CTOR_INIT, /// \brief A CXXTemporaryObjectExpr record. EXPR_CXX_TEMPORARY_OBJECT, /// \brief A CXXStaticCastExpr record. EXPR_CXX_STATIC_CAST, /// \brief A CXXDynamicCastExpr record. EXPR_CXX_DYNAMIC_CAST, /// \brief A CXXReinterpretCastExpr record. EXPR_CXX_REINTERPRET_CAST, /// \brief A CXXConstCastExpr record. EXPR_CXX_CONST_CAST, /// \brief A CXXFunctionalCastExpr record. EXPR_CXX_FUNCTIONAL_CAST, /// \brief A UserDefinedLiteral record. EXPR_USER_DEFINED_LITERAL, /// \brief A CXXStdInitializerListExpr record. EXPR_CXX_STD_INITIALIZER_LIST, /// \brief A CXXBoolLiteralExpr record. EXPR_CXX_BOOL_LITERAL, EXPR_CXX_NULL_PTR_LITERAL, // CXXNullPtrLiteralExpr EXPR_CXX_TYPEID_EXPR, // CXXTypeidExpr (of expr). EXPR_CXX_TYPEID_TYPE, // CXXTypeidExpr (of type). EXPR_CXX_THIS, // CXXThisExpr EXPR_CXX_THROW, // CXXThrowExpr EXPR_CXX_DEFAULT_ARG, // CXXDefaultArgExpr EXPR_CXX_DEFAULT_INIT, // CXXDefaultInitExpr EXPR_CXX_BIND_TEMPORARY, // CXXBindTemporaryExpr EXPR_CXX_SCALAR_VALUE_INIT, // CXXScalarValueInitExpr EXPR_CXX_NEW, // CXXNewExpr EXPR_CXX_DELETE, // CXXDeleteExpr EXPR_CXX_PSEUDO_DESTRUCTOR, // CXXPseudoDestructorExpr EXPR_EXPR_WITH_CLEANUPS, // ExprWithCleanups EXPR_CXX_DEPENDENT_SCOPE_MEMBER, // CXXDependentScopeMemberExpr EXPR_CXX_DEPENDENT_SCOPE_DECL_REF, // DependentScopeDeclRefExpr EXPR_CXX_UNRESOLVED_CONSTRUCT, // CXXUnresolvedConstructExpr EXPR_CXX_UNRESOLVED_MEMBER, // UnresolvedMemberExpr EXPR_CXX_UNRESOLVED_LOOKUP, // UnresolvedLookupExpr EXPR_CXX_EXPRESSION_TRAIT, // ExpressionTraitExpr EXPR_CXX_NOEXCEPT, // CXXNoexceptExpr EXPR_OPAQUE_VALUE, // OpaqueValueExpr EXPR_BINARY_CONDITIONAL_OPERATOR, // BinaryConditionalOperator EXPR_TYPE_TRAIT, // TypeTraitExpr EXPR_ARRAY_TYPE_TRAIT, // ArrayTypeTraitIntExpr EXPR_PACK_EXPANSION, // PackExpansionExpr EXPR_SIZEOF_PACK, // SizeOfPackExpr EXPR_SUBST_NON_TYPE_TEMPLATE_PARM, // SubstNonTypeTemplateParmExpr EXPR_SUBST_NON_TYPE_TEMPLATE_PARM_PACK,// SubstNonTypeTemplateParmPackExpr EXPR_FUNCTION_PARM_PACK, // FunctionParmPackExpr EXPR_MATERIALIZE_TEMPORARY, // MaterializeTemporaryExpr EXPR_CXX_FOLD, // CXXFoldExpr // CUDA EXPR_CUDA_KERNEL_CALL, // CUDAKernelCallExpr // OpenCL EXPR_ASTYPE, // AsTypeExpr // Microsoft EXPR_CXX_PROPERTY_REF_EXPR, // MSPropertyRefExpr EXPR_CXX_PROPERTY_SUBSCRIPT_EXPR, // MSPropertySubscriptExpr EXPR_CXX_UUIDOF_EXPR, // CXXUuidofExpr (of expr). EXPR_CXX_UUIDOF_TYPE, // CXXUuidofExpr (of type). STMT_SEH_LEAVE, // SEHLeaveStmt STMT_SEH_EXCEPT, // SEHExceptStmt STMT_SEH_FINALLY, // SEHFinallyStmt STMT_SEH_TRY, // SEHTryStmt // OpenMP directives STMT_OMP_PARALLEL_DIRECTIVE, STMT_OMP_SIMD_DIRECTIVE, STMT_OMP_FOR_DIRECTIVE, STMT_OMP_FOR_SIMD_DIRECTIVE, STMT_OMP_SECTIONS_DIRECTIVE, STMT_OMP_SECTION_DIRECTIVE, STMT_OMP_SINGLE_DIRECTIVE, STMT_OMP_MASTER_DIRECTIVE, STMT_OMP_CRITICAL_DIRECTIVE, STMT_OMP_PARALLEL_FOR_DIRECTIVE, STMT_OMP_PARALLEL_FOR_SIMD_DIRECTIVE, STMT_OMP_PARALLEL_SECTIONS_DIRECTIVE, STMT_OMP_TASK_DIRECTIVE, STMT_OMP_TASKYIELD_DIRECTIVE, STMT_OMP_BARRIER_DIRECTIVE, STMT_OMP_TASKWAIT_DIRECTIVE, STMT_OMP_FLUSH_DIRECTIVE, STMT_OMP_ORDERED_DIRECTIVE, STMT_OMP_ATOMIC_DIRECTIVE, STMT_OMP_TARGET_DIRECTIVE, STMT_OMP_TARGET_DATA_DIRECTIVE, STMT_OMP_TARGET_ENTER_DATA_DIRECTIVE, STMT_OMP_TARGET_EXIT_DATA_DIRECTIVE, STMT_OMP_TARGET_PARALLEL_DIRECTIVE, STMT_OMP_TARGET_PARALLEL_FOR_DIRECTIVE, STMT_OMP_TEAMS_DIRECTIVE, STMT_OMP_TASKGROUP_DIRECTIVE, STMT_OMP_CANCELLATION_POINT_DIRECTIVE, STMT_OMP_CANCEL_DIRECTIVE, STMT_OMP_TASKLOOP_DIRECTIVE, STMT_OMP_TASKLOOP_SIMD_DIRECTIVE, STMT_OMP_DISTRIBUTE_DIRECTIVE, STMT_OMP_TARGET_UPDATE_DIRECTIVE, STMT_OMP_DISTRIBUTE_PARALLEL_FOR_DIRECTIVE, STMT_OMP_DISTRIBUTE_PARALLEL_FOR_SIMD_DIRECTIVE, STMT_OMP_DISTRIBUTE_SIMD_DIRECTIVE, STMT_OMP_TARGET_PARALLEL_FOR_SIMD_DIRECTIVE, STMT_OMP_TARGET_SIMD_DIRECTIVE, STMT_OMP_TEAMS_DISTRIBUTE_DIRECTIVE, STMT_OMP_TEAMS_DISTRIBUTE_SIMD_DIRECTIVE, STMT_OMP_TEAMS_DISTRIBUTE_PARALLEL_FOR_SIMD_DIRECTIVE, STMT_OMP_TEAMS_DISTRIBUTE_PARALLEL_FOR_DIRECTIVE, EXPR_OMP_ARRAY_SECTION, // ARC EXPR_OBJC_BRIDGED_CAST, // ObjCBridgedCastExpr STMT_MS_DEPENDENT_EXISTS, // MSDependentExistsStmt EXPR_LAMBDA // LambdaExpr }; /// \brief The kinds of designators that can occur in a /// DesignatedInitExpr. enum DesignatorTypes { /// \brief Field designator where only the field name is known. DESIG_FIELD_NAME = 0, /// \brief Field designator where the field has been resolved to /// a declaration. DESIG_FIELD_DECL = 1, /// \brief Array designator. DESIG_ARRAY = 2, /// \brief GNU array range designator. DESIG_ARRAY_RANGE = 3 }; /// \brief The different kinds of data that can occur in a /// CtorInitializer. enum CtorInitializerType { CTOR_INITIALIZER_BASE, CTOR_INITIALIZER_DELEGATING, CTOR_INITIALIZER_MEMBER, CTOR_INITIALIZER_INDIRECT_MEMBER }; /// \brief Describes the redeclarations of a declaration. struct LocalRedeclarationsInfo { DeclID FirstID; // The ID of the first declaration unsigned Offset; // Offset into the array of redeclaration chains. friend bool operator<(const LocalRedeclarationsInfo &X, const LocalRedeclarationsInfo &Y) { return X.FirstID < Y.FirstID; } friend bool operator>(const LocalRedeclarationsInfo &X, const LocalRedeclarationsInfo &Y) { return X.FirstID > Y.FirstID; } friend bool operator<=(const LocalRedeclarationsInfo &X, const LocalRedeclarationsInfo &Y) { return X.FirstID <= Y.FirstID; } friend bool operator>=(const LocalRedeclarationsInfo &X, const LocalRedeclarationsInfo &Y) { return X.FirstID >= Y.FirstID; } }; /// \brief Describes the categories of an Objective-C class. struct ObjCCategoriesInfo { DeclID DefinitionID; // The ID of the definition unsigned Offset; // Offset into the array of category lists. friend bool operator<(const ObjCCategoriesInfo &X, const ObjCCategoriesInfo &Y) { return X.DefinitionID < Y.DefinitionID; } friend bool operator>(const ObjCCategoriesInfo &X, const ObjCCategoriesInfo &Y) { return X.DefinitionID > Y.DefinitionID; } friend bool operator<=(const ObjCCategoriesInfo &X, const ObjCCategoriesInfo &Y) { return X.DefinitionID <= Y.DefinitionID; } friend bool operator>=(const ObjCCategoriesInfo &X, const ObjCCategoriesInfo &Y) { return X.DefinitionID >= Y.DefinitionID; } }; /// \brief A key used when looking up entities by \ref DeclarationName. /// /// Different \ref DeclarationNames are mapped to different keys, but the /// same key can occasionally represent multiple names (for names that /// contain types, in particular). class DeclarationNameKey { typedef unsigned NameKind; NameKind Kind; uint64_t Data; public: DeclarationNameKey() : Kind(), Data() {} DeclarationNameKey(DeclarationName Name); DeclarationNameKey(NameKind Kind, uint64_t Data) : Kind(Kind), Data(Data) {} NameKind getKind() const { return Kind; } IdentifierInfo *getIdentifier() const { assert(Kind == DeclarationName::Identifier || Kind == DeclarationName::CXXLiteralOperatorName); return (IdentifierInfo *)Data; } Selector getSelector() const { assert(Kind == DeclarationName::ObjCZeroArgSelector || Kind == DeclarationName::ObjCOneArgSelector || Kind == DeclarationName::ObjCMultiArgSelector); return Selector(Data); } OverloadedOperatorKind getOperatorKind() const { assert(Kind == DeclarationName::CXXOperatorName); return (OverloadedOperatorKind)Data; } /// Compute a fingerprint of this key for use in on-disk hash table. unsigned getHash() const; friend bool operator==(const DeclarationNameKey &A, const DeclarationNameKey &B) { return A.Kind == B.Kind && A.Data == B.Data; } }; /// @} } } // end namespace clang namespace llvm { template <> struct DenseMapInfo<clang::serialization::DeclarationNameKey> { static clang::serialization::DeclarationNameKey getEmptyKey() { return clang::serialization::DeclarationNameKey(-1, 1); } static clang::serialization::DeclarationNameKey getTombstoneKey() { return clang::serialization::DeclarationNameKey(-1, 2); } static unsigned getHashValue(const clang::serialization::DeclarationNameKey &Key) { return Key.getHash(); } static bool isEqual(const clang::serialization::DeclarationNameKey &L, const clang::serialization::DeclarationNameKey &R) { return L == R; } }; } #endif
7b9d779ba30c9987c8f50af45b6a0dc7f9722764
1d928c3f90d4a0a9a3919a804597aa0a4aab19a3
/c++/godot/2017/8/file_access_buffered.h
d3137058fb984f8aa19b0343b707eafbb4986b02
[ "MIT" ]
permissive
rosoareslv/SED99
d8b2ff5811e7f0ffc59be066a5a0349a92cbb845
a062c118f12b93172e31e8ca115ce3f871b64461
refs/heads/main
2023-02-22T21:59:02.703005
2021-01-28T19:40:51
2021-01-28T19:40:51
306,497,459
1
1
null
2020-11-24T20:56:18
2020-10-23T01:18:07
null
UTF-8
C++
false
false
3,480
h
/*************************************************************************/ /* file_access_buffered.h */ /*************************************************************************/ /* This file is part of: */ /* GODOT ENGINE */ /* https://godotengine.org */ /*************************************************************************/ /* Copyright (c) 2007-2017 Juan Linietsky, Ariel Manzur. */ /* Copyright (c) 2014-2017 Godot Engine contributors (cf. AUTHORS.md) */ /* */ /* Permission is hereby granted, free of charge, to any person obtaining */ /* a copy of this software and associated documentation files (the */ /* "Software"), to deal in the Software without restriction, including */ /* without limitation the rights to use, copy, modify, merge, publish, */ /* distribute, sublicense, and/or sell copies of the Software, and to */ /* permit persons to whom the Software is furnished to do so, subject to */ /* the following conditions: */ /* */ /* The above copyright notice and this permission notice shall be */ /* included in all copies or substantial portions of the Software. */ /* */ /* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */ /* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */ /* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.*/ /* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */ /* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */ /* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ /* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ /*************************************************************************/ #ifndef FILE_ACCESS_BUFFERED_H #define FILE_ACCESS_BUFFERED_H #include "os/file_access.h" #include "dvector.h" #include "ustring.h" class FileAccessBuffered : public FileAccess { public: enum { DEFAULT_CACHE_SIZE = 128 * 1024, }; private: int cache_size; int cache_data_left() const; mutable Error last_error; protected: Error set_error(Error p_error) const; mutable struct File { bool open; int size; int offset; String name; int access_flags; } file; mutable struct Cache { Vector<uint8_t> buffer; int offset; } cache; virtual int read_data_block(int p_offset, int p_size, uint8_t *p_dest = 0) const = 0; void set_cache_size(int p_size); int get_cache_size(); public: virtual size_t get_pos() const; ///< get position in the file virtual size_t get_len() const; ///< get size of the file virtual void seek(size_t p_position); ///< seek to a given position virtual void seek_end(int64_t p_position = 0); ///< seek from the end of file virtual bool eof_reached() const; virtual uint8_t get_8() const; virtual int get_buffer(uint8_t *p_dest, int p_length) const; ///< get an array of bytes virtual bool is_open() const; virtual Error get_error() const; FileAccessBuffered(); virtual ~FileAccessBuffered(); }; #endif
96e4939af1cdfe53ec549bdb5966e2a6eab65884
162ccc7b54d0e5fa9a07550fa34d03c1168e5cac
/10_regular_expression_matching.cpp
14a7a6e66de860f4c122f7d37ad9a14b05406f80
[]
no_license
wsAndy/leetcode
d8dde99adc218f54adf2729a28e02b377fb5c11c
c302eb4c8ef3cbd1b2bfd4c1bbc29162ba5018ca
refs/heads/master
2021-09-10T22:48:02.708884
2018-04-03T14:32:18
2018-04-03T14:32:18
125,208,977
1
0
null
null
null
null
UTF-8
C++
false
false
795
cpp
class Solution { public: bool isMatch(string s, string p) { if(p.empty()) { return s.empty(); } int s_len = s.length(); int p_len = p.length(); vector< vector<bool>> P( s_len+1, vector<bool>(p_len+1, false) ); P[0][0] = true; for(int i = 0; i < s_len+1; ++i) { for(int j = 1; j < p_len+1; ++j) { if(p[j-1] == '*') { P[i][j] = P[i][j-2] || ( i>0 && P[i-1][j] && ( s[i-1] == p[j-2] ||p[j-2] == '.' ) ); // 这个不好理解 }else { P[i][j] = ( i>0 &&P[i-1][j-1] && ( s[i-1] == p[j-1] || p[j-1] == '.') ); } } } return P[s_len][p_len]; } };
7c1cada6c5367fb5bec80b9d8a9e9e952aab8465
1c6a81d038c2328ecd208bc52011d2195bf9a908
/XX_mq/XX_simple/sender/sender.cpp
ec4da2662368bcbeba8a4d311bda102f7bef7dd0
[]
no_license
joker-yt/linux-std
411e471413e58ded7133dac11e43f5e818883cad
0b8e028f36987721ad5759c5ca045a52ed6fa55f
refs/heads/master
2021-06-01T18:28:23.614404
2020-08-22T14:41:21
2020-08-22T14:41:21
96,436,775
0
0
null
2020-06-04T14:13:41
2017-07-06T14:03:36
C++
UTF-8
C++
false
false
460
cpp
#include <memory> #include <unistd.h> #include "sender.h" int main(int argc, char *argv[]) { std::unique_ptr<Sender> sender = std::make_unique<Sender>(); sleep(3); int i = 5; while (i--) { std::cout << "message?" << std::endl; std::string msg; std::cin >> msg; std::cout << __FUNCTION__ << ": send message[" << msg << "]" << std::endl; sender->Send(msg); sleep(2); } return 0; }
133186e2ea17b979e8c6b38f22c0e116bf1f21e9
18af6a7d6561fa226a157078188283c9c65d5a97
/1143.Longest_Common_Subsequence/memoziation.cpp
5ec9b99c6c6952755353e3d57d42408929fdc580
[]
no_license
shobhit-saini/Leet_Code
cc8980c7b1b57087ad6568a1e81bbf291e00afad
204d48f31aa2a4bd459f97c896c9fe594eb6ca07
refs/heads/master
2021-02-05T17:27:09.452448
2020-09-22T10:36:29
2020-09-22T10:36:29
243,809,137
1
0
null
null
null
null
UTF-8
C++
false
false
1,040
cpp
class Solution { public: int fun(string text1, string text2, int *arr, int i, int j) { if(i == 0 || j == 0) return 0; if(*((arr+i*text2.size()) + j) != -1) { return *((arr+i*text2.size()) + j); } if(text1[i-1] == text2[j-1]) { *((arr+i*text2.size()) + j) = 1 + fun(text1, text2, arr, i - 1, j - 1); return *((arr+i*text2.size()) + j); } else { *((arr+i*text2.size()) + j) = max(fun(text1, text2, arr, i - 1, j), fun(text1, text2, arr, i, j - 1)); return *((arr+i*text2.size()) + j); } } int longestCommonSubsequence(string text1, string text2) { int arr[text1.size()+1][text2.size()+1],i,j; for(i = 0; i < text1.size()+1; i++) { for(j = 0; j < text2.size()+1; j++) { arr[i][j] = -1; } } return fun(text1, text2, (int*)arr, text1.size(), text2.size()); } };
11ffe8d66569762c9e2352a6fd881e674295da84
39e91009d94d8700346da6645f0e31cc448d0186
/Assignment12/HashTable.h
c91bd13c1541aebf361813beca00f20caa51bf75
[]
no_license
MrFunBarn/Assignments
078953622832827d903eb9e9ed6f7c3bd643abc3
4f48091bf49e210a21236801e45e9a3959997db5
refs/heads/master
2021-03-22T05:08:17.153877
2016-04-20T20:39:22
2016-04-20T20:39:22
49,986,031
0
0
null
null
null
null
UTF-8
C++
false
false
721
h
/* * Brandon Bell * Assignment12 * Recitation: Th 1030am * Guogui Ding */ #ifndef HASHTABLE_H #define HASHTABLE_H #include <string> #include <vector> struct HashElem{ std::string title; int year; HashElem *next; HashElem *previous; HashElem(){}; HashElem(std::string in_title, int in_year) { title = in_title; year = in_year; next = NULL; previous = NULL; } }; class HashTable { public: HashTable(); ~HashTable(); void printTableContents(); void insertMovie(std::string name, int year); void deleteMovie(std::string name); void findMovie(std::string name); private: int hashSum(std::string x); int tableSize = 10; HashElem* hashTable[10]; }; #endif // HASHTABLE_H
0917cfe99890ce3ad06a7ed87388b600f8bf8e6f
50820d63924b4be50f182ea8c620358313a35498
/ConsoleApplication4.4.)/ConsoleApplication4.4.).cpp
3840baccc372125b4932d850862c3a28d574b4cb
[]
no_license
VasylKudrych/ConsoleApplication4.4.-
74611d11b2336fafb3b0e1b063086315fbb8dcb2
2ac689a34a2c8319c076edaf3adb3e2a90aa3930
refs/heads/master
2023-08-23T15:41:56.817235
2021-10-27T22:22:31
2021-10-27T22:22:31
null
0
0
null
null
null
null
WINDOWS-1251
C++
false
false
1,031
cpp
// Lab_04_4.cpp // < Кудрич Василь > // Лабораторна робота № 4.4 // Табуляція функції, заданої графіком // Варіант 13 #include <iostream> #include <iomanip> #include <cmath> using namespace std; int main() { double R, xp, xk, dx, x, y; cout << "R = "; cin >> R; cout << "xp = "; cin >> xp; cout << "xk = "; cin >> xk; cout << "dx = "; cin >> dx; cout << fixed; cout << "---------------------------" << endl; cout << "|" << setw(5) << "x" << " |" << setw(7) << "y" << " |" << endl; cout << "---------------------------" << endl; x = xp; while (x <= xk) { if (x <= -R) y = x + R; else if (-R < x && x < 0) y = sqrt((R + x) * (R - x)); else if (0 < x && x <= 6) y = (-(R * x) / 6) + R; else if (6 < x) y = x - 6; cout << "|" << setw(7) << setprecision(2) << x << " |" << setw(10) << setprecision(3) << y << " |" << endl; x += dx; } cout << "---------------------------" << endl; return 0; }
372ab090f8635d4b2c22ba3dbf13d74ba871ff93
6c521289ece43e67f2491d662b063cd40b7caa55
/BlinkContinuously.ino/BlinkContinuously.ino.ino
dd71dcd035bcd56609c928434f867e64bde9a387
[]
no_license
BStricklin/Research
af45f00575c41cec9bf04d21e095f6c15eac5eb8
dd6539bccce38518470e3f6f0747bbd2d556adff
refs/heads/master
2020-12-24T05:58:46.228980
2016-06-19T00:45:28
2016-06-19T00:45:28
61,458,422
0
0
null
null
null
null
UTF-8
C++
false
false
739
ino
const int ledPin = 13; int ledState = LOW; unsigned long previousMillis = 0; const long interval = 500; void setup() { // put your setup code here, to run once: pinMode(ledPin, OUTPUT); Serial.begin(57600); } void loop() { // put your main code here, to run repeatedly: unsigned long currentMillis = millis(); if (currentMillis - previousMillis >= interval) { // save the last time you blinked the LED previousMillis = currentMillis; // if the LED is off turn it on and vice-versa: if (ledState == LOW) { ledState = HIGH; } else { ledState = LOW; } // set the LED with the ledState of the variable: Serial.println(currentMillis); digitalWrite(ledPin, ledState); } }
e48b93f5ba7ebabdaf68c2591463c692f12c98ce
b73ece3221b464d3c0453b0fe0fd8a8fe6882b04
/src/MPC.h
05d52e191e3c7016781858e828d0e4e144a5b1e2
[ "MIT" ]
permissive
vijaysingla/CarND-ModelPredicitveControl
bd097de2675fc29642ed29f240b51e1cedee448e
3b08cc0ac72b585bcbbf1b99080a89d56608083e
refs/heads/master
2020-03-15T23:31:07.976518
2018-05-08T03:51:43
2018-05-08T03:51:43
132,388,425
0
0
null
null
null
null
UTF-8
C++
false
false
610
h
#ifndef MPC_H #define MPC_H /* * These commented extern varriables were used when these are being passed as arguments through main function * for tuning */ //extern double dt; //extern double w1; //extern double w2; //extern double w3; //extern double w4; //extern double ref_v; #include <vector> #include "Eigen-3.3/Eigen/Core" using namespace std; class MPC { public: MPC(); virtual ~MPC(); // Solve the model given an initial state and polynomial coefficients. // Return the first actuatotions. vector<double> Solve(Eigen::VectorXd state, Eigen::VectorXd coeffs); }; #endif /* MPC_H */
966edca1ca4e47e23925d0500849e3f3f376dbed
e0d50712461f60626ab6600a230e5b5f475c636c
/tests/test_item.h
dfa543a75cdfb2837eb187ea05e993d71565bb4a
[ "MIT" ]
permissive
astrellon/Rouge
a4939c519da900d0a42d10ae0bff427ac4c2aa56
088f55b331284238e807e0562b9cbbed6428c20f
refs/heads/master
2021-01-23T08:39:52.749013
2018-08-31T07:33:38
2018-08-31T07:33:38
11,255,211
0
0
null
null
null
null
UTF-8
C++
false
false
402
h
#pragma once #include <base/imanaged.h> #include <base/handle.h> #include <tests/test_suite.h> namespace am { namespace tests { class TestItem : public TestSuite { public: TestItem() {} ~TestItem() {} virtual void runCases() { runCase(testSimple); } virtual const char *getSuiteName() const { return "am::game::Item"; } protected: bool testSimple(); }; } }
cce118105077986c35c8ad23eedf3485d657b21d
a0ce67d6bd45a01616238569dd7146202ff284de
/OpenGL/src/Texture.cpp
aa66dd0482909a15c9b4840c102d25ea994fd812
[]
no_license
ChiragSaxena5437/OpenGL
e9aed23c7a400e874ab51be5dae23b1c625a0f9f
ace84af078a5cc597b282ce8f3488cc0435fe55e
refs/heads/master
2023-01-03T01:12:07.343733
2020-10-23T06:54:12
2020-10-23T06:54:12
259,384,679
0
0
null
2020-06-23T07:46:33
2020-04-27T16:11:20
C++
UTF-8
C++
false
false
1,178
cpp
#include "Texture.h" #include "stb_image/stb_image.h" Texture::Texture(const std::string& path) :m_RendererID(0), m_FilePath(path), m_LocalBuffer(nullptr), m_Width(0), m_Height(0), m_BPP(0) { stbi_set_flip_vertically_on_load(1); m_LocalBuffer = stbi_load(path.c_str(), &m_Width, &m_Height, &m_BPP, 4); GLCall(glGenTextures(1, &m_RendererID)); GLCall(glBindTexture(GL_TEXTURE_2D, m_RendererID)); GLCall(glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR)); GLCall(glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR)); GLCall(glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE)); GLCall(glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE)); GLCall(glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA8, m_Width, m_Height, 0, GL_RGBA, GL_UNSIGNED_BYTE, m_LocalBuffer)); if (m_LocalBuffer) stbi_image_free(m_LocalBuffer); } Texture::~Texture() { GLCall(glDeleteTextures(1, &m_RendererID)); } void Texture::Bind(unsigned int slot) const { GLCall(glActiveTexture(GL_TEXTURE0 + slot)); GLCall(glBindTexture(GL_TEXTURE_2D, m_RendererID)); } void Texture::Unbind() const { GLCall(glBindTexture(GL_TEXTURE_2D, 0)); }
82751e90f7222617bd30cd2c6fdab3a2a0b7ed41
0e8d03dca67ab0c0f884e4d23a2ff98a24e9c4c9
/codeforces/545-d.cpp
5000e95353e5945d857972c94a5ea3e44a1c7859
[]
no_license
abhihacker02/Competitive-Coding
c735c0db8a22d26d7f943061baac3fcbdda80418
55ba9789a19b687453845860d535e3a7b5271aec
refs/heads/master
2020-06-21T02:29:04.492324
2019-07-17T13:28:58
2019-07-17T13:28:58
197,323,377
0
0
null
null
null
null
UTF-8
C++
false
false
3,388
cpp
#include<bits/stdc++.h> using namespace std; //using namespace __gnu_pbds; //typedef tree<ii,null_type,less<ii>,rb_tree_tag,tree_order_statistics_node_update> set_t; #define fast ios_base::sync_with_stdio(false); cin.tie(NULL);cout.tie(NULL); #define mp make_pair #define mt make_tuple #define pb push_back #define pf push_front #define SUM(v) accumulate(v.begin(),v.end(),lli(0)) #define rev(n,d) for(int i=n;i>=d;i--) #define FOR0(n) for(int i=0;i<n;i++) #define FOR(a,n) for(int i=a;i<n;i++) #define FORQ(a,n) for(int i=a;i<=n;i++) #define inf 1000000009 #define inff 0x3f3f3f3f #define sz(a) int((a).size()) #define all(c) c.begin(), c.end() #define ff first #define ss second #define endl "\n" #define mod 1000000007 #define mem(ar,x) memset(ar,x,sizeof ar) #define present(container, element) (container.find(element) != container.end()) #define max3(a,b,c) return (lli(a)>lli(b)?(lli(a)>lli(c)?a:c):(lli(b)>lli(c)?b:c)) #define max4(a,b,c,d) return (max3(a,b,c)>lli(d)?(max3(a,b,c)):d) #define min3(a,b,c) return (lli(a)<lli(b)?(lli(a)<lli(c)?a:c):(lli(b)<lli(c)?b:c)) #define min4(a,b,c,d) return (max3(a,b,c)<lli(d)?(max3(a,b,c)):d) typedef long long int lli; typedef pair<int,int> pii; typedef pair<int,pii>ppii; typedef vector<int>vi; typedef vector<vi>vvi; typedef vector<pii>vpii; const int N=500005; int dr8[]={0,0,1,-1,1,1,-1,-1}; int dc8[]={1,-1,0,0,-1,1,-1,1}; int dr4[]={0,1,-1,0}; int dc4[]={1,0,0,-1}; int Z[N]; void Zarr(string str) { //cout<<"fhkj"; int n = str.length(); int L, R, k; L = R = 0; for (int i = 1; i < n; ++i) { if (i > R) { L = R = i; while (R<n && str[R-L] == str[R]) R++; Z[i] = R-L; R--; } else { k = i-L; if (Z[k] < R-i+1) Z[i] = Z[k]; else { L = i; while (R<n && str[R-L] == str[R]) R++; Z[i] = R-L; R--; } } } } int main(){ fast string s,t; cin>>s; cin>>t; if(t.length()>s.length()){ cout<<s; } else{ mem(Z,0); Zarr(t); int lng=0; // mem(Z,0); // for(int i=0;i<=t.length();i++) cout<<Z[i]<<" ";cout<<endl; int ls=s.length(); int lt=t.length(); for(int i=1;i<lt;i++){ if((Z[i]+i)==lt) lng=max(lng,Z[i]); } // cout<<lng<<endl; string add=t.substr(lng,lt-lng); int addo=0,addz=0,ind=0; for(int i=lng;i<lt;i++){ add[ind]=t[i]; // add=add+t[i]; ind++; if(t[i]=='1') addo++; else addz++; } int ons=0,zs=0,ont=0,zt=0; FOR0(ls) { if(s[i]=='1') ons++; else zs++; } FOR0(lt) { if(t[i]=='1') ont++; else zt++; } if(zt>zs||ont>ons){ cout<<s; } else{ string ans=s; int in=0,f=0; while(ons>=ont&&zs>=zt){ f=1; for(int i=0;i<lt;i++){ ans[in]=t[i]; in++; } ons-=ont; zs-=zt; if(f==1) break; } while(ons>=addo&&zs>=addz){ for(int i=0;i<add.length();i++){ ans[in]=add[i]; in++; } ons-=addo; zs-=addz; } while(ons--){ ans[in]='1'; in++; } while(zs--){ ans[in]='0'; in++; } cout<<ans; } } }
393d7052a2c1bb1b33e4471f1e5f9f998c9c2714
725752154f85eeb2bc0592cba2ab920f36558df2
/OOP244/WS06/Contact.cpp
f3d6e1d666b7dd5a6b4b03a22afaa878d4210566
[]
no_license
Zevinn/Seneca_OOP
16a605fb932553b171a76406fad028d8721c247b
41f2c6aba3fac9bd328ce5c6e2eff0af6cfe091c
refs/heads/main
2023-05-13T22:17:28.729646
2021-06-04T19:25:28
2021-06-04T19:25:28
373,935,253
0
0
null
null
null
null
UTF-8
C++
false
false
3,367
cpp
/********************************************************** * Name:Min Woo Kim * Student ID: 156417172 * Seneca email: [email protected] * Section: SEE **********************************************************/ #define _CRT_SECURE_NO_WARNINGS #include <iostream> #include <string.h> #include "Contact.h" using namespace std; namespace sict { Contact::Contact() { names[0] = 0; phnum = nullptr; num = 0; //Contact::Contact() :names{ 0 }, phnum(nullptr > , num(0){}; } Contact::~Contact() { delete[] phnum; phnum = nullptr; } Contact::Contact(const char* nm, long long *phnum_, int num_) : Contact() { int count = 0; if (phnum_ != nullptr && phnum_[0] != '\0' && num_ > 0) { phnum = new long long[num_]; } if (nm != nullptr && nm != '\0') { strncpy(names, nm, max_name_size); names[strlen(names)] = '\0'; } for (int i = 0; i < num_; i++) { if (phnum_[i] > 10000000000 && phnum_[i] < 999999999999) { int number = phnum_[i] % 10000000; int acode = (phnum_[i] / 10000000) % 1000; int ccode = phnum_[i] / 10000000000; if (number >= 1000000 && number <= 9999999 && acode >= 100 && acode <= 999 && ccode >= 1 && ccode <= 99) { phnum[count] = phnum_[i]; count++; } } } num = count; } Contact::Contact(const Contact& src) { copy(src); } Contact& Contact::operator=(const Contact& src) { if (this != &src) { delete[] phnum; phnum = nullptr; copy(src); } return *this; } Contact& Contact::operator+=(const long long newnum) { if (names[0] == 0 || names == nullptr) { return *this = Contact(); } if (newnum > 10000000000 && newnum < 999999999999) { int number = newnum % 10000000; int acode = (newnum / 10000000) % 1000; int ccode = newnum / 10000000000; if (number >= 1000000 && number <= 9999999 && acode >= 100 && acode <= 999 && ccode >= 1 && ccode <= 99) { num++; long long* temp = new long long[num]; if (phnum != nullptr && phnum[0] != 0) { for (int i = 0; i < num-1; i++) { temp[i] = phnum[i]; } delete[] phnum; phnum = nullptr; } phnum = new long long[num]; temp[num - 1] = newnum; for (int j = 0; j < num; j++) { phnum[j] = temp[j]; } delete[] temp; temp = nullptr; } } return *this; } bool Contact::isEmpty() const { bool valid = (names[0] == '\0' && phnum == nullptr && num == 0); return valid; } void Contact::display() const { long long first3, back4; if (isEmpty() == true) cout << "Empty contact!" << endl; else { cout << names << endl; for (int i = 0; i < num; i++) { int number = phnum[i] % 10000000; int acode = (phnum[i] / 10000000) % 1000; int ccode = phnum[i] / 10000000000; first3 = number / 10000; back4 = number % 10000; cout << "(+" << ccode << ") " << acode << " " << first3 << "-"; cout.fill('0'); cout.width(4); cout << back4 << endl; } } } void Contact::copy(const Contact& src) { // To reduce copying duplication strncpy(names, src.names, max_name_size); names[strlen(names)] = '\0'; num = src.num; if (src.phnum != 0 && src.phnum != nullptr) { phnum = new long long[src.num]; // ********************* IMPORTANT *********************** for (int i = 0; i < src.num; i++) { phnum[i] = src.phnum[i]; } } } }
b50ad3b7af07e33abca574a03594ffc9f5c8fa63
1f75b92ef78ec9b68375338c2d763a4eef467f6f
/BinaryTree/shortestpathinfinitetree.cpp
1e07e980cfc6da60499c927750dbdc0531fe770a
[]
no_license
rohit7147/DSA
eb7dbd982b836d588415ee208c2a91f2f96f073a
e26e89ebdf893bed601943541fcbc9bf86e61db1
refs/heads/master
2022-10-02T06:25:55.783757
2020-06-06T09:16:56
2020-06-06T09:16:56
269,926,964
0
0
null
null
null
null
UTF-8
C++
false
false
785
cpp
#include<iostream> #include <math.h> #include<cmath> using namespace std; long int findSide(long int x,long int n) { if(x>=pow(2,n)&&x<(pow(2,n)+pow(2,n-1))) return 1; else if(x>=(pow(2,n)+pow(2,n-1))&&x<pow(2,n+1)) return 0; } int main() { int t; cin>>t; while(t--){ long int x,y,levelx,levely,isLx,isLy; cin>>x>>y; levelx=(long int)(log2f(x)); levely=(long int)(log2f(y)); if(levelx==0){ cout<<levely-levelx; }else{ isLx=findSide(x,levelx); isLy=findSide(y,levely); if(isLx==isLy) { cout<<abs(levely-levelx)<<endl; } else{ cout<<levely+levelx<<endl; } } } }
9d6a4a2611e50edac9faaac757a7abdabe0a6806
a8f2b90b92ec5c38b0607a2b7e8e96eb86800be1
/include/pyfbsdk/pyfbdeformerpointcache.h
793cd96c994ebd1cd79bc8b42578b2a48d7159e3
[]
no_license
VRTRIX/VRTRIXGlove_MotionBuilder_Plugin
27703a15bd68460095034c7b50d6078c8dad2ad8
8acee1c8d6786e9d580f55d8e2e2d41283274257
refs/heads/master
2023-05-01T03:00:17.419854
2021-11-25T08:05:13
2021-11-25T08:05:13
204,840,760
6
0
null
null
null
null
UTF-8
C++
false
false
2,149
h
#ifndef pyfbdeformerpointcache_h__ #define pyfbdeformerpointcache_h__ /************************************************************************** Copyright 2010 Autodesk, Inc. All rights reserved. Use of this software is subject to the terms of the Autodesk license agreement provided at the time of installation or download, or which otherwise accompanies this software in either electronic or hard copy form. **************************************************************************/ #include <kaydaradef.h> #ifndef PYSDK_DLL /** \def PYSDK_DLL * Be sure that PYSDK_DLL is defined only once... */ #define PYSDK_DLL K_DLLIMPORT #endif #include "pyfbdeformer.h" #include "pyfbpointcachefile.h" // ======================================================================================= // FBPopup // ======================================================================================= void FBDeformerPointCache_Init(); class FBPointCacheFile_Wrapper; class PYSDK_DLL FBDeformerPointCache_Wrapper : public FBDeformer_Wrapper { public: FBDeformerPointCache* mFBDeformerPointCache; public: FBDeformerPointCache_Wrapper( FBComponent* pFBComponent ); FBDeformerPointCache_Wrapper( const char* pName ); virtual ~FBDeformerPointCache_Wrapper( ); object GetPointCacheFile( ) { return FBWrapperFactory::TheOne().WrapFBObject( mFBDeformerPointCache->PointCacheFile ); } void SetPointCacheFile(FBPointCacheFile_Wrapper& pPointCacheFile ) { mFBDeformerPointCache->PointCacheFile = pPointCacheFile.mFBPointCacheFile; } DECLARE_ORSDK_PROPERTY_PYTHON_ACCESS(Active, bool); DECLARE_ORSDK_PROPERTY_PYTHON_ACCESS(ChannelIndex, int); DECLARE_ORSDK_PROPERTY_PYTHON_ACCESS(ChannelName, const char*); DECLARE_ORSDK_PROPERTY_PYTHON_ACCESS(ChannelCount, int); DECLARE_ORSDK_PROPERTY_PYTHON_CUSTOM_TYPE_ACCESS(ChannelStart, FBTime); DECLARE_ORSDK_PROPERTY_PYTHON_CUSTOM_TYPE_ACCESS(ChannelEnd, FBTime); DECLARE_ORSDK_PROPERTY_PYTHON_ACCESS(ChannelSampleRegular, bool); DECLARE_ORSDK_PROPERTY_PYTHON_ACCESS(ChannelFrameRate, double); DECLARE_ORSDK_PROPERTY_PYTHON_ACCESS(ChannelPointCount, int); }; #endif // pyfbdeformerpointcache_h__
74791d59ed7b3466c5c0c44a68d9e2a2b6e6abdf
bca908d31cd4e7d0aad98e07b266f89d365c336a
/src/mfx/ui/FontDataDefault.h
f17df45623c066eca422f448b9bfa886482b9a2f
[]
no_license
eriser/pedalevite
c27f0a4c0a330762a12a78fb36ff0f8b6c4e4134
9b8e371c50ab6d236d2a00f5c59bde87949305e8
refs/heads/master
2021-01-12T18:34:10.744182
2017-02-07T22:41:54
2017-02-07T22:41:54
null
0
0
null
null
null
null
UTF-8
C++
false
false
2,605
h
/***************************************************************************** FontDataDefault.h Author: Laurent de Soras, 2016 --- Legal stuff --- This program is free software. It comes without any warranty, to the extent permitted by applicable law. You can redistribute it and/or modify it under the terms of the Do What The Fuck You Want To Public License, Version 2, as published by Sam Hocevar. See http://sam.zoy.org/wtfpl/COPYING for more details. *Tab=3***********************************************************************/ #pragma once #if ! defined (mfx_ui_FontDataDefault_HEADER_INCLUDED) #define mfx_ui_FontDataDefault_HEADER_INCLUDED #if defined (_MSC_VER) #pragma warning (4 : 4250) #endif /*\\\ INCLUDE FILES \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*/ #include "mfx/ui/Font.h" #include <cstdint> namespace mfx { namespace ui { class FontDataDefault { /*\\\ PUBLIC \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*/ public: static void make_04x06 (Font &fnt); static void make_06x06 (Font &fnt); static void make_06x08 (Font &fnt); static void make_08x12 (Font &fnt); virtual ~FontDataDefault () = default; /*\\\ PROTECTED \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*/ protected: /*\\\ PRIVATE \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*/ private: static const int _char_per_table = 256; static const int _char_per_row = 16; static const char32_t _mapping_8859_15 [_char_per_table]; static const uint8_t _data_04x06 [_char_per_table * 4*6]; static const uint8_t _data_06x06 [_char_per_table * 6*6]; static const uint8_t _data_06x08 [_char_per_table * 6*8]; static const uint8_t _data_08x12 [_char_per_table * 8*12]; /*\\\ FORBIDDEN MEMBER FUNCTIONS \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*/ private: FontDataDefault () = delete; FontDataDefault (const FontDataDefault &other) = delete; FontDataDefault & operator = (const FontDataDefault &other) = delete; bool operator == (const FontDataDefault &other) const = delete; bool operator != (const FontDataDefault &other) const = delete; }; // class FontDataDefault } // namespace ui } // namespace mfx //#include "mfx/ui/FontDataDefault.hpp" #endif // mfx_ui_FontDataDefault_HEADER_INCLUDED /*\\\ EOF \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*/
e6d747243b3398f4bf114fd8118f89b3655b60a8
40158eaeab2262ae5023fb35b7d7784a00fa78ca
/3.2.cpp
afbf96a611de96de92078cb776445eecd489360d
[]
no_license
Sidicer/ITf-18-2-Procedurinis-3-laboratorinis-2018-2019
5d493af0c2aae961a87f33f9f8ddf0dbc58ed6b9
b0bc033e4e9ddd9911f16af218a1e05e4684d696
refs/heads/master
2020-04-11T19:16:47.799768
2018-12-18T18:04:42
2018-12-18T18:04:42
162,028,782
0
0
null
null
null
null
UTF-8
C++
false
false
181
cpp
#include <iostream> using namespace std; int Suma(int a, int b) { return a + b; } int main() { int a, b, c, d; cin >> a >> b >> c >> d; cout << Suma(a, b) + Suma(c, d); }
b5f3f38121b04fc602d628b510df16e8abce1d97
4c5645477261073c0d01aaea4c2cf62ddc89b311
/Algorithms/Warmup/Simple Array Sum.cpp
088af74bc412db16264635b7f00e56a71da35af4
[]
no_license
flere114/hackerrank
978fac8c18e24ee3175ba45327cbf37be248e39d
45024b00230746e5f8b904a26d03b273f184c039
refs/heads/master
2020-05-16T22:13:46.026384
2018-05-07T12:32:25
2018-05-07T12:32:25
41,917,922
0
0
null
null
null
null
UTF-8
C++
false
false
339
cpp
#include <cmath> #include <cstdio> #include <vector> #include <iostream> #include <algorithm> using namespace std; int main() { /* Enter your code here. Read input from STDIN. Print output to STDOUT */ int N,ans = 0; cin >> N; for(int i=0,x;i<N && cin >> x;i++) ans += x; cout << ans << endl; return 0; }
f9677ab65ce5887bfc3d57d7f0784416f8ddff2a
6faa0e03c279a584c3384564eea86d02a30a404d
/csl/SimpleFSA/MinDic/minDic2dot.cxx
6b41c13a2bbacd82518985535e84c95cca5d2511
[]
no_license
cisocrgroup/csl
43caf512cc038f9a298c20837fb106acd7172f2f
dab6428ce5e8781c7181aa0d9ab22bb4d8357a58
refs/heads/master
2021-01-10T13:42:56.567895
2015-04-22T12:25:46
2015-04-22T12:25:46
50,420,441
0
0
null
null
null
null
UTF-8
C++
false
false
668
cxx
#include<cstdlib> #include "../../Global.h" #include "./MinDic.h" /** * @file * * This program uses the class @c SimpleFSA::MinDic to compile a minimzed dictionary automaton * from a given txt file. * Then it prints dot code for that automaton. */ int main( int argc, const char** argv ) { std::locale::global( std::locale( "" ) ); csl::SimpleFSA::MinDic minDic; if( argc != 2 ) { std::wcerr<<"Use like: minDic2dot <txtFile>"<<std::endl; exit( 1 ); } try { minDic.compileDic( argv[1] ); minDic.toDot(); } catch( csl::exceptions::cslException ex ) { std::wcerr<<"minDic2dot: Error: "<< ex.what() << std::endl; } }
[ "reffle@f2d9b42b-cd0b-0410-95c1-856273910ab5" ]
reffle@f2d9b42b-cd0b-0410-95c1-856273910ab5
4cf6b8da6707eee8487344f4057441f7c2168c07
2fc3345c0cf7b0381edd7df40fddacb43fcd70c5
/indepthcpp_9/threadpool.hpp
b30dd2ee97c9d0224bc6a699dae62c1fcad9b941
[]
no_license
wlnetman/bpmbase
6e8846d3fa92f998a737f8448a0b97ba2af5e771
0e2bbb9312c4b1ac5847dde8f74a832ccd2c6ec9
refs/heads/master
2021-05-06T18:34:17.610684
2018-01-15T16:18:23
2018-01-15T16:18:23
111,930,957
0
0
null
2017-11-24T15:10:57
2017-11-24T15:10:56
null
UTF-8
C++
false
false
1,684
hpp
#ifndef THREADPOOL #define THREADPOOL #include <list> #include <thread> #include <functional> #include <memory> #include <atomic> #include "syncqueue.hpp" const int MaxTaskCount = 100; class ThreadPool { public: using Task = std::function<void()>; ThreadPool(int numThreads = std::thread::hardware_concurrency()) : m_queue(MaxTaskCount) { Start(numThreads); } ~ThreadPool(void) { Stop(); } void Stop() { std::call_once(m_flag, [this] { StopThreadGroup(); }); } void AddTask( Task&& task) { m_queue.Put(std::forward<Task>(task)); } void AddTask( const Task& task) { m_queue.Put(task); } private: void Start(int numThreads) { m_running = true; for(int i = 0; i < numThreads; ++i) { m_threadgroup.push_back(std::make_shared<std::thread>(&ThreadPool::RunInThread, this)); } } void RunInThread() { while( m_running ) { std::list<Task> list; m_queue.Take(list); for( auto &task : list) { if(!m_running ) return; task(); } } } void StopThreadGroup() { m_queue.Stop(); m_running = false; for(auto thread : m_threadgroup ) { if(thread) thread->join(); } m_threadgroup.clear(); } std::list<std::shared_ptr<std::thread>> m_threadgroup; SyncQueue<Task> m_queue; atomic_bool m_running; std::once_flag m_flag; }; #endif
0ce60d95e809bff990fadb6b7b97ebfad9e89c07
10da40148a48480f899e388af56d9e1febc9238c
/RenameCommand.cpp
9e074bfbb91540f32e61a926b3c2a052953aae99
[]
no_license
valeri2000/FMI-OOP-Project-6
226fadb16f575706907fe6f04800a5dd50e79c23
cb0f68b0a9879685ca10b236375fbd5807973658
refs/heads/master
2022-10-12T14:37:42.417637
2020-05-31T10:17:37
2020-05-31T10:17:37
267,253,576
0
0
null
null
null
null
UTF-8
C++
false
false
554
cpp
#include "RenameCommand.h" #include "Parser.h" void RenameCommand::execute(const std::string& param, Database* & obj) { if(obj == nullptr) { ErrorState::setState(Flag::BAD_NODATA); return; } std::vector<std::string> params; Parser::parseLineToParam(param, params); if(params.size() != 2) { ErrorState::setState(Flag::BAD_COMMAND); return; } obj->renameT(params[0], params[1]); } RenameCommand::RenameCommand(const std::string& name) : ICommand(name) {} RenameCommand::~RenameCommand() {}
9e533ae62beaac155d51661c988d49e6175a66ee
3a7b4600778f147a24d49fe5264f96e46db57e10
/36.cpp
89b432978f0c57803775e75e488b24edafce7c4c
[]
no_license
CanRui-Wu/PointToOffer
9f5fea82f7d8796a95ecbbf1fb6b01e998ca46c0
88204fb67a4dc29373dcb94980857d6210dcf176
refs/heads/master
2021-04-26T23:54:09.474574
2018-03-24T12:21:52
2018-03-24T12:21:52
123,877,220
0
0
null
null
null
null
UTF-8
C++
false
false
1,529
cpp
#include <iostream> using namespace std; struct TreeNode { int val; struct TreeNode *left; struct TreeNode *right; TreeNode(int x) : val(x), left(NULL), right(NULL) { } }; class Solution { public: TreeNode* Convert(TreeNode* pRootOfTree) { if(pRootOfTree == NULL) return NULL; TreeNode *left = Convert(pRootOfTree->left); TreeNode *right = Convert(pRootOfTree->right); TreeNode *result = left; if(left != NULL) { while(left->right != NULL) left = left->right; pRootOfTree->left = left; left->right = pRootOfTree; } if(right != NULL) { pRootOfTree->right = right; right->left = pRootOfTree; } if(result == NULL) result = pRootOfTree; return result; } }; int main() { Solution solution; TreeNode *t1 = new TreeNode(1); TreeNode *t2 = new TreeNode(2); TreeNode *t3 = new TreeNode(3); TreeNode *t4 = new TreeNode(4); TreeNode *t5 = new TreeNode(5); TreeNode *t6 = new TreeNode(6); TreeNode *t7 = new TreeNode(7); TreeNode *t8 = new TreeNode(8); TreeNode *t9 = new TreeNode(9); t5->left = t3; t5->right = t7; t3->left = t2; t3->right = t4; t2->left = t1; t7->left = t6; t7->right = t8; t8->right = t9; TreeNode *current = solution.Convert(t5); while(current != NULL) { cout << current->val << endl; current = current->right; } delete t1; delete t2; delete t3; delete t4; delete t5; delete t6; delete t7; delete t8; delete t9; }
9546ce0e270d3af46a81d454a39bb56305c63c5e
77423f55613f9bdcaa91662d53bb2bb8f4c8f288
/lab_3_3.cpp
3c7968d2e8a204e874a7425bbdfeeadc8feb2f55
[]
no_license
nsrichuwong/lab3
f44ffaf20c04171364607a511eed9ac4b12695bc
b9c7090e22b37c62f567014e7d2a87bacc234bb8
refs/heads/master
2020-04-16T02:50:09.526773
2019-01-11T11:02:36
2019-01-11T11:02:36
165,209,854
0
0
null
null
null
null
UTF-8
C++
false
false
190
cpp
#include<iostream> using namespace std; int main() { double x = 2, sum = 0; while (x < 69){ sum += 1/x; x = x+1; } cout << "sum is " << sum; return 0; }
f4bb6144fd1b1de9d6b7fed9aa25a22e05ee25c7
9d04b4dc38abe8c342bc8ab2130b54e2b8c45bf6
/jingle/libjingle/talk/p2p/base/session_unittest.cc
972ed9dc003d01a8e59c0ac3b78a6f7bbd739de0
[ "BSD-3-Clause" ]
permissive
leecher1337/mgoodies-skype
20e06f5fea2940e2e2a5725dfe4acca9eade08fd
08424202c7e3727293e111f5a4bed871989f899a
refs/heads/master
2021-01-02T22:17:19.589787
2015-01-19T11:08:21
2015-01-19T11:08:21
33,920,832
3
1
null
null
null
null
UTF-8
C++
false
false
39,906
cc
#include <iostream> #include <sstream> #include <deque> #include <map> #include "talk/base/common.h" #include "talk/base/logging.h" #include "talk/base/host.h" #include "talk/base/natserver.h" #include "talk/base/natsocketfactory.h" #include "talk/base/helpers.h" #include "talk/xmpp/constants.h" #include "talk/p2p/base/constants.h" #include "talk/p2p/base/sessionmanager.h" #include "talk/p2p/base/sessionclient.h" #include "talk/p2p/base/session.h" #include "talk/p2p/base/portallocator.h" #include "talk/p2p/base/transportchannel.h" #include "talk/p2p/base/udpport.h" #include "talk/p2p/base/stunport.h" #include "talk/p2p/base/relayport.h" #include "talk/p2p/base/p2ptransport.h" #include "talk/p2p/base/rawtransport.h" #include "talk/p2p/base/stunserver.h" #include "talk/p2p/base/relayserver.h" using namespace cricket; using namespace buzz; const std::string kSessionType = "http://oink.splat/session"; const talk_base::SocketAddress kStunServerAddress("127.0.0.1", 7000); const talk_base::SocketAddress kStunServerAddress2("127.0.0.1", 7001); const talk_base::SocketAddress kRelayServerIntAddress("127.0.0.1", 7002); const talk_base::SocketAddress kRelayServerExtAddress("127.0.0.1", 7003); const int kNumPorts = 2; int gPort = 28653; int GetNextPort() { int p = gPort; gPort += 5; return p; } int gID = 0; std::string GetNextID() { std::ostringstream ost; ost << gID++; return ost.str(); } class TestPortAllocatorSession : public PortAllocatorSession { public: TestPortAllocatorSession(talk_base::Thread* worker_thread, talk_base::SocketFactory* factory, const std::string& name, const std::string& session_type) : PortAllocatorSession(0), worker_thread_(worker_thread), factory_(factory), name_(name), ports_(kNumPorts), address_("127.0.0.1", 0), network_("network", address_.ip()), running_(false) { } ~TestPortAllocatorSession() { for (int i = 0; i < ports_.size(); i++) delete ports_[i]; } virtual void GetInitialPorts() { // These are the flags set by the raw transport. uint32 raw_flags = PORTALLOCATOR_DISABLE_UDP | PORTALLOCATOR_DISABLE_TCP; // If the client doesn't care, just give them two UDP ports. if (flags() == 0) { for (int i = 0; i < kNumPorts; i++) { ports_[i] = new UDPPort(worker_thread_, factory_, &network_, GetAddress()); AddPort(ports_[i]); } // If the client requested just stun and relay, we have to oblidge. } else if (flags() == raw_flags) { StunPort* sport = new StunPort(worker_thread_, factory_, &network_, GetAddress(), kStunServerAddress); sport->set_server_addr2(kStunServerAddress2); ports_[0] = sport; AddPort(sport); std::string username = CreateRandomString(16); std::string password = CreateRandomString(16); RelayPort* rport = new RelayPort(worker_thread_, factory_, &network_, GetAddress(), username, password, ""); rport->AddServerAddress( ProtocolAddress(kRelayServerIntAddress, PROTO_UDP)); ports_[1] = rport; AddPort(rport); } else { ASSERT(false); } } virtual void StartGetAllPorts() { running_ = true; } virtual void StopGetAllPorts() { running_ = false; } virtual bool IsGettingAllPorts() { return running_; } talk_base::SocketAddress GetAddress() const { talk_base::SocketAddress addr(address_); addr.SetPort(GetNextPort()); return addr; } void AddPort(Port* port) { port->set_name(name_); port->set_preference(1.0); port->set_generation(0); port->SignalDestroyed.connect( this, &TestPortAllocatorSession::OnPortDestroyed); port->SignalAddressReady.connect( this, &TestPortAllocatorSession::OnAddressReady); port->PrepareAddress(); SignalPortReady(this, port); } void OnPortDestroyed(Port* port) { for (int i = 0; i < ports_.size(); i++) { if (ports_[i] == port) ports_[i] = NULL; } } void OnAddressReady(Port* port) { SignalCandidatesReady(this, port->candidates()); } private: talk_base::Thread* worker_thread_; talk_base::SocketFactory* factory_; std::string name_; std::vector<Port*> ports_; talk_base::SocketAddress address_; talk_base::Network network_; bool running_; }; class TestPortAllocator : public PortAllocator { public: TestPortAllocator(talk_base::Thread* worker_thread, talk_base::SocketFactory* factory) : worker_thread_(worker_thread), factory_(factory) { if (factory_ == NULL) factory_ = worker_thread_->socketserver(); } virtual PortAllocatorSession *CreateSession(const std::string &name, const std::string &session_type) { return new TestPortAllocatorSession(worker_thread_, factory_, name, session_type); } private: talk_base::Thread* worker_thread_; talk_base::SocketFactory* factory_; }; struct SessionManagerHandler : sigslot::has_slots<> { SessionManagerHandler(SessionManager* m, const std::string& u) : manager(m), username(u), create_count(0), destroy_count(0) { manager->SignalSessionCreate.connect( this, &SessionManagerHandler::OnSessionCreate); manager->SignalSessionDestroy.connect( this, &SessionManagerHandler::OnSessionDestroy); manager->SignalOutgoingMessage.connect( this, &SessionManagerHandler::OnOutgoingMessage); manager->SignalRequestSignaling.connect( this, &SessionManagerHandler::OnRequestSignaling); } void OnSessionCreate(Session *session, bool initiate) { create_count += 1; last_id = session->id(); } void OnSessionDestroy(Session *session) { destroy_count += 1; last_id = session->id(); } void OnOutgoingMessage(const XmlElement* stanza) { XmlElement* elem = new XmlElement(*stanza); ASSERT(elem->Name() == QN_IQ); ASSERT(elem->HasAttr(QN_TO)); ASSERT(!elem->HasAttr(QN_FROM)); ASSERT(elem->HasAttr(QN_TYPE)); ASSERT((elem->Attr(QN_TYPE) == "set") || (elem->Attr(QN_TYPE) == "result") || (elem->Attr(QN_TYPE) == "error")); // Add in the appropriate "from". elem->SetAttr(QN_FROM, username); // Add in the appropriate IQ ID. if (elem->Attr(QN_TYPE) == "set") { ASSERT(!elem->HasAttr(QN_ID)); elem->SetAttr(QN_ID, GetNextID()); } stanzas_.push_back(elem); } void OnRequestSignaling() { manager->OnSignalingReady(); } XmlElement* CheckNextStanza(const std::string& expected) { // Get the next stanza, which should exist. ASSERT(stanzas_.size() > 0); XmlElement* stanza = stanzas_.front(); stanzas_.pop_front(); // Make sure the stanza is correct. std::string actual = stanza->Str(); if (actual != expected) { LOG(LERROR) << "Incorrect stanza: expected=\"" << expected << "\" actual=\"" << actual << "\""; ASSERT(actual == expected); } return stanza; } void CheckNoStanza() { ASSERT(stanzas_.size() == 0); } void PrintNextStanza() { ASSERT(stanzas_.size() > 0); printf("Stanza: %s\n", stanzas_.front()->Str().c_str()); } SessionManager* manager; std::string username; SessionID last_id; uint32 create_count; uint32 destroy_count; std::deque<XmlElement*> stanzas_; }; struct SessionHandler : sigslot::has_slots<> { SessionHandler(Session* s) : session(s) { session->SignalState.connect(this, &SessionHandler::OnState); session->SignalError.connect(this, &SessionHandler::OnError); } void PrepareTransport() { Transport* transport = session->GetTransport(kNsP2pTransport); if (transport != NULL) transport->set_allow_local_ips(true); } void OnState(Session* session, Session::State state) { ASSERT(session == this->session); last_state = state; } void OnError(Session* session, Session::Error error) { ASSERT(session == this->session); ASSERT(false); // errors are bad! } Session* session; Session::State last_state; }; struct MySessionClient: public SessionClient, public sigslot::has_slots<> { MySessionClient() : create_count(0), a(NULL), b(NULL) { } void AddManager(SessionManager* manager) { manager->AddClient(kSessionType, this); ASSERT(manager->GetClient(kSessionType) == this); manager->SignalSessionCreate.connect( this, &MySessionClient::OnSessionCreate); } const SessionDescription* CreateSessionDescription( const XmlElement* element) { return new SessionDescription(); } XmlElement* TranslateSessionDescription( const SessionDescription* description) { return new XmlElement(QName(kSessionType, "description")); } void OnSessionCreate(Session *session, bool initiate) { create_count += 1; a = session->CreateChannel("a"); b = session->CreateChannel("b"); if (transport_name.size() > 0) session->SetPotentialTransports(&transport_name, 1); } void OnSessionDestroy(Session *session) { } void SetTransports(bool p2p, bool raw) { if (p2p && raw) return; // this is the default if (p2p) { transport_name = kNsP2pTransport; } } int create_count; TransportChannel* a; TransportChannel* b; std::string transport_name; }; struct ChannelHandler : sigslot::has_slots<> { ChannelHandler(TransportChannel* p) : channel(p), last_readable(false), last_writable(false), data_count(0), last_size(0) { p->SignalReadableState.connect(this, &ChannelHandler::OnReadableState); p->SignalWritableState.connect(this, &ChannelHandler::OnWritableState); p->SignalReadPacket.connect(this, &ChannelHandler::OnReadPacket); } void OnReadableState(TransportChannel* p) { ASSERT(p == channel); last_readable = channel->readable(); } void OnWritableState(TransportChannel* p) { ASSERT(p == channel); last_writable = channel->writable(); } void OnReadPacket(TransportChannel* p, const char* buf, size_t size) { ASSERT(p == channel); ASSERT(size <= sizeof(last_data)); data_count += 1; last_size = size; std::memcpy(last_data, buf, size); } void Send(const char* data, size_t size) { int result = channel->SendPacket(data, size); ASSERT(result == static_cast<int>(size)); } TransportChannel* channel; bool last_readable, last_writable; int data_count; char last_data[4096]; size_t last_size; }; char* Reverse(const char* str) { int len = strlen(str); char* rev = new char[len+1]; for (int i = 0; i < len; i++) rev[i] = str[len-i-1]; rev[len] = '\0'; return rev; } // Sets up values that should be the same for every test. void InitTest() { SetRandomSeed(7); gPort = 28653; gID = 0; } // Tests having client2 accept the session. void TestAccept(talk_base::Thread* signaling_thread, Session* session1, Session* session2, SessionHandler* handler1, SessionHandler* handler2, SessionManager* manager1, SessionManager* manager2, SessionManagerHandler* manhandler1, SessionManagerHandler* manhandler2) { // Make sure the IQ ID is 5. ASSERT(gID <= 5); while (gID < 5) GetNextID(); // Accept the session. SessionDescription* desc2 = new SessionDescription(); bool valid = session2->Accept(desc2); ASSERT(valid); scoped_ptr<buzz::XmlElement> stanza; stanza.reset(manhandler2->CheckNextStanza( "<cli:iq to=\"[email protected]\" type=\"set\" from=\"[email protected]\" id=\"5\"" " xmlns:cli=\"jabber:client\">" "<session xmlns=\"http://www.google.com/session\" type=\"accept\"" " id=\"2154761789\" initiator=\"[email protected]\">" "<ses:description xmlns:ses=\"http://oink.splat/session\"/>" "</session>" "</cli:iq>")); manhandler2->CheckNoStanza(); // Simulate a tiny delay in sending. signaling_thread->ProcessMessages(10); // Delivery the accept. manager1->OnIncomingMessage(stanza.get()); stanza.reset(manhandler1->CheckNextStanza( "<cli:iq to=\"[email protected]\" id=\"5\" type=\"result\" from=\"[email protected]\"" " xmlns:cli=\"jabber:client\"/>")); manhandler1->CheckNoStanza(); // Both sessions should be in progress after a short wait. signaling_thread->ProcessMessages(10); ASSERT(handler1->last_state == Session::STATE_INPROGRESS); ASSERT(handler2->last_state == Session::STATE_INPROGRESS); } // Tests sending data between two clients, over two channels. void TestSendRecv(ChannelHandler* chanhandler1a, ChannelHandler* chanhandler1b, ChannelHandler* chanhandler2a, ChannelHandler* chanhandler2b, talk_base::Thread* signaling_thread, bool first_dropped) { const char* dat1a = "spamspamspamspamspamspamspambakedbeansspam"; const char* dat1b = "Lobster Thermidor a Crevette with a mornay sauce..."; const char* dat2a = Reverse(dat1a); const char* dat2b = Reverse(dat1b); // Sending from 2 -> 1 will enable 1 to send to 2 below. That will then // enable 2 to send back to 1. So the code below will just work. if (first_dropped) { chanhandler2a->Send(dat2a, strlen(dat2a)); chanhandler2b->Send(dat2b, strlen(dat2b)); } for (int i = 0; i < 20; i++) { chanhandler1a->Send(dat1a, strlen(dat1a)); chanhandler1b->Send(dat1b, strlen(dat1b)); chanhandler2a->Send(dat2a, strlen(dat2a)); chanhandler2b->Send(dat2b, strlen(dat2b)); signaling_thread->ProcessMessages(10); ASSERT(chanhandler1a->data_count == i + 1); ASSERT(chanhandler1b->data_count == i + 1); ASSERT(chanhandler2a->data_count == i + 1); ASSERT(chanhandler2b->data_count == i + 1); ASSERT(chanhandler1a->last_size == strlen(dat2a)); ASSERT(chanhandler1b->last_size == strlen(dat2b)); ASSERT(chanhandler2a->last_size == strlen(dat1a)); ASSERT(chanhandler2b->last_size == strlen(dat1b)); ASSERT(std::memcmp(chanhandler1a->last_data, dat2a, strlen(dat2a)) == 0); ASSERT(std::memcmp(chanhandler1b->last_data, dat2b, strlen(dat2b)) == 0); ASSERT(std::memcmp(chanhandler2a->last_data, dat1a, strlen(dat1a)) == 0); ASSERT(std::memcmp(chanhandler2b->last_data, dat1b, strlen(dat1b)) == 0); } } // Tests a session between two clients. The inputs indicate whether we should // replace each client's output with what we would see from an old client. void TestP2PCompatibility(const std::string& test_name, bool old1, bool old2) { InitTest(); talk_base::Thread* signaling_thread = talk_base::Thread::Current(); scoped_ptr<talk_base::Thread> worker_thread(new talk_base::Thread()); worker_thread->Start(); scoped_ptr<PortAllocator> allocator( new TestPortAllocator(worker_thread.get(), NULL)); scoped_ptr<MySessionClient> client(new MySessionClient()); client->SetTransports(true, false); scoped_ptr<SessionManager> manager1( new SessionManager(allocator.get(), worker_thread.get())); scoped_ptr<SessionManagerHandler> manhandler1( new SessionManagerHandler(manager1.get(), "[email protected]")); client->AddManager(manager1.get()); Session* session1 = manager1->CreateSession("[email protected]", kSessionType); ASSERT(manhandler1->create_count == 1); ASSERT(manhandler1->last_id == session1->id()); scoped_ptr<SessionHandler> handler1(new SessionHandler(session1)); ASSERT(client->create_count == 1); TransportChannel* chan1a = client->a; ASSERT(chan1a->name() == "a"); ASSERT(session1->GetChannel("a") == chan1a); scoped_ptr<ChannelHandler> chanhandler1a(new ChannelHandler(chan1a)); TransportChannel* chan1b = client->b; ASSERT(chan1b->name() == "b"); ASSERT(session1->GetChannel("b") == chan1b); scoped_ptr<ChannelHandler> chanhandler1b(new ChannelHandler(chan1b)); SessionDescription* desc1 = new SessionDescription(); ASSERT(session1->state() == Session::STATE_INIT); bool valid = session1->Initiate("[email protected]", NULL, desc1); ASSERT(valid); handler1->PrepareTransport(); signaling_thread->ProcessMessages(100); ASSERT(handler1->last_state == Session::STATE_SENTINITIATE); scoped_ptr<XmlElement> stanza1, stanza2; stanza1.reset(manhandler1->CheckNextStanza( "<cli:iq to=\"[email protected]\" type=\"set\" from=\"[email protected]\" id=\"0\"" " xmlns:cli=\"jabber:client\">" "<session xmlns=\"http://www.google.com/session\" type=\"initiate\"" " id=\"2154761789\" initiator=\"[email protected]\">" "<ses:description xmlns:ses=\"http://oink.splat/session\"/>" "<p:transport xmlns:p=\"http://www.google.com/transport/p2p\"/>" "</session>" "</cli:iq>")); stanza2.reset(manhandler1->CheckNextStanza( "<cli:iq to=\"[email protected]\" type=\"set\" from=\"[email protected]\" id=\"1\"" " xmlns:cli=\"jabber:client\">" "<session xmlns=\"http://www.google.com/session\" type=\"transport-info\"" " id=\"2154761789\" initiator=\"[email protected]\">" "<p:transport xmlns:p=\"http://www.google.com/transport/p2p\">" "<candidate name=\"a\" address=\"127.0.0.1\" port=\"28653\"" " preference=\"1\" username=\"h0ISP4S5SJKH/9EY\" protocol=\"udp\"" " generation=\"0\" password=\"UhnAmO5C89dD2dZ+\" type=\"local\"" " network=\"network\"/>" "<candidate name=\"a\" address=\"127.0.0.1\" port=\"28658\"" " preference=\"1\" username=\"yid4vfB3zXPvrRB9\" protocol=\"udp\"" " generation=\"0\" password=\"SqLXTvcEyriIo+Mj\" type=\"local\"" " network=\"network\"/>" "<candidate name=\"b\" address=\"127.0.0.1\" port=\"28663\"" " preference=\"1\" username=\"NvT78D7WxPWM1KL8\" protocol=\"udp\"" " generation=\"0\" password=\"+mV/QhOapXu4caPX\" type=\"local\"" " network=\"network\"/>" "<candidate name=\"b\" address=\"127.0.0.1\" port=\"28668\"" " preference=\"1\" username=\"8EzB7MH+TYpIlSp/\" protocol=\"udp\"" " generation=\"0\" password=\"h+MelLXupoK5aYqC\" type=\"local\"" " network=\"network\"/>" "</p:transport>" "</session>" "</cli:iq>")); manhandler1->CheckNoStanza(); // If the first client were old, the initiate would have no transports and // the candidates would be sent in a candidates message. if (old1) { stanza1.reset(XmlElement::ForStr( "<cli:iq to=\"[email protected]\" type=\"set\" from=\"[email protected]\" id=\"0\"" " xmlns:cli=\"jabber:client\">" "<session xmlns=\"http://www.google.com/session\" type=\"initiate\"" " id=\"2154761789\" initiator=\"[email protected]\">" "<ses:description xmlns:ses=\"http://oink.splat/session\"/>" "</session>" "</cli:iq>")); stanza2.reset(XmlElement::ForStr( "<cli:iq to=\"[email protected]\" type=\"set\" from=\"[email protected]\" id=\"1\"" " xmlns:cli=\"jabber:client\">" "<session xmlns=\"http://www.google.com/session\" type=\"candidates\"" " id=\"2154761789\" initiator=\"[email protected]\">" "<candidate name=\"a\" address=\"127.0.0.1\" port=\"28653\"" " preference=\"1\" username=\"h0ISP4S5SJKH/9EY\" protocol=\"udp\"" " generation=\"0\" password=\"UhnAmO5C89dD2dZ+\" type=\"local\"" " network=\"network\"/>" "<candidate name=\"a\" address=\"127.0.0.1\" port=\"28658\"" " preference=\"1\" username=\"yid4vfB3zXPvrRB9\" protocol=\"udp\"" " generation=\"0\" password=\"SqLXTvcEyriIo+Mj\" type=\"local\"" " network=\"network\"/>" "<candidate name=\"b\" address=\"127.0.0.1\" port=\"28663\"" " preference=\"1\" username=\"NvT78D7WxPWM1KL8\" protocol=\"udp\"" " generation=\"0\" password=\"+mV/QhOapXu4caPX\" type=\"local\"" " network=\"network\"/>" "<candidate name=\"b\" address=\"127.0.0.1\" port=\"28668\"" " preference=\"1\" username=\"8EzB7MH+TYpIlSp/\" protocol=\"udp\"" " generation=\"0\" password=\"h+MelLXupoK5aYqC\" type=\"local\"" " network=\"network\"/>" "</session>" "</cli:iq>")); } scoped_ptr<SessionManager> manager2( new SessionManager(allocator.get(), worker_thread.get())); scoped_ptr<SessionManagerHandler> manhandler2( new SessionManagerHandler(manager2.get(), "[email protected]")); client->AddManager(manager2.get()); // Deliver the initiate. manager2->OnIncomingMessage(stanza1.get()); stanza1.reset(manhandler2->CheckNextStanza( "<cli:iq to=\"[email protected]\" id=\"0\" type=\"result\" from=\"[email protected]\"" " xmlns:cli=\"jabber:client\"/>")); // If client1 is old, we will not see a transport-accept. If client2 is old, // then we should act as if it did not send one. if (!old1) { stanza1.reset(manhandler2->CheckNextStanza( "<cli:iq to=\"[email protected]\" type=\"set\" from=\"[email protected]\" id=\"2\"" " xmlns:cli=\"jabber:client\">" "<session xmlns=\"http://www.google.com/session\"" " type=\"transport-accept\" id=\"2154761789\" initiator=\"[email protected]\">" "<p:transport xmlns:p=\"http://www.google.com/transport/p2p\"/>" "</session>" "</cli:iq>")); } else { GetNextID(); // Advance the ID count to be the same in all cases. stanza1.reset(NULL); } if (old2) { stanza1.reset(NULL); } manhandler2->CheckNoStanza(); ASSERT(manhandler2->create_count == 1); ASSERT(manhandler2->last_id == session1->id()); Session* session2 = manager2->GetSession(session1->id()); ASSERT(session2); ASSERT(session1->id() == session2->id()); ASSERT(manhandler2->last_id == session2->id()); ASSERT(session2->state() == Session::STATE_RECEIVEDINITIATE); scoped_ptr<SessionHandler> handler2(new SessionHandler(session2)); handler2->PrepareTransport(); ASSERT(session2->name() == session1->remote_name()); ASSERT(session1->name() == session2->remote_name()); ASSERT(session2->transport() != NULL); ASSERT(session2->transport()->name() == kNsP2pTransport); ASSERT(client->create_count == 2); TransportChannel* chan2a = client->a; scoped_ptr<ChannelHandler> chanhandler2a(new ChannelHandler(chan2a)); TransportChannel* chan2b = client->b; scoped_ptr<ChannelHandler> chanhandler2b(new ChannelHandler(chan2b)); // Deliver the candidates. manager2->OnIncomingMessage(stanza2.get()); stanza2.reset(manhandler2->CheckNextStanza( "<cli:iq to=\"[email protected]\" id=\"1\" type=\"result\" from=\"[email protected]\"" " xmlns:cli=\"jabber:client\"/>")); signaling_thread->ProcessMessages(10); // If client1 is old, we should see a candidates message instead of a // transport-info. If client2 is old, we should act as if we did. const char* kCandidates2 = "<cli:iq to=\"[email protected]\" type=\"set\" from=\"[email protected]\" id=\"3\"" " xmlns:cli=\"jabber:client\">" "<session xmlns=\"http://www.google.com/session\" type=\"candidates\"" " id=\"2154761789\" initiator=\"[email protected]\">" "<candidate name=\"a\" address=\"127.0.0.1\" port=\"28673\"" " preference=\"1\" username=\"FJDz3iuXjbQJDRjs\" protocol=\"udp\"" " generation=\"0\" password=\"Ca5daV9m6G91qhlM\" type=\"local\"" " network=\"network\"/>" "<candidate name=\"a\" address=\"127.0.0.1\" port=\"28678\"" " preference=\"1\" username=\"xlN53r3Jn/R5XuCt\" protocol=\"udp\"" " generation=\"0\" password=\"rgik2pKsjaPSUdJd\" type=\"local\"" " network=\"network\"/>" "<candidate name=\"b\" address=\"127.0.0.1\" port=\"28683\"" " preference=\"1\" username=\"IBZ8CSq8ot2+pSMp\" protocol=\"udp\"" " generation=\"0\" password=\"i7RcDsGntMI6fzdd\" type=\"local\"" " network=\"network\"/>" "<candidate name=\"b\" address=\"127.0.0.1\" port=\"28688\"" " preference=\"1\" username=\"SEtih9PYtMHCAlMI\" protocol=\"udp\"" " generation=\"0\" password=\"wROrHJ3+gDxUUMp1\" type=\"local\"" " network=\"network\"/>" "</session>" "</cli:iq>"; if (old1) { stanza2.reset(manhandler2->CheckNextStanza(kCandidates2)); } else { stanza2.reset(manhandler2->CheckNextStanza( "<cli:iq to=\"[email protected]\" type=\"set\" from=\"[email protected]\" id=\"3\"" " xmlns:cli=\"jabber:client\">" "<session xmlns=\"http://www.google.com/session\" type=\"transport-info\"" " id=\"2154761789\" initiator=\"[email protected]\">" "<p:transport xmlns:p=\"http://www.google.com/transport/p2p\">" "<candidate name=\"a\" address=\"127.0.0.1\" port=\"28673\"" " preference=\"1\" username=\"FJDz3iuXjbQJDRjs\" protocol=\"udp\"" " generation=\"0\" password=\"Ca5daV9m6G91qhlM\" type=\"local\"" " network=\"network\"/>" "<candidate name=\"a\" address=\"127.0.0.1\" port=\"28678\"" " preference=\"1\" username=\"xlN53r3Jn/R5XuCt\" protocol=\"udp\"" " generation=\"0\" password=\"rgik2pKsjaPSUdJd\" type=\"local\"" " network=\"network\"/>" "<candidate name=\"b\" address=\"127.0.0.1\" port=\"28683\"" " preference=\"1\" username=\"IBZ8CSq8ot2+pSMp\" protocol=\"udp\"" " generation=\"0\" password=\"i7RcDsGntMI6fzdd\" type=\"local\"" " network=\"network\"/>" "<candidate name=\"b\" address=\"127.0.0.1\" port=\"28688\"" " preference=\"1\" username=\"SEtih9PYtMHCAlMI\" protocol=\"udp\"" " generation=\"0\" password=\"wROrHJ3+gDxUUMp1\" type=\"local\"" " network=\"network\"/>" "</p:transport>" "</session>" "</cli:iq>")); } if (old2) { stanza2.reset(XmlElement::ForStr(kCandidates2)); } manhandler2->CheckNoStanza(); // Deliver the transport-accept if one exists. if (stanza1.get() != NULL) { manager1->OnIncomingMessage(stanza1.get()); stanza1.reset(manhandler1->CheckNextStanza( "<cli:iq to=\"[email protected]\" id=\"2\" type=\"result\" from=\"[email protected]\"" " xmlns:cli=\"jabber:client\"/>")); manhandler1->CheckNoStanza(); // The first session should now have a transport. ASSERT(session1->transport() != NULL); ASSERT(session1->transport()->name() == kNsP2pTransport); } // Deliver the candidates. If client2 is old (or is acting old because // client1 is), then client1 will correct its earlier mistake of sending // transport-info by sending a candidates message. If client1 is supposed to // be old, then it sent candidates earlier, so we drop this. manager1->OnIncomingMessage(stanza2.get()); if (old1 || old2) { stanza2.reset(manhandler1->CheckNextStanza( "<cli:iq to=\"[email protected]\" type=\"set\" from=\"[email protected]\" id=\"4\"" " xmlns:cli=\"jabber:client\">" "<session xmlns=\"http://www.google.com/session\" type=\"candidates\"" " id=\"2154761789\" initiator=\"[email protected]\">" "<candidate name=\"a\" address=\"127.0.0.1\" port=\"28653\"" " preference=\"1\" username=\"h0ISP4S5SJKH/9EY\" protocol=\"udp\"" " generation=\"0\" password=\"UhnAmO5C89dD2dZ+\" type=\"local\"" " network=\"network\"/>" "<candidate name=\"a\" address=\"127.0.0.1\" port=\"28658\"" " preference=\"1\" username=\"yid4vfB3zXPvrRB9\" protocol=\"udp\"" " generation=\"0\" password=\"SqLXTvcEyriIo+Mj\" type=\"local\"" " network=\"network\"/>" "<candidate name=\"b\" address=\"127.0.0.1\" port=\"28663\"" " preference=\"1\" username=\"NvT78D7WxPWM1KL8\" protocol=\"udp\"" " generation=\"0\" password=\"+mV/QhOapXu4caPX\" type=\"local\"" " network=\"network\"/>" "<candidate name=\"b\" address=\"127.0.0.1\" port=\"28668\"" " preference=\"1\" username=\"8EzB7MH+TYpIlSp/\" protocol=\"udp\"" " generation=\"0\" password=\"h+MelLXupoK5aYqC\" type=\"local\"" " network=\"network\"/>" "</session>" "</cli:iq>")); } else { GetNextID(); // Advance the ID count to be the same in all cases. stanza2.reset(NULL); } if (old1) { stanza2.reset(NULL); } stanza1.reset(manhandler1->CheckNextStanza( "<cli:iq to=\"[email protected]\" id=\"3\" type=\"result\" from=\"[email protected]\"" " xmlns:cli=\"jabber:client\"/>")); manhandler1->CheckNoStanza(); // The first session must have a transport in either case now. ASSERT(session1->transport() != NULL); ASSERT(session1->transport()->name() == kNsP2pTransport); // If client1 just generated a candidates message, then we must deliver it. if (stanza2.get() != NULL) { manager2->OnIncomingMessage(stanza2.get()); stanza2.reset(manhandler2->CheckNextStanza( "<cli:iq to=\"[email protected]\" id=\"4\" type=\"result\" from=\"[email protected]\"" " xmlns:cli=\"jabber:client\"/>")); manhandler2->CheckNoStanza(); } // The channels should be able to become writable at this point. This // requires pinging, so it may take a little while. signaling_thread->ProcessMessages(500); ASSERT(chan1a->writable() && chan1a->readable()); ASSERT(chan1b->writable() && chan1b->readable()); ASSERT(chan2a->writable() && chan2a->readable()); ASSERT(chan2b->writable() && chan2b->readable()); ASSERT(chanhandler1a->last_writable); ASSERT(chanhandler1b->last_writable); ASSERT(chanhandler2a->last_writable); ASSERT(chanhandler2b->last_writable); // Accept the session. TestAccept(signaling_thread, session1, session2, handler1.get(), handler2.get(), manager1.get(), manager2.get(), manhandler1.get(), manhandler2.get()); // Send a bunch of data between them. TestSendRecv(chanhandler1a.get(), chanhandler1b.get(), chanhandler2a.get(), chanhandler2b.get(), signaling_thread, false); manager1->DestroySession(session1); manager2->DestroySession(session2); ASSERT(manhandler1->create_count == 1); ASSERT(manhandler2->create_count == 1); ASSERT(manhandler1->destroy_count == 1); ASSERT(manhandler2->destroy_count == 1); worker_thread->Stop(); std::cout << "P2P Compatibility: " << test_name << ": PASS" << std::endl; } // Tests the P2P transport. The flags indicate whether they clients will // advertise support for raw as well. void TestP2P(const std::string& test_name, bool raw1, bool raw2) { InitTest(); talk_base::Thread* signaling_thread = talk_base::Thread::Current(); scoped_ptr<talk_base::Thread> worker_thread(new talk_base::Thread()); worker_thread->Start(); scoped_ptr<PortAllocator> allocator( new TestPortAllocator(worker_thread.get(), NULL)); scoped_ptr<MySessionClient> client1(new MySessionClient()); client1->SetTransports(true, raw1); scoped_ptr<MySessionClient> client2(new MySessionClient()); client2->SetTransports(true, raw2); scoped_ptr<SessionManager> manager1( new SessionManager(allocator.get(), worker_thread.get())); scoped_ptr<SessionManagerHandler> manhandler1( new SessionManagerHandler(manager1.get(), "[email protected]")); client1->AddManager(manager1.get()); Session* session1 = manager1->CreateSession("[email protected]", kSessionType); ASSERT(manhandler1->create_count == 1); ASSERT(manhandler1->last_id == session1->id()); scoped_ptr<SessionHandler> handler1(new SessionHandler(session1)); ASSERT(client1->create_count == 1); TransportChannel* chan1a = client1->a; ASSERT(chan1a->name() == "a"); ASSERT(session1->GetChannel("a") == chan1a); scoped_ptr<ChannelHandler> chanhandler1a(new ChannelHandler(chan1a)); TransportChannel* chan1b = client1->b; ASSERT(chan1b->name() == "b"); ASSERT(session1->GetChannel("b") == chan1b); scoped_ptr<ChannelHandler> chanhandler1b(new ChannelHandler(chan1b)); SessionDescription* desc1 = new SessionDescription(); ASSERT(session1->state() == Session::STATE_INIT); bool valid = session1->Initiate("[email protected]", NULL, desc1); ASSERT(valid); handler1->PrepareTransport(); signaling_thread->ProcessMessages(100); ASSERT(handler1->last_state == Session::STATE_SENTINITIATE); scoped_ptr<XmlElement> stanza1, stanza2; if (raw1) { stanza1.reset(manhandler1->CheckNextStanza( "<cli:iq to=\"[email protected]\" type=\"set\" from=\"[email protected]\" id=\"0\"" " xmlns:cli=\"jabber:client\">" "<session xmlns=\"http://www.google.com/session\" type=\"initiate\"" " id=\"2154761789\" initiator=\"[email protected]\">" "<ses:description xmlns:ses=\"http://oink.splat/session\"/>" "<p:transport xmlns:p=\"http://www.google.com/transport/p2p\"/>" "<raw:transport xmlns:raw=\"http://www.google.com/transport/raw\"/>" "</session>" "</cli:iq>")); } else { stanza1.reset(manhandler1->CheckNextStanza( "<cli:iq to=\"[email protected]\" type=\"set\" from=\"[email protected]\" id=\"0\"" " xmlns:cli=\"jabber:client\">" "<session xmlns=\"http://www.google.com/session\" type=\"initiate\"" " id=\"2154761789\" initiator=\"[email protected]\">" "<ses:description xmlns:ses=\"http://oink.splat/session\"/>" "<p:transport xmlns:p=\"http://www.google.com/transport/p2p\"/>" "</session>" "</cli:iq>")); } stanza2.reset(manhandler1->CheckNextStanza( "<cli:iq to=\"[email protected]\" type=\"set\" from=\"[email protected]\" id=\"1\"" " xmlns:cli=\"jabber:client\">" "<session xmlns=\"http://www.google.com/session\" type=\"transport-info\"" " id=\"2154761789\" initiator=\"[email protected]\">" "<p:transport xmlns:p=\"http://www.google.com/transport/p2p\">" "<candidate name=\"a\" address=\"127.0.0.1\" port=\"28653\"" " preference=\"1\" username=\"h0ISP4S5SJKH/9EY\" protocol=\"udp\"" " generation=\"0\" password=\"UhnAmO5C89dD2dZ+\" type=\"local\"" " network=\"network\"/>" "<candidate name=\"a\" address=\"127.0.0.1\" port=\"28658\"" " preference=\"1\" username=\"yid4vfB3zXPvrRB9\" protocol=\"udp\"" " generation=\"0\" password=\"SqLXTvcEyriIo+Mj\" type=\"local\"" " network=\"network\"/>" "<candidate name=\"b\" address=\"127.0.0.1\" port=\"28663\"" " preference=\"1\" username=\"NvT78D7WxPWM1KL8\" protocol=\"udp\"" " generation=\"0\" password=\"+mV/QhOapXu4caPX\" type=\"local\"" " network=\"network\"/>" "<candidate name=\"b\" address=\"127.0.0.1\" port=\"28668\"" " preference=\"1\" username=\"8EzB7MH+TYpIlSp/\" protocol=\"udp\"" " generation=\"0\" password=\"h+MelLXupoK5aYqC\" type=\"local\"" " network=\"network\"/>" "</p:transport>" "</session>" "</cli:iq>")); manhandler1->CheckNoStanza(); scoped_ptr<SessionManager> manager2( new SessionManager(allocator.get(), worker_thread.get())); scoped_ptr<SessionManagerHandler> manhandler2( new SessionManagerHandler(manager2.get(), "[email protected]")); client2->AddManager(manager2.get()); // Deliver the initiate. manager2->OnIncomingMessage(stanza1.get()); stanza1.reset(manhandler2->CheckNextStanza( "<cli:iq to=\"[email protected]\" id=\"0\" type=\"result\" from=\"[email protected]\"" " xmlns:cli=\"jabber:client\"/>")); stanza1.reset(manhandler2->CheckNextStanza( "<cli:iq to=\"[email protected]\" type=\"set\" from=\"[email protected]\" id=\"2\"" " xmlns:cli=\"jabber:client\">" "<session xmlns=\"http://www.google.com/session\"" " type=\"transport-accept\" id=\"2154761789\" initiator=\"[email protected]\">" "<p:transport xmlns:p=\"http://www.google.com/transport/p2p\"/>" "</session>" "</cli:iq>")); manhandler2->CheckNoStanza(); ASSERT(manhandler2->create_count == 1); ASSERT(manhandler2->last_id == session1->id()); Session* session2 = manager2->GetSession(session1->id()); ASSERT(session2); ASSERT(session1->id() == session2->id()); ASSERT(manhandler2->last_id == session2->id()); ASSERT(session2->state() == Session::STATE_RECEIVEDINITIATE); scoped_ptr<SessionHandler> handler2(new SessionHandler(session2)); handler2->PrepareTransport(); ASSERT(session2->name() == session1->remote_name()); ASSERT(session1->name() == session2->remote_name()); ASSERT(session2->transport() != NULL); ASSERT(session2->transport()->name() == kNsP2pTransport); ASSERT(client2->create_count == 1); TransportChannel* chan2a = client2->a; scoped_ptr<ChannelHandler> chanhandler2a(new ChannelHandler(chan2a)); TransportChannel* chan2b = client2->b; scoped_ptr<ChannelHandler> chanhandler2b(new ChannelHandler(chan2b)); // Deliver the candidates. manager2->OnIncomingMessage(stanza2.get()); stanza2.reset(manhandler2->CheckNextStanza( "<cli:iq to=\"[email protected]\" id=\"1\" type=\"result\" from=\"[email protected]\"" " xmlns:cli=\"jabber:client\"/>")); signaling_thread->ProcessMessages(10); stanza2.reset(manhandler2->CheckNextStanza( "<cli:iq to=\"[email protected]\" type=\"set\" from=\"[email protected]\" id=\"3\"" " xmlns:cli=\"jabber:client\">" "<session xmlns=\"http://www.google.com/session\" type=\"transport-info\"" " id=\"2154761789\" initiator=\"[email protected]\">" "<p:transport xmlns:p=\"http://www.google.com/transport/p2p\">" "<candidate name=\"a\" address=\"127.0.0.1\" port=\"28673\"" " preference=\"1\" username=\"FJDz3iuXjbQJDRjs\" protocol=\"udp\"" " generation=\"0\" password=\"Ca5daV9m6G91qhlM\" type=\"local\"" " network=\"network\"/>" "<candidate name=\"a\" address=\"127.0.0.1\" port=\"28678\"" " preference=\"1\" username=\"xlN53r3Jn/R5XuCt\" protocol=\"udp\"" " generation=\"0\" password=\"rgik2pKsjaPSUdJd\" type=\"local\"" " network=\"network\"/>" "<candidate name=\"b\" address=\"127.0.0.1\" port=\"28683\"" " preference=\"1\" username=\"IBZ8CSq8ot2+pSMp\" protocol=\"udp\"" " generation=\"0\" password=\"i7RcDsGntMI6fzdd\" type=\"local\"" " network=\"network\"/>" "<candidate name=\"b\" address=\"127.0.0.1\" port=\"28688\"" " preference=\"1\" username=\"SEtih9PYtMHCAlMI\" protocol=\"udp\"" " generation=\"0\" password=\"wROrHJ3+gDxUUMp1\" type=\"local\"" " network=\"network\"/>" "</p:transport>" "</session>" "</cli:iq>")); manhandler2->CheckNoStanza(); // Deliver the transport-accept. manager1->OnIncomingMessage(stanza1.get()); stanza1.reset(manhandler1->CheckNextStanza( "<cli:iq to=\"[email protected]\" id=\"2\" type=\"result\" from=\"[email protected]\"" " xmlns:cli=\"jabber:client\"/>")); manhandler1->CheckNoStanza(); // The first session should now have a transport. ASSERT(session1->transport() != NULL); ASSERT(session1->transport()->name() == kNsP2pTransport); // Deliver the candidates. manager1->OnIncomingMessage(stanza2.get()); stanza1.reset(manhandler1->CheckNextStanza( "<cli:iq to=\"[email protected]\" id=\"3\" type=\"result\" from=\"[email protected]\"" " xmlns:cli=\"jabber:client\"/>")); manhandler1->CheckNoStanza(); // The channels should be able to become writable at this point. This // requires pinging, so it may take a little while. signaling_thread->ProcessMessages(500); ASSERT(chan1a->writable() && chan1a->readable()); ASSERT(chan1b->writable() && chan1b->readable()); ASSERT(chan2a->writable() && chan2a->readable()); ASSERT(chan2b->writable() && chan2b->readable()); ASSERT(chanhandler1a->last_writable); ASSERT(chanhandler1b->last_writable); ASSERT(chanhandler2a->last_writable); ASSERT(chanhandler2b->last_writable); // Accept the session. TestAccept(signaling_thread, session1, session2, handler1.get(), handler2.get(), manager1.get(), manager2.get(), manhandler1.get(), manhandler2.get()); // Send a bunch of data between them. TestSendRecv(chanhandler1a.get(), chanhandler1b.get(), chanhandler2a.get(), chanhandler2b.get(), signaling_thread, false); manager1->DestroySession(session1); manager2->DestroySession(session2); ASSERT(manhandler1->create_count == 1); ASSERT(manhandler2->create_count == 1); ASSERT(manhandler1->destroy_count == 1); ASSERT(manhandler2->destroy_count == 1); worker_thread->Stop(); std::cout << "P2P: " << test_name << ": PASS" << std::endl; } // int main(int argc, char* argv[]) { talk_base::LogMessage::LogToDebug(talk_base::LS_WARNING); TestP2P("{p2p} => {p2p}", false, false); TestP2P("{p2p} => {p2p,raw}", false, true); TestP2P("{p2p,raw} => {p2p}", true, false); TestP2P("{p2p,raw} => {p2p,raw}", true, true); TestP2PCompatibility("New => New", false, false); TestP2PCompatibility("Old => New", true, false); TestP2PCompatibility("New => Old", false, true); TestP2PCompatibility("Old => Old", true, true); return 0; }
[ "pescuma@3cd5de0c-97d6-f89e-5382-93ac1fc1917b" ]
pescuma@3cd5de0c-97d6-f89e-5382-93ac1fc1917b
362334fab1d61f7aa205516563b438b874580697
5178ebecc4458b360b7593e31353ab18e519953e
/src/geners-1.11.1/geners/AbsReaderWriter.hh
1d182304b7ec25ecacd34a40ee77cc3824d6e3b6
[ "MIT" ]
permissive
KanZhang23/Tmass
9ee2baff245a1842e3ceaaa04eb8f5fb923faea9
6cf430a7a8e717874298d99977cb50c8943bb1b9
refs/heads/master
2022-01-10T10:51:49.627777
2019-06-12T14:53:17
2019-06-12T14:53:17
null
0
0
null
null
null
null
UTF-8
C++
false
false
5,303
hh
#ifndef GENERS_ABSREADERWRITER_HH_ #define GENERS_ABSREADERWRITER_HH_ //========================================================================= // AbsReaderWriter.hh // // Template implementation of a factory pattern for reading/writing // inheritance hierarchies which are not under your control (that is, // you can't add virtual "classId" and "write" methods to the classes // in the hierarchy). // // The manner in which the I/O is envisioned for such classes is creation // of one I/O wrapper class for each class in the hierarchy. The I/O class // should be derived from AbsReaderWriter template parameterized upon the // top-level base in the hierarchy. // // In you want to use this facility, C++11 support is required. // // I. Volobouev // April 2015 //========================================================================= #include "geners/CPP11_config.hh" // C++11 support is needed for <typeindex> header #ifdef CPP11_STD_AVAILABLE #include <map> #include <memory> #include <sstream> #include <stdexcept> #include <typeinfo> #include <typeindex> #include "geners/ClassId.hh" namespace gs { template<class Base> struct AbsReaderWriter { typedef Base wrapped_base; inline virtual ~AbsReaderWriter() {} virtual bool write(std::ostream& of, const wrapped_base& b, bool dumpId) const = 0; virtual wrapped_base* read(const gs::ClassId& id, std::istream& in) const = 0; }; template<class Base> class DefaultReaderWriter { public: typedef Base value_type; inline DefaultReaderWriter() {} inline virtual ~DefaultReaderWriter() { for (typename std::map<std::string, AbsReaderWriter<Base>*>:: iterator it = readMap_.begin(); it != readMap_.end(); ++it) delete it->second; } inline bool write(std::ostream& of, const Base& b, const bool dumpId) const { const std::type_info& cppid(typeid(b)); typename std::map<std::type_index, AbsReaderWriter<Base>*>:: const_iterator it = writeMap_.find(std::type_index(cppid)); if (it == writeMap_.end()) { std::ostringstream os; os << "In gs::DefaultReaderWriter::write: serialization wrapper " << "for class \"" << cppid.name() << "\" is not registered"; throw std::invalid_argument(os.str()); } return it->second->write(of, b, dumpId); } inline Base* read(const gs::ClassId& id, std::istream& in) const { typename std::map<std::string, AbsReaderWriter<Base>*>:: const_iterator it = readMap_.find(id.name()); if (it == readMap_.end()) { std::ostringstream os; os << "In gs::DefaultReaderWriter::read: serialization wrapper " << "for class \"" << id.name() << "\" is not registered"; throw std::invalid_argument(os.str()); } return it->second->read(id, in); } template <class ReaderWriter> inline void registerWrapper() { typedef typename ReaderWriter::wrapped_type Derived; const gs::ClassId& id(gs::ClassId::makeId<Derived>()); std::unique_ptr<ReaderWriter> upt(new ReaderWriter()); writeMap_[std::type_index(typeid(Derived))] = &*upt; delete readMap_[id.name()]; readMap_[id.name()] = upt.release(); } template <class ReaderWriter> inline void unregisterWrapper() { typedef typename ReaderWriter::wrapped_type Derived; const gs::ClassId& id(gs::ClassId::makeId<Derived>()); delete readMap_[id.name()]; readMap_.erase(id.name()); writeMap_.erase(std::type_index(typeid(Derived))); } private: DefaultReaderWriter(const DefaultReaderWriter&); DefaultReaderWriter& operator=(const DefaultReaderWriter&); std::map<std::string, AbsReaderWriter<Base>*> readMap_; std::map<std::type_index, AbsReaderWriter<Base>*> writeMap_; }; // Meyers singleton for use with reader/writer factories. // Assume that "Factory" is derived from "DefaultReaderWriter". // template <class Factory> class StaticReaderWriter { public: static const Factory& instance() { static Factory obj; return obj; } template <class ReaderWriter> static void registerWrapper() { Factory& f = const_cast<Factory&>(instance()); f.template registerWrapper<ReaderWriter>(); } // // Use the following method if you want to dynamically unload // a shared library which registered some wrappers // template <class ReaderWriter> static void unregisterWrapper() { Factory& f = const_cast<Factory&>(instance()); f.template unregisterWrapper<ReaderWriter>(); } private: // Disable the constructor StaticReaderWriter(); }; } #endif // CPP11_STD_AVAILABLE #endif // GENERS_ABSREADERWRITER_HH_
cd4a83ef0490dd0f5e81b73a836eb780d873c79f
dc26e87f7d72e33809d3285a9ec647b8ec0bbdd9
/include/kiui/Object/mkIndexer.h
6b7eb25d0f4141de956d6a8c5fd793c4e2faea50
[ "MIT" ]
permissive
mflagel/asdf_multiplat
3fc74126dbbad365bca1715cb55377b320f6c161
9ef5a87b9ea9e38a7c6d409a60a1b8c5dce4b015
refs/heads/master
2021-04-19T01:18:19.155494
2019-02-06T20:10:07
2019-02-06T20:10:07
49,748,841
0
0
null
null
null
null
UTF-8
C++
false
false
2,829
h
// Copyright (c) 2015 Hugo Amiard [email protected] // This software is provided 'as-is' under the zlib License, see the LICENSE.txt file. // This notice and the license may not be removed or altered from any source distribution. #ifndef MK_INDEXER_H_INCLUDED #define MK_INDEXER_H_INCLUDED /* mk */ #include <Object/mkObjectForward.h> #include <Object/Iterable/mkIterable.h> #include <Object/Util/mkNonCopy.h> #include <Object/mkTyped.h> /* Standard */ #include <vector> #include <memory> #include <algorithm> #include <type_traits> namespace mk { #ifndef OBJECT_EXPORT template class MK_OBJECT_EXPORT Store<TypeObject>; #endif class MK_OBJECT_EXPORT Indexer : public Store<TypeObject>, public NonCopy { public: Indexer(Type& type) : mType(type), mCount(0), mObjects() { mType.setupIndexer(this); mObjects.emplace_back(nullptr); } ~Indexer() {} std::vector<IdObject*>& objects() { return mObjects; } size_t vsize() const { return size(); } void vclear() { clear(); } Type& sequenceType() const { return mType; } void vadd(TypeObject& object) { this->add(object.as<IdObject>()); } size_t vindex(Object& object) { return object.as<IdObject>().id(); } size_t vindex(TypeObject& object) { return object.as<IdObject>().id(); } void add(IdObject& object) { if(object.id() >= mObjects.size()) mObjects.resize(object.id() + 1); mObjects[object.id()] = &object; ++mCount; } void insert(IdObject& object, Id id) { if(id >= mObjects.size()) mObjects.resize(id + 1); mObjects[id] = &object; ++mCount; } void remove(IdObject& object) { mObjects[object.id()] = nullptr; --mCount; } IdObject* at(Id id) { if(id < mObjects.size()) return mObjects[id]; else return nullptr; } Id alloc() { return mObjects.size(); } size_t size() const { return mCount; } void viterateobj(const std::function<void(Object*)>& callback) { for(Object* object : mObjects) callback(object); } void clear() { mObjects.clear(); mCount = 0; } void viterate(const std::function<void(TypeObject*)>& callback) { for(TypeObject* object : mObjects) callback(object); } TypeObject* vat(size_t pos) { return at(pos); } void addObserver(StoreObserver<TypeObject>* observer) { mObservers.push_back(observer); for(TypeObject* object : mObjects) if(object) observer->handleAdd(object); } void removeObserver(StoreObserver<TypeObject>* observer) { mObservers.erase(std::remove(mObservers.begin(), mObservers.end(), observer), mObservers.end()); } protected: Type& mType; std::vector<IdObject*> mObjects; size_t mCount; std::vector<StoreObserver<TypeObject>*> mObservers; }; template <class T, class I = void> class Indexed { public: static inline Indexer& indexer() { static Indexer ind(T::cls()); return ind; } //return &sIndexer; } }; } #endif // MK_INDEXER_H_INCLUDED
73a63f446ef93e37fb334ecffaf732090d97eb1c
77f7251a04b068f68d02b201c4e646327686216d
/c++14/Basics/test2.cpp
119bce42c74b81eac0ddfb63728d463f1e761334
[]
no_license
venkatesh551/goals
5288fc22dcb099b877beb5ed8c70f8cb366b66f6
af4215653b41d1adb07f6bc0ff663869b77f91ab
refs/heads/master
2021-01-19T16:45:20.556588
2019-10-01T11:44:39
2019-10-01T11:44:39
101,011,830
0
0
null
2020-10-13T10:58:40
2017-08-22T02:24:33
C++
UTF-8
C++
false
false
877
cpp
#include <iostream> class Base { public: int a {3}; }; class D : public Base { public: void print() { std::cout << a << " : " << x << std::endl; } private: int x {2}; }; class A { public: A operator+(A & src) { x += src.x; return *this; } void print() { std::cout << x << std::endl; } private: int x {10}; }; class X { public: // members (with implicit this pointer): X* operator&(); X operator&(X); X operator++(int); // X operator&(X,X); // X operator/(); }; // nonmember functions : X operator-(X); X operator-(X,X); X operator--(X&,int); // X operator-(); // X operator−(X,X,X); // X operator%(X); int main() { A obj; obj.print(); obj.operator+(A{}); obj.print(); return 0; }
c973fd5b1d86c3f0b7a278f13e96e0742d725154
184b815c8edb5ea15b2c7482be3510315c5029c5
/BMPtoASMconvertor/BMPtoASMconvertor.h
f17592e5a4c5b999ed531539f8af08a308ffe821
[]
no_license
SaadBazaz/antiPixel
f1558708d6446d0c6d2e153094e14b9c2a4165b7
2f4f736fc12d5223f13f3f3e1be655a9a5fd6cb7
refs/heads/master
2020-09-05T22:03:58.000289
2020-07-13T17:31:44
2020-07-13T17:31:44
220,226,848
13
1
null
null
null
null
UTF-8
C++
false
false
942
h
#pragma once #include <iostream> void exitProgram() { std::cout << "Thank you for using this program!" << std::endl; exit(1); } void loadSettings(Config &UserConfig) { try { UserConfig = loadUserConfig(); } catch (out_of_range& e) { cout << "Oops, we hit a snag! " << e.what() << endl; cout << "Do you wish to restore default settings? (Y / N)" << endl; char option; cin >> option; if (option == 'y' or option == 'Y') { cout << "Restoring default settings..." << endl; writeUserConfig(UserConfig); } else exitProgram(); } catch (invalid_argument& e) { cout << "Oops, we hit a snag! " << e.what() << endl; cout << "Do you wish to restore default settings? (Y / N)" << endl; char option; cin >> option; if (option == 'y' or option == 'Y') { cout << "Restoring default settings..." << endl; writeUserConfig(UserConfig); } else exitProgram(); } }
18e5f6e6437d1e31ca6e4ce0a1c32f73c50a25a6
4191f0e882fe057ebd25bbc0d05f44b3c939047f
/Shembujt ne ligjerata/Intervali ne mes te dy numrave.cpp
3e0cd5b028655c67151fa9d1d4a6464b2db6a77f
[]
no_license
ksylejmani/Algorithms-and-data-structures-2020-2021
e77350b43e8ce0f1a154a982b5b873cf96f75d3d
4cb58b09b6ab69ad28933fbd86a7675210d41aeb
refs/heads/main
2023-03-14T04:01:25.088536
2021-03-10T14:39:06
2021-03-10T14:39:06
340,482,254
1
0
null
null
null
null
UTF-8
C++
false
false
657
cpp
//#include<iostream> //using namespace std; //class numri { //private: // int a, b, c; //public: // numri(); // void shtyp_intervalin(); // void vendos_a(int _a) {//set // if (_a >= 0 && _a<= 150) { // a = _a; // } // else { // cout << "Vlera e caktuar nuk lejohet\n"; // } // } // int merre_a() {//get // return a; // } //}; //void main() { // numri n; // n.shtyp_intervalin(); // n.vendos_a(1); // n.shtyp_intervalin(); //} //numri::numri() { // cout << "Cakto a, b dhe c: "; // cin >> a >> b >> c; //} //void numri::shtyp_intervalin() { // int i = a; // while (i <= c) { // if (i != b) // cout << i << " "; // i++; // } // cout << endl; //}
89f8fc1c9e106920399c00710c39ab0b97ae34b0
2c35da61dc41f8ff2c1588a2e66b61ca90cd1f3a
/src/lib/utils/noise/module/turbulence.cpp
2080ebc9e0bd1bf5d71f6706b8949c1681f97c6a
[]
no_license
vkaytsanov/AngryBirds
5858b3dad02940f21dfa849153a134645ecc2191
2cc1a7494f1c2c337461df73c4f43c57bfa57770
refs/heads/master
2023-06-17T10:27:37.254180
2021-07-08T11:37:00
2021-07-08T11:37:00
364,853,524
0
0
null
null
null
null
UTF-8
C++
false
false
3,210
cpp
// turbulence.cpp // // Copyright (C) 2003, 2004 Jason Bevins // // This library is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation; either version 2.1 of the License, or (at // your option) any later version. // // This library is distributed in the hope that it will be useful, but WITHOUT // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or // FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public // License (COPYING.txt) for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this library; if not, write to the Free Software Foundation, // Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // // The developer's email is [email protected] (for great email, take // off every 'zig'.) // #include "turbulence.h" using namespace noise::module; Turbulence::Turbulence() : Module(GetSourceModuleCount()), m_power(DEFAULT_TURBULENCE_POWER) { SetSeed(DEFAULT_TURBULENCE_SEED); SetFrequency(DEFAULT_TURBULENCE_FREQUENCY); SetRoughness(DEFAULT_TURBULENCE_ROUGHNESS); } double Turbulence::GetFrequency() const { // Since each noise::module::Perlin noise module has the same frequency, it // does not matter which module we use to retrieve the frequency. return m_xDistortModule.GetFrequency(); } int Turbulence::GetSeed() const { return m_xDistortModule.GetSeed(); } double Turbulence::GetValue(double x, double y, double z) const { assert (m_pSourceModule[0] != NULL); // Get the values from the three noise::module::Perlin noise m_modules and // add each value to each coordinate of the input value. There are also // some offsets added to the coordinates of the input values. This prevents // the distortion m_modules from returning zero if the (x, y, z) coordinates, // when multiplied by the frequency, are near an integer boundary. This is // due to a property of gradient coherent noise, which returns zero at // integer boundaries. double x0, y0, z0; double x1, y1, z1; double x2, y2, z2; x0 = x + (12414.0 / 65536.0); y0 = y + (65124.0 / 65536.0); z0 = z + (31337.0 / 65536.0); x1 = x + (26519.0 / 65536.0); y1 = y + (18128.0 / 65536.0); z1 = z + (60493.0 / 65536.0); x2 = x + (53820.0 / 65536.0); y2 = y + (11213.0 / 65536.0); z2 = z + (44845.0 / 65536.0); double xDistort = x + (m_xDistortModule.GetValue(x0, y0, z0) * m_power); double yDistort = y + (m_yDistortModule.GetValue(x1, y1, z1) * m_power); double zDistort = z + (m_zDistortModule.GetValue(x2, y2, z2) * m_power); // Retrieve the output value at the offsetted input value instead of the // original input value. return m_pSourceModule[0]->GetValue(xDistort, yDistort, zDistort); } void Turbulence::SetSeed(int seed) { // Set the seed of each noise::module::Perlin noise m_modules. To prevent any // sort of weird artifacting, use a slightly different seed for each noise // module. m_xDistortModule.SetSeed(seed); m_yDistortModule.SetSeed(seed + 1); m_zDistortModule.SetSeed(seed + 2); }
df41dc6c106a2afebcc02e61ab7112b080c91fb5
e91bd42e10b3dc3e44e48d6d35ed6a046cc2017d
/src/qt/bitcoinstrings.cpp
4fdf84c9c261957fbe4847e2d9a9bc0c6f4c9fd3
[ "MIT" ]
permissive
Returnbit/Returnbit
e05281a220f1cb0a3c61b8aef2638abeb249b11e
b6e03d59b81db8a60af7b4c136c83e363832fbae
refs/heads/master
2020-04-10T22:47:30.295544
2017-10-18T05:20:42
2017-10-18T05:20:42
68,941,035
0
1
null
2017-01-11T23:52:41
2016-09-22T16:34:05
C++
UTF-8
C++
false
false
19,767
cpp
#include <QtGlobal> // Automatically generated by extract_strings.py #ifdef __GNUC__ #define UNUSED __attribute__((unused)) #else #define UNUSED #endif static const char UNUSED *bitcoin_strings[] = { QT_TRANSLATE_NOOP("bitcoin-core", "" "(1 = keep tx meta data e.g. account owner and payment request information, 2 " "= drop tx meta data)"), QT_TRANSLATE_NOOP("bitcoin-core", "" "Allow JSON-RPC connections from specified source. Valid for <ip> are a " "single IP (e.g. 1.2.3.4), a network/netmask (e.g. 1.2.3.4/255.255.255.0) or " "a network/CIDR (e.g. 1.2.3.4/24). This option can be specified multiple times"), QT_TRANSLATE_NOOP("bitcoin-core", "" "An error occurred while setting up the RPC address %s port %u for listening: " "%s"), QT_TRANSLATE_NOOP("bitcoin-core", "" "Bind to given address and always listen on it. Use [host]:port notation for " "IPv6"), QT_TRANSLATE_NOOP("bitcoin-core", "" "Bind to given address and whitelist peers connecting to it. Use [host]:port " "notation for IPv6"), QT_TRANSLATE_NOOP("bitcoin-core", "" "Bind to given address to listen for JSON-RPC connections. Use [host]:port " "notation for IPv6. This option can be specified multiple times (default: " "bind to all interfaces)"), QT_TRANSLATE_NOOP("bitcoin-core", "" "Cannot obtain a lock on data directory %s. Returnbit Core is probably already " "running."), QT_TRANSLATE_NOOP("bitcoin-core", "" "Continuously rate-limit free transactions to <n>*1000 bytes per minute " "(default:%u)"), QT_TRANSLATE_NOOP("bitcoin-core", "" "Create new files with system default permissions, instead of umask 077 (only " "effective with disabled wallet functionality)"), QT_TRANSLATE_NOOP("bitcoin-core", "" "Delete all wallet transactions and only recover those parts of the " "blockchain through -rescan on startup"), QT_TRANSLATE_NOOP("bitcoin-core", "" "Distributed under the MIT software license, see the accompanying file " "COPYING or <http://www.opensource.org/licenses/mit-license.php>."), QT_TRANSLATE_NOOP("bitcoin-core", "" "Enter regression test mode, which uses a special chain in which blocks can " "be solved instantly."), QT_TRANSLATE_NOOP("bitcoin-core", "" "Error: Listening for incoming connections failed (listen returned error %s)"), QT_TRANSLATE_NOOP("bitcoin-core", "" "Error: Unsupported argument -socks found. Setting SOCKS version isn't " "possible anymore, only SOCKS5 proxies are supported."), QT_TRANSLATE_NOOP("bitcoin-core", "" "Execute command when a relevant alert is received or we see a really long " "fork (%s in cmd is replaced by message)"), QT_TRANSLATE_NOOP("bitcoin-core", "" "Execute command when a wallet transaction changes (%s in cmd is replaced by " "TxID)"), QT_TRANSLATE_NOOP("bitcoin-core", "" "Execute command when the best block changes (%s in cmd is replaced by block " "hash)"), QT_TRANSLATE_NOOP("bitcoin-core", "" "Fees (in RBIT/Kb) smaller than this are considered zero fee for relaying " "(default: %s)"), QT_TRANSLATE_NOOP("bitcoin-core", "" "Fees (in RBIT/Kb) smaller than this are considered zero fee for transaction " "creation (default: %s)"), QT_TRANSLATE_NOOP("bitcoin-core", "" "Flush database activity from memory pool to disk log every <n> megabytes " "(default: %u)"), QT_TRANSLATE_NOOP("bitcoin-core", "" "How thorough the block verification of -checkblocks is (0-4, default: %u)"), QT_TRANSLATE_NOOP("bitcoin-core", "" "If paytxfee is not set, include enough fee so transactions begin " "confirmation on average within n blocks (default: %u)"), QT_TRANSLATE_NOOP("bitcoin-core", "" "In this mode -genproclimit controls how many blocks are generated " "immediately."), QT_TRANSLATE_NOOP("bitcoin-core", "" "Invalid amount for -maxtxfee=<amount>: '%s' (must be at least the minrelay " "fee of %s to prevent stuck transactions)"), QT_TRANSLATE_NOOP("bitcoin-core", "" "Log transaction priority and fee per kB when mining blocks (default: %u)"), QT_TRANSLATE_NOOP("bitcoin-core", "" "Maintain a full transaction index, used by the getrawtransaction rpc call " "(default: %u)"), QT_TRANSLATE_NOOP("bitcoin-core", "" "Maximum size of data in data carrier transactions we relay and mine " "(default: %u)"), QT_TRANSLATE_NOOP("bitcoin-core", "" "Maximum total fees to use in a single wallet transaction, setting too low " "may abort large transactions (default: %s)"), QT_TRANSLATE_NOOP("bitcoin-core", "" "Number of seconds to keep misbehaving peers from reconnecting (default: %u)"), QT_TRANSLATE_NOOP("bitcoin-core", "" "Output debugging information (default: %u, supplying <category> is optional)"), QT_TRANSLATE_NOOP("bitcoin-core", "" "Query for peer addresses via DNS lookup, if low on addresses (default: 1 " "unless -connect)"), QT_TRANSLATE_NOOP("bitcoin-core", "" "Require high priority for relaying free or low-fee transactions (default:%u)"), QT_TRANSLATE_NOOP("bitcoin-core", "" "Set maximum size of high-priority/low-fee transactions in bytes (default: %d)"), QT_TRANSLATE_NOOP("bitcoin-core", "" "Set the number of script verification threads (%u to %d, 0 = auto, <0 = " "leave that many cores free, default: %d)"), QT_TRANSLATE_NOOP("bitcoin-core", "" "Set the number of threads for coin generation if enabled (-1 = all cores, " "default: %d)"), QT_TRANSLATE_NOOP("bitcoin-core", "" "This is a pre-release test build - use at your own risk - do not use for " "mining or merchant applications"), QT_TRANSLATE_NOOP("bitcoin-core", "" "This product includes software developed by the OpenSSL Project for use in " "the OpenSSL Toolkit <https://www.openssl.org/> and cryptographic software " "written by Eric Young and UPnP software written by Thomas Bernard."), QT_TRANSLATE_NOOP("bitcoin-core", "" "To use returnbitd, or the -server option to returnbit-qt, you must set an " "rpcpassword in the configuration file:\n" "%s\n" "It is recommended you use the following random password:\n" "rpcuser=returnbitrpc\n" "rpcpassword=%s\n" "(you do not need to remember this password)\n" "The username and password MUST NOT be the same.\n" "If the file does not exist, create it with owner-readable-only file " "permissions.\n" "It is also recommended to set alertnotify so you are notified of problems;\n" "for example: alertnotify=echo %%s | mail -s \"Returnbit Alert\" [email protected]\n"), QT_TRANSLATE_NOOP("bitcoin-core", "" "Unable to bind to %s on this computer. Returnbit Core is probably already " "running."), QT_TRANSLATE_NOOP("bitcoin-core", "" "Use separate SOCKS5 proxy to reach peers via Tor hidden services (default: " "%s)"), QT_TRANSLATE_NOOP("bitcoin-core", "" "Warning: -maxtxfee is set very high! Fees this large could be paid on a " "single transaction."), QT_TRANSLATE_NOOP("bitcoin-core", "" "Warning: -paytxfee is set very high! This is the transaction fee you will " "pay if you send a transaction."), QT_TRANSLATE_NOOP("bitcoin-core", "" "Warning: Please check that your computer's date and time are correct! If " "your clock is wrong Returnbit Core will not work properly."), QT_TRANSLATE_NOOP("bitcoin-core", "" "Warning: The network does not appear to fully agree! Some miners appear to " "be experiencing issues."), QT_TRANSLATE_NOOP("bitcoin-core", "" "Warning: We do not appear to fully agree with our peers! You may need to " "upgrade, or other nodes may need to upgrade."), QT_TRANSLATE_NOOP("bitcoin-core", "" "Warning: error reading wallet.dat! All keys read correctly, but transaction " "data or address book entries might be missing or incorrect."), QT_TRANSLATE_NOOP("bitcoin-core", "" "Warning: wallet.dat corrupt, data salvaged! Original wallet.dat saved as " "wallet.{timestamp}.bak in %s; if your balance or transactions are incorrect " "you should restore from a backup."), QT_TRANSLATE_NOOP("bitcoin-core", "" "Whitelist peers connecting from the given netmask or IP address. Can be " "specified multiple times."), QT_TRANSLATE_NOOP("bitcoin-core", "" "Whitelisted peers cannot be DoS banned and their transactions are always " "relayed, even if they are already in the mempool, useful e.g. for a gateway"), QT_TRANSLATE_NOOP("bitcoin-core", "(default: %s)"), QT_TRANSLATE_NOOP("bitcoin-core", "(default: 1)"), QT_TRANSLATE_NOOP("bitcoin-core", "<category> can be:"), QT_TRANSLATE_NOOP("bitcoin-core", "Accept command line and JSON-RPC commands"), QT_TRANSLATE_NOOP("bitcoin-core", "Accept connections from outside (default: 1 if no -proxy or -connect)"), QT_TRANSLATE_NOOP("bitcoin-core", "Accept public REST requests (default: %u)"), QT_TRANSLATE_NOOP("bitcoin-core", "Acceptable ciphers (default: %s)"), QT_TRANSLATE_NOOP("bitcoin-core", "Add a node to connect to and attempt to keep the connection open"), QT_TRANSLATE_NOOP("bitcoin-core", "Allow DNS lookups for -addnode, -seednode and -connect"), QT_TRANSLATE_NOOP("bitcoin-core", "Always query for peer addresses via DNS lookup (default: %u)"), QT_TRANSLATE_NOOP("bitcoin-core", "Attempt to recover private keys from a corrupt wallet.dat"), QT_TRANSLATE_NOOP("bitcoin-core", "Block creation options:"), QT_TRANSLATE_NOOP("bitcoin-core", "Cannot downgrade wallet"), QT_TRANSLATE_NOOP("bitcoin-core", "Cannot resolve -bind address: '%s'"), QT_TRANSLATE_NOOP("bitcoin-core", "Cannot resolve -externalip address: '%s'"), QT_TRANSLATE_NOOP("bitcoin-core", "Cannot resolve -whitebind address: '%s'"), QT_TRANSLATE_NOOP("bitcoin-core", "Cannot write default address"), QT_TRANSLATE_NOOP("bitcoin-core", "Connect only to the specified node(s)"), QT_TRANSLATE_NOOP("bitcoin-core", "Connect through SOCKS5 proxy"), QT_TRANSLATE_NOOP("bitcoin-core", "Connect to a node to retrieve peer addresses, and disconnect"), QT_TRANSLATE_NOOP("bitcoin-core", "Connection options:"), QT_TRANSLATE_NOOP("bitcoin-core", "Copyright (C) 2009-%i The Bitcoin Core Developers"), QT_TRANSLATE_NOOP("bitcoin-core", "Corrupted block database detected"), QT_TRANSLATE_NOOP("bitcoin-core", "Could not parse -rpcbind value %s as network address"), QT_TRANSLATE_NOOP("bitcoin-core", "Debugging/Testing options:"), QT_TRANSLATE_NOOP("bitcoin-core", "Disable safemode, override a real safe mode event (default: %u)"), QT_TRANSLATE_NOOP("bitcoin-core", "Discover own IP address (default: 1 when listening and no -externalip)"), QT_TRANSLATE_NOOP("bitcoin-core", "Do not load the wallet and disable wallet RPC calls"), QT_TRANSLATE_NOOP("bitcoin-core", "Do you want to rebuild the block database now?"), QT_TRANSLATE_NOOP("bitcoin-core", "Done loading"), QT_TRANSLATE_NOOP("bitcoin-core", "Error initializing block database"), QT_TRANSLATE_NOOP("bitcoin-core", "Error initializing wallet database environment %s!"), QT_TRANSLATE_NOOP("bitcoin-core", "Error loading block database"), QT_TRANSLATE_NOOP("bitcoin-core", "Error loading wallet.dat"), QT_TRANSLATE_NOOP("bitcoin-core", "Error loading wallet.dat: Wallet corrupted"), QT_TRANSLATE_NOOP("bitcoin-core", "Error loading wallet.dat: Wallet requires newer version of Returnbit Core"), QT_TRANSLATE_NOOP("bitcoin-core", "Error opening block database"), QT_TRANSLATE_NOOP("bitcoin-core", "Error reading from database, shutting down."), QT_TRANSLATE_NOOP("bitcoin-core", "Error"), QT_TRANSLATE_NOOP("bitcoin-core", "Error: A fatal internal error occurred, see debug.log for details"), QT_TRANSLATE_NOOP("bitcoin-core", "Error: Disk space is low!"), QT_TRANSLATE_NOOP("bitcoin-core", "Error: Unsupported argument -tor found, use -onion."), QT_TRANSLATE_NOOP("bitcoin-core", "Failed to listen on any port. Use -listen=0 if you want this."), QT_TRANSLATE_NOOP("bitcoin-core", "Fee (in RBIT/kB) to add to transactions you send (default: %s)"), QT_TRANSLATE_NOOP("bitcoin-core", "Force safe mode (default: %u)"), QT_TRANSLATE_NOOP("bitcoin-core", "Generate coins (default: %u)"), QT_TRANSLATE_NOOP("bitcoin-core", "How many blocks to check at startup (default: %u, 0 = all)"), QT_TRANSLATE_NOOP("bitcoin-core", "If <category> is not supplied, output all debugging information."), QT_TRANSLATE_NOOP("bitcoin-core", "Importing..."), QT_TRANSLATE_NOOP("bitcoin-core", "Imports blocks from external blk000??.dat file"), QT_TRANSLATE_NOOP("bitcoin-core", "Include IP addresses in debug output (default: %u)"), QT_TRANSLATE_NOOP("bitcoin-core", "Incorrect or no genesis block found. Wrong datadir for network?"), QT_TRANSLATE_NOOP("bitcoin-core", "Information"), QT_TRANSLATE_NOOP("bitcoin-core", "Initialization sanity check failed. Returnbit Core is shutting down."), QT_TRANSLATE_NOOP("bitcoin-core", "Insufficient funds"), QT_TRANSLATE_NOOP("bitcoin-core", "Invalid -onion address: '%s'"), QT_TRANSLATE_NOOP("bitcoin-core", "Invalid -proxy address: '%s'"), QT_TRANSLATE_NOOP("bitcoin-core", "Invalid amount for -maxtxfee=<amount>: '%s'"), QT_TRANSLATE_NOOP("bitcoin-core", "Invalid amount for -minrelaytxfee=<amount>: '%s'"), QT_TRANSLATE_NOOP("bitcoin-core", "Invalid amount for -mintxfee=<amount>: '%s'"), QT_TRANSLATE_NOOP("bitcoin-core", "Invalid amount for -paytxfee=<amount>: '%s' (must be at least %s)"), QT_TRANSLATE_NOOP("bitcoin-core", "Invalid amount for -paytxfee=<amount>: '%s'"), QT_TRANSLATE_NOOP("bitcoin-core", "Invalid netmask specified in -whitelist: '%s'"), QT_TRANSLATE_NOOP("bitcoin-core", "Keep at most <n> unconnectable transactions in memory (default: %u)"), QT_TRANSLATE_NOOP("bitcoin-core", "Limit size of signature cache to <n> entries (default: %u)"), QT_TRANSLATE_NOOP("bitcoin-core", "Listen for JSON-RPC connections on <port> (default: %u or testnet: %u)"), QT_TRANSLATE_NOOP("bitcoin-core", "Listen for connections on <port> (default: %u or testnet: %u)"), QT_TRANSLATE_NOOP("bitcoin-core", "Loading addresses..."), QT_TRANSLATE_NOOP("bitcoin-core", "Loading block index..."), QT_TRANSLATE_NOOP("bitcoin-core", "Loading wallet..."), QT_TRANSLATE_NOOP("bitcoin-core", "Maintain at most <n> connections to peers (default: %u)"), QT_TRANSLATE_NOOP("bitcoin-core", "Maximum per-connection receive buffer, <n>*1000 bytes (default: %u)"), QT_TRANSLATE_NOOP("bitcoin-core", "Maximum per-connection send buffer, <n>*1000 bytes (default: %u)"), QT_TRANSLATE_NOOP("bitcoin-core", "Need to specify a port with -whitebind: '%s'"), QT_TRANSLATE_NOOP("bitcoin-core", "Node relay options:"), QT_TRANSLATE_NOOP("bitcoin-core", "Not enough file descriptors available."), QT_TRANSLATE_NOOP("bitcoin-core", "Only accept block chain matching built-in checkpoints (default: %u)"), QT_TRANSLATE_NOOP("bitcoin-core", "Only connect to nodes in network <net> (ipv4, ipv6 or onion)"), QT_TRANSLATE_NOOP("bitcoin-core", "Options:"), QT_TRANSLATE_NOOP("bitcoin-core", "Password for JSON-RPC connections"), QT_TRANSLATE_NOOP("bitcoin-core", "Prepend debug output with timestamp (default: %u)"), QT_TRANSLATE_NOOP("bitcoin-core", "RPC SSL options: (see the Returnbit Wiki for SSL setup instructions)"), QT_TRANSLATE_NOOP("bitcoin-core", "RPC server options:"), QT_TRANSLATE_NOOP("bitcoin-core", "RPC support for HTTP persistent connections (default: %d)"), QT_TRANSLATE_NOOP("bitcoin-core", "Randomly drop 1 of every <n> network messages"), QT_TRANSLATE_NOOP("bitcoin-core", "Randomly fuzz 1 of every <n> network messages"), QT_TRANSLATE_NOOP("bitcoin-core", "Rebuild block chain index from current blk000??.dat files"), QT_TRANSLATE_NOOP("bitcoin-core", "Receive and display P2P network alerts (default: %u)"), QT_TRANSLATE_NOOP("bitcoin-core", "Relay and mine data carrier transactions (default: %u)"), QT_TRANSLATE_NOOP("bitcoin-core", "Relay non-P2SH multisig (default: %u)"), QT_TRANSLATE_NOOP("bitcoin-core", "Rescan the block chain for missing wallet transactions"), QT_TRANSLATE_NOOP("bitcoin-core", "Rescanning..."), QT_TRANSLATE_NOOP("bitcoin-core", "Run a thread to flush wallet periodically (default: %u)"), QT_TRANSLATE_NOOP("bitcoin-core", "Run in the background as a daemon and accept commands"), QT_TRANSLATE_NOOP("bitcoin-core", "Send trace/debug info to console instead of debug.log file"), QT_TRANSLATE_NOOP("bitcoin-core", "Send transactions as zero-fee transactions if possible (default: %u)"), QT_TRANSLATE_NOOP("bitcoin-core", "Server certificate file (default: %s)"), QT_TRANSLATE_NOOP("bitcoin-core", "Server private key (default: %s)"), QT_TRANSLATE_NOOP("bitcoin-core", "Set database cache size in megabytes (%d to %d, default: %d)"), QT_TRANSLATE_NOOP("bitcoin-core", "Set key pool size to <n> (default: %u)"), QT_TRANSLATE_NOOP("bitcoin-core", "Set maximum block size in bytes (default: %d)"), QT_TRANSLATE_NOOP("bitcoin-core", "Set minimum block size in bytes (default: %u)"), QT_TRANSLATE_NOOP("bitcoin-core", "Set the number of threads to service RPC calls (default: %d)"), QT_TRANSLATE_NOOP("bitcoin-core", "Sets the DB_PRIVATE flag in the wallet db environment (default: %u)"), QT_TRANSLATE_NOOP("bitcoin-core", "Show all debugging options (usage: --help -help-debug)"), QT_TRANSLATE_NOOP("bitcoin-core", "Shrink debug.log file on client startup (default: 1 when no -debug)"), QT_TRANSLATE_NOOP("bitcoin-core", "Signing transaction failed"), QT_TRANSLATE_NOOP("bitcoin-core", "Specify configuration file (default: %s)"), QT_TRANSLATE_NOOP("bitcoin-core", "Specify connection timeout in milliseconds (minimum: 1, default: %d)"), QT_TRANSLATE_NOOP("bitcoin-core", "Specify data directory"), QT_TRANSLATE_NOOP("bitcoin-core", "Specify pid file (default: %s)"), QT_TRANSLATE_NOOP("bitcoin-core", "Specify wallet file (within data directory)"), QT_TRANSLATE_NOOP("bitcoin-core", "Specify your own public address"), QT_TRANSLATE_NOOP("bitcoin-core", "Spend unconfirmed change when sending transactions (default: %u)"), QT_TRANSLATE_NOOP("bitcoin-core", "Stop running after importing blocks from disk (default: %u)"), QT_TRANSLATE_NOOP("bitcoin-core", "This help message"), QT_TRANSLATE_NOOP("bitcoin-core", "This is experimental software."), QT_TRANSLATE_NOOP("bitcoin-core", "This is intended for regression testing tools and app development."), QT_TRANSLATE_NOOP("bitcoin-core", "Threshold for disconnecting misbehaving peers (default: %u)"), QT_TRANSLATE_NOOP("bitcoin-core", "Transaction amount too small"), QT_TRANSLATE_NOOP("bitcoin-core", "Transaction amounts must be positive"), QT_TRANSLATE_NOOP("bitcoin-core", "Transaction too large for fee policy"), QT_TRANSLATE_NOOP("bitcoin-core", "Transaction too large"), QT_TRANSLATE_NOOP("bitcoin-core", "Unable to bind to %s on this computer (bind returned error %s)"), QT_TRANSLATE_NOOP("bitcoin-core", "Unknown network specified in -onlynet: '%s'"), QT_TRANSLATE_NOOP("bitcoin-core", "Upgrade wallet to latest format"), QT_TRANSLATE_NOOP("bitcoin-core", "Use OpenSSL (https) for JSON-RPC connections"), QT_TRANSLATE_NOOP("bitcoin-core", "Use UPnP to map the listening port (default: %u)"), QT_TRANSLATE_NOOP("bitcoin-core", "Use UPnP to map the listening port (default: 1 when listening)"), QT_TRANSLATE_NOOP("bitcoin-core", "Use the test network"), QT_TRANSLATE_NOOP("bitcoin-core", "Username for JSON-RPC connections"), QT_TRANSLATE_NOOP("bitcoin-core", "Verifying blocks..."), QT_TRANSLATE_NOOP("bitcoin-core", "Verifying wallet..."), QT_TRANSLATE_NOOP("bitcoin-core", "Wallet %s resides outside data directory %s"), QT_TRANSLATE_NOOP("bitcoin-core", "Wallet needed to be rewritten: restart Returnbit Core to complete"), QT_TRANSLATE_NOOP("bitcoin-core", "Wallet options:"), QT_TRANSLATE_NOOP("bitcoin-core", "Warning"), QT_TRANSLATE_NOOP("bitcoin-core", "Warning: This version is obsolete, upgrade required!"), QT_TRANSLATE_NOOP("bitcoin-core", "Warning: Unsupported argument -benchmark ignored, use -debug=bench."), QT_TRANSLATE_NOOP("bitcoin-core", "Warning: Unsupported argument -debugnet ignored, use -debug=net."), QT_TRANSLATE_NOOP("bitcoin-core", "You need to rebuild the database using -reindex to change -txindex"), QT_TRANSLATE_NOOP("bitcoin-core", "Zapping all transactions from wallet..."), QT_TRANSLATE_NOOP("bitcoin-core", "on startup"), QT_TRANSLATE_NOOP("bitcoin-core", "wallet.dat corrupt, salvage failed"), };
3e0b6babc55679274a76f22e9d18a16ce8454da0
75e71f1731ada71ab9f3f2dacdebc435c82e1e1b
/MyBot.cc
b5b2e4fa81f9762d20cdfa98aace30f2601f289d
[]
no_license
howardh/Ants
587d8ba5afacc6464108da00befa3a5e05af7dba
0c1b6d9c470818248ec7c586df3d3196d2278ae5
refs/heads/master
2020-06-15T03:26:28.965897
2011-10-25T16:29:36
2011-10-25T16:29:36
2,626,926
0
0
null
null
null
null
UTF-8
C++
false
false
704
cc
#include "Bot.h" using namespace std; /* This program will play a single game of Ants while communicating with the engine via standard input and output. The function "makeMoves()" in Bot.cc is where it makes the moves each turn and is probably the best place to start exploring. You are allowed to edit any part of any of the files, remove them, or add your own, provided you continue conforming to the input and output format outlined on the specifications page at: http://www.ai-contest.com */ int main(int argc, char *argv[]) { cout.sync_with_stdio(0); //this line makes your bot faster srand(time(0)); Bot bot; bot.playGame(); return 0; }
e96d832027653953b022d3f7978b04ad316a9744
441cd67b28ba2fce3338b7a60b63fc9a4606da35
/aluno.cpp
fc1f4b156dc6f440e404df63cea8b513ac158775
[]
no_license
giuliacomgiu/restaurant-registration
6d411dd0369d770e744657b5422b499552b20fc9
4698171fa1ddf19d1bd1a8124c972bcab3d72041
refs/heads/master
2022-11-25T07:30:25.877441
2020-07-31T22:30:45
2020-07-31T22:30:45
284,140,741
0
0
null
null
null
null
UTF-8
C++
false
false
737
cpp
#include "aluno.h" Aluno::Aluno() { Nome = "Empty"; Matricula = 0; creditsCard = 0; creditsMobile = 0; } QString Aluno::getNome() { return Nome; } ulong Aluno::getMatricula() { return Matricula; } float Aluno::getCreditsMobile() { return creditsMobile; } float Aluno::getCreditsCard() { return creditsCard; } void Aluno::setMatricula(ulong matricula) { if (matricula != 0) Matricula = matricula; } void Aluno::setNome(QString nome) { if (nome != "") Nome = nome; } void Aluno::setCreditsMobile(float credito) { creditsMobile = credito; } void Aluno::setCreditsCard(float credito) { creditsCard = credito; }
4e7b30fcb68a289811ee6644f7ecd74837de97fa
1dbcbd62df0ec380ee51e3c2b8ddd75a40e88f57
/demos/fog/src/Demo.h
2443a16f138ab369c22cb304ad744fb768db3223
[]
no_license
diederickh/jadi
bd0f38cbcf1a7b04c45727e8ad23d6a987a4fe84
090c78f7972ff91a023876249594c580ce57aeb4
refs/heads/master
2021-05-26T18:12:53.161059
2012-12-30T15:23:46
2012-12-30T15:23:46
7,277,859
0
0
null
null
null
null
UTF-8
C++
false
false
822
h
#ifndef JADI_DEMO_H #define JADI_DEMO_H #include <jadi/Jadi.h> #include "SSAO.h" class Demo { public: Demo(); ~Demo(); void setup(); void update(); void draw(); void onMouseDown(int x, int y, int button); void onMouseUp(int x, int y, int button); void onMouseDrag(int x, int y, int dx, int dy, int button); void onMouseMove(int x, int y); void onChar(int ch); /* on keydown, gets character */ void onKeyDown(int key); /* get physical key so same for 'A' and 'a' */ void onKeyUp(int key); /* physical key */ void onWindowResize(int w, int h); void onWindowClose(); public: // base members int mouse_x; int mouse_y; int prev_mouse_x; int prev_mouse_y; int pressed_mouse_button; bool is_mouse_down; GLFWwindow* window; // custom members Camera cam; SSAO ssao; }; #endif
9397a5d523b19f4bcb79543968092aa9aee86ae4
6b2a8dd202fdce77c971c412717e305e1caaac51
/solutions_1483485_0/C++/dvolgyes/problemA.cpp
e4a70a95f4b3fdb46476c472ad1a3cf68b9ffcaf
[]
no_license
alexandraback/datacollection
0bc67a9ace00abbc843f4912562f3a064992e0e9
076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf
refs/heads/master
2021-01-24T18:27:24.417992
2017-05-23T09:23:38
2017-05-23T09:23:38
84,313,442
2
4
null
null
null
null
UTF-8
C++
false
false
1,741
cpp
#include <iostream> #include <iostream> #include <vector> #include <string> #include <fstream> #include <boost/algorithm/string.hpp> #include <boost/lexical_cast.hpp> #include <map> #define foreach(variable,list) for(int variable=0;variable<list.size();variable++) using namespace std; template <typename T> vector<string> fileread(T& stream) { vector<string> result; string line; while ( stream.good() ) { getline(stream,line); boost::algorithm::trim(line); result.push_back(line); } return result; } int toInt(std::string& a) {return boost::lexical_cast<int>(a);} double toFloat(std::string& a) {return boost::lexical_cast<double>(a);} double toDouble(std::string& a) {return boost::lexical_cast<double>(a);} char mapping(char x) { return x+1; } std::map<char,char> learn(string input,string output) { map<char,char> result; for(int i=0;i<input.size();i++) { char a=input[i]; char b=output[i]; result.insert(pair<char,char>(a,b)); } return result; } std::string trans(std::string& input,map<char,char>& mapping) { string result=input; for(int i=0;i<input.size();i++) result[i]=mapping[input.c_str()[i]]; return result; } int main() { auto f=fileread(cin); int ptr=0; int end=toInt(f[ptr++]); string example="qzejp mysljylc kd kxveddknmc re jsicpdrysi rbcpc ypc rtcsra dkh wyfrepkym veddknkmkrkcd de kr kd eoya kw aej tysr re ujdr lkgc jv"; string result ="zqour language is impossible to understand there are twenty six factorial possibilities so it is okay if you want to just give up"; map<char,char> mapping=learn(example,result); for(int problem=0;problem<end;problem++) { string line=f[ptr++]; string transed=trans(line,mapping); cout<<"Case #"<<(problem+1)<<": "<<transed<<endl; } return 0; }
9b7d00a3003b30a55e810a11fa648aa31e2b129c
60bb67415a192d0c421719de7822c1819d5ba7ac
/blazetest/src/mathtest/dmatdmatmult/SLDaSDa.cpp
a4f24ed0d85918a5f181c1a52cf5f2974fe432fe
[ "BSD-3-Clause" ]
permissive
rtohid/blaze
48decd51395d912730add9bc0d19e617ecae8624
7852d9e22aeb89b907cb878c28d6ca75e5528431
refs/heads/master
2020-04-16T16:48:03.915504
2018-12-19T20:29:42
2018-12-19T20:29:42
165,750,036
0
0
null
null
null
null
UTF-8
C++
false
false
4,310
cpp
//================================================================================================= /*! // \file src/mathtest/dmatdmatmult/SLDaSDa.cpp // \brief Source file for the SLDaSDa dense matrix/dense matrix multiplication math test // // Copyright (C) 2012-2018 Klaus Iglberger - All Rights Reserved // // This file is part of the Blaze library. You can redistribute it and/or modify it under // the terms of the New (Revised) BSD License. Redistribution and use in source and binary // forms, with or without modification, are permitted provided that the following conditions // are met: // // 1. Redistributions of source code must retain the above copyright notice, this list of // conditions and the following disclaimer. // 2. Redistributions in binary form must reproduce the above copyright notice, this list // of conditions and the following disclaimer in the documentation and/or other materials // provided with the distribution. // 3. Neither the names of the Blaze development group nor the names of its contributors // may be used to endorse or promote products derived from this software without specific // prior written permission. // // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY // EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES // OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT // SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, // INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED // TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR // BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN // ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH // DAMAGE. */ //================================================================================================= //************************************************************************************************* // Includes //************************************************************************************************* #include <cstdlib> #include <iostream> #include <blaze/math/DynamicMatrix.h> #include <blaze/math/StrictlyLowerMatrix.h> #include <blaze/math/SymmetricMatrix.h> #include <blazetest/mathtest/Creator.h> #include <blazetest/mathtest/dmatdmatmult/OperationTest.h> #include <blazetest/system/MathTest.h> //================================================================================================= // // MAIN FUNCTION // //================================================================================================= //************************************************************************************************* int main() { std::cout << " Running 'SLDaSDa'..." << std::endl; using blazetest::mathtest::TypeA; try { // Matrix type definitions using SLDa = blaze::StrictlyLowerMatrix< blaze::DynamicMatrix<TypeA> >; using SDa = blaze::SymmetricMatrix< blaze::DynamicMatrix<TypeA> >; // Creator type definitions using CSLDa = blazetest::Creator<SLDa>; using CSDa = blazetest::Creator<SDa>; // Running tests with small matrices for( size_t i=0UL; i<=6UL; ++i ) { RUN_DMATDMATMULT_OPERATION_TEST( CSLDa( i ), CSDa( i ) ); } // Running tests with large matrices RUN_DMATDMATMULT_OPERATION_TEST( CSLDa( 15UL ), CSDa( 15UL ) ); RUN_DMATDMATMULT_OPERATION_TEST( CSLDa( 37UL ), CSDa( 37UL ) ); RUN_DMATDMATMULT_OPERATION_TEST( CSLDa( 63UL ), CSDa( 63UL ) ); RUN_DMATDMATMULT_OPERATION_TEST( CSLDa( 16UL ), CSDa( 16UL ) ); RUN_DMATDMATMULT_OPERATION_TEST( CSLDa( 32UL ), CSDa( 32UL ) ); RUN_DMATDMATMULT_OPERATION_TEST( CSLDa( 64UL ), CSDa( 64UL ) ); } catch( std::exception& ex ) { std::cerr << "\n\n ERROR DETECTED during dense matrix/dense matrix multiplication:\n" << ex.what() << "\n"; return EXIT_FAILURE; } return EXIT_SUCCESS; } //*************************************************************************************************
a60db89697ad9cf03609bc72263c99c88756ea51
3e292e5496d09e8c237db7d4b247bf893f72ca53
/RpgSaveLoadImpl/saveload.cpp
1de102540c5aad028a8dab2cb89785926c8967d0
[ "MIT" ]
permissive
NuLL3rr0r/udk-rpg-save-load-system
f1ef277ae81be629e6b4163225f4e87f66fc3ef3
4ded7653b418a0a1be70033324e382eb80b17715
refs/heads/master
2021-01-10T15:02:02.864575
2012-04-30T19:30:00
2012-04-30T19:30:00
47,872,392
2
0
null
null
null
null
UTF-8
C++
false
false
21,143
cpp
#include <shlobj.h> #include <boost/algorithm/string/predicate.hpp> #include <boost/filesystem/exception.hpp> #include <boost/filesystem/operations.hpp> #include <boost/filesystem/path.hpp> #include <boost/lexical_cast.hpp> #include "saveload.hpp" #include "base.hpp" #include "cdate.hpp" #include "crypto.hpp" #include "db.hpp" #include "debug.hpp" #include "system.hpp" #include "util.hpp" using namespace std; using namespace boost; using namespace cppdb; using namespace CDate; using namespace RpgSaveLoadImpl; namespace fs = boost::filesystem; const string SaveLoad::M_TABLE_SLOTS = "slots"; const string SaveLoad::M_TABLE_QUESTS = "quests"; const string SaveLoad::M_TABLE_INVENTORY = "inventory"; const string SaveLoad::M_TABLE_BUFFS = "buffs"; const string SaveLoad::M_TABLE_ABILITIES = "abilities"; const string SaveLoad::M_TABLE_CHARACTERS = "characters"; const string SaveLoad::M_TABLE_LOOTS = "loots"; const string SaveLoad::M_TABLE_SIMPLEDIALOGS = "simpledialogs"; const string SaveLoad::M_TABLE_ACCOMPANYINGCHARACTERS = "accompanyingcharacters"; const string SaveLoad::M_TABLE_PLAYERCHARACTER = "playercharacter"; const string SaveLoad::M_TABLE_MAP = "map"; const string SaveLoad::M_TABLE_MAPLEVELS = "maplevels"; SaveLoad::SaveLoad() { try { DB::LoadSQLite3Driver(); string curPath(System::GetFolderPath(CSIDL_PERSONAL)); if (!algorithm::ends_with(curPath, System::DirectorySeparatorChar())) curPath += System::DirectorySeparatorChar(); string vendorPath(curPath + Base::SAVELOAD_CACHE_VENDOR_PATH); string titlePath(curPath + Base::SAVELOAD_CACHE_TITLE_PATH); string dbDirPath(curPath + Base::SAVELOAD_CACHE_DIR_PATH); string dbFilePath(curPath + Base::SAVELOAD_CACHE_FILE_PATH); try { if (fs::exists(vendorPath)) { if (!fs::is_directory(vendorPath)) { fs::remove(vendorPath); } } if (fs::exists(titlePath)) { if (!fs::is_directory(titlePath)) { fs::remove(titlePath); } } if (!fs::exists(dbDirPath)) { fs::create_directories(dbDirPath); } } catch(const fs::filesystem_error &ex) { LOG("IO Error", ex.what()); } catch(...) { LOG("Unknown IO Error!!"); } DB::Vacuum(dbFilePath.c_str()); m_db = new DB(dbFilePath); } catch (std::exception &ex) { LOG(ex.what()); } catch (...) { LOG("Unknown Error!!"); } } SaveLoad::~SaveLoad() { delete m_db; } void SaveLoad::Initialize() { try { m_db->CreateTable(M_TABLE_SLOTS, " id TEXT PRIMARY KEY NOT NULL, " " rawtime TEXT, " " gdate TEXT, " " jdate TEXT, " " time TEXT, " " UNIQUE (id) " ); m_db->CreateTable(M_TABLE_QUESTS, " slotid TEXT NOT NULL, " " id TEXT NOT NULL, " " status TEXT, " " PRIMARY KEY (slotid, id) " ); m_db->CreateTable(M_TABLE_INVENTORY, " slotid TEXT NOT NULL, " " itemindex TEXT NOT NULL, " " id TEXT NOT NULL, " " characterid TEXT NOT NULL, " " durability TEXT, " " currentdurability TEXT, " " PRIMARY KEY (slotid, itemindex, characterid) " ); m_db->CreateTable(M_TABLE_BUFFS, " slotid TEXT NOT NULL, " " itemindex TEXT NOT NULL, " " id TEXT NOT NULL, " " characterid TEXT NOT NULL, " " time TEXT, " " PRIMARY KEY (slotid, itemindex, characterid) " ); m_db->CreateTable(M_TABLE_ABILITIES, " slotid TEXT NOT NULL, " " itemindex TEXT NOT NULL, " " id TEXT NOT NULL, " " characterid TEXT NOT NULL, " " points TEXT, " " PRIMARY KEY (slotid, id, characterid) " ); m_db->CreateTable(M_TABLE_CHARACTERS, " slotid TEXT NOT NULL, " " id TEXT NOT NULL, " " level TEXT, " " xp TEXT, " " hp TEXT, " " mp TEXT, " " money TEXT, " " PRIMARY KEY (slotid, id) " ); m_db->CreateTable(M_TABLE_LOOTS, " slotid TEXT NOT NULL, " " id TEXT NOT NULL, " " timesincelastloot TEXT, " " islooted TEXT, " " PRIMARY KEY (slotid, id) " ); m_db->CreateTable(M_TABLE_SIMPLEDIALOGS, " slotid TEXT NOT NULL, " " id TEXT NOT NULL, " " batchindex TEXT NOT NULL, " " isplayed TEXT, " " PRIMARY KEY (slotid, id, batchindex) " ); m_db->CreateTable(M_TABLE_ACCOMPANYINGCHARACTERS, " slotid TEXT NOT NULL, " " itemindex TEXT NOT NULL, " " id TEXT NOT NULL, " " PRIMARY KEY (slotid, itemindex) " ); m_db->CreateTable(M_TABLE_PLAYERCHARACTER, " slotid TEXT NOT NULL, " " remainingabilitypoints TEXT, " " levelid TEXT, " " locationx TEXT, " " locationy TEXT, " " locationz TEXT, " " PRIMARY KEY (slotid) " ); m_db->CreateTable(M_TABLE_MAP, " slotid TEXT NOT NULL, " " questlevelid TEXT, " " questLevelmapname TEXT, " " PRIMARY KEY (slotid) " ); m_db->CreateTable(M_TABLE_MAPLEVELS, " slotid TEXT NOT NULL, " " levelid TEXT, " " isunlocked TEXT, " " PRIMARY KEY (slotid, levelid) " ); } catch (std::exception &ex) { LOG(ex.what()); } catch (...) { LOG("Unknown Error!!"); } } void SaveLoad::GetAllSlots(struct SlotListStruct *out_slotsList) { try { result r = m_db->Sql() << "SELECT id, rawtime, gdate, jdate, time FROM [" + M_TABLE_SLOTS + "];"; out_slotsList->Slots.Clear(); while(r.next()) { string id; string rawTime; string gDate; string jDate; string time; r >> id >> rawTime >> gDate >> jDate >> time; SlotStruct *slot = new SlotStruct(); slot->Id = Crypto::Decrypt(id); slot->RawTime = lexical_cast<int>(Crypto::Decrypt(rawTime)); slot->GregorianDate = Crypto::Decrypt(gDate); slot->JalaliDate = Crypto::Decrypt(jDate); slot->Time = Crypto::Decrypt(time); out_slotsList->Slots.AddItem(slot); } } catch (std::exception &ex) { LOG(ex.what()); } catch (...) { LOG("Unknown Error!!"); } } void SaveLoad::CommitSlot(const string &id, struct SlotDataStruct *data) { try { const string encId = Crypto::Encrypt(id); result r = m_db->Sql() << "SELECT id FROM [" + M_TABLE_SLOTS + "] " "WHERE id=?;" << encId << row; Now n; cppdb::transaction guard(m_db->Sql()); m_db->Delete(M_TABLE_QUESTS, "slotid", encId); m_db->Delete(M_TABLE_CHARACTERS, "slotid", encId); m_db->Delete(M_TABLE_INVENTORY, "slotid", encId); m_db->Delete(M_TABLE_BUFFS, "slotid", encId); m_db->Delete(M_TABLE_ABILITIES, "slotid", encId); m_db->Delete(M_TABLE_LOOTS, "slotid", encId); m_db->Delete(M_TABLE_SIMPLEDIALOGS, "slotid", encId); m_db->Delete(M_TABLE_PLAYERCHARACTER, "slotid", encId); m_db->Delete(M_TABLE_ACCOMPANYINGCHARACTERS, "slotid", encId); m_db->Delete(M_TABLE_MAP, "slotid", encId); m_db->Delete(M_TABLE_MAPLEVELS, "slotid", encId); if (r.empty()) { m_db->Insert(M_TABLE_SLOTS, "id, rawtime, gdate, jdate, time", 5, encId.c_str(), Crypto::Encrypt(lexical_cast<std::string>(n.RawTime)).c_str(), Crypto::Encrypt(DateConv::ToGregorian(n)).c_str(), Crypto::Encrypt(DateConv::ToJalali(n)).c_str(), Crypto::Encrypt(DateConv::Time(n)).c_str() ); } else { m_db->Update(M_TABLE_SLOTS, "id", encId, "rawtime=?, gdate=?, jdate=?, time=?", 4, Crypto::Encrypt(lexical_cast<std::string>(n.RawTime)).c_str(), Crypto::Encrypt(DateConv::ToGregorian(n)).c_str(), Crypto::Encrypt(DateConv::ToJalali(n)).c_str(), Crypto::Encrypt(DateConv::Time(n)).c_str() ); } for (int i = 0; i < data->Quests.Num(); ++i) { QuestStruct quest = data->Quests[i]; m_db->Insert(M_TABLE_QUESTS, "slotid, id, status", 3, encId.c_str(), Crypto::Encrypt(lexical_cast<string>(quest.Id)).c_str(), Crypto::Encrypt(lexical_cast<string>(quest.Status)).c_str() ); } for (int i = 0; i < data->Characters.Num(); ++i) { CharacterStruct character = data->Characters[i]; m_db->Insert(M_TABLE_CHARACTERS, "slotid, id, level, xp, hp, mp, money", 7, encId.c_str(), Crypto::Encrypt(Util::WStrToStr(character.Id.GetText())).c_str(), Crypto::Encrypt(lexical_cast<string>(character.Level)).c_str(), Crypto::Encrypt(lexical_cast<string>(character.XP)).c_str(), Crypto::Encrypt(lexical_cast<string>(character.HP)).c_str(), Crypto::Encrypt(lexical_cast<string>(character.MP)).c_str(), Crypto::Encrypt(lexical_cast<string>(character.Money)).c_str() ); } for (int i = 0; i < data->Inventory.Num(); ++i) { InventoryStruct inventory = data->Inventory[i]; m_db->Insert(M_TABLE_INVENTORY, "slotid, itemindex, id, characterid, durability, currentdurability", 6, encId.c_str(), Crypto::Encrypt(lexical_cast<string>(inventory.Index)).c_str(), Crypto::Encrypt(lexical_cast<string>(inventory.Id)).c_str(), Crypto::Encrypt(Util::WStrToStr(inventory.CharacterId.GetText())).c_str(), Crypto::Encrypt(lexical_cast<string>(inventory.Durability)).c_str(), Crypto::Encrypt(lexical_cast<string>(inventory.CurrentDurability)).c_str() ); } for (int i = 0; i < data->Buffs.Num(); ++i) { BuffStruct buff = data->Buffs[i]; m_db->Insert(M_TABLE_BUFFS, "slotid, itemindex, id, characterid, time", 5, encId.c_str(), Crypto::Encrypt(lexical_cast<string>(buff.Index)).c_str(), Crypto::Encrypt(lexical_cast<string>(buff.Id)).c_str(), Crypto::Encrypt(Util::WStrToStr(buff.CharacterId.GetText())).c_str(), Crypto::Encrypt(lexical_cast<string>(buff.Time)).c_str() ); } for (int i = 0; i < data->Abilities.Num(); ++i) { AbilityStruct ability = data->Abilities[i]; m_db->Insert(M_TABLE_ABILITIES, "slotid, itemindex, id, characterid, points", 5, encId.c_str(), Crypto::Encrypt(lexical_cast<string>(ability.Index)).c_str(), Crypto::Encrypt(Util::WStrToStr(ability.Id.GetText())).c_str(), Crypto::Encrypt(Util::WStrToStr(ability.CharacterId.GetText())).c_str(), Crypto::Encrypt(lexical_cast<string>(ability.Points)).c_str() ); } for (int i = 0; i < data->Loots.Num(); ++i) { LootStruct loot = data->Loots[i]; m_db->Insert(M_TABLE_LOOTS, "slotid, id, timesincelastloot, islooted", 4, encId.c_str(), Crypto::Encrypt(Util::WStrToStr(loot.Id.GetText())).c_str(), Crypto::Encrypt(lexical_cast<string>(loot.IsLooted)).c_str(), Crypto::Encrypt(lexical_cast<string>(loot.LastLootTime)).c_str() ); } for (int i = 0; i < data->SimpleDialogs.Num(); ++i) { SimpleDialogStruct simpleDialog = data->SimpleDialogs[i]; m_db->Insert(M_TABLE_SIMPLEDIALOGS, "slotid, id, batchindex, isplayed", 4, encId.c_str(), Crypto::Encrypt(lexical_cast<string>(simpleDialog.Id)).c_str(), Crypto::Encrypt(lexical_cast<string>(simpleDialog.BatchIndex)).c_str(), Crypto::Encrypt(lexical_cast<string>(simpleDialog.IsPlayed)).c_str() ); } PlayerCharacterStruct playerCharacter = data->PlayerCharacter; m_db->Insert(M_TABLE_PLAYERCHARACTER, "slotid, remainingabilitypoints, levelid, locationx, locationy, locationz", 6, encId.c_str(), Crypto::Encrypt(lexical_cast<string>(playerCharacter.RemainingAbilityPoints)).c_str(), Crypto::Encrypt(Util::WStrToStr(playerCharacter.LevelMapName.GetText())).c_str(), Crypto::Encrypt(lexical_cast<string>(playerCharacter.Location.x)).c_str(), Crypto::Encrypt(lexical_cast<string>(playerCharacter.Location.y)).c_str(), Crypto::Encrypt(lexical_cast<string>(playerCharacter.Location.z)).c_str() ); for (int i = 0; i < playerCharacter.AccompanyingCharacters.Num(); ++i) { AccompanyingCharacterStruct accompanyingCharacter = playerCharacter.AccompanyingCharacters[i]; m_db->Insert(M_TABLE_ACCOMPANYINGCHARACTERS, "slotid, itemindex, id", 3, encId.c_str(), Crypto::Encrypt(lexical_cast<string>(accompanyingCharacter.Index)).c_str(), Crypto::Encrypt(Util::WStrToStr(accompanyingCharacter.Id.GetText())).c_str() ); } MapStruct map = data->Map; m_db->Insert(M_TABLE_MAP, "slotid, questlevelid, questlevelmapname", 3, encId.c_str(), Crypto::Encrypt(Util::WStrToStr(map.QuestLevelId.GetText())).c_str(), Crypto::Encrypt(Util::WStrToStr(map.QuestLevelMapName.GetText())).c_str() ); for (int i = 0; i < map.MapLevels.Num(); ++i) { MapLevelStruct mapLevel = map.MapLevels[i]; m_db->Insert(M_TABLE_MAPLEVELS, "slotid, levelid, isunlocked", 3, encId.c_str(), Crypto::Encrypt(Util::WStrToStr(mapLevel.LevelId.GetText())).c_str(), Crypto::Encrypt(lexical_cast<string>(mapLevel.IsUnlocked)).c_str() ); } guard.commit(); } catch (std::exception &ex) { LOG(ex.what()); } catch (...) { LOG("Unknown Error!!"); } } void SaveLoad::FetchSlot(const std::string &id, struct SlotDataStruct *out_data) { try { const string encId = Crypto::Encrypt(id); result r = m_db->Sql() << "SELECT id FROM [" + M_TABLE_SLOTS + "] " "WHERE id=?;" << encId << row; if (!r.empty()) { // quests result questResult = m_db->Sql() << "SELECT id, status FROM [" + M_TABLE_QUESTS + "] " "WHERE slotid=?;" << encId; while(questResult.next()) { string questId; string status; questResult >> questId >> status; QuestStruct *quest = new QuestStruct(); quest->Id = lexical_cast<int>(Crypto::Decrypt(questId)); quest->Status = lexical_cast<int>(Crypto::Decrypt(status)); out_data->Quests.AddItem(quest); } // characters result characterResult = m_db->Sql() << "SELECT id, level, xp, hp, mp, money FROM [" + M_TABLE_CHARACTERS + "] " "WHERE slotid=?;" << encId; while(characterResult.next()) { string characterId; string level; string xp; string hp; string mp; string money; characterResult >> characterId >> level >> xp >> hp >> mp >> money; CharacterStruct *character = new CharacterStruct(); character->Id = Crypto::Decrypt(characterId); character->Level = lexical_cast<int>(Crypto::Decrypt(level)); character->XP = lexical_cast<int>(Crypto::Decrypt(xp)); character->HP = lexical_cast<int>(Crypto::Decrypt(hp)); character->MP = lexical_cast<int>(Crypto::Decrypt(mp)); character->Money = lexical_cast<int>(Crypto::Decrypt(money)); out_data->Characters.AddItem(character); } // inventory result inventoryResult = m_db->Sql() << "SELECT itemindex, id, characterid, durability, currentdurability FROM [" + M_TABLE_INVENTORY + "] " "WHERE slotid=?;" << encId; while(inventoryResult.next()) { string index; string inventoryId; string characterId; string durability; string currentDurability; inventoryResult >> index >> inventoryId >> characterId >> durability >> currentDurability; InventoryStruct *inventory = new InventoryStruct(); inventory->Index = lexical_cast<int>(Crypto::Decrypt(index)); inventory->Id = lexical_cast<int>(Crypto::Decrypt(inventoryId)); inventory->CharacterId = Crypto::Decrypt(characterId); inventory->Durability = lexical_cast<int>(Crypto::Decrypt(durability)); inventory->CurrentDurability = lexical_cast<int>(Crypto::Decrypt(currentDurability)); out_data->Inventory.AddItem(inventory); } // buffs result buffResult = m_db->Sql() << "SELECT itemindex, id, characterid, time FROM [" + M_TABLE_BUFFS + "] " "WHERE slotid=?;" << encId; while(buffResult.next()) { string index; string buffId; string characterId; string time; buffResult >> index >> buffId >> characterId >> time; BuffStruct *buff = new BuffStruct(); buff->Index = lexical_cast<int>(Crypto::Decrypt(index)); buff->Id = lexical_cast<int>(Crypto::Decrypt(buffId)); buff->CharacterId = Crypto::Decrypt(characterId); buff->Time = lexical_cast<float>(Crypto::Decrypt(time)); out_data->Buffs.AddItem(buff); } // abilities result abilityResult = m_db->Sql() << "SELECT itemindex, id, characterid, points FROM [" + M_TABLE_ABILITIES + "] " "WHERE slotid=?;" << encId; while(abilityResult.next()) { string index; string abilityId; string characterId; string points; abilityResult >> index >> abilityId >> characterId >> points; AbilityStruct *ability = new AbilityStruct(); ability->Index = lexical_cast<int>(Crypto::Decrypt(index)); ability->Id =Crypto::Decrypt(abilityId); ability->CharacterId = Crypto::Decrypt(characterId); ability->Points = lexical_cast<int>(Crypto::Decrypt(points)); out_data->Abilities.AddItem(ability); } // loots result lootResult = m_db->Sql() << "SELECT id, timesincelastloot, islooted FROM [" + M_TABLE_LOOTS + "] " "WHERE slotid=?;" << encId; while(lootResult.next()) { string lootId; string timeSinceLastLoot; string isLooted; lootResult >> lootId >> timeSinceLastLoot >> isLooted; LootStruct *loot = new LootStruct(); loot->Id = Crypto::Decrypt(lootId); loot->LastLootTime = lexical_cast<float>(Crypto::Decrypt(timeSinceLastLoot)); loot->IsLooted = lexical_cast<bool>(Crypto::Decrypt(isLooted)); out_data->Loots.AddItem(loot); } // simple dialogs result simpledialogResult = m_db->Sql() << "SELECT id, batchindex, isplayed FROM [" + M_TABLE_SIMPLEDIALOGS + "] " "WHERE slotid=?;" << encId; while(simpledialogResult.next()) { string simpledialogId; string batchIndex; string isPlayed; simpledialogResult >> simpledialogId >> batchIndex >> isPlayed; SimpleDialogStruct *simpleDialog = new SimpleDialogStruct(); simpleDialog->Id = lexical_cast<int>(Crypto::Decrypt(simpledialogId)); simpleDialog->BatchIndex = lexical_cast<int>(Crypto::Decrypt(batchIndex)); simpleDialog->IsPlayed = lexical_cast<bool>(Crypto::Decrypt(isPlayed)); out_data->SimpleDialogs.AddItem(simpleDialog); } // player character result pcResult = m_db->Sql() << "SELECT remainingabilitypoints, levelid, locationx, locationy, locationz FROM [" + M_TABLE_PLAYERCHARACTER + "] " "WHERE slotid=?;" << encId; while(pcResult.next()) { string remainingAbilityPoints; string levelId; string locationX; string locationY; string locationZ; pcResult >> remainingAbilityPoints >> levelId >> locationX >> locationY >> locationZ; out_data->PlayerCharacter.RemainingAbilityPoints = lexical_cast<int>(Crypto::Decrypt(remainingAbilityPoints)); out_data->PlayerCharacter.LevelMapName = Crypto::Decrypt(levelId); out_data->PlayerCharacter.Location.x = lexical_cast<float>(Crypto::Decrypt(locationX)); out_data->PlayerCharacter.Location.y = lexical_cast<float>(Crypto::Decrypt(locationY)); out_data->PlayerCharacter.Location.z = lexical_cast<float>(Crypto::Decrypt(locationZ)); result acResult = m_db->Sql() << "SELECT itemindex, id FROM [" + M_TABLE_ACCOMPANYINGCHARACTERS + "] " "WHERE slotid=?;" << encId; while(acResult.next()) { string index; string accompanyingCharacterId; acResult >> index >> accompanyingCharacterId; AccompanyingCharacterStruct *accompanyingCharacter = new AccompanyingCharacterStruct(); accompanyingCharacter->Index = lexical_cast<int>(Crypto::Decrypt(index)); accompanyingCharacter->Id = Crypto::Decrypt(accompanyingCharacterId); out_data->PlayerCharacter.AccompanyingCharacters.AddItem(accompanyingCharacter); } break; } // map result mapResult = m_db->Sql() << "SELECT questlevelid, questlevelmapname FROM [" + M_TABLE_MAP + "] " "WHERE slotid=?;" << encId; while(mapResult.next()) { string questlevelid; string questlevelmapname; mapResult >> questlevelid >> questlevelmapname; out_data->Map.QuestLevelId = Crypto::Decrypt(questlevelid); out_data->Map.QuestLevelMapName = Crypto::Decrypt(questlevelmapname); // map levels result mapLevelsResult = m_db->Sql() << "SELECT levelid, isunlocked FROM [" + M_TABLE_MAPLEVELS + "] " "WHERE slotid=?;" << encId; while(mapLevelsResult.next()) { string levelid; string isunlocked; mapLevelsResult >> levelid >> isunlocked; MapLevelStruct *mapLevel = new MapLevelStruct(); mapLevel->LevelId = Crypto::Decrypt(levelid); mapLevel->IsUnlocked = lexical_cast<bool>(Crypto::Decrypt(isunlocked)); out_data->Map.MapLevels.AddItem(mapLevel); } break; } } } catch (std::exception &ex) { LOG(ex.what()); } catch (...) { LOG("Unknown Error!!"); } } void SaveLoad::RemoveSlot(const string &id) { const string encId = Crypto::Encrypt(id); cppdb::transaction guard(m_db->Sql()); m_db->Delete(M_TABLE_QUESTS, "slotid", encId); m_db->Delete(M_TABLE_INVENTORY, "slotid", encId); m_db->Delete(M_TABLE_BUFFS, "slotid", encId); m_db->Delete(M_TABLE_ABILITIES, "slotid", encId); m_db->Delete(M_TABLE_CHARACTERS, "slotid", encId); m_db->Delete(M_TABLE_LOOTS, "slotid", encId); m_db->Delete(M_TABLE_SIMPLEDIALOGS, "slotid", encId); m_db->Delete(M_TABLE_ACCOMPANYINGCHARACTERS, "slotid", encId); m_db->Delete(M_TABLE_PLAYERCHARACTER, "slotid", encId); m_db->Delete(M_TABLE_MAP, "slotid", encId); m_db->Delete(M_TABLE_MAPLEVELS, "slotid", encId); m_db->Delete(M_TABLE_SLOTS, "id", encId); guard.commit(); }
4aebf8ce52c3b014462ba18db0ba2a5534b95c89
9911307e718198a8026520d43fbebfc9ba5d7412
/camera/QCamera2/HAL/QCameraParameters.h
5da8f29c1ebc8ac975f1106b3dbc3653b78e3e77
[]
no_license
LineageOS/android_device_oneplus_oneplus2
86688b32ef823abd99920f561b09b41377067ec5
8e47d591dcc795a784c8a0b43cdc70bb926ce9f5
refs/heads/lineage-17.1
2022-12-12T12:09:42.543183
2017-03-24T05:27:44
2021-02-11T14:24:07
75,635,697
138
163
null
2022-10-02T20:07:02
2016-12-05T15:00:49
C++
UTF-8
C++
false
false
47,694
h
/* ** Copyright 2008, The Android Open Source Project ** Copyright (c) 2012-2015, The Linux Foundation. All rights reserved. ** Not a Contribution. Apache license notifications and license are ** retained for attribution purposes only. ** ** 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 ANDROID_HARDWARE_QCAMERA_PARAMETERS_H #define ANDROID_HARDWARE_QCAMERA_PARAMETERS_H #include <camera/CameraParameters.h> #include <cutils/properties.h> #include <hardware/camera.h> #include <stdlib.h> #include <utils/Errors.h> #include "cam_intf.h" #include "cam_types.h" #include "QCameraMem.h" #include "QCameraThermalAdapter.h" extern "C" { #include <mm_jpeg_interface.h> } using namespace android; namespace qcamera { //EXIF globals static const char ExifAsciiPrefix[] = { 0x41, 0x53, 0x43, 0x49, 0x49, 0x0, 0x0, 0x0 }; // "ASCII\0\0\0" static const char ExifUndefinedPrefix[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; // "\0\0\0\0\0\0\0\0" #define EXIF_ASCII_PREFIX_SIZE 8 //(sizeof(ExifAsciiPrefix)) #define FOCAL_LENGTH_DECIMAL_PRECISION 100 #define CAMERA_MIN_BATCH_COUNT 1 class QCameraAdjustFPS { public: virtual int recalcFPSRange(int &minFPS, int &maxFPS, cam_fps_range_t &adjustedRange) = 0; virtual ~QCameraAdjustFPS() {} }; class QCameraParameters; class QCameraReprocScaleParam{ public: QCameraReprocScaleParam(QCameraParameters *parent); virtual ~QCameraReprocScaleParam(); virtual void setScaleEnable(bool enabled); virtual int32_t setScaleSizeTbl(size_t scale_cnt, cam_dimension_t *scale_tbl, size_t org_cnt, cam_dimension_t *org_tbl); virtual int32_t setValidatePicSize(int &width, int &height); virtual bool isScaleEnabled(); virtual bool isUnderScaling(); virtual size_t getScaleSizeTblCnt(); virtual cam_dimension_t *getScaledSizeTbl(); virtual size_t getTotalSizeTblCnt(); virtual cam_dimension_t *getTotalSizeTbl(); virtual int32_t getPicSizeFromAPK(int &width, int &height); virtual int32_t getPicSizeSetted(int &width, int &height); private: bool isScalePicSize(int width, int height); bool isValidatePicSize(int width, int height); int32_t setSensorSupportedPicSize(); size_t checkScaleSizeTable(size_t scale_cnt, cam_dimension_t *scale_tbl, size_t org_cnt, cam_dimension_t *org_tbl); bool mScaleEnabled; bool mIsUnderScaling; //if in scale status // picture size cnt that need scale operation size_t mNeedScaleCnt; cam_dimension_t mNeedScaledSizeTbl[MAX_SCALE_SIZES_CNT]; // sensor supported size cnt and table size_t mSensorSizeTblCnt; cam_dimension_t *mSensorSizeTbl; // Total size cnt (sensor supported + need scale cnt) size_t mTotalSizeTblCnt; cam_dimension_t mTotalSizeTbl[MAX_SIZES_CNT]; cam_dimension_t mPicSizeFromAPK; // dimension that APK is expected cam_dimension_t mPicSizeSetted; // dimension that config vfe }; class QCameraParameters: public CameraParameters { public: QCameraParameters(); QCameraParameters(const String8 &params); ~QCameraParameters(); // Supported PREVIEW/RECORDING SIZES IN HIGH FRAME RATE recording, sizes in pixels. // Example value: "800x480,432x320". Read only. static const char KEY_QC_SUPPORTED_HFR_SIZES[]; // The mode of preview frame rate. // Example value: "frame-rate-auto, frame-rate-fixed". static const char KEY_QC_PREVIEW_FRAME_RATE_MODE[]; static const char KEY_QC_SUPPORTED_PREVIEW_FRAME_RATE_MODES[]; static const char KEY_QC_PREVIEW_FRAME_RATE_AUTO_MODE[]; static const char KEY_QC_PREVIEW_FRAME_RATE_FIXED_MODE[]; static const char KEY_QC_SUPPORTED_SKIN_TONE_ENHANCEMENT_MODES[] ; // Supported live snapshot sizes static const char KEY_QC_SUPPORTED_LIVESNAPSHOT_SIZES[]; // Supported Raw formats static const char KEY_QC_SUPPORTED_RAW_FORMATS[]; static const char KEY_QC_RAW_FORMAT[]; //Touch Af/AEC settings. static const char KEY_QC_TOUCH_AF_AEC[]; static const char KEY_QC_SUPPORTED_TOUCH_AF_AEC[]; //Touch Index for AEC. static const char KEY_QC_TOUCH_INDEX_AEC[]; //Touch Index for AF. static const char KEY_QC_TOUCH_INDEX_AF[]; // Current auto scene detection mode. // Example value: "off" or "on" constants. Read/write. static const char KEY_QC_SCENE_DETECT[]; // Supported auto scene detection settings. // Example value: "off,on". Read only. static const char KEY_QC_SUPPORTED_SCENE_DETECT[]; static const char KEY_QC_SELECTABLE_ZONE_AF[]; static const char KEY_QC_ISO_MODE[]; static const char KEY_QC_CONTINUOUS_ISO[]; static const char KEY_QC_MIN_ISO[]; static const char KEY_QC_MAX_ISO[]; static const char KEY_QC_SUPPORTED_ISO_MODES[]; static const char KEY_QC_EXPOSURE_TIME[]; static const char KEY_QC_MIN_EXPOSURE_TIME[]; static const char KEY_QC_MAX_EXPOSURE_TIME[]; static const char KEY_QC_LENSSHADE[] ; static const char KEY_QC_SUPPORTED_LENSSHADE_MODES[] ; static const char KEY_QC_AUTO_EXPOSURE[]; static const char KEY_QC_SUPPORTED_AUTO_EXPOSURE[]; static const char KEY_QC_GPS_LATITUDE_REF[]; static const char KEY_QC_GPS_LONGITUDE_REF[]; static const char KEY_QC_GPS_ALTITUDE_REF[]; static const char KEY_QC_GPS_STATUS[]; static const char KEY_QC_MEMORY_COLOR_ENHANCEMENT[]; static const char KEY_QC_SUPPORTED_MEM_COLOR_ENHANCE_MODES[]; static const char KEY_QC_DIS[]; static const char KEY_QC_OIS[]; static const char KEY_QC_SUPPORTED_DIS_MODES[]; static const char KEY_QC_SUPPORTED_OIS_MODES[]; static const char KEY_QC_ZSL[]; static const char KEY_QC_SUPPORTED_ZSL_MODES[]; static const char KEY_QC_ZSL_BURST_INTERVAL[]; static const char KEY_QC_ZSL_BURST_LOOKBACK[]; static const char KEY_QC_ZSL_QUEUE_DEPTH[]; static const char KEY_QC_CAMERA_MODE[]; static const char KEY_QC_ORIENTATION[]; static const char KEY_QC_VIDEO_HIGH_FRAME_RATE[]; static const char KEY_QC_VIDEO_HIGH_SPEED_RECORDING[]; static const char KEY_QC_SUPPORTED_VIDEO_HIGH_FRAME_RATE_MODES[]; static const char KEY_QC_HIGH_DYNAMIC_RANGE_IMAGING[]; static const char KEY_QC_SUPPORTED_HDR_IMAGING_MODES[]; static const char KEY_QC_AE_BRACKET_HDR[]; static const char KEY_QC_SUPPORTED_AE_BRACKET_MODES[]; static const char KEY_QC_CAPTURE_BURST_EXPOSURE[]; static const char KEY_QC_NUM_SNAPSHOT_PER_SHUTTER[]; static const char KEY_QC_NUM_RETRO_BURST_PER_SHUTTER[]; static const char KEY_QC_SNAPSHOT_BURST_LED_ON_PERIOD[]; static const char KEY_QC_SNAPSHOT_BURST_NUM[]; static const char KEY_QC_NO_DISPLAY_MODE[]; static const char KEY_QC_RAW_PICUTRE_SIZE[]; static const char KEY_QC_TINTLESS_ENABLE[]; static const char KEY_QC_SCENE_SELECTION[]; static const char KEY_QC_CDS_MODE[]; static const char KEY_QC_VIDEO_CDS_MODE[]; static const char KEY_QC_SUPPORTED_CDS_MODES[]; static const char KEY_QC_SUPPORTED_VIDEO_CDS_MODES[]; static const char KEY_QC_TNR_MODE[]; static const char KEY_QC_VIDEO_TNR_MODE[]; static const char KEY_QC_SUPPORTED_TNR_MODES[]; static const char KEY_QC_SUPPORTED_VIDEO_TNR_MODES[]; static const char KEY_INTERNAL_PERVIEW_RESTART[]; static const char KEY_QC_WB_MANUAL_CCT[]; static const char KEY_QC_MIN_WB_CCT[]; static const char KEY_QC_MAX_WB_CCT[]; static const char KEY_QC_MANUAL_WB_GAINS[]; static const char KEY_QC_MIN_WB_GAIN[]; static const char KEY_QC_MAX_WB_GAIN[]; static const char WHITE_BALANCE_MANUAL[]; static const char FOCUS_MODE_MANUAL_POSITION[]; static const char KEY_QC_MANUAL_FOCUS_POSITION[]; static const char KEY_QC_MANUAL_FOCUS_POS_TYPE[]; static const char KEY_QC_MIN_FOCUS_POS_INDEX[]; static const char KEY_QC_MAX_FOCUS_POS_INDEX[]; static const char KEY_QC_MIN_FOCUS_POS_DAC[]; static const char KEY_QC_MAX_FOCUS_POS_DAC[]; static const char KEY_QC_MIN_FOCUS_POS_RATIO[]; static const char KEY_QC_MAX_FOCUS_POS_RATIO[]; static const char KEY_QC_MIN_FOCUS_POS_DIOPTER[]; static const char KEY_QC_MAX_FOCUS_POS_DIOPTER[]; static const char KEY_QC_FOCUS_POSITION_SCALE[]; static const char KEY_QC_FOCUS_POSITION_DIOPTER[]; static const char KEY_QC_SUPPORTED_MANUAL_FOCUS_MODES[]; static const char KEY_QC_SUPPORTED_MANUAL_EXPOSURE_MODES[]; static const char KEY_QC_SUPPORTED_MANUAL_WB_MODES[]; static const char KEY_QC_FOCUS_SCALE_MODE[]; static const char KEY_QC_FOCUS_DIOPTER_MODE[]; static const char KEY_QC_ISO_PRIORITY[]; static const char KEY_QC_EXP_TIME_PRIORITY[]; static const char KEY_QC_USER_SETTING[]; static const char KEY_QC_WB_CCT_MODE[]; static const char KEY_QC_WB_GAIN_MODE[]; static const char KEY_QC_MANUAL_WB_TYPE[]; static const char KEY_QC_MANUAL_WB_VALUE[]; static const char KEY_QC_CURRENT_EXPOSURE_TIME[]; static const char KEY_QC_CURRENT_ISO[]; // DENOISE static const char KEY_QC_DENOISE[]; static const char KEY_QC_SUPPORTED_DENOISE[]; //Selectable zone AF. static const char KEY_QC_FOCUS_ALGO[]; static const char KEY_QC_SUPPORTED_FOCUS_ALGOS[]; //Face Detection static const char KEY_QC_FACE_DETECTION[]; static const char KEY_QC_SUPPORTED_FACE_DETECTION[]; //Face Recognition static const char KEY_QC_FACE_RECOGNITION[]; static const char KEY_QC_SUPPORTED_FACE_RECOGNITION[]; // supported camera features to be queried by Snapdragon SDK //Read only static const char KEY_QC_SUPPORTED_CAMERA_FEATURES[]; //Indicates number of faces requested by the application. //This value will be rejected if the requested faces //greater than supported by hardware. //Write only. static const char KEY_QC_MAX_NUM_REQUESTED_FACES[]; //preview flip static const char KEY_QC_PREVIEW_FLIP[]; //video flip static const char KEY_QC_VIDEO_FLIP[]; //snapshot picture flip static const char KEY_QC_SNAPSHOT_PICTURE_FLIP[]; static const char KEY_QC_SUPPORTED_FLIP_MODES[]; //Face Detection, Facial processing requirement static const char KEY_QC_SNAPSHOT_FD_DATA[]; //Auto HDR enable static const char KEY_QC_AUTO_HDR_ENABLE[]; // video rotation static const char KEY_QC_VIDEO_ROTATION[]; static const char KEY_QC_SUPPORTED_VIDEO_ROTATION_VALUES[]; //Redeye Reduction static const char KEY_QC_REDEYE_REDUCTION[]; static const char KEY_QC_SUPPORTED_REDEYE_REDUCTION[]; static const char EFFECT_EMBOSS[]; static const char EFFECT_SKETCH[]; static const char EFFECT_NEON[]; //AF Bracketing static const char KEY_QC_AF_BRACKET[]; static const char KEY_QC_SUPPORTED_AF_BRACKET_MODES[]; //Refocus static const char KEY_QC_RE_FOCUS[]; static const char KEY_QC_SUPPORTED_RE_FOCUS_MODES[]; //Chroma Flash static const char KEY_QC_CHROMA_FLASH[]; static const char KEY_QC_SUPPORTED_CHROMA_FLASH_MODES[]; //Opti Zoom static const char KEY_QC_OPTI_ZOOM[]; static const char KEY_QC_SUPPORTED_OPTI_ZOOM_MODES[]; // Auto HDR supported static const char KEY_QC_AUTO_HDR_SUPPORTED[]; // HDR modes static const char KEY_QC_HDR_MODE[]; static const char KEY_QC_SUPPORTED_KEY_QC_HDR_MODES[]; //True Portrait static const char KEY_QC_TRUE_PORTRAIT[]; static const char KEY_QC_SUPPORTED_TRUE_PORTRAIT_MODES[]; //See more static const char KEY_QC_SEE_MORE[]; static const char KEY_QC_SUPPORTED_SEE_MORE_MODES[]; //Still more static const char KEY_QC_STILL_MORE[]; static const char KEY_QC_SUPPORTED_STILL_MORE_MODES[]; //Longshot static const char KEY_QC_LONGSHOT_SUPPORTED[]; //ZSL+HDR static const char KEY_QC_ZSL_HDR_SUPPORTED[]; // Values for Touch AF/AEC static const char TOUCH_AF_AEC_OFF[]; static const char TOUCH_AF_AEC_ON[]; // Values for Scene mode static const char SCENE_MODE_ASD[]; static const char SCENE_MODE_BACKLIGHT[]; static const char SCENE_MODE_FLOWERS[]; static const char SCENE_MODE_AR[]; static const char SCENE_MODE_HDR[]; static const char PIXEL_FORMAT_YUV420SP_ADRENO[]; // ADRENO static const char PIXEL_FORMAT_YV12[]; // NV12 static const char PIXEL_FORMAT_NV12[]; //NV12 static const char QC_PIXEL_FORMAT_NV12_VENUS[]; //NV12 VENUS // Values for raw picture format static const char QC_PIXEL_FORMAT_YUV_RAW_8BIT_YUYV[]; static const char QC_PIXEL_FORMAT_YUV_RAW_8BIT_YVYU[]; static const char QC_PIXEL_FORMAT_YUV_RAW_8BIT_UYVY[]; static const char QC_PIXEL_FORMAT_YUV_RAW_8BIT_VYUY[]; static const char QC_PIXEL_FORMAT_BAYER_QCOM_RAW_8GBRG[]; static const char QC_PIXEL_FORMAT_BAYER_QCOM_RAW_8GRBG[]; static const char QC_PIXEL_FORMAT_BAYER_QCOM_RAW_8RGGB[]; static const char QC_PIXEL_FORMAT_BAYER_QCOM_RAW_8BGGR[]; static const char QC_PIXEL_FORMAT_BAYER_QCOM_RAW_10GBRG[]; static const char QC_PIXEL_FORMAT_BAYER_QCOM_RAW_10GRBG[]; static const char QC_PIXEL_FORMAT_BAYER_QCOM_RAW_10RGGB[]; static const char QC_PIXEL_FORMAT_BAYER_QCOM_RAW_10BGGR[]; static const char QC_PIXEL_FORMAT_BAYER_QCOM_RAW_12GBRG[]; static const char QC_PIXEL_FORMAT_BAYER_QCOM_RAW_12GRBG[]; static const char QC_PIXEL_FORMAT_BAYER_QCOM_RAW_12RGGB[]; static const char QC_PIXEL_FORMAT_BAYER_QCOM_RAW_12BGGR[]; static const char QC_PIXEL_FORMAT_BAYER_MIPI_RAW_8GBRG[]; static const char QC_PIXEL_FORMAT_BAYER_MIPI_RAW_8GRBG[]; static const char QC_PIXEL_FORMAT_BAYER_MIPI_RAW_8RGGB[]; static const char QC_PIXEL_FORMAT_BAYER_MIPI_RAW_8BGGR[]; static const char QC_PIXEL_FORMAT_BAYER_MIPI_RAW_10GBRG[]; static const char QC_PIXEL_FORMAT_BAYER_MIPI_RAW_10GRBG[]; static const char QC_PIXEL_FORMAT_BAYER_MIPI_RAW_10RGGB[]; static const char QC_PIXEL_FORMAT_BAYER_MIPI_RAW_10BGGR[]; static const char QC_PIXEL_FORMAT_BAYER_MIPI_RAW_12GBRG[]; static const char QC_PIXEL_FORMAT_BAYER_MIPI_RAW_12GRBG[]; static const char QC_PIXEL_FORMAT_BAYER_MIPI_RAW_12RGGB[]; static const char QC_PIXEL_FORMAT_BAYER_MIPI_RAW_12BGGR[]; static const char QC_PIXEL_FORMAT_BAYER_IDEAL_QCOM_8GBRG[]; static const char QC_PIXEL_FORMAT_BAYER_IDEAL_QCOM_8GRBG[]; static const char QC_PIXEL_FORMAT_BAYER_IDEAL_QCOM_8RGGB[]; static const char QC_PIXEL_FORMAT_BAYER_IDEAL_QCOM_8BGGR[]; static const char QC_PIXEL_FORMAT_BAYER_IDEAL_QCOM_10GBRG[]; static const char QC_PIXEL_FORMAT_BAYER_IDEAL_QCOM_10GRBG[]; static const char QC_PIXEL_FORMAT_BAYER_IDEAL_QCOM_10RGGB[]; static const char QC_PIXEL_FORMAT_BAYER_IDEAL_QCOM_10BGGR[]; static const char QC_PIXEL_FORMAT_BAYER_IDEAL_QCOM_12GBRG[]; static const char QC_PIXEL_FORMAT_BAYER_IDEAL_QCOM_12GRBG[]; static const char QC_PIXEL_FORMAT_BAYER_IDEAL_QCOM_12RGGB[]; static const char QC_PIXEL_FORMAT_BAYER_IDEAL_QCOM_12BGGR[]; static const char QC_PIXEL_FORMAT_BAYER_IDEAL_MIPI_8GBRG[]; static const char QC_PIXEL_FORMAT_BAYER_IDEAL_MIPI_8GRBG[]; static const char QC_PIXEL_FORMAT_BAYER_IDEAL_MIPI_8RGGB[]; static const char QC_PIXEL_FORMAT_BAYER_IDEAL_MIPI_8BGGR[]; static const char QC_PIXEL_FORMAT_BAYER_IDEAL_MIPI_10GBRG[]; static const char QC_PIXEL_FORMAT_BAYER_IDEAL_MIPI_10GRBG[]; static const char QC_PIXEL_FORMAT_BAYER_IDEAL_MIPI_10RGGB[]; static const char QC_PIXEL_FORMAT_BAYER_IDEAL_MIPI_10BGGR[]; static const char QC_PIXEL_FORMAT_BAYER_IDEAL_MIPI_12GBRG[]; static const char QC_PIXEL_FORMAT_BAYER_IDEAL_MIPI_12GRBG[]; static const char QC_PIXEL_FORMAT_BAYER_IDEAL_MIPI_12RGGB[]; static const char QC_PIXEL_FORMAT_BAYER_IDEAL_MIPI_12BGGR[]; static const char QC_PIXEL_FORMAT_BAYER_IDEAL_PLAIN8_8GBRG[]; static const char QC_PIXEL_FORMAT_BAYER_IDEAL_PLAIN8_8GRBG[]; static const char QC_PIXEL_FORMAT_BAYER_IDEAL_PLAIN8_8RGGB[]; static const char QC_PIXEL_FORMAT_BAYER_IDEAL_PLAIN8_8BGGR[]; static const char QC_PIXEL_FORMAT_BAYER_IDEAL_PLAIN16_8GBRG[]; static const char QC_PIXEL_FORMAT_BAYER_IDEAL_PLAIN16_8GRBG[]; static const char QC_PIXEL_FORMAT_BAYER_IDEAL_PLAIN16_8RGGB[]; static const char QC_PIXEL_FORMAT_BAYER_IDEAL_PLAIN16_8BGGR[]; static const char QC_PIXEL_FORMAT_BAYER_IDEAL_PLAIN16_10GBRG[]; static const char QC_PIXEL_FORMAT_BAYER_IDEAL_PLAIN16_10GRBG[]; static const char QC_PIXEL_FORMAT_BAYER_IDEAL_PLAIN16_10RGGB[]; static const char QC_PIXEL_FORMAT_BAYER_IDEAL_PLAIN16_10BGGR[]; static const char QC_PIXEL_FORMAT_BAYER_IDEAL_PLAIN16_12GBRG[]; static const char QC_PIXEL_FORMAT_BAYER_IDEAL_PLAIN16_12GRBG[]; static const char QC_PIXEL_FORMAT_BAYER_IDEAL_PLAIN16_12RGGB[]; static const char QC_PIXEL_FORMAT_BAYER_IDEAL_PLAIN16_12BGGR[]; // ISO values static const char ISO_AUTO[]; static const char ISO_HJR[]; static const char ISO_100[]; static const char ISO_200[]; static const char ISO_400[]; static const char ISO_800[]; static const char ISO_1600[]; static const char ISO_3200[]; static const char ISO_6400[]; static const char ISO_MANUAL[]; // Values for auto exposure settings. static const char AUTO_EXPOSURE_FRAME_AVG[]; static const char AUTO_EXPOSURE_CENTER_WEIGHTED[]; static const char AUTO_EXPOSURE_SPOT_METERING[]; static const char AUTO_EXPOSURE_SMART_METERING[]; static const char AUTO_EXPOSURE_USER_METERING[]; static const char AUTO_EXPOSURE_SPOT_METERING_ADV[]; static const char AUTO_EXPOSURE_CENTER_WEIGHTED_ADV[]; static const char KEY_QC_SHARPNESS[]; static const char KEY_QC_MIN_SHARPNESS[]; static const char KEY_QC_MAX_SHARPNESS[]; static const char KEY_QC_SHARPNESS_STEP[]; static const char KEY_QC_CONTRAST[]; static const char KEY_QC_MIN_CONTRAST[]; static const char KEY_QC_MAX_CONTRAST[]; static const char KEY_QC_CONTRAST_STEP[]; static const char KEY_QC_SATURATION[]; static const char KEY_QC_MIN_SATURATION[]; static const char KEY_QC_MAX_SATURATION[]; static const char KEY_QC_SATURATION_STEP[]; static const char KEY_QC_BRIGHTNESS[]; static const char KEY_QC_MIN_BRIGHTNESS[]; static const char KEY_QC_MAX_BRIGHTNESS[]; static const char KEY_QC_BRIGHTNESS_STEP[]; static const char KEY_QC_SCE_FACTOR[]; static const char KEY_QC_MIN_SCE_FACTOR[]; static const char KEY_QC_MAX_SCE_FACTOR[]; static const char KEY_QC_SCE_FACTOR_STEP[]; static const char KEY_QC_HISTOGRAM[] ; static const char KEY_QC_SUPPORTED_HISTOGRAM_MODES[] ; static const char KEY_QC_SUPPORTED_HDR_NEED_1X[]; static const char KEY_QC_HDR_NEED_1X[]; static const char KEY_QC_VIDEO_HDR[]; static const char KEY_QC_VT_ENABLE[]; static const char KEY_QC_SUPPORTED_VIDEO_HDR_MODES[]; static const char KEY_QC_SENSOR_HDR[]; static const char KEY_QC_SUPPORTED_SENSOR_HDR_MODES[]; static const char KEY_QC_RDI_MODE[]; static const char KEY_QC_SUPPORTED_RDI_MODES[]; static const char KEY_QC_SECURE_MODE[]; static const char KEY_QC_SUPPORTED_SECURE_MODES[]; // Values for SKIN TONE ENHANCEMENT static const char SKIN_TONE_ENHANCEMENT_ENABLE[] ; static const char SKIN_TONE_ENHANCEMENT_DISABLE[] ; // Values for Denoise static const char DENOISE_OFF[] ; static const char DENOISE_ON[] ; // Values for auto exposure settings. static const char FOCUS_ALGO_AUTO[]; static const char FOCUS_ALGO_SPOT_METERING[]; static const char FOCUS_ALGO_CENTER_WEIGHTED[]; static const char FOCUS_ALGO_FRAME_AVERAGE[]; // Values for AE Bracketing settings. static const char AE_BRACKET_OFF[]; static const char AE_BRACKET[]; // Values for AF Bracketing settings. static const char AF_BRACKET_OFF[]; static const char AF_BRACKET_ON[]; // Values for Refocus settings. static const char RE_FOCUS_OFF[]; static const char RE_FOCUS_ON[]; // Values for Chroma Flash settings. static const char CHROMA_FLASH_OFF[]; static const char CHROMA_FLASH_ON[]; // Values for Opti Zoom settings. static const char OPTI_ZOOM_OFF[]; static const char OPTI_ZOOM_ON[]; // Values for Still More settings. static const char STILL_MORE_OFF[]; static const char STILL_MORE_ON[]; // Values for HDR mode settings. static const char HDR_MODE_SENSOR[]; static const char HDR_MODE_MULTI_FRAME[]; // Values for True Portrait settings. static const char TRUE_PORTRAIT_OFF[]; static const char TRUE_PORTRAIT_ON[]; // Values for HFR settings. static const char VIDEO_HFR_OFF[]; static const char VIDEO_HFR_2X[]; static const char VIDEO_HFR_3X[]; static const char VIDEO_HFR_4X[]; static const char VIDEO_HFR_5X[]; static const char VIDEO_HFR_6X[]; static const char VIDEO_HFR_7X[]; static const char VIDEO_HFR_8X[]; static const char VIDEO_HFR_9X[]; // Values for feature on/off settings. static const char VALUE_OFF[]; static const char VALUE_ON[]; // Values for feature enable/disable settings. static const char VALUE_ENABLE[]; static const char VALUE_DISABLE[]; // Values for feature true/false settings. static const char VALUE_FALSE[]; static const char VALUE_TRUE[]; //Values for flip settings static const char FLIP_MODE_OFF[]; static const char FLIP_MODE_V[]; static const char FLIP_MODE_H[]; static const char FLIP_MODE_VH[]; //Values for CDS Mode static const char CDS_MODE_OFF[]; static const char CDS_MODE_ON[]; static const char CDS_MODE_AUTO[]; static const char KEY_SELECTED_AUTO_SCENE[]; // Values for Video rotation static const char VIDEO_ROTATION_0[]; static const char VIDEO_ROTATION_90[]; static const char VIDEO_ROTATION_180[]; static const char VIDEO_ROTATION_270[]; //param key for HFR batch size static const char KEY_QC_VIDEO_BATCH_SIZE[]; enum { CAMERA_ORIENTATION_UNKNOWN = 0, CAMERA_ORIENTATION_PORTRAIT = 1, CAMERA_ORIENTATION_LANDSCAPE = 2, }; template <typename valueType> struct QCameraMap { const char *const desc; valueType val; }; friend class QCameraReprocScaleParam; QCameraReprocScaleParam m_reprocScaleParam; void getSupportedHfrSizes(Vector<Size> &sizes); void setPreviewFrameRateMode(const char *mode); const char *getPreviewFrameRateMode() const; void setTouchIndexAec(int x, int y); void getTouchIndexAec(int *x, int *y); void setTouchIndexAf(int x, int y); void getTouchIndexAf(int *x, int *y); int32_t init(cam_capability_t *, mm_camera_vtbl_t *, QCameraAdjustFPS *); void deinit(); int32_t assign(QCameraParameters& params); int32_t initDefaultParameters(); int32_t updateParameters(QCameraParameters&, bool &needRestart); int32_t commitParameters(); int getPreviewHalPixelFormat() const; int32_t getStreamRotation(cam_stream_type_t streamType, cam_pp_feature_config_t &featureConfig, cam_dimension_t &dim); int32_t getStreamFormat(cam_stream_type_t streamType, cam_format_t &format); int32_t getStreamDimension(cam_stream_type_t streamType, cam_dimension_t &dim); void getThumbnailSize(int *width, int *height) const; uint8_t getZSLBurstInterval(); uint8_t getZSLQueueDepth(); uint8_t getZSLBackLookCount(); uint8_t getMaxUnmatchedFramesInQueue(); bool isZSLMode() {return m_bZslMode;}; bool isRdiMode() {return m_bRdiMode;}; bool isSecureMode() {return m_bSecureMode;}; bool isNoDisplayMode() {return m_bNoDisplayMode;}; bool isWNREnabled() {return m_bWNROn;}; bool isTNRPreviewEnabled() {return m_bTNRPreviewOn;}; bool isTNRVideoEnabled() {return m_bTNRVideoOn;}; bool isHfrMode() {return m_bHfrMode;}; void getHfrFps(cam_fps_range_t &pFpsRange) { pFpsRange = m_hfrFpsRange;}; uint8_t getNumOfSnapshots(); uint8_t getNumOfRetroSnapshots(); uint8_t getNumOfExtraHDRInBufsIfNeeded(); uint8_t getNumOfExtraHDROutBufsIfNeeded(); uint8_t getBurstNum(); int getBurstLEDOnPeriod(); int getRetroActiveBurstNum(); bool getRecordingHintValue() {return m_bRecordingHint;}; // return local copy of video hint int setRecordingHintValue(int32_t value); // set local copy of video hint and send to server // no change in parameters value uint32_t getJpegQuality(); uint32_t getRotation(); uint32_t getDeviceRotation(); uint32_t getJpegExifRotation(); bool useJpegExifRotation(); int32_t getEffectValue(); int32_t getExifDateTime(String8 &dateTime, String8 &subsecTime); int32_t getExifFocalLength(rat_t *focalLenght); uint16_t getExifIsoSpeed(); int32_t getExifGpsProcessingMethod(char *gpsProcessingMethod, uint32_t &count); int32_t getExifLatitude(rat_t *latitude, char *latRef); int32_t getExifLongitude(rat_t *longitude, char *lonRef); int32_t getExifAltitude(rat_t *altitude, char *altRef); int32_t getExifGpsDateTimeStamp(char *gpsDateStamp, uint32_t bufLen, rat_t *gpsTimeStamp); int32_t updateFocusDistances(cam_focus_distances_info_t *focusDistances); bool isAEBracketEnabled(); int32_t setAEBracketing(); bool isFpsDebugEnabled() {return m_bDebugFps;}; bool isHistogramEnabled() {return m_bHistogramEnabled;}; bool isSceneSelectionEnabled() {return m_bSceneSelection;}; int32_t setSelectedScene(cam_scene_mode_type scene); cam_scene_mode_type getSelectedScene(); bool isFaceDetectionEnabled() {return ((m_nFaceProcMask & CAM_FACE_PROCESS_MASK_DETECTION) != 0);}; bool getFaceDetectionOption() { return m_bFaceDetectionOn;} int32_t setFaceDetectionOption(bool enabled); int32_t setHistogram(bool enabled); int32_t setFaceDetection(bool enabled, bool initCommit); int32_t setFrameSkip(enum msm_vfe_frame_skip_pattern pattern); qcamera_thermal_mode getThermalMode() {return m_ThermalMode;}; int32_t updateRecordingHintValue(int32_t value); int32_t setHDRAEBracket(cam_exp_bracketing_t hdrBracket); bool isHDREnabled(); bool isAutoHDREnabled(); int32_t stopAEBracket(); int32_t updateFlash(bool commitSettings); int32_t updateRAW(cam_dimension_t max_dim); bool isAVTimerEnabled(); bool isDISEnabled(); cam_is_type_t getISType(); uint8_t getMobicatMask(); cam_focus_mode_type getFocusMode() const {return mFocusMode;}; bool isAFRunning(); int32_t setNumOfSnapshot(); int32_t adjustPreviewFpsRange(cam_fps_range_t *fpsRange); bool isJpegPictureFormat() {return (mPictureFormat == CAM_FORMAT_JPEG);}; bool isNV16PictureFormat() {return (mPictureFormat == CAM_FORMAT_YUV_422_NV16);}; bool isNV21PictureFormat() {return (mPictureFormat == CAM_FORMAT_YUV_420_NV21);}; cam_denoise_process_type_t getDenoiseProcessPlate(cam_intf_parm_type_t type); void getLiveSnapshotSize(cam_dimension_t &dim); int32_t getRawSize(cam_dimension_t &dim) {dim = m_rawSize; return NO_ERROR;}; int32_t setRawSize(cam_dimension_t &dim); int getFlipMode(cam_stream_type_t streamType); bool isSnapshotFDNeeded(); bool isHDR1xFrameEnabled() {return m_bHDR1xFrameEnabled;} bool isYUVFrameInfoNeeded(); const char*getFrameFmtString(cam_format_t fmt); bool isHDR1xExtraBufferNeeded() {return m_bHDR1xExtraBufferNeeded;} bool isHDROutputCropEnabled() {return m_bHDROutputCropEnabled;} bool isPreviewFlipChanged() { return m_bPreviewFlipChanged; }; bool isVideoFlipChanged() { return m_bVideoFlipChanged; }; bool isSnapshotFlipChanged() { return m_bSnapshotFlipChanged; }; void setHDRSceneEnable(bool bflag); int32_t updateAWBParams(cam_awb_params_t &awb_params); const char *getASDStateString(cam_auto_scene_t scene); bool isHDRThumbnailProcessNeeded() { return m_bHDRThumbnailProcessNeeded; }; int getAutoFlickerMode(); void setMinPpMask(uint32_t min_pp_mask) { m_nMinRequiredPpMask = min_pp_mask; }; bool sendStreamConfigInfo(cam_stream_size_info_t &stream_config_info); bool setStreamConfigure(bool isCapture, bool previewAsPostview, bool resetConfig); int32_t addOnlineRotation(uint32_t rotation, uint32_t streamId, int32_t device_rotation); uint8_t getNumOfExtraBuffersForImageProc(); uint8_t getNumOfExtraBuffersForVideo(); uint8_t getNumOfExtraBuffersForPreview(); uint32_t getExifBufIndex(uint32_t captureIndex); bool needThumbnailReprocess(uint32_t *pFeatureMask); inline bool isUbiFocusEnabled() {return m_bAFBracketingOn && !m_bReFocusOn;}; inline bool isChromaFlashEnabled() {return m_bChromaFlashOn;}; inline bool isTruePortraitEnabled() {return m_bTruePortraitOn;}; inline size_t getTPMaxMetaSize() { return m_pCapability->true_portrait_settings_need.meta_max_size;}; inline bool isSeeMoreEnabled() {return m_bSeeMoreOn;}; inline bool isStillMoreEnabled() {return m_bStillMoreOn;}; bool isOptiZoomEnabled(); int32_t commitAFBracket(cam_af_bracketing_t afBracket); int32_t commitFlashBracket(cam_flash_bracketing_t flashBracket); int32_t set3ALock(const char *lockStr); int32_t setAndCommitZoom(int zoom_level); uint8_t getBurstCountForAdvancedCapture(); uint32_t getNumberInBufsForSingleShot(); uint32_t getNumberOutBufsForSingleShot(); int32_t setLongshotEnable(bool enable); String8 dump(); inline bool isUbiRefocus() {return m_bReFocusOn && (m_pCapability->refocus_af_bracketing_need.output_count > 1);}; inline uint32_t getRefocusMaxMetaSize() { return m_pCapability->refocus_af_bracketing_need.meta_max_size;}; inline uint8_t getRefocusOutputCount() { return m_pCapability->refocus_af_bracketing_need.output_count;}; inline bool generateThumbFromMain() {return isUbiFocusEnabled() || isChromaFlashEnabled() || isOptiZoomEnabled() || isUbiRefocus() || isHDREnabled() || isStillMoreEnabled() || isTruePortraitEnabled(); } void updateCurrentFocusPosition(cam_focus_pos_info_t &cur_pos_info); void updateAEInfo(cam_3a_params_t &ae_params); bool isDisplayFrameNeeded() { return m_bDisplayFrame; }; int32_t setDisplayFrame(bool enabled) {m_bDisplayFrame=enabled; return 0;}; bool isAdvCamFeaturesEnabled() {return isUbiFocusEnabled() || isChromaFlashEnabled() || m_bOptiZoomOn || isHDREnabled() || isHDREnabled() || isStillMoreEnabled();} int32_t setAecLock(const char *aecStr); int32_t updateDebugLevel(); bool is4k2kVideoResolution(); int getBrightness(); int32_t updateOisValue(bool oisValue); int32_t setIntEvent(cam_int_evt_params_t params); void setOfflineRAW(); bool getofflineRAW() {return mOfflineRAW;} int32_t updatePpFeatureMask(cam_stream_type_t stream_type); int32_t setStreamPpMask(cam_stream_type_t stream_type, uint32_t pp_mask); int32_t getStreamPpMask(cam_stream_type_t stream_type, uint32_t &pp_mask); int32_t getSharpness() {return m_nSharpness;}; int32_t getEffect() {return mParmEffect;}; int32_t updateFlashMode(cam_flash_mode_t flash_mode); int32_t configureFlash(cam_capture_frame_config_t &frame_config); int32_t configureAEBracketing(cam_capture_frame_config_t &frame_config); int32_t configureHDRBracketing(cam_capture_frame_config_t &frame_config); int32_t configFrameCapture(bool commitSettings); int32_t resetFrameCapture(bool commitSettings); cam_still_more_t getStillMoreSettings() {return m_stillmore_config;}; void setStillMoreSettings(cam_still_more_t stillmore_config) {m_stillmore_config = stillmore_config;}; cam_still_more_t getStillMoreCapability() {return m_pCapability->stillmore_settings_need;}; int32_t getZoomLevel(){return mZoomLevel;}; int32_t getParmZoomLevel(){return mParmZoomLevel;}; int8_t getReprocCount(){return mTotalPPCount;}; int8_t getCurPPCount(){return mCurPPCount;}; void setReprocCount(); void setCurPPCount(int8_t count) {mCurPPCount = count;}; int32_t updateCurrentFocusPosition(int32_t pos); int32_t setToneMapMode(uint32_t value, bool initCommit); void setTintless(bool enable); void setBufBatchCount(int8_t buf_cnt); int8_t getBufBatchCount() {return mBufBatchCnt;}; cam_capture_frame_config_t getCaptureFrameConfig() { return m_captureFrameConfig; }; void setJpegRotation(int rotation); uint32_t getJpegRotation() { return mJpegRotation;}; void setFocusState(cam_autofocus_state_t focusState) { mFocusState = focusState; }; cam_autofocus_state_t getFocusState() { return mFocusState; }; private: int32_t setPreviewSize(const QCameraParameters& ); int32_t setVideoSize(const QCameraParameters& ); int32_t setPictureSize(const QCameraParameters& ); int32_t setLiveSnapshotSize(const QCameraParameters& ); int32_t setPreviewFormat(const QCameraParameters& ); int32_t setPictureFormat(const QCameraParameters& ); int32_t setOrientation(const QCameraParameters& ); int32_t setJpegThumbnailSize(const QCameraParameters& ); int32_t setJpegQuality(const QCameraParameters& ); int32_t setPreviewFpsRange(const QCameraParameters& ); int32_t setPreviewFrameRate(const QCameraParameters& ); int32_t setAutoExposure(const QCameraParameters& ); int32_t setEffect(const QCameraParameters& ); int32_t setBrightness(const QCameraParameters& ); int32_t setFocusMode(const QCameraParameters& ); int32_t setFocusPosition(const QCameraParameters& ); int32_t setSharpness(const QCameraParameters& ); int32_t setSaturation(const QCameraParameters& ); int32_t setContrast(const QCameraParameters& ); int32_t setSkinToneEnhancement(const QCameraParameters& ); int32_t setSceneDetect(const QCameraParameters& ); int32_t setVideoHDR(const QCameraParameters& ); int32_t setVtEnable(const QCameraParameters& ); int32_t setZoom(const QCameraParameters& ); int32_t setISOValue(const QCameraParameters& ); int32_t setContinuousISO(const QCameraParameters& ); int32_t setExposureTime(const QCameraParameters& ); int32_t setRotation(const QCameraParameters& ); int32_t setVideoRotation(const QCameraParameters& ); int32_t setFlash(const QCameraParameters& ); int32_t setAecLock(const QCameraParameters& ); int32_t setAwbLock(const QCameraParameters& ); int32_t setMCEValue(const QCameraParameters& ); int32_t setDISValue(const QCameraParameters& params); int32_t setLensShadeValue(const QCameraParameters& ); int32_t setExposureCompensation(const QCameraParameters& ); int32_t setWhiteBalance(const QCameraParameters& ); int32_t setManualWhiteBalance(const QCameraParameters& ); int32_t setAntibanding(const QCameraParameters& ); int32_t setFocusAreas(const QCameraParameters& ); int32_t setMeteringAreas(const QCameraParameters& ); int32_t setSceneMode(const QCameraParameters& ); int32_t setSelectableZoneAf(const QCameraParameters& ); int32_t setAEBracket(const QCameraParameters& ); int32_t setAFBracket(const QCameraParameters& ); int32_t setReFocus(const QCameraParameters& ); int32_t setChromaFlash(const QCameraParameters& ); int32_t setOptiZoom(const QCameraParameters& ); int32_t setHDRMode(const QCameraParameters& ); int32_t setHDRNeed1x(const QCameraParameters& ); int32_t setTruePortrait(const QCameraParameters& ); int32_t setSeeMore(const QCameraParameters& ); int32_t setStillMore(const QCameraParameters& ); int32_t setRedeyeReduction(const QCameraParameters& ); int32_t setGpsLocation(const QCameraParameters& ); int32_t setRecordingHint(const QCameraParameters& ); int32_t setNoDisplayMode(const QCameraParameters& ); int32_t setWaveletDenoise(const QCameraParameters& ); int32_t setTemporalDenoise(const QCameraParameters&); int32_t setZslMode(const QCameraParameters& ); int32_t setZslAttributes(const QCameraParameters& ); int32_t setAutoHDR(const QCameraParameters& params); int32_t setCameraMode(const QCameraParameters& ); int32_t setSceneSelectionMode(const QCameraParameters& params); int32_t setFaceRecognition(const QCameraParameters& ); int32_t setFlip(const QCameraParameters& ); int32_t setBurstNum(const QCameraParameters& params); int32_t setRetroActiveBurstNum(const QCameraParameters& params); int32_t setBurstLEDOnPeriod(const QCameraParameters& params); int32_t setSnapshotFDReq(const QCameraParameters& ); int32_t setStatsDebugMask(); int32_t setPAAF(); int32_t setTintlessValue(const QCameraParameters& params); int32_t setCDSMode(const QCameraParameters& params); int32_t setMobicat(const QCameraParameters& params); int32_t setRdiMode(const QCameraParameters& ); int32_t setSecureMode(const QCameraParameters& ); int32_t setAutoExposure(const char *autoExp); int32_t setPreviewFpsRange(int min_fps,int max_fps, int vid_min_fps,int vid_max_fps); int32_t setEffect(const char *effect); int32_t setBrightness(int brightness); int32_t setFocusMode(const char *focusMode); int32_t setFocusPosition(const char *typeStr, const char *posStr); int32_t setSharpness(int sharpness); int32_t setSaturation(int saturation); int32_t setContrast(int contrast); int32_t setSkinToneEnhancement(int sceFactor); int32_t setSceneDetect(const char *scendDetect); int32_t setVideoHDR(const char *videoHDR); int32_t setSensorSnapshotHDR(const char *snapshotHDR); int32_t setVtEnable(const char *vtEnable); int32_t setZoom(int zoom_level); int32_t setISOValue(const char *isoValue); int32_t setContinuousISO(const char *isoValue); int32_t setExposureTime(const char *expTimeStr); int32_t setFlash(const char *flashStr); int32_t setAwbLock(const char *awbStr); int32_t setMCEValue(const char *mceStr); int32_t setDISValue(const char *disStr); int32_t setHighFrameRate(const int32_t hfrMode); int32_t setLensShadeValue(const char *lensShadeStr); int32_t setExposureCompensation(int expComp); int32_t setWhiteBalance(const char *wbStr); int32_t setWBManualCCT(const char *cctStr); int32_t setManualWBGains(const char *gainStr); int32_t setAntibanding(const char *antiBandingStr); int32_t setFocusAreas(const char *focusAreasStr); int32_t setMeteringAreas(const char *meteringAreasStr); int32_t setSceneMode(const char *sceneModeStr); int32_t setSelectableZoneAf(const char *selZoneAFStr); int32_t setAEBracket(const char *aecBracketStr); int32_t setAFBracket(const char *afBracketStr); int32_t setReFocus(const char *reFocusStr); int32_t setChromaFlash(const char *chromaFlashStr); int32_t setOptiZoom(const char *optiZoomStr); int32_t setHDRMode(const char *optiZoomStr); int32_t setHDRNeed1x(const char *optiZoomStr); int32_t setTruePortrait(const char *truePortraitStr); int32_t setSeeMore(const char *SeeMoreStr); int32_t setStillMore(const char *StillMoreStr); int32_t setRedeyeReduction(const char *redeyeStr); int32_t setWaveletDenoise(const char *wnrStr); int32_t setFaceRecognition(const char *faceRecog, uint32_t maxFaces); int32_t setTintlessValue(const char *tintStr); bool UpdateHFRFrameRate(const QCameraParameters& params); int32_t setRdiMode(const char *str); int32_t setSecureMode(const char *str); int32_t setCDSMode(int32_t cds_mode, bool initCommit); int32_t parseGains(const char *gainStr, float &r_gain, float &g_gain, float &b_gain); int32_t parse_pair(const char *str, int *first, int *second, char delim, char **endptr); void parseSizesList(const char *sizesStr, Vector<Size> &sizes); int32_t parseNDimVector(const char *str, int *num, int N, char delim); int32_t parseCameraAreaString(const char *str, int max_num_areas, cam_area_t *pAreas, int& num_areas_found); bool validateCameraAreas(cam_area_t *areas, int num_areas); int parseGPSCoordinate(const char *coord_str, rat_t *coord); int32_t getRational(rat_t *rat, int num, int denom); String8 createSizesString(const cam_dimension_t *sizes, size_t len); String8 createHfrValuesString(const cam_hfr_info_t *values, size_t len, const QCameraMap<cam_hfr_mode_t> *map, size_t map_len); String8 createHfrSizesString(const cam_hfr_info_t *values, size_t len); String8 createFpsRangeString(const cam_fps_range_t *fps, size_t len, int &default_fps_index); String8 createFpsString(cam_fps_range_t &fps); String8 createZoomRatioValuesString(uint32_t *zoomRatios, size_t length); // ops for batch set/get params with server int32_t initBatchUpdate(parm_buffer_t *p_table); int32_t commitSetBatch(); int32_t commitGetBatch(); // ops to tempororily update parameter entries and commit int32_t updateParamEntry(const char *key, const char *value); int32_t commitParamChanges(); // Map from strings to values static const cam_dimension_t THUMBNAIL_SIZES_MAP[]; static const QCameraMap<cam_auto_exposure_mode_type> AUTO_EXPOSURE_MAP[]; static const QCameraMap<cam_format_t> PREVIEW_FORMATS_MAP[]; static const QCameraMap<cam_format_t> PICTURE_TYPES_MAP[]; static const QCameraMap<cam_focus_mode_type> FOCUS_MODES_MAP[]; static const QCameraMap<cam_effect_mode_type> EFFECT_MODES_MAP[]; static const QCameraMap<cam_scene_mode_type> SCENE_MODES_MAP[]; static const QCameraMap<cam_flash_mode_t> FLASH_MODES_MAP[]; static const QCameraMap<cam_focus_algorithm_type> FOCUS_ALGO_MAP[]; static const QCameraMap<cam_wb_mode_type> WHITE_BALANCE_MODES_MAP[]; static const QCameraMap<cam_antibanding_mode_type> ANTIBANDING_MODES_MAP[]; static const QCameraMap<cam_iso_mode_type> ISO_MODES_MAP[]; static const QCameraMap<cam_hfr_mode_t> HFR_MODES_MAP[]; static const QCameraMap<cam_bracket_mode> BRACKETING_MODES_MAP[]; static const QCameraMap<int> ON_OFF_MODES_MAP[]; static const QCameraMap<int> ENABLE_DISABLE_MODES_MAP[]; static const QCameraMap<int> DENOISE_ON_OFF_MODES_MAP[]; static const QCameraMap<int> TRUE_FALSE_MODES_MAP[]; static const QCameraMap<int> TOUCH_AF_AEC_MODES_MAP[]; static const QCameraMap<cam_flip_t> FLIP_MODES_MAP[]; static const QCameraMap<int> AF_BRACKETING_MODES_MAP[]; static const QCameraMap<int> RE_FOCUS_MODES_MAP[]; static const QCameraMap<int> CHROMA_FLASH_MODES_MAP[]; static const QCameraMap<int> OPTI_ZOOM_MODES_MAP[]; static const QCameraMap<int> TRUE_PORTRAIT_MODES_MAP[]; static const QCameraMap<cam_cds_mode_type_t> CDS_MODES_MAP[]; static const QCameraMap<int> HDR_MODES_MAP[]; static const QCameraMap<int> VIDEO_ROTATION_MODES_MAP[]; static const QCameraMap<int> SEE_MORE_MODES_MAP[]; static const QCameraMap<int> STILL_MORE_MODES_MAP[]; cam_capability_t *m_pCapability; mm_camera_vtbl_t *m_pCamOpsTbl; QCameraHeapMemory *m_pParamHeap; parm_buffer_t *m_pParamBuf; // ptr to param buf in m_pParamHeap cam_is_type_t mIsType; bool m_bZslMode; // if ZSL is enabled bool m_bZslMode_new; bool m_bForceZslMode; bool m_bRecordingHint; // local copy of recording hint bool m_bRecordingHint_new; bool m_bHistogramEnabled; // if histogram is enabled uint32_t m_nFaceProcMask; // face process mask bool m_bFaceDetectionOn; // if face Detection turned on by user bool m_bDebugFps; // if FPS need to be logged cam_focus_mode_type mFocusMode; cam_format_t mPreviewFormat; int32_t mPictureFormat; // could be CAMERA_PICTURE_TYPE_JPEG or cam_format_t bool m_bNeedRestart; // if preview needs restart after parameters updated bool m_bNoDisplayMode; bool m_bWNROn; bool m_bTNRPreviewOn; bool m_bTNRVideoOn; bool m_bInited; uint8_t m_nBurstNum; int m_nRetroBurstNum; int m_nBurstLEDOnPeriod; cam_exp_bracketing_t m_AEBracketingClient; bool m_bUpdateEffects; // Cause reapplying of effects bool m_bSceneTransitionAuto; // Indicate that scene has changed to Auto bool m_bPreviewFlipChanged; // if flip setting for preview changed bool m_bVideoFlipChanged; // if flip setting for video changed bool m_bSnapshotFlipChanged; // if flip setting for snapshot changed bool m_bFixedFrameRateSet; // Indicates that a fixed frame rate is set qcamera_thermal_mode m_ThermalMode; // adjust fps vs adjust frameskip cam_dimension_t m_LiveSnapshotSize; // live snapshot size cam_dimension_t m_rawSize; // live snapshot size bool m_bHDREnabled; // if HDR is enabled bool m_bAVTimerEnabled; //if AVTimer is enabled bool m_bDISEnabled; bool m_bOISEnabled; cam_still_more_t m_stillmore_config; uint8_t m_MobiMask; QCameraAdjustFPS *m_AdjustFPS; bool m_bHDR1xFrameEnabled; // if frame with exposure compensation 0 during HDR is enabled bool m_HDRSceneEnabled; // Auto HDR indication bool m_bHDRThumbnailProcessNeeded; // if thumbnail need to be processed for HDR bool m_bHDR1xExtraBufferNeeded; // if extra frame with exposure compensation 0 during HDR is needed bool m_bHDROutputCropEnabled; // if HDR output frame need to be scaled to user resolution DefaultKeyedVector<String8,String8> m_tempMap; // map for temororily store parameters to be set cam_fps_range_t m_default_fps_range; bool m_bAFBracketingOn; bool m_bReFocusOn; bool m_bChromaFlashOn; bool m_bOptiZoomOn; bool m_bSceneSelection; Mutex m_SceneSelectLock; cam_scene_mode_type m_SelectedScene; bool m_bSeeMoreOn; bool m_bStillMoreOn; cam_fps_range_t m_hfrFpsRange; bool m_bHfrMode; bool m_bSensorHDREnabled; // if HDR is enabled bool m_bRdiMode; // if RDI mode bool m_bUbiRefocus; bool m_bDisplayFrame; bool m_bSecureMode; bool m_bAeBracketingEnabled; int32_t mFlashValue; int32_t mFlashDaemonValue; int32_t mHfrMode; bool m_bHDRModeSensor; bool mOfflineRAW; bool m_bTruePortraitOn; uint32_t m_nMinRequiredPpMask; uint32_t mStreamPpMask[CAM_STREAM_TYPE_MAX]; int32_t m_nSharpness; int8_t mTotalPPCount; int8_t mCurPPCount; int32_t mZoomLevel; bool m_bStreamsConfigured; int32_t mParmZoomLevel; int32_t mCds_mode; int32_t mParmEffect; cam_capture_frame_config_t m_captureFrameConfig; int8_t mBufBatchCnt; uint32_t mRotation; uint32_t mJpegRotation; cam_autofocus_state_t mFocusState; }; }; // namespace qcamera #endif
264bc66d2a02ca39db1cd6aa16e88b28bab55a4a
b568a7496369c854f56921080d03029001c453c5
/src/imu/I2Cdev.cpp
ae1796f7ef26cbb7a99f1553de01367e620f186c
[]
no_license
boarboar/esp32_rtos
0fcc6029e7f7259e06ea0d51c5e163723659cd92
481d53870d7d04be73521a5b8f604c35d2a8b760
refs/heads/master
2022-12-28T04:22:37.260282
2020-10-16T08:10:55
2020-10-16T08:10:55
295,483,539
0
0
null
null
null
null
UTF-8
C++
false
false
57,765
cpp
// I2Cdev library collection - Main I2C device class // Abstracts bit and byte I2C R/W functions into a convenient class // 2013-06-05 by Jeff Rowberg <[email protected]> // // Changelog: // 2013-05-06 - add Francesco Ferrara's Fastwire v0.24 implementation with small modifications // 2013-05-05 - fix issue with writing bit values to words (Sasquatch/Farzanegan) // 2012-06-09 - fix major issue with reading > 32 bytes at a time with Arduino Wire // - add compiler warnings when using outdated or IDE or limited I2Cdev implementation // 2011-11-01 - fix write*Bits mask calculation (thanks sasquatch @ Arduino forums) // 2011-10-03 - added automatic Arduino version detection for ease of use // 2011-10-02 - added Gene Knight's NBWire TwoWire class implementation with small modifications // 2011-08-31 - added support for Arduino 1.0 Wire library (methods are different from 0.x) // 2011-08-03 - added optional timeout parameter to read* methods to easily change from default // 2011-08-02 - added support for 16-bit registers // - fixed incorrect Doxygen comments on some methods // - added timeout value for read operations (thanks mem @ Arduino forums) // 2011-07-30 - changed read/write function structures to return success or byte counts // - made all methods static for multi-device memory savings // 2011-07-28 - initial release /* ============================================ I2Cdev device library code is placed under the MIT license Copyright (c) 2013 Jeff Rowberg 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 "I2Cdev.h" //#define I2CDEV_SERIAL_DEBUG TRUE #if I2CDEV_IMPLEMENTATION == I2CDEV_ARDUINO_WIRE || I2CDEV_IMPLEMENTATION == I2CDEV_BUILTIN_SBWIRE #ifdef I2CDEV_IMPLEMENTATION_WARNINGS #if ARDUINO < 100 #warning Using outdated Arduino IDE with Wire library is functionally limiting. #warning Arduino IDE v1.6.5+ with I2Cdev Fastwire implementation is recommended. #warning This I2Cdev implementation does not support: #warning - Repeated starts conditions #warning - Timeout detection (some Wire requests block forever) #elif ARDUINO == 100 #warning Using outdated Arduino IDE with Wire library is functionally limiting. #warning Arduino IDE v1.6.5+ with I2Cdev Fastwire implementation is recommended. #warning This I2Cdev implementation does not support: #warning - Repeated starts conditions #warning - Timeout detection (some Wire requests block forever) #elif ARDUINO > 100 /*#warning Using current Arduino IDE with Wire library is functionally limiting. #warning Arduino IDE v1.6.5+ with I2CDEV_BUILTIN_FASTWIRE implementation is recommended. #warning This I2Cdev implementation does not support: #warning - Timeout detection (some Wire requests block forever)*/ #endif #endif #elif I2CDEV_IMPLEMENTATION == I2CDEV_BUILTIN_FASTWIRE //#error The I2CDEV_BUILTIN_FASTWIRE implementation is known to be broken right now. Patience, Iago! #elif I2CDEV_IMPLEMENTATION == I2CDEV_BUILTIN_NBWIRE #ifdef I2CDEV_IMPLEMENTATION_WARNINGS #warning Using I2CDEV_BUILTIN_NBWIRE implementation may adversely affect interrupt detection. #warning This I2Cdev implementation does not support: #warning - Repeated starts conditions #endif // NBWire implementation based heavily on code by Gene Knight <[email protected]> // Originally posted on the Arduino forum at http://arduino.cc/forum/index.php/topic,70705.0.html // Originally offered to the i2cdevlib project at http://arduino.cc/forum/index.php/topic,68210.30.html TwoWire Wire; #endif #ifndef BUFFER_LENGTH // band-aid fix for platforms without Wire-defined BUFFER_LENGTH (removed from some official implementations) #define BUFFER_LENGTH 32 #endif /** Default constructor. */ I2Cdev::I2Cdev() { } /** Read a single bit from an 8-bit device register. * @param devAddr I2C slave device address * @param regAddr Register regAddr to read from * @param bitNum Bit position to read (0-7) * @param data Container for single bit value * @param timeout Optional read timeout in milliseconds (0 to disable, leave off to use default class value in I2Cdev::readTimeout) * @return Status of read operation (true = success) */ int8_t I2Cdev::readBit(uint8_t devAddr, uint8_t regAddr, uint8_t bitNum, uint8_t *data, uint16_t timeout) { uint8_t b; uint8_t count = readByte(devAddr, regAddr, &b, timeout); *data = b & (1 << bitNum); return count; } /** Read a single bit from a 16-bit device register. * @param devAddr I2C slave device address * @param regAddr Register regAddr to read from * @param bitNum Bit position to read (0-15) * @param data Container for single bit value * @param timeout Optional read timeout in milliseconds (0 to disable, leave off to use default class value in I2Cdev::readTimeout) * @return Status of read operation (true = success) */ int8_t I2Cdev::readBitW(uint8_t devAddr, uint8_t regAddr, uint8_t bitNum, uint16_t *data, uint16_t timeout) { uint16_t b; uint8_t count = readWord(devAddr, regAddr, &b, timeout); *data = b & (1 << bitNum); return count; } /** Read multiple bits from an 8-bit device register. * @param devAddr I2C slave device address * @param regAddr Register regAddr to read from * @param bitStart First bit position to read (0-7) * @param length Number of bits to read (not more than 8) * @param data Container for right-aligned value (i.e. '101' read from any bitStart position will equal 0x05) * @param timeout Optional read timeout in milliseconds (0 to disable, leave off to use default class value in I2Cdev::readTimeout) * @return Status of read operation (true = success) */ int8_t I2Cdev::readBits(uint8_t devAddr, uint8_t regAddr, uint8_t bitStart, uint8_t length, uint8_t *data, uint16_t timeout) { // 01101001 read byte // 76543210 bit numbers // xxx args: bitStart=4, length=3 // 010 masked // -> 010 shifted uint8_t count, b; if ((count = readByte(devAddr, regAddr, &b, timeout)) != 0) { uint8_t mask = ((1 << length) - 1) << (bitStart - length + 1); b &= mask; b >>= (bitStart - length + 1); *data = b; } return count; } /** Read multiple bits from a 16-bit device register. * @param devAddr I2C slave device address * @param regAddr Register regAddr to read from * @param bitStart First bit position to read (0-15) * @param length Number of bits to read (not more than 16) * @param data Container for right-aligned value (i.e. '101' read from any bitStart position will equal 0x05) * @param timeout Optional read timeout in milliseconds (0 to disable, leave off to use default class value in I2Cdev::readTimeout) * @return Status of read operation (1 = success, 0 = failure, -1 = timeout) */ int8_t I2Cdev::readBitsW(uint8_t devAddr, uint8_t regAddr, uint8_t bitStart, uint8_t length, uint16_t *data, uint16_t timeout) { // 1101011001101001 read byte // fedcba9876543210 bit numbers // xxx args: bitStart=12, length=3 // 010 masked // -> 010 shifted uint8_t count; uint16_t w; if ((count = readWord(devAddr, regAddr, &w, timeout)) != 0) { uint16_t mask = ((1 << length) - 1) << (bitStart - length + 1); w &= mask; w >>= (bitStart - length + 1); *data = w; } return count; } /** Read single byte from an 8-bit device register. * @param devAddr I2C slave device address * @param regAddr Register regAddr to read from * @param data Container for byte value read from device * @param timeout Optional read timeout in milliseconds (0 to disable, leave off to use default class value in I2Cdev::readTimeout) * @return Status of read operation (true = success) */ int8_t I2Cdev::readByte(uint8_t devAddr, uint8_t regAddr, uint8_t *data, uint16_t timeout) { return readBytes(devAddr, regAddr, 1, data, timeout); } /** Read single word from a 16-bit device register. * @param devAddr I2C slave device address * @param regAddr Register regAddr to read from * @param data Container for word value read from device * @param timeout Optional read timeout in milliseconds (0 to disable, leave off to use default class value in I2Cdev::readTimeout) * @return Status of read operation (true = success) */ int8_t I2Cdev::readWord(uint8_t devAddr, uint8_t regAddr, uint16_t *data, uint16_t timeout) { return readWords(devAddr, regAddr, 1, data, timeout); } /** Read multiple bytes from an 8-bit device register. * @param devAddr I2C slave device address * @param regAddr First register regAddr to read from * @param length Number of bytes to read * @param data Buffer to store read data in * @param timeout Optional read timeout in milliseconds (0 to disable, leave off to use default class value in I2Cdev::readTimeout) * @return Number of bytes read (-1 indicates failure) */ int8_t I2Cdev::readBytes(uint8_t devAddr, uint8_t regAddr, uint8_t length, uint8_t *data, uint16_t timeout) { #ifdef I2CDEV_SERIAL_DEBUG Serial.print("I2C (0x"); Serial.print(devAddr, HEX); Serial.print(") reading "); Serial.print(length, DEC); Serial.print(" bytes from 0x"); Serial.print(regAddr, HEX); Serial.print("..."); #endif int8_t count = 0; uint32_t t1 = millis(); #if (I2CDEV_IMPLEMENTATION == I2CDEV_ARDUINO_WIRE || I2CDEV_IMPLEMENTATION == I2CDEV_BUILTIN_SBWIRE || I2CDEV_IMPLEMENTATION == I2CDEV_TEENSY_3X_WIRE) #if (ARDUINO < 100) // Arduino v00xx (before v1.0), Wire library // I2C/TWI subsystem uses internal buffer that breaks with large data requests // so if user requests more than BUFFER_LENGTH bytes, we have to do it in // smaller chunks instead of all at once for (uint8_t k = 0; k < length; k += min((int)length, BUFFER_LENGTH)) { Wire.beginTransmission(devAddr); Wire.send(regAddr); Wire.endTransmission(); Wire.beginTransmission(devAddr); Wire.requestFrom(devAddr, (uint8_t)min(length - k, BUFFER_LENGTH)); for (; Wire.available() && (timeout == 0 || millis() - t1 < timeout); count++) { data[count] = Wire.receive(); #ifdef I2CDEV_SERIAL_DEBUG Serial.print(data[count], HEX); if (count + 1 < length) Serial.print(" "); #endif } Wire.endTransmission(); } #elif (ARDUINO == 100) // Arduino v1.0.0, Wire library // Adds standardized write() and read() stream methods instead of send() and receive() // I2C/TWI subsystem uses internal buffer that breaks with large data requests // so if user requests more than BUFFER_LENGTH bytes, we have to do it in // smaller chunks instead of all at once for (uint8_t k = 0; k < length; k += min((int)length, BUFFER_LENGTH)) { Wire.beginTransmission(devAddr); Wire.write(regAddr); Wire.endTransmission(); Wire.beginTransmission(devAddr); Wire.requestFrom(devAddr, (uint8_t)min(length - k, BUFFER_LENGTH)); for (; Wire.available() && (timeout == 0 || millis() - t1 < timeout); count++) { data[count] = Wire.read(); #ifdef I2CDEV_SERIAL_DEBUG Serial.print(data[count], HEX); if (count + 1 < length) Serial.print(" "); #endif } Wire.endTransmission(); } #elif (ARDUINO > 100) // Arduino v1.0.1+, Wire library // Adds official support for repeated start condition, yay! // I2C/TWI subsystem uses internal buffer that breaks with large data requests // so if user requests more than BUFFER_LENGTH bytes, we have to do it in // smaller chunks instead of all at once for (uint8_t k = 0; k < length; k += min((int)length, BUFFER_LENGTH)) { Wire.beginTransmission(devAddr); Wire.write(regAddr); Wire.endTransmission(); Wire.beginTransmission(devAddr); Wire.requestFrom(devAddr, (uint8_t)min(length - k, BUFFER_LENGTH)); for (; Wire.available() && (timeout == 0 || millis() - t1 < timeout); count++) { data[count] = Wire.read(); #ifdef I2CDEV_SERIAL_DEBUG Serial.print(data[count], HEX); if (count + 1 < length) Serial.print(" "); #endif } } #endif #elif (I2CDEV_IMPLEMENTATION == I2CDEV_BUILTIN_FASTWIRE) // Fastwire library // no loop required for fastwire uint8_t status = Fastwire::readBuf(devAddr << 1, regAddr, data, length); if (status == 0) { count = length; // success } else { count = -1; // error } #endif // check for timeout if (timeout > 0 && millis() - t1 >= timeout && count < length) count = -1; // timeout #ifdef I2CDEV_SERIAL_DEBUG Serial.print(". Done ("); Serial.print(count, DEC); Serial.println(" read)."); #endif return count; } /** Read multiple words from a 16-bit device register. * @param devAddr I2C slave device address * @param regAddr First register regAddr to read from * @param length Number of words to read * @param data Buffer to store read data in * @param timeout Optional read timeout in milliseconds (0 to disable, leave off to use default class value in I2Cdev::readTimeout) * @return Number of words read (-1 indicates failure) */ int8_t I2Cdev::readWords(uint8_t devAddr, uint8_t regAddr, uint8_t length, uint16_t *data, uint16_t timeout) { #ifdef I2CDEV_SERIAL_DEBUG Serial.print("I2C (0x"); Serial.print(devAddr, HEX); Serial.print(") reading "); Serial.print(length, DEC); Serial.print(" words from 0x"); Serial.print(regAddr, HEX); Serial.print("..."); #endif int8_t count = 0; uint32_t t1 = millis(); #if I2CDEV_IMPLEMENTATION == I2CDEV_ARDUINO_WIRE || I2CDEV_IMPLEMENTATION == I2CDEV_BUILTIN_SBWIRE || I2CDEV_IMPLEMENTATION == I2CDEV_TEENSY_3X_WIRE #if (ARDUINO < 100) // Arduino v00xx (before v1.0), Wire library // I2C/TWI subsystem uses internal buffer that breaks with large data requests // so if user requests more than BUFFER_LENGTH bytes, we have to do it in // smaller chunks instead of all at once for (uint8_t k = 0; k < length * 2; k += min(length * 2, BUFFER_LENGTH)) { Wire.beginTransmission(devAddr); Wire.send(regAddr); Wire.endTransmission(); Wire.beginTransmission(devAddr); Wire.requestFrom(devAddr, (uint8_t)(length * 2)); // length=words, this wants bytes bool msb = true; // starts with MSB, then LSB for (; Wire.available() && count < length && (timeout == 0 || millis() - t1 < timeout);) { if (msb) { // first byte is bits 15-8 (MSb=15) data[count] = Wire.receive() << 8; } else { // second byte is bits 7-0 (LSb=0) data[count] |= Wire.receive(); #ifdef I2CDEV_SERIAL_DEBUG Serial.print(data[count], HEX); if (count + 1 < length) Serial.print(" "); #endif count++; } msb = !msb; } Wire.endTransmission(); } #elif (ARDUINO == 100) // Arduino v1.0.0, Wire library // Adds standardized write() and read() stream methods instead of send() and receive() // I2C/TWI subsystem uses internal buffer that breaks with large data requests // so if user requests more than BUFFER_LENGTH bytes, we have to do it in // smaller chunks instead of all at once for (uint8_t k = 0; k < length * 2; k += min(length * 2, BUFFER_LENGTH)) { Wire.beginTransmission(devAddr); Wire.write(regAddr); Wire.endTransmission(); Wire.beginTransmission(devAddr); Wire.requestFrom(devAddr, (uint8_t)(length * 2)); // length=words, this wants bytes bool msb = true; // starts with MSB, then LSB for (; Wire.available() && count < length && (timeout == 0 || millis() - t1 < timeout);) { if (msb) { // first byte is bits 15-8 (MSb=15) data[count] = Wire.read() << 8; } else { // second byte is bits 7-0 (LSb=0) data[count] |= Wire.read(); #ifdef I2CDEV_SERIAL_DEBUG Serial.print(data[count], HEX); if (count + 1 < length) Serial.print(" "); #endif count++; } msb = !msb; } Wire.endTransmission(); } #elif (ARDUINO > 100) // Arduino v1.0.1+, Wire library // Adds official support for repeated start condition, yay! // I2C/TWI subsystem uses internal buffer that breaks with large data requests // so if user requests more than BUFFER_LENGTH bytes, we have to do it in // smaller chunks instead of all at once for (uint8_t k = 0; k < length * 2; k += min(length * 2, BUFFER_LENGTH)) { Wire.beginTransmission(devAddr); Wire.write(regAddr); Wire.endTransmission(); Wire.beginTransmission(devAddr); Wire.requestFrom(devAddr, (uint8_t)(length * 2)); // length=words, this wants bytes bool msb = true; // starts with MSB, then LSB for (; Wire.available() && count < length && (timeout == 0 || millis() - t1 < timeout);) { if (msb) { // first byte is bits 15-8 (MSb=15) data[count] = Wire.read() << 8; } else { // second byte is bits 7-0 (LSb=0) data[count] |= Wire.read(); #ifdef I2CDEV_SERIAL_DEBUG Serial.print(data[count], HEX); if (count + 1 < length) Serial.print(" "); #endif count++; } msb = !msb; } Wire.endTransmission(); } #endif #elif (I2CDEV_IMPLEMENTATION == I2CDEV_BUILTIN_FASTWIRE) // Fastwire library // no loop required for fastwire uint8_t intermediate[(uint8_t)length*2]; uint8_t status = Fastwire::readBuf(devAddr << 1, regAddr, intermediate, (uint8_t)(length * 2)); if (status == 0) { count = length; // success for (uint8_t i = 0; i < length; i++) { data[i] = (intermediate[2*i] << 8) | intermediate[2*i + 1]; } } else { count = -1; // error } #endif if (timeout > 0 && millis() - t1 >= timeout && count < length) count = -1; // timeout #ifdef I2CDEV_SERIAL_DEBUG Serial.print(". Done ("); Serial.print(count, DEC); Serial.println(" read)."); #endif return count; } /** write a single bit in an 8-bit device register. * @param devAddr I2C slave device address * @param regAddr Register regAddr to write to * @param bitNum Bit position to write (0-7) * @param value New bit value to write * @return Status of operation (true = success) */ bool I2Cdev::writeBit(uint8_t devAddr, uint8_t regAddr, uint8_t bitNum, uint8_t data) { uint8_t b; readByte(devAddr, regAddr, &b); b = (data != 0) ? (b | (1 << bitNum)) : (b & ~(1 << bitNum)); return writeByte(devAddr, regAddr, b); } /** write a single bit in a 16-bit device register. * @param devAddr I2C slave device address * @param regAddr Register regAddr to write to * @param bitNum Bit position to write (0-15) * @param value New bit value to write * @return Status of operation (true = success) */ bool I2Cdev::writeBitW(uint8_t devAddr, uint8_t regAddr, uint8_t bitNum, uint16_t data) { uint16_t w; readWord(devAddr, regAddr, &w); w = (data != 0) ? (w | (1 << bitNum)) : (w & ~(1 << bitNum)); return writeWord(devAddr, regAddr, w); } /** Write multiple bits in an 8-bit device register. * @param devAddr I2C slave device address * @param regAddr Register regAddr to write to * @param bitStart First bit position to write (0-7) * @param length Number of bits to write (not more than 8) * @param data Right-aligned value to write * @return Status of operation (true = success) */ bool I2Cdev::writeBits(uint8_t devAddr, uint8_t regAddr, uint8_t bitStart, uint8_t length, uint8_t data) { // 010 value to write // 76543210 bit numbers // xxx args: bitStart=4, length=3 // 00011100 mask byte // 10101111 original value (sample) // 10100011 original & ~mask // 10101011 masked | value uint8_t b; if (readByte(devAddr, regAddr, &b) != 0) { uint8_t mask = ((1 << length) - 1) << (bitStart - length + 1); data <<= (bitStart - length + 1); // shift data into correct position data &= mask; // zero all non-important bits in data b &= ~(mask); // zero all important bits in existing byte b |= data; // combine data with existing byte return writeByte(devAddr, regAddr, b); } else { return false; } } /** Write multiple bits in a 16-bit device register. * @param devAddr I2C slave device address * @param regAddr Register regAddr to write to * @param bitStart First bit position to write (0-15) * @param length Number of bits to write (not more than 16) * @param data Right-aligned value to write * @return Status of operation (true = success) */ bool I2Cdev::writeBitsW(uint8_t devAddr, uint8_t regAddr, uint8_t bitStart, uint8_t length, uint16_t data) { // 010 value to write // fedcba9876543210 bit numbers // xxx args: bitStart=12, length=3 // 0001110000000000 mask word // 1010111110010110 original value (sample) // 1010001110010110 original & ~mask // 1010101110010110 masked | value uint16_t w; if (readWord(devAddr, regAddr, &w) != 0) { uint16_t mask = ((1 << length) - 1) << (bitStart - length + 1); data <<= (bitStart - length + 1); // shift data into correct position data &= mask; // zero all non-important bits in data w &= ~(mask); // zero all important bits in existing word w |= data; // combine data with existing word return writeWord(devAddr, regAddr, w); } else { return false; } } /** Write single byte to an 8-bit device register. * @param devAddr I2C slave device address * @param regAddr Register address to write to * @param data New byte value to write * @return Status of operation (true = success) */ bool I2Cdev::writeByte(uint8_t devAddr, uint8_t regAddr, uint8_t data) { return writeBytes(devAddr, regAddr, 1, &data); } /** Write single word to a 16-bit device register. * @param devAddr I2C slave device address * @param regAddr Register address to write to * @param data New word value to write * @return Status of operation (true = success) */ bool I2Cdev::writeWord(uint8_t devAddr, uint8_t regAddr, uint16_t data) { return writeWords(devAddr, regAddr, 1, &data); } /** Write multiple bytes to an 8-bit device register. * @param devAddr I2C slave device address * @param regAddr First register address to write to * @param length Number of bytes to write * @param data Buffer to copy new data from * @return Status of operation (true = success) */ bool I2Cdev::writeBytes(uint8_t devAddr, uint8_t regAddr, uint8_t length, uint8_t* data) { #ifdef I2CDEV_SERIAL_DEBUG Serial.print("I2C (0x"); Serial.print(devAddr, HEX); Serial.print(") writing "); Serial.print(length, DEC); Serial.print(" bytes to 0x"); Serial.print(regAddr, HEX); Serial.print("..."); #endif uint8_t status = 0; #if ((I2CDEV_IMPLEMENTATION == I2CDEV_ARDUINO_WIRE && ARDUINO < 100) || I2CDEV_IMPLEMENTATION == I2CDEV_BUILTIN_NBWIRE) Wire.beginTransmission(devAddr); Wire.send((uint8_t) regAddr); // send address #elif ((I2CDEV_IMPLEMENTATION == I2CDEV_ARDUINO_WIRE && ARDUINO >= 100) \ || (I2CDEV_IMPLEMENTATION == I2CDEV_BUILTIN_SBWIRE && ARDUINO >= 100) \ || I2CDEV_IMPLEMENTATION == I2CDEV_TEENSY_3X_WIRE) Wire.beginTransmission(devAddr); Wire.write((uint8_t) regAddr); // send address #elif (I2CDEV_IMPLEMENTATION == I2CDEV_BUILTIN_FASTWIRE) Fastwire::beginTransmission(devAddr); Fastwire::write(regAddr); #endif for (uint8_t i = 0; i < length; i++) { #ifdef I2CDEV_SERIAL_DEBUG Serial.print(data[i], HEX); if (i + 1 < length) Serial.print(" "); #endif #if ((I2CDEV_IMPLEMENTATION == I2CDEV_ARDUINO_WIRE && ARDUINO < 100) || I2CDEV_IMPLEMENTATION == I2CDEV_BUILTIN_NBWIRE) Wire.send((uint8_t) data[i]); #elif ((I2CDEV_IMPLEMENTATION == I2CDEV_ARDUINO_WIRE && ARDUINO >= 100) \ || (I2CDEV_IMPLEMENTATION == I2CDEV_BUILTIN_SBWIRE && ARDUINO >= 100) \ || I2CDEV_IMPLEMENTATION == I2CDEV_TEENSY_3X_WIRE) Wire.write((uint8_t) data[i]); #elif (I2CDEV_IMPLEMENTATION == I2CDEV_BUILTIN_FASTWIRE) Fastwire::write((uint8_t) data[i]); #endif } #if ((I2CDEV_IMPLEMENTATION == I2CDEV_ARDUINO_WIRE && ARDUINO < 100) || I2CDEV_IMPLEMENTATION == I2CDEV_BUILTIN_NBWIRE) Wire.endTransmission(); #elif ((I2CDEV_IMPLEMENTATION == I2CDEV_ARDUINO_WIRE && ARDUINO >= 100) \ || (I2CDEV_IMPLEMENTATION == I2CDEV_BUILTIN_SBWIRE && ARDUINO >= 100) \ || I2CDEV_IMPLEMENTATION == I2CDEV_TEENSY_3X_WIRE) status = Wire.endTransmission(); #elif (I2CDEV_IMPLEMENTATION == I2CDEV_BUILTIN_FASTWIRE) Fastwire::stop(); //status = Fastwire::endTransmission(); #endif #ifdef I2CDEV_SERIAL_DEBUG Serial.println(". Done."); #endif return status == 0; } /** Write multiple words to a 16-bit device register. * @param devAddr I2C slave device address * @param regAddr First register address to write to * @param length Number of words to write * @param data Buffer to copy new data from * @return Status of operation (true = success) */ bool I2Cdev::writeWords(uint8_t devAddr, uint8_t regAddr, uint8_t length, uint16_t* data) { #ifdef I2CDEV_SERIAL_DEBUG Serial.print("I2C (0x"); Serial.print(devAddr, HEX); Serial.print(") writing "); Serial.print(length, DEC); Serial.print(" words to 0x"); Serial.print(regAddr, HEX); Serial.print("..."); #endif uint8_t status = 0; #if ((I2CDEV_IMPLEMENTATION == I2CDEV_ARDUINO_WIRE && ARDUINO < 100) || I2CDEV_IMPLEMENTATION == I2CDEV_BUILTIN_NBWIRE) Wire.beginTransmission(devAddr); Wire.send(regAddr); // send address #elif ((I2CDEV_IMPLEMENTATION == I2CDEV_ARDUINO_WIRE && ARDUINO >= 100) \ || (I2CDEV_IMPLEMENTATION == I2CDEV_BUILTIN_SBWIRE && ARDUINO >= 100) \ || I2CDEV_IMPLEMENTATION == I2CDEV_TEENSY_3X_WIRE) Wire.beginTransmission(devAddr); Wire.write(regAddr); // send address #elif (I2CDEV_IMPLEMENTATION == I2CDEV_BUILTIN_FASTWIRE) Fastwire::beginTransmission(devAddr); Fastwire::write(regAddr); #endif for (uint8_t i = 0; i < length; i++) { #ifdef I2CDEV_SERIAL_DEBUG Serial.print(data[i], HEX); if (i + 1 < length) Serial.print(" "); #endif #if ((I2CDEV_IMPLEMENTATION == I2CDEV_ARDUINO_WIRE && ARDUINO < 100) || I2CDEV_IMPLEMENTATION == I2CDEV_BUILTIN_NBWIRE) Wire.send((uint8_t)(data[i] >> 8)); // send MSB Wire.send((uint8_t)data[i]); // send LSB #elif ((I2CDEV_IMPLEMENTATION == I2CDEV_ARDUINO_WIRE && ARDUINO >= 100) \ || (I2CDEV_IMPLEMENTATION == I2CDEV_BUILTIN_SBWIRE && ARDUINO >= 100) \ || I2CDEV_IMPLEMENTATION == I2CDEV_TEENSY_3X_WIRE) Wire.write((uint8_t)(data[i] >> 8)); // send MSB Wire.write((uint8_t)data[i]); // send LSB #elif (I2CDEV_IMPLEMENTATION == I2CDEV_BUILTIN_FASTWIRE) Fastwire::write((uint8_t)(data[i] >> 8)); // send MSB status = Fastwire::write((uint8_t)data[i]); // send LSB if (status != 0) break; #endif } #if ((I2CDEV_IMPLEMENTATION == I2CDEV_ARDUINO_WIRE && ARDUINO < 100) || I2CDEV_IMPLEMENTATION == I2CDEV_BUILTIN_NBWIRE) Wire.endTransmission(); #elif ((I2CDEV_IMPLEMENTATION == I2CDEV_ARDUINO_WIRE && ARDUINO >= 100) \ || (I2CDEV_IMPLEMENTATION == I2CDEV_BUILTIN_SBWIRE && ARDUINO >= 100) \ || I2CDEV_IMPLEMENTATION == I2CDEV_TEENSY_3X_WIRE) status = Wire.endTransmission(); #elif (I2CDEV_IMPLEMENTATION == I2CDEV_BUILTIN_FASTWIRE) Fastwire::stop(); //status = Fastwire::endTransmission(); #endif #ifdef I2CDEV_SERIAL_DEBUG Serial.println(". Done."); #endif return status == 0; } /** Default timeout value for read operations. * Set this to 0 to disable timeout detection. */ uint16_t I2Cdev::readTimeout = I2CDEV_DEFAULT_READ_TIMEOUT; #if I2CDEV_IMPLEMENTATION == I2CDEV_BUILTIN_FASTWIRE // I2C library ////////////////////// // Copyright(C) 2012 // Francesco Ferrara // ferrara[at]libero[point]it ////////////////////// /* FastWire - 0.24 added stop - 0.23 added reset This is a library to help faster programs to read I2C devices. Copyright(C) 2012 Francesco Ferrara occhiobello at gmail dot com [used by Jeff Rowberg for I2Cdevlib with permission] */ boolean Fastwire::waitInt() { int l = 250; while (!(TWCR & (1 << TWINT)) && l-- > 0); return l > 0; } void Fastwire::setup(int khz, boolean pullup) { TWCR = 0; #if defined(__AVR_ATmega168__) || defined(__AVR_ATmega8__) || defined(__AVR_ATmega328P__) // activate internal pull-ups for twi (PORTC bits 4 & 5) // as per note from atmega8 manual pg167 if (pullup) PORTC |= ((1 << 4) | (1 << 5)); else PORTC &= ~((1 << 4) | (1 << 5)); #elif defined(__AVR_ATmega644P__) || defined(__AVR_ATmega644__) // activate internal pull-ups for twi (PORTC bits 0 & 1) if (pullup) PORTC |= ((1 << 0) | (1 << 1)); else PORTC &= ~((1 << 0) | (1 << 1)); #else // activate internal pull-ups for twi (PORTD bits 0 & 1) // as per note from atmega128 manual pg204 if (pullup) PORTD |= ((1 << 0) | (1 << 1)); else PORTD &= ~((1 << 0) | (1 << 1)); #endif TWSR = 0; // no prescaler => prescaler = 1 TWBR = ((16000L / khz) - 16) / 2; // change the I2C clock rate TWCR = 1 << TWEN; // enable twi module, no interrupt } // added by Jeff Rowberg 2013-05-07: // Arduino Wire-style "beginTransmission" function // (takes 7-bit device address like the Wire method, NOT 8-bit: 0x68, not 0xD0/0xD1) byte Fastwire::beginTransmission(byte device) { byte twst, retry; retry = 2; do { TWCR = (1 << TWINT) | (1 << TWEN) | (1 << TWSTO) | (1 << TWSTA); if (!waitInt()) return 1; twst = TWSR & 0xF8; if (twst != TW_START && twst != TW_REP_START) return 2; //Serial.print(device, HEX); //Serial.print(" "); TWDR = device << 1; // send device address without read bit (1) TWCR = (1 << TWINT) | (1 << TWEN); if (!waitInt()) return 3; twst = TWSR & 0xF8; } while (twst == TW_MT_SLA_NACK && retry-- > 0); if (twst != TW_MT_SLA_ACK) return 4; return 0; } byte Fastwire::writeBuf(byte device, byte address, byte *data, byte num) { byte twst, retry; retry = 2; do { TWCR = (1 << TWINT) | (1 << TWEN) | (1 << TWSTO) | (1 << TWSTA); if (!waitInt()) return 1; twst = TWSR & 0xF8; if (twst != TW_START && twst != TW_REP_START) return 2; //Serial.print(device, HEX); //Serial.print(" "); TWDR = device & 0xFE; // send device address without read bit (1) TWCR = (1 << TWINT) | (1 << TWEN); if (!waitInt()) return 3; twst = TWSR & 0xF8; } while (twst == TW_MT_SLA_NACK && retry-- > 0); if (twst != TW_MT_SLA_ACK) return 4; //Serial.print(address, HEX); //Serial.print(" "); TWDR = address; // send data to the previously addressed device TWCR = (1 << TWINT) | (1 << TWEN); if (!waitInt()) return 5; twst = TWSR & 0xF8; if (twst != TW_MT_DATA_ACK) return 6; for (byte i = 0; i < num; i++) { //Serial.print(data[i], HEX); //Serial.print(" "); TWDR = data[i]; // send data to the previously addressed device TWCR = (1 << TWINT) | (1 << TWEN); if (!waitInt()) return 7; twst = TWSR & 0xF8; if (twst != TW_MT_DATA_ACK) return 8; } //Serial.print("\n"); return 0; } byte Fastwire::write(byte value) { byte twst; //Serial.println(value, HEX); TWDR = value; // send data TWCR = (1 << TWINT) | (1 << TWEN); if (!waitInt()) return 1; twst = TWSR & 0xF8; if (twst != TW_MT_DATA_ACK) return 2; return 0; } byte Fastwire::readBuf(byte device, byte address, byte *data, byte num) { byte twst, retry; retry = 2; do { TWCR = (1 << TWINT) | (1 << TWEN) | (1 << TWSTO) | (1 << TWSTA); if (!waitInt()) return 16; twst = TWSR & 0xF8; if (twst != TW_START && twst != TW_REP_START) return 17; //Serial.print(device, HEX); //Serial.print(" "); TWDR = device & 0xfe; // send device address to write TWCR = (1 << TWINT) | (1 << TWEN); if (!waitInt()) return 18; twst = TWSR & 0xF8; } while (twst == TW_MT_SLA_NACK && retry-- > 0); if (twst != TW_MT_SLA_ACK) return 19; //Serial.print(address, HEX); //Serial.print(" "); TWDR = address; // send data to the previously addressed device TWCR = (1 << TWINT) | (1 << TWEN); if (!waitInt()) return 20; twst = TWSR & 0xF8; if (twst != TW_MT_DATA_ACK) return 21; /***/ retry = 2; do { TWCR = (1 << TWINT) | (1 << TWEN) | (1 << TWSTO) | (1 << TWSTA); if (!waitInt()) return 22; twst = TWSR & 0xF8; if (twst != TW_START && twst != TW_REP_START) return 23; //Serial.print(device, HEX); //Serial.print(" "); TWDR = device | 0x01; // send device address with the read bit (1) TWCR = (1 << TWINT) | (1 << TWEN); if (!waitInt()) return 24; twst = TWSR & 0xF8; } while (twst == TW_MR_SLA_NACK && retry-- > 0); if (twst != TW_MR_SLA_ACK) return 25; for (uint8_t i = 0; i < num; i++) { if (i == num - 1) TWCR = (1 << TWINT) | (1 << TWEN); else TWCR = (1 << TWINT) | (1 << TWEN) | (1 << TWEA); if (!waitInt()) return 26; twst = TWSR & 0xF8; if (twst != TW_MR_DATA_ACK && twst != TW_MR_DATA_NACK) return twst; data[i] = TWDR; //Serial.print(data[i], HEX); //Serial.print(" "); } //Serial.print("\n"); stop(); return 0; } void Fastwire::reset() { TWCR = 0; } byte Fastwire::stop() { TWCR = (1 << TWINT) | (1 << TWEN) | (1 << TWSTO); if (!waitInt()) return 1; return 0; } #endif #if I2CDEV_IMPLEMENTATION == I2CDEV_BUILTIN_NBWIRE // NBWire implementation based heavily on code by Gene Knight <[email protected]> // Originally posted on the Arduino forum at http://arduino.cc/forum/index.php/topic,70705.0.html // Originally offered to the i2cdevlib project at http://arduino.cc/forum/index.php/topic,68210.30.html /* call this version 1.0 Offhand, the only funky part that I can think of is in nbrequestFrom, where the buffer length and index are set *before* the data is actually read. The problem is that these are variables local to the TwoWire object, and by the time we actually have read the data, and know what the length actually is, we have no simple access to the object's variables. The actual bytes read *is* given to the callback function, though. The ISR code for a slave receiver is commented out. I don't have that setup, and can't verify it at this time. Save it for 2.0! The handling of the read and write processes here is much like in the demo sketch code: the process is broken down into sequential functions, where each registers the next as a callback, essentially. For example, for the Read process, twi_read00 just returns if TWI is not yet in a ready state. When there's another interrupt, and the interface *is* ready, then it sets up the read, starts it, and registers twi_read01 as the function to call after the *next* interrupt. twi_read01, then, just returns if the interface is still in a "reading" state. When the reading is done, it copies the information to the buffer, cleans up, and calls the user-requested callback function with the actual number of bytes read. The writing is similar. Questions, comments and problems can go to [email protected]. Thumbs Up! Gene Knight */ uint8_t TwoWire::rxBuffer[NBWIRE_BUFFER_LENGTH]; uint8_t TwoWire::rxBufferIndex = 0; uint8_t TwoWire::rxBufferLength = 0; uint8_t TwoWire::txAddress = 0; uint8_t TwoWire::txBuffer[NBWIRE_BUFFER_LENGTH]; uint8_t TwoWire::txBufferIndex = 0; uint8_t TwoWire::txBufferLength = 0; //uint8_t TwoWire::transmitting = 0; void (*TwoWire::user_onRequest)(void); void (*TwoWire::user_onReceive)(int); static volatile uint8_t twi_transmitting; static volatile uint8_t twi_state; static uint8_t twi_slarw; static volatile uint8_t twi_error; static uint8_t twi_masterBuffer[TWI_BUFFER_LENGTH]; static volatile uint8_t twi_masterBufferIndex; static uint8_t twi_masterBufferLength; static uint8_t twi_rxBuffer[TWI_BUFFER_LENGTH]; static volatile uint8_t twi_rxBufferIndex; //static volatile uint8_t twi_Interrupt_Continue_Command; static volatile uint8_t twi_Return_Value; static volatile uint8_t twi_Done; void (*twi_cbendTransmissionDone)(int); void (*twi_cbreadFromDone)(int); void twi_init() { // initialize state twi_state = TWI_READY; // activate internal pull-ups for twi // as per note from atmega8 manual pg167 sbi(PORTC, 4); sbi(PORTC, 5); // initialize twi prescaler and bit rate cbi(TWSR, TWPS0); // TWI Status Register - Prescaler bits cbi(TWSR, TWPS1); /* twi bit rate formula from atmega128 manual pg 204 SCL Frequency = CPU Clock Frequency / (16 + (2 * TWBR)) note: TWBR should be 10 or higher for master mode It is 72 for a 16mhz Wiring board with 100kHz TWI */ TWBR = ((CPU_FREQ / TWI_FREQ) - 16) / 2; // bitrate register // enable twi module, acks, and twi interrupt TWCR = _BV(TWEN) | _BV(TWIE) | _BV(TWEA); /* TWEN - TWI Enable Bit TWIE - TWI Interrupt Enable TWEA - TWI Enable Acknowledge Bit TWINT - TWI Interrupt Flag TWSTA - TWI Start Condition */ } typedef struct { uint8_t address; uint8_t* data; uint8_t length; uint8_t wait; uint8_t i; } twi_Write_Vars; twi_Write_Vars *ptwv = 0; static void (*fNextInterruptFunction)(void) = 0; void twi_Finish(byte bRetVal) { if (ptwv) { free(ptwv); ptwv = 0; } twi_Done = 0xFF; twi_Return_Value = bRetVal; fNextInterruptFunction = 0; } uint8_t twii_WaitForDone(uint16_t timeout) { uint32_t endMillis = millis() + timeout; while (!twi_Done && (timeout == 0 || millis() < endMillis)) continue; return twi_Return_Value; } void twii_SetState(uint8_t ucState) { twi_state = ucState; } void twii_SetError(uint8_t ucError) { twi_error = ucError ; } void twii_InitBuffer(uint8_t ucPos, uint8_t ucLength) { twi_masterBufferIndex = 0; twi_masterBufferLength = ucLength; } void twii_CopyToBuf(uint8_t* pData, uint8_t ucLength) { uint8_t i; for (i = 0; i < ucLength; ++i) { twi_masterBuffer[i] = pData[i]; } } void twii_CopyFromBuf(uint8_t *pData, uint8_t ucLength) { uint8_t i; for (i = 0; i < ucLength; ++i) { pData[i] = twi_masterBuffer[i]; } } void twii_SetSlaRW(uint8_t ucSlaRW) { twi_slarw = ucSlaRW; } void twii_SetStart() { TWCR = _BV(TWEN) | _BV(TWIE) | _BV(TWEA) | _BV(TWINT) | _BV(TWSTA); } void twi_write01() { if (TWI_MTX == twi_state) return; // blocking test twi_transmitting = 0 ; if (twi_error == 0xFF) twi_Finish (0); // success else if (twi_error == TW_MT_SLA_NACK) twi_Finish (2); // error: address send, nack received else if (twi_error == TW_MT_DATA_NACK) twi_Finish (3); // error: data send, nack received else twi_Finish (4); // other twi error if (twi_cbendTransmissionDone) return twi_cbendTransmissionDone(twi_Return_Value); return; } void twi_write00() { if (TWI_READY != twi_state) return; // blocking test if (TWI_BUFFER_LENGTH < ptwv -> length) { twi_Finish(1); // end write with error 1 return; } twi_Done = 0x00; // show as working twii_SetState(TWI_MTX); // to transmitting twii_SetError(0xFF); // to No Error twii_InitBuffer(0, ptwv -> length); // pointer and length twii_CopyToBuf(ptwv -> data, ptwv -> length); // get the data twii_SetSlaRW((ptwv -> address << 1) | TW_WRITE); // write command twii_SetStart(); // start the cycle fNextInterruptFunction = twi_write01; // next routine return twi_write01(); } void twi_writeTo(uint8_t address, uint8_t* data, uint8_t length, uint8_t wait) { uint8_t i; ptwv = (twi_Write_Vars *)malloc(sizeof(twi_Write_Vars)); ptwv -> address = address; ptwv -> data = data; ptwv -> length = length; ptwv -> wait = wait; fNextInterruptFunction = twi_write00; return twi_write00(); } void twi_read01() { if (TWI_MRX == twi_state) return; // blocking test if (twi_masterBufferIndex < ptwv -> length) ptwv -> length = twi_masterBufferIndex; twii_CopyFromBuf(ptwv -> data, ptwv -> length); twi_Finish(ptwv -> length); if (twi_cbreadFromDone) return twi_cbreadFromDone(twi_Return_Value); return; } void twi_read00() { if (TWI_READY != twi_state) return; // blocking test if (TWI_BUFFER_LENGTH < ptwv -> length) twi_Finish(0); // error return twi_Done = 0x00; // show as working twii_SetState(TWI_MRX); // reading twii_SetError(0xFF); // reset error twii_InitBuffer(0, ptwv -> length - 1); // init to one less than length twii_SetSlaRW((ptwv -> address << 1) | TW_READ); // read command twii_SetStart(); // start cycle fNextInterruptFunction = twi_read01; return twi_read01(); } void twi_readFrom(uint8_t address, uint8_t* data, uint8_t length) { uint8_t i; ptwv = (twi_Write_Vars *)malloc(sizeof(twi_Write_Vars)); ptwv -> address = address; ptwv -> data = data; ptwv -> length = length; fNextInterruptFunction = twi_read00; return twi_read00(); } void twi_reply(uint8_t ack) { // transmit master read ready signal, with or without ack if (ack){ TWCR = _BV(TWEN) | _BV(TWIE) | _BV(TWINT) | _BV(TWEA); } else { TWCR = _BV(TWEN) | _BV(TWIE) | _BV(TWINT); } } void twi_stop(void) { // send stop condition TWCR = _BV(TWEN) | _BV(TWIE) | _BV(TWEA) | _BV(TWINT) | _BV(TWSTO); // wait for stop condition to be exectued on bus // TWINT is not set after a stop condition! while (TWCR & _BV(TWSTO)) { continue; } // update twi state twi_state = TWI_READY; } void twi_releaseBus(void) { // release bus TWCR = _BV(TWEN) | _BV(TWIE) | _BV(TWEA) | _BV(TWINT); // update twi state twi_state = TWI_READY; } SIGNAL(TWI_vect) { switch (TW_STATUS) { // All Master case TW_START: // sent start condition case TW_REP_START: // sent repeated start condition // copy device address and r/w bit to output register and ack TWDR = twi_slarw; twi_reply(1); break; // Master Transmitter case TW_MT_SLA_ACK: // slave receiver acked address case TW_MT_DATA_ACK: // slave receiver acked data // if there is data to send, send it, otherwise stop if (twi_masterBufferIndex < twi_masterBufferLength) { // copy data to output register and ack TWDR = twi_masterBuffer[twi_masterBufferIndex++]; twi_reply(1); } else { twi_stop(); } break; case TW_MT_SLA_NACK: // address sent, nack received twi_error = TW_MT_SLA_NACK; twi_stop(); break; case TW_MT_DATA_NACK: // data sent, nack received twi_error = TW_MT_DATA_NACK; twi_stop(); break; case TW_MT_ARB_LOST: // lost bus arbitration twi_error = TW_MT_ARB_LOST; twi_releaseBus(); break; // Master Receiver case TW_MR_DATA_ACK: // data received, ack sent // put byte into buffer twi_masterBuffer[twi_masterBufferIndex++] = TWDR; case TW_MR_SLA_ACK: // address sent, ack received // ack if more bytes are expected, otherwise nack if (twi_masterBufferIndex < twi_masterBufferLength) { twi_reply(1); } else { twi_reply(0); } break; case TW_MR_DATA_NACK: // data received, nack sent // put final byte into buffer twi_masterBuffer[twi_masterBufferIndex++] = TWDR; case TW_MR_SLA_NACK: // address sent, nack received twi_stop(); break; // TW_MR_ARB_LOST handled by TW_MT_ARB_LOST case // Slave Receiver (NOT IMPLEMENTED YET) /* case TW_SR_SLA_ACK: // addressed, returned ack case TW_SR_GCALL_ACK: // addressed generally, returned ack case TW_SR_ARB_LOST_SLA_ACK: // lost arbitration, returned ack case TW_SR_ARB_LOST_GCALL_ACK: // lost arbitration, returned ack // enter slave receiver mode twi_state = TWI_SRX; // indicate that rx buffer can be overwritten and ack twi_rxBufferIndex = 0; twi_reply(1); break; case TW_SR_DATA_ACK: // data received, returned ack case TW_SR_GCALL_DATA_ACK: // data received generally, returned ack // if there is still room in the rx buffer if (twi_rxBufferIndex < TWI_BUFFER_LENGTH) { // put byte in buffer and ack twi_rxBuffer[twi_rxBufferIndex++] = TWDR; twi_reply(1); } else { // otherwise nack twi_reply(0); } break; case TW_SR_STOP: // stop or repeated start condition received // put a null char after data if there's room if (twi_rxBufferIndex < TWI_BUFFER_LENGTH) { twi_rxBuffer[twi_rxBufferIndex] = 0; } // sends ack and stops interface for clock stretching twi_stop(); // callback to user defined callback twi_onSlaveReceive(twi_rxBuffer, twi_rxBufferIndex); // since we submit rx buffer to "wire" library, we can reset it twi_rxBufferIndex = 0; // ack future responses and leave slave receiver state twi_releaseBus(); break; case TW_SR_DATA_NACK: // data received, returned nack case TW_SR_GCALL_DATA_NACK: // data received generally, returned nack // nack back at master twi_reply(0); break; // Slave Transmitter case TW_ST_SLA_ACK: // addressed, returned ack case TW_ST_ARB_LOST_SLA_ACK: // arbitration lost, returned ack // enter slave transmitter mode twi_state = TWI_STX; // ready the tx buffer index for iteration twi_txBufferIndex = 0; // set tx buffer length to be zero, to verify if user changes it twi_txBufferLength = 0; // request for txBuffer to be filled and length to be set // note: user must call twi_transmit(bytes, length) to do this twi_onSlaveTransmit(); // if they didn't change buffer & length, initialize it if (0 == twi_txBufferLength) { twi_txBufferLength = 1; twi_txBuffer[0] = 0x00; } // transmit first byte from buffer, fall through case TW_ST_DATA_ACK: // byte sent, ack returned // copy data to output register TWDR = twi_txBuffer[twi_txBufferIndex++]; // if there is more to send, ack, otherwise nack if (twi_txBufferIndex < twi_txBufferLength) { twi_reply(1); } else { twi_reply(0); } break; case TW_ST_DATA_NACK: // received nack, we are done case TW_ST_LAST_DATA: // received ack, but we are done already! // ack future responses twi_reply(1); // leave slave receiver state twi_state = TWI_READY; break; */ // all case TW_NO_INFO: // no state information break; case TW_BUS_ERROR: // bus error, illegal stop/start twi_error = TW_BUS_ERROR; twi_stop(); break; } if (fNextInterruptFunction) return fNextInterruptFunction(); } TwoWire::TwoWire() { } void TwoWire::begin(void) { rxBufferIndex = 0; rxBufferLength = 0; txBufferIndex = 0; txBufferLength = 0; twi_init(); } void TwoWire::beginTransmission(uint8_t address) { //beginTransmission((uint8_t)address); // indicate that we are transmitting twi_transmitting = 1; // set address of targeted slave txAddress = address; // reset tx buffer iterator vars txBufferIndex = 0; txBufferLength = 0; } uint8_t TwoWire::endTransmission(uint16_t timeout) { // transmit buffer (blocking) //int8_t ret = twi_cbendTransmissionDone = NULL; twi_writeTo(txAddress, txBuffer, txBufferLength, 1); int8_t ret = twii_WaitForDone(timeout); // reset tx buffer iterator vars txBufferIndex = 0; txBufferLength = 0; // indicate that we are done transmitting // twi_transmitting = 0; return ret; } void TwoWire::nbendTransmission(void (*function)(int)) { twi_cbendTransmissionDone = function; twi_writeTo(txAddress, txBuffer, txBufferLength, 1); return; } void TwoWire::send(uint8_t data) { if (twi_transmitting) { // in master transmitter mode // don't bother if buffer is full if (txBufferLength >= NBWIRE_BUFFER_LENGTH) { return; } // put byte in tx buffer txBuffer[txBufferIndex] = data; ++txBufferIndex; // update amount in buffer txBufferLength = txBufferIndex; } else { // in slave send mode // reply to master //twi_transmit(&data, 1); } } uint8_t TwoWire::receive(void) { // default to returning null char // for people using with char strings uint8_t value = 0; // get each successive byte on each call if (rxBufferIndex < rxBufferLength) { value = rxBuffer[rxBufferIndex]; ++rxBufferIndex; } return value; } uint8_t TwoWire::requestFrom(uint8_t address, int quantity, uint16_t timeout) { // clamp to buffer length if (quantity > NBWIRE_BUFFER_LENGTH) { quantity = NBWIRE_BUFFER_LENGTH; } // perform blocking read into buffer twi_cbreadFromDone = NULL; twi_readFrom(address, rxBuffer, quantity); uint8_t read = twii_WaitForDone(timeout); // set rx buffer iterator vars rxBufferIndex = 0; rxBufferLength = read; return read; } void TwoWire::nbrequestFrom(uint8_t address, int quantity, void (*function)(int)) { // clamp to buffer length if (quantity > NBWIRE_BUFFER_LENGTH) { quantity = NBWIRE_BUFFER_LENGTH; } // perform blocking read into buffer twi_cbreadFromDone = function; twi_readFrom(address, rxBuffer, quantity); //uint8_t read = twii_WaitForDone(); // set rx buffer iterator vars //rxBufferIndex = 0; //rxBufferLength = read; rxBufferIndex = 0; rxBufferLength = quantity; // this is a hack return; //read; } uint8_t TwoWire::available(void) { return rxBufferLength - rxBufferIndex; } #endif
6d28f1cdfc457c988f534cc58dfc6d1673059f23
a33faebd62d390651b739e951a5ce7a2d4027b34
/Rendering/Font.h
afe1cc4528d7f416f9221ebe1949fa089d031bda
[]
no_license
Captainburg/Game-Engine
af5ab41fc236788e482f1be41b323cd4fd4b6be9
b17eaa5b3de4a08755c4fa571e82bff7d2471841
refs/heads/master
2021-03-30T17:37:44.098249
2019-10-01T01:44:21
2019-10-01T01:44:21
122,874,738
2
0
null
null
null
null
UTF-8
C++
false
false
2,329
h
#pragma once #include <d3d9.h> #include <d3dx9.h> class Font { public: Font(LPDIRECT3DDEVICE9 g_pDevice); virtual ~Font(); /** Load Alphabet * * Loads the Alphabet. * * @param strPathName The path to the font file. * @param LetterWidth The width of the Font. * @param LetterHeight The height of the Font. * @return HRESULT The result of loading the alphabet - whether it was successful. */ HRESULT LoadAlphabet(char* strPathName, int LetterWidth, int LetterHeight); /** Unload Alphabet * * Unloads the Alphabet from memory. * * @return HRESULT The result of unloading the alphabet - whether it was successful. */ HRESULT UnloadAlphabet(); /** Draw String * * Calls DrawChar until a String has been drawn. * * @param x The x co-ordinate to draw at. * @param y The y co-ordinate to draw at. * @param String The String to draw. * @param bTransparent Whether the text is transparent. * @param ColorKey The color of the background to ignore. * @param pDestData The surface. * @param DestPitch The width of the surface in bytes. * @return null */ void DrawString(int x, int y, const char* String, bool bTransparent, D3DCOLOR ColorKey, DWORD* pDestData, int DestPitch); private: /** Draw Char * * Draws a character. * * @param x The x co-ordinate to draw at. * @param y The y co-ordinate to draw at. * @param Character The Character to draw. * @param bTransparent Whether the text is transparent. * @param ColorKey The color of the background to ignore. * @param pDestData The surface. * @param DestPitch The width of the surface in bytes. * @return null */ void DrawChar(int x, int y, char Character, bool bTransparent, D3DCOLOR ColorKey, DWORD* pDestData, int DestPitch); /** Load Alphabet to Surface * * Loads the Alphabet to the Surface. * * @param strPathName The path to the font file. * @param ppSurface A double pointer to the surface. * @param pDevice The device to load it to. * @return int The result of loading the alphabet - whether it was successful. */ int LoadAlphabetToSurface(char * PathName, LPDIRECT3DSURFACE9 * ppSurface, LPDIRECT3DDEVICE9 pDevice); int g_AlphabetWidth; int g_AlphabetHeight; int g_AlphabetLetterWidth; int g_AlphabetLetterHeight; int g_AlphabetLettersPerRow; LPDIRECT3DSURFACE9 g_pAlphabetSurface; LPDIRECT3DDEVICE9 g_pDevice; };
94a7b7c879c5892f00e6e90be15b8b544d0cf528
a1fbf16243026331187b6df903ed4f69e5e8c110
/cs/sdk/3d_sdk/maya/ver-2008/devkit/ExternalWebBrowser/Windows/src/PlugIn/gecko-sdk/include/nsIX509Cert.h
7751b2e9d580a1c12742453cfea528abf6f139fd
[ "LicenseRef-scancode-warranty-disclaimer", "BSD-2-Clause" ]
permissive
OpenXRay/xray-15
ca0031cf1893616e0c9795c670d5d9f57ca9beff
1390dfb08ed20997d7e8c95147ea8e8cb71f5e86
refs/heads/xd_dev
2023-07-17T23:42:14.693841
2021-09-01T23:25:34
2021-09-01T23:25:34
23,224,089
64
23
NOASSERTION
2019-04-03T17:50:18
2014-08-22T12:09:41
C++
UTF-8
C++
false
false
23,303
h
/* * DO NOT EDIT. THIS FILE IS GENERATED FROM d:/BUILDS/tinderbox/Mozilla1.7/WINNT_5.0_Clobber/mozilla/security/manager/ssl/public/nsIX509Cert.idl */ #ifndef __gen_nsIX509Cert_h__ #define __gen_nsIX509Cert_h__ #ifndef __gen_nsISupports_h__ #include "nsISupports.h" #endif /* For IDL files that don't want to include root IDL files. */ #ifndef NS_NO_VTABLE #define NS_NO_VTABLE #endif class nsIArray; /* forward declaration */ class nsIX509CertValidity; /* forward declaration */ class nsIASN1Object; /* forward declaration */ /* starting interface: nsIX509Cert */ #define NS_IX509CERT_IID_STR "f0980f60-ee3d-11d4-998b-00b0d02354a0" #define NS_IX509CERT_IID \ {0xf0980f60, 0xee3d, 0x11d4, \ { 0x99, 0x8b, 0x00, 0xb0, 0xd0, 0x23, 0x54, 0xa0 }} /** * This represents a X.509 certificate. * * @status FROZEN */ class NS_NO_VTABLE nsIX509Cert : public nsISupports { public: NS_DEFINE_STATIC_IID_ACCESSOR(NS_IX509CERT_IID) /** * A nickname for the certificate. */ /* readonly attribute AString nickname; */ NS_IMETHOD GetNickname(nsAString & aNickname) = 0; /** * The primary email address of the certificate, if present. */ /* readonly attribute AString emailAddress; */ NS_IMETHOD GetEmailAddress(nsAString & aEmailAddress) = 0; /** * Obtain a list of all email addresses * contained in the certificate. * * @param length The number of strings in the returned array. * @return An array of email addresses. */ /* void getEmailAddresses (out unsigned long length, [array, size_is (length), retval] out wstring addresses); */ NS_IMETHOD GetEmailAddresses(PRUint32 *length, PRUnichar ***addresses) = 0; /** * Check whether a given address is contained in the certificate. * The comparison will convert the email address to lowercase. * The behaviour for non ASCII characters is undefined. * * @param aEmailAddress The address to search for. * * @return True if the address is contained in the certificate. */ /* boolean containsEmailAddress (in AString aEmailAddress); */ NS_IMETHOD ContainsEmailAddress(const nsAString & aEmailAddress, PRBool *_retval) = 0; /** * The subject owning the certificate. */ /* readonly attribute AString subjectName; */ NS_IMETHOD GetSubjectName(nsAString & aSubjectName) = 0; /** * The subject's common name. */ /* readonly attribute AString commonName; */ NS_IMETHOD GetCommonName(nsAString & aCommonName) = 0; /** * The subject's organization. */ /* readonly attribute AString organization; */ NS_IMETHOD GetOrganization(nsAString & aOrganization) = 0; /** * The subject's organizational unit. */ /* readonly attribute AString organizationalUnit; */ NS_IMETHOD GetOrganizationalUnit(nsAString & aOrganizationalUnit) = 0; /** * The fingerprint of the certificate's public key, * calculated using the SHA1 algorithm. */ /* readonly attribute AString sha1Fingerprint; */ NS_IMETHOD GetSha1Fingerprint(nsAString & aSha1Fingerprint) = 0; /** * The fingerprint of the certificate's public key, * calculated using the MD5 algorithm. */ /* readonly attribute AString md5Fingerprint; */ NS_IMETHOD GetMd5Fingerprint(nsAString & aMd5Fingerprint) = 0; /** * A human readable name identifying the hardware or * software token the certificate is stored on. */ /* readonly attribute AString tokenName; */ NS_IMETHOD GetTokenName(nsAString & aTokenName) = 0; /** * The subject identifying the issuer certificate. */ /* readonly attribute AString issuerName; */ NS_IMETHOD GetIssuerName(nsAString & aIssuerName) = 0; /** * The serial number the issuer assigned to this certificate. */ /* readonly attribute AString serialNumber; */ NS_IMETHOD GetSerialNumber(nsAString & aSerialNumber) = 0; /** * The issuer subject's common name. */ /* readonly attribute AString issuerCommonName; */ NS_IMETHOD GetIssuerCommonName(nsAString & aIssuerCommonName) = 0; /** * The issuer subject's organization. */ /* readonly attribute AString issuerOrganization; */ NS_IMETHOD GetIssuerOrganization(nsAString & aIssuerOrganization) = 0; /** * The issuer subject's organizational unit. */ /* readonly attribute AString issuerOrganizationUnit; */ NS_IMETHOD GetIssuerOrganizationUnit(nsAString & aIssuerOrganizationUnit) = 0; /** * The certificate used by the issuer to sign this certificate. */ /* readonly attribute nsIX509Cert issuer; */ NS_IMETHOD GetIssuer(nsIX509Cert * *aIssuer) = 0; /** * This certificate's validity period. */ /* readonly attribute nsIX509CertValidity validity; */ NS_IMETHOD GetValidity(nsIX509CertValidity * *aValidity) = 0; /** * A unique identifier of this certificate within the local storage. */ /* readonly attribute string dbKey; */ NS_IMETHOD GetDbKey(char * *aDbKey) = 0; /** * A human readable identifier to label this certificate. */ /* readonly attribute string windowTitle; */ NS_IMETHOD GetWindowTitle(char * *aWindowTitle) = 0; /** * Constants to classify the type of a certificate. */ enum { UNKNOWN_CERT = 0U }; enum { CA_CERT = 1U }; enum { USER_CERT = 2U }; enum { EMAIL_CERT = 4U }; enum { SERVER_CERT = 8U }; /** * Constants for certificate verification results. */ enum { VERIFIED_OK = 0U }; enum { NOT_VERIFIED_UNKNOWN = 1U }; enum { CERT_REVOKED = 2U }; enum { CERT_EXPIRED = 4U }; enum { CERT_NOT_TRUSTED = 8U }; enum { ISSUER_NOT_TRUSTED = 16U }; enum { ISSUER_UNKNOWN = 32U }; enum { INVALID_CA = 64U }; enum { USAGE_NOT_ALLOWED = 128U }; /** * Constants that describe the certified usages of a certificate. */ enum { CERT_USAGE_SSLClient = 0U }; enum { CERT_USAGE_SSLServer = 1U }; enum { CERT_USAGE_SSLServerWithStepUp = 2U }; enum { CERT_USAGE_SSLCA = 3U }; enum { CERT_USAGE_EmailSigner = 4U }; enum { CERT_USAGE_EmailRecipient = 5U }; enum { CERT_USAGE_ObjectSigner = 6U }; enum { CERT_USAGE_UserCertImport = 7U }; enum { CERT_USAGE_VerifyCA = 8U }; enum { CERT_USAGE_ProtectedObjectSigner = 9U }; enum { CERT_USAGE_StatusResponder = 10U }; enum { CERT_USAGE_AnyCA = 11U }; /** * Obtain a list of certificates that contains this certificate * and the issuing certificates of all involved issuers, * up to the root issuer. * * @return The chain of certifficates including the issuers. */ /* nsIArray getChain (); */ NS_IMETHOD GetChain(nsIArray **_retval) = 0; /** * Obtain an array of human readable strings describing * the certificate's certified usages. * * @param ignoreOcsp Do not use OCSP even if it is currently activated. * @param verified The certificate verification result, see constants. * @param count The number of human readable usages returned. * @param usages The array of human readable usages. */ /* void getUsagesArray (in boolean ignoreOcsp, out PRUint32 verified, out PRUint32 count, [array, size_is (count)] out wstring usages); */ NS_IMETHOD GetUsagesArray(PRBool ignoreOcsp, PRUint32 *verified, PRUint32 *count, PRUnichar ***usages) = 0; /** * Obtain a single comma separated human readable string describing * the certificate's certified usages. * * @param ignoreOcsp Do not use OCSP even if it is currently activated. * @param verified The certificate verification result, see constants. * @param purposes The string listing the usages. */ /* void getUsagesString (in boolean ignoreOcsp, out PRUint32 verified, out AString usages); */ NS_IMETHOD GetUsagesString(PRBool ignoreOcsp, PRUint32 *verified, nsAString & usages) = 0; /** * Verify the certificate for a particular usage. * * @return The certificate verification result, see constants. */ /* unsigned long verifyForUsage (in unsigned long usage); */ NS_IMETHOD VerifyForUsage(PRUint32 usage, PRUint32 *_retval) = 0; /** * This is the attribute which describes the ASN1 layout * of the certificate. This can be used when doing a * "pretty print" of the certificate's ASN1 structure. */ /* readonly attribute nsIASN1Object ASN1Structure; */ NS_IMETHOD GetASN1Structure(nsIASN1Object * *aASN1Structure) = 0; /** * Obtain a raw binary encoding of this certificate * in DER format. * * @param length The number of bytes in the binary encoding. * @param data The bytes representing the DER encoded certificate. */ /* void getRawDER (out unsigned long length, [array, size_is (length), retval] out octet data); */ NS_IMETHOD GetRawDER(PRUint32 *length, PRUint8 **data) = 0; /** * Test whether two certificate instances represent the * same certificate. * * @return Whether the certificates are equal */ /* boolean equals (in nsIX509Cert other); */ NS_IMETHOD Equals(nsIX509Cert *other, PRBool *_retval) = 0; }; /* Use this macro when declaring classes that implement this interface. */ #define NS_DECL_NSIX509CERT \ NS_IMETHOD GetNickname(nsAString & aNickname); \ NS_IMETHOD GetEmailAddress(nsAString & aEmailAddress); \ NS_IMETHOD GetEmailAddresses(PRUint32 *length, PRUnichar ***addresses); \ NS_IMETHOD ContainsEmailAddress(const nsAString & aEmailAddress, PRBool *_retval); \ NS_IMETHOD GetSubjectName(nsAString & aSubjectName); \ NS_IMETHOD GetCommonName(nsAString & aCommonName); \ NS_IMETHOD GetOrganization(nsAString & aOrganization); \ NS_IMETHOD GetOrganizationalUnit(nsAString & aOrganizationalUnit); \ NS_IMETHOD GetSha1Fingerprint(nsAString & aSha1Fingerprint); \ NS_IMETHOD GetMd5Fingerprint(nsAString & aMd5Fingerprint); \ NS_IMETHOD GetTokenName(nsAString & aTokenName); \ NS_IMETHOD GetIssuerName(nsAString & aIssuerName); \ NS_IMETHOD GetSerialNumber(nsAString & aSerialNumber); \ NS_IMETHOD GetIssuerCommonName(nsAString & aIssuerCommonName); \ NS_IMETHOD GetIssuerOrganization(nsAString & aIssuerOrganization); \ NS_IMETHOD GetIssuerOrganizationUnit(nsAString & aIssuerOrganizationUnit); \ NS_IMETHOD GetIssuer(nsIX509Cert * *aIssuer); \ NS_IMETHOD GetValidity(nsIX509CertValidity * *aValidity); \ NS_IMETHOD GetDbKey(char * *aDbKey); \ NS_IMETHOD GetWindowTitle(char * *aWindowTitle); \ NS_IMETHOD GetChain(nsIArray **_retval); \ NS_IMETHOD GetUsagesArray(PRBool ignoreOcsp, PRUint32 *verified, PRUint32 *count, PRUnichar ***usages); \ NS_IMETHOD GetUsagesString(PRBool ignoreOcsp, PRUint32 *verified, nsAString & usages); \ NS_IMETHOD VerifyForUsage(PRUint32 usage, PRUint32 *_retval); \ NS_IMETHOD GetASN1Structure(nsIASN1Object * *aASN1Structure); \ NS_IMETHOD GetRawDER(PRUint32 *length, PRUint8 **data); \ NS_IMETHOD Equals(nsIX509Cert *other, PRBool *_retval); /* Use this macro to declare functions that forward the behavior of this interface to another object. */ #define NS_FORWARD_NSIX509CERT(_to) \ NS_IMETHOD GetNickname(nsAString & aNickname) { return _to GetNickname(aNickname); } \ NS_IMETHOD GetEmailAddress(nsAString & aEmailAddress) { return _to GetEmailAddress(aEmailAddress); } \ NS_IMETHOD GetEmailAddresses(PRUint32 *length, PRUnichar ***addresses) { return _to GetEmailAddresses(length, addresses); } \ NS_IMETHOD ContainsEmailAddress(const nsAString & aEmailAddress, PRBool *_retval) { return _to ContainsEmailAddress(aEmailAddress, _retval); } \ NS_IMETHOD GetSubjectName(nsAString & aSubjectName) { return _to GetSubjectName(aSubjectName); } \ NS_IMETHOD GetCommonName(nsAString & aCommonName) { return _to GetCommonName(aCommonName); } \ NS_IMETHOD GetOrganization(nsAString & aOrganization) { return _to GetOrganization(aOrganization); } \ NS_IMETHOD GetOrganizationalUnit(nsAString & aOrganizationalUnit) { return _to GetOrganizationalUnit(aOrganizationalUnit); } \ NS_IMETHOD GetSha1Fingerprint(nsAString & aSha1Fingerprint) { return _to GetSha1Fingerprint(aSha1Fingerprint); } \ NS_IMETHOD GetMd5Fingerprint(nsAString & aMd5Fingerprint) { return _to GetMd5Fingerprint(aMd5Fingerprint); } \ NS_IMETHOD GetTokenName(nsAString & aTokenName) { return _to GetTokenName(aTokenName); } \ NS_IMETHOD GetIssuerName(nsAString & aIssuerName) { return _to GetIssuerName(aIssuerName); } \ NS_IMETHOD GetSerialNumber(nsAString & aSerialNumber) { return _to GetSerialNumber(aSerialNumber); } \ NS_IMETHOD GetIssuerCommonName(nsAString & aIssuerCommonName) { return _to GetIssuerCommonName(aIssuerCommonName); } \ NS_IMETHOD GetIssuerOrganization(nsAString & aIssuerOrganization) { return _to GetIssuerOrganization(aIssuerOrganization); } \ NS_IMETHOD GetIssuerOrganizationUnit(nsAString & aIssuerOrganizationUnit) { return _to GetIssuerOrganizationUnit(aIssuerOrganizationUnit); } \ NS_IMETHOD GetIssuer(nsIX509Cert * *aIssuer) { return _to GetIssuer(aIssuer); } \ NS_IMETHOD GetValidity(nsIX509CertValidity * *aValidity) { return _to GetValidity(aValidity); } \ NS_IMETHOD GetDbKey(char * *aDbKey) { return _to GetDbKey(aDbKey); } \ NS_IMETHOD GetWindowTitle(char * *aWindowTitle) { return _to GetWindowTitle(aWindowTitle); } \ NS_IMETHOD GetChain(nsIArray **_retval) { return _to GetChain(_retval); } \ NS_IMETHOD GetUsagesArray(PRBool ignoreOcsp, PRUint32 *verified, PRUint32 *count, PRUnichar ***usages) { return _to GetUsagesArray(ignoreOcsp, verified, count, usages); } \ NS_IMETHOD GetUsagesString(PRBool ignoreOcsp, PRUint32 *verified, nsAString & usages) { return _to GetUsagesString(ignoreOcsp, verified, usages); } \ NS_IMETHOD VerifyForUsage(PRUint32 usage, PRUint32 *_retval) { return _to VerifyForUsage(usage, _retval); } \ NS_IMETHOD GetASN1Structure(nsIASN1Object * *aASN1Structure) { return _to GetASN1Structure(aASN1Structure); } \ NS_IMETHOD GetRawDER(PRUint32 *length, PRUint8 **data) { return _to GetRawDER(length, data); } \ NS_IMETHOD Equals(nsIX509Cert *other, PRBool *_retval) { return _to Equals(other, _retval); } /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */ #define NS_FORWARD_SAFE_NSIX509CERT(_to) \ NS_IMETHOD GetNickname(nsAString & aNickname) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNickname(aNickname); } \ NS_IMETHOD GetEmailAddress(nsAString & aEmailAddress) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEmailAddress(aEmailAddress); } \ NS_IMETHOD GetEmailAddresses(PRUint32 *length, PRUnichar ***addresses) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEmailAddresses(length, addresses); } \ NS_IMETHOD ContainsEmailAddress(const nsAString & aEmailAddress, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->ContainsEmailAddress(aEmailAddress, _retval); } \ NS_IMETHOD GetSubjectName(nsAString & aSubjectName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSubjectName(aSubjectName); } \ NS_IMETHOD GetCommonName(nsAString & aCommonName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCommonName(aCommonName); } \ NS_IMETHOD GetOrganization(nsAString & aOrganization) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOrganization(aOrganization); } \ NS_IMETHOD GetOrganizationalUnit(nsAString & aOrganizationalUnit) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOrganizationalUnit(aOrganizationalUnit); } \ NS_IMETHOD GetSha1Fingerprint(nsAString & aSha1Fingerprint) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSha1Fingerprint(aSha1Fingerprint); } \ NS_IMETHOD GetMd5Fingerprint(nsAString & aMd5Fingerprint) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMd5Fingerprint(aMd5Fingerprint); } \ NS_IMETHOD GetTokenName(nsAString & aTokenName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTokenName(aTokenName); } \ NS_IMETHOD GetIssuerName(nsAString & aIssuerName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIssuerName(aIssuerName); } \ NS_IMETHOD GetSerialNumber(nsAString & aSerialNumber) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSerialNumber(aSerialNumber); } \ NS_IMETHOD GetIssuerCommonName(nsAString & aIssuerCommonName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIssuerCommonName(aIssuerCommonName); } \ NS_IMETHOD GetIssuerOrganization(nsAString & aIssuerOrganization) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIssuerOrganization(aIssuerOrganization); } \ NS_IMETHOD GetIssuerOrganizationUnit(nsAString & aIssuerOrganizationUnit) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIssuerOrganizationUnit(aIssuerOrganizationUnit); } \ NS_IMETHOD GetIssuer(nsIX509Cert * *aIssuer) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIssuer(aIssuer); } \ NS_IMETHOD GetValidity(nsIX509CertValidity * *aValidity) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetValidity(aValidity); } \ NS_IMETHOD GetDbKey(char * *aDbKey) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDbKey(aDbKey); } \ NS_IMETHOD GetWindowTitle(char * *aWindowTitle) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetWindowTitle(aWindowTitle); } \ NS_IMETHOD GetChain(nsIArray **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetChain(_retval); } \ NS_IMETHOD GetUsagesArray(PRBool ignoreOcsp, PRUint32 *verified, PRUint32 *count, PRUnichar ***usages) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUsagesArray(ignoreOcsp, verified, count, usages); } \ NS_IMETHOD GetUsagesString(PRBool ignoreOcsp, PRUint32 *verified, nsAString & usages) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUsagesString(ignoreOcsp, verified, usages); } \ NS_IMETHOD VerifyForUsage(PRUint32 usage, PRUint32 *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->VerifyForUsage(usage, _retval); } \ NS_IMETHOD GetASN1Structure(nsIASN1Object * *aASN1Structure) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetASN1Structure(aASN1Structure); } \ NS_IMETHOD GetRawDER(PRUint32 *length, PRUint8 **data) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRawDER(length, data); } \ NS_IMETHOD Equals(nsIX509Cert *other, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->Equals(other, _retval); } #if 0 /* Use the code below as a template for the implementation class for this interface. */ /* Header file */ class nsX509Cert : public nsIX509Cert { public: NS_DECL_ISUPPORTS NS_DECL_NSIX509CERT nsX509Cert(); private: ~nsX509Cert(); protected: /* additional members */ }; /* Implementation file */ NS_IMPL_ISUPPORTS1(nsX509Cert, nsIX509Cert) nsX509Cert::nsX509Cert() { /* member initializers and constructor code */ } nsX509Cert::~nsX509Cert() { /* destructor code */ } /* readonly attribute AString nickname; */ NS_IMETHODIMP nsX509Cert::GetNickname(nsAString & aNickname) { return NS_ERROR_NOT_IMPLEMENTED; } /* readonly attribute AString emailAddress; */ NS_IMETHODIMP nsX509Cert::GetEmailAddress(nsAString & aEmailAddress) { return NS_ERROR_NOT_IMPLEMENTED; } /* void getEmailAddresses (out unsigned long length, [array, size_is (length), retval] out wstring addresses); */ NS_IMETHODIMP nsX509Cert::GetEmailAddresses(PRUint32 *length, PRUnichar ***addresses) { return NS_ERROR_NOT_IMPLEMENTED; } /* boolean containsEmailAddress (in AString aEmailAddress); */ NS_IMETHODIMP nsX509Cert::ContainsEmailAddress(const nsAString & aEmailAddress, PRBool *_retval) { return NS_ERROR_NOT_IMPLEMENTED; } /* readonly attribute AString subjectName; */ NS_IMETHODIMP nsX509Cert::GetSubjectName(nsAString & aSubjectName) { return NS_ERROR_NOT_IMPLEMENTED; } /* readonly attribute AString commonName; */ NS_IMETHODIMP nsX509Cert::GetCommonName(nsAString & aCommonName) { return NS_ERROR_NOT_IMPLEMENTED; } /* readonly attribute AString organization; */ NS_IMETHODIMP nsX509Cert::GetOrganization(nsAString & aOrganization) { return NS_ERROR_NOT_IMPLEMENTED; } /* readonly attribute AString organizationalUnit; */ NS_IMETHODIMP nsX509Cert::GetOrganizationalUnit(nsAString & aOrganizationalUnit) { return NS_ERROR_NOT_IMPLEMENTED; } /* readonly attribute AString sha1Fingerprint; */ NS_IMETHODIMP nsX509Cert::GetSha1Fingerprint(nsAString & aSha1Fingerprint) { return NS_ERROR_NOT_IMPLEMENTED; } /* readonly attribute AString md5Fingerprint; */ NS_IMETHODIMP nsX509Cert::GetMd5Fingerprint(nsAString & aMd5Fingerprint) { return NS_ERROR_NOT_IMPLEMENTED; } /* readonly attribute AString tokenName; */ NS_IMETHODIMP nsX509Cert::GetTokenName(nsAString & aTokenName) { return NS_ERROR_NOT_IMPLEMENTED; } /* readonly attribute AString issuerName; */ NS_IMETHODIMP nsX509Cert::GetIssuerName(nsAString & aIssuerName) { return NS_ERROR_NOT_IMPLEMENTED; } /* readonly attribute AString serialNumber; */ NS_IMETHODIMP nsX509Cert::GetSerialNumber(nsAString & aSerialNumber) { return NS_ERROR_NOT_IMPLEMENTED; } /* readonly attribute AString issuerCommonName; */ NS_IMETHODIMP nsX509Cert::GetIssuerCommonName(nsAString & aIssuerCommonName) { return NS_ERROR_NOT_IMPLEMENTED; } /* readonly attribute AString issuerOrganization; */ NS_IMETHODIMP nsX509Cert::GetIssuerOrganization(nsAString & aIssuerOrganization) { return NS_ERROR_NOT_IMPLEMENTED; } /* readonly attribute AString issuerOrganizationUnit; */ NS_IMETHODIMP nsX509Cert::GetIssuerOrganizationUnit(nsAString & aIssuerOrganizationUnit) { return NS_ERROR_NOT_IMPLEMENTED; } /* readonly attribute nsIX509Cert issuer; */ NS_IMETHODIMP nsX509Cert::GetIssuer(nsIX509Cert * *aIssuer) { return NS_ERROR_NOT_IMPLEMENTED; } /* readonly attribute nsIX509CertValidity validity; */ NS_IMETHODIMP nsX509Cert::GetValidity(nsIX509CertValidity * *aValidity) { return NS_ERROR_NOT_IMPLEMENTED; } /* readonly attribute string dbKey; */ NS_IMETHODIMP nsX509Cert::GetDbKey(char * *aDbKey) { return NS_ERROR_NOT_IMPLEMENTED; } /* readonly attribute string windowTitle; */ NS_IMETHODIMP nsX509Cert::GetWindowTitle(char * *aWindowTitle) { return NS_ERROR_NOT_IMPLEMENTED; } /* nsIArray getChain (); */ NS_IMETHODIMP nsX509Cert::GetChain(nsIArray **_retval) { return NS_ERROR_NOT_IMPLEMENTED; } /* void getUsagesArray (in boolean ignoreOcsp, out PRUint32 verified, out PRUint32 count, [array, size_is (count)] out wstring usages); */ NS_IMETHODIMP nsX509Cert::GetUsagesArray(PRBool ignoreOcsp, PRUint32 *verified, PRUint32 *count, PRUnichar ***usages) { return NS_ERROR_NOT_IMPLEMENTED; } /* void getUsagesString (in boolean ignoreOcsp, out PRUint32 verified, out AString usages); */ NS_IMETHODIMP nsX509Cert::GetUsagesString(PRBool ignoreOcsp, PRUint32 *verified, nsAString & usages) { return NS_ERROR_NOT_IMPLEMENTED; } /* unsigned long verifyForUsage (in unsigned long usage); */ NS_IMETHODIMP nsX509Cert::VerifyForUsage(PRUint32 usage, PRUint32 *_retval) { return NS_ERROR_NOT_IMPLEMENTED; } /* readonly attribute nsIASN1Object ASN1Structure; */ NS_IMETHODIMP nsX509Cert::GetASN1Structure(nsIASN1Object * *aASN1Structure) { return NS_ERROR_NOT_IMPLEMENTED; } /* void getRawDER (out unsigned long length, [array, size_is (length), retval] out octet data); */ NS_IMETHODIMP nsX509Cert::GetRawDER(PRUint32 *length, PRUint8 **data) { return NS_ERROR_NOT_IMPLEMENTED; } /* boolean equals (in nsIX509Cert other); */ NS_IMETHODIMP nsX509Cert::Equals(nsIX509Cert *other, PRBool *_retval) { return NS_ERROR_NOT_IMPLEMENTED; } /* End of implementation class template. */ #endif #endif /* __gen_nsIX509Cert_h__ */
113992608a62a039e883226f7e76330a443c24d6
d1853dc32105f49790ed299bcca2db3b1d718ece
/codeforces/1367/A.cpp
24b9294596c722e690c3e0e52ef022ace1208b44
[]
no_license
towhid1zaman/Problem__Solving
a8abbd77c68c6f1e9ff8ceecd9332a3d15f741cd
1407bc0d44165827e8db5599e75115961d569315
refs/heads/master
2023-06-05T10:56:17.151354
2021-06-20T19:46:00
2021-06-26T04:47:16
326,334,514
0
0
null
null
null
null
UTF-8
C++
false
false
1,141
cpp
// </> : towhid1zaman #include "bits/stdc++.h" using namespace std; typedef long long ll; typedef vector<int> vi; typedef vector<ll> vll; typedef pair< int, int > pii; typedef pair< pii, int > ppi; #define fill(a,b) memset(a,b,sizeof(a)) #define all(v) (v).begin(),(v).end() #define sp(k) cout<<setprecision(k)<<fixed; #define rep(i,a) for(int i=0;i<a;i++) #define rep1(i,a,b) for(int i=(a);i<=(b);++i) #define irep(i,b,a) for(int i=(b);i>=(a);--i) #define minv(v) *min_element(all(v)) #define maxv(v) *max_element(all(v)) #define unq(v) sort(all(v)),(v).erase(unique(all(v)),(v).end()) #define _ ios::sync_with_stdio(0);cin.tie(0);cout.tie(0); #define endl "\n" #define sqr(a) ((a)*(a)) #define sz(a) int(a.size()) #define ff first #define ss second #define pb push_back const double pi = acos(-1.0); const int mod = 1000000007; // (int)1e9+7 const int inf = 0x3f3f3f3f;// (int)3e18; const int maxn = 2000100; int main(){ _ int T; cin >> T; while(T--){ string s; cin >> s; cout<<s[0]; for(int i = 1; i<sz(s);i+=2)cout<<s[i]; cout<<endl; } return 0; }
edd31425cd49cdf64375e6069412f3d1181c99b7
91a882547e393d4c4946a6c2c99186b5f72122dd
/Source/XPSP1/NT/admin/wmi/wbem/sdk/vs7/vside/fmstocks/fmstocks_evecons/fmeventsprov.h
a8e314a3ce4d6f2de6fdb7fc576e607712c25517
[]
no_license
IAmAnubhavSaini/cryptoAlgorithm-nt5src
94f9b46f101b983954ac6e453d0cf8d02aa76fc7
d9e1cdeec650b9d6d3ce63f9f0abe50dabfaf9e2
refs/heads/master
2023-09-02T10:14:14.795579
2021-11-20T13:47:06
2021-11-20T13:47:06
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,825
h
//////////////////////////////////////////////////////////////////////// // // FMEventsProv.h // // Module: WMI Event Consumer for F&M Stocks // // Event consumer provider class definition // // History: // a-vkanna 3-April-2000 Initial Version // // Copyright (c) 2000 Microsoft Corporation // //////////////////////////////////////////////////////////////////////// #include <wbemcli.h> #include <wbemprov.h> /************************************************************************ * * * Class CFMEventsProv * * * * The Event Consumer Provider class for FMStocks implements * * IWbemProviderInit and IWbemEventConsumerProvider * * * ************************************************************************/ class CFMEventsProv : public IWbemProviderInit , public IWbemEventConsumerProvider { public: CFMEventsProv() : m_cRef(0L) {}; ~CFMEventsProv() {}; /************ IUNKNOWN METHODS ******************/ STDMETHODIMP QueryInterface(/* [in] */ REFIID riid, /* [out] */ void** ppv); STDMETHODIMP_(ULONG) AddRef(); STDMETHODIMP_(ULONG) Release(); /********** IWBEMPROVIDERINIT METHODS ************/ HRESULT STDMETHODCALLTYPE Initialize( /* [in] */ LPWSTR pszUser, /* [in] */ LONG lFlags, /* [in] */ LPWSTR pszNamespace, /* [in] */ LPWSTR pszLocale, /* [in] */ IWbemServices *pNamespace, /* [in] */ IWbemContext *pCtx, /* [in] */ IWbemProviderInitSink *pInitSink ); /****** IWBEMEVENTCONSUMERPROVIDER METHODS *******/ STDMETHOD(FindConsumer)(/* [in] */ IWbemClassObject* pLogicalConsumer, /* [out] */ IWbemUnboundObjectSink** ppConsumer); private: DWORD m_cRef; };
5e2c59095961a5433ed5f08269838bc1fcbb1bc2
0a2357ad0098bbb7b74528cb01d6decaab928ed8
/aoj/0562.cpp
2528c65306af9b7e12397219d63103aae7d8836e
[]
no_license
touyou/CompetitiveProgramming
12af9e18f4fe9ce9f08f0a0f2750bcb5d1fc9ce7
419f310ccb0f24ff08d3599e5147e5a614071926
refs/heads/master
2021-06-18T09:19:01.767323
2020-07-16T03:40:08
2020-07-16T03:40:08
90,118,147
0
0
null
2020-10-13T04:32:19
2017-05-03T06:57:58
C++
UTF-8
C++
false
false
1,354
cpp
#include <cstdio> #include <climits> #include <vector> #include <algorithm> #include <queue> #include <map> #include <functional> using namespace std; typedef pair<int, int> P; struct edge { int to, cost; }; vector<edge> G[3000]; int mind[3000]; int d[3000]; int n, m, k; void dijkstra(int s) { fill(d, d+n, INT_MAX); d[s]=0; priority_queue<P, vector<P>, greater<P> > que; que.push(P(0,s)); while (!que.empty()) { P p=que.top(); que.pop(); int v=p.second; if (d[v]<p.first) continue; for (int i=0; i<G[v].size(); i++) { edge e=G[v][i]; if (d[e.to]>d[v]+e.cost) { d[e.to]=d[v]+e.cost; que.push(P(d[e.to],e.to)); } } } for (int i=0; i<n; i++) mind[i]=min(mind[i],d[i]); } int main() { scanf("%d%d%d",&n,&m,&k); fill(mind, mind+n, INT_MAX); for (int i=0; i<m; i++) { int a, b, l; scanf("%d%d%d",&a,&b,&l); G[a-1].push_back((edge){b-1,l}); G[b-1].push_back((edge){a-1,l}); } for (int i=0; i<k; i++) { int s; scanf("%d",&s); dijkstra(s-1); } int res=0; for (int i=0; i<n; i++) { for (int j=0; j<G[i].size(); j++) { edge e=G[i][j]; res=max(res,(mind[i]+mind[e.to]+e.cost+1)/2); } } printf("%d\n",res); }
487b9df1f347994e5d0c47d850c0f18e5b54ed74
066a9ac76feb0d990ef16570ef6e44797599ab28
/Union-Find/RedundantConnection.cpp
136c2903d074a163ae2d87fc989d2d126a9f2e86
[]
no_license
kanhaiya09/Algorithm
8774f55a900887db1c10561d278e9778b07da084
2c360fafd1d06960c7fa7eb8add3af823599c137
refs/heads/master
2023-01-30T13:35:36.830008
2023-01-22T22:15:43
2023-01-22T22:15:43
260,243,121
0
0
null
null
null
null
UTF-8
C++
false
false
974
cpp
// https://leetcode.com/problems/redundant-connection/ #include<bits/stdc++.h> using namespace std; class QuickFind{ public: QuickFind(){ id.resize(1001); for(int i = 0 ; i < 1001 ; i++){ id[i] = i; } } bool isConnected(int p,int q){ return id[p]==id[q]; } void connect(int p,int q){ int pid = id[p]; int qid = id[q]; for(int i = 0 ; i < 1001; i++){ if(id[i]==pid) id[i] = qid; } } vector<int> id; }; class Solution { public: vector<int> findRedundantConnection(vector<vector<int>>& edges) { vector<int> ans(2,0); QuickFind q; for(auto edge : edges){ if(!q.isConnected(edge[0],edge[1])){ q.connect(edge[0],edge[1]); }else{ ans[0] = edge[0]; ans[1] = edge[1]; } } return ans; } };
638000baa843623e37603033310c7b8ac067fc0b
f65d20e4cfcccabe1a8870994dc176adf489807c
/vlc_player_options.h
c76392d4ce9e4f00c0970b5f5a1e67fa75c343de
[]
no_license
dawnworld/fbvlc
63653cc68517565111f1411c474461a017b92adb
b3922445384c82d8c2c262c801353781d71d4308
refs/heads/master
2021-01-20T17:12:08.129508
2012-11-14T04:38:22
2012-11-14T04:38:22
null
0
0
null
null
null
null
WINDOWS-1252
C++
false
false
3,061
h
/***************************************************************************** * Copyright © 2002-2011 VideoLAN and VLC authors * $Id$ * * Authors: Sergey Radionov <rsatom_gmail.com> * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 2.1 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. *****************************************************************************/ #ifndef _VLC_PLAYER_OPTIONS_H_ #define _VLC_PLAYER_OPTIONS_H_ #include <string> #include <stdint.h> #ifdef _WIN32 #include <windows.h> #endif bool HtmlColor2RGB(const std::string& HtmlColor, uint8_t* r, uint8_t* g, uint8_t* b); #ifdef _WIN32 inline COLORREF HtmlColor2RGB(const std::string& HtmlColor, COLORREF DefColor) { uint8_t r, g, b; r = g = b = 0; if(!HtmlColor2RGB(HtmlColor, &r, &g, &b)) return DefColor; return RGB(r, g, b); } #endif enum vlc_player_option_e { po_autoplay, po_show_toolbar, po_enable_fullscreen, po_bg_text, po_bg_color }; class vlc_player_options { public: vlc_player_options() :_autoplay(true), _show_toolbar(true), _enable_fullscreen(true), _bg_color(/*black*/"#000000") {} void set_autoplay(bool ap){ _autoplay = ap; on_option_change(po_autoplay); } bool get_autoplay() const {return _autoplay;} void set_show_toolbar(bool st){ _show_toolbar = st; on_option_change(po_show_toolbar); } bool get_show_toolbar() const {return _show_toolbar;} void set_enable_fs(bool ef){ _enable_fullscreen = ef; on_option_change(po_enable_fullscreen); } bool get_enable_fs() const {return _enable_fullscreen;} void set_bg_text(const std::string& bt){ _bg_text = bt; on_option_change(po_bg_text); } const std::string& get_bg_text() const { return _bg_text; } void set_bg_color(const std::string& bc){ _bg_color = bc; on_option_change(po_bg_color); } const std::string& get_bg_color() const { return _bg_color; } protected: virtual void on_option_change(vlc_player_option_e ){}; private: bool _autoplay; bool _show_toolbar; bool _enable_fullscreen; std::string _bg_text; //background color format is "#rrggbb" std::string _bg_color; }; #endif //_VLC_PLAYER_OPTIONS_H_
1e160502dd8e15634bbc23aef32d811207385340
eeec799d1ed2ac3c7d5a14adc9a3aef921c9a6ba
/Control/Control/Control.ino
5b1d090eb6ccdb1d32072225ac7dfb9ca2ddeac0
[]
no_license
mybura/kiln
b6c66054b077b52f6ab40362b7a139b9e1dc15a7
4347526b6663e914b3214c37ad37108b664448a3
refs/heads/master
2023-02-27T12:05:22.342783
2021-02-13T05:23:27
2021-02-13T05:23:27
337,376,467
0
0
null
null
null
null
UTF-8
C++
false
false
625
ino
#include "Common.h" #include "UIState.h" #include "ScheduleState.h" #include "I2CInterface.h" #include <ESP8266WiFi.h> I2CInterface i2cInterface; ScheduleState scheduleState(&i2cInterface); UIState uiState(&scheduleState, &i2cInterface); void setup() { Serial.begin(115200); WiFi.forceSleepBegin(); // Wait for other controllers to start up delay(3000); i2cInterface.Setup(); uiState.Setup(); scheduleState.Setup(); } void loop() { i2cInterface.Update(); scheduleState.Update(); uiState.Update(); } //:\Users\Scanner\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.0/tools/sdk/include
f3eed86cc2a6e2a01a40d589dc2a1ff361fdd7d3
bc0945070d150c8af7cc56bf6e045a8c2cc7873d
/1463/3361208_AC_782MS_9660K.cpp
05c33c15d2c939f007294dc3a94c73f4bc717d29
[]
no_license
fengrenchang86/PKU
ab889d88cd62b3c0b3e00cde5d5c3a652a16221a
0c4adf6b740d2186b7f23124673cd56520d1c818
refs/heads/master
2021-01-10T12:12:18.100884
2016-03-07T14:14:33
2016-03-07T14:14:33
53,328,385
1
0
null
null
null
null
UTF-8
C++
false
false
1,388
cpp
#include <iostream> using namespace std; const int inf = 2000000000; int dp[1600][2]; bool c[1501][1501]; bool visit[1600]; int n; struct ac { int v; ac *next; }*list[1600]; void init () { int i; for ( i = 0; i < n; i++ ) { visit[i] = false; list[i] = NULL; } } void insert ( int begin, int end ) { ac *p = new ac; p->v = end; p->next = list[begin]; list[begin] = p; } int input () { int id,k,i,j,end; for ( i = 0; i < n; i++ ) { scanf("%d:(%d)",&id,&k); for ( j = 0; j < k; j++ ) { scanf("%d",&end); insert(id,end); visit[end] = true; } } for ( i = 0; i < n; i++ ) { if ( visit[i] == false ) break; } return i; } int tmin ( int x, int y ) { return x<y?x:y; } int dfs ( int v ) { ac *p=list[v]; visit[v] = true; int i=0,t=inf,k=0,sy=0,sx=0; // for ( i = 0; i < n; i++ ) while( p != NULL ) { i = p->v; if ( visit[i] == false ) { k = dfs(i); sy += dp[i][1]; sx += tmin(dp[i][0],dp[i][1]); if ( k < t ) t = k; } p = p->next; } if ( t == inf ) { dp[v][1] = 1; dp[v][0] = 0; return 1; } /* else if ( t == 1 ) { dp[v][1] = dp[v][0] = 1; return 2; } */ else { dp[v][1] = sx+1; dp[v][0] = sy; return t+1; } } int main () { int k; while ( scanf("%d",&n) != EOF ) { init(); k = input(); memset(visit,false,sizeof(visit)); dfs(k); printf("%d\n",tmin(dp[k][0],dp[k][1])); } return 0; }
48f38c750a5af62d52cfb9f4f251aad950fc8d8b
ef66e297a49d04098d98a711ca3fda7b8a9a657c
/LeetCode/234-Palindrome Linked List/solution.cpp
2c1657fb790a3d52dd10309dde9c821388b8eef0
[]
no_license
breezy1812/MyCodes
34940357954dad35ddcf39aa6c9bc9e5cd1748eb
9e3d117d17025b3b587c5a80638cb8b3de754195
refs/heads/master
2020-07-19T13:36:05.270908
2018-12-15T08:54:30
2018-12-15T08:54:30
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,221
cpp
// Author: David // Email: [email protected] // Created: 2017-09-09 11:33 // Last modified: 2017-09-09 11:33 // Filename: solution.cpp // Description: /** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), next(NULL) {} * }; */ class Solution { public: bool isPalindrome(ListNode* head) { if(head == NULL || head->next == NULL) return true; ListNode *slow, *fast; slow = fast = head; while(fast->next && fast->next->next) { slow = slow->next; fast = fast->next->next; } slow->next = reverse_list(slow->next); slow = slow->next; while(slow) { if(head->val != slow->val) return false; head = head->next; slow = slow->next; } return true; } ListNode* reverse_list(ListNode* head) { ListNode* tmp = NULL; ListNode* new_head = NULL; while(head) { tmp = head->next; head->next = new_head; new_head = head; head = tmp; } return new_head; } };
447b3837a8bb815cfaa2c1a6a76036f1a6ebab38
5a6398e0b197dc76eb9d79e8c9a70940c826b00e
/src/include/izenelib/source/util/compression/ordered_compresssion/PatternGenerator.cc
46f44a6a304ddb95b69fda3279f3f0fa0ecda969
[ "Apache-2.0", "PostgreSQL" ]
permissive
RMoraffah/hippo-postgresql
38b07cd802e179c3fce00097f49c843b238c3e91
002702bab3a820bbc8cf99e6fcf3bb1eface96c1
refs/heads/master
2021-01-12T00:48:53.735686
2016-12-02T01:01:15
2016-12-02T01:13:51
null
0
0
null
null
null
null
UTF-8
C++
false
false
481
cc
#include "PatternGenerator.h" #include <algorithm> using namespace std; namespace izenelib { namespace util{ namespace compression { PatternGenerator::PatternGenerator(const string& fileName, bool NOFILE) { FILE *fp; fp = fopen(fileName.c_str(), "r"); if ( !fp) { throw CompressorException("PatternGenerator:file not exits\n"); } while ( !feof(fp) ) { char ch; ch = fgetc(fp); if( feof(fp) )break; if(!NOFILE || ch != '\n') charFrequency_[ch]++; } } }}}
9ed809b78b695c0fb7b46d14bf58f20f99ade5cb
6592a3f23300d53b262ffbd5e3b547dca6864c83
/src/mat2.h
24c5048fa021c5f0810dcacd5af999a5c9c0a0bf
[ "MIT" ]
permissive
lasagnaphil/altmath
b566374e645d0905c8a75343a00b9092eacf63a9
149e1af651fd6843f1b812beec3440cd9975b270
refs/heads/master
2020-04-03T06:00:07.387909
2019-09-06T09:16:59
2019-09-06T09:16:59
155,062,461
2
0
null
null
null
null
UTF-8
C++
false
false
3,267
h
// // Created by lasagnaphil on 2019-01-22. // #ifndef COLDETECT_MAT2_H #define COLDETECT_MAT2_H template <typename T> struct mat2 { union { T m[2][2]; T p[4]; }; static mat2 zero() { return mat2 {}; } static mat2 identity() { mat2 m; m.p[0] = m.p[3] = 1; m.p[1] = m.p[2] = 0; return m; } static mat2 make(T t0, T t1, T t2, T t3) { mat2 m; m.p[0] = t0; m.p[1] = t1; m.p[2] = t2; m.p[3] = t3; return m; } static mat2 single(T t) { mat2 m; m.p[0] = m.p[1] = m.p[2] = m.p[3] = t; return m; } }; template <typename T> inline mat2<T> operator+(const mat2<T>& a, const mat2<T>& b) { mat2<T> c; for (int i = 0; i < 4; i++) { c.p[i] = a.p[i] + b.p[i]; } return c; } template <typename T> inline mat2<T> operator-(const mat2<T>& a, const mat2<T>& b) { mat2<T> c; for (int i = 0; i < 4; i++) { c.p[i] = a.p[i] - b.p[i]; } return c; } template <typename T> inline mat2<T> operator*(const mat2<T>& a, const mat2<T>& b) { mat2<T> c; c.p[0] = a.p[0] * b.p[0] + a.p[1] * b.p[2]; c.p[1] = a.p[0] * b.p[1] + a.p[1] * b.p[3]; c.p[2] = a.p[2] * b.p[0] + a.p[3] * b.p[2]; c.p[3] = a.p[2] * b.p[1] + a.p[3] * b.p[3]; return c; } template <typename T> inline mat2<T> operator*(T k, const mat2<T>& a) { mat2<T> c; for (int i = 0; i < 4; i++) { c.p[i] = k * a.p[i]; } return c; } template <typename T> inline mat2<T> operator*(const mat2<T>& a, T k) { mat2<T> c; for (int i = 0; i < 4; i++) { c.p[i] = k * a.p[i]; } return c; } template <typename T> inline mat2<T> operator/(const mat2<T>& a, T k) { mat2<T> c; for (int i = 0; i < 4; i++) { c.p[i] = a.p[i] / k; } return c; } template <typename T> inline mat2<T>& operator+=(mat2<T>& a, const mat2<T>& b) { for (int i = 0; i < 4; i++) { a.p[i] += b.p[i]; }; return a; } template <typename T> inline mat2<T>& operator-=(mat2<T>& a, const mat2<T>& b) { for (int i = 0; i < 4; i++) { a.p[i] -= b.p[i]; }; return a; } template <typename T> inline mat2<T>& operator*=(mat2<T>& a, const mat2<T>& b) { for (int i = 0; i < 4; i++) { a.p[i] *= b.p[i]; }; return a; } template <typename T> inline mat2<T>& operator*=(mat2<T>& a, float k) { for (int i = 0; i < 4; i++) { a.p[i] *= k; }; return a; } template <typename T> inline mat2<T>& operator/=(mat2<T>& a, float k) { for (int i = 0; i < 4; i++) { a.p[i] /= k; }; return a; } namespace aml { template <typename T> T det(const mat2<T>& m) { return m.p[0] * m.p[3] - m.p[1] * m.p[2]; }; template <typename T> mat2<T> conj(const mat2<T>& m) { mat2<T> res; res.p[0] = m.p[3]; res.p[1] = -m.p[1]; res.p[2] = -m.p[2]; res.p[3] = m.p[0]; return res; } template <typename T> mat2<T> inv(const mat2<T>& m) { return conj(m) / det(m); } } using mat2f = mat2<float>; using mat2d = mat2<double>; #ifdef ALTMATH_USE_SIMD #include "simd/mat2f.h" #endif #endif //COLDETECT_MAT2_H
af8f1109864db9007580eca122646ff50f66d3ab
6f49cc2d5112a6b97f82e7828f59b201ea7ec7b9
/wdbecmbd/WdbeWrdev/WdbeWrdevUnt.h
e3f050cadaabcdff92087455c4283325d4f2d401
[ "MIT" ]
permissive
mpsitech/wdbe-WhizniumDBE
d3702800d6e5510e41805d105228d8dd8b251d7a
89ef36b4c86384429f1e707e5fa635f643e81240
refs/heads/master
2022-09-28T10:27:03.683192
2022-09-18T22:04:37
2022-09-18T22:04:37
282,705,449
5
0
null
null
null
null
UTF-8
C++
false
false
1,561
h
/** * \file WdbeWrdevUnt.h * Wdbe operation processor - write C++ code for unit (declarations) * \copyright (C) 2016-2020 MPSI Technologies GmbH * \author Alexander Wirthmueller (auto-generation) * \date created: 28 Nov 2020 */ // IP header --- ABOVE #ifndef WDBEWRDEVUNT_H #define WDBEWRDEVUNT_H #include "WdbeWrdev.h" // IP include.cust --- INSERT namespace WdbeWrdevUnt { DpchRetWdbe* run(XchgWdbe* xchg, DbsWdbe* dbswdbe, DpchInvWdbeWrdevUnt* dpchinv); // IP cust --- IBEGIN void writeUntH(DbsWdbe* dbswdbe, std::fstream& outfile, const bool Easy, WdbeMUnit* unt, const std::string& srefroot, ListWdbeMController& ctrs, ListWdbeMImbuf& imbs, ListWdbeMCommand& cmds, ListWdbeMError& errs, const Sbecore::ubigint refHostif, const Sbecore::uint ixImbCmdinv, const Sbecore::uint ixImbCmdret, const bool hasvecbuf, const bool hasvecctr, const bool hasveccmd, const bool hasvecerr, const bool hasspeccmd); void writeUntCpp(DbsWdbe* dbswdbe, std::fstream& outfile, const bool Easy, WdbeMUnit* unt, const std::string& srefroot, ListWdbeMController& ctrs, ListWdbeMImbuf& imbs, ListWdbeMCommand& cmds, ListWdbeMError& err, const Sbecore::ubigint refHostif, const Sbecore::uint ixImbCmdinv, const Sbecore::uint ixImbCmdret, const bool hasvecbuf, const bool hasvecctr, const bool hasveccmd, const bool hasvecerr); void writeUntvecsH(DbsWdbe* dbswdbe, std::fstream& outfile, WdbeMUnit* unt, ListWdbeMVector& vecs); void writeUntvecsCpp(DbsWdbe* dbswdbe, std::fstream& outfile, WdbeMUnit* unt, ListWdbeMVector& vecs); // IP cust --- IEND }; #endif
71b7ed8a595a219ae2cc38c260249aebf2daf553
600df3590cce1fe49b9a96e9ca5b5242884a2a70
/chrome/browser/ui/views/translate/translate_icon_view.h
ec4f57d04628b863bf6e886e4aa7c1350aae71ca
[ "BSD-3-Clause" ]
permissive
metux/chromium-suckless
efd087ba4f4070a6caac5bfbfb0f7a4e2f3c438a
72a05af97787001756bae2511b7985e61498c965
refs/heads/orig
2022-12-04T23:53:58.681218
2017-04-30T10:59:06
2017-04-30T23:35:58
89,884,931
5
3
BSD-3-Clause
2022-11-23T20:52:53
2017-05-01T00:09:08
null
UTF-8
C++
false
false
1,067
h
// Copyright 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_UI_VIEWS_TRANSLATE_TRANSLATE_ICON_VIEW_H_ #define CHROME_BROWSER_UI_VIEWS_TRANSLATE_TRANSLATE_ICON_VIEW_H_ #include "base/macros.h" #include "chrome/browser/ui/views/location_bar/bubble_icon_view.h" class CommandUpdater; // The location bar icon to show the Translate bubble where the user can have // the page translated. class TranslateIconView : public BubbleIconView { public: explicit TranslateIconView(CommandUpdater* command_updater); ~TranslateIconView() override; protected: // BubbleIconView: void OnExecuting(BubbleIconView::ExecuteSource execute_source) override; void OnPressed(bool activated) override; views::BubbleDialogDelegateView* GetBubble() const override; gfx::VectorIconId GetVectorIcon() const override; private: DISALLOW_COPY_AND_ASSIGN(TranslateIconView); }; #endif // CHROME_BROWSER_UI_VIEWS_TRANSLATE_TRANSLATE_ICON_VIEW_H_
7a4bdaf808baa0f78c6789432724a9b174f7ffd8
4005cc959194b9197c4c2dfd4a481b7ba636b95c
/oj/lanqiao/changeScanBeT.cpp
33be89cdc338b909ec328c9552da8642520f809e
[]
no_license
chenxunhan/vscode_cpp
afd95c0f32cc988a9077ada54734673fa2a244ac
2a949c3ec571bf4f409caa46858b40d17d367466
refs/heads/main
2023-06-17T14:35:52.454254
2021-07-13T15:12:35
2021-07-13T15:12:35
323,352,213
0
0
null
null
null
null
UTF-8
C++
false
false
473
cpp
#include <bits/stdc++.h> using namespace std; const int N = 1005; char S[N], T[N]; int Slen, Tlen; int Min = INT_MAX; int main() { scanf("%s", S); scanf("%s", T); Slen = strlen(S), Tlen = strlen(T); for (int i = 0; i <= Slen - Tlen; ++i) { int min = 0; for (int j = 0; T[j] != 0; ++j) { min += (S[i + j] != T[j]); } if (min < Min) { Min = min; } } cout << Min << endl; return 0; }
50a4e1dbcedf76ae1df7cb0ef298926cc041eee7
36c27b09fe9c5582a77ecf098c05b6cba5151643
/headers/object.h
326b0806ba16dfcb498a2bb3bea593438f3a1621
[]
no_license
stygeo/lunar
b0fd8d6ee33f23f0a09080bb4d6e3fd195f2cb11
32de324e09d6f0975383328d039304fb300db04c
refs/heads/master
2016-09-11T07:03:57.947088
2012-05-01T07:47:43
2012-05-01T07:47:43
null
0
0
null
null
null
null
UTF-8
C++
false
false
134
h
#ifndef OBJECT_H #define OBJECT_H #include "lua_all.h" class Object { public: virtual void bind(lua_State *L) = 0; }; #endif
e16ba08ec812774a76e68ce9d1aeb3076e16663c
9030ce2789a58888904d0c50c21591632eddffd7
/SDK/ARKSurvivalEvolved_DinoSettings_Herbivore_Medium_Pachyrhino_parameters.hpp
a9c5d26531a6e6970ff703640208ed77ec9041b1
[ "MIT" ]
permissive
2bite/ARK-SDK
8ce93f504b2e3bd4f8e7ced184980b13f127b7bf
ce1f4906ccf82ed38518558c0163c4f92f5f7b14
refs/heads/master
2022-09-19T06:28:20.076298
2022-09-03T17:21:00
2022-09-03T17:21:00
232,411,353
14
5
null
null
null
null
UTF-8
C++
false
false
842
hpp
#pragma once // ARKSurvivalEvolved (332.8) SDK #ifdef _MSC_VER #pragma pack(push, 0x8) #endif #include "ARKSurvivalEvolved_DinoSettings_Herbivore_Medium_Pachyrhino_classes.hpp" namespace sdk { //--------------------------------------------------------------------------- //Parameters //--------------------------------------------------------------------------- // Function DinoSettings_Herbivore_Medium_Pachyrhino.DinoSettings_Herbivore_Medium_Pachyrhino_C.ExecuteUbergraph_DinoSettings_Herbivore_Medium_Pachyrhino struct UDinoSettings_Herbivore_Medium_Pachyrhino_C_ExecuteUbergraph_DinoSettings_Herbivore_Medium_Pachyrhino_Params { int EntryPoint; // (Parm, ZeroConstructor, IsPlainOldData) }; } #ifdef _MSC_VER #pragma pack(pop) #endif