blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
264
content_id
stringlengths
40
40
detected_licenses
listlengths
0
85
license_type
stringclasses
2 values
repo_name
stringlengths
5
140
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
905 values
visit_date
timestamp[us]date
2015-08-09 11:21:18
2023-09-06 10:45:07
revision_date
timestamp[us]date
1997-09-14 05:04:47
2023-09-17 19:19:19
committer_date
timestamp[us]date
1997-09-14 05:04:47
2023-09-06 06:22:19
github_id
int64
3.89k
681M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
22 values
gha_event_created_at
timestamp[us]date
2012-06-07 00:51:45
2023-09-14 21:58:39
gha_created_at
timestamp[us]date
2008-03-27 23:40:48
2023-08-21 23:17:38
gha_language
stringclasses
141 values
src_encoding
stringclasses
34 values
language
stringclasses
1 value
is_vendor
bool
1 class
is_generated
bool
2 classes
length_bytes
int64
3
10.4M
extension
stringclasses
115 values
content
stringlengths
3
10.4M
authors
listlengths
1
1
author_id
stringlengths
0
158
7fe59555abf6dd180a8f8d3de26dcb0eb76c996e
47b8c7125d3c8d9bc9768669465ca66566fb51d1
/src/net/socket/client_socket_pool_manager.cc
40a3342e1a56da9fce7e851997a9dadcf2627b87
[ "BSD-3-Clause" ]
permissive
xlee/naiveproxy
743e2da1e3b0cec01d051c4e6b38df8a302952d8
8bbb7526b927cbaa82870a4c81a08ccf5e8e9c1d
refs/heads/master
2023-09-04T10:22:48.679148
2019-04-25T17:40:46
2021-11-15T12:25:16
null
0
0
null
null
null
null
UTF-8
C++
false
false
14,046
cc
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "net/socket/client_socket_pool_manager.h" #include <memory> #include <utility> #include "base/check_op.h" #include "base/cxx17_backports.h" #include "base/metrics/field_trial_params.h" #include "base/strings/string_piece.h" #include "build/build_config.h" #include "net/base/features.h" #include "net/base/load_flags.h" #include "net/dns/public/secure_dns_policy.h" #include "net/http/http_stream_factory.h" #include "net/proxy_resolution/proxy_info.h" #include "net/socket/client_socket_handle.h" #include "net/socket/client_socket_pool.h" #include "net/socket/connect_job.h" #include "net/ssl/ssl_config.h" #include "third_party/abseil-cpp/absl/types/optional.h" #include "url/gurl.h" #include "url/scheme_host_port.h" #include "url/url_constants.h" namespace net { namespace { // Limit of sockets of each socket pool. int g_max_sockets_per_pool[] = { 256, // NORMAL_SOCKET_POOL 256 // WEBSOCKET_SOCKET_POOL }; static_assert(base::size(g_max_sockets_per_pool) == HttpNetworkSession::NUM_SOCKET_POOL_TYPES, "max sockets per pool length mismatch"); // Default to allow up to 6 connections per host. Experiment and tuning may // try other values (greater than 0). Too large may cause many problems, such // as home routers blocking the connections!?!? See http://crbug.com/12066. // // WebSocket connections are long-lived, and should be treated differently // than normal other connections. Use a limit of 255, so the limit for wss will // be the same as the limit for ws. Also note that Firefox uses a limit of 200. // See http://crbug.com/486800 int g_max_sockets_per_group[] = { 6, // NORMAL_SOCKET_POOL 255 // WEBSOCKET_SOCKET_POOL }; static_assert(base::size(g_max_sockets_per_group) == HttpNetworkSession::NUM_SOCKET_POOL_TYPES, "max sockets per group length mismatch"); // The max number of sockets to allow per proxy server. This applies both to // http and SOCKS proxies. See http://crbug.com/12066 and // http://crbug.com/44501 for details about proxy server connection limits. int g_max_sockets_per_proxy_server[] = { kDefaultMaxSocketsPerProxyServer, // NORMAL_SOCKET_POOL kDefaultMaxSocketsPerProxyServer // WEBSOCKET_SOCKET_POOL }; static_assert(base::size(g_max_sockets_per_proxy_server) == HttpNetworkSession::NUM_SOCKET_POOL_TYPES, "max sockets per proxy server length mismatch"); // TODO(https://crbug.com/921369) In order to resolve longstanding issues // related to pooling distinguishable sockets together, get rid of SocketParams // entirely. scoped_refptr<ClientSocketPool::SocketParams> CreateSocketParams( const ClientSocketPool::GroupId& group_id, const ProxyServer& proxy_server, const SSLConfig& ssl_config_for_origin, const SSLConfig& ssl_config_for_proxy) { bool using_ssl = GURL::SchemeIsCryptographic(group_id.destination().scheme()); bool using_proxy_ssl = proxy_server.is_secure_http_like(); return base::MakeRefCounted<ClientSocketPool::SocketParams>( using_ssl ? std::make_unique<SSLConfig>(ssl_config_for_origin) : nullptr, using_proxy_ssl ? std::make_unique<SSLConfig>(ssl_config_for_proxy) : nullptr); } int InitSocketPoolHelper( url::SchemeHostPort endpoint, int request_load_flags, RequestPriority request_priority, HttpNetworkSession* session, const ProxyInfo& proxy_info, const SSLConfig& ssl_config_for_origin, const SSLConfig& ssl_config_for_proxy, bool is_for_websockets, PrivacyMode privacy_mode, NetworkIsolationKey network_isolation_key, SecureDnsPolicy secure_dns_policy, const SocketTag& socket_tag, const NetLogWithSource& net_log, int num_preconnect_streams, ClientSocketHandle* socket_handle, HttpNetworkSession::SocketPoolType socket_pool_type, CompletionOnceCallback callback, const ClientSocketPool::ProxyAuthCallback& proxy_auth_callback) { DCHECK(endpoint.IsValid()); bool using_ssl = GURL::SchemeIsCryptographic(endpoint.scheme()); if (!using_ssl && session->params().testing_fixed_http_port != 0) { endpoint = url::SchemeHostPort(endpoint.scheme(), endpoint.host(), session->params().testing_fixed_http_port); } else if (using_ssl && session->params().testing_fixed_https_port != 0) { endpoint = url::SchemeHostPort(endpoint.scheme(), endpoint.host(), session->params().testing_fixed_https_port); } ClientSocketPool::GroupId connection_group(std::move(endpoint), privacy_mode, std::move(network_isolation_key), secure_dns_policy); scoped_refptr<ClientSocketPool::SocketParams> socket_params = CreateSocketParams(connection_group, proxy_info.proxy_server(), ssl_config_for_origin, ssl_config_for_proxy); ClientSocketPool* pool = session->GetSocketPool(socket_pool_type, proxy_info.proxy_server()); ClientSocketPool::RespectLimits respect_limits = ClientSocketPool::RespectLimits::ENABLED; if ((request_load_flags & LOAD_IGNORE_LIMITS) != 0) respect_limits = ClientSocketPool::RespectLimits::DISABLED; absl::optional<NetworkTrafficAnnotationTag> proxy_annotation = proxy_info.is_direct() ? absl::nullopt : absl::optional<NetworkTrafficAnnotationTag>( proxy_info.traffic_annotation()); if (num_preconnect_streams) { pool->RequestSockets(connection_group, std::move(socket_params), proxy_annotation, num_preconnect_streams, net_log); return OK; } return socket_handle->Init(connection_group, std::move(socket_params), proxy_annotation, request_priority, socket_tag, respect_limits, std::move(callback), proxy_auth_callback, pool, net_log); } } // namespace ClientSocketPoolManager::ClientSocketPoolManager() = default; ClientSocketPoolManager::~ClientSocketPoolManager() = default; // static int ClientSocketPoolManager::max_sockets_per_pool( HttpNetworkSession::SocketPoolType pool_type) { DCHECK_LT(pool_type, HttpNetworkSession::NUM_SOCKET_POOL_TYPES); return g_max_sockets_per_pool[pool_type]; } // static void ClientSocketPoolManager::set_max_sockets_per_pool( HttpNetworkSession::SocketPoolType pool_type, int socket_count) { DCHECK_LT(0, socket_count); DCHECK_LT(pool_type, HttpNetworkSession::NUM_SOCKET_POOL_TYPES); g_max_sockets_per_pool[pool_type] = socket_count; DCHECK_GE(g_max_sockets_per_pool[pool_type], g_max_sockets_per_group[pool_type]); } // static int ClientSocketPoolManager::max_sockets_per_group( HttpNetworkSession::SocketPoolType pool_type) { DCHECK_LT(pool_type, HttpNetworkSession::NUM_SOCKET_POOL_TYPES); return g_max_sockets_per_group[pool_type]; } // static void ClientSocketPoolManager::set_max_sockets_per_group( HttpNetworkSession::SocketPoolType pool_type, int socket_count) { DCHECK_LT(0, socket_count); // The following is a sanity check... but we should NEVER be near this value. DCHECK_LT(pool_type, HttpNetworkSession::NUM_SOCKET_POOL_TYPES); g_max_sockets_per_group[pool_type] = socket_count; DCHECK_GE(g_max_sockets_per_pool[pool_type], g_max_sockets_per_group[pool_type]); DCHECK_GE(g_max_sockets_per_proxy_server[pool_type], g_max_sockets_per_group[pool_type]); } // static int ClientSocketPoolManager::max_sockets_per_proxy_server( HttpNetworkSession::SocketPoolType pool_type) { DCHECK_LT(pool_type, HttpNetworkSession::NUM_SOCKET_POOL_TYPES); return g_max_sockets_per_proxy_server[pool_type]; } // static void ClientSocketPoolManager::set_max_sockets_per_proxy_server( HttpNetworkSession::SocketPoolType pool_type, int socket_count) { DCHECK_LT(0, socket_count); DCHECK_LT(pool_type, HttpNetworkSession::NUM_SOCKET_POOL_TYPES); // Assert this case early on. The max number of sockets per group cannot // exceed the max number of sockets per proxy server. DCHECK_LE(g_max_sockets_per_group[pool_type], socket_count); g_max_sockets_per_proxy_server[pool_type] = socket_count; } // static base::TimeDelta ClientSocketPoolManager::unused_idle_socket_timeout( HttpNetworkSession::SocketPoolType pool_type) { return base::Seconds(base::GetFieldTrialParamByFeatureAsInt( net::features::kNetUnusedIdleSocketTimeout, "unused_idle_socket_timeout_seconds", 60)); } int InitSocketHandleForHttpRequest( url::SchemeHostPort endpoint, int request_load_flags, RequestPriority request_priority, HttpNetworkSession* session, const ProxyInfo& proxy_info, const SSLConfig& ssl_config_for_origin, const SSLConfig& ssl_config_for_proxy, PrivacyMode privacy_mode, NetworkIsolationKey network_isolation_key, SecureDnsPolicy secure_dns_policy, const SocketTag& socket_tag, const NetLogWithSource& net_log, ClientSocketHandle* socket_handle, CompletionOnceCallback callback, const ClientSocketPool::ProxyAuthCallback& proxy_auth_callback) { DCHECK(socket_handle); return InitSocketPoolHelper( std::move(endpoint), request_load_flags, request_priority, session, proxy_info, ssl_config_for_origin, ssl_config_for_proxy, false /* is_for_websockets */, privacy_mode, std::move(network_isolation_key), secure_dns_policy, socket_tag, net_log, 0, socket_handle, HttpNetworkSession::NORMAL_SOCKET_POOL, std::move(callback), proxy_auth_callback); } int InitSocketHandleForWebSocketRequest( url::SchemeHostPort endpoint, int request_load_flags, RequestPriority request_priority, HttpNetworkSession* session, const ProxyInfo& proxy_info, const SSLConfig& ssl_config_for_origin, const SSLConfig& ssl_config_for_proxy, PrivacyMode privacy_mode, NetworkIsolationKey network_isolation_key, const NetLogWithSource& net_log, ClientSocketHandle* socket_handle, CompletionOnceCallback callback, const ClientSocketPool::ProxyAuthCallback& proxy_auth_callback) { DCHECK(socket_handle); // QUIC proxies are currently not supported through this method. DCHECK(!proxy_info.is_quic()); // Expect websocket schemes (ws and wss) to be converted to the http(s) // equivalent. DCHECK(endpoint.scheme() == url::kHttpScheme || endpoint.scheme() == url::kHttpsScheme); return InitSocketPoolHelper( std::move(endpoint), request_load_flags, request_priority, session, proxy_info, ssl_config_for_origin, ssl_config_for_proxy, true /* is_for_websockets */, privacy_mode, std::move(network_isolation_key), SecureDnsPolicy::kAllow, SocketTag(), net_log, 0, socket_handle, HttpNetworkSession::WEBSOCKET_SOCKET_POOL, std::move(callback), proxy_auth_callback); } int InitSocketHandleForRawConnect2(const HostPortPair& endpoint, HttpNetworkSession* session, int request_load_flags, RequestPriority request_priority, const ProxyInfo& proxy_info, const SSLConfig& ssl_config_for_origin, const SSLConfig& ssl_config_for_proxy, PrivacyMode privacy_mode, NetworkIsolationKey network_isolation_key, const NetLogWithSource& net_log, ClientSocketHandle* socket_handle, CompletionOnceCallback callback) { DCHECK(socket_handle); return InitSocketPoolHelper( {"http", endpoint.HostForURL(), endpoint.port()}, request_load_flags, request_priority, session, proxy_info, ssl_config_for_origin, ssl_config_for_proxy, /*is_for_websockets=*/true, privacy_mode, std::move(network_isolation_key), SecureDnsPolicy::kDisable, SocketTag(), net_log, 0, socket_handle, HttpNetworkSession::NORMAL_SOCKET_POOL, std::move(callback), ClientSocketPool::ProxyAuthCallback()); } int PreconnectSocketsForHttpRequest(url::SchemeHostPort endpoint, int request_load_flags, RequestPriority request_priority, HttpNetworkSession* session, const ProxyInfo& proxy_info, const SSLConfig& ssl_config_for_origin, const SSLConfig& ssl_config_for_proxy, PrivacyMode privacy_mode, NetworkIsolationKey network_isolation_key, SecureDnsPolicy secure_dns_policy, const NetLogWithSource& net_log, int num_preconnect_streams) { // QUIC proxies are currently not supported through this method. DCHECK(!proxy_info.is_quic()); // Expect websocket schemes (ws and wss) to be converted to the http(s) // equivalent. DCHECK(endpoint.scheme() == url::kHttpScheme || endpoint.scheme() == url::kHttpsScheme); return InitSocketPoolHelper( std::move(endpoint), request_load_flags, request_priority, session, proxy_info, ssl_config_for_origin, ssl_config_for_proxy, false /* force_tunnel */, privacy_mode, std::move(network_isolation_key), secure_dns_policy, SocketTag(), net_log, num_preconnect_streams, nullptr, HttpNetworkSession::NORMAL_SOCKET_POOL, CompletionOnceCallback(), ClientSocketPool::ProxyAuthCallback()); } } // namespace net
[ "kizdiv@gmail.com" ]
kizdiv@gmail.com
b0bb4504207c8f85dc30b810d8355286de888aae
aa376f1548a2a536ab6a1b03407201e236d22195
/legacy/lib/check50++/Fwk/PtrInterface.h
919b9838d90ed4caae994dcbfe8ed7a238111b96
[]
no_license
kevgathuku/check50
5e3c023ac7d6120eac022974457cc59d44c1b27e
e7764004bb0776ae3a3c0d537ca4b97b6f75f1fb
refs/heads/master
2021-01-16T00:22:34.143430
2015-09-28T15:35:20
2015-09-28T15:35:20
null
0
0
null
null
null
null
UTF-8
C++
false
false
568
h
#ifndef LIB_CHECK50_FWK_PTRINTERFACE_H #define LIB_CHECK50_FWK_PTRINTERFACE_H namespace Fwk { template <class T> class PtrInterface { public: PtrInterface() : _ref(0) {} unsigned long references() const { return _ref; } inline const PtrInterface * new_ref() const { ++_ref; return this; } inline void delete_ref() const { if( --_ref == 0 ) on_zero_references(); } protected: virtual ~PtrInterface() {} virtual void on_zero_references() const { delete this; } private: mutable long unsigned _ref; }; } #endif /* LIB_CHECK50_FWK_PTRINTERFACE_H */
[ "nate@cs.harvard.edu" ]
nate@cs.harvard.edu
c10fe8faa8ada596f6cfa21d9fbecebd303973ad
cfeac52f970e8901871bd02d9acb7de66b9fb6b4
/generated/src/aws-cpp-sdk-lookoutequipment/source/model/ListLabelGroupsRequest.cpp
da260c22c0ec62c9c8762d3b5e938eae632e373a
[ "Apache-2.0", "MIT", "JSON" ]
permissive
aws/aws-sdk-cpp
aff116ddf9ca2b41e45c47dba1c2b7754935c585
9a7606a6c98e13c759032c2e920c7c64a6a35264
refs/heads/main
2023-08-25T11:16:55.982089
2023-08-24T18:14:53
2023-08-24T18:14:53
35,440,404
1,681
1,133
Apache-2.0
2023-09-12T15:59:33
2015-05-11T17:57:32
null
UTF-8
C++
false
false
1,275
cpp
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/lookoutequipment/model/ListLabelGroupsRequest.h> #include <aws/core/utils/json/JsonSerializer.h> #include <utility> using namespace Aws::LookoutEquipment::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; ListLabelGroupsRequest::ListLabelGroupsRequest() : m_labelGroupNameBeginsWithHasBeenSet(false), m_nextTokenHasBeenSet(false), m_maxResults(0), m_maxResultsHasBeenSet(false) { } Aws::String ListLabelGroupsRequest::SerializePayload() const { JsonValue payload; if(m_labelGroupNameBeginsWithHasBeenSet) { payload.WithString("LabelGroupNameBeginsWith", m_labelGroupNameBeginsWith); } if(m_nextTokenHasBeenSet) { payload.WithString("NextToken", m_nextToken); } if(m_maxResultsHasBeenSet) { payload.WithInteger("MaxResults", m_maxResults); } return payload.View().WriteReadable(); } Aws::Http::HeaderValueCollection ListLabelGroupsRequest::GetRequestSpecificHeaders() const { Aws::Http::HeaderValueCollection headers; headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSLookoutEquipmentFrontendService.ListLabelGroups")); return headers; }
[ "sdavtaker@users.noreply.github.com" ]
sdavtaker@users.noreply.github.com
7be54c77dee74eb925bf5054bd1c2200bea2329b
b3d1e6e05871233e994b44d5259f57437e2b1433
/Code/CommonHeader.h
f6ec5b50e00d5e229a5a0fffc8264922e5af2b56
[]
no_license
Tavlin/Theses
6621d86f883b7d8d436afabde104b598694adc7c
c5cd3451e6d3050e78e91afd683f3779fbefe172
refs/heads/master
2020-03-27T23:45:30.730575
2019-04-05T08:15:41
2019-04-05T08:15:41
147,343,777
0
0
null
null
null
null
UTF-8
C++
false
false
19,679
h
// printer.h file #ifndef CommonHeader_H #define CommonHeader_H #include "TLatex.h" #include "stddef.h" #include "TLegend.h" #include "TObject.h" #include "TCanvas.h" #include "TGraphErrors.h" #include "TF1.h" #include "TStyle.h" #include "TString.h" #include "TMath.h" #include "TGaxis.h" #include "TList.h" #include "TFile.h" #include "TH1F.h" #include "TH1D.h" #include "TH2F.h" #include "TH2D.h" #include "TTree.h" #include "TGraph.h" #include "TRandom.h" #include "TFitResult.h" #include "TROOT.h" #include "TArrayD.h" #include "TObjArray.h" #include "TVirtualFitter.h" #include <TSystem.h> #include <iostream> #include <fstream> #include <stdlib.h> #include <string> #include <vector> #include <algorithm> #include <time.h> /** * pT Binning comming from the framework. If its changed there, you need to * change it here! */ Double_t fBinsPi013TeVEMCPt[40] = {0.0, 1.4, 1.6, 1.8, 2.0, 2.2, 2.4, 2.6, 2.8, 3.0, 3.2, 3.4, 3.6, 3.8, 4.0, 4.2, 4.4, 4.6, 4.8, 5.0, 5.2, 5.4, 5.6, 5.8, 6.0, 6.2, 6.4, 6.6, 6.8, 7.0, 7.5, 8.0, 8.5, 9.0, 9.5, 10.0, 12.0, 14.0, 16.0, 20.0}; Int_t fBinsPi013TeVEMCPtRebin[39] = {4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 8, 8, 8, 8, 8, 10,10,10,10}; /** * parametrisation- and counting intervall boarders. */ Double_t lowerparamrange[38] = {0.0395, 0.0395, 0.0395, 0.0395, 0.0395, 0.0395, 0.0395, 0.0395, 0.0395, 0.0395, 0.0395, 0.0395, 0.0395, 0.0395, 0.0415, 0.0425, 0.0445, 0.0465, 0.0475, 0.0495, 0.0515, 0.0525, 0.0545, 0.0555, 0.0575, 0.0595, 0.0605, 0.0625, 0.0645, 0.0675, 0.0715, 0.0755, 0.0795, 0.0835, 0.0895, 0.1015, 0.1175, 0.1365}; // Double_t lowerparamrange[38] = {0.1, 0.1, 0.1, 0.1, 0.1, // 0.1, 0.1, 0.1, 0.1, 0.1, // 0.1, 0.1, 0.1, 0.1, 0.1, // 0.1, 0.1, 0.1, 0.1, 0.1, // 0.1, 0.1, 0.1, 0.1, 0.1, // 0.1, 0.1, 0.1, 0.1, 0.1, // 0.1, 0.1, 0.1, 0.1, 0.1, // 0.1, 0.1, 0.1}; // // {0.0195, 0.0205, 0.0225, 0.0235, 0.0255, // 0.0275, 0.0285, 0.0305, 0.0315, 0.0335, // 0.0355, 0.0365, 0.0385, 0.0395, 0.0415, // 0.0425, 0.0445, 0.0465, 0.0475, 0.0495, // 0.0515, 0.0525, 0.0545, 0.0555, 0.0575, // 0.0595, 0.0605, 0.0625, 0.0645, 0.0675, // 0.0715, 0.0755, 0.0795, 0.0835, 0.0895, // 0.1015, 0.1175, 0.1365}; const Double_t upperparamrange = 0.18; Double_t lowercountrange[38] = {0.0395, 0.0395, 0.0395, 0.0395, 0.0395, 0.0395, 0.0395, 0.0395, 0.0395, 0.0395, 0.0395, 0.0395, 0.0395, 0.0395, 0.0415, 0.0425, 0.0445, 0.0465, 0.0475, 0.0495, 0.0515, 0.0525, 0.0545, 0.0555, 0.0575, 0.0595, 0.0605, 0.0625, 0.0645, 0.0675, 0.0715, 0.0755, 0.0795, 0.0835, 0.0895, 0.1015, 0.1175, 0.1365}; // Double_t lowercountrange[38] = {0.1, 0.1, 0.1, 0.1, 0.1, // 0.1, 0.1, 0.1, 0.1, 0.1, // 0.1, 0.1, 0.1, 0.1, 0.1, // 0.1, 0.1, 0.1, 0.1, 0.1, // 0.1, 0.1, 0.1, 0.1, 0.1, // 0.1, 0.1, 0.1, 0.1, 0.1, // 0.1, 0.1, 0.1, 0.1, 0.1, // 0.1, 0.1, 0.1}; const Double_t uppercountrange = 0.18; const Int_t kMaxHit = 2000; const int numberbins = 39; // number of actual used pT Bins TH1D* hInvMass_Data = NULL; // data histogram TH1D* hInvMass_MC = NULL; TH1D* mc_photon = NULL; // gamma gamma MC histogram TH1D* mc_MixedConvPhoton = NULL; // gamma gamma_conv MC histogram TH1D* mc_ConvPhoton = NULL; // gamma_conv gamma_conv MC histogram TH1D* testhisto2 = NULL; TH1D* hPeak_MC = NULL; TH1D* hCorrBkg = NULL; TH1D* mc_full_clone1 = NULL; TH1D* mc_full_clone2 = NULL; TH1D* korrBG_clone1 = NULL; TH1D* MCBG = NULL; TH1D* DataBG = NULL; TLegend *legiter = NULL; TLatex* chi_and_param42 = NULL; TH1D* mc_full_clone42 = NULL; TH1D* korrBG_clone42 = NULL; /** * definition of the color coding. This is needed to give the * SetHistoStandardSettings Function the option to change the color of the * histogram, since EColor, the type of the kBlack and so furth won't work. */ const int black = 1; const int teal = 840; const int red = 632; const int pink = 900; const int magenta = 616; const int blue = 600; const int gray = 920; //////////////////////////////////////////////////////////////////////////////// // Backgrund fitting stuff TH1D* hBackStackup = NULL; // Histo of back. for adding on main back // histo // TH1D* hPeak1 = NULL; // peak histo, needed to subtract from // data to retrieve the background TH1D* hPeak2 = NULL; // peak histo, needed to subtract from // data to retrieve the background // TH1D* hBack = NULL; // main background histo /******************************************************************************/ /** * functions for the mini toy MC for the opening angle cut. */ Double_t fCalcP(Double_t p1x, Double_t p1y, Double_t p1z){ return sqrt(pow(p1x,2.)+pow(p1y,2.)+pow(p1z,2.)); } Double_t fCalcTheta(Double_t p1x, Double_t p1y, Double_t p1z, Double_t p2x, Double_t p2y, Double_t p2z){ return acos((p1x*p2x+ p1y*p2y + p1z*p2z)/(fCalcP(p1x, p1y, p1z)*fCalcP(p2x, p2y, p2z))); } Double_t fCalcInvMass(Double_t p1, Double_t p2, Double_t theta){ return sqrt(2.*p1*p2*(1-cos(theta))); } Double_t fCalcPT(Double_t p1x, Double_t p1y, Double_t p2x, Double_t p2y){ return sqrt(pow((p1x+p2x),2.)+pow((p1y+p2y),2.)); } void fSmear(Double_t &px, Double_t &py, Double_t &pz){ // one cell == 6 cm // distance to EMCal == 400 cm // -> 6/400 = 3sigma -> 1sigma = 1/200 gRandom->Gaus(px, px/200.); gRandom->Gaus(py, py/200.); gRandom->Gaus(pz, pz/200.); } /** * function to draw Chi^2 and sacling factors within a canvas/pad. */ void drawchi_and_param42(TLatex* tex,TFitResultPtr r ){ tex->DrawLatexNDC(0.15,0.85, Form("#frac{#chi^{2}}{ndf} = %.2lf ",r->Chi2() / r->Ndf())); tex->DrawLatexNDC(0.17,0.70, Form("a = %.2lf ",r->Parameter(0))); tex->DrawLatexNDC(0.17,0.65, Form("b = %.2lf ",r->Parameter(1))); tex->DrawLatexNDC(0.17,0.60, Form("#frac{b}{a} = %.2lf ",r->Parameter(1) / r->Parameter(0))); } /** * String collection: * This collection is there, so that you do not need to write all these nasty * long strings when you give some axis a title. */ TString strData = "data (signal + corr. back.)"; TString MCInfo = "#splitline{pp, #sqrt{#it{s}} = 13TeV}{MC Monasch 13}"; TString rawyield = "#frac{1}{2#pi N_{evt}} #frac{d#it{N}}{d#it{p}_{T}}"; TString strCorrectedYield = "#frac{1}{2#pi #it{N}_{evt} #it{p}_{T}} #frac{d^{2}#it{N}}{d#it{y}d#it{p}_{T}}"; TString DoubleTempStr = "signal + corr. back."; TString Pol1Str = "Peak temp. + 1^{st} ord. pol param."; TString count_str = TString("d#it{N}/d#it{m}_{inv} ((GeV/#it{c}^{2})^{-1})"); TString StatUn_Str = TString("relative stat. Unsicherheit (%)"); TString sigma_minv_str = TString("#it{#sigma} (GeV/#it{c}^{2})^{-1}"); TString minv_str = TString("#it{m}_{inv} (GeV/#it{c}^{2})"); TString pt_str = TString("#it{p}_{T} (GeV/#it{c})"); TString dNdmin_str = TString("#frac{d#it{N}_{#gamma #gamma}}{d#it{m}_{inv}} (GeV/#it{c}^{2})^{-1}"); TString poweek_str = TString("Powerweek Daten"); TString pi0togamma_str = TString("#pi^{0} #rightarrow #gamma #gamma"); TLatex* texMCInfo = new TLatex(); /** * functions written by Patrick Huhn * used to get the Binning Array or the number of bins of an given TH1D. */ Double_t* GetBinningFromHistogram(TH1D* hist){ if(!hist) return 0; TArrayD* dArray = (TArrayD*)hist->GetXaxis()->GetXbins(); return dArray->GetArray(); } Int_t GetNBinningFromHistogram(TH1D* hist){ if(!hist) return 0; TArrayD* dArray = (TArrayD*)hist->GetXaxis()->GetXbins(); return dArray->GetSize(); } /** * Toy MC Stuff. System Rotation from CMS to Lab. */ void RotateToLabSystem(const double& theta, const double& phi, const double& p1, const double& p2, const double& p3, double& p1rot, double& p2rot, double& p3rot) { Double_t st = sin(theta); Double_t ct = cos(theta); Double_t sp = sin(phi); Double_t cp = cos(phi); p1rot = cp*ct*p1 - p2*sp + cp*p3*st; p2rot = cp*p2 + ct*p1*sp + p3*sp*st; p3rot = ct*p3 - p1*st; } // open rootfile safetly from Patrick Reichelt /** * function to open root files safely which means, without changing the * gDirectory, which influences pointers. So if you create a pointer to a TH1D * after opening a root file normally, and then close the file, the pointer * would be broken. This is not good. We do not want this. * @filename name of the file whoch you want to open * @return return TFile Pointer to the file with corresponding filename */ TFile* SafelyOpenRootfile(const std::string filename) { /// Opens a rootfile without affecting the active path, which otherwise would point into the file, often causing trouble. //save current path before opening rootfile. TString sPath = gDirectory->GetPath(); TFile* ffile = 0x0; // check if file is already open. if ( gROOT->GetListOfFiles()->FindObject(filename.data()) ) { ffile = gROOT->GetFile(filename.data()); // avoid to open same file twice } if (ffile && ffile->IsOpen()) return ffile; ffile = TFile::Open(filename.data()); // gives root error and returns 0x0 on fail. // if (!ffile) printf(Form("SafelyOpenRootfile(): file '%s' not found.", filename.data())); // change to previous path again, so that it will be possible to close the file later without crash. // otherwise heap based objects will be created in memory that will be freed when the file is closed. gDirectory->Cd(sPath.Data()); // alternatively one can do hist->SetDirectory(0); // according to Dario (Analysis Tutorial 26.06.2015) // but this seems not to work if the class object (which owns the hist) was created in the file path. return ffile; } /** * DataTree Class used for the Toy MC aswell. */ class DataTree{ private: Float_t pxdata[kMaxHit]; Float_t pydata[kMaxHit]; Float_t pzdata[kMaxHit]; Int_t iNCluster; Int_t NEvents; TTree* tClusters; public: DataTree(TFile* fDaten){ tClusters = (TTree*) fDaten->Get("ntu"); NEvents = tClusters->GetEntries(); tClusters->SetBranchAddress("nhit", &iNCluster); tClusters->SetBranchAddress("px", pxdata); tClusters->SetBranchAddress("py", pydata); tClusters->SetBranchAddress("pz", pzdata); } void GetEvent(Int_t iEvt){ tClusters->GetEntry(iEvt); } Float_t GetPX(Int_t iEvt, Int_t iHit){ GetEvent(iEvt); return pxdata[iHit]; } Float_t GetPY(Int_t iEvt, Int_t iHit){ GetEvent(iEvt); return pydata[iHit]; } Float_t GetPZ(Int_t iEvt, Int_t iHit){ GetEvent(iEvt); return pzdata[iHit]; } Float_t GetClusterID(Int_t iEvt){ GetEvent(iEvt); return iNCluster; } Int_t GetNEvents(){ return NEvents; } }; /** * Functions to set Standard settings on the histograms * They probably all need some work done on them. */ /** * Sets the Standard Canvas Settings up. * @param cCanv pointer to the TCanvas you want set up. */ void SetCanvasStandardSettings(TCanvas *cCanv){ gStyle->SetOptStat(kFALSE); // <- das hier macht dies box rechts oben weg cCanv->SetTopMargin(0.025); cCanv->SetBottomMargin(0.15); cCanv->SetRightMargin(0.05); cCanv->SetLeftMargin(0.15); cCanv->SetTickx(); cCanv->SetTicky(); cCanv->SetLogy(0); cCanv->SetLogx(0); } /** * Sets the Standard TH1 Settings up. * @param histo pointer to TH1 * @param XOffset X-Title Offset * @param YOffset Y-Title Offset * @param textSize Text size */ void SetHistoStandardSettings(TH1* histo, Double_t XOffset = 1.2, Double_t YOffset = 1., Double_t textSize = 35, int color = 1){ histo->SetStats(0); histo->GetXaxis()->SetTitleOffset(XOffset); histo->GetYaxis()->SetTitleOffset(YOffset); histo->GetXaxis()->SetTitleSize(textSize); histo->GetYaxis()->SetTitleSize(textSize); histo->GetXaxis()->SetLabelSize(textSize); histo->GetYaxis()->SetLabelSize(textSize); histo->GetXaxis()->SetLabelFont(43); histo->GetYaxis()->SetLabelFont(43); histo->GetYaxis()->SetTitleFont(43); histo->GetXaxis()->SetTitleFont(43); histo->SetTitle(""); histo->Sumw2(); histo->SetMarkerStyle(20); histo->SetMarkerSize(1.5); histo->SetLineWidth(3); histo->SetLineColor(color); histo->SetMarkerColor(color); } void SetHistoStandardSettings2(TH2* histo, Double_t XOffset = 1.2, Double_t YOffset = 1., Double_t textSize = 35){ histo->SetStats(0); histo->GetXaxis()->SetTitleOffset(XOffset); histo->GetYaxis()->SetTitleOffset(YOffset); histo->GetXaxis()->SetTitleSize(textSize); histo->GetYaxis()->SetTitleSize(textSize); histo->GetXaxis()->SetLabelSize(textSize); histo->GetYaxis()->SetLabelSize(textSize); histo->GetXaxis()->SetLabelFont(43); histo->GetYaxis()->SetLabelFont(43); histo->GetYaxis()->SetTitleFont(43); histo->GetXaxis()->SetTitleFont(43); histo->GetZaxis()->SetTitleOffset(YOffset); histo->GetZaxis()->SetLabelSize(textSize); histo->GetZaxis()->SetLabelFont(43); histo->GetZaxis()->SetTitleFont(43); histo->Sumw2(); } void SetLegendSettigns(TLegend* leg, Double_t textSize = 35){ leg->SetTextFont(43); leg->SetTextSize(textSize); leg->SetFillColor(0); leg->SetFillStyle(0); leg->SetLineWidth(0); leg->SetLineColor(0); leg->SetMargin(0.15); leg->SetBorderSize(0); } void SetLatexSettings(TLatex* tex, Double_t textSize = 35){ tex->SetTextSize(textSize); tex->SetTextFont(43); } // gStyle->SetCanvasColor(0); // gStyle->SetPadColor(0); // gStyle->SetCanvasBorderMode(0); // gStyle->SetPadBorderMode(0); // // gStyle->SetTitleXOffset(1.4); // gStyle->SetTitleYOffset(1.8); // // gStyle->SetPadLeftMargin(0.17); // gStyle->SetPadRightMargin(0.1); // 0.1 = root default // gStyle->SetPadTopMargin(0.1); // gStyle->SetPadBottomMargin(0.14); /** * function from the Toy MC which prints out the progress in a fancy little way * into your command prompt * made by Adrian */ void printProgress (Double_t progress) { int barWidth = 50; std::cout.flush(); std::cout << "["<< int(progress * 100.0) << "%]" << "["; int pos = barWidth * progress; for (int i = 0; i < barWidth; ++i) { if (i < pos) std::cout << "|"; else std::cout << " "; } std::cout << "]\r"; } /** * Function to draw the ALICE label onto your canvas/pad * @param startTextX X-Startpostion * @param startTextY Y-Startpostion * @param textHeight influences the gap between the lines * @param textSize Size of the Text Font * @param str TString containing the pT range */ void DrawLabelALICE(Double_t startTextX = 0.13, Double_t startTextY = 0.9, Double_t textHeight = 0.04, Double_t textSize = 35, TString str = " "){ TString textAlice = "ALICE work in progress"; TString textEvents = "Data"; TLatex *alice = NULL; TLatex *pt = NULL; TLatex *energy = NULL; TLatex *detprocess = NULL; TLatex *detprocess2 = NULL; TLatex *Template = NULL; TLatex *Template2 = NULL; Double_t differenceText = textHeight*1.7; if(str == "" || str == " "){ alice = new TLatex(startTextX, startTextY, Form("%s",textAlice.Data())); pt = new TLatex(startTextX, (startTextY-1.5*differenceText), str); energy = new TLatex(startTextX, (startTextY-1.5*differenceText), "pp, #sqrt{#it{s}} = 13 TeV"); detprocess = new TLatex(startTextX, (startTextY-2.5*differenceText), "#pi^{0}#rightarrow#gamma#gamma"); detprocess2 = new TLatex(startTextX, (startTextY-3.5*differenceText), "#gamma's rec. with EMCal "); Template = new TLatex(startTextX, (startTextY-4.5*differenceText), "Templates:"); Template2 = new TLatex(startTextX, (startTextY-5.5*differenceText), "Pythia 8 Monash 2013"); } else{ alice = new TLatex(startTextX, startTextY, Form("%s",textAlice.Data())); pt = new TLatex(startTextX, (startTextY-1.5*differenceText), str); energy = new TLatex(startTextX, (startTextY-2.5*differenceText), "pp, #sqrt{#it{s}} = 13 TeV"); detprocess = new TLatex(startTextX, (startTextY-3.5*differenceText), "#pi^{0}#rightarrow#gamma#gamma"); detprocess2 = new TLatex(startTextX, (startTextY-4.5*differenceText), "#gamma's rec. with EMCal "); Template = new TLatex(startTextX, (startTextY-5.5*differenceText), "Templates:"); Template2 = new TLatex(startTextX, (startTextY-6.5*differenceText), "Pythia 8 Monash 2013"); } alice->SetNDC(); alice->SetTextColor(1); alice->SetTextFont(43); alice->SetTextSize(textSize); alice->DrawClone(); energy->SetNDC(); energy->SetTextColor(1); energy->SetTextSize(textSize); energy->SetTextFont(43); energy->DrawClone(); Template->SetNDC(); Template->SetTextColor(1); Template->SetTextSize(textSize); Template->SetTextFont(43); Template->DrawClone(); Template2->SetNDC(); Template2->SetTextColor(1); Template2->SetTextSize(textSize); Template2->SetTextFont(43); Template2->DrawClone(); detprocess->SetNDC(); detprocess->SetTextColor(1); detprocess->SetTextSize(textSize); detprocess->SetTextFont(43); detprocess->DrawClone(); detprocess2->SetNDC(); detprocess2->SetTextColor(1); detprocess2->SetTextSize(textSize); detprocess2->SetTextFont(43); detprocess2->DrawClone(); pt->SetNDC(); pt->SetTextColor(1); pt->SetTextSize(textSize); pt->SetTextFont(43); if(!(str == "" || str == " ")){ pt->DrawClone(); } delete alice; delete energy; delete Template; delete detprocess; delete pt; } #endif
[ "mhemmer@stud.uni-frankfurt.de" ]
mhemmer@stud.uni-frankfurt.de
51d75f0eda5e02a8341665ffed45124ed661996b
dd00fc81510368a4a94139fda002c433a1d3c556
/src/preferences.cpp
fa716483508383c961656a88ea268c4246ef9a47
[ "MIT" ]
permissive
0312birdzhang/TrulyYours
4c5a8730e3a985c197996a68ccc3f867a67ea681
5a553b57072369796ad57a4cb90558aa53d77c1c
refs/heads/master
2021-01-18T01:39:25.839943
2015-05-12T04:45:59
2015-05-12T04:45:59
35,467,058
0
0
null
2015-05-12T04:36:52
2015-05-12T04:36:51
null
UTF-8
C++
false
false
1,378
cpp
/* * The MIT License (MIT) * * Copyright (c) 2014 matrixx * * 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 "authkey.h" #include "preferences.h" #include <QDebug> Preferences::Preferences(QObject *parent) : QObject(parent) { } QString Preferences::getAuthKey() const { return authkey; }
[ "setelani@live.com" ]
setelani@live.com
1e75b74490786adb17d32c584bb6d08fb6d9a031
c5143d24f8aee52c0066b7be95c2bf06fe946261
/include/formula-tree/formula-type.hpp
2a5bd3186762a60567159596167ee27bf493782a
[ "BSD-3-Clause", "LicenseRef-scancode-warranty-disclaimer", "MIT", "BSL-1.0", "BSD-2-Clause" ]
permissive
AnandSaminathan/formula-tree
1985bc50594237277c92df463fa7ea926bf714c3
f0e96f40a65dd7ba9f40923b398625d6385c4150
refs/heads/master
2022-12-04T18:51:01.703144
2020-08-29T16:32:36
2020-08-29T16:32:36
245,760,934
0
0
null
null
null
null
UTF-8
C++
false
false
83
hpp
#pragma once namespace ftree { enum formulaType { pl, ltl, pb, rel, arith }; }
[ "anand.saminathan1.1@gmail.com" ]
anand.saminathan1.1@gmail.com
ed8b608ee5043aa4f062e0c2946a24f1d0ddab54
2d34422361367d6fb28167c713f689ee7084d5c0
/libraries/rigidBodyDynamics/rigidBody_generalTensor.cpp
dc4b125728e60b658981b175aeb1d67af5920d12
[]
no_license
kengwit/VegaFEM-v3.0
5c307de1f2a2f57c2cc7d111c1da989fe07202f4
6eb4822f8d301d502d449d28bcfb5b9dbb916f08
refs/heads/master
2021-12-10T15:03:14.828219
2016-08-24T12:04:03
2016-08-24T12:04:03
null
0
0
null
null
null
null
UTF-8
C++
false
false
9,949
cpp
/************************************************************************* * * * Vega FEM Simulation Library Version 3.0 * * * * "rigidBodyDynamics" library , Copyright (C) 2007 CMU * * All rights reserved. * * * * Code author: Jernej Barbic * * http://www.jernejbarbic.com/code * * * * Research: Jernej Barbic, Fun Shing Sin, Daniel Schroeder, * * Doug L. James, Jovan Popovic * * * * Funding: National Science Foundation, Link Foundation, * * Singapore-MIT GAMBIT Game Lab, * * Zumberge Research and Innovation Fund at USC * * * * This library is free software; you can redistribute it and/or * * modify it under the terms of the BSD-style license that is * * included with this library in the file LICENSE.txt * * * * 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 file * * LICENSE.TXT for more details. * * * *************************************************************************/ #include "rigidBody_generalTensor.h" #include "matrixMultiplyMacros.h" RigidBody_GeneralTensor::RigidBody_GeneralTensor(double mass, double inertiaTensorAtRest[9]): RigidBody(mass,inertiaTensorAtRest[0],inertiaTensorAtRest[4],inertiaTensorAtRest[8]) { SetInertiaTensor(inertiaTensorAtRest); } void RigidBody_GeneralTensor::SetInertiaTensor(double inertiaTensorAtRest[9], int updateAngularVelocity) { memcpy(this->inertiaTensorAtRest, inertiaTensorAtRest, sizeof(double) * 9); // compute inverse inertia tensor at rest Invert3x3Matrix(this->inertiaTensorAtRest, inverseInertiaTensorAtRest); inverseInertiaTensorAtRestX = inverseInertiaTensorAtRest[0]; inverseInertiaTensorAtRestY = inverseInertiaTensorAtRest[4]; inverseInertiaTensorAtRestZ = inverseInertiaTensorAtRest[8]; // change the angular velocity accordingly if (updateAngularVelocity) ComputeAngularVelocity(); } // computes the inertia tensor, using the current rotation matrix // inertia tensor at rest is assumed general (i.e. not necessary diagonal) // 120 flops void RigidBody_GeneralTensor::ComputeInertiaTensor(double inertiaTensor[9]) { //inertiaTensor = R * inertiaTensorAtRest * R^T inertiaTensor[0] = R[0] * (inertiaTensorAtRest[0] * R[0] + inertiaTensorAtRest[1] * R[1] + inertiaTensorAtRest[2] * R[2]) + R[1] * (inertiaTensorAtRest[1] * R[0] + inertiaTensorAtRest[4] * R[1] + inertiaTensorAtRest[5] * R[2]) + R[2] * (inertiaTensorAtRest[2] * R[0] + inertiaTensorAtRest[5] * R[1] + inertiaTensorAtRest[8] * R[2]); inertiaTensor[1] = R[0] * (inertiaTensorAtRest[0] * R[3] + inertiaTensorAtRest[1] * R[4] + inertiaTensorAtRest[2] * R[5]) + R[1] * (inertiaTensorAtRest[1] * R[3] + inertiaTensorAtRest[4] * R[4] + inertiaTensorAtRest[5] * R[5]) + R[2] * (inertiaTensorAtRest[2] * R[3] + inertiaTensorAtRest[5] * R[4] + inertiaTensorAtRest[8] * R[5]); inertiaTensor[2] = R[0] * (inertiaTensorAtRest[0] * R[6] + inertiaTensorAtRest[1] * R[7] + inertiaTensorAtRest[2] * R[8]) + R[1] * (inertiaTensorAtRest[1] * R[6] + inertiaTensorAtRest[4] * R[7] + inertiaTensorAtRest[5] * R[8]) + R[2] * (inertiaTensorAtRest[2] * R[6] + inertiaTensorAtRest[5] * R[7] + inertiaTensorAtRest[8] * R[8]); inertiaTensor[4] = R[3] * (inertiaTensorAtRest[0] * R[3] + inertiaTensorAtRest[1] * R[4] + inertiaTensorAtRest[2] * R[5]) + R[4] * (inertiaTensorAtRest[1] * R[3] + inertiaTensorAtRest[4] * R[4] + inertiaTensorAtRest[5] * R[5]) + R[5] * (inertiaTensorAtRest[2] * R[3] + inertiaTensorAtRest[5] * R[4] + inertiaTensorAtRest[8] * R[5]); inertiaTensor[5] = R[3] * (inertiaTensorAtRest[0] * R[6] + inertiaTensorAtRest[1] * R[7] + inertiaTensorAtRest[2] * R[8]) + R[4] * (inertiaTensorAtRest[1] * R[6] + inertiaTensorAtRest[4] * R[7] + inertiaTensorAtRest[5] * R[8]) + R[5] * (inertiaTensorAtRest[2] * R[6] + inertiaTensorAtRest[5] * R[7] + inertiaTensorAtRest[8] * R[8]); inertiaTensor[8] = R[6] * (inertiaTensorAtRest[0] * R[6] + inertiaTensorAtRest[1] * R[7] + inertiaTensorAtRest[2] * R[8]) + R[7] * (inertiaTensorAtRest[1] * R[6] + inertiaTensorAtRest[4] * R[7] + inertiaTensorAtRest[5] * R[8]) + R[8] * (inertiaTensorAtRest[2] * R[6] + inertiaTensorAtRest[5] * R[7] + inertiaTensorAtRest[8] * R[8]); // inertia tensor is symmetric inertiaTensor[3] = inertiaTensor[1]; inertiaTensor[6] = inertiaTensor[2]; inertiaTensor[7] = inertiaTensor[5]; } // computes the angular velocity from the angular momentum // using the current rotation matrix // inertia tensor at rest is dense // 45 flops // w = R * I^{body}^{-1} * R^T * L void RigidBody_GeneralTensor::ComputeAngularVelocity() { double temp0, temp1, temp2; // temp = R^T * L temp0 = R[0] * angularMomentumX + R[3] * angularMomentumY + R[6] * angularMomentumZ; temp1 = R[1] * angularMomentumX + R[4] * angularMomentumY + R[7] * angularMomentumZ; temp2 = R[2] * angularMomentumX + R[5] * angularMomentumY + R[8] * angularMomentumZ; // temp' = I^{body}^{-1} * temp double temp3, temp4, temp5; temp3 = inverseInertiaTensorAtRest[0] * temp0 + inverseInertiaTensorAtRest[1] * temp1 + inverseInertiaTensorAtRest[2] * temp2; temp4 = inverseInertiaTensorAtRest[3] * temp0 + inverseInertiaTensorAtRest[4] * temp1 + inverseInertiaTensorAtRest[5] * temp2; temp5 = inverseInertiaTensorAtRest[6] * temp0 + inverseInertiaTensorAtRest[7] * temp1 + inverseInertiaTensorAtRest[8] * temp2; // angularVelocity = R * temp angularVelocityX = R[0] * temp3 + R[1] * temp4 + R[2] * temp5; angularVelocityY = R[3] * temp3 + R[4] * temp4 + R[5] * temp5; angularVelocityZ = R[6] * temp3 + R[7] * temp4 + R[8] * temp5; } void RigidBody_GeneralTensor::GetInverseInertiaTensor(double * inverseInertiaTensor) { //inverseInertiaTensor = R * inverseInertiaTensorAtRest * R^T //double helperMatrix[9]; //MATRIX_MULTIPLY3X3ABT(inverseInertiaTensorAtRest, R, helperMatrix); //MATRIX_MULTIPLY3X3(R, helperMatrix, inverseInertiaTensor); inverseInertiaTensor[0] = R[0] * (inverseInertiaTensorAtRest[0] * R[0] + inverseInertiaTensorAtRest[1] * R[1] + inverseInertiaTensorAtRest[2] * R[2]) + R[1] * (inverseInertiaTensorAtRest[1] * R[0] + inverseInertiaTensorAtRest[4] * R[1] + inverseInertiaTensorAtRest[5] * R[2]) + R[2] * (inverseInertiaTensorAtRest[2] * R[0] + inverseInertiaTensorAtRest[5] * R[1] + inverseInertiaTensorAtRest[8] * R[2]); inverseInertiaTensor[1] = R[0] * (inverseInertiaTensorAtRest[0] * R[3] + inverseInertiaTensorAtRest[1] * R[4] + inverseInertiaTensorAtRest[2] * R[5]) + R[1] * (inverseInertiaTensorAtRest[1] * R[3] + inverseInertiaTensorAtRest[4] * R[4] + inverseInertiaTensorAtRest[5] * R[5]) + R[2] * (inverseInertiaTensorAtRest[2] * R[3] + inverseInertiaTensorAtRest[5] * R[4] + inverseInertiaTensorAtRest[8] * R[5]); inverseInertiaTensor[2] = R[0] * (inverseInertiaTensorAtRest[0] * R[6] + inverseInertiaTensorAtRest[1] * R[7] + inverseInertiaTensorAtRest[2] * R[8]) + R[1] * (inverseInertiaTensorAtRest[1] * R[6] + inverseInertiaTensorAtRest[4] * R[7] + inverseInertiaTensorAtRest[5] * R[8]) + R[2] * (inverseInertiaTensorAtRest[2] * R[6] + inverseInertiaTensorAtRest[5] * R[7] + inverseInertiaTensorAtRest[8] * R[8]); inverseInertiaTensor[4] = R[3] * (inverseInertiaTensorAtRest[0] * R[3] + inverseInertiaTensorAtRest[1] * R[4] + inverseInertiaTensorAtRest[2] * R[5]) + R[4] * (inverseInertiaTensorAtRest[1] * R[3] + inverseInertiaTensorAtRest[4] * R[4] + inverseInertiaTensorAtRest[5] * R[5]) + R[5] * (inverseInertiaTensorAtRest[2] * R[3] + inverseInertiaTensorAtRest[5] * R[4] + inverseInertiaTensorAtRest[8] * R[5]); inverseInertiaTensor[5] = R[3] * (inverseInertiaTensorAtRest[0] * R[6] + inverseInertiaTensorAtRest[1] * R[7] + inverseInertiaTensorAtRest[2] * R[8]) + R[4] * (inverseInertiaTensorAtRest[1] * R[6] + inverseInertiaTensorAtRest[4] * R[7] + inverseInertiaTensorAtRest[5] * R[8]) + R[5] * (inverseInertiaTensorAtRest[2] * R[6] + inverseInertiaTensorAtRest[5] * R[7] + inverseInertiaTensorAtRest[8] * R[8]); inverseInertiaTensor[8] = R[6] * (inverseInertiaTensorAtRest[0] * R[6] + inverseInertiaTensorAtRest[1] * R[7] + inverseInertiaTensorAtRest[2] * R[8]) + R[7] * (inverseInertiaTensorAtRest[1] * R[6] + inverseInertiaTensorAtRest[4] * R[7] + inverseInertiaTensorAtRest[5] * R[8]) + R[8] * (inverseInertiaTensorAtRest[2] * R[6] + inverseInertiaTensorAtRest[5] * R[7] + inverseInertiaTensorAtRest[8] * R[8]); // inverse inertia tensor is symmetric inverseInertiaTensor[3] = inverseInertiaTensor[1]; inverseInertiaTensor[6] = inverseInertiaTensor[2]; inverseInertiaTensor[7] = inverseInertiaTensor[5]; } void RigidBody_GeneralTensor::GetInverseInertiaTensorAtRest(double * inverseInertiaTensorAtRest_) { MATRIX_SET3X3(inverseInertiaTensorAtRest_, inverseInertiaTensorAtRest); }
[ "jslee02@gmail.com" ]
jslee02@gmail.com
55add28e4ce5f4fec7a0201fbf346e3e96f15e1e
48298469e7d828ab1aa54a419701c23afeeadce1
/Client/SceneEdit/Xerces/src/xercesc/validators/DTD/DocTypeHandler.hpp
e9b9921cb39b378ff26da23bf4fbd24094259e86
[ "Apache-2.0" ]
permissive
brock7/TianLong
c39fccb3fd2aa0ad42c9c4183d67a843ab2ce9c2
8142f9ccb118e76a5cd0a8b168bcf25e58e0be8b
refs/heads/master
2021-01-10T14:19:19.850859
2016-02-20T13:58:55
2016-02-20T13:58:55
52,155,393
5
3
null
null
null
null
UTF-8
C++
false
false
3,870
hpp
/* * Copyright 1999-2000,2004 The Apache Software Foundation. * * 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. */ /* * $Id: DocTypeHandler.hpp 191054 2005-06-17 02:56:35Z jberry $ */ #if !defined(DOCTYPEHANDLER_HPP) #define DOCTYPEHANDLER_HPP #include <../../../SceneEdit/Xerces/src/xercesc/util/XercesDefs.hpp> #include <xercesc/framework/XMLNotationDecl.hpp> #include <xercesc/validators/DTD/DTDAttDef.hpp> #include <xercesc/validators/DTD/DTDElementDecl.hpp> #include <xercesc/validators/DTD/DTDEntityDecl.hpp> XERCES_CPP_NAMESPACE_BEGIN // // This abstract class defines the document type handler API's which can be // used to process the DTD events generated by the DTDScanner as it scans the // internal and external subset. class VALIDATORS_EXPORT DocTypeHandler { public: // ----------------------------------------------------------------------- // Constructors and Destructor // ----------------------------------------------------------------------- DocTypeHandler() { } virtual ~DocTypeHandler() { } // ----------------------------------------------------------------------- // The document type handler virtual handler interface // ----------------------------------------------------------------------- virtual void attDef ( const DTDElementDecl& elemDecl , const DTDAttDef& attDef , const bool ignoring ) = 0; virtual void doctypeComment ( const XMLCh* const comment ) = 0; virtual void doctypeDecl ( const DTDElementDecl& elemDecl , const XMLCh* const publicId , const XMLCh* const systemId , const bool hasIntSubset , const bool hasExtSubset = false ) = 0; virtual void doctypePI ( const XMLCh* const target , const XMLCh* const data ) = 0; virtual void doctypeWhitespace ( const XMLCh* const chars , const unsigned int length ) = 0; virtual void elementDecl ( const DTDElementDecl& decl , const bool isIgnored ) = 0; virtual void endAttList ( const DTDElementDecl& elemDecl ) = 0; virtual void endIntSubset() = 0; virtual void endExtSubset() = 0; virtual void entityDecl ( const DTDEntityDecl& entityDecl , const bool isPEDecl , const bool isIgnored ) = 0; virtual void resetDocType() = 0; virtual void notationDecl ( const XMLNotationDecl& notDecl , const bool isIgnored ) = 0; virtual void startAttList ( const DTDElementDecl& elemDecl ) = 0; virtual void startIntSubset() = 0; virtual void startExtSubset() = 0; virtual void TextDecl ( const XMLCh* const versionStr , const XMLCh* const encodingStr ) = 0; private: // ----------------------------------------------------------------------- // Unimplemented constructors and operators // ----------------------------------------------------------------------- DocTypeHandler(const DocTypeHandler&); DocTypeHandler& operator=(const DocTypeHandler&); }; XERCES_CPP_NAMESPACE_END #endif
[ "xiaowave@gmail.com" ]
xiaowave@gmail.com
e915df111b36e8999704f095094075e012b7b74c
48298469e7d828ab1aa54a419701c23afeeadce1
/Client/SceneEdit/Xerces/src/xercesc/validators/datatype/DayDatatypeValidator.hpp
6f109f1cb069e049e641928faa37a30f8d03e23c
[ "Apache-2.0" ]
permissive
brock7/TianLong
c39fccb3fd2aa0ad42c9c4183d67a843ab2ce9c2
8142f9ccb118e76a5cd0a8b168bcf25e58e0be8b
refs/heads/master
2021-01-10T14:19:19.850859
2016-02-20T13:58:55
2016-02-20T13:58:55
52,155,393
5
3
null
null
null
null
UTF-8
C++
false
false
2,938
hpp
/* * Copyright 2001,2004 The Apache Software Foundation. * * 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. */ /* * $Id: DayDatatypeValidator.hpp 191054 2005-06-17 02:56:35Z jberry $ */ #if !defined(DAY_DATATYPE_VALIDATOR_HPP) #define DAY_DATATYPE_VALIDATOR_HPP #include <xercesc/validators/datatype/DateTimeValidator.hpp> XERCES_CPP_NAMESPACE_BEGIN class VALIDATORS_EXPORT DayDatatypeValidator : public DateTimeValidator { public: // ----------------------------------------------------------------------- // Public ctor/dtor // ----------------------------------------------------------------------- /** @name Constructors and Destructor*/ //@{ DayDatatypeValidator ( MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager ); DayDatatypeValidator ( DatatypeValidator* const baseValidator , RefHashTableOf<KVStringPair>* const facets , RefArrayVectorOf<XMLCh>* const enums , const int finalSet , MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager ); ~DayDatatypeValidator(); //@} /** * Returns an instance of the base datatype validator class * Used by the DatatypeValidatorFactory. */ virtual DatatypeValidator* newInstance ( RefHashTableOf<KVStringPair>* const facets , RefArrayVectorOf<XMLCh>* const enums , const int finalSet , MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager ); /*** * Support for Serialization/De-serialization ***/ DECL_XSERIALIZABLE(DayDatatypeValidator) protected: // ----------------------------------------------------------------------- // implementation of (DateTimeValidator's) virtual interface // ----------------------------------------------------------------------- virtual XMLDateTime* parse(const XMLCh* const, MemoryManager* const manager); virtual void parse(XMLDateTime* const); private: // ----------------------------------------------------------------------- // Unimplemented constructors and operators // ----------------------------------------------------------------------- DayDatatypeValidator(const DayDatatypeValidator&); DayDatatypeValidator& operator=(const DayDatatypeValidator&); }; XERCES_CPP_NAMESPACE_END #endif /** * End of file DayDatatypeValidator.hpp */
[ "xiaowave@gmail.com" ]
xiaowave@gmail.com
f60943ceff422a43561eb18a2f653034b61337d9
105efdc72b1efd797736935fa271d671b921ed7f
/Assignment3/submission/src/helper.cpp
fbb3f3e8e07fce9b2d3ae50b065910b728919e9d
[]
no_license
cyrusdiego/CMPUT379_Assignments
0780e797c39e8f353cd17e38eedaca5480ca46a0
5e0f006d558cb10da9356ec9da41ba6f2ee38e32
refs/heads/master
2023-01-18T17:35:19.886974
2020-11-29T21:21:54
2020-11-29T21:21:54
296,697,831
0
0
null
null
null
null
UTF-8
C++
false
false
668
cpp
#include "../include/helpers.hpp" /** * Checks if port is valid */ bool is_valid_port(std::string port) { int p = stoi(port); return p >= 5000 && p <= 64000; } /** * Checks if ip is address * https://man7.org/linux/man-pages/man3/inet_pton.3.html */ bool is_valid_ip(std::string ip) { unsigned char buf[sizeof(struct in6_addr)]; int s = inet_pton(AF_INET, ip.c_str(), buf); return s == 1; } /** * Parse T<n> to a job type and time */ std::pair<char, int> parse_job(std::string job) { char type = job.front(); std::string s(job.begin() + 1, job.end()); long int time = stoll(s); return std::pair<char, int>(type, time); }
[ "cyrus.d04@gmail.com" ]
cyrus.d04@gmail.com
881309065a9392b6c4542811e7a2ea8255ed2bb7
56f431ac8061ddb4c45b32457b0f948d1029d98f
/MonoNative.Tests/mscorlib/System/Text/mscorlib_System_Text_Encoding_Fixture.cpp
9fea6f0f4d9db5b432236a52880c38332f118ebf
[ "BSD-2-Clause" ]
permissive
brunolauze/MonoNative
886d2a346a959d86e7e0ff68661be1b6767c5ce6
959fb52c2c1ffe87476ab0d6e4fcce0ad9ce1e66
refs/heads/master
2016-09-15T17:32:26.626998
2016-03-01T17:55:27
2016-03-01T17:55:27
22,582,991
12
1
null
null
null
null
UTF-8
C++
false
false
12,666
cpp
// Mono Native Fixture // Assembly: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 // Namespace: System.Text // Name: Encoding // C++ Typed Name: mscorlib::System::Text::Encoding #include <gtest/gtest.h> #include <mscorlib/System/Text/mscorlib_System_Text_Encoding.h> #include <mscorlib/System/Text/mscorlib_System_Text_DecoderFallback.h> #include <mscorlib/System/Text/mscorlib_System_Text_EncoderFallback.h> #include <mscorlib/System/mscorlib_System_String.h> #include <mscorlib/System/mscorlib_System_Byte.h> #include <mscorlib/System/Text/mscorlib_System_Text_Decoder.h> #include <mscorlib/System/Text/mscorlib_System_Text_Encoder.h> #include <mscorlib/System/mscorlib_System_Type.h> #include <mscorlib/System/Text/mscorlib_System_Text_EncodingInfo.h> namespace mscorlib { namespace System { namespace Text { //Public Methods Tests // Method Equals // Signature: mscorlib::System::Object value TEST(mscorlib_System_Text_Encoding_Fixture,Equals_Test) { } // Method GetByteCount // Signature: std::vector<mscorlib::System::Char*> chars, mscorlib::System::Int32 index, mscorlib::System::Int32 count TEST(mscorlib_System_Text_Encoding_Fixture,GetByteCount_1_Test) { } // Method GetByteCount // Signature: mscorlib::System::String s TEST(mscorlib_System_Text_Encoding_Fixture,GetByteCount_2_Test) { } // Method GetByteCount // Signature: std::vector<mscorlib::System::Char*> chars TEST(mscorlib_System_Text_Encoding_Fixture,GetByteCount_3_Test) { } // Method GetBytes // Signature: std::vector<mscorlib::System::Char*> chars, mscorlib::System::Int32 charIndex, mscorlib::System::Int32 charCount, std::vector<mscorlib::System::Byte*> bytes, mscorlib::System::Int32 byteIndex TEST(mscorlib_System_Text_Encoding_Fixture,GetBytes_1_Test) { } // Method GetBytes // Signature: mscorlib::System::String s, mscorlib::System::Int32 charIndex, mscorlib::System::Int32 charCount, std::vector<mscorlib::System::Byte*> bytes, mscorlib::System::Int32 byteIndex TEST(mscorlib_System_Text_Encoding_Fixture,GetBytes_2_Test) { } // Method GetBytes // Signature: mscorlib::System::String s TEST(mscorlib_System_Text_Encoding_Fixture,GetBytes_3_Test) { } // Method GetBytes // Signature: std::vector<mscorlib::System::Char*> chars, mscorlib::System::Int32 index, mscorlib::System::Int32 count TEST(mscorlib_System_Text_Encoding_Fixture,GetBytes_4_Test) { } // Method GetBytes // Signature: std::vector<mscorlib::System::Char*> chars TEST(mscorlib_System_Text_Encoding_Fixture,GetBytes_5_Test) { } // Method GetCharCount // Signature: std::vector<mscorlib::System::Byte*> bytes, mscorlib::System::Int32 index, mscorlib::System::Int32 count TEST(mscorlib_System_Text_Encoding_Fixture,GetCharCount_1_Test) { } // Method GetCharCount // Signature: std::vector<mscorlib::System::Byte*> bytes TEST(mscorlib_System_Text_Encoding_Fixture,GetCharCount_2_Test) { } // Method GetChars // Signature: std::vector<mscorlib::System::Byte*> bytes, mscorlib::System::Int32 byteIndex, mscorlib::System::Int32 byteCount, std::vector<mscorlib::System::Char*> chars, mscorlib::System::Int32 charIndex TEST(mscorlib_System_Text_Encoding_Fixture,GetChars_1_Test) { } // Method GetChars // Signature: std::vector<mscorlib::System::Byte*> bytes, mscorlib::System::Int32 index, mscorlib::System::Int32 count TEST(mscorlib_System_Text_Encoding_Fixture,GetChars_2_Test) { } // Method GetChars // Signature: std::vector<mscorlib::System::Byte*> bytes TEST(mscorlib_System_Text_Encoding_Fixture,GetChars_3_Test) { } // Method GetDecoder // Signature: TEST(mscorlib_System_Text_Encoding_Fixture,GetDecoder_Test) { } // Method GetEncoder // Signature: TEST(mscorlib_System_Text_Encoding_Fixture,GetEncoder_Test) { } // Method Clone // Signature: TEST(mscorlib_System_Text_Encoding_Fixture,Clone_Test) { } // Method IsAlwaysNormalized // Signature: TEST(mscorlib_System_Text_Encoding_Fixture,IsAlwaysNormalized_1_Test) { } // Method IsAlwaysNormalized // Signature: mscorlib::System::Text::NormalizationForm::__ENUM__ form TEST(mscorlib_System_Text_Encoding_Fixture,IsAlwaysNormalized_2_Test) { } // Method GetHashCode // Signature: TEST(mscorlib_System_Text_Encoding_Fixture,GetHashCode_Test) { } // Method GetMaxByteCount // Signature: mscorlib::System::Int32 charCount TEST(mscorlib_System_Text_Encoding_Fixture,GetMaxByteCount_Test) { } // Method GetMaxCharCount // Signature: mscorlib::System::Int32 byteCount TEST(mscorlib_System_Text_Encoding_Fixture,GetMaxCharCount_Test) { } // Method GetPreamble // Signature: TEST(mscorlib_System_Text_Encoding_Fixture,GetPreamble_Test) { } // Method GetString // Signature: std::vector<mscorlib::System::Byte*> bytes, mscorlib::System::Int32 index, mscorlib::System::Int32 count TEST(mscorlib_System_Text_Encoding_Fixture,GetString_1_Test) { } // Method GetString // Signature: std::vector<mscorlib::System::Byte*> bytes TEST(mscorlib_System_Text_Encoding_Fixture,GetString_2_Test) { } // Method GetByteCount // Signature: mscorlib::System::Char* chars, mscorlib::System::Int32 count TEST(mscorlib_System_Text_Encoding_Fixture,GetByteCount_4_Test) { } // Method GetCharCount // Signature: mscorlib::System::Byte* bytes, mscorlib::System::Int32 count TEST(mscorlib_System_Text_Encoding_Fixture,GetCharCount_3_Test) { } // Method GetChars // Signature: mscorlib::System::Byte* bytes, mscorlib::System::Int32 byteCount, mscorlib::System::Char* chars, mscorlib::System::Int32 charCount TEST(mscorlib_System_Text_Encoding_Fixture,GetChars_4_Test) { } // Method GetBytes // Signature: mscorlib::System::Char* chars, mscorlib::System::Int32 charCount, mscorlib::System::Byte* bytes, mscorlib::System::Int32 byteCount TEST(mscorlib_System_Text_Encoding_Fixture,GetBytes_6_Test) { } //Public Static Methods Tests // Method Convert // Signature: mscorlib::System::Text::Encoding srcEncoding, mscorlib::System::Text::Encoding dstEncoding, std::vector<mscorlib::System::Byte*> bytes TEST(mscorlib_System_Text_Encoding_Fixture,Convert_1_StaticTest) { } // Method Convert // Signature: mscorlib::System::Text::Encoding srcEncoding, mscorlib::System::Text::Encoding dstEncoding, std::vector<mscorlib::System::Byte*> bytes, mscorlib::System::Int32 index, mscorlib::System::Int32 count TEST(mscorlib_System_Text_Encoding_Fixture,Convert_2_StaticTest) { } // Method GetEncoding // Signature: mscorlib::System::Int32 codepage TEST(mscorlib_System_Text_Encoding_Fixture,GetEncoding_1_StaticTest) { } // Method GetEncoding // Signature: mscorlib::System::Int32 codepage, mscorlib::System::Text::EncoderFallback encoderFallback, mscorlib::System::Text::DecoderFallback decoderFallback TEST(mscorlib_System_Text_Encoding_Fixture,GetEncoding_2_StaticTest) { } // Method GetEncoding // Signature: mscorlib::System::String name, mscorlib::System::Text::EncoderFallback encoderFallback, mscorlib::System::Text::DecoderFallback decoderFallback TEST(mscorlib_System_Text_Encoding_Fixture,GetEncoding_3_StaticTest) { } // Method GetEncodings // Signature: TEST(mscorlib_System_Text_Encoding_Fixture,GetEncodings_StaticTest) { } // Method GetEncoding // Signature: mscorlib::System::String name TEST(mscorlib_System_Text_Encoding_Fixture,GetEncoding_4_StaticTest) { } //Public Properties Tests // Property IsReadOnly // Return Type: mscorlib::System::Boolean // Property Get Method TEST(mscorlib_System_Text_Encoding_Fixture,get_IsReadOnly_Test) { } // Property IsSingleByte // Return Type: mscorlib::System::Boolean // Property Get Method TEST(mscorlib_System_Text_Encoding_Fixture,get_IsSingleByte_Test) { } // Property DecoderFallback // Return Type: mscorlib::System::Text::DecoderFallback // Property Get Method TEST(mscorlib_System_Text_Encoding_Fixture,get_DecoderFallback_Test) { } // Property DecoderFallback // Return Type: mscorlib::System::Text::DecoderFallback // Property Set Method TEST(mscorlib_System_Text_Encoding_Fixture,set_DecoderFallback_Test) { } // Property EncoderFallback // Return Type: mscorlib::System::Text::EncoderFallback // Property Get Method TEST(mscorlib_System_Text_Encoding_Fixture,get_EncoderFallback_Test) { } // Property EncoderFallback // Return Type: mscorlib::System::Text::EncoderFallback // Property Set Method TEST(mscorlib_System_Text_Encoding_Fixture,set_EncoderFallback_Test) { } // Property BodyName // Return Type: mscorlib::System::String // Property Get Method TEST(mscorlib_System_Text_Encoding_Fixture,get_BodyName_Test) { } // Property CodePage // Return Type: mscorlib::System::Int32 // Property Get Method TEST(mscorlib_System_Text_Encoding_Fixture,get_CodePage_Test) { } // Property EncodingName // Return Type: mscorlib::System::String // Property Get Method TEST(mscorlib_System_Text_Encoding_Fixture,get_EncodingName_Test) { } // Property HeaderName // Return Type: mscorlib::System::String // Property Get Method TEST(mscorlib_System_Text_Encoding_Fixture,get_HeaderName_Test) { } // Property IsBrowserDisplay // Return Type: mscorlib::System::Boolean // Property Get Method TEST(mscorlib_System_Text_Encoding_Fixture,get_IsBrowserDisplay_Test) { } // Property IsBrowserSave // Return Type: mscorlib::System::Boolean // Property Get Method TEST(mscorlib_System_Text_Encoding_Fixture,get_IsBrowserSave_Test) { } // Property IsMailNewsDisplay // Return Type: mscorlib::System::Boolean // Property Get Method TEST(mscorlib_System_Text_Encoding_Fixture,get_IsMailNewsDisplay_Test) { } // Property IsMailNewsSave // Return Type: mscorlib::System::Boolean // Property Get Method TEST(mscorlib_System_Text_Encoding_Fixture,get_IsMailNewsSave_Test) { } // Property WebName // Return Type: mscorlib::System::String // Property Get Method TEST(mscorlib_System_Text_Encoding_Fixture,get_WebName_Test) { } // Property WindowsCodePage // Return Type: mscorlib::System::Int32 // Property Get Method TEST(mscorlib_System_Text_Encoding_Fixture,get_WindowsCodePage_Test) { } // Property ASCII // Return Type: mscorlib::System::Text::Encoding // Property Get Method TEST(mscorlib_System_Text_Encoding_Fixture,get_ASCII_Test) { } // Property BigEndianUnicode // Return Type: mscorlib::System::Text::Encoding // Property Get Method TEST(mscorlib_System_Text_Encoding_Fixture,get_BigEndianUnicode_Test) { } // Property Default // Return Type: mscorlib::System::Text::Encoding // Property Get Method TEST(mscorlib_System_Text_Encoding_Fixture,get_Default_Test) { } // Property UTF7 // Return Type: mscorlib::System::Text::Encoding // Property Get Method TEST(mscorlib_System_Text_Encoding_Fixture,get_UTF7_Test) { } // Property UTF8 // Return Type: mscorlib::System::Text::Encoding // Property Get Method TEST(mscorlib_System_Text_Encoding_Fixture,get_UTF8_Test) { } // Property Unicode // Return Type: mscorlib::System::Text::Encoding // Property Get Method TEST(mscorlib_System_Text_Encoding_Fixture,get_Unicode_Test) { } // Property UTF32 // Return Type: mscorlib::System::Text::Encoding // Property Get Method TEST(mscorlib_System_Text_Encoding_Fixture,get_UTF32_Test) { } } } }
[ "brunolauze@msn.com" ]
brunolauze@msn.com
40bfd9fa06d02ce7ec91b1f741bcecefc24e5099
aaf47d848fcea43be73738aa63946da68ea1b1d0
/src/olymp/codef/contests/1324/b/sol.cpp
f2242cc6c6919ab8db914b36da169dd983069fd2
[]
no_license
xsaiter/isasln
c0de69fa0850a4cac3af3380acc1faedfd304ee6
58fb0f8d6974c254f9bd05a3c36929c87d827989
refs/heads/master
2023-05-27T15:55:23.736073
2023-05-20T21:18:29
2023-05-20T21:18:29
98,072,474
0
0
null
null
null
null
UTF-8
C++
false
false
342
cpp
#include <bits/stdc++.h> using namespace std; bool solve(vector<int> &a, int n) { return false; } int main() { int t; cin >> t; while (t--) { int n; cin >> n; vector<int> a(n); for (int i = 0; i < n; ++i) { cin >> a[i]; } cout << (solve(a, n) ? "YES" : "NO") << "\n"; } cout << endl; return 0; }
[ "xsaiter@mail.ru" ]
xsaiter@mail.ru
0bf67b698708e6e3408dea225b0b24649179e1c0
9fa381707e4732b7ee3402b3dbf1fea063de312b
/phoenix/qt/widget/horizontal-scroll-bar.cpp
6127c301b5d569cbabd42fbc134125c82d25a55a
[]
no_license
vgmtool/vgmtool
e2e7360633589475402cb6cbe59119c5c6485e5a
dc68f7f99de288fd72be5b3f9011467287a31480
refs/heads/master
2016-09-05T20:33:18.236676
2012-06-18T23:47:55
2012-06-18T23:47:55
4,513,921
14
1
null
null
null
null
UTF-8
C++
false
false
1,127
cpp
Geometry pHorizontalScrollBar::minimumGeometry() { return { 0, 0, 0, 15 }; } unsigned pHorizontalScrollBar::position() { return qtScrollBar->value(); } void pHorizontalScrollBar::setLength(unsigned length) { length += length == 0; qtScrollBar->setRange(0, length - 1); qtScrollBar->setPageStep(length >> 3); } void pHorizontalScrollBar::setPosition(unsigned position) { qtScrollBar->setValue(position); } void pHorizontalScrollBar::constructor() { qtWidget = qtScrollBar = new QScrollBar(Qt::Horizontal); qtScrollBar->setRange(0, 100); qtScrollBar->setPageStep(101 >> 3); connect(qtScrollBar, SIGNAL(valueChanged(int)), SLOT(onChange())); pWidget::synchronizeState(); setLength(horizontalScrollBar.state.length); setPosition(horizontalScrollBar.state.position); } void pHorizontalScrollBar::destructor() { delete qtScrollBar; qtWidget = qtScrollBar = 0; } void pHorizontalScrollBar::orphan() { destructor(); constructor(); } void pHorizontalScrollBar::onChange() { horizontalScrollBar.state.position = position(); if(horizontalScrollBar.onChange) horizontalScrollBar.onChange(); }
[ "neoexmachina@gmail.com" ]
neoexmachina@gmail.com
2d4b07adc9e03514053b09b362383d5ea4fbf409
f551cdd86d1c8865bbb81a4f33d0db8c994a291b
/Prj_Android/app/src/main/jni/shared/app/logic/log/LogicLogCell.hpp
a0ee78fe4b4513aad89dee574d78ebb874585a40
[]
no_license
hakumai-iida/IllustLogicAnalyzer
beed07acabac8b3bc14daa3bd3512f88e6b6ea8e
1d2435ece314f614ab491c046b5ab2bbc240cf4f
refs/heads/master
2022-11-21T18:58:57.156839
2020-08-01T07:40:56
2020-08-01T07:40:56
284,156,374
0
1
null
null
null
null
UTF-8
C++
false
false
7,331
hpp
/*+----------------------------------------------------------------+ | Title: LogicLogCell.hpp [共通環境] | Comment: ロジック:ログ単位 | Author: K.Takayanagi +----------------------------------------------------------------+*/ /*+----------------------------------------------------------------+ | Header Define ヘッダ定義 +----------------------------------------------------------------+*/ #ifndef __LOGIC_LOG_CELL_HPP__ #define __LOGIC_LOG_CELL_HPP__ /*+----------------------------------------------------------------+ | Include インクルードヘッダ +----------------------------------------------------------------+*/ #include "env.hpp" #include "app/logic/LogicConst.hpp" /*+----------------------------------------------------------------+ | Define デファイン定義 +----------------------------------------------------------------+*/ //------------------------------------------------- // ログの情報タイプ(※ロジックの盤面に影響する処理の判別用) //------------------------------------------------- enum eLLC_INFO{ eLLC_INFO_INVALID = -1, //------------------------------------------------- // 基本操作:[CLogic]上の処理(※イラストロジック的な処理) //------------------------------------------------- eLLC_INFO_STATUS_FIX, // 状況確定:[CLogic::fixStatusWithLog] eLLC_INFO_MANUAL_PLAY, // 手動プレイ: [CLogic::playManualWithLog] eLLC_INFO_AUTO_PLAY, // 自動プレイ: [CLogic::playAutoWithLog] eLLC_INFO_ANALYZE, // 解析: [CLogic::analyzeWithLog] eLLC_INFO_ASSUME_ON, // 仮定開始: [CLogic::assumeOnWithLog] eLLC_INFO_ASSUME_OFF, // 仮定終了: [CLogic::assumeOffWithLog] eLLC_INFO_ANALYZE_METHOD, // 解析メソッド指定: [CLogicAnalyzer::Analyze] eLLC_INFO_MAX, }; //------------------------------------------------- // ログタイプ //------------------------------------------------- enum eLLC_TYPE{ eLLC_TYPE_INVALID = -1, //------------------------------------------------------------- // 情報区分(※全てのログ登録は[INFO_START]で始まり[INFO_END]で終わる) //(※情報区分間に1つもログがない場合、[INFO_START]の登録が削除される) //------------------------------------------------------------- eLLC_TYPE_INFO_START, // 情報区分:開始:[p0=情報タイプ]、[p1=オプション]… eLLC_TYPE_INFO_END, // 情報区分:終了:[p0=情報タイプ]、[p1=オプション]… //------------------------------------------------------------- // 基本操作ログ:状況確定 //------------------------------------------------------------- eLLC_TYPE_STATUS_CLUE_IN_COLUMN, // 行のヒントが確定した:[p0=行]、[p1=ヒント番号]、[p2=仮定レベル]、[p3=ヒントの状態] eLLC_TYPE_STATUS_CLUE_IN_ROW, // 列のヒントが確定した:[p0=列]、[p1=ヒント番号]、[p2=仮定レベル]、[p3=ヒントの状態] eLLC_TYPE_STATUS_LINE_IN_COLUMN, // 行のラインが確定した:[p0=行]、[p1=仮定レベル]、[p2=ラインの状態] eLLC_TYPE_STATUS_LINE_IN_ROW, // 列のラインが確定した:[p0=列]、[p1=仮定レベル]、[p2=ラインの状態] eLLC_TYPE_STATUS_LOGIC_CLEAR, // ロジックをクリアした:[p0=仮定レベル] eLLC_TYPE_STATUS_LOGIC_IMCOMPATIBLE, // ロジックが矛盾した:[p0=仮定レベル] eLLC_TYPE_STATUS_LOGIC_GIVE_UP, // ロジックの解析が行き詰まった(※オート時):[p0=仮定レベル] //------------------------------------------------------------- // 基本操作ログ:マニュアル関連 //------------------------------------------------------------- eLLC_TYPE_MANUAL_TARGET, // マニュアル:処理対象:[p0=行]、[p1=列]、[p2=仮定レベル]、[p3=マスの種類] //------------------------------------------------------------- // 基本操作ログ:解析関連 //------------------------------------------------------------- eLLC_TYPE_ANALYZE_TARGET_INFO, // 解析:ターゲット情報:[p0=行]、[p1=列] eLLC_TYPE_ANALYZE_TARGET_DETERMINED, // 解析:ターゲットが確定した:[p0=行]、[p1=列]、[p2=仮定レベル]、[p3=マスの種別] eLLC_TYPE_ANALYZE_SOLID, // 解析:マスを埋めた:[p0=行]、[p1=列]、[p2=仮定レベル]、[p3=マスの種別] //------------------------------------------------------------- // 基本操作ログ:仮定関連 //------------------------------------------------------------- eLLC_TYPE_ASSUME_START_INFO, // 仮定:開始情報:[p0=行]、[p1=列]、[p2=仮定レベル]、[p3=マスの種別] eLLC_TYPE_ASSUME_DETERMINED, // 仮定:確定した:[p0=行]、[p1=列]、[p2=仮定レベル]、[p3=マスの種別] eLLC_TYPE_ASSUME_IMCOMPATIBLE, // 仮定:矛盾した:[p0=行]、[p1=列]、[p2=仮定レベル]、[p3=マスの種別] eLLC_TYPE_ASSUME_OFF, // 仮定:解除された:[p0=行]、[p1=列]、[p2=仮定レベル]、[p3=マスの種別] eLLC_TYPE_MAX, }; //------------------ // パラメータ数 //------------------ #define LOGIC_LOG_CELL_PARAM_MAX 4 /*+----------------------------------------------------------------+ | Struct 構造体定義 +----------------------------------------------------------------+*/ /*+----------------------------------------------------------------+ | Class クラス定義 +----------------------------------------------------------------+*/ //---------------------------------------- // ロジックログセル //---------------------------------------- class CLogicLogCell { protected: eLLC_TYPE m_eType; // タイプ int m_nArrParam[LOGIC_LOG_CELL_PARAM_MAX]; // パラメータ public: CLogicLogCell( void ); virtual ~CLogicLogCell( void ); // クリア void clear( void ); //-------------------------- // 設定 //-------------------------- void set( eLLC_TYPE type, int p0, int p1, int p2, int p3 ); //-------------------------- // 取得 //-------------------------- inline eLLC_TYPE getType( void ){ return( m_eType ); } inline int getParamAt( int at ){ if( at >= 0 && at < LOGIC_LOG_CELL_PARAM_MAX ){ return( m_nArrParam[at] ); } return( -1 ); } // ログ文言設定(※開発用) void setLogForBuf( char* buf ); }; /*+----------------------------------------------------------------+ | Global グローバルデータ型定義 +----------------------------------------------------------------+*/ extern const char* g_pArrLabelLogicLogCellInfo[]; extern const char* g_pArrLabelLogicLogCellType[]; /*+----------------------------------------------------------------+ | Prototype プロトタイプ宣言 +----------------------------------------------------------------+*/ #endif // __LOGIC_LOG_CELL_HPP__
[ "hakumai.iida@gmail.com" ]
hakumai.iida@gmail.com
c72ad3fc3597a794e19ec73958fc5492f68a9bf0
7ca30b24597f19075f7cd7a3fd52f575ca7ccaa9
/network/network.h
6e66b2f8db35471cc4c2839b37274157d1bd1960
[]
no_license
lihejia/syberh-plugins
fb2e09cdddcfa6565a017c8514b5808127a11e00
1d72febb658716c55baff0924aaeb44c647a1450
refs/heads/master
2023-01-07T00:51:33.646334
2020-11-06T02:47:32
2020-11-06T02:47:32
null
0
0
null
null
null
null
UTF-8
C++
false
false
725
h
#ifndef NETWORK_H #define NETWORK_H #include <QObject> #include <QtPlugin> #include <QNetworkAccessManager> #include "iplugin/iplugin.h" #include "network_global.h" class TaskInfo { public: QString dataType; QNetworkReply* reply; }; class NETWORKSHARED_EXPORT Network: public ExtensionSystem::IPlugin { Q_OBJECT Q_PLUGIN_METADATA(IID "com.syberos.syberh.SyberhPlugin" FILE "plugin.json") public: Network(); ~Network(); void invokeInitialize(); void invoke(QString callbackID, QString actionName, QVariantMap params); private : QNetworkAccessManager *manager; QMap<QString,TaskInfo*> tasks; public slots: void finished(QNetworkReply *reply); }; #endif // NETWORK_H
[ "liujingpeng@syberos.com" ]
liujingpeng@syberos.com
abdedc78e672a911cf23d9eebe366dd6bca7a4f3
8f961bc022f5ce587d854b7458909c3e0f1ef4bb
/demo/Stage/EntitySplitterDemo/src/root/app/EntitySplitterDemoAppBase.cpp
3c91441ac74cab2c0471d0570957d42bcb29e0c3
[]
no_license
takashikumagai/amorphous
73f0bd8c5f5d947a71bbad696ce728f25c456aae
8e5f5ec9368757a639ed4cf7aeb02a4b201e6b42
refs/heads/master
2020-05-17T10:55:59.428403
2018-07-05T02:48:59
2018-07-05T02:48:59
183,671,422
0
0
null
null
null
null
UTF-8
C++
false
false
4,420
cpp
#include "EntitySplitterDemoAppBase.hpp" #include "amorphous/Graphics/GraphicsElementManager.hpp" #include "amorphous/Graphics/MeshUtilities.hpp" #include "amorphous/Input.hpp" #include "amorphous/Stage.hpp" #include "amorphous/Stage/Trace.hpp" #include "amorphous/Stage/EntitySplitter.hpp" #include "amorphous/Stage/StageUtility.hpp" #include "amorphous/Physics/Actor.hpp" #include "amorphous/Task.hpp" #include "amorphous/Script.hpp" using namespace std; using namespace amorphous::physics; static string sg_TestStageScriptToLoad = "./Script/default.bin"; extern ApplicationBase *amorphous::CreateApplicationInstance() { return new EntitySplitterDemoAppBase(); } EntitySplitterDemoAppTask::EntitySplitterDemoAppTask() { ScriptManager::ms_UseBoostPythonModules = true; StageLoader stg_loader; m_pStage = stg_loader.LoadStage( sg_TestStageScriptToLoad ); GetCameraController()->SetPose( Matrix34( Vector3(0,20,-15), Matrix33Identity() ) ); Matrix34 pose = GetCamera().GetPose(); pose.vPosition += pose.matOrient.GetColumn(2) * 3.5f; MeshHandle mesh = CreateBoxMesh( Vector3(3.00f,0.05f,3.00f), SFloatRGBAColor(1.0f,1.0f,1.0f,0.6f) ); StageMiscUtility stg_util( m_pStage ); m_SplitPlaneEntity = stg_util.CreateNonCollidableEntityFromMesh( mesh, pose, "split_plane" ); shared_ptr<CCopyEntity> pSplitPlaneEntity = m_SplitPlaneEntity.Get(); if( pSplitPlaneEntity ) { pSplitPlaneEntity->RaiseEntityFlags( BETYPE_USE_ZSORT ); } } void EntitySplitterDemoAppTask::OnTriggerPulled() { if( !m_pStage ) return; shared_ptr<CCopyEntity> pSplitPlaneEntity = m_SplitPlaneEntity.Get(); if( !pSplitPlaneEntity ) return; Matrix34 world_pose = pSplitPlaneEntity->GetWorldPose(); vector<CCopyEntity *> pEntities; OverlapTestAABB aabb_test( AABB3(world_pose.vPosition + Vector3(-1,-1,-1), world_pose.vPosition + Vector3(1,1,1)), &pEntities ); m_pStage->GetEntitySet()->GetOverlappingEntities( aabb_test ); Vector3 normal = pSplitPlaneEntity->GetWorldPose().matOrient.GetColumn(1); Plane split_plane( normal, Vec3Dot( normal, pSplitPlaneEntity->GetWorldPosition() ) ); LOG_PRINTF(( "%d overlapping entities", (int)pEntities.size() )); int num_entities_to_split = take_min( (int)pEntities.size(), 16 ); for( int i=0; i<num_entities_to_split; i++ ) { if( !pEntities[i] ) continue; // Skip the skybox if( !(pEntities[i]->GetEntityFlags() & BETYPE_RIGIDBODY) ) continue; if( pEntities[i]->bNoClip ) continue; // Skip the floor CActor *pActor = pEntities[i]->GetPrimaryPhysicsActor(); if( pActor && pActor->GetBodyFlags() & (PhysBodyFlag::Kinematic | PhysBodyFlag::Static) ) continue; EntityHandle<> entity( pEntities[i]->Self() ); EntitySplitter entity_splitter; EntityHandle<> dest0, dest1; entity_splitter.Split( entity, split_plane, EntitySplitterParams(), dest0, dest1 ); for( int j=0; j<2; j++ ) { shared_ptr<CCopyEntity> pDest = (j==0) ? dest0.Get() : dest1.Get(); if( !pDest ) continue; if( pDest->m_vecpPhysicsActor.empty() || !pDest->m_vecpPhysicsActor[0] ) continue; { Vector3 impulse = (j==0) ? split_plane.normal : -split_plane.normal; Vector3 point = pDest->GetWorldPosition(); pDest->ApplyWorldImpulse( impulse, point ); } } } } int EntitySplitterDemoAppTask::FrameMove( float dt ) { int ret = StageViewerGameTask::FrameMove( dt ); if( ret != ID_INVALID ) return ret; shared_ptr<CCopyEntity> pSplitPlaneEntity = m_SplitPlaneEntity.Get(); if( pSplitPlaneEntity ) { Matrix34 pose = GetCamera().GetPose(); pose.vPosition += pose.matOrient.GetColumn(2) * 3.5f; pose = pose * Matrix34( Vector3(0.0f,-0.5f,0.0f), Matrix33Identity() ); pSplitPlaneEntity->SetWorldPose( pose ); } return ID_INVALID; } void EntitySplitterDemoAppTask::HandleInput( const InputData& input ) { switch( input.iGICode ) { case GIC_MOUSE_BUTTON_L: if( input.iType == ITYPE_KEY_PRESSED ) { OnTriggerPulled(); } break; default: break; } } //======================================================================================== // EntitySplitterDemoAppBase //======================================================================================== EntitySplitterDemoAppBase::EntitySplitterDemoAppBase() { } EntitySplitterDemoAppBase::~EntitySplitterDemoAppBase() { } int EntitySplitterDemoAppBase::GetStartTaskID() const { return GAMETASK_ID_ENTITY_SPLITTER_APP; }
[ "amorphous.git@gmail.com" ]
amorphous.git@gmail.com
3b2ba780f1bbde1531aa2cd6fadfb151735697d9
24a004b568aad622ef8e2b21ee3fc3dc8dd3cbe2
/Apple Sample Code/iPhoneACFileConvertTest/PublicUtility/CAXException.h
ff96261ac682a0c8e69397936e1d57b6c87c667d
[]
no_license
the-mac/iOS
c9e872cde87dad6ad1a723f49a160fdc2d34fba2
34fccea9f605073cce98a7a820ca525a57a42e50
refs/heads/master
2020-04-05T23:06:38.856021
2016-10-01T21:24:25
2016-10-01T21:24:25
17,992,935
5
4
null
null
null
null
UTF-8
C++
false
false
10,777
h
/* File: CAXException.h Abstract: Part of CoreAudio Utility Classes Version: 1.0.3 Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple Inc. ("Apple") in consideration of your agreement to the following terms, and your use, installation, modification or redistribution of this Apple software constitutes acceptance of these terms. If you do not agree with these terms, please do not use, install, modify or redistribute this Apple software. In consideration of your agreement to abide by the following terms, and subject to these terms, Apple grants you a personal, non-exclusive license, under Apple's copyrights in this original Apple software (the "Apple Software"), to use, reproduce, modify and redistribute the Apple Software, with or without modifications, in source and/or binary forms; provided that if you redistribute the Apple Software in its entirety and without modifications, you must retain this notice and the following text and disclaimers in all such redistributions of the Apple Software. Neither the name, trademarks, service marks or logos of Apple Inc. may be used to endorse or promote products derived from the Apple Software without specific prior written permission from Apple. Except as expressly stated in this notice, no other rights or licenses, express or implied, are granted by Apple herein, including but not limited to any patent rights that may be infringed by your derivative works or by other works in which the Apple Software may be incorporated. The Apple Software is provided by Apple on an "AS IS" basis. APPLE MAKES NO WARRANTIES, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION THE IMPLIED WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, REGARDING THE APPLE SOFTWARE OR ITS USE AND OPERATION ALONE OR IN COMBINATION WITH YOUR PRODUCTS. IN NO EVENT SHALL APPLE BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) ARISING IN ANY WAY OUT OF THE USE, REPRODUCTION, MODIFICATION AND/OR DISTRIBUTION OF THE APPLE SOFTWARE, HOWEVER CAUSED AND WHETHER UNDER THEORY OF CONTRACT, TORT (INCLUDING NEGLIGENCE), STRICT LIABILITY OR OTHERWISE, EVEN IF APPLE HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Copyright (C) 2014 Apple Inc. All Rights Reserved. */ #ifndef __CAXException_h__ #define __CAXException_h__ #if !defined(__COREAUDIO_USE_FLAT_INCLUDES__) #include <CoreFoundation/CoreFoundation.h> #else #include <ConditionalMacros.h> #include <CoreFoundation.h> #endif #include "CADebugMacros.h" #include <ctype.h> //#include <stdio.h> #include <string.h> class CAX4CCString { public: CAX4CCString(OSStatus error) { // see if it appears to be a 4-char-code char *str = mStr; *(UInt32 *)(str + 1) = CFSwapInt32HostToBig(error); if (isprint(str[1]) && isprint(str[2]) && isprint(str[3]) && isprint(str[4])) { str[0] = str[5] = '\''; str[6] = '\0'; } else if (error > -200000 && error < 200000) // no, format it as an integer sprintf(str, "%d", (int)error); else sprintf(str, "0x%x", (int)error); } const char *get() const { return mStr; } operator const char *() const { return mStr; } private: char mStr[16]; }; // An extended exception class that includes the name of the failed operation class CAXException { public: CAXException(const char *operation, OSStatus err) : mError(err) { if (operation == NULL) mOperation[0] = '\0'; else if (strlen(operation) >= sizeof(mOperation)) { memcpy(mOperation, operation, sizeof(mOperation) - 1); mOperation[sizeof(mOperation) - 1] = '\0'; } else strlcpy(mOperation, operation, sizeof(mOperation)); } char *FormatError(char *str) const { return FormatError(str, mError); } char mOperation[256]; const OSStatus mError; // ------------------------------------------------- typedef void (*WarningHandler)(const char *msg, OSStatus err); static char *FormatError(char *str, OSStatus error) { strcpy(str, CAX4CCString(error)); return str; } static void Warning(const char *s, OSStatus error) { if (sWarningHandler) (*sWarningHandler)(s, error); } static void SetWarningHandler(WarningHandler f) { sWarningHandler = f; } private: static WarningHandler sWarningHandler; }; #if DEBUG || CoreAudio_Debug #define XThrowIfError(error, operation) \ do { \ OSStatus __err = error; \ if (__err) { \ DebugMessageN2("about to throw %s: %s", CAX4CCString(__err).get(), operation);\ __THROW_STOP; \ throw CAXException(operation, __err); \ } \ } while (0) #define XThrowIf(condition, error, operation) \ do { \ if (condition) { \ OSStatus __err = error; \ DebugMessageN2("about to throw %s: %s", CAX4CCString(__err).get(), operation);\ __THROW_STOP; \ throw CAXException(operation, __err); \ } \ } while (0) #define XRequireNoError(error, label) \ do { \ OSStatus __err = error; \ if (__err) { \ DebugMessageN2("about to throw %s: %s", CAX4CCString(__err).get(), #error);\ STOP; \ goto label; \ } \ } while (0) #define XAssert(assertion) \ do { \ if (!(assertion)) { \ DebugMessageN3("[%s, %d] error: failed assertion: %s", __FILE__, __LINE__, #assertion); \ __ASSERT_STOP; \ } \ } while (0) #define XAssertNoError(error) \ do { \ OSStatus __err = error; \ if (__err) { \ DebugMessageN2("error %s: %s", CAX4CCString(__err).get(), #error);\ STOP; \ } \ } while (0) #define ca_require_noerr(errorCode, exceptionLabel) \ do \ { \ int evalOnceErrorCode = (errorCode); \ if ( __builtin_expect(0 != evalOnceErrorCode, 0) ) \ { \ DebugMessageN5("ca_require_noerr: [%s, %d] (goto %s;) %s:%d", \ #errorCode, evalOnceErrorCode, \ #exceptionLabel, \ __FILE__, \ __LINE__); \ goto exceptionLabel; \ } \ } while ( 0 ) #define ca_verify_noerr(errorCode) \ do \ { \ int evalOnceErrorCode = (errorCode); \ if ( __builtin_expect(0 != evalOnceErrorCode, 0) ) \ { \ DebugMessageN4("ca_verify_noerr: [%s, %d] %s:%d", \ #errorCode, evalOnceErrorCode, \ __FILE__, \ __LINE__); \ } \ } while ( 0 ) #define ca_debug_string(message) \ do \ { \ DebugMessageN3("ca_debug_string: %s %s:%d", \ message, \ __FILE__, \ __LINE__); \ } while ( 0 ) #define ca_verify(assertion) \ do \ { \ if ( __builtin_expect(!(assertion), 0) ) \ { \ DebugMessageN3("ca_verify: %s %s:%d", \ #assertion, \ __FILE__, \ __LINE__); \ } \ } while ( 0 ) #define ca_require(assertion, exceptionLabel) \ do \ { \ if ( __builtin_expect(!(assertion), 0) ) \ { \ DebugMessageN4("ca_require: %s %s %s:%d", \ #assertion, \ #exceptionLabel, \ __FILE__, \ __LINE__); \ goto exceptionLabel; \ } \ } while ( 0 ) #define ca_check(assertion) \ do \ { \ if ( __builtin_expect(!(assertion), 0) ) \ { \ DebugMessageN3("ca_check: %s %s:%d", \ #assertion, \ __FILE__, \ __LINE__); \ } \ } while ( 0 ) #else #define XThrowIfError(error, operation) \ do { \ OSStatus __err = error; \ if (__err) { \ throw CAXException(operation, __err); \ } \ } while (0) #define XThrowIf(condition, error, operation) \ do { \ if (condition) { \ OSStatus __err = error; \ throw CAXException(operation, __err); \ } \ } while (0) #define XRequireNoError(error, label) \ do { \ OSStatus __err = error; \ if (__err) { \ goto label; \ } \ } while (0) #define XAssert(assertion) \ do { \ if (!(assertion)) { \ } \ } while (0) #define XAssertNoError(error) \ do { \ /*OSStatus __err =*/ error; \ } while (0) #define ca_require_noerr(errorCode, exceptionLabel) \ do \ { \ if ( __builtin_expect(0 != (errorCode), 0) ) \ { \ goto exceptionLabel; \ } \ } while ( 0 ) #define ca_verify_noerr(errorCode) \ do \ { \ if ( 0 != (errorCode) ) \ { \ } \ } while ( 0 ) #define ca_debug_string(message) #define ca_verify(assertion) \ do \ { \ if ( !(assertion) ) \ { \ } \ } while ( 0 ) #define ca_require(assertion, exceptionLabel) \ do \ { \ if ( __builtin_expect(!(assertion), 0) ) \ { \ goto exceptionLabel; \ } \ } while ( 0 ) #define ca_check(assertion) \ do \ { \ if ( !(assertion) ) \ { \ } \ } while ( 0 ) #endif #define XThrow(error, operation) XThrowIf(true, error, operation) #define XThrowIfErr(error) XThrowIfError(error, #error) #endif // __CAXException_h__
[ "christopher@iamplus.com" ]
christopher@iamplus.com
8370428aba7c2a58a29f72a0d07a21aff55dd8f2
e5c837b21ecb2384cb532b98f2cc6fb7a8ebb9d3
/task3_scale_of_notation_conv/main.cpp
cf1662fcf0a60be90b2d4ecf74a64d2215e104af
[]
no_license
tungyr/college-study
cddc88911102ddbe091ef58d9dd14b96b861635c
a162916a1d4a1096bd6707e0523a78232775e4c8
refs/heads/master
2020-11-23T20:52:57.724540
2020-02-12T20:04:05
2020-02-12T20:04:05
227,816,024
0
0
null
null
null
null
UTF-8
C++
false
false
201
cpp
#include <iostream> #include "func.h" int main() { std::cout << "Enter an integer: "; int number; std::cin >> number; std::cout << "Число " << number << " = " << convert(number); }
[ "rotkivem@gmail.com" ]
rotkivem@gmail.com
d16290a88846f8458271511a2318ebefc9309bd6
3f0bc471522820ffabb132580f799538c4bb9d1a
/COJ_ACCEPTED/2421 - The Asteroids.cpp
7c9f033ef53d80078b5efd91a18aae79a31b2a2d
[]
no_license
luismoax/Competitive-Programming---luismo
d40267e7947d03a304355a1ff936c2ecb5460b77
63016024bdcff8755fe537be5eb8e46c6e6a18e6
refs/heads/master
2023-09-03T17:56:36.258278
2023-08-20T06:01:27
2023-08-20T06:01:27
250,821,058
1
0
null
null
null
null
UTF-8
C++
false
false
1,115
cpp
#include <iostream> #include <cstdio> #include <vector> #include <cstring> #include <map> #include <algorithm> #include <cmath> #define pf printf #define sf scanf #define INF 1000000 /* Author: Luismo Problem: 2421 - Asteroids Algorithm: Implementation */ using namespace std; struct _point { int x,y; _point(int xx,int yy) { x = xx; y= yy; } }; double euclid(_point a,_point b) { return sqrt( (a.x - b.x)*(a.x-b.x) + (a.y-b.y)*(a.y-b.y) ); } int main() { //freopen("d:\\lmo.in","r",stdin); int n,x,y,R; sf("%d",&n); while(n!=0) { sf("%d%d",&x,&y); _point shuttle(x,y); // shuttle double min_dist=-1; int idx = -1; for(int i=0;i<n;i++) { sf("%d%d%d",&x,&y,&R); _point asteroid(x,y); double dist = euclid(shuttle,asteroid); if(min_dist==-1 || dist - R < min_dist) { min_dist = dist-R; idx = i+1; } } pf("%d\n",idx); // read again sf("%d",&n); } }
[ "luismoax@gmail.com" ]
luismoax@gmail.com
2bbfc2adbc52584fe8056ac77e2d3462f125f7d5
bb67db6be6980c0ec6a69e13b6fcc1ca42694b5c
/Task5/MIPS_SystemC_v0.6.6/mux4.h
bcdb33746eb8131959bb7b919685b8f82d0d35c4
[]
no_license
toomyy94/MIPS-SystemC-ACA
6f0d85d376679cb024954f06f171fa310b532119
0cf586d85f3094434c94aa51dfced96d7d77deb0
refs/heads/master
2021-01-19T02:31:10.239024
2016-08-08T01:42:10
2016-08-08T01:42:10
65,163,653
2
1
null
null
null
null
UTF-8
C++
false
false
1,143
h
#ifndef MUX4MOD_H #define MUX4MOD_H /** * * 4:1 Mux4 module template. */ #include <systemc.h> /** * Mux4 module. * Mux4 module models a generic 4:1 multiplexor of template type T. * Implementation based on a template class. * * - input ports * - \c T \c din0 - input * - \c T \c din1 - input * - \c T \c din2 - input * - \c T \c din3 - input * - \c sc_uint<2> \c sel - select * - output ports * - \c T \c dout - output */ template <class T> class mux4: public sc_module { public: sc_in< T > din0; sc_in< T > din1; sc_in< T > din2; sc_in< T > din3; sc_in< sc_uint<2> > sel; sc_out< T > dout; SC_CTOR(mux4) { SC_METHOD(entry); sensitive << din0 << din1 << din2 << din3 << sel; } void entry(); }; template <class T> void mux4<T>::entry() { switch (sel.read()) { case 0: dout.write(din0.read()); break; case 1: dout.write(din1.read()); break; case 2: dout.write(din2.read()); break; case 3: dout.write(din3.read()); break; } } #endif
[ "rui.oliveira.rpo@gmail.com" ]
rui.oliveira.rpo@gmail.com
1b621672bb6f8cc917fef0ecacb173df3a6c1a76
138492d8f798a462b79329a7b6c34a3e4ccff3c3
/include/jxy/alloc.hpp
871fde445e3411fff3bcb06ccea90bd4a4df9470
[ "MIT" ]
permissive
SilverTuxedo/stlkrn
1e34f1d02a30e4559271ecf34b9cd27aae6eb614
9f483a94d0dc2e502a066899589db3bae976443e
refs/heads/main
2023-07-19T11:33:50.007725
2021-09-17T17:12:48
2021-09-17T17:12:48
405,061,178
0
0
MIT
2021-09-10T11:44:36
2021-09-10T11:44:35
null
UTF-8
C++
false
false
704
hpp
// // Copyright (c) Johnny Shaw. All rights reserved. // // File: jxystl/alloc.hpp // Author: Johnny Shaw // Abstract: cpp new/delete functions // // Default new/delete is intentionally unimplemented! This forces specifying // the pool type and tags for all allocations. // #pragma once #include <fltKernel.h> #include <cstddef> void* __cdecl operator new(size_t Size, POOL_TYPE PoolType, ULONG PoolTag) noexcept(false); void __cdecl operator delete(void* Memory, POOL_TYPE PoolType, ULONG PoolTag) noexcept; void* __cdecl operator new[](size_t Size, POOL_TYPE PoolType, ULONG PoolTag) noexcept(false); void __cdecl operator delete[](void* Memory, POOL_TYPE PoolType, ULONG PoolTag) noexcept;
[ "johnny.shaw@live.com" ]
johnny.shaw@live.com
3de091b3e2cd1b4576a8d15b2a923c7c60e8d348
fd6d4842c8f939c9a910cb1cd64bd299b6ea81cd
/Developments/BlinkingHeart/BlinkingHeart.ino
15daabd0ba922bcf819ae3fcd56c4e8f8c8e6503
[]
no_license
thorty/Mysterybox
db40c46f46bb93589d1a58b676f4fcafa2824c4c
cedabcccb8b46f2062c210edbb1d1b7fac4a2d61
refs/heads/master
2021-01-20T22:12:09.524488
2018-07-26T06:35:57
2018-07-26T06:35:57
101,805,272
0
0
null
null
null
null
UTF-8
C++
false
false
1,416
ino
#include <Wire.h> #include <LiquidCrystal_I2C.h> byte heart_h[8] = { B00000, B00000, B01010, B10101, B10001, B01010, B00100, B00000 }; byte heart_f[8] = { B00000, B00000, B01010, B11111, B11111, B01110, B00100, B00000 }; // Set the LCD address to 0x27 for a 16 chars and 2 line display LiquidCrystal_I2C lcd(0x3F, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE); void setup() { pinMode(13, OUTPUT); digitalWrite(13, HIGH); lcd.begin(20, 4); lcd.backlight(); lcd.createChar(1, heart_h); lcd.createChar(2, heart_f); lcd.home(); lcd.setCursor(0, 0); lcd.print("Hello world..."); lcd.setCursor(0, 1); lcd.print(" i "); lcd.write(byte(1)); lcd.print(" arduinos!"); delay(5000); lcd.clear(); lcd.setCursor(0, 0); } int z = 0; void loop() { /* z= z+1; lcd.setCursor(0,0); lcd.print(char(z)); if (z==2)z=0; delay(500); */ writeUnlockTwo(); } void writeUnlockTwo(){ int i =0; byte heart_h[8] = { B00000, B00000, B01010, B10101, B10001, B01010, B00100, B00000 }; byte heart_f[8] = { B00000, B00000, B01010, B11111, B11111, B01110, B00100, B00000 }; lcd.createChar(1, heart_h); lcd.createChar(2, heart_f); lcd.home(); lcd.clear(); lcd.setCursor(0, 0); while(i<80){ lcd.print(char(1)); i++; } delay(500); while(i>0){ lcd.print(char(2)); i--; } delay(500); }
[ "thorty.w82@gmail.com" ]
thorty.w82@gmail.com
f39943fb305cecb8b0983158f9babc2973a8cd51
050f22fa36ef8a044605bb46086fba3b88d9ffb2
/LedSnake.ino
88c3e31e6c7fbe2d2d61ed1ecaa0c306d4fdf3aa
[]
no_license
jpsk/Arduino-8x8LED-Matrix-Snake
6cd4bbf24f708c90a60b68e55f745daa59ccc248
586b3036e02a9bc2649339ce49ed693b2f8e7d1f
refs/heads/master
2021-01-23T08:11:01.358382
2017-03-28T20:08:08
2017-03-28T20:08:08
86,484,414
0
0
null
null
null
null
UTF-8
C++
false
false
5,502
ino
#include "LedControl.h" // Define interrupt pins #define I_LEFT 3 #define I_UP 2 #define I_DOWN 18 #define I_RIGHT 19 // Define vector constants #define LEFT 1 #define UP 2 #define RIGHT 3 #define DOWN 4 #define ON 1 // Program variables unsigned long delaytime = 300; int moveVector = RIGHT; // Initial move vector int snake[64][3] = {{1,4,ON},{0,4,ON}}; int food[2]; // x and y location bool leftAttached = false; bool rightAttached = false; bool upAttached = true; bool downAttached = true; // Assign pins 12 11 10 -> DIN, CLK, CS, and specify that we will be using only 1 8x8 display LedControl lc=LedControl(12,11,10,1); // This hack was made because my interrupt buttons are not debounced. It was often triggering LOW multiple times, so // on each Interrupt i detach it and opposite pin (ex: I_DOWN and I_UP) and attach others if needed. // The 'cleaner' method would be to debounce each trigger programatically, but this was a first idea and it worked :) // So maybe later. void handleInterrupts() { if (moveVector == RIGHT || moveVector == LEFT) { detachInterrupt(digitalPinToInterrupt(I_RIGHT)); detachInterrupt(digitalPinToInterrupt(I_LEFT)); leftAttached = false; rightAttached = false; if (!downAttached) { attachInterrupt(digitalPinToInterrupt(I_DOWN), isr_down, FALLING); }; if (!upAttached) { attachInterrupt(digitalPinToInterrupt(I_UP), isr_up, FALLING); }; upAttached = true; downAttached = true; } else if (moveVector == UP || moveVector == DOWN) { detachInterrupt(digitalPinToInterrupt(I_UP)); detachInterrupt(digitalPinToInterrupt(I_DOWN)); upAttached = false; downAttached = false; if (!rightAttached) { attachInterrupt(digitalPinToInterrupt(I_RIGHT), isr_right, FALLING); }; if (!leftAttached) { attachInterrupt(digitalPinToInterrupt(I_LEFT), isr_left, FALLING); }; leftAttached = true; rightAttached = true; } } // Define interrupt methods void isr_left() { if(moveVector != RIGHT && snake[0][2] != RIGHT) { moveVector = LEFT; handleInterrupts(); } } void isr_right() { if(moveVector != LEFT && snake[0][2] != LEFT) { moveVector = RIGHT; handleInterrupts(); } } void isr_up() { if(moveVector != DOWN && snake[0][2] != DOWN) { moveVector = UP; handleInterrupts(); } } void isr_down() { if(moveVector != UP && snake[0][2] != UP) { moveVector = DOWN; handleInterrupts(); } } // Counts size of a snake int lenSnake() { int len = 0; int pos = 1; while(pos != 0) { pos = snake[len][2]; len++; } return len-1; }; // Moves all snake by one step void moveSnake() { for (int i = lenSnake()-1; i > 0; i--) { snake[i][0] = snake[i-1][0]; snake[i][1] = snake[i-1][1]; snake[i][2] = snake[i-1][2]; } moveHead(); } // Moves snakes head by one step void moveHead() { snake[0][2] = moveVector; int snakeHead = snake[0][2]; int snakeX = snake[0][0]; int snakeY = snake[0][1]; switch (snakeHead) { case LEFT: (snakeX == 0) ? snake[0][0] = 7 : snake[0][0]--; break; case RIGHT: (snakeX == 7) ? snake[0][0] = 0 : snake[0][0]++; break; case UP: (snakeY == 0) ? snake[0][1] = 7 : snake[0][1]--; break; case DOWN: (snakeY == 7) ? snake[0][1] = 0 : snake[0][1]++; break; } } // Debug method void printSnake() { Serial.println("---Printing snake:---"); for(int i = 0; i < lenSnake(); i++) { Serial.print(snake[i][0]); Serial.print(snake[i][1]); Serial.println(snake[i][2]); } Serial.println("-------------------"); } void generateFood() { int randX = (rand() % 8); int randY = (rand() % 8); if (snake[0][0] != randX && snake[0][1] != randY) { food[0] = randX; food[1] = randY; } else { generateFood(); } } bool checkCollision() { for(int i=1; i < lenSnake(); i++){ if (snake[0][0] == snake[i][0] && snake[0][1] == snake[i][1]){ return true; } } return false; } void growSnake() { int len = lenSnake(); snake[len][0] = snake[len-1][0]; snake[len][1] = snake[len-1][1]; snake[len][2] = ON; } void endGame() { while(true) { delay(500); lc.clearDisplay(0); delay(500); for(int i = 0; i < lenSnake(); i++) { lc.setLed(0, snake[i][1], snake[i][0], true); } lc.setLed(0, food[1], food[0], true); } } void setup() { Serial.begin(9600); lc.shutdown(0,false); lc.setIntensity(0,8); lc.clearDisplay(0); generateFood(); // Attach interrupts attachInterrupt(digitalPinToInterrupt(I_UP), isr_up, LOW); attachInterrupt(digitalPinToInterrupt(I_DOWN), isr_down, LOW); } void loop() { // Debugging if (Serial.available() > 0) { int recievedChar = Serial.read(); switch(recievedChar) { case 'u': moveVector = UP; break; case 'r': moveVector = RIGHT; break; case 'l': moveVector = LEFT; break; case 'd': moveVector = DOWN; break; } } // If snake hits it's own body then game is over if(checkCollision()) { endGame(); } // Clear display lc.clearDisplay(0); // Put food on display lc.setLed(0, food[1],food[0],true); // Draw snake for(int i = 0; i < lenSnake() ; i++){ lc.setLed(0, snake[i][1],snake[i][0],true); } moveSnake(); // If snake eats food then generate new food and grow snake if (snake[0][0] == food[0] && snake[0][1] == food[1]) { generateFood(); growSnake(); } delay(delaytime); }
[ "pask.mindaugas@gmail.com" ]
pask.mindaugas@gmail.com
f899a2cb6964c195e061b0466706e9de53b45a65
4979915833a11a0306b66a25a91fadd009e7d863
/src/ui/scenic/lib/flatland/default_flatland_presenter.h
f7344ff876b1ba3baf8ece772fa5b8504da99d55
[ "BSD-2-Clause" ]
permissive
dreamboy9/fuchsia
1f39918fb8fe71d785b43b90e0b3128d440bd33f
4ec0c406a28f193fe6e7376ee7696cca0532d4ba
refs/heads/master
2023-05-08T02:11:06.045588
2021-06-03T01:59:17
2021-06-03T01:59:17
373,352,924
0
0
NOASSERTION
2021-06-03T01:59:18
2021-06-03T01:58:57
null
UTF-8
C++
false
false
2,991
h
// Copyright 2020 The Fuchsia Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef SRC_UI_SCENIC_LIB_FLATLAND_DEFAULT_FLATLAND_PRESENTER_H_ #define SRC_UI_SCENIC_LIB_FLATLAND_DEFAULT_FLATLAND_PRESENTER_H_ #include <fuchsia/ui/scenic/internal/cpp/fidl.h> #include <lib/async/dispatcher.h> #include <memory> #include "src/ui/scenic/lib/flatland/flatland_presenter.h" #include "src/ui/scenic/lib/scheduling/frame_scheduler.h" #include "src/ui/scenic/lib/scheduling/id.h" namespace flatland { class DefaultFlatlandPresenter final : public FlatlandPresenter, public std::enable_shared_from_this<DefaultFlatlandPresenter> { public: // The |main_dispatcher| must be the dispatcher that GFX sessions run and update on. That thread // is typically refered to as the "main thread" or "render thread". explicit DefaultFlatlandPresenter(async_dispatcher_t* main_dispatcher); // Sets the FrameScheduler this DefaultFlatlandPresenter will use for frame scheduling calls. // This function should be called once before any Flatland clients begin making API calls. void SetFrameScheduler(const std::shared_ptr<scheduling::FrameScheduler>& frame_scheduler); // Return all release fences registered by RegisterPresent() for the specified sessions, up to and // including the corresponding PresentId. Typically, the caller will pass these release fences to // the DisplayCompositor, to be signaled at the appropriate time. std::vector<zx::event> TakeReleaseFences( const std::unordered_map<scheduling::SessionId, scheduling::PresentId>& highest_present_per_session); // |FlatlandPresenter| scheduling::PresentId RegisterPresent(scheduling::SessionId session_id, std::vector<zx::event> release_fences) override; // |FlatlandPresenter| void ScheduleUpdateForSession(zx::time requested_presentation_time, scheduling::SchedulingIdPair id_pair, bool squashable) override; // |FlatlandPresenter| void GetFuturePresentationInfos(scheduling::FrameScheduler::GetFuturePresentationInfosCallback presentation_infos_callback) override; // |FlatlandPresenter| void RemoveSession(scheduling::SessionId session_id) override; private: async_dispatcher_t* main_dispatcher_; std::weak_ptr<scheduling::FrameScheduler> frame_scheduler_; std::map<scheduling::SchedulingIdPair, std::vector<zx::event>> release_fences_; // Ask for 8 frames of information for GetFuturePresentationInfos(). const int64_t kDefaultPredictionInfos = 8; // The default frame interval assumes a 60Hz display. const zx::duration kDefaultFrameInterval = zx::usec(16'667); const zx::duration kDefaultPredictionSpan = kDefaultFrameInterval * kDefaultPredictionInfos; }; } // namespace flatland #endif // SRC_UI_SCENIC_LIB_FLATLAND_DEFAULT_FLATLAND_PRESENTER_H_
[ "commit-bot@chromium.org" ]
commit-bot@chromium.org
fcf46a693c7c61cd17f4f16a8f1c6219fcd92444
e12bf2accd38cb20e2b87877013c47e57be9ef0f
/Source/ToonTanks/Pawns/PawnTurret.cpp
84a08ab42a409355f01c48ff097f5d6ed644ce12
[]
no_license
daltonbr/ToonTanks
867cbd41226605b9ba7a0f3c9b911e1fd527eda4
e9ccb9657e847bfee8791699089d99fcf016485e
refs/heads/master
2023-01-23T04:36:41.904716
2020-11-20T08:29:46
2020-11-20T08:29:46
275,569,587
1
0
null
null
null
null
UTF-8
C++
false
false
1,111
cpp
// daltonlima.com #include "PawnTurret.h" #include "PawnTank.h" #include "Kismet/GameplayStatics.h" void APawnTurret::Tick(float DeltaTime) { Super::Tick(DeltaTime); if (!PlayerPawn || GetDistanceToPlayer() > FireRange) { return; } RotateTurret(PlayerPawn->GetActorLocation()); } void APawnTurret::CheckFireCondition() { if (PlayerPawn == nullptr || PlayerPawn->GetIsPlayerAlive() == false) { return; } if (GetDistanceToPlayer() <= FireRange) { Fire(); } } float APawnTurret::GetDistanceToPlayer() const { if (!PlayerPawn) { return 0.0f; } return FVector::Dist(PlayerPawn->GetActorLocation(), GetActorLocation()); } void APawnTurret::BeginPlay() { Super::BeginPlay(); GetWorld()->GetTimerManager().SetTimer(FireRateTimerHandle, this, &APawnTurret::CheckFireCondition, FireRate, true); PlayerPawn = Cast<APawnTank>(UGameplayStatics::GetPlayerPawn(this, 0)); } void APawnTurret::HandleDestruction() { // Call base Pawn class HandleDestruction to play effects. Super::HandleDestruction(); Destroy(); }
[ "daltonvarussa@gmail.com" ]
daltonvarussa@gmail.com
8a71d9dc1c16562c7f0ed8a200963ecafb8f6081
9bda740bf1b40f2a644fb5f15d26c386f3452602
/plugins/GFLLibraryBuilder/Builder.cpp
f395f0eec7395facfa99364cc53202304305ec86
[]
no_license
ivan386/Shareaza
32f8f7c572835383d16f38fef3577c6e4523e4c0
0c2f2f56c8294c930f26463a522057d00ed319fa
refs/heads/ipv6
2023-01-11T11:24:13.295702
2019-08-07T23:22:14
2019-08-07T23:22:14
13,932,006
128
42
null
2022-12-29T17:38:18
2013-10-28T16:46:31
C
UTF-8
C++
false
false
3,650
cpp
// // Builder.cpp : Implementation of CBuilder // // Copyright (c) Nikolay Raspopov, 2005-2014. // This file is part of SHAREAZA (shareaza.sourceforge.net) // // Shareaza is free software; you can redistribute it // and/or modify it under the terms of the GNU General Public License // as published by the Free Software Foundation; either version 2 of // the License, or (at your option) any later version. // // Shareaza is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with Shareaza; if not, write to the Free Software // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // #include "stdafx.h" #include "Builder.h" STDMETHODIMP CBuilder::Process ( /* [in] */ BSTR sFile, /* [in] */ ISXMLElement* pXML) { if (!pXML) return E_POINTER; CComPtr <ISXMLElements> pISXMLRootElements; HRESULT hr = pXML->get_Elements(&pISXMLRootElements); if (FAILED (hr)) return hr; CComPtr <ISXMLElement> pXMLRootElement; hr = pISXMLRootElements->Create (CComBSTR ("images"), &pXMLRootElement); if (FAILED (hr)) return hr; CComPtr <ISXMLAttributes> pISXMLRootAttributes; hr = pXMLRootElement->get_Attributes(&pISXMLRootAttributes); if (FAILED (hr)) return hr; pISXMLRootAttributes->Add (CComBSTR ("xmlns:xsi"), CComBSTR ("http://www.w3.org/2001/XMLSchema-instance")); pISXMLRootAttributes->Add (CComBSTR ("xsi:noNamespaceSchemaLocation"), CComBSTR ("http://www.shareaza.com/schemas/image.xsd")); CComPtr <ISXMLElements> pISXMLElements; hr = pXMLRootElement->get_Elements(&pISXMLElements); if (FAILED (hr)) return hr; CComPtr <ISXMLElement> pXMLElement; hr = pISXMLElements->Create (CComBSTR ("image"), &pXMLElement); if (FAILED (hr)) return hr; CComPtr <ISXMLAttributes> pISXMLAttributes; hr = pXMLElement->get_Attributes(&pISXMLAttributes); if (FAILED (hr)) return hr; GFL_FILE_INFORMATION inf = {}; GFL_ERROR err = gflGetFileInformationW( (LPCWSTR)sFile, -1, &inf ); if ( err != GFL_NO_ERROR ) { WCHAR pszPath[ MAX_PATH * 2 ] = {}; if ( GetShortPathNameW( (LPCWSTR)sFile, pszPath, MAX_PATH * 2 ) ) err = gflGetFileInformationW( pszPath, -1, &inf ); else err = GFL_ERROR_FILE_OPEN; } if ( err == GFL_NO_ERROR ) { if ( inf.Height > 0 ) { CString height; height.Format( _T("%d"), inf.Height ); pISXMLAttributes->Add( CComBSTR( "height" ), CComBSTR( height ) ); } if ( inf.Width > 0 ) { CString width; width.Format( _T("%d"), inf.Width ); pISXMLAttributes->Add( CComBSTR( "width" ), CComBSTR( width ) ); } if ( *inf.Description ) { pISXMLAttributes->Add( CComBSTR( "description" ), CComBSTR( inf.Description ) ); } CString colors; GFL_UINT16 bits = inf.ComponentsPerPixel * inf.BitsPerComponent; if ( inf.ColorModel == GFL_CM_GREY ) colors = _T("Greyscale"); else if ( bits == 0 ) ; // No bits else if ( bits == 1 ) colors = _T("2"); else if ( bits == 2 ) colors = _T("4"); else if ( bits <= 4 ) colors = _T("16"); else if ( bits <= 8 ) colors = _T("256"); else if ( bits <= 16 ) colors = _T("64K"); else if ( bits <= 24 ) colors = _T("16.7M"); else colors = _T("16.7M + Alpha"); if ( colors.GetLength() ) pISXMLAttributes->Add( CComBSTR ("colors"), CComBSTR( colors ) ); } else hr = E_FAIL; return hr; }
[ "raspopov@3231ed4b-2112-0410-84e0-8c3944a40730" ]
raspopov@3231ed4b-2112-0410-84e0-8c3944a40730
72da24880d919abc51b1b65029cb03198b21cf57
fa274ec4f0c66c61d6acd476e024d8e7bdfdcf54
/Meu-Codebook/Estrutura de Dados/map.cpp
8f4bebdf33043ca6a0147e6204efd0de3f707bd5
[]
no_license
luanaamorim04/Competitive-Programming
1c204b9c21e9c22b4d63ad425a98f4453987b879
265ad98ffecb304524ac805612dfb698d0a419d8
refs/heads/master
2023-07-13T03:04:51.447580
2021-08-11T00:28:57
2021-08-11T00:28:57
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,005
cpp
#include<bits/stdc++.h> #define _ ios_base::sync_with_stdio(0); #define i64 long long #define ii pair<int,int> #define ll pair<i64,i64> #define vi vector<int> #define vs vector<string> #define vii vector<ii> #define vvii vector<vii> #define fs first #define sc second #define eb emplace_back using namespace std; int n,x,m; string s; map<string,int> id;//ordenado map<string,int>::iterator it; int main(){_ while (cin>>n>>m){ id["ruiz"]=9; for (int i=n;i--;){ cin>>s>>x; id[s]=x; } while (m--){ cin>>s; if (id.find(s)!=id.end()){ cout<<id[s]<<endl; } else{ cout<<0<<endl; } } cout<<"MAP"<<endl; /* for (it=id.begin(); it!=id.end(); it++){ cout<<(it->first)<<" "<<(it->second)<<endl; }*/ for (auto p : id){ cout<<p.fs<<" "<<p.sc<<endl; } id.clear(); } return 0; }
[ "fepaf.eng@uea.edu.br" ]
fepaf.eng@uea.edu.br
30a1a07f444a95e9ea5e0f960bfa42c3870d2219
912cd9c4baebaf6df91b9d0b364b22e3e59f72de
/src/add-ons/translators/libtifftranslator/TIFFView.cpp
92d8d3d99b972c957f501971911a537f69b52ae1
[]
no_license
D-os/cosmoe
994ad2ead11a7fd4a4a18f2e48589e664d767ea3
ff9803afcfa6ef588548dfb850f55a098d84ee13
refs/heads/master
2020-03-07T21:59:47.239870
2014-11-10T15:46:12
2014-11-10T15:46:12
127,742,119
1
1
null
2018-04-02T10:34:39
2018-04-02T10:34:39
null
UTF-8
C++
false
false
6,293
cpp
/*****************************************************************************/ // TIFFView // Written by Michael Wilber, OBOS Translation Kit Team // Picking the compression method added by Stephan Aßmus, <stippi@yellowbites.com> // // TIFFView.cpp // // This BView based object displays information about the TIFFTranslator. // // // Copyright (c) 2003 OpenBeOS Project // // 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 <stdio.h> #include <string.h> #include <MenuBar.h> #include <MenuField.h> #include <MenuItem.h> #include <PopUpMenu.h> #include "tiff.h" #include "tiffvers.h" #include "TIFFTranslator.h" #include "TIFFTranslatorSettings.h" #include "TIFFView.h" // add_menu_item void add_menu_item(BMenu* menu, uint32 compression, const char* label, uint32 currentCompression) { // COMPRESSION_NONE BMessage* message = new BMessage(TIFFView::MSG_COMPRESSION_CHANGED); message->AddInt32("value", compression); BMenuItem* item = new BMenuItem(label, message); item->SetMarked(currentCompression == compression); menu->AddItem(item); } // --------------------------------------------------------------- // Constructor // // Sets up the view settings // // Preconditions: // // Parameters: // // Postconditions: // // Returns: // --------------------------------------------------------------- TIFFView::TIFFView(const BRect &frame, const char *name, uint32 resize, uint32 flags, TIFFTranslatorSettings* settings) : BView(frame, name, resize, flags), fSettings(settings) { SetViewColor(ui_color(B_PANEL_BACKGROUND_COLOR)); BPopUpMenu* menu = new BPopUpMenu("pick compression"); uint32 currentCompression = fSettings->SetGetCompression(); // create the menu items with the various compression methods add_menu_item(menu, COMPRESSION_NONE, "None", currentCompression); menu->AddSeparatorItem(); add_menu_item(menu, COMPRESSION_PACKBITS, "RLE (Packbits)", currentCompression); add_menu_item(menu, COMPRESSION_DEFLATE, "ZIP (Deflate)", currentCompression); add_menu_item(menu, COMPRESSION_LZW, "LZW", currentCompression); // TODO: the disabled compression modes are not configured in libTIFF // menu->AddSeparatorItem(); // add_menu_item(menu, COMPRESSION_JPEG, "JPEG", currentCompression); // TODO ? - strip encoding is not implemented in libTIFF for this compression // add_menu_item(menu, COMPRESSION_JP2000, "JPEG2000", currentCompression); fCompressionMF = new BMenuField(BRect(20, 50, 215, 70), "compression", "Use Compression:", menu, true); AddChild(fCompressionMF); } // --------------------------------------------------------------- // Destructor // // Does nothing // // Preconditions: // // Parameters: // // Postconditions: // // Returns: // --------------------------------------------------------------- TIFFView::~TIFFView() { fSettings->Release(); } // --------------------------------------------------------------- // MessageReceived // // Handles state changes of the Compression menu field // // Preconditions: // // Parameters: area, not used // // Postconditions: // // Returns: // --------------------------------------------------------------- void TIFFView::MessageReceived(BMessage* message) { switch (message->what) { case MSG_COMPRESSION_CHANGED: { uint32 value; if (message->FindInt32("value", (int32*)&value) >= B_OK) { fSettings->SetGetCompression(&value); fSettings->SaveSettings(); } break; } default: BView::MessageReceived(message); } } // --------------------------------------------------------------- // AllAttached // // sets the target for the controls controlling the configuration // // Preconditions: // // Parameters: area, not used // // Postconditions: // // Returns: // --------------------------------------------------------------- void TIFFView::AllAttached() { fCompressionMF->Menu()->SetTargetForItems(this); } // --------------------------------------------------------------- // Draw // // Draws information about the TIFFTranslator to this view. // // Preconditions: // // Parameters: area, not used // // Postconditions: // // Returns: // --------------------------------------------------------------- void TIFFView::Draw(BRect area) { SetFont(be_bold_font); font_height fh; GetFontHeight(&fh); float xbold, ybold; xbold = fh.descent + 1; ybold = fh.ascent + fh.descent * 2 + fh.leading; char title[] = "OpenBeOS TIFF Image Translator"; DrawString(title, BPoint(xbold, ybold)); SetFont(be_plain_font); font_height plainh; GetFontHeight(&plainh); float yplain; yplain = plainh.ascent + plainh.descent * 2 + plainh.leading; char detail[100]; sprintf(detail, "Version %d.%d.%d %s", static_cast<int>(TIFF_TRANSLATOR_VERSION >> 8), static_cast<int>((TIFF_TRANSLATOR_VERSION >> 4) & 0xf), static_cast<int>(TIFF_TRANSLATOR_VERSION & 0xf), __DATE__); DrawString(detail, BPoint(xbold, yplain + ybold)); int32 lineno = 6; DrawString("TIFF Library:", BPoint(xbold, yplain * lineno + ybold)); lineno += 2; char libtiff[] = TIFFLIB_VERSION_STR; char *tok = strtok(libtiff, "\n"); while (tok) { DrawString(tok, BPoint(xbold, yplain * lineno + ybold)); lineno++; tok = strtok(NULL, "\n"); } }
[ "ithamar@upgrade-android.com" ]
ithamar@upgrade-android.com
24a488600433e4ed7a6824552a3d95f47a44467b
1018341eb1f2815f93191cc244098b5d472efa75
/src/librt/include/Surface.h
fd2f05a97ce47eb58cd223fb1aac302678f3c5c8
[]
no_license
Jcvarela/Computer-Graphics-proj3-SceneMani
bc55a8f1d0ff7bdc3448411fef06b349ba132c79
ee1108bbf9a4e17eaed6ddfc420319e1fb236519
refs/heads/master
2021-01-23T02:35:29.420342
2017-03-24T00:31:36
2017-03-24T00:31:36
86,009,882
0
0
null
null
null
null
UTF-8
C++
false
false
1,374
h
//------------------------------------------------------------------------------ // Copyright 2015 Corey Toler-Franklin, University of Florida // Surface.h // Defines the base class for surfaces //----------------------------------------------------------------------------- #ifndef _SURFACE_H #define _SURFACE_H #include "STVector3.h" #include "Ray.h" #include "Intersection.h" #include "defs.h" #include "Lists.h" class Surface { public: Surface(void); Surface (std::string name); ~Surface (void); virtual void draw(); virtual bool FindIntersection (Ray ray, Intersection *pIntersection){ return(false);} int FindClosestIntersection (Intersection *pIntersection); STVector3 GetPosition (); std::string getSurfaceNmae(); void setSurfaceNmae(std::string name); STVector3 m_a; STVector3 m_b; STVector3 m_c; float m_radius; std::string m_name; protected: IntersectionList m_intersections; STVector3 m_center; }; #endif //_SURFACE_H
[ "jcvarela@live.com" ]
jcvarela@live.com
738336285f2d807ddd504bf1fa3d571d3b79fca7
421e42d72c69ee97c5da282fca8d1316177c3214
/task01/task0120.cpp
889d58e80b6272fbfcf56b6510aab1dbb1944105
[]
no_license
derand/cpp_tasks
50d1344e0165f892a30fafeef9a020d91fca22d7
2be2c359b648796186df6babd48dfec3f6582e65
refs/heads/master
2021-01-10T11:59:20.544776
2016-02-03T15:20:00
2016-02-03T15:20:00
49,011,532
0
0
null
null
null
null
UTF-8
C++
false
false
441
cpp
#include <iostream> #include <stdlib.h> #include <cmath> using namespace std; int main(int argc, const char *argv[]) { float m, n; cout << "Enter m:"; cin >> m; cout << "Enter n:"; cin >> n; float z1 = ((m-1) * sqrt(m) - (n-1)*sqrt(n)) / (sqrt(pow(m, 3.0)*n) + m*n + m*m - m); float z2 = (sqrt(m) - sqrt(n)) / m; cout << "z1=" << z1 << "\nz2=" << z2 << "\ndiff=" << fabs(z1 - z2) << "\n"; return 0; }
[ "2derand@gmail.com" ]
2derand@gmail.com
e517c7343d3c8a269902de8fbc974bab38d91563
ebade0c5d9aa64f9bff35518bf611afef28e6bc5
/ZFFramework/src/ZFCore/ZFObjectDef/ZFSerializableDef.h
9be2cc71a99c9678528bbff3325b4fe3ae9dd5d3
[ "MIT" ]
permissive
lyhistory/ZFFramework
e9c58db2efa9428ed51fa58a4f65a88886b8ddfc
a61357a4e5211960fe6769265627ddcf6330e937
refs/heads/master
2021-01-14T08:31:05.709692
2015-12-26T03:17:30
2015-12-26T03:17:30
null
0
0
null
null
null
null
UTF-8
C++
false
false
35,169
h
/* ====================================================================== * * Copyright (c) 2010-2015 ZSaberLv0 * home page: http://ZFFramework.com * blog: http://zsaber.com * contact: master@zsaber.com (Chinese and English only) * * * Distributed under MIT license: * * 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. * ====================================================================== */ /** * @file ZFSerializableDef.h * @brief serializable interface * @copyright ZSaberLv0 http://ZFFramework.com */ #ifndef _ZFI_ZFSerializableDef_h_ #define _ZFI_ZFSerializableDef_h_ #include "ZFSerializableDataDef.h" ZF_NAMESPACE_GLOBAL_BEGIN /** * @brief keyword for #ZFSerializable to hold styleable's type, * see #ZFSerializable::serializableStyleableTypeSet */ #define ZFSerializableKeyword_styleableType zfText("styleableType") /** * @brief keyword for #ZFSerializable to hold styleable's data, * see #ZFSerializable::serializableStyleableTypeSet */ #define ZFSerializableKeyword_styleableData zfText("styleableData") /** * @brief keyword for #ZFSerializable to hold owner tag, * see #ZFSerializableOwnerTagSet */ #define ZFSerializableKeyword_ownerTag zfText("ownerTag") /** * @brief used for #ZFSerializable to override default constructor * * by default, serializable would be created by #ZFClass::newInstance while serializing from data, * you may supply this method to override: * - static zfautoObject serializableNewInstance(void); * * the method should be supplied as #ZFMethod, and is recommended to register it statically by #ZFMETHOD_REGISTER\n * the method should return a newly created object, or retain your existing singleton instance\n * typically this method is used to achieve some singleton logic */ #define ZFSerializableKeyword_serializableNewInstanceSig serializableNewInstance /** * @brief see #ZFSerializableKeyword_serializableNewInstanceSig */ #define ZFSerializableKeyword_serializableNewInstance ZFMACRO_TOSTRING(ZFSerializableKeyword_serializableNewInstanceSig) zfclassFwd _ZFP_ZFSerializable_PropertyTypeHolder; // ============================================================ /** * @brief base class of call serializable object * * a serializable object can be encoded to and decoded from a string data, * use #ZFSerializableData to store necessary data\n * a ZFSerializableData can hold these datas: * - serializable class: * ZFObject's class name or other non-ZFObject's type name, * such as "ZFString", "zfstring" and "zfint" * - reference info: * used to hold reference info, * see #ZFSERIALIZABLEDATA_REFERENCE_TYPE_DEFINE for more info * - property name: * used only when the serializable belongs to another serializable, * it's the property name, * and is ensured stored in attributes with "name" as the attribute name * - property value: * used only when the serializable can be converted directly to a type, * and is ensured stored in attributes with "value" as the attribute name * - category: * used to mark the node should be resolved specially, * and is ensured stored in attributes with "category" as the attribute name * - attributes: * used to hold extra type datas for the owner * - elements: * used to hold properties of the serializable, * it's a ZFSerializableData too * * ZFSerializableData can be converted from and to xml elements, * to make it easier to understand, * here's a typical serializable data in xml format that shows the types: * @code * // assume we have a object hold a ZFArray as retain property: * zfclass TestClass : zfextends ZFSerializable * { * ZFOBJECT_DECLARE(TestClass, ZFSerializable) * ZFPROPERTY_RETAIN(ZFArray *, testProperty) * ... * }; * * // we have a ZFSerializableData like: * <TestClass test="test"> * <ZFArray name="testProperty"> * <ZFString> * <zfstring name="src" value="string content" /> * </ZFString> * </ZFArray> * <SomeType category="CategoryName" /> * </TestClass> * @endcode * in this example: * - the "TestClass" in "<TestClass>" is a serializable class * - the "src" in "<zfstring name="src"..." is a property name * - the "string content" in "<zfstring ... value="string content" />" is a property value * - the "test="test"" in "<TestClass test="test">" is a attribute * - the "category" in "<SomeType category="CategoryName" />" is a category * that should be resolved by subclass during #serializableOnSerializeCategoryFromData * * we have these builtin keywords for serializable data, * you should not use them as attribute name: * - "name": * shows the serializable is it's parent's property, * and the name is the property's name * - "value": * for basic type only, the value for the basic type * - "refType", "refData": * for advanced reference logic, * see #ZFSERIALIZABLEDATA_REFERENCE_TYPE_DEFINE * - "category": * if exist this attribute, * ZFSerializable would ignore this node and leave it to subclass to decode * - "styleableType", "styleableData" * for advanced styleable logic, see #ZFSTYLE_DEFAULT_DECLARE for more info * - "ownerTag" * for serializing elements that reference to external object, * see #ZFSerializableOwnerTagSet * * \n * a simplest way to implement ZFSerializable is: * - declare your object, and make it implement ZFSerializable, * by default, all #ZFProperty would be auto serialized * * \n * if your object has extra serialize step to do, you may want to: * - override #serializableOnCheck to check serializable depending on current object state * - override one or more of these methods to achieve custom serialize step: * - #serializableOnSerializeCategoryFromData / #serializableOnSerializeCategoryToData * - #serializableOnSerializePropertyFromData / #serializableOnSerializePropertyToData * - #serializableOnSerializeEmbededPropertyFromData / #serializableOnSerializeEmbededPropertyToData * - #serializableOnSerializeFromData / #serializableOnSerializeToData * - take care of referencedOwnerOrNull while serialize to data, * where you should implement reference logic for your custom serialize step\n * by default, serializable property and embeded property's reference logic * would be done by ZFSerializable automatically, * but you should take care of category's reference logic manually * * * \n * typically you should override * #serializableOnSerializeCategoryFromData and #serializableOnSerializeCategoryToData * to supply custom serialize step\n * \n * ADVANCED:\n * serializable would be created by #ZFClass::newInstance while serializing from data, * you may supply your custom constructor, * see #ZFSerializableKeyword_serializableNewInstance\n * \n * ADVANCED:\n * serializable also supply styleable logic: * @code * <YourSerializable styleableType="type" styleableData="data" /> * @endcode * the reserved keyword "styleableType" and "styleableData" shows the styleable's source, * which would be created by #ZFObjectCreate, * created object must be #ZFSerializable and #ZFStyleable, * and would be copied to the object being serialized by #ZFStyleable::styleableCopyFrom\n * for typical styleable usage, see #ZFSTYLE_DEFAULT_DECLARE * @note styleable logic and reference logic can not be used together * @note comparing with reference logic, * styleable logic would create a styleable object first then copy style from it, * reference logic would load reference to serializable data then serialize from it, * usually reference logic would have better performance, * and styleable logic would have better flexibility */ zfinterface ZF_ENV_EXPORT ZFSerializable : zfextends ZFInterface { ZFINTERFACE_DECLARE_ALLOW_CUSTOM_CONSTRUCTOR(ZFSerializable, ZFInterface) // ============================================================ // edit mode public: /** @brief see #ZFSerializable::editModeData */ zfclassLikePOD ZF_ENV_EXPORT EditModeData { public: /** @brief see #ZFSerializable::editModeData */ const ZFClass *wrappedClass; /** @brief see #ZFSerializable::editModeData */ ZFCoreMap wrappedProperties; /** @brief see #ZFSerializable::editModeData */ ZFCoreMap wrappedCategories; }; /** * @brief internal use only * * map of <className, #ZFSerializable::EditModeData>\n * used to store class data that currently not registered, * so that it can be serialized to data without data loss\n * \n * for normal serialize logic, we will reflect class type by #ZFClass::classForName, * so if the class is not registered currently, * we are unable to find it, * such as some plugin designed module, * can't be found until plugin has been loaded\n * to resolve the problem, we introduced this editMode, * which can map unknown type to existing class, * so that unknown type's serialize step can be done normally * with the logic of existing class\n * \n * edit mode data stores unresolved class name and serializable data to * #editModeWrappedClassName and #editModeWrappedElementDatas, * which should be resolved later */ static ZFCoreMap &editModeData(void); /** @brief see #ZFSerializable::editModeData */ static zfbool &editMode(void); private: zfchar *_ZFP_ZFSerializable_editModeWrappedClassName; ZFCoreArray<ZFSerializableData> *_ZFP_ZFSerializable_editModeWrappedElementDatas; public: /** @brief see #ZFSerializable::editModeData */ virtual const zfchar *editModeWrappedClassName(void); /** @brief see #ZFSerializable::editModeData */ virtual void editModeWrappedClassNameSet(ZF_IN const zfchar *value); /** @brief see #ZFSerializable::editModeData */ virtual ZFCoreArray<ZFSerializableData> &editModeWrappedElementDatas(void); // ============================================================ protected: /** @cond ZFPrivateDoc */ ZFSerializable(void); /** @endcond */ virtual ~ZFSerializable(void); public: /** * @brief true if object is currently serializable, see #ZFSerializable * * subclass should override #serializableOnCheck to check whether serializable\n * some object may be serializable or not depends on content * @note you must check super's state first if override * @see ZFSerializable */ zffinal zfbool serializable(void); /** * @brief serialize from data, see #ZFSerializable * * note that for performance, this method won't check whether serializable before execute */ zffinal zfbool serializeFromData(ZF_IN const ZFSerializableData &serializableData, ZF_OUT_OPT zfstring *outErrorHintToAppend = zfnull, ZF_OUT_OPT const ZFSerializableData **outErrorPos = zfnull); /** * @brief serialize to data, see #ZFSerializable * * note that for performance, this method won't check whether serializable before execute\n * \n * ADVANCED:\n * the param named "referenced" is used to override ref/style logic, * all result serializable data that same as the referenced's one * would be ignored, * this is usually for internal use only */ zffinal zfbool serializeToData(ZF_OUT ZFSerializableData &serializableData, ZF_OUT_OPT zfstring *outErrorHintToAppend = zfnull, ZF_IN_OPT ZFSerializable *referencedObject = zfnull); private: _ZFP_ZFSerializable_PropertyTypeHolder *_ZFP_ZFSerializable_propertyTypeHolder; zffinal _ZFP_ZFSerializable_PropertyTypeHolder *_ZFP_ZFSerializable_getPropertyTypeHolder(void); public: /** * @brief get all serializable property, usually for debug only, see #serializableOnCheckPropertyType */ zffinal const ZFCoreArrayPOD<const ZFProperty *> serializableGetAllSerializableProperty(void); /** * @brief get all serializable embeded property, usually for debug only, see #serializableOnCheckPropertyType */ zffinal const ZFCoreArrayPOD<const ZFProperty *> serializableGetAllSerializableEmbededProperty(void); public: /** * @brief serializable property type, see #ZFSerializable::serializableOnCheckPropertyType */ typedef enum { /** * @brief see #ZFSerializable::serializableOnCheckPropertyType */ PropertyTypeNotSerializable, /** * @brief see #ZFSerializable::serializableOnCheckPropertyType */ PropertyTypeSerializableProperty, /** * @brief see #ZFSerializable::serializableOnCheckPropertyType */ PropertyTypeEmbededProperty, } PropertyType; protected: /** * @brief check the property type that serializable should do what while serializing * * properties declared in ZFSerializalbe have these types: * - not serializable: * - the property is not serializable and should be manually serialized if necessary * - normal serializable property: * - the property would be serialized automatically * during #serializableOnSerializePropertyFromData and #serializableOnSerializePropertyToData * - while serializing from data, * ZFSerializable will serialize a property's new instance and then set to the property * - by default, a property is treated as normal serializable property if: * - the property's setter and getter is not private * - the property is retain property and its type is ZFSerializable * - the property is assign property and its type is registered by #ZFPROPERTY_TYPE_DECLARE * - embeded serializable property:\n * - the property would be serialized automatically * during #serializableOnSerializeEmbededPropertyFromData and #serializableOnSerializeEmbededPropertyToData * - while serializing from data, * ZFSerializable will directly serialize the data to property instance * (do nothing if property is null) * - by default, a property is treated as normal serializable property if: * - the property is retain property and its type is ZFSerializable * - the property's setter is private and getter is not private * - if a property is an embeded property, * you must ensure it's not null while serializing, * otherwise, serializing would fail * * \n * subclass may override this method to make ZFSerializable ignore or force serialize some property, * but you must make sure it's logical valid\n * ignored property (i.e. PropertyTypeNotSerializable) can be manually serialized * during #serializableOnSerializeFromData and #serializableOnSerializeToData */ virtual ZFSerializable::PropertyType serializableOnCheckPropertyType(ZF_IN const ZFProperty *property); protected: /** * @brief see #serializable */ virtual zfbool serializableOnCheck(void) { return zftrue; } /** * @brief for serializable data that has "category" attribute, * ZFSerializable would ignore it and leave it to subclass to resolve, * see #ZFSerializable * * while overriding this method, you should call super first, * and then check whether super has resolved the data\n * if subclass should resolve the category, * you should mark data as resolved and return whether resolve success\n * if not, subclass should leave the data unresoved and return true */ virtual zfbool serializableOnSerializeCategoryFromData(ZF_IN const ZFSerializableData &ownerData, ZF_OUT_OPT zfstring *outErrorHintToAppend = zfnull, ZF_OUT_OPT const ZFSerializableData **outErrorPos = zfnull) { return zftrue; } /** * @brief corresponding to #serializableOnSerializeCategoryFromData, * return whether the task is success, * see #ZFSerializable * * while overriding this method, * you should manage the reference logic manually, * see #serializableRefInfoSet */ virtual zfbool serializableOnSerializeCategoryToData(ZF_IN_OUT ZFSerializableData &ownerData, ZF_IN ZFSerializable *referencedOwnerOrNull, ZF_OUT_OPT zfstring *outErrorHintToAppend = zfnull) { return zftrue; } /** * @brief see #serializableOnCheckPropertyType, usually you have no need to override this method, * see #ZFSerializable * * if subclass override this method, you should check whether it's resolved by parent, * and then mark data as resolved and return whether resolve success * @code * zfbool YourType::serializableOnSerializePropertyFromData(...) * { * if(!SuperSerializable::serializableOnSerializePropertyFromData(...)) * { * return zffalse; * } * if(categoryData.resolved()) * { * return zftrue; * } * * // mark resolve if you have resolved * // or don't mark to leave it to subclass * propertyData.resolveMark(); * * return zftrue; * } * @endcode */ virtual zfbool serializableOnSerializePropertyFromData(ZF_IN const ZFSerializableData &propertyData, ZF_IN const ZFProperty *property, ZF_OUT_OPT zfstring *outErrorHintToAppend = zfnull, ZF_OUT_OPT const ZFSerializableData **outErrorPos = zfnull); /** * @brief see #serializableOnCheckPropertyType, usually you have no need to override this method, * see #ZFSerializable * * set serializable class to null to show the property is in init value state * and have no need to be serialized */ virtual zfbool serializableOnSerializePropertyToData(ZF_OUT ZFSerializableData &propertyData, ZF_IN const ZFProperty *property, ZF_IN ZFSerializable *referencedOwnerOrNull, ZF_OUT_OPT zfstring *outErrorHintToAppend = zfnull); /** * @brief see #serializableOnCheckPropertyType, usually you have no need to override this method, * see #ZFSerializable */ virtual zfbool serializableOnSerializeEmbededPropertyFromData(ZF_IN const ZFSerializableData &propertyData, ZF_IN const ZFProperty *property, ZF_OUT_OPT zfstring *outErrorHintToAppend = zfnull, ZF_OUT_OPT const ZFSerializableData **outErrorPos = zfnull); /** * @brief see #serializableOnCheckPropertyType, usually you have no need to override this method, * see #ZFSerializable * * set serializable class to null to show the property is in init value state * and have no need to be serialized */ virtual zfbool serializableOnSerializeEmbededPropertyToData(ZF_OUT ZFSerializableData &propertyData, ZF_IN const ZFProperty *property, ZF_IN ZFSerializable *referencedOwnerOrNull, ZF_OUT_OPT zfstring *outErrorHintToAppend = zfnull); /** * @brief see #serializeFromData */ virtual zfbool serializableOnSerializeFromData(ZF_IN const ZFSerializableData &serializableData, ZF_OUT_OPT zfstring *outErrorHintToAppend = zfnull, ZF_OUT_OPT const ZFSerializableData **outErrorPos = zfnull) { return zftrue; } /** * @brief see #serializeToData */ virtual zfbool serializableOnSerializeToData(ZF_OUT ZFSerializableData &serializableData, ZF_IN ZFSerializable *referencedOwnerOrNull, ZF_OUT_OPT zfstring *outErrorHintToAppend = zfnull) { return zftrue; } public: /** * @brief get info as a serializable */ virtual void serializableGetInfoT(ZF_IN_OUT zfstring &ret); /** @brief see #serializableGetInfoT */ virtual inline zfstring serializableGetInfo(void) { zfstring ret; ret.capacitySet(32); this->serializableGetInfoT(ret); return ret; } /** * @brief get verbose info as a serializable */ virtual void serializableGetInfoVerboseT(ZF_IN_OUT zfstring &ret); /** @brief see #serializableGetInfoVerboseT */ virtual inline zfstring serializableGetInfoVerbose(void) { zfstring ret; ret.capacitySet(32); this->serializableGetInfoVerboseT(ret); return ret; } public: /** * @brief internal use only * * used to copy serializable info from another serializable, * so that this object can serialize to data with the same behavior * of the source serializable object\n * the anotherSerializable must be same as this object */ virtual void serializableCopyInfoFrom(ZF_IN ZFSerializable *anotherSerializable); private: ZFCoreMap *_ZFP_ZFSerializable_referenceInfoMap; // ZFSerializableData * public: /** * @brief used to store reference info for subclass, * see #ZFSERIALIZABLEDATA_REFERENCE_TYPE_DEFINE for more info * * reference info would be stored as #ZFSerializableData, * you should only store refType and refData by * #ZFSerializableData::referenceRefTypeSet and #ZFSerializableData::referenceRefDataSet, * or store child reference info by add child data\n * reference info would be cleared automatically before next time you serializing from data */ zffinal void serializableRefInfoSet(ZF_IN const zfchar *key, ZF_IN const ZFSerializableData *referenceInfo); /** * @brief see #serializableRefInfoSet */ zffinal void serializableRefInfoSet(ZF_IN const zfchar *key, ZF_IN const ZFSerializableData &referenceInfo) { this->serializableRefInfoSet(key, &referenceInfo); } /** * @brief see #serializableRefInfoSet */ zffinal const ZFSerializableData *serializableRefInfoGet(ZF_IN const zfchar *key); /** * @brief see #serializableRefInfoSet */ inline void serializableRefInfoSetForProperty(ZF_IN const ZFProperty *property, ZF_IN const ZFSerializableData *referenceInfo) { this->serializableRefInfoSet(zfstringWithFormat(zfText("p:%s"), property->propertyName()).cString(), referenceInfo); } /** * @brief see #serializableRefInfoSet */ inline void serializableRefInfoSetForProperty(ZF_IN const ZFProperty *property, ZF_IN const ZFSerializableData &referenceInfo) { this->serializableRefInfoSetForProperty(property, &referenceInfo); } /** * @brief see #serializableRefInfoSet */ inline const ZFSerializableData *serializableRefInfoGetForProperty(ZF_IN const ZFProperty *property) { return this->serializableRefInfoGet(zfstringWithFormat(zfText("p:%s"), property->propertyName()).cString()); } /** * @brief see #serializableRefInfoSet */ inline void serializableRefInfoSetForCategory(ZF_IN const zfchar *category, ZF_IN const ZFSerializableData *referenceInfo) { this->serializableRefInfoSet(zfstringWithFormat(zfText("c:%s"), category).cString(), referenceInfo); } /** * @brief see #serializableRefInfoSet */ inline void serializableRefInfoSetForCategory(ZF_IN const zfchar *category, ZF_IN const ZFSerializableData &referenceInfo) { this->serializableRefInfoSetForCategory(category, &referenceInfo); } /** * @brief see #serializableRefInfoSet */ inline const ZFSerializableData *serializableRefInfoGetForCategory(ZF_IN const zfchar *category) { return this->serializableRefInfoGet(zfstringWithFormat(zfText("c:%s"), category).cString()); } /** * @brief see #serializableRefInfoSet */ inline void serializableRefInfoSetForClass(ZF_IN const ZFClass *cls, ZF_IN const zfchar *name, ZF_IN const ZFSerializableData *referenceInfo) { this->serializableRefInfoSet(zfstringWithFormat(zfText("%s:%s"), cls->className(), name).cString(), referenceInfo); } /** * @brief see #serializableRefInfoSet */ inline void serializableRefInfoSetForClass(ZF_IN const ZFClass *cls, ZF_IN const zfchar *name, ZF_IN const ZFSerializableData &referenceInfo) { this->serializableRefInfoSetForClass(cls, name, &referenceInfo); } /** * @brief see #serializableRefInfoSet */ inline const ZFSerializableData *serializableRefInfoGetForClass(ZF_IN const ZFClass *cls, ZF_IN const zfchar *name) { return this->serializableRefInfoGet(zfstringWithFormat(zfText("%s:%s"), cls->className(), name).cString()); } private: zfchar *_ZFP_ZFSerializable_selfRefType; zfchar *_ZFP_ZFSerializable_selfRefData; public: /** * @brief usually internal use only, store the refType of this serializable, * see #ZFSERIALIZABLEDATA_REFERENCE_TYPE_DEFINE for more info */ inline void serializableSelfRefTypeSet(ZF_IN const zfchar *refType) { zfsChange(this->_ZFP_ZFSerializable_selfRefType, refType); } /** * @brief see #serializableSelfRefTypeSet */ inline const zfchar *serializableSelfRefTypeGet(void) { return this->_ZFP_ZFSerializable_selfRefType; } /** * @brief usually internal use only, store the refData of this serializable, * see #ZFSERIALIZABLEDATA_REFERENCE_TYPE_DEFINE for more info */ inline void serializableSelfRefDataSet(ZF_IN const zfchar *refData) { zfsChange(this->_ZFP_ZFSerializable_selfRefData, refData); } /** * @brief see #serializableSelfRefDataSet */ inline const zfchar *serializableSelfRefDataGet(void) { return this->_ZFP_ZFSerializable_selfRefData; } private: zfchar *_ZFP_ZFSerializable_styleableType; zfchar *_ZFP_ZFSerializable_styleableData; public: /** * @brief internal use only, store the styleable data of this serializable, * see #ZFSerializable for more info */ inline void serializableStyleableTypeSet(ZF_IN const zfchar *styleableType) { zfsChange(this->_ZFP_ZFSerializable_styleableType, styleableType); } /** * @brief see #serializableStyleableTypeSet */ inline const zfchar *serializableStyleableTypeGet(void) { return this->_ZFP_ZFSerializable_styleableType; } /** * @brief see #serializableStyleableTypeSet */ inline void serializableStyleableDataSet(ZF_IN const zfchar *styleableData) { zfsChange(this->_ZFP_ZFSerializable_styleableData, styleableData); } /** * @brief see #serializableStyleableTypeSet */ inline const zfchar *serializableStyleableDataGet(void) { return this->_ZFP_ZFSerializable_styleableData; } private: zfchar *_ZFP_ZFSerializable_ownerTag; public: /** * @brief see #ZFPropertyTypeId_ZFCallback */ zffinal void serializableOwnerTagSet(ZF_IN const zfchar *ownerTag); /** * @brief see #serializableOwnerTagSet */ zffinal const zfchar *serializableOwnerTagGet(void); }; // ============================================================ /** * @brief true if object is serializable * * note that null is treated as serializable */ extern ZF_ENV_EXPORT zfbool ZFObjectIsSerializable(ZF_IN ZFObject *obj); // ============================================================ /** * @brief convenient method to serialize from encoded data * * you should release the result object if not null */ extern ZF_ENV_EXPORT zfbool ZFObjectFromString(ZF_OUT zfautoObject &result, ZF_IN const zfchar *encodedData, ZF_IN_OPT zfindex encodedDataLen = zfindexMax, ZF_OUT_OPT zfstring *outErrorHintToAppend = zfnull); /** * @brief convenient method to serialize from encoded data * * you should release the result object if not null * @note return null doesn't necessarily mean fail, * if the input is ZFSerializableKeyword_null, * which describe a null object, * the result would be null */ extern ZF_ENV_EXPORT zfautoObject ZFObjectFromString(ZF_IN const zfchar *encodedData, ZF_IN_OPT zfindex encodedDataLen = zfindexMax, ZF_OUT_OPT zfstring *outErrorHintToAppend = zfnull); /** * @brief convenient method to serialize to encoded data */ extern ZF_ENV_EXPORT zfbool ZFObjectToString(ZF_OUT zfstring &encodedData, ZF_IN ZFObject *obj, ZF_OUT_OPT zfstring *outErrorHintToAppend = zfnull); /** * @brief see #ZFObjectToString */ extern ZF_ENV_EXPORT zfstring ZFObjectToString(ZF_IN ZFObject *obj, ZF_OUT_OPT zfstring *outErrorHintToAppend = zfnull); // ============================================================ /** * @brief convenient method to serialize from serializable data * * you should release the result object if not null * @note return null doesn't necessarily mean fail, * if the input is ZFSerializableKeyword_null, * which describe a null object, * the result would be null */ extern ZF_ENV_EXPORT zfautoObject ZFObjectFromSerializableData(ZF_IN const ZFSerializableData &serializableData, ZF_OUT_OPT zfstring *outErrorHintToAppend = zfnull, ZF_OUT_OPT const ZFSerializableData **outErrorPos = zfnull); /** * @brief convenient method to serialize from serializable data * * you should release the result object if not null */ extern ZF_ENV_EXPORT zfbool ZFObjectFromSerializableData(ZF_OUT zfautoObject &result, ZF_IN const ZFSerializableData &serializableData, ZF_OUT_OPT zfstring *outErrorHintToAppend = zfnull, ZF_OUT_OPT const ZFSerializableData **outErrorPos = zfnull); /** * @brief convenient method to serialize to serializable data */ extern ZF_ENV_EXPORT zfbool ZFObjectToSerializableData(ZF_OUT ZFSerializableData &serializableData, ZF_IN ZFObject *obj, ZF_OUT_OPT zfstring *outErrorHintToAppend = zfnull, ZF_IN_OPT ZFSerializable *referencedObject = zfnull); /** * @brief convenient method to serialize to serializable data */ extern ZF_ENV_EXPORT ZFSerializableData ZFObjectToSerializableData(ZF_IN ZFObject *obj, ZF_OUT_OPT zfstring *outErrorHintToAppend = zfnull, ZF_OUT_OPT zfbool *outSuccess = zfnull, ZF_IN_OPT ZFSerializable *referencedObject = zfnull); // ============================================================ /** * @brief register an object with specified name, or set null object to remove * * some serializable element depends on external object, * such as ZFCallback may depends on callback's owner object\n * to solve this problem, we introduced owner tag, * it's a <name, object> map to register object with an unique name * - for owner object: * - if it's a normal ZFObject, * you must register it manually by this method * - if it's a ZFSerializable, * owner tag info would be automatically stored by #ZFSerializable::serializableOwnerTagSet, * and would be automatically registered by this method * - for any serializable element that need to reference the owner, * it depends on the actual serializable element to achieve the reference logic * * \n * @note this method won't retain the object, * and registered data is ensured to be removed when object deallocated */ extern ZF_ENV_EXPORT void ZFSerializableOwnerTagSet(ZF_IN const zfchar *name, ZF_IN ZFObject *obj); /** * @brief see #ZFSerializableOwnerTagSet */ extern ZF_ENV_EXPORT ZFObject *ZFSerializableOwnerTagGet(ZF_IN const zfchar *name); ZF_NAMESPACE_GLOBAL_END #endif // #ifndef _ZFI_ZFSerializableDef_h_ #include "ZFSerializableUtilDef.h"
[ "z@zsaber.com" ]
z@zsaber.com
95a212c26f7115c1ac3f1ccf47329dcc732d946a
99bf3db097fc4996adb6f0946df9c4c83099fd66
/src/mainfunction.cpp
6eb2740746f248e994764bb0c39fa3933ea5eb23
[]
no_license
Z-qie/Game-Cpp-Ziiky
d6218f7627415f66f85f38780608804555c70a6a
d6a08eb81d5a80161e20bbd9ff9936e1e9889171
refs/heads/master
2023-04-29T13:15:08.020517
2021-05-20T03:26:35
2021-05-20T03:26:35
368,706,248
2
0
null
null
null
null
UTF-8
C++
false
false
3,202
cpp
#pragma once #include "header.h" #include <ctime> // Needs one of the following #includes, to include the class definition #include "MyDemoA.h" #include "Zy21586Engine.h" #include "SimpleDemo.h" // ok #include "BouncingBallMain.h" // ok #include "MazeDemoMain.h" // ok #include "FlashingDemo.h" #include "StarfieldDemo.h" #include "ImageMappingDemo.h" #include "ZoomingDemo.h" #include "DraggingDemo.h" // These are passed to initialise to determine the window size const int BaseScreenWidth = base_window_width; const int BaseScreenHeight = base_window_height; // This was only moved outside of main so that I can do some memory checking once it ends. // Main calls this then checks for errors before ending. int doProgram(int argc, char* argv[]) { int iResult = 0; //int iTime = 0; //while (1) { // int a = rand(); //} // int b = rand(); // if (++iTime > 20000000) // srand((unsigned)time(NULL)); // //int i = utils_rand(a, b); //} Zy21586Engine& oMainDemoObject = *(Zy21586Engine::getInstance()); //MyDemoA oMainDemoObject; // Uncomment only ONE of the following lines - to choose which object to create - ENSURE ONLY ONE IS CREATED. //SimpleDemo oMainDemoObject; //BouncingBallMain oMainDemoObject; //MazeDemoMain oMainDemoObject; // Advanced demos showing one or more facilities... //FlashingDemo oMainDemoObject; //StarfieldDemo oMainDemoObject; //ImageMappingDemo oMainDemoObject; //ZoomingDemo oMainDemoObject; //DraggingDemo oMainDemoObject; char buf[1024]; // Screen caption can be set on following line... sprintf(buf, "C++ Coursework Framework Program : Size %d x %d", BaseScreenWidth, BaseScreenHeight); iResult = oMainDemoObject.initialise(buf, BaseScreenWidth, BaseScreenHeight, "Cornerstone Regular.ttf", 24); iResult = oMainDemoObject.mainLoop(); oMainDemoObject.deinitialise(); delete& oMainDemoObject; return iResult; } // Main object (created on the stack) gets destroyed at this point, so it will free its memory /* Separate main function, so we can check for memory leaks after objects are destroyed */ int main(int argc, char* argv[]) { // Send random number generator with current time ::srand((unsigned int)time(0)); int iResult = doProgram(argc, argv); // Free the cached images by destroying the image manager // Ensure that you do this AFTER the main object and any other objects have been destroyed // The game object is a stack object inside doProgram() so will have been ImageManager::destroyImageManager(); // Uncomment the following line to introduce a memory leak! //new int(); _CrtDumpMemoryLeaks(); // _CrtDumpMemoryLeaks() should make Visual studio tell you about memory leaks when it ends. /* e.g.: Detected memory leaks! Dumping objects -> {189} normal block at 0x0358C828, 4 bytes long. Data: < > 00 00 00 00 Object dump complete. */ // Detect memory leaks on windows if building for debug (not release!) #if defined(_MSC_VER) #ifdef _DEBUG _CrtDumpMemoryLeaks(); #endif #endif return iResult; }
[ "zy21586@nottingham.ac.uk" ]
zy21586@nottingham.ac.uk
5dc00f91c8336e582e41bd0ae931d042e45407a2
438180ac509e4f743e4d27236a686ee9eb545fdd
/Components/Terrain/src/OgreTerrainMaterialGeneratorA.cpp
4a3e00c357307f0a460168878fce292cf2b9ef04
[ "MIT" ]
permissive
milram/ogre-1.7.4-osx
15e3d14e827e3c198f7cda68872a0be26ba95e55
adec12bc0694b9b56a8f31e91cc72f0f75dd83c7
refs/heads/master
2021-01-01T19:21:11.880357
2012-04-30T18:34:49
2012-04-30T18:34:49
7,885,095
1
0
null
null
null
null
UTF-8
C++
false
false
53,214
cpp
/* ----------------------------------------------------------------------------- This source file is part of OGRE (Object-oriented Graphics Rendering Engine) For the latest info, see http://www.ogre3d.org/ Copyright (c) 2000-2011 Torus Knot Software Ltd 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 "OgreTerrainMaterialGeneratorA.h" #include "OgreTerrain.h" #include "OgreMaterialManager.h" #include "OgreTechnique.h" #include "OgrePass.h" #include "OgreTextureUnitState.h" #include "OgreGpuProgramManager.h" #include "OgreHighLevelGpuProgramManager.h" #include "OgreHardwarePixelBuffer.h" #include "OgreShadowCameraSetupPSSM.h" namespace Ogre { //--------------------------------------------------------------------- TerrainMaterialGeneratorA::TerrainMaterialGeneratorA() { // define the layers // We expect terrain textures to have no alpha, so we use the alpha channel // in the albedo texture to store specular reflection // similarly we double-up the normal and height (for parallax) mLayerDecl.samplers.push_back(TerrainLayerSampler("albedo_specular", PF_BYTE_RGBA)); mLayerDecl.samplers.push_back(TerrainLayerSampler("normal_height", PF_BYTE_RGBA)); mLayerDecl.elements.push_back( TerrainLayerSamplerElement(0, TLSS_ALBEDO, 0, 3)); mLayerDecl.elements.push_back( TerrainLayerSamplerElement(0, TLSS_SPECULAR, 3, 1)); mLayerDecl.elements.push_back( TerrainLayerSamplerElement(1, TLSS_NORMAL, 0, 3)); mLayerDecl.elements.push_back( TerrainLayerSamplerElement(1, TLSS_HEIGHT, 3, 1)); mProfiles.push_back(OGRE_NEW SM2Profile(this, "SM2", "Profile for rendering on Shader Model 2 capable cards")); // TODO - check hardware capabilities & use fallbacks if required (more profiles needed) setActiveProfile("SM2"); } //--------------------------------------------------------------------- TerrainMaterialGeneratorA::~TerrainMaterialGeneratorA() { } //--------------------------------------------------------------------- //--------------------------------------------------------------------- TerrainMaterialGeneratorA::SM2Profile::SM2Profile(TerrainMaterialGenerator* parent, const String& name, const String& desc) : Profile(parent, name, desc) , mShaderGen(0) , mLayerNormalMappingEnabled(true) , mLayerParallaxMappingEnabled(true) , mLayerSpecularMappingEnabled(true) , mGlobalColourMapEnabled(true) , mLightmapEnabled(true) , mCompositeMapEnabled(true) , mReceiveDynamicShadows(true) , mPSSM(0) , mDepthShadows(false) , mLowLodShadows(false) { } //--------------------------------------------------------------------- TerrainMaterialGeneratorA::SM2Profile::~SM2Profile() { OGRE_DELETE mShaderGen; } //--------------------------------------------------------------------- void TerrainMaterialGeneratorA::SM2Profile::requestOptions(Terrain* terrain) { terrain->_setMorphRequired(true); terrain->_setNormalMapRequired(true); terrain->_setLightMapRequired(mLightmapEnabled, true); terrain->_setCompositeMapRequired(mCompositeMapEnabled); } //--------------------------------------------------------------------- void TerrainMaterialGeneratorA::SM2Profile::setLayerNormalMappingEnabled(bool enabled) { if (enabled != mLayerNormalMappingEnabled) { mLayerNormalMappingEnabled = enabled; mParent->_markChanged(); } } //--------------------------------------------------------------------- void TerrainMaterialGeneratorA::SM2Profile::setLayerParallaxMappingEnabled(bool enabled) { if (enabled != mLayerParallaxMappingEnabled) { mLayerParallaxMappingEnabled = enabled; mParent->_markChanged(); } } //--------------------------------------------------------------------- void TerrainMaterialGeneratorA::SM2Profile::setLayerSpecularMappingEnabled(bool enabled) { if (enabled != mLayerSpecularMappingEnabled) { mLayerSpecularMappingEnabled = enabled; mParent->_markChanged(); } } //--------------------------------------------------------------------- void TerrainMaterialGeneratorA::SM2Profile::setGlobalColourMapEnabled(bool enabled) { if (enabled != mGlobalColourMapEnabled) { mGlobalColourMapEnabled = enabled; mParent->_markChanged(); } } //--------------------------------------------------------------------- void TerrainMaterialGeneratorA::SM2Profile::setLightmapEnabled(bool enabled) { if (enabled != mLightmapEnabled) { mLightmapEnabled = enabled; mParent->_markChanged(); } } //--------------------------------------------------------------------- void TerrainMaterialGeneratorA::SM2Profile::setCompositeMapEnabled(bool enabled) { if (enabled != mCompositeMapEnabled) { mCompositeMapEnabled = enabled; mParent->_markChanged(); } } //--------------------------------------------------------------------- void TerrainMaterialGeneratorA::SM2Profile::setReceiveDynamicShadowsEnabled(bool enabled) { if (enabled != mReceiveDynamicShadows) { mReceiveDynamicShadows = enabled; mParent->_markChanged(); } } //--------------------------------------------------------------------- void TerrainMaterialGeneratorA::SM2Profile::setReceiveDynamicShadowsPSSM(PSSMShadowCameraSetup* pssmSettings) { if (pssmSettings != mPSSM) { mPSSM = pssmSettings; mParent->_markChanged(); } } //--------------------------------------------------------------------- void TerrainMaterialGeneratorA::SM2Profile::setReceiveDynamicShadowsDepth(bool enabled) { if (enabled != mDepthShadows) { mDepthShadows = enabled; mParent->_markChanged(); } } //--------------------------------------------------------------------- void TerrainMaterialGeneratorA::SM2Profile::setReceiveDynamicShadowsLowLod(bool enabled) { if (enabled != mLowLodShadows) { mLowLodShadows = enabled; mParent->_markChanged(); } } //--------------------------------------------------------------------- uint8 TerrainMaterialGeneratorA::SM2Profile::getMaxLayers(const Terrain* terrain) const { // count the texture units free uint8 freeTextureUnits = 16; // lightmap --freeTextureUnits; // normalmap --freeTextureUnits; // colourmap if (terrain->getGlobalColourMapEnabled()) --freeTextureUnits; if (isShadowingEnabled(HIGH_LOD, terrain)) { uint numShadowTextures = 1; if (getReceiveDynamicShadowsPSSM()) { numShadowTextures = getReceiveDynamicShadowsPSSM()->getSplitCount(); } freeTextureUnits -= numShadowTextures; } // each layer needs 2.25 units (1xdiffusespec, 1xnormalheight, 0.25xblend) return static_cast<uint8>(freeTextureUnits / 2.25f); } //--------------------------------------------------------------------- MaterialPtr TerrainMaterialGeneratorA::SM2Profile::generate(const Terrain* terrain) { // re-use old material if exists MaterialPtr mat = terrain->_getMaterial(); if (mat.isNull()) { MaterialManager& matMgr = MaterialManager::getSingleton(); // it's important that the names are deterministic for a given terrain, so // use the terrain pointer as an ID const String& matName = terrain->getMaterialName(); mat = matMgr.getByName(matName); if (mat.isNull()) { mat = matMgr.create(matName, ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME); } } // clear everything mat->removeAllTechniques(); // Automatically disable normal & parallax mapping if card cannot handle it // We do this rather than having a specific technique for it since it's simpler GpuProgramManager& gmgr = GpuProgramManager::getSingleton(); if (!gmgr.isSyntaxSupported("ps_3_0") && !gmgr.isSyntaxSupported("ps_2_x") && !gmgr.isSyntaxSupported("fp40") && !gmgr.isSyntaxSupported("arbfp1")) { setLayerNormalMappingEnabled(false); setLayerParallaxMappingEnabled(false); } addTechnique(mat, terrain, HIGH_LOD); // LOD if(mCompositeMapEnabled) { addTechnique(mat, terrain, LOW_LOD); Material::LodValueList lodValues; lodValues.push_back(TerrainGlobalOptions::getSingleton().getCompositeMapDistance()); mat->setLodLevels(lodValues); Technique* lowLodTechnique = mat->getTechnique(1); lowLodTechnique->setLodIndex(1); } updateParams(mat, terrain); return mat; } //--------------------------------------------------------------------- MaterialPtr TerrainMaterialGeneratorA::SM2Profile::generateForCompositeMap(const Terrain* terrain) { // re-use old material if exists MaterialPtr mat = terrain->_getCompositeMapMaterial(); if (mat.isNull()) { MaterialManager& matMgr = MaterialManager::getSingleton(); // it's important that the names are deterministic for a given terrain, so // use the terrain pointer as an ID const String& matName = terrain->getMaterialName() + "/comp"; mat = matMgr.getByName(matName); if (mat.isNull()) { mat = matMgr.create(matName, ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME); } } // clear everything mat->removeAllTechniques(); addTechnique(mat, terrain, RENDER_COMPOSITE_MAP); updateParamsForCompositeMap(mat, terrain); return mat; } //--------------------------------------------------------------------- void TerrainMaterialGeneratorA::SM2Profile::addTechnique( const MaterialPtr& mat, const Terrain* terrain, TechniqueType tt) { Technique* tech = mat->createTechnique(); // Only supporting one pass Pass* pass = tech->createPass(); GpuProgramManager& gmgr = GpuProgramManager::getSingleton(); HighLevelGpuProgramManager& hmgr = HighLevelGpuProgramManager::getSingleton(); if (!mShaderGen) { bool check2x = mLayerNormalMappingEnabled || mLayerParallaxMappingEnabled; if (hmgr.isLanguageSupported("cg")) mShaderGen = OGRE_NEW ShaderHelperCg(); else if (hmgr.isLanguageSupported("hlsl") && ((check2x && gmgr.isSyntaxSupported("ps_2_x")) || (!check2x && gmgr.isSyntaxSupported("ps_2_0")))) mShaderGen = OGRE_NEW ShaderHelperHLSL(); else if (hmgr.isLanguageSupported("glsl")) mShaderGen = OGRE_NEW ShaderHelperGLSL(); else { // todo } // check SM3 features mSM3Available = GpuProgramManager::getSingleton().isSyntaxSupported("ps_3_0"); } HighLevelGpuProgramPtr vprog = mShaderGen->generateVertexProgram(this, terrain, tt); HighLevelGpuProgramPtr fprog = mShaderGen->generateFragmentProgram(this, terrain, tt); pass->setVertexProgram(vprog->getName()); pass->setFragmentProgram(fprog->getName()); if (tt == HIGH_LOD || tt == RENDER_COMPOSITE_MAP) { // global normal map TextureUnitState* tu = pass->createTextureUnitState(); tu->setTextureName(terrain->getTerrainNormalMap()->getName()); tu->setTextureAddressingMode(TextureUnitState::TAM_CLAMP); // global colour map if (terrain->getGlobalColourMapEnabled() && isGlobalColourMapEnabled()) { tu = pass->createTextureUnitState(terrain->getGlobalColourMap()->getName()); tu->setTextureAddressingMode(TextureUnitState::TAM_CLAMP); } // light map if (isLightmapEnabled()) { tu = pass->createTextureUnitState(terrain->getLightmap()->getName()); tu->setTextureAddressingMode(TextureUnitState::TAM_CLAMP); } // blend maps uint maxLayers = getMaxLayers(terrain); uint numBlendTextures = std::min(terrain->getBlendTextureCount(maxLayers), terrain->getBlendTextureCount()); uint numLayers = std::min(maxLayers, static_cast<uint>(terrain->getLayerCount())); for (uint i = 0; i < numBlendTextures; ++i) { tu = pass->createTextureUnitState(terrain->getBlendTextureName(i)); tu->setTextureAddressingMode(TextureUnitState::TAM_CLAMP); } // layer textures for (uint i = 0; i < numLayers; ++i) { // diffuse / specular tu = pass->createTextureUnitState(terrain->getLayerTextureName(i, 0)); // normal / height tu = pass->createTextureUnitState(terrain->getLayerTextureName(i, 1)); } } else { // LOW_LOD textures // composite map TextureUnitState* tu = pass->createTextureUnitState(); tu->setTextureName(terrain->getCompositeMap()->getName()); tu->setTextureAddressingMode(TextureUnitState::TAM_CLAMP); // That's it! } // Add shadow textures (always at the end) if (isShadowingEnabled(tt, terrain)) { uint numTextures = 1; if (getReceiveDynamicShadowsPSSM()) { numTextures = getReceiveDynamicShadowsPSSM()->getSplitCount(); } for (uint i = 0; i < numTextures; ++i) { TextureUnitState* tu = pass->createTextureUnitState(); tu->setContentType(TextureUnitState::CONTENT_SHADOW); tu->setTextureAddressingMode(TextureUnitState::TAM_BORDER); tu->setTextureBorderColour(ColourValue::White); } } } //--------------------------------------------------------------------- bool TerrainMaterialGeneratorA::SM2Profile::isShadowingEnabled(TechniqueType tt, const Terrain* terrain) const { return getReceiveDynamicShadowsEnabled() && tt != RENDER_COMPOSITE_MAP && (tt != LOW_LOD || mLowLodShadows) && terrain->getSceneManager()->isShadowTechniqueTextureBased(); } //--------------------------------------------------------------------- void TerrainMaterialGeneratorA::SM2Profile::updateParams(const MaterialPtr& mat, const Terrain* terrain) { mShaderGen->updateParams(this, mat, terrain, false); } //--------------------------------------------------------------------- void TerrainMaterialGeneratorA::SM2Profile::updateParamsForCompositeMap(const MaterialPtr& mat, const Terrain* terrain) { mShaderGen->updateParams(this, mat, terrain, true); } //--------------------------------------------------------------------- //--------------------------------------------------------------------- HighLevelGpuProgramPtr TerrainMaterialGeneratorA::SM2Profile::ShaderHelper::generateVertexProgram( const SM2Profile* prof, const Terrain* terrain, TechniqueType tt) { HighLevelGpuProgramPtr ret = createVertexProgram(prof, terrain, tt); StringUtil::StrStreamType sourceStr; generateVertexProgramSource(prof, terrain, tt, sourceStr); ret->setSource(sourceStr.str()); ret->load(); defaultVpParams(prof, terrain, tt, ret); #if OGRE_DEBUG_MODE LogManager::getSingleton().stream(LML_TRIVIAL) << "*** Terrain Vertex Program: " << ret->getName() << " ***\n" << ret->getSource() << "\n*** ***"; #endif return ret; } //--------------------------------------------------------------------- HighLevelGpuProgramPtr TerrainMaterialGeneratorA::SM2Profile::ShaderHelper::generateFragmentProgram( const SM2Profile* prof, const Terrain* terrain, TechniqueType tt) { HighLevelGpuProgramPtr ret = createFragmentProgram(prof, terrain, tt); StringUtil::StrStreamType sourceStr; generateFragmentProgramSource(prof, terrain, tt, sourceStr); ret->setSource(sourceStr.str()); ret->load(); defaultFpParams(prof, terrain, tt, ret); #if OGRE_DEBUG_MODE LogManager::getSingleton().stream(LML_TRIVIAL) << "*** Terrain Fragment Program: " << ret->getName() << " ***\n" << ret->getSource() << "\n*** ***"; #endif return ret; } //--------------------------------------------------------------------- void TerrainMaterialGeneratorA::SM2Profile::ShaderHelper::generateVertexProgramSource( const SM2Profile* prof, const Terrain* terrain, TechniqueType tt, StringUtil::StrStreamType& outStream) { generateVpHeader(prof, terrain, tt, outStream); if (tt != LOW_LOD) { uint maxLayers = prof->getMaxLayers(terrain); uint numLayers = std::min(maxLayers, static_cast<uint>(terrain->getLayerCount())); for (uint i = 0; i < numLayers; ++i) generateVpLayer(prof, terrain, tt, i, outStream); } generateVpFooter(prof, terrain, tt, outStream); } //--------------------------------------------------------------------- void TerrainMaterialGeneratorA::SM2Profile::ShaderHelper::generateFragmentProgramSource( const SM2Profile* prof, const Terrain* terrain, TechniqueType tt, StringUtil::StrStreamType& outStream) { generateFpHeader(prof, terrain, tt, outStream); if (tt != LOW_LOD) { uint maxLayers = prof->getMaxLayers(terrain); uint numLayers = std::min(maxLayers, static_cast<uint>(terrain->getLayerCount())); for (uint i = 0; i < numLayers; ++i) generateFpLayer(prof, terrain, tt, i, outStream); } generateFpFooter(prof, terrain, tt, outStream); } //--------------------------------------------------------------------- void TerrainMaterialGeneratorA::SM2Profile::ShaderHelper::defaultVpParams( const SM2Profile* prof, const Terrain* terrain, TechniqueType tt, const HighLevelGpuProgramPtr& prog) { GpuProgramParametersSharedPtr params = prog->getDefaultParameters(); params->setIgnoreMissingParams(true); params->setNamedAutoConstant("worldMatrix", GpuProgramParameters::ACT_WORLD_MATRIX); params->setNamedAutoConstant("viewProjMatrix", GpuProgramParameters::ACT_VIEWPROJ_MATRIX); params->setNamedAutoConstant("lodMorph", GpuProgramParameters::ACT_CUSTOM, Terrain::LOD_MORPH_CUSTOM_PARAM); params->setNamedAutoConstant("fogParams", GpuProgramParameters::ACT_FOG_PARAMS); if (prof->isShadowingEnabled(tt, terrain)) { uint numTextures = 1; if (prof->getReceiveDynamicShadowsPSSM()) { numTextures = prof->getReceiveDynamicShadowsPSSM()->getSplitCount(); } for (uint i = 0; i < numTextures; ++i) { params->setNamedAutoConstant("texViewProjMatrix" + StringConverter::toString(i), GpuProgramParameters::ACT_TEXTURE_VIEWPROJ_MATRIX, i); if (prof->getReceiveDynamicShadowsDepth()) { params->setNamedAutoConstant("depthRange" + StringConverter::toString(i), GpuProgramParameters::ACT_SHADOW_SCENE_DEPTH_RANGE, i); } } } } //--------------------------------------------------------------------- void TerrainMaterialGeneratorA::SM2Profile::ShaderHelper::defaultFpParams( const SM2Profile* prof, const Terrain* terrain, TechniqueType tt, const HighLevelGpuProgramPtr& prog) { GpuProgramParametersSharedPtr params = prog->getDefaultParameters(); params->setIgnoreMissingParams(true); params->setNamedAutoConstant("ambient", GpuProgramParameters::ACT_AMBIENT_LIGHT_COLOUR); params->setNamedAutoConstant("lightPosObjSpace", GpuProgramParameters::ACT_LIGHT_POSITION_OBJECT_SPACE, 0); params->setNamedAutoConstant("lightDiffuseColour", GpuProgramParameters::ACT_LIGHT_DIFFUSE_COLOUR, 0); params->setNamedAutoConstant("lightSpecularColour", GpuProgramParameters::ACT_LIGHT_SPECULAR_COLOUR, 0); params->setNamedAutoConstant("eyePosObjSpace", GpuProgramParameters::ACT_CAMERA_POSITION_OBJECT_SPACE); params->setNamedAutoConstant("fogColour", GpuProgramParameters::ACT_FOG_COLOUR); if (prof->isShadowingEnabled(tt, terrain)) { uint numTextures = 1; if (prof->getReceiveDynamicShadowsPSSM()) { PSSMShadowCameraSetup* pssm = prof->getReceiveDynamicShadowsPSSM(); numTextures = pssm->getSplitCount(); Vector4 splitPoints; const PSSMShadowCameraSetup::SplitPointList& splitPointList = pssm->getSplitPoints(); // Populate from split point 1, not 0, since split 0 isn't useful (usually 0) for (uint i = 1; i < numTextures; ++i) { splitPoints[i-1] = splitPointList[i]; } params->setNamedConstant("pssmSplitPoints", splitPoints); } if (prof->getReceiveDynamicShadowsDepth()) { size_t samplerOffset = (tt == HIGH_LOD) ? mShadowSamplerStartHi : mShadowSamplerStartLo; for (uint i = 0; i < numTextures; ++i) { params->setNamedAutoConstant("inverseShadowmapSize" + StringConverter::toString(i), GpuProgramParameters::ACT_INVERSE_TEXTURE_SIZE, i + samplerOffset); } } } } //--------------------------------------------------------------------- void TerrainMaterialGeneratorA::SM2Profile::ShaderHelper::updateParams( const SM2Profile* prof, const MaterialPtr& mat, const Terrain* terrain, bool compositeMap) { Pass* p = mat->getTechnique(0)->getPass(0); if (compositeMap) { updateVpParams(prof, terrain, RENDER_COMPOSITE_MAP, p->getVertexProgramParameters()); updateFpParams(prof, terrain, RENDER_COMPOSITE_MAP, p->getFragmentProgramParameters()); } else { // high lod updateVpParams(prof, terrain, HIGH_LOD, p->getVertexProgramParameters()); updateFpParams(prof, terrain, HIGH_LOD, p->getFragmentProgramParameters()); if(prof->isCompositeMapEnabled()) { // low lod p = mat->getTechnique(1)->getPass(0); updateVpParams(prof, terrain, LOW_LOD, p->getVertexProgramParameters()); updateFpParams(prof, terrain, LOW_LOD, p->getFragmentProgramParameters()); } } } //--------------------------------------------------------------------- void TerrainMaterialGeneratorA::SM2Profile::ShaderHelper::updateVpParams( const SM2Profile* prof, const Terrain* terrain, TechniqueType tt, const GpuProgramParametersSharedPtr& params) { params->setIgnoreMissingParams(true); uint maxLayers = prof->getMaxLayers(terrain); uint numLayers = std::min(maxLayers, static_cast<uint>(terrain->getLayerCount())); uint numUVMul = numLayers / 4; if (numLayers % 4) ++numUVMul; for (uint i = 0; i < numUVMul; ++i) { Vector4 uvMul( terrain->getLayerUVMultiplier(i * 4), terrain->getLayerUVMultiplier(i * 4 + 1), terrain->getLayerUVMultiplier(i * 4 + 2), terrain->getLayerUVMultiplier(i * 4 + 3) ); params->setNamedConstant("uvMul" + StringConverter::toString(i), uvMul); } } //--------------------------------------------------------------------- void TerrainMaterialGeneratorA::SM2Profile::ShaderHelper::updateFpParams( const SM2Profile* prof, const Terrain* terrain, TechniqueType tt, const GpuProgramParametersSharedPtr& params) { params->setIgnoreMissingParams(true); // TODO - parameterise this? Vector4 scaleBiasSpecular(0.03, -0.04, 32, 1); params->setNamedConstant("scaleBiasSpecular", scaleBiasSpecular); } //--------------------------------------------------------------------- String TerrainMaterialGeneratorA::SM2Profile::ShaderHelper::getChannel(uint idx) { uint rem = idx % 4; switch(rem) { case 0: default: return "r"; case 1: return "g"; case 2: return "b"; case 3: return "a"; }; } //--------------------------------------------------------------------- String TerrainMaterialGeneratorA::SM2Profile::ShaderHelper::getVertexProgramName( const SM2Profile* prof, const Terrain* terrain, TechniqueType tt) { String progName = terrain->getMaterialName() + "/sm2/vp"; switch(tt) { case HIGH_LOD: progName += "/hlod"; break; case LOW_LOD: progName += "/llod"; break; case RENDER_COMPOSITE_MAP: progName += "/comp"; break; } return progName; } //--------------------------------------------------------------------- String TerrainMaterialGeneratorA::SM2Profile::ShaderHelper::getFragmentProgramName( const SM2Profile* prof, const Terrain* terrain, TechniqueType tt) { String progName = terrain->getMaterialName() + "/sm2/fp"; switch(tt) { case HIGH_LOD: progName += "/hlod"; break; case LOW_LOD: progName += "/llod"; break; case RENDER_COMPOSITE_MAP: progName += "/comp"; break; } return progName; } //--------------------------------------------------------------------- //--------------------------------------------------------------------- HighLevelGpuProgramPtr TerrainMaterialGeneratorA::SM2Profile::ShaderHelperCg::createVertexProgram( const SM2Profile* prof, const Terrain* terrain, TechniqueType tt) { HighLevelGpuProgramManager& mgr = HighLevelGpuProgramManager::getSingleton(); String progName = getVertexProgramName(prof, terrain, tt); HighLevelGpuProgramPtr ret = mgr.getByName(progName); if (ret.isNull()) { ret = mgr.createProgram(progName, ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME, "cg", GPT_VERTEX_PROGRAM); } else { ret->unload(); } ret->setParameter("profiles", "vs_3_0 vs_2_0 arbvp1"); ret->setParameter("entry_point", "main_vp"); return ret; } //--------------------------------------------------------------------- HighLevelGpuProgramPtr TerrainMaterialGeneratorA::SM2Profile::ShaderHelperCg::createFragmentProgram( const SM2Profile* prof, const Terrain* terrain, TechniqueType tt) { HighLevelGpuProgramManager& mgr = HighLevelGpuProgramManager::getSingleton(); String progName = getFragmentProgramName(prof, terrain, tt); HighLevelGpuProgramPtr ret = mgr.getByName(progName); if (ret.isNull()) { ret = mgr.createProgram(progName, ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME, "cg", GPT_FRAGMENT_PROGRAM); } else { ret->unload(); } if(prof->isLayerNormalMappingEnabled() || prof->isLayerParallaxMappingEnabled()) ret->setParameter("profiles", "ps_3_0 ps_2_x fp40 arbfp1"); else ret->setParameter("profiles", "ps_3_0 ps_2_0 fp30 arbfp1"); ret->setParameter("entry_point", "main_fp"); return ret; } //--------------------------------------------------------------------- void TerrainMaterialGeneratorA::SM2Profile::ShaderHelperCg::generateVpHeader( const SM2Profile* prof, const Terrain* terrain, TechniqueType tt, StringUtil::StrStreamType& outStream) { outStream << "void main_vp(\n" "float4 pos : POSITION,\n" "float2 uv : TEXCOORD0,\n"; if (tt != RENDER_COMPOSITE_MAP) outStream << "float2 delta : TEXCOORD1,\n"; // lodDelta, lodThreshold outStream << "uniform float4x4 worldMatrix,\n" "uniform float4x4 viewProjMatrix,\n" "uniform float2 lodMorph,\n"; // morph amount, morph LOD target // uv multipliers uint maxLayers = prof->getMaxLayers(terrain); uint numLayers = std::min(maxLayers, static_cast<uint>(terrain->getLayerCount())); uint numUVMultipliers = (numLayers / 4); if (numLayers % 4) ++numUVMultipliers; for (uint i = 0; i < numUVMultipliers; ++i) outStream << "uniform float4 uvMul" << i << ", \n"; outStream << "out float4 oPos : POSITION,\n" "out float4 oPosObj : TEXCOORD0 \n"; uint texCoordSet = 1; outStream << ", out float4 oUVMisc : TEXCOORD" << texCoordSet++ <<" // xy = uv, z = camDepth\n"; // layer UV's premultiplied, packed as xy/zw uint numUVSets = numLayers / 2; if (numLayers % 2) ++numUVSets; if (tt != LOW_LOD) { for (uint i = 0; i < numUVSets; ++i) { outStream << ", out float4 oUV" << i << " : TEXCOORD" << texCoordSet++ << "\n"; } } if (prof->getParent()->getDebugLevel() && tt != RENDER_COMPOSITE_MAP) { outStream << ", out float2 lodInfo : TEXCOORD" << texCoordSet++ << "\n"; } bool fog = terrain->getSceneManager()->getFogMode() != FOG_NONE && tt != RENDER_COMPOSITE_MAP; if (fog) { outStream << ", uniform float4 fogParams\n" ", out float fogVal : COLOR\n"; } if (prof->isShadowingEnabled(tt, terrain)) { texCoordSet = generateVpDynamicShadowsParams(texCoordSet, prof, terrain, tt, outStream); } // check we haven't exceeded texture coordinates if (texCoordSet > 8) { OGRE_EXCEPT(Exception::ERR_INVALIDPARAMS, "Requested options require too many texture coordinate sets! Try reducing the number of layers.", __FUNCTION__); } outStream << ")\n" "{\n" " float4 worldPos = mul(worldMatrix, pos);\n" " oPosObj = pos;\n"; if (tt != RENDER_COMPOSITE_MAP) { // determine whether to apply the LOD morph to this vertex // we store the deltas against all vertices so we only want to apply // the morph to the ones which would disappear. The target LOD which is // being morphed to is stored in lodMorph.y, and the LOD at which // the vertex should be morphed is stored in uv.w. If we subtract // the former from the latter, and arrange to only morph if the // result is negative (it will only be -1 in fact, since after that // the vertex will never be indexed), we will achieve our aim. // sign(vertexLOD - targetLOD) == -1 is to morph outStream << " float toMorph = -min(0, sign(delta.y - lodMorph.y));\n"; // this will either be 1 (morph) or 0 (don't morph) if (prof->getParent()->getDebugLevel()) { // x == LOD level (-1 since value is target level, we want to display actual) outStream << "lodInfo.x = (lodMorph.y - 1) / " << terrain->getNumLodLevels() << ";\n"; // y == LOD morph outStream << "lodInfo.y = toMorph * lodMorph.x;\n"; } // morph switch (terrain->getAlignment()) { case Terrain::ALIGN_X_Y: outStream << " worldPos.z += delta.x * toMorph * lodMorph.x;\n"; break; case Terrain::ALIGN_X_Z: outStream << " worldPos.y += delta.x * toMorph * lodMorph.x;\n"; break; case Terrain::ALIGN_Y_Z: outStream << " worldPos.x += delta.x * toMorph * lodMorph.x;\n"; break; }; } // generate UVs if (tt != LOW_LOD) { for (uint i = 0; i < numUVSets; ++i) { uint layer = i * 2; uint uvMulIdx = layer / 4; outStream << " oUV" << i << ".xy = " << " uv.xy * uvMul" << uvMulIdx << "." << getChannel(layer) << ";\n"; outStream << " oUV" << i << ".zw = " << " uv.xy * uvMul" << uvMulIdx << "." << getChannel(layer+1) << ";\n"; } } } //--------------------------------------------------------------------- void TerrainMaterialGeneratorA::SM2Profile::ShaderHelperCg::generateFpHeader( const SM2Profile* prof, const Terrain* terrain, TechniqueType tt, StringUtil::StrStreamType& outStream) { // Main header outStream << // helpers "float4 expand(float4 v)\n" "{ \n" " return v * 2 - 1;\n" "}\n\n\n"; if (prof->isShadowingEnabled(tt, terrain)) generateFpDynamicShadowsHelpers(prof, terrain, tt, outStream); outStream << "float4 main_fp(\n" "float4 position : TEXCOORD0,\n"; uint texCoordSet = 1; outStream << "float4 uvMisc : TEXCOORD" << texCoordSet++ << ",\n"; // UV's premultiplied, packed as xy/zw uint maxLayers = prof->getMaxLayers(terrain); uint numBlendTextures = std::min(terrain->getBlendTextureCount(maxLayers), terrain->getBlendTextureCount()); uint numLayers = std::min(maxLayers, static_cast<uint>(terrain->getLayerCount())); uint numUVSets = numLayers / 2; if (numLayers % 2) ++numUVSets; if (tt != LOW_LOD) { for (uint i = 0; i < numUVSets; ++i) { outStream << "float4 layerUV" << i << " : TEXCOORD" << texCoordSet++ << ", \n"; } } if (prof->getParent()->getDebugLevel() && tt != RENDER_COMPOSITE_MAP) { outStream << "float2 lodInfo : TEXCOORD" << texCoordSet++ << ", \n"; } bool fog = terrain->getSceneManager()->getFogMode() != FOG_NONE && tt != RENDER_COMPOSITE_MAP; if (fog) { outStream << "uniform float3 fogColour, \n" "float fogVal : COLOR,\n"; } uint currentSamplerIdx = 0; outStream << // Only 1 light supported in this version // deferred shading profile / generator later, ok? :) "uniform float3 ambient,\n" "uniform float4 lightPosObjSpace,\n" "uniform float3 lightDiffuseColour,\n" "uniform float3 lightSpecularColour,\n" "uniform float3 eyePosObjSpace,\n" // pack scale, bias and specular "uniform float4 scaleBiasSpecular,\n"; if (tt == LOW_LOD) { // single composite map covers all the others below outStream << "uniform sampler2D compositeMap : register(s" << currentSamplerIdx++ << ")\n"; } else { outStream << "uniform sampler2D globalNormal : register(s" << currentSamplerIdx++ << ")\n"; if (terrain->getGlobalColourMapEnabled() && prof->isGlobalColourMapEnabled()) { outStream << ", uniform sampler2D globalColourMap : register(s" << currentSamplerIdx++ << ")\n"; } if (prof->isLightmapEnabled()) { outStream << ", uniform sampler2D lightMap : register(s" << currentSamplerIdx++ << ")\n"; } // Blend textures - sampler definitions for (uint i = 0; i < numBlendTextures; ++i) { outStream << ", uniform sampler2D blendTex" << i << " : register(s" << currentSamplerIdx++ << ")\n"; } // Layer textures - sampler definitions & UV multipliers for (uint i = 0; i < numLayers; ++i) { outStream << ", uniform sampler2D difftex" << i << " : register(s" << currentSamplerIdx++ << ")\n"; outStream << ", uniform sampler2D normtex" << i << " : register(s" << currentSamplerIdx++ << ")\n"; } } if (prof->isShadowingEnabled(tt, terrain)) { generateFpDynamicShadowsParams(&texCoordSet, &currentSamplerIdx, prof, terrain, tt, outStream); } // check we haven't exceeded samplers if (currentSamplerIdx > 16) { OGRE_EXCEPT(Exception::ERR_INVALIDPARAMS, "Requested options require too many texture samplers! Try reducing the number of layers.", __FUNCTION__); } outStream << ") : COLOR\n" "{\n" " float4 outputCol;\n" " float shadow = 1.0;\n" " float2 uv = uvMisc.xy;\n" // base colour " outputCol = float4(0,0,0,1);\n"; if (tt != LOW_LOD) { outStream << // global normal " float3 normal = expand(tex2D(globalNormal, uv)).rgb;\n"; } outStream << " float3 lightDir = \n" " lightPosObjSpace.xyz - (position.xyz * lightPosObjSpace.w);\n" " float3 eyeDir = eyePosObjSpace - position.xyz;\n" // set up accumulation areas " float3 diffuse = float3(0,0,0);\n" " float specular = 0;\n"; if (tt == LOW_LOD) { // we just do a single calculation from composite map outStream << " float4 composite = tex2D(compositeMap, uv);\n" " diffuse = composite.rgb;\n"; // TODO - specular; we'll need normals for this! } else { // set up the blend values for (uint i = 0; i < numBlendTextures; ++i) { outStream << " float4 blendTexVal" << i << " = tex2D(blendTex" << i << ", uv);\n"; } if (prof->isLayerNormalMappingEnabled()) { // derive the tangent space basis // we do this in the pixel shader because we don't have per-vertex normals // because of the LOD, we use a normal map // tangent is always +x or -z in object space depending on alignment switch(terrain->getAlignment()) { case Terrain::ALIGN_X_Y: case Terrain::ALIGN_X_Z: outStream << " float3 tangent = float3(1, 0, 0);\n"; break; case Terrain::ALIGN_Y_Z: outStream << " float3 tangent = float3(0, 0, -1);\n"; break; }; outStream << " float3 binormal = normalize(cross(tangent, normal));\n"; // note, now we need to re-cross to derive tangent again because it wasn't orthonormal outStream << " tangent = normalize(cross(normal, binormal));\n"; // derive final matrix outStream << " float3x3 TBN = float3x3(tangent, binormal, normal);\n"; // set up lighting result placeholders for interpolation outStream << " float4 litRes, litResLayer;\n"; outStream << " float3 TSlightDir, TSeyeDir, TShalfAngle, TSnormal;\n"; if (prof->isLayerParallaxMappingEnabled()) outStream << " float displacement;\n"; // move outStream << " TSlightDir = normalize(mul(TBN, lightDir));\n"; outStream << " TSeyeDir = normalize(mul(TBN, eyeDir));\n"; } else { // simple per-pixel lighting with no normal mapping outStream << " lightDir = normalize(lightDir);\n"; outStream << " eyeDir = normalize(eyeDir);\n"; outStream << " float3 halfAngle = normalize(lightDir + eyeDir);\n"; outStream << " float4 litRes = lit(dot(lightDir, normal), dot(halfAngle, normal), scaleBiasSpecular.z);\n"; } } } //--------------------------------------------------------------------- void TerrainMaterialGeneratorA::SM2Profile::ShaderHelperCg::generateVpLayer( const SM2Profile* prof, const Terrain* terrain, TechniqueType tt, uint layer, StringUtil::StrStreamType& outStream) { // nothing to do } //--------------------------------------------------------------------- void TerrainMaterialGeneratorA::SM2Profile::ShaderHelperCg::generateFpLayer( const SM2Profile* prof, const Terrain* terrain, TechniqueType tt, uint layer, StringUtil::StrStreamType& outStream) { uint uvIdx = layer / 2; String uvChannels = layer % 2 ? ".zw" : ".xy"; uint blendIdx = (layer-1) / 4; String blendChannel = getChannel(layer-1); String blendWeightStr = String("blendTexVal") + StringConverter::toString(blendIdx) + "." + blendChannel; // generate early-out conditional /* Disable - causing some issues even when trying to force the use of texldd if (layer && prof->_isSM3Available()) outStream << " if (" << blendWeightStr << " > 0.0003)\n { \n"; */ // generate UV outStream << " float2 uv" << layer << " = layerUV" << uvIdx << uvChannels << ";\n"; // calculate lighting here if normal mapping if (prof->isLayerNormalMappingEnabled()) { if (prof->isLayerParallaxMappingEnabled() && tt != RENDER_COMPOSITE_MAP) { // modify UV - note we have to sample an extra time outStream << " displacement = tex2D(normtex" << layer << ", uv" << layer << ").a\n" " * scaleBiasSpecular.x + scaleBiasSpecular.y;\n"; outStream << " uv" << layer << " += TSeyeDir.xy * displacement;\n"; } // access TS normal map outStream << " TSnormal = expand(tex2D(normtex" << layer << ", uv" << layer << ")).rgb;\n"; outStream << " TShalfAngle = normalize(TSlightDir + TSeyeDir);\n"; outStream << " litResLayer = lit(dot(TSlightDir, TSnormal), dot(TShalfAngle, TSnormal), scaleBiasSpecular.z);\n"; if (!layer) outStream << " litRes = litResLayer;\n"; else outStream << " litRes = lerp(litRes, litResLayer, " << blendWeightStr << ");\n"; } // sample diffuse texture outStream << " float4 diffuseSpecTex" << layer << " = tex2D(difftex" << layer << ", uv" << layer << ");\n"; // apply to common if (!layer) { outStream << " diffuse = diffuseSpecTex0.rgb;\n"; if (prof->isLayerSpecularMappingEnabled()) outStream << " specular = diffuseSpecTex0.a;\n"; } else { outStream << " diffuse = lerp(diffuse, diffuseSpecTex" << layer << ".rgb, " << blendWeightStr << ");\n"; if (prof->isLayerSpecularMappingEnabled()) outStream << " specular = lerp(specular, diffuseSpecTex" << layer << ".a, " << blendWeightStr << ");\n"; } // End early-out /* Disable - causing some issues even when trying to force the use of texldd if (layer && prof->_isSM3Available()) outStream << " } // early-out blend value\n"; */ } //--------------------------------------------------------------------- void TerrainMaterialGeneratorA::SM2Profile::ShaderHelperCg::generateVpFooter( const SM2Profile* prof, const Terrain* terrain, TechniqueType tt, StringUtil::StrStreamType& outStream) { outStream << " oPos = mul(viewProjMatrix, worldPos);\n" " oUVMisc.xy = uv.xy;\n"; bool fog = terrain->getSceneManager()->getFogMode() != FOG_NONE && tt != RENDER_COMPOSITE_MAP; if (fog) { if (terrain->getSceneManager()->getFogMode() == FOG_LINEAR) { outStream << " fogVal = saturate((oPos.z - fogParams.y) * fogParams.w);\n"; } else { outStream << " fogVal = saturate(1 / (exp(oPos.z * fogParams.x)));\n"; } } if (prof->isShadowingEnabled(tt, terrain)) generateVpDynamicShadows(prof, terrain, tt, outStream); outStream << "}\n"; } //--------------------------------------------------------------------- void TerrainMaterialGeneratorA::SM2Profile::ShaderHelperCg::generateFpFooter( const SM2Profile* prof, const Terrain* terrain, TechniqueType tt, StringUtil::StrStreamType& outStream) { if (tt == LOW_LOD) { if (prof->isShadowingEnabled(tt, terrain)) { generateFpDynamicShadows(prof, terrain, tt, outStream); outStream << " outputCol.rgb = diffuse * rtshadow;\n"; } else { outStream << " outputCol.rgb = diffuse;\n"; } } else { if (terrain->getGlobalColourMapEnabled() && prof->isGlobalColourMapEnabled()) { // sample colour map and apply to diffuse outStream << " diffuse *= tex2D(globalColourMap, uv).rgb;\n"; } if (prof->isLightmapEnabled()) { // sample lightmap outStream << " shadow = tex2D(lightMap, uv).r;\n"; } if (prof->isShadowingEnabled(tt, terrain)) { generateFpDynamicShadows(prof, terrain, tt, outStream); } // diffuse lighting outStream << " outputCol.rgb += ambient * diffuse + litRes.y * lightDiffuseColour * diffuse * shadow;\n"; // specular default if (!prof->isLayerSpecularMappingEnabled()) outStream << " specular = 1.0;\n"; if (tt == RENDER_COMPOSITE_MAP) { // Lighting embedded in alpha outStream << " outputCol.a = shadow;\n"; } else { // Apply specular outStream << " outputCol.rgb += litRes.z * lightSpecularColour * specular * shadow;\n"; if (prof->getParent()->getDebugLevel()) { outStream << " outputCol.rg += lodInfo.xy;\n"; } } } bool fog = terrain->getSceneManager()->getFogMode() != FOG_NONE && tt != RENDER_COMPOSITE_MAP; if (fog) { outStream << " outputCol.rgb = lerp(outputCol.rgb, fogColour, fogVal);\n"; } // Final return outStream << " return outputCol;\n" << "}\n"; } //--------------------------------------------------------------------- void TerrainMaterialGeneratorA::SM2Profile::ShaderHelperCg::generateFpDynamicShadowsHelpers( const SM2Profile* prof, const Terrain* terrain, TechniqueType tt, StringUtil::StrStreamType& outStream) { // TODO make filtering configurable outStream << "// Simple PCF \n" "// Number of samples in one dimension (square for total samples) \n" "#define NUM_SHADOW_SAMPLES_1D 2.0 \n" "#define SHADOW_FILTER_SCALE 1 \n" "#define SHADOW_SAMPLES NUM_SHADOW_SAMPLES_1D*NUM_SHADOW_SAMPLES_1D \n" "float4 offsetSample(float4 uv, float2 offset, float invMapSize) \n" "{ \n" " return float4(uv.xy + offset * invMapSize * uv.w, uv.z, uv.w); \n" "} \n"; if (prof->getReceiveDynamicShadowsDepth()) { outStream << "float calcDepthShadow(sampler2D shadowMap, float4 uv, float invShadowMapSize) \n" "{ \n" " // 4-sample PCF \n" " float shadow = 0.0; \n" " float offset = (NUM_SHADOW_SAMPLES_1D/2 - 0.5) * SHADOW_FILTER_SCALE; \n" " for (float y = -offset; y <= offset; y += SHADOW_FILTER_SCALE) \n" " for (float x = -offset; x <= offset; x += SHADOW_FILTER_SCALE) \n" " { \n" " float4 newUV = offsetSample(uv, float2(x, y), invShadowMapSize);\n" " // manually project and assign derivatives \n" " // to avoid gradient issues inside loops \n" " newUV = newUV / newUV.w; \n" " float depth = tex2D(shadowMap, newUV.xy, 1, 1).x; \n" " if (depth >= 1 || depth >= uv.z)\n" " shadow += 1.0;\n" " } \n" " shadow /= SHADOW_SAMPLES; \n" " return shadow; \n" "} \n"; } else { outStream << "float calcSimpleShadow(sampler2D shadowMap, float4 shadowMapPos) \n" "{ \n" " return tex2Dproj(shadowMap, shadowMapPos).x; \n" "} \n"; } if (prof->getReceiveDynamicShadowsPSSM()) { uint numTextures = prof->getReceiveDynamicShadowsPSSM()->getSplitCount(); if (prof->getReceiveDynamicShadowsDepth()) { outStream << "float calcPSSMDepthShadow("; } else { outStream << "float calcPSSMSimpleShadow("; } outStream << "\n "; for (uint i = 0; i < numTextures; ++i) outStream << "sampler2D shadowMap" << i << ", "; outStream << "\n "; for (uint i = 0; i < numTextures; ++i) outStream << "float4 lsPos" << i << ", "; if (prof->getReceiveDynamicShadowsDepth()) { outStream << "\n "; for (uint i = 0; i < numTextures; ++i) outStream << "float invShadowmapSize" << i << ", "; } outStream << "\n" " float4 pssmSplitPoints, float camDepth) \n" "{ \n" " float shadow; \n" " // calculate shadow \n"; for (uint i = 0; i < numTextures; ++i) { if (!i) outStream << " if (camDepth <= pssmSplitPoints." << ShaderHelper::getChannel(i) << ") \n"; else if (i < numTextures - 1) outStream << " else if (camDepth <= pssmSplitPoints." << ShaderHelper::getChannel(i) << ") \n"; else outStream << " else \n"; outStream << " { \n"; if (prof->getReceiveDynamicShadowsDepth()) { outStream << " shadow = calcDepthShadow(shadowMap" << i << ", lsPos" << i << ", invShadowmapSize" << i << "); \n"; } else { outStream << " shadow = calcSimpleShadow(shadowMap" << i << ", lsPos" << i << "); \n"; } outStream << " } \n"; } outStream << " return shadow; \n" "} \n\n\n"; } } //--------------------------------------------------------------------- uint TerrainMaterialGeneratorA::SM2Profile::ShaderHelperCg::generateVpDynamicShadowsParams( uint texCoord, const SM2Profile* prof, const Terrain* terrain, TechniqueType tt, StringUtil::StrStreamType& outStream) { // out semantics & params uint numTextures = 1; if (prof->getReceiveDynamicShadowsPSSM()) { numTextures = prof->getReceiveDynamicShadowsPSSM()->getSplitCount(); } for (uint i = 0; i < numTextures; ++i) { outStream << ", out float4 oLightSpacePos" << i << " : TEXCOORD" << texCoord++ << " \n" << ", uniform float4x4 texViewProjMatrix" << i << " \n"; if (prof->getReceiveDynamicShadowsDepth()) { outStream << ", uniform float4 depthRange" << i << " // x = min, y = max, z = range, w = 1/range \n"; } } return texCoord; } //--------------------------------------------------------------------- void TerrainMaterialGeneratorA::SM2Profile::ShaderHelperCg::generateVpDynamicShadows( const SM2Profile* prof, const Terrain* terrain, TechniqueType tt, StringUtil::StrStreamType& outStream) { uint numTextures = 1; if (prof->getReceiveDynamicShadowsPSSM()) { numTextures = prof->getReceiveDynamicShadowsPSSM()->getSplitCount(); } // Calculate the position of vertex in light space for (uint i = 0; i < numTextures; ++i) { outStream << " oLightSpacePos" << i << " = mul(texViewProjMatrix" << i << ", worldPos); \n"; if (prof->getReceiveDynamicShadowsDepth()) { // make linear outStream << "oLightSpacePos" << i << ".z = (oLightSpacePos" << i << ".z - depthRange" << i << ".x) * depthRange" << i << ".w;\n"; } } if (prof->getReceiveDynamicShadowsPSSM()) { outStream << " // pass cam depth\n" " oUVMisc.z = oPos.z;\n"; } } //--------------------------------------------------------------------- void TerrainMaterialGeneratorA::SM2Profile::ShaderHelperCg::generateFpDynamicShadowsParams( uint* texCoord, uint* sampler, const SM2Profile* prof, const Terrain* terrain, TechniqueType tt, StringUtil::StrStreamType& outStream) { if (tt == HIGH_LOD) mShadowSamplerStartHi = *sampler; else if (tt == LOW_LOD) mShadowSamplerStartLo = *sampler; // in semantics & params uint numTextures = 1; if (prof->getReceiveDynamicShadowsPSSM()) { numTextures = prof->getReceiveDynamicShadowsPSSM()->getSplitCount(); outStream << ", uniform float4 pssmSplitPoints \n"; } for (uint i = 0; i < numTextures; ++i) { outStream << ", float4 lightSpacePos" << i << " : TEXCOORD" << *texCoord << " \n" << ", uniform sampler2D shadowMap" << i << " : register(s" << *sampler << ") \n"; *sampler = *sampler + 1; *texCoord = *texCoord + 1; if (prof->getReceiveDynamicShadowsDepth()) { outStream << ", uniform float inverseShadowmapSize" << i << " \n"; } } } //--------------------------------------------------------------------- void TerrainMaterialGeneratorA::SM2Profile::ShaderHelperCg::generateFpDynamicShadows( const SM2Profile* prof, const Terrain* terrain, TechniqueType tt, StringUtil::StrStreamType& outStream) { if (prof->getReceiveDynamicShadowsPSSM()) { uint numTextures = prof->getReceiveDynamicShadowsPSSM()->getSplitCount(); outStream << " float camDepth = uvMisc.z;\n"; if (prof->getReceiveDynamicShadowsDepth()) { outStream << " float rtshadow = calcPSSMDepthShadow("; } else { outStream << " float rtshadow = calcPSSMSimpleShadow("; } for (uint i = 0; i < numTextures; ++i) outStream << "shadowMap" << i << ", "; outStream << "\n "; for (uint i = 0; i < numTextures; ++i) outStream << "lightSpacePos" << i << ", "; if (prof->getReceiveDynamicShadowsDepth()) { outStream << "\n "; for (uint i = 0; i < numTextures; ++i) outStream << "inverseShadowmapSize" << i << ", "; } outStream << "\n" << " pssmSplitPoints, camDepth);\n"; } else { if (prof->getReceiveDynamicShadowsDepth()) { outStream << " float rtshadow = calcDepthShadow(shadowMap0, lightSpacePos0, inverseShadowmapSize0);"; } else { outStream << " float rtshadow = calcSimpleShadow(shadowMap0, lightSpacePos0);"; } } outStream << " shadow = min(shadow, rtshadow);\n"; } //--------------------------------------------------------------------- //--------------------------------------------------------------------- HighLevelGpuProgramPtr TerrainMaterialGeneratorA::SM2Profile::ShaderHelperHLSL::createVertexProgram( const SM2Profile* prof, const Terrain* terrain, TechniqueType tt) { HighLevelGpuProgramManager& mgr = HighLevelGpuProgramManager::getSingleton(); String progName = getVertexProgramName(prof, terrain, tt); HighLevelGpuProgramPtr ret = mgr.getByName(progName); if (ret.isNull()) { ret = mgr.createProgram(progName, ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME, "hlsl", GPT_VERTEX_PROGRAM); } else { ret->unload(); } if (prof->_isSM3Available()) ret->setParameter("target", "vs_3_0"); else ret->setParameter("target", "vs_2_0"); ret->setParameter("entry_point", "main_vp"); return ret; } //--------------------------------------------------------------------- HighLevelGpuProgramPtr TerrainMaterialGeneratorA::SM2Profile::ShaderHelperHLSL::createFragmentProgram( const SM2Profile* prof, const Terrain* terrain, TechniqueType tt) { HighLevelGpuProgramManager& mgr = HighLevelGpuProgramManager::getSingleton(); String progName = getFragmentProgramName(prof, terrain, tt); HighLevelGpuProgramPtr ret = mgr.getByName(progName); if (ret.isNull()) { ret = mgr.createProgram(progName, ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME, "hlsl", GPT_FRAGMENT_PROGRAM); } else { ret->unload(); } if (prof->_isSM3Available()) ret->setParameter("target", "ps_3_0"); else ret->setParameter("target", "ps_2_x"); ret->setParameter("entry_point", "main_fp"); return ret; } //--------------------------------------------------------------------- //--------------------------------------------------------------------- HighLevelGpuProgramPtr TerrainMaterialGeneratorA::SM2Profile::ShaderHelperGLSL::createVertexProgram( const SM2Profile* prof, const Terrain* terrain, TechniqueType tt) { HighLevelGpuProgramManager& mgr = HighLevelGpuProgramManager::getSingleton(); String progName = getVertexProgramName(prof, terrain, tt); switch(tt) { case HIGH_LOD: progName += "/hlod"; break; case LOW_LOD: progName += "/llod"; break; case RENDER_COMPOSITE_MAP: progName += "/comp"; break; } HighLevelGpuProgramPtr ret = mgr.getByName(progName); if (ret.isNull()) { ret = mgr.createProgram(progName, ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME, "glsl", GPT_VERTEX_PROGRAM); } else { ret->unload(); } return ret; } //--------------------------------------------------------------------- HighLevelGpuProgramPtr TerrainMaterialGeneratorA::SM2Profile::ShaderHelperGLSL::createFragmentProgram( const SM2Profile* prof, const Terrain* terrain, TechniqueType tt) { HighLevelGpuProgramManager& mgr = HighLevelGpuProgramManager::getSingleton(); String progName = getFragmentProgramName(prof, terrain, tt); HighLevelGpuProgramPtr ret = mgr.getByName(progName); if (ret.isNull()) { ret = mgr.createProgram(progName, ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME, "glsl", GPT_FRAGMENT_PROGRAM); } else { ret->unload(); } return ret; } }
[ "1991md@gmail.com" ]
1991md@gmail.com
8114e72c769d4332f5ff71f50d182a58a90657cc
771a5f9d99fdd2431b8883cee39cf82d5e2c9b59
/SDK/BP_female_makeup_black_04_Desc_functions.cpp
ca9e941f09948aba55b5ee91d67955f91f22b601
[ "MIT" ]
permissive
zanzo420/Sea-Of-Thieves-SDK
6305accd032cc95478ede67d28981e041c154dce
f56a0340eb33726c98fc53eb0678fa2d59aa8294
refs/heads/master
2023-03-25T22:25:21.800004
2021-03-20T00:51:04
2021-03-20T00:51:04
null
0
0
null
null
null
null
UTF-8
C++
false
false
580
cpp
// Name: SeaOfThieves, Version: 2.0.23 #include "../pch.h" /*!!DEFINE!!*/ /*!!HELPER_DEF!!*/ /*!!HELPER_INC!!*/ #ifdef _MSC_VER #pragma pack(push, 0x01) #endif namespace CG { //--------------------------------------------------------------------------- // Functions //--------------------------------------------------------------------------- void UBP_female_makeup_black_04_Desc_C::AfterRead() { UClothingDesc::AfterRead(); } void UBP_female_makeup_black_04_Desc_C::BeforeDelete() { UClothingDesc::BeforeDelete(); } } #ifdef _MSC_VER #pragma pack(pop) #endif
[ "40242723+alxalx14@users.noreply.github.com" ]
40242723+alxalx14@users.noreply.github.com
ba9302118f44ef9914e4877958063dcf5849d682
501591e4268ad9a5705012cd93d36bac884847b7
/src/server/game/Server/Protocol/Handlers/VehicleHandler.cpp
d874f6d2e39a80538602e21111d18ae35a697279
[]
no_license
CryNet/MythCore
f550396de5f6e20c79b4aa0eb0a78e5fea9d86ed
ffc5fa1c898d25235cec68c76ac94c3279df6827
refs/heads/master
2020-07-11T10:09:31.244662
2013-06-29T19:06:43
2013-06-29T19:06:43
null
0
0
null
null
null
null
UTF-8
C++
false
false
7,431
cpp
/* * Copyright (C) 2008 - 2011 Trinity <http://www.trinitycore.org/> * * Copyright (C) 2010 - 2012 Myth Project <http://mythprojectnetwork.blogspot.com/> * * Myth Project's source is based on the Trinity Project source, you can find the * link to that easily in Trinity Copyrights. Myth Project is a private community. * To get access, you either have to donate or pass a developer test. * You may not share Myth Project's sources! For personal use only. */ #include "WorldPacket.h" #include "WorldSession.h" #include "Opcodes.h" #include "Vehicle.h" #include "Player.h" #include "Log.h" #include "ObjectAccessor.h" void WorldSession::HandleDismissControlledVehicle(WorldPacket &recv_data) { sLog->outDebug(LOG_FILTER_NETWORKIO, "WORLD: Recvd CMSG_DISMISS_CONTROLLED_VEHICLE"); recv_data.hexlike(); uint64 vehicleGUID = _player->GetCharmGUID(); if(!vehicleGUID) // something wrong here... { recv_data.rfinish(); // prevent warnings spam return; } uint64 guid; recv_data.readPackGUID(guid); MovementInfo mi; mi.guid = guid; ReadMovementInfo(recv_data, &mi); _player->m_movementInfo = mi; _player->ExitVehicle(); } void WorldSession::HandleChangeSeatsOnControlledVehicle(WorldPacket &recv_data) { sLog->outDebug(LOG_FILTER_NETWORKIO, "WORLD: Recvd CMSG_CHANGE_SEATS_ON_CONTROLLED_VEHICLE"); recv_data.hexlike(); Unit* vehicle_base = GetPlayer()->GetVehicleBase(); if(!vehicle_base) { recv_data.rfinish(); // prevent warnings spam return; } VehicleSeatEntry const* seat = GetPlayer()->GetVehicle()->GetSeatForPassenger(GetPlayer()); if(!seat->CanSwitchFromSeat()) { recv_data.rfinish(); // prevent warnings spam sLog->outError("HandleChangeSeatsOnControlledVehicle, Opcode: %u, Player %u tried to switch seats but current seatflags %u don't permit that.", recv_data.GetOpcode(), GetPlayer()->GetGUIDLow(), seat->m_flags); return; } switch(recv_data.GetOpcode()) { case CMSG_REQUEST_VEHICLE_PREV_SEAT: GetPlayer()->ChangeSeat(-1, false); break; case CMSG_REQUEST_VEHICLE_NEXT_SEAT: GetPlayer()->ChangeSeat(-1, true); break; case CMSG_CHANGE_SEATS_ON_CONTROLLED_VEHICLE: { uint64 guid; // current vehicle guid recv_data.readPackGUID(guid); ReadMovementInfo(recv_data, &vehicle_base->m_movementInfo); uint64 accessory; // accessory guid recv_data.readPackGUID(accessory); int8 seatId; recv_data >> seatId; if(vehicle_base->GetGUID() != guid) return; if(!accessory) GetPlayer()->ChangeSeat(-1, seatId > 0); // prev/next else if(Unit* vehUnit = Unit::GetUnit(*GetPlayer(), accessory)) { if(Vehicle* vehicle = vehUnit->GetVehicleKit()) if(vehicle->HasEmptySeat(seatId)) vehUnit->HandleSpellClick(GetPlayer(), seatId); } break; } case CMSG_REQUEST_VEHICLE_SWITCH_SEAT: { uint64 guid; // current vehicle guid recv_data.readPackGUID(guid); int8 seatId; recv_data >> seatId; if(vehicle_base->GetGUID() == guid) GetPlayer()->ChangeSeat(seatId); else if(Unit* vehUnit = Unit::GetUnit(*GetPlayer(), guid)) if(Vehicle* vehicle = vehUnit->GetVehicleKit()) if(vehicle->HasEmptySeat(seatId)) vehUnit->HandleSpellClick(GetPlayer(), seatId); break; } default: break; } } void WorldSession::HandleEnterPlayerVehicle(WorldPacket &data) { // Read guid uint64 guid; data >> guid; if(Player* pl = ObjectAccessor::FindPlayer(guid)) { if(!pl->GetVehicleKit()) return; if(!pl->IsInRaidWith(_player)) return; if(!pl->IsWithinDistInMap(_player, INTERACTION_DISTANCE)) return; _player->EnterVehicle(pl); } } void WorldSession::HandleEjectPassenger(WorldPacket &data) { Vehicle* vehicle = _player->GetVehicleKit(); if(!vehicle) { data.rfinish(); // prevent warnings spam sLog->outError("HandleEjectPassenger: Player %u is not in a vehicle!", GetPlayer()->GetGUIDLow()); return; } uint64 guid; data >> guid; if(IS_PLAYER_GUID(guid)) { Player* plr = ObjectAccessor::FindPlayer(guid); if(!plr) { sLog->outError("Player %u tried to eject player %u from vehicle, but the latter was not found in world!", GetPlayer()->GetGUIDLow(), GUID_LOPART(guid)); return; } if(!plr->IsOnVehicle(vehicle->GetBase())) { sLog->outError("Player %u tried to eject player %u, but they are not in the same vehicle", GetPlayer()->GetGUIDLow(), GUID_LOPART(guid)); return; } VehicleSeatEntry const* seat = vehicle->GetSeatForPassenger(plr); ASSERT(seat); if(seat->IsEjectable()) plr->ExitVehicle(); else sLog->outError("Player %u attempted to eject player %u from non-ejectable seat.", GetPlayer()->GetGUIDLow(), GUID_LOPART(guid)); } else if(IS_CREATURE_GUID(guid)) { Unit* unit = ObjectAccessor::GetUnit(*_player, guid); if(!unit) // creatures can be ejected too from player mounts { sLog->outError("Player %u tried to eject creature guid %u from vehicle, but the latter was not found in world!", GetPlayer()->GetGUIDLow(), GUID_LOPART(guid)); return; } if(!unit->IsOnVehicle(vehicle->GetBase())) { sLog->outError("Player %u tried to eject unit %u, but they are not in the same vehicle", GetPlayer()->GetGUIDLow(), GUID_LOPART(guid)); return; } VehicleSeatEntry const* seat = vehicle->GetSeatForPassenger(unit); ASSERT(seat); if(seat->IsEjectable()) { ASSERT(GetPlayer() == vehicle->GetBase()); unit->ExitVehicle(); } else sLog->outError("Player %u attempted to eject creature GUID %u from non-ejectable seat.", GetPlayer()->GetGUIDLow(), GUID_LOPART(guid)); } else sLog->outError("HandleEjectPassenger: Player %u tried to eject invalid GUID "UI64FMTD, GetPlayer()->GetGUIDLow(), guid); } void WorldSession::HandleRequestVehicleExit(WorldPacket &recv_data) { sLog->outDebug(LOG_FILTER_NETWORKIO, "WORLD: Recvd CMSG_REQUEST_VEHICLE_EXIT"); recv_data.hexlike(); if(Vehicle* vehicle = GetPlayer()->GetVehicle()) { if(VehicleSeatEntry const* seat = vehicle->GetSeatForPassenger(GetPlayer())) { if(seat->CanEnterOrExit()) GetPlayer()->ExitVehicle(); else sLog->outError("Player %u tried to exit vehicle, but seatflags %u (ID: %u) don't permit that.", GetPlayer()->GetGUIDLow(), seat->m_ID, seat->m_flags); } } }
[ "vitasic-pokataev@yandex.ru" ]
vitasic-pokataev@yandex.ru
05025935b5806e04044f17a9613b7c54cca940de
b778b18efb8e51fda19eea63e4263c65577f3dfa
/src/devices/thermosensors.cpp
5cf284f25fdd925a170390d38fb016777780cfc8
[]
no_license
alambin/sad_lamp_arduino
c620695c1cf913598018ab233a15e8891c83e081
f7b31d71708cf0d60dfc9310ff1b2082849e54a9
refs/heads/master
2023-08-26T00:35:59.410867
2021-10-11T07:45:51
2021-10-11T07:45:51
339,043,853
0
0
null
null
null
null
UTF-8
C++
false
false
3,695
cpp
#include "thermosensors.hpp" #include <HardwareSerial.h> #include <Streaming.h> namespace { // Calibration data: // // 1 sensor (28B61675D0013CA2 - orange wires): // 37.0 on medical thermometer -> 36.31 on sensor // Boiling water (100) -> 97.25, but water in boiling pan can have different temperatures in different areas! // // 2 sensor (287B2275D0013CEC - blue wires): // 37.0 on medical thermometer -> 36.7 on sensor // Boiling water (100) -> 98.25, but water in boiling pan can have different temperatures in different areas! const PROGMEM DeviceAddress kSensorAddress1 = {0x28, 0xB6, 0x16, 0x75, 0xD0, 0x01, 0x3C, 0xA2}; constexpr float kRawHigh1 = 97.25; constexpr float kReferenceHigh1 = 100.0; constexpr float kRawLow1 = 35.92; // 36.31 constexpr float kReferenceLow1 = 36.7; // 37.0 constexpr float kRawRange1 = kRawHigh1 - kRawLow1; constexpr float kReferenceRange1 = kReferenceHigh1 - kReferenceLow1; const PROGMEM DeviceAddress kSensorAddress2 = {0x28, 0x7B, 0x22, 0x75, 0xD0, 0x01, 0x3C, 0xEC}; constexpr float kRawHigh2 = 98.25; constexpr float kReferenceHigh2 = 100.0; constexpr float kRawLow2 = 36.7; constexpr float kReferenceLow2 = 37.0; constexpr float kRawRange2 = kRawHigh2 - kRawLow2; constexpr float kReferenceRange2 = kReferenceHigh2 - kReferenceLow2; bool AreSensorAddressesEqual(DeviceAddress const& l, DeviceAddress const& r) { for (uint8_t i = 0; i < 8; ++i) { if (l[i] != pgm_read_byte(&r[i])) { return false; } } return true; } } // namespace ThermoSensors::ThermoSensors(uint8_t pin) : pin_{pin} , oneWire_{} , sensors_{} , last_temperatures_{kInvalidTemperature, kInvalidTemperature} { } void ThermoSensors::Setup() { oneWire_.begin(pin_); sensors_.setOneWire(&oneWire_); sensors_.begin(); Serial << F("Found ") << sensors_.getDeviceCount() << F(" thermal sensors.\n"); if (sensors_.getDeviceCount() < kNumOfSensors_) { Serial << F("ERROR: expected number of sensors is ") << kNumOfSensors_ << endl; } for (int i = 0; i < kNumOfSensors_; ++i) { if (sensors_.getAddress(addresses_[i], i)) { sensors_.setResolution(addresses_[i], resolution_); } else { Serial << F("Unable to get address for Device ") << i << endl; } } sensors_.setResolution(resolution_); sensors_.setWaitForConversion(false); sensors_.requestTemperatures(); } void ThermoSensors::Loop() { static uint32_t last_reading_time{0}; auto now = millis(); if ((now - last_reading_time) < conversion_timeout_) { return; } last_reading_time = now; last_temperatures_[0] = ConvertByCalibration(sensors_.getTempC(addresses_[0]), addresses_[0]); last_temperatures_[1] = ConvertByCalibration(sensors_.getTempC(addresses_[1]), addresses_[1]); sensors_.requestTemperatures(); } void ThermoSensors::GetTemperatures(float (&temperatures)[2]) const { temperatures[0] = last_temperatures_[0]; temperatures[1] = last_temperatures_[1]; } float ThermoSensors::ConvertByCalibration(float T, DeviceAddress const& sensor_address) const { if (AreSensorAddressesEqual(sensor_address, kSensorAddress1)) { return (((T - kRawLow1) * kReferenceRange1) / kRawRange1) + kReferenceLow1; } else if (AreSensorAddressesEqual(sensor_address, kSensorAddress2)) { return (((T - kRawLow2) * kReferenceRange2) / kRawRange2) + kReferenceLow2; } else { return T; } }
[ "extern.aleksei.lambin@porsche.de" ]
extern.aleksei.lambin@porsche.de
60714149543000324d207dd222ec66295d0bf0c4
482e8aabcaf3c3a01b9fc06049e82410445b7208
/map.cpp
f68ab4ae31a2ce0ce0d7b5083007aca0fb49f8ca
[]
no_license
NickVeld/robo-pathfinding
fecb3e080f82a83a6811466cac27751a4ce0685a
a13a884dc21eb5f5f7dbf308433f307a78f739cc
refs/heads/master
2023-04-07T20:40:54.770017
2021-04-14T08:11:43
2021-04-14T08:11:43
109,509,332
0
0
null
null
null
null
UTF-8
C++
false
false
16,357
cpp
#include "map.h" Map::Map() { height = -1; width = -1; start_i = -1; start_j = -1; goal_i = -1; goal_j = -1; Grid = NULL; cellSize = 1; } Map::~Map() { if (Grid) { for (int i = 0; i < height; ++i) delete[] Grid[i]; delete[] Grid; } } int Map::get_start_i() const { return start_i; } int Map::get_start_j() const { return start_j; } int Map::get_goal_i() const { return goal_i; } int Map::get_goal_j() const { return goal_j; } bool Map::CellIsTraversable(int i, int j) const { return (Grid[i][j] == CN_GC_NOOBS); } bool Map::CellIsObstacle(int i, int j) const { return (Grid[i][j] != CN_GC_NOOBS); } bool Map::CellOnGrid(int i, int j) const { return (i < height && i >= 0 && j < width && j >= 0); } bool Map::MoveIsAvaiable(int i, int j, int from_i, int from_j, const EnvironmentOptions &options) const { //Version for independent cutcorners and allowsqueeze /* if (Map::CellOnGrid(i, j) && Map::CellIsTraversable(i, j)) { if (from_i == i || from_j == j) { return true; } else { if (options.allowdiagonal){ return ((int(Map::CellIsObstacle(from_i, j)) + int(Map::CellIsObstacle(i, from_j))) <= int(options.cutcorners)) || int(Map::CellIsObstacle(from_i, j)) + int(Map::CellIsObstacle(i, from_j)) == (int(options.allowsqueeze) << 1); } else { return false; } } } else { return false; } */ /* return Map::CellOnGrid(i, j) && Map::CellIsTraversable(i, j) && ( from_i == i || from_j == j || ( options.allowdiagonal && ( ((int(Map::CellIsObstacle(from_i, j)) + int(Map::CellIsObstacle(i, from_j))) <= int(options.cutcorners)) || (int(Map::CellIsObstacle(from_i, j)) + int(Map::CellIsObstacle(i, from_j)) == (int(options.allowsqueeze) << 1)) ) ) ); */ //Version for dependent cutcorners and allowsqueeze /* if (Map::CellOnGrid(i, j) && Map::CellIsTraversable(i, j)) { if (from_i == i || from_j == j) { return true; } else { if (options.allowdiagonal){ return int(Map::CellIsObstacle(from_i, j)) + int(Map::CellIsObstacle(i, from_j)) <= int(options.cutcorners) + int(options.allowsqueeze); } else { return false; } } } else { return false; } */ return Map::CellOnGrid(i, j) && Map::CellIsTraversable(i, j) && ( from_i == i || from_j == j || ( options.allowdiagonal && ( int(Map::CellIsObstacle(from_i, j)) + int(Map::CellIsObstacle(i, from_j)) <= int(options.cutcorners) + int(options.allowsqueeze) ) ) ) ; } bool Map::getMap(const char *FileName) { int rowiter = 0, grid_i = 0, grid_j = 0; tinyxml2::XMLElement *root = 0, *map = 0, *element = 0, *mapnode; std::string value; std::stringstream stream; bool hasGridMem = false, hasGrid = false, hasHeight = false, hasWidth = false, hasSTX = false, hasSTY = false, hasFINX = false, hasFINY = false, hasCellSize = false; tinyxml2::XMLDocument doc; // Load XML File if (doc.LoadFile(FileName) != tinyxml2::XMLError::XML_SUCCESS) { std::cout << doc.LoadFile(FileName) << std::endl; std::cout << "Error opening XML file!" << std::endl; return false; } // Get ROOT element root = doc.FirstChildElement(CNS_TAG_ROOT); if (!root) { std::cout << "Error! No '" << CNS_TAG_ROOT << "' tag found in XML file!" << std::endl; return false; } // Get MAP element map = root->FirstChildElement(CNS_TAG_MAP); if (!map) { std::cout << "Error! No '" << CNS_TAG_MAP << "' tag found in XML file!" << std::endl; return false; } for (mapnode = map->FirstChildElement(); mapnode; mapnode = mapnode->NextSiblingElement()) { element = mapnode->ToElement(); value = mapnode->Value(); std::transform(value.begin(), value.end(), value.begin(), ::tolower); stream.str(""); stream.clear(); stream << element->GetText(); if (!hasGridMem && hasHeight && hasWidth) { Grid = new int *[height]; for (int i = 0; i < height; ++i) Grid[i] = new int[width]; hasGridMem = true; } if (value == CNS_TAG_HEIGHT) { if (hasHeight) { std::cout << "Warning! Duplicate '" << CNS_TAG_HEIGHT << "' encountered." << std::endl; std::cout << "Only first value of '" << CNS_TAG_HEIGHT << "' =" << height << "will be used." << std::endl; } else { if (!((stream >> height) && (height > 0))) { std::cout << "Warning! Invalid value of '" << CNS_TAG_HEIGHT << "' tag encountered (or could not convert to integer)." << std::endl; std::cout << "Value of '" << CNS_TAG_HEIGHT << "' tag should be an integer >=0" << std::endl; std::cout << "Continue reading XML and hope correct value of '" << CNS_TAG_HEIGHT << "' tag will be encountered later..." << std::endl; } else hasHeight = true; } } else if (value == CNS_TAG_WIDTH) { if (hasWidth) { std::cout << "Warning! Duplicate '" << CNS_TAG_WIDTH << "' encountered." << std::endl; std::cout << "Only first value of '" << CNS_TAG_WIDTH << "' =" << width << "will be used." << std::endl; } else { if (!((stream >> width) && (width > 0))) { std::cout << "Warning! Invalid value of '" << CNS_TAG_WIDTH << "' tag encountered (or could not convert to integer)." << std::endl; std::cout << "Value of '" << CNS_TAG_WIDTH << "' tag should be an integer AND >0" << std::endl; std::cout << "Continue reading XML and hope correct value of '" << CNS_TAG_WIDTH << "' tag will be encountered later..." << std::endl; } else hasWidth = true; } } else if (value == CNS_TAG_CELLSIZE) { if (hasCellSize) { std::cout << "Warning! Duplicate '" << CNS_TAG_CELLSIZE << "' encountered." << std::endl; std::cout << "Only first value of '" << CNS_TAG_CELLSIZE << "' =" << cellSize << "will be used." << std::endl; } else { if (!((stream >> cellSize) && (cellSize > 0))) { std::cout << "Warning! Invalid value of '" << CNS_TAG_CELLSIZE << "' tag encountered (or could not convert to double)." << std::endl; std::cout << "Value of '" << CNS_TAG_CELLSIZE << "' tag should be double AND >0. By default it is defined to '1'" << std::endl; std::cout << "Continue reading XML and hope correct value of '" << CNS_TAG_CELLSIZE << "' tag will be encountered later..." << std::endl; } else hasCellSize = true; } } else if (value == CNS_TAG_STX) { if (!hasWidth) { std::cout << "Error! '" << CNS_TAG_STX << "' tag encountered before '" << CNS_TAG_WIDTH << "' tag." << std::endl; return false; } if (hasSTX) { std::cout << "Warning! Duplicate '" << CNS_TAG_STX << "' encountered." << std::endl; std::cout << "Only first value of '" << CNS_TAG_STX << "' =" << start_j << "will be used." << std::endl; } else { if (!(stream >> start_j && start_j >= 0 && start_j < width)) { std::cout << "Warning! Invalid value of '" << CNS_TAG_STX << "' tag encountered (or could not convert to integer)" << std::endl; std::cout << "Value of '" << CNS_TAG_STX << "' tag should be an integer AND >=0 AND < '" << CNS_TAG_WIDTH << "' value, which is " << width << std::endl; std::cout << "Continue reading XML and hope correct value of '" << CNS_TAG_STX << "' tag will be encountered later..." << std::endl; } else hasSTX = true; } } else if (value == CNS_TAG_STY) { if (!hasHeight) { std::cout << "Error! '" << CNS_TAG_STY << "' tag encountered before '" << CNS_TAG_HEIGHT << "' tag." << std::endl; return false; } if (hasSTY) { std::cout << "Warning! Duplicate '" << CNS_TAG_STY << "' encountered." << std::endl; std::cout << "Only first value of '" << CNS_TAG_STY << "' =" << start_i << "will be used." << std::endl; } else { if (!(stream >> start_i && start_i >= 0 && start_i < height)) { std::cout << "Warning! Invalid value of '" << CNS_TAG_STY << "' tag encountered (or could not convert to integer)" << std::endl; std::cout << "Value of '" << CNS_TAG_STY << "' tag should be an integer AND >=0 AND < '" << CNS_TAG_HEIGHT << "' value, which is " << height << std::endl; std::cout << "Continue reading XML and hope correct value of '" << CNS_TAG_STY << "' tag will be encountered later..." << std::endl; } else hasSTY = true; } } else if (value == CNS_TAG_FINX) { if (!hasWidth) { std::cout << "Error! '" << CNS_TAG_FINX << "' tag encountered before '" << CNS_TAG_WIDTH << "' tag." << std::endl; return false; } if (hasFINX) { std::cout << "Warning! Duplicate '" << CNS_TAG_FINX << "' encountered." << std::endl; std::cout << "Only first value of '" << CNS_TAG_FINX << "' =" << goal_j << "will be used." << std::endl; } else { if (!(stream >> goal_j && goal_j >= 0 && goal_j < width)) { std::cout << "Warning! Invalid value of '" << CNS_TAG_FINX << "' tag encountered (or could not convert to integer)" << std::endl; std::cout << "Value of '" << CNS_TAG_FINX << "' tag should be an integer AND >=0 AND < '" << CNS_TAG_WIDTH << "' value, which is " << width << std::endl; std::cout << "Continue reading XML and hope correct value of '" << CNS_TAG_FINX << "' tag will be encountered later..." << std::endl; } else hasFINX = true; } } else if (value == CNS_TAG_FINY) { if (!hasHeight) { std::cout << "Error! '" << CNS_TAG_FINY << "' tag encountered before '" << CNS_TAG_HEIGHT << "' tag." << std::endl; return false; } if (hasFINY) { std::cout << "Warning! Duplicate '" << CNS_TAG_FINY << "' encountered." << std::endl; std::cout << "Only first value of '" << CNS_TAG_FINY << "' =" << goal_i << "will be used." << std::endl; } else { if (!(stream >> goal_i && goal_i >= 0 && goal_i < height)) { std::cout << "Warning! Invalid value of '" << CNS_TAG_FINY << "' tag encountered (or could not convert to integer)" << std::endl; std::cout << "Value of '" << CNS_TAG_FINY << "' tag should be an integer AND >=0 AND < '" << CNS_TAG_HEIGHT << "' value, which is " << height << std::endl; std::cout << "Continue reading XML and hope correct value of '" << CNS_TAG_FINY << "' tag will be encountered later..." << std::endl; } else hasFINY = true; } } else if (value == CNS_TAG_GRID) { hasGrid = true; if (!(hasHeight && hasWidth)) { std::cout << "Error! No '" << CNS_TAG_WIDTH << "' tag or '" << CNS_TAG_HEIGHT << "' tag before '" << CNS_TAG_GRID << "'tag encountered!" << std::endl; return false; } element = mapnode->FirstChildElement(); while (grid_i < height) { if (!element) { std::cout << "Error! Not enough '" << CNS_TAG_ROW << "' tags inside '" << CNS_TAG_GRID << "' tag." << std::endl; std::cout << "Number of '" << CNS_TAG_ROW << "' tags should be equal (or greater) than the value of '" << CNS_TAG_HEIGHT << "' tag which is " << height << std::endl; return false; } std::string str = element->GetText(); std::vector<std::string> elems; std::stringstream ss(str); std::string item; while (std::getline(ss, item, ' ')) elems.push_back(item); rowiter = grid_j = 0; int val; if (elems.size() > 0) for (grid_j = 0; grid_j < width; ++grid_j) { if (grid_j == elems.size()) break; stream.str(""); stream.clear(); stream << elems[grid_j]; stream >> val; Grid[grid_i][grid_j] = val; } if (grid_j != width) { std::cout << "Invalid value on " << CNS_TAG_GRID << " in the " << grid_i + 1 << " " << CNS_TAG_ROW << std::endl; return false; } ++grid_i; element = element->NextSiblingElement(); } } } //some additional checks if (!hasGrid) { std::cout << "Error! There is no tag 'grid' in xml-file!\n"; return false; } if (!(hasFINX && hasFINY && hasSTX && hasSTY)) return false; if (Grid[start_i][start_j] != CN_GC_NOOBS) { std::cout << "Error! Start cell is not traversable (cell's value is" << Grid[start_i][start_j] << ")!" << std::endl; return false; } if (Grid[goal_i][goal_j] != CN_GC_NOOBS) { std::cout << "Error! Goal cell is not traversable (cell's value is" << Grid[goal_i][goal_j] << ")!" << std::endl; return false; } return true; } int Map::getValue(int i, int j) const { if (i < 0 || i >= height) return -1; if (j < 0 || j >= width) return -1; return Grid[i][j]; } int Map::getMapHeight() const { return height; } int Map::getMapWidth() const { return width; } double Map::getCellSize() const { return cellSize; }
[ "NickVeld@users.noreply.github.com" ]
NickVeld@users.noreply.github.com
491571bc587cdfdff9ddfe6501fc88004b413eae
3b8acbbb565ff8c7183883847ed874b02966eb1f
/devel/include/comp313p_mapper/MapUpdate.h
20c463c6662f9069203bd859d8d90b747b266311
[]
no_license
tahlia5119/cw2_ws
1ffe0e17d37a2b1c0ff3c83188447db8bb2f46bf
9e022ecfc01d98515f3d24abf3fda8bc95bc3fa5
refs/heads/master
2020-03-11T23:55:02.672197
2018-04-20T09:12:29
2018-04-20T09:12:29
126,618,451
0
0
null
null
null
null
UTF-8
C++
false
false
8,095
h
// Generated by gencpp from file comp313p_mapper/MapUpdate.msg // DO NOT EDIT! #ifndef COMP313P_MAPPER_MESSAGE_MAPUPDATE_H #define COMP313P_MAPPER_MESSAGE_MAPUPDATE_H #include <string> #include <vector> #include <map> #include <ros/types.h> #include <ros/serialization.h> #include <ros/builtin_message_traits.h> #include <ros/message_operations.h> #include <std_msgs/Header.h> namespace comp313p_mapper { template <class ContainerAllocator> struct MapUpdate_ { typedef MapUpdate_<ContainerAllocator> Type; MapUpdate_() : header() , isPriorMap(false) , scale(0.0) , extentInCells() , resolution(0.0) , occupancyGrid() , deltaOccupancyGrid() { } MapUpdate_(const ContainerAllocator& _alloc) : header(_alloc) , isPriorMap(false) , scale(0.0) , extentInCells(_alloc) , resolution(0.0) , occupancyGrid(_alloc) , deltaOccupancyGrid(_alloc) { (void)_alloc; } typedef ::std_msgs::Header_<ContainerAllocator> _header_type; _header_type header; typedef uint8_t _isPriorMap_type; _isPriorMap_type isPriorMap; typedef float _scale_type; _scale_type scale; typedef std::vector<int16_t, typename ContainerAllocator::template rebind<int16_t>::other > _extentInCells_type; _extentInCells_type extentInCells; typedef float _resolution_type; _resolution_type resolution; typedef std::vector<float, typename ContainerAllocator::template rebind<float>::other > _occupancyGrid_type; _occupancyGrid_type occupancyGrid; typedef std::vector<float, typename ContainerAllocator::template rebind<float>::other > _deltaOccupancyGrid_type; _deltaOccupancyGrid_type deltaOccupancyGrid; typedef boost::shared_ptr< ::comp313p_mapper::MapUpdate_<ContainerAllocator> > Ptr; typedef boost::shared_ptr< ::comp313p_mapper::MapUpdate_<ContainerAllocator> const> ConstPtr; }; // struct MapUpdate_ typedef ::comp313p_mapper::MapUpdate_<std::allocator<void> > MapUpdate; typedef boost::shared_ptr< ::comp313p_mapper::MapUpdate > MapUpdatePtr; typedef boost::shared_ptr< ::comp313p_mapper::MapUpdate const> MapUpdateConstPtr; // constants requiring out of line definition template<typename ContainerAllocator> std::ostream& operator<<(std::ostream& s, const ::comp313p_mapper::MapUpdate_<ContainerAllocator> & v) { ros::message_operations::Printer< ::comp313p_mapper::MapUpdate_<ContainerAllocator> >::stream(s, "", v); return s; } } // namespace comp313p_mapper namespace ros { namespace message_traits { // BOOLTRAITS {'IsFixedSize': False, 'IsMessage': True, 'HasHeader': True} // {'comp313p_mapper': ['/home/tahlia/cw2_test/src/comp313p/comp313p_mapper/msg'], 'std_msgs': ['/opt/ros/kinetic/share/std_msgs/cmake/../msg']} // !!!!!!!!!!! ['__class__', '__delattr__', '__dict__', '__doc__', '__eq__', '__format__', '__getattribute__', '__hash__', '__init__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', '_parsed_fields', 'constants', 'fields', 'full_name', 'has_header', 'header_present', 'names', 'package', 'parsed_fields', 'short_name', 'text', 'types'] template <class ContainerAllocator> struct IsFixedSize< ::comp313p_mapper::MapUpdate_<ContainerAllocator> > : FalseType { }; template <class ContainerAllocator> struct IsFixedSize< ::comp313p_mapper::MapUpdate_<ContainerAllocator> const> : FalseType { }; template <class ContainerAllocator> struct IsMessage< ::comp313p_mapper::MapUpdate_<ContainerAllocator> > : TrueType { }; template <class ContainerAllocator> struct IsMessage< ::comp313p_mapper::MapUpdate_<ContainerAllocator> const> : TrueType { }; template <class ContainerAllocator> struct HasHeader< ::comp313p_mapper::MapUpdate_<ContainerAllocator> > : TrueType { }; template <class ContainerAllocator> struct HasHeader< ::comp313p_mapper::MapUpdate_<ContainerAllocator> const> : TrueType { }; template<class ContainerAllocator> struct MD5Sum< ::comp313p_mapper::MapUpdate_<ContainerAllocator> > { static const char* value() { return "bb9eab5859acbeac865abd611e41d4b8"; } static const char* value(const ::comp313p_mapper::MapUpdate_<ContainerAllocator>&) { return value(); } static const uint64_t static_value1 = 0xbb9eab5859acbeacULL; static const uint64_t static_value2 = 0x865abd611e41d4b8ULL; }; template<class ContainerAllocator> struct DataType< ::comp313p_mapper::MapUpdate_<ContainerAllocator> > { static const char* value() { return "comp313p_mapper/MapUpdate"; } static const char* value(const ::comp313p_mapper::MapUpdate_<ContainerAllocator>&) { return value(); } }; template<class ContainerAllocator> struct Definition< ::comp313p_mapper::MapUpdate_<ContainerAllocator> > { static const char* value() { return "Header header\n\ \n\ bool isPriorMap\n\ \n\ float32 scale\n\ int16[] extentInCells\n\ float32 resolution\n\ \n\ float32[] occupancyGrid\n\ float32[] deltaOccupancyGrid\n\ ================================================================================\n\ MSG: std_msgs/Header\n\ # Standard metadata for higher-level stamped data types.\n\ # This is generally used to communicate timestamped data \n\ # in a particular coordinate frame.\n\ # \n\ # sequence ID: consecutively increasing ID \n\ uint32 seq\n\ #Two-integer timestamp that is expressed as:\n\ # * stamp.sec: seconds (stamp_secs) since epoch (in Python the variable is called 'secs')\n\ # * stamp.nsec: nanoseconds since stamp_secs (in Python the variable is called 'nsecs')\n\ # time-handling sugar is provided by the client library\n\ time stamp\n\ #Frame this data is associated with\n\ # 0: no frame\n\ # 1: global frame\n\ string frame_id\n\ "; } static const char* value(const ::comp313p_mapper::MapUpdate_<ContainerAllocator>&) { return value(); } }; } // namespace message_traits } // namespace ros namespace ros { namespace serialization { template<class ContainerAllocator> struct Serializer< ::comp313p_mapper::MapUpdate_<ContainerAllocator> > { template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) { stream.next(m.header); stream.next(m.isPriorMap); stream.next(m.scale); stream.next(m.extentInCells); stream.next(m.resolution); stream.next(m.occupancyGrid); stream.next(m.deltaOccupancyGrid); } ROS_DECLARE_ALLINONE_SERIALIZER }; // struct MapUpdate_ } // namespace serialization } // namespace ros namespace ros { namespace message_operations { template<class ContainerAllocator> struct Printer< ::comp313p_mapper::MapUpdate_<ContainerAllocator> > { template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::comp313p_mapper::MapUpdate_<ContainerAllocator>& v) { s << indent << "header: "; s << std::endl; Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header); s << indent << "isPriorMap: "; Printer<uint8_t>::stream(s, indent + " ", v.isPriorMap); s << indent << "scale: "; Printer<float>::stream(s, indent + " ", v.scale); s << indent << "extentInCells[]" << std::endl; for (size_t i = 0; i < v.extentInCells.size(); ++i) { s << indent << " extentInCells[" << i << "]: "; Printer<int16_t>::stream(s, indent + " ", v.extentInCells[i]); } s << indent << "resolution: "; Printer<float>::stream(s, indent + " ", v.resolution); s << indent << "occupancyGrid[]" << std::endl; for (size_t i = 0; i < v.occupancyGrid.size(); ++i) { s << indent << " occupancyGrid[" << i << "]: "; Printer<float>::stream(s, indent + " ", v.occupancyGrid[i]); } s << indent << "deltaOccupancyGrid[]" << std::endl; for (size_t i = 0; i < v.deltaOccupancyGrid.size(); ++i) { s << indent << " deltaOccupancyGrid[" << i << "]: "; Printer<float>::stream(s, indent + " ", v.deltaOccupancyGrid[i]); } } }; } // namespace message_operations } // namespace ros #endif // COMP313P_MAPPER_MESSAGE_MAPUPDATE_H
[ "tahlia.cutifani@gmail.com" ]
tahlia.cutifani@gmail.com
aa7e41b1b261b3fee79a73082674b0983c14d381
bb41c4e142e8874bf1de1af7b75f0ef850e5a0f1
/GifImage/Shared/GaussianBlurEffectDescription.h
e770f52db5188b2d47a6449ef20c90edac641219
[ "MIT" ]
permissive
zhanghua0926/GifImageSource
4a71b76cbd3dfb2db3ce581ea5abdad2a67de0b3
83dc8bbd79a6203d09e01f5d691519fd9196e348
refs/heads/master
2023-03-16T09:25:44.499571
2018-02-26T01:14:29
2018-02-26T01:14:29
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,323
h
#pragma once #include "pch.h" #include "IEffectDescription.h" namespace GifImage { public enum struct GaussianBlurOptimization {Speed, Balanced, Quality}; public enum struct GaussianBlurBorderMode {Soft, Hard}; public ref class GaussianBlurEffectDescription sealed : IEffectDescription { public: GaussianBlurEffectDescription(float deviation, GaussianBlurOptimization optimization, GaussianBlurBorderMode borderMode); GaussianBlurEffectDescription(); virtual EffectGuid^ GetEffectGuid() { GUID g = CLSID_D2D1GaussianBlur; return ref new EffectGuid(g.Data1, g.Data2, g.Data3, g.Data4[0], g.Data4[1], g.Data4[2], g.Data4[3], g.Data4[4], g.Data4[5], g.Data4[6], g.Data4[7]); } virtual int GetParametersCount() { return 3; } virtual EffectParameterValue^ GetParameter(int index) { switch (index) { case 0: return ref new EffectParameterValue(D2D1_GAUSSIANBLUR_PROP_STANDARD_DEVIATION, Deviation); case 1: return ref new EffectParameterValue(D2D1_GAUSSIANBLUR_PROP_OPTIMIZATION, (int)Optimization); case 2: return ref new EffectParameterValue(D2D1_GAUSSIANBLUR_PROP_BORDER_MODE, (int)BorderMode); } return nullptr; } property float Deviation; property GaussianBlurOptimization Optimization; property GaussianBlurBorderMode BorderMode; }; }
[ "sskodje@gmail.com" ]
sskodje@gmail.com
471f9092c62f649c7b5c6e6c152bd2252bee436c
035c23cff67a9e0fdce3d9a021807697fe266883
/common/newsparse/krylov_solvers.cpp
61b5867e268ad0639676b85dc2eb9fa0ad9beff4
[ "BSD-2-Clause" ]
permissive
joeedh/eltopo
bf6420ff11efc29ac36882e84ba0094b442d6f50
5db63d4df66816a07509fe3884299fca52d38665
refs/heads/master
2021-01-05T15:27:08.708465
2020-03-13T21:58:09
2020-03-13T21:58:09
241,061,523
0
0
BSD-2-Clause
2020-02-17T08:59:20
2020-02-17T08:59:20
null
UTF-8
C++
false
false
6,210
cpp
#include <krylov_solvers.h> #include <blas_wrapper.h> #include <cassert> //============================================================================ KrylovSolverStatus CG_Solver:: solve(const LinearOperator &A, const double *rhs, double *result, const LinearOperator *preconditioner, bool use_given_initial_guess) { const int n=A.m; assert(A.n==n); assert(preconditioner==0 || (preconditioner->m==n && preconditioner->n==n)); if((int)s.size()!=n){ r.resize(n); z.resize(n); s.resize(n); } // convergence tolerance double tol=tolerance_factor*BLAS::abs_max(n, rhs); // initial guess if(use_given_initial_guess){ A.apply_and_subtract(result, rhs, &r[0]); }else{ BLAS::set_zero(n, result); BLAS::copy(n, rhs, &r[0]); } // check instant convergence iteration=0; residual_norm=BLAS::abs_max(r); if(residual_norm==0) return status=KRYLOV_CONVERGED; // set up CG double rho; if(preconditioner) preconditioner->apply(r, z); else BLAS::copy(r, z); rho=BLAS::dot(r, z); if(rho<=0 || rho!=rho) return status=KRYLOV_BREAKDOWN; BLAS::copy(z, s); // and iterate for(iteration=1; iteration<max_iterations; ++iteration){ double alpha; A.apply(s, z); // reusing z=A*s double sz=BLAS::dot(s, z); if(sz<=0 || sz!=sz) return status=KRYLOV_BREAKDOWN; alpha=rho/sz; BLAS::add_scaled(n, alpha, &s[0], result); BLAS::add_scaled(-alpha, z, r); residual_norm=BLAS::abs_max(r); if(residual_norm<=tol) return status=KRYLOV_CONVERGED; if(preconditioner) preconditioner->apply(r, z); else BLAS::copy(r, z); double rho_new=BLAS::dot(r, z); if(rho_new<=0 || rho_new!=rho_new) return status=KRYLOV_BREAKDOWN; double beta=rho_new/rho; BLAS::add_scaled(beta, s, z); s.swap(z); // s=beta*s+z rho=rho_new; } return status=KRYLOV_EXCEEDED_MAX_ITERATIONS; } //============================================================================ KrylovSolverStatus MINRES_CR_Solver:: solve(const LinearOperator &A, const double *rhs, double *result, const LinearOperator *preconditioner, bool use_given_initial_guess) { const int n=A.m; assert(A.n==n); assert(preconditioner==0 || (preconditioner->m==n && preconditioner->n==n)); if((int)s.size()!=n){ r.resize(n); z.resize(n); q.resize(n); s.resize(n); t.resize(n); } // convergence tolerance double tol=tolerance_factor*BLAS::abs_max(n, rhs); // initial guess if(use_given_initial_guess){ A.apply_and_subtract(result, rhs, &r[0]); }else{ BLAS::set_zero(n, result); BLAS::copy(n, rhs, &r[0]); } // check instant convergence iteration=0; residual_norm=BLAS::abs_max(r); if(residual_norm==0) return status=KRYLOV_CONVERGED; // set up CR double rho; if(preconditioner) preconditioner->apply(r, z); else BLAS::copy(r, s); A.apply(s, t); rho=BLAS::dot(r, t); if(rho==0 || rho!=rho) return status=KRYLOV_BREAKDOWN; // and iterate for(iteration=1; iteration<max_iterations; ++iteration){ double alpha; double tt=BLAS::dot(t, t); if(tt==0 || tt!=tt) return status=KRYLOV_BREAKDOWN; alpha=rho/tt; BLAS::add_scaled(n, alpha, &s[0], result); BLAS::add_scaled(-alpha, t, r); residual_norm=BLAS::abs_max(r); if(residual_norm<=tol) return KRYLOV_CONVERGED; if(preconditioner) preconditioner->apply(r, z); else BLAS::copy(r, z); A.apply(z, q); double rho_new=BLAS::dot(r, q); if(rho_new==0 || rho_new!=rho_new) return KRYLOV_BREAKDOWN; double beta=rho_new/rho; BLAS::add_scaled(beta, s, z); s.swap(z); // s=beta*s+z BLAS::add_scaled(beta, t, q); t.swap(q); // t=beta*t+q rho=rho_new; } return KRYLOV_EXCEEDED_MAX_ITERATIONS; } //============================================================================ KrylovSolverStatus CGNR_Solver:: solve(const LinearOperator &A, const double *rhs, double *result, const LinearOperator *preconditioner, bool use_given_initial_guess) { const int m=A.m, n=A.n; assert(preconditioner==0 || (preconditioner->m==n && preconditioner->n==n)); if((int)s.size()!=n){ r.resize(n); z.resize(n); s.resize(n); u.resize(m); } // convergence tolerance A.apply_transpose(rhs, &r[0]); // form A^T*rhs in r double tol=tolerance_factor*BLAS::abs_max(r); // initial guess if(use_given_initial_guess){ A.apply_and_subtract(result, rhs, &u[0]); A.apply_transpose(u, r); }else{ BLAS::set_zero(n, result); } // check instant convergence iteration=0; residual_norm=BLAS::abs_max(r); if(residual_norm==0) return status=KRYLOV_CONVERGED; // set up CG double rho; if(preconditioner) preconditioner->apply(r, z); else BLAS::copy(r, z); rho=BLAS::dot(r, z); if(rho<=0 || rho!=rho) return status=KRYLOV_BREAKDOWN; BLAS::copy(z, s); // and iterate for(iteration=1; iteration<max_iterations; ++iteration){ double alpha; A.apply(s, u); A.apply_transpose(u, z); double sz=BLAS::dot(u, u); if(sz<=0 || sz!=sz) return status=KRYLOV_BREAKDOWN; alpha=rho/sz; BLAS::add_scaled(n, alpha, &s[0], result); BLAS::add_scaled(-alpha, z, r); residual_norm=BLAS::abs_max(r); if(residual_norm<=tol) return status=KRYLOV_CONVERGED; if(preconditioner) preconditioner->apply(r, z); else BLAS::copy(r, z); double rho_new=BLAS::dot(r, z); if(rho_new<=0 || rho_new!=rho_new) return status=KRYLOV_BREAKDOWN; double beta=rho_new/rho; BLAS::add_scaled(beta, s, z); s.swap(z); // s=beta*s+z rho=rho_new; // if ( iteration % 5000 == 0 ) // { // std::cout << "CGNR_Solver --- residual_norm: " << residual_norm << std::endl; // } } return status=KRYLOV_EXCEEDED_MAX_ITERATIONS; }
[ "tyson.brochu@gmail.com" ]
tyson.brochu@gmail.com
6e9d2ab8abc281847376977a475e7e9dac843c3c
f601edf3814629a9b9bd66235554f705a24c1383
/src/driver/audiodec/basedec.cpp
6d2b0e0ef57fb06de2baf552db81f7911d109394
[]
no_license
OpenSat-zz/AZtrino
6e73fb6c6b61f340745b7395a74749230d0e8f3a
19bba9a552adeaae47e9a6cbdd6667742017c992
refs/heads/master
2021-01-18T01:41:15.481624
2012-05-29T08:02:03
2012-05-29T08:02:03
2,995,637
2
3
null
null
null
null
UTF-8
C++
false
false
6,121
cpp
/* Neutrino-GUI - DBoxII-Project Copyright (C) 2004 Zwen base decoder class Homepage: http://www.cyberphoria.org/ Kommentar: License: GPL This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #ifdef HAVE_CONFIG_H #include <config.h> #endif #include <basedec.h> #include <cdrdec.h> #include <mp3dec.h> #include <oggdec.h> #include <wavdec.h> #include <linux/soundcard.h> #include <fcntl.h> #include <sys/ioctl.h> #include <unistd.h> #include <driver/netfile.h> #include <driver/audioplay.h> // for ShoutcastCallback() #include <global.h> #include <neutrino.h> #include <zapit/client/zapittools.h> unsigned int CBaseDec::mSamplerate=0; void ShoutcastCallback(void *arg) { CAudioPlayer::getInstance()->sc_callback(arg); } CBaseDec::RetCode CBaseDec::DecoderBase(CAudiofile* const in, const int OutputFd, State* const state, time_t* const t, unsigned int* const secondsToSkip) { RetCode Status = OK; FILE* fp = fopen( in->Filename.c_str(), "r" ); if ( fp == NULL ) { fprintf( stderr, "Error opening file %s for decoding.\n", in->Filename.c_str() ); Status = INTERNAL_ERR; } /* jump to first audio frame; audio_start_pos is only set for FILE_MP3 */ else if ( in->MetaData.audio_start_pos && fseek( fp, in->MetaData.audio_start_pos, SEEK_SET ) == -1 ) { fprintf( stderr, "fseek() failed.\n" ); Status = INTERNAL_ERR; } if ( Status == OK ) { if( in->FileType == CFile::STREAM_AUDIO ) { if ( fstatus( fp, ShoutcastCallback ) < 0 ) { fprintf( stderr, "Error adding shoutcast callback: %s", err_txt ); } if(ftype(fp, (char *) "ogg")) { Status = COggDec::getInstance()->Decoder( fp, OutputFd, state, &in->MetaData, t, secondsToSkip ); } else { Status = CMP3Dec::getInstance()->Decoder( fp, OutputFd, state, &in->MetaData, t, secondsToSkip ); } } else if( in->FileType == CFile::FILE_MP3) { Status = CMP3Dec::getInstance()->Decoder( fp, OutputFd, state, &in->MetaData, t, secondsToSkip ); } else if( in->FileType == CFile::FILE_OGG ) { Status = COggDec::getInstance()->Decoder( fp, OutputFd, state, &in->MetaData, t, secondsToSkip ); } else if( in->FileType == CFile::FILE_WAV ) { Status = CWavDec::getInstance()->Decoder( fp, OutputFd, state, &in->MetaData, t, secondsToSkip ); } else if( in->FileType == CFile::FILE_CDR ) { Status = CCdrDec::getInstance()->Decoder( fp, OutputFd, state, &in->MetaData, t, secondsToSkip ); } else { fprintf( stderr, "DecoderBase: Supplied filetype is not " ); fprintf( stderr, "supported by Audioplayer.\n" ); Status = INTERNAL_ERR; } if ( fclose( fp ) == EOF ) { fprintf( stderr, "Could not close file %s.\n", in->Filename.c_str() ); } } return Status; } bool CBaseDec::GetMetaDataBase(CAudiofile* const in, const bool nice) { bool Status = true; if ( in->FileType == CFile::FILE_MP3 || in->FileType == CFile::FILE_OGG || in->FileType == CFile::FILE_WAV || in->FileType == CFile::FILE_CDR ) { FILE* fp = fopen( in->Filename.c_str(), "r" ); if ( fp == NULL ) { fprintf( stderr, "Error opening file %s for meta data reading.\n", in->Filename.c_str() ); Status = false; } else { if(in->FileType == CFile::FILE_MP3) { Status = CMP3Dec::getInstance()->GetMetaData(fp, nice, &in->MetaData); } else if(in->FileType == CFile::FILE_OGG) { Status = COggDec::getInstance()->GetMetaData(fp, nice, &in->MetaData); } else if(in->FileType == CFile::FILE_WAV) { Status = CWavDec::getInstance()->GetMetaData(fp, nice, &in->MetaData); } else if(in->FileType == CFile::FILE_CDR) { Status = CCdrDec::getInstance()->GetMetaData(fp, nice, &in->MetaData); } if ( fclose( fp ) == EOF ) { fprintf( stderr, "Could not close file %s.\n", in->Filename.c_str() ); } } } else { fprintf( stderr, "GetMetaDataBase: Filetype is not supported for " ); fprintf( stderr, "meta data reading.\n" ); Status = false; } return Status; } bool CBaseDec::SetDSP(int soundfd, int fmt, unsigned int dsp_speed, unsigned int channels) { bool crit_error=false; if (::ioctl(soundfd, SNDCTL_DSP_RESET)) printf("reset failed\n"); if(::ioctl(soundfd, SNDCTL_DSP_SETFMT, &fmt)) printf("setfmt failed\n"); if(::ioctl(soundfd, SNDCTL_DSP_CHANNELS, &channels)) printf("channel set failed\n"); if (dsp_speed != mSamplerate) { // mute audio to reduce pops when changing samplerate (avia_reset) //bool was_muted = avs_mute(true); if (::ioctl(soundfd, SNDCTL_DSP_SPEED, &dsp_speed)) { printf("speed set failed\n"); crit_error=true; } else { #if 0 unsigned int rs = 0; ::ioctl(soundfd, SNDCTL_DSP_SPEED, &rs); mSamplerate = dsp_speed; // disable iec aka digi out (avia reset enables it again) //g_Zapit->IecOff(); #endif } //usleep(400000); //if (!was_muted) // avs_mute(false); } //printf("Debug: SNDCTL_DSP_RESET %d / SNDCTL_DSP_SPEED %d / SNDCTL_DSP_CHANNELS %d / SNDCTL_DSP_SETFMT %d\n", // SNDCTL_DSP_RESET, SNDCTL_DSP_SPEED, SNDCTL_DSP_CHANNELS, SNDCTL_DSP_SETFMT); return crit_error; } bool CBaseDec::avs_mute(bool mute) { return true; } void CBaseDec::Init() { mSamplerate=0; }
[ "git@opensat.eu" ]
git@opensat.eu
17596848ac3e201d4d0457510380dc9570feb8c2
6ab8bc7c02696b1e386e3be2717d50761cb4390c
/URI/p1158.cpp
55d7268b3a172a2322c62c2fecd53749caa7d2df
[]
no_license
shahriercse/Online-Judge-Solutions
4c71d21cadaf12a04e2021f0168b27fba436e257
2b35452116547e1f7769fa3f32ca6cc3a5eb2e75
refs/heads/master
2023-08-20T20:47:22.104809
2021-10-26T09:39:16
2021-10-26T09:39:16
null
0
0
null
null
null
null
UTF-8
C++
false
false
454
cpp
#include<iostream> using namespace std ; int main() { int n, x, y, sum; cin >> n ; while (n--){ cin >> x >> y ; if ( x % 2 != 0 ){ sum = 0 ; while (y--){ sum += x ; x += 2 ; } cout << sum << endl ; } else{ x++ ; sum = 0 ; while (y--){ sum += x ; x += 2 ; } cout << sum << endl ; } } }
[ "shahrierf82@gmail.com" ]
shahrierf82@gmail.com
2cc0e48df192c17ad5ec2da5df1500da4bd23819
e29f5042fdb28d982fc0ab3241f4847d02338208
/src/GameGraphics/include/Game/Graphics/TextureProvider.h
145385376148ea5c3775cdaf5f7b1a054124afdc
[]
no_license
talex-tnt/sdl-engine-libs
16ebf6bf476067879f8d12dc467d14349e571c1b
fdba891eceed0276928e7590506055db0f3f3709
refs/heads/master
2021-11-20T20:20:27.397361
2021-07-28T19:12:43
2021-07-28T19:12:43
229,116,114
1
0
null
null
null
null
UTF-8
C++
false
false
1,186
h
#pragma once #include <Math/Vector.h> #include <memory> #include <array> #include <unordered_map> namespace sdl { class TextureFactory; class Texture; } namespace game { namespace graphics { class TextureProvider { public: using Pos = Math::Vec2i; using Size = Math::Vec2i; struct Rect { Pos pos; Size size; }; using TextureId = std::size_t; bool GetTextureId(const std::string& i_path, TextureId& o_textureId) const; bool GetTextureSize(TextureId i_textureId, Size& o_size) const; protected: TextureId CreateTexture(const std::string& i_path); void CreateTextures(const std::vector<std::string>& i_paths); public: using Texture = sdl::Texture; using Textures = std::unordered_map<TextureId, std::unique_ptr<const Texture>>; using TextureFactory = sdl::TextureFactory; protected: ~TextureProvider(); TextureProvider(const TextureFactory& i_textureFactory); TextureProvider(const TextureProvider&) = delete; TextureProvider(TextureProvider&&) = delete; TextureProvider& operator=(const TextureProvider&) = delete; TextureProvider& operator=(TextureProvider&&) = delete; protected: const TextureFactory& m_textureFactory; Textures m_textures; }; } }
[ "alextinti83@gmail.com" ]
alextinti83@gmail.com
7f6b0c61873f8c4f72b36b23ade18d061135a5bc
64589428b06258be0b9b82a7e7c92c0b3f0778f1
/Maratona de Programação/Final Brasileira 2018/3-YES-723204458-C.cpp
f7a43ae6d6a164f1fc6eaf66e862d8e1047cf3a5
[]
no_license
splucs/Competitive-Programming
b6def1ec6be720c6fbf93f2618e926e1062fdc48
4f41a7fbc71aa6ab8cb943d80e82d9149de7c7d6
refs/heads/master
2023-08-31T05:10:09.573198
2023-08-31T00:40:32
2023-08-31T00:40:32
85,239,827
141
27
null
2023-01-08T20:31:49
2017-03-16T20:42:37
C++
UTF-8
C++
false
false
789
cpp
#include <bits/stdc++.h> #define INF 1e9 #define EPS 1e-9 #define MAXN 10009 #define FOR(x,n) for(int x=0;x<n;x++) using namespace std; typedef long long int ll; int N, c[MAXN], d[MAXN]; double dp[MAXN][7][130]; double mlt[7] = {1, 0.5, 0.25, 0.25, 0.25, 0.25, INF}; double solve(int i, int qty, int t){ if (t >= 120) return solve(i, 0, 0); double &ans = dp[i][qty][t]; if (abs(ans - INF) > EPS) return ans; double cost = mlt[qty] * c[i]; if (qty < 5) ans = cost + solve(i + 1, qty + 1, t + d[i]); ans = min(ans, cost + solve(i + 1, 0, 0)); return ans; } int main(){ ios_base::sync_with_stdio(false); cin.tie(NULL); cin>>N; FOR(i, N) cin>>d[i]>>c[i]; FOR(i, N) FOR(k, 7) FOR(j, 130) dp[i][k][j] = INF; cout<<fixed<<setprecision(2); cout<<solve(0, 0, 0)<<'\n'; }
[ "lucas.fra.oli18@gmail.com" ]
lucas.fra.oli18@gmail.com
58f80624ed8a96e79d4c794b48c4b0fa6616ff0d
8ddef90d7d4a302fa0bd8096a7fc8e47fb31166b
/own_libs/cpp/Windows/practice_helpers/include/TestRunner.h
b5ceac710c4fbdd50371761883565a3b5732e0e4
[]
no_license
norbertkorczynski/practice
b79da8f7805a8a7c3b3d38de2e8406c0ec9eebbb
9c2473cfadee0317585066561030b6c7b3f62d87
refs/heads/main
2023-02-18T22:43:58.059324
2021-01-17T00:35:55
2021-01-17T00:35:55
322,052,868
0
0
null
2021-01-17T00:35:57
2020-12-16T17:21:29
C++
UTF-8
C++
false
false
1,491
h
#pragma once #include <string_view> #include <list> #include <tuple> #include <unordered_map> #include <any> #include <fstream> using FilePath = std::string_view; using InputName = std::string_view; using TestInputs = std::unordered_map<InputName, std::any>; using TestCase = std::list<TestInputs>; //! Helper class which can be used to run tests with specified inputs /*! \class TestRunner * */ class TestRunner { public: explicit TestRunner(const FilePath file_math); virtual ~TestRunner() = default; void AddTestCase(); template<typename T> T ParseInput(); template<typename T> T ParseLine(); template<typename T> void AddTestInput(const InputName input_name, const T& value); template<typename T> T GetTestInput(const InputName input_name); private: TestCase m_test_cases; FilePath m_file_path; std::ifstream m_stream; }; template<typename T> inline T TestRunner::ParseInput() { T value; m_stream >> value; return value; } template<typename T> inline T TestRunner::ParseLine() { T value; m_stream >> value; m_stream.ignore(std::numeric_limits<std::streamsize>::max(), '\n'); return value; } template<typename T> inline void TestRunner::AddTestInput(const InputName input_name, const T& value) { m_test_cases.back().emplace(input_name, value); } template<typename T> inline T TestRunner::GetTestInput(const InputName input_name) { return std::any_cast<T>(m_test_cases.back()[input_name]); }
[ "nkorczynski@gmail.com" ]
nkorczynski@gmail.com
9deadcd034c566efd010514e1e5af5db87b73b7c
a3ec7ce8ea7d973645a514b1b61870ae8fc20d81
/Codeforces/A/1204.cc
f01fb6b9717f7c8ec15d1c91fde9e7b0e8fefb51
[]
no_license
userr2232/PC
226ab07e3f2c341cbb087eecc2c8373fff1b340f
528314b608f67ff8d321ef90437b366f031e5445
refs/heads/master
2022-05-29T09:13:54.188308
2022-05-25T23:24:48
2022-05-25T23:24:48
130,185,439
1
0
null
null
null
null
UTF-8
C++
false
false
254
cc
#include <iostream> using namespace std; int main() { string t_str; cin >> t_str; int l = t_str.length() - 1; string x = string((t_str.length()-1)/2*2,'0'); t_str.erase(0,1); cout << l/2 + (x == t_str ? 0 : 1); return 0; }
[ "reynaldo.rz.26@gmail.com" ]
reynaldo.rz.26@gmail.com
e8ee23521a6423dd02011db4cc2481f1d65d35a0
9f5a1bd35ed4ebf5dc161e734b369eae10ada68d
/interpolation.hpp
0b2add93d1dc178d193acf7f22d908071abefd2e
[]
no_license
Shrihari93/SLAM-6D
22c5b9f4f5813e6e8475416348488aa7adbef43b
1540abe42d2877663e0f2f534838e51112114a8a
refs/heads/master
2021-01-01T17:09:43.388198
2013-06-13T12:59:42
2013-06-13T12:59:42
null
0
0
null
null
null
null
UTF-8
C++
false
false
4,505
hpp
/* Arpit */ #ifndef INTERPOLATION_HPP #define INTERPOLATION_HPP #include <stdio.h> #include <highgui/highgui.hpp> #include <imgproc/imgproc.hpp> #include <iostream> #include <fstream> #include <vector> #include <set> using namespace cv; using namespace std; namespace Interpolation { int neighbours[][2] = { {-1,-1}, {-1, 0}, {-1, 1}, {0, -1}, {0, +1}, {1, -1}, {+1, 0}, {+1, 1}}; struct IPoint { int i, j; IPoint(int i, int j):i(i), j(j) {} //reverse sort. not using val at all >< bool operator <(const IPoint &b) const { if(i < b.i) return true; else if(i > b.i) return false; else return j < b.j; } }; template <class T> void filterThreshold(Mat &src, T mean, T sd) { for (int i = 0; i < src.rows; ++i) { for (int j = 0; j < src.cols; ++j) { double val = (double)src.at<T>(i,j) - (double)mean; //assuming T may be typecast from/to val! src.at<T>(i,j) = val > 0? val:-val; if((val)*(val) < (double)sd*(double)sd) { src.at<T>(i,j) = 0; } } } } /// Elmt of src is of type T, invalids is CV_8UC1 /// invalids is non-zero for all (i,j) that are invalid in src /// the larger the non-zero value, the more invalid it is. /// interpolates for all invalids. template <class T> Mat interpolate(Mat src, Mat invalids, int blockSize) { assert(invalids.size() == src.size()); assert(blockSize > 0); Mat dst = Mat(src.rows/blockSize, src.cols/blockSize, src.type()); set<IPoint> invalidList; for (int i = 0; i < dst.rows; ++i) { for (int j = 0; j < dst.cols; ++j) { if(!invalids.at<uchar>(i*blockSize,j*blockSize)) dst.at<T>(i,j) = src.at<T>(i*blockSize, j*blockSize); else invalidList.insert(IPoint(i,j)); } } int iter = 0; while(invalidList.size()) { ++iter; for (set<IPoint>::iterator k = invalidList.begin(); k != invalidList.end(); ) { int i = k->i; int j = k->j; double sum = 0; /// assuming T may be typecast from/to double! int count = 0; for (int l = 0; l < 8; ++l) { int ni = (i+neighbours[l][0]); int nj = (j+neighbours[l][1]); if(ni < 0 || ni >= dst.rows || nj < 0 || nj >= dst.cols) continue; if(invalidList.find(IPoint(ni,nj)) == invalidList.end()) { count++; sum += dst.at<T>(ni, nj); } } if(count > 0) { /// Some neighbour(s) valid. removing from invalid list. set<IPoint>::iterator t = k; ++k; invalidList.erase(t); dst.at<T>(i,j) = (T)(sum/count); if(!invalidList.size()) break; } else { ++k; } } } printf("num iters = %d\n", iter); resize(dst, dst, src.size(), 0, 0, INTER_NEAREST); return dst; } void myFilter(Mat& src, Mat& dst) { float data[][3] = { {1,1,1}, {1,-8,1}, {1,1,1}}; /// Update kernel size for a normalized box filter Point anchor = Point( -1, -1 ); double delta = 0; int ddepth = -1; int kernel_size = 3; Mat d1, d2; Mat kernel = -Mat( kernel_size, kernel_size, CV_32FC1, data)/ (float)(kernel_size*kernel_size); filter2D(src, d1, ddepth , kernel, anchor, delta, BORDER_DEFAULT ); kernel = -kernel; filter2D(src, d2, ddepth , kernel, anchor, delta, BORDER_DEFAULT ); dst = d1+d2; } /// uses sobel to find peaks on surface, applies interpolation. template <class T> Mat smooth(Mat &src, int blockSize) { assert(blockSize > 0); cv::Size origSize = src.size(); resize(src, src, cv::Size(src.cols/blockSize, src.rows/blockSize), 0, 0, INTER_NEAREST); Mat invalids;// = Mat::zeros(src.rows, src.cols, CV_8UC1); // cornerHarris(src, invalids, 2, 3, 0.14); // normalize( invalids, invalids, 0, 255, NORM_MINMAX, CV_32FC1, Mat() ); // convertScaleAbs(invalids, invalids); // Mat invalidsx, invalidsy, invalidsxy; // Sobel(src, invalidsx, CV_16S, 1, 0, 3); // Sobel(src, invalidsy, CV_16S, 0, 1, 3); // Sobel(src, invalidsxy, CV_16S, 1, 1, 3); // Mat sobInvalids = invalidsx+invalidsy+invalidsxy; // convertScaleAbs(sobInvalids, sobInvalids); myFilter(src, invalids); convertScaleAbs(invalids, invalids); filterThreshold<uchar>(invalids, 0, 12); Mat dst = interpolate<T>(src, invalids, 1); resize(dst, dst, origSize, 0, 0, INTER_NEAREST); resize(src, src, origSize, 0, 0, INTER_NEAREST); resize(invalids, invalids, origSize, 0, 0, INTER_NEAREST); // imshow("sobel result, filtered", invalids); // waitKey(0); return dst; } } #endif
[ "anjan@anjan-desktop" ]
anjan@anjan-desktop
c8cd7fa61b6e798f13e3ba86cee7056e60775fe0
9eaf679a99a88ccf42920fe7076856398b095402
/MaJiangServer/src/SZMJRoom.cpp
20ab0cba82c2d294f85b7cb8c804bcef85a52a71
[]
no_license
daxingyou/MJ
1fce631d11c14a2d08928260704a6c359bcca12b
4fdfc39d710562cf6e493292c5e4afc967866a40
refs/heads/master
2021-06-18T19:18:08.864754
2017-07-11T10:05:56
2017-07-11T10:05:56
null
0
0
null
null
null
null
UTF-8
C++
false
false
14,727
cpp
#include "SZMJRoom.h" #include "SZMJPlayer.h" #include "SZMJPlayerCard.h" #include "log4z.h" #include "IMJPoker.h" #include "ServerMessageDefine.h" #include "MJRoomStateWaitReady.h" #include "MJRoomStateWaitPlayerChu.h" #include "SZRoomStateWaitPlayerAct.h" #include "MJRoomStateGameEnd.h" #include "SZRoomStateDoPlayerAct.h" #include "MJRoomStateAskForPengOrHu.h" #include "IGameRoomManager.h" #include "SZRoomStateBuHua.h" #include "NJRoomStateStartGame.h" #include "MJRoomStateAskForRobotGang.h" #include "SZMJPlayerRecorderInfo.h" #include <ctime> #include "SZMJPlayerRecorderInfo.h" bool SZMJRoom::init(IGameRoomManager* pRoomMgr, stBaseRoomConfig* pConfig, uint32_t nSeialNum, uint32_t nRoomID, Json::Value& vJsValue) { IMJRoom::init(pRoomMgr, pConfig, nSeialNum, nRoomID, vJsValue); m_isFanBei = false; m_isWillFanBei = false; m_isBankerHu = false; m_nRuleMode = 1; if (vJsValue["ruletype"].isNull() || vJsValue["ruletype"].isUInt() == false) { LOGFMTE("invlid rule type "); } else { m_nRuleMode = vJsValue["ruletype"].asUInt(); } if (m_nRuleMode != 1 && 2 != m_nRuleMode) { LOGFMTE("invalid rule type value = %u",m_nRuleMode ); m_nRuleMode = 1; } m_tPoker.initAllCard(eMJ_SuZhou); // create state and add state ; IMJRoomState* vState[] = { new CMJRoomStateWaitReady(), new MJRoomStateWaitPlayerChu(), new SZRoomStateWaitPlayerAct(), new NJRoomStateStartGame(), new SZRoomStateBuHua() , new MJRoomStateGameEnd(), new SZRoomStateDoPlayerAct(), new MJRoomStateAskForPengOrHu(), new MJRoomStateAskForRobotGang() }; for (uint8_t nIdx = 0; nIdx < sizeof(vState) / sizeof(IMJRoomState*); ++nIdx) { addRoomState(vState[nIdx]); } setInitState(vState[0]); // init banker m_nBankerIdx = -1; auto pRoomRecorder = (SZMJRoomRecorder*)getRoomRecorder().get(); pRoomRecorder->setRoomOpts(m_nRuleMode); return true; } void SZMJRoom::willStartGame() { IMJRoom::willStartGame(); m_isFanBei = false; if ( m_isWillFanBei ) { m_isFanBei = true; } m_isWillFanBei = false; if ((uint8_t)-1 == m_nBankerIdx) { m_nBankerIdx = 0; } else { if (m_isBankerHu == false) { m_nBankerIdx = (m_nBankerIdx + 1) % MAX_SEAT_CNT; } } m_isBankerHu = false; } void SZMJRoom::packStartGameMsg(Json::Value& jsMsg) { IMJRoom::packStartGameMsg(jsMsg); jsMsg["isFanBei"] = isFanBei() ? 1 : 0; } void SZMJRoom::startGame() { IMJRoom::startGame(); //// bind room to player card //// check di hu //for (auto& pPlayer : m_vMJPlayers) //{ // if (pPlayer == nullptr) // { // LOGFMTE("room id = %u , start game player is nullptr", getRoomID()); // continue; // } // auto pPlayerCard = (SZMJPlayerCard*)pPlayer->getPlayerCard(); // pPlayerCard->bindRoom(this); //} Json::Value jsMsg; packStartGameMsg(jsMsg); sendRoomMsg(jsMsg, MSG_ROOM_START_GAME); } void SZMJRoom::getSubRoomInfo(Json::Value& jsSubInfo) { jsSubInfo["isFanBei"] = isFanBei() ? 1 : 0; jsSubInfo["ruletype"] = m_nRuleMode; } void SZMJRoom::onGameDidEnd() { IMJRoom::onGameDidEnd(); if (getDelegate()) { getDelegate()->onDidGameOver(this); return; } } void SZMJRoom::onGameEnd() { // svr: { isLiuJu : 0 , detail : [ {idx : 0 , offset : 23 }, ... ], realTimeCal : [ { actType : 23, detial : [ {idx : 2, offset : -23 } ] } , ... ] } Json::Value jsMsg; Json::Value jsDetial; auto ptrSingleRecorder = getRoomRecorder()->createSingleRoundRecorder(); ptrSingleRecorder->init(getRoomRecorder()->getRoundRecorderCnt(), (uint32_t)time(nullptr), 0); getRoomRecorder()->addSingleRoundRecorder(ptrSingleRecorder); bool isAnyOneHu = false; for (auto& ref : m_vMJPlayers) { Json::Value js; if (ref) { js["idx"] = ref->getIdx(); js["offset"] = ref->getOffsetCoin(); js["final"] = ref->getCoin(); jsDetial[jsDetial.size()] = js; auto pPlayerRecorderInfo = std::make_shared<SZMJPlayerRecorderInfo>(); pPlayerRecorderInfo->init(ref->getUID(), ref->getOffsetCoin()); ptrSingleRecorder->addPlayerRecorderInfo(pPlayerRecorderInfo); } if (ref && ref->haveState(eRoomPeer_AlreadyHu)) { isAnyOneHu = true; continue; } } jsMsg["isLiuJu"] = isAnyOneHu ? 0 : 1; jsMsg["detail"] = jsDetial; if (!isAnyOneHu) { m_isWillFanBei = true; } jsMsg["isNextFanBei"] = m_isWillFanBei ? 1 : 0; jsMsg["nNextBankIdx"] = m_isBankerHu ? m_nBankerIdx : ((m_nBankerIdx + 1) % MAX_SEAT_CNT); sendRoomMsg(jsMsg, MSG_ROOM_SZ_GAME_OVER); // send msg to player ; IMJRoom::onGameEnd(); } void SZMJRoom::onPlayerMo(uint8_t nIdx) { IMJRoom::onPlayerMo(nIdx); auto player = (SZMJPlayer*)getMJPlayerByIdx(nIdx); //player->clearBuHuaFlag(); } IMJPlayer* SZMJRoom::doCreateMJPlayer() { return new SZMJPlayer(); } IMJPoker* SZMJRoom::getMJPoker() { return &m_tPoker; } bool SZMJRoom::isGameOver() { if (IMJRoom::isGameOver()) { return true; } for (auto& ref : m_vMJPlayers) { if (ref && ref->haveState(eRoomPeer_AlreadyHu)) { return true; } } return false; } void SZMJRoom::onPlayerBuHua(uint8_t nIdx, uint8_t nHuaCard) { auto player = (SZMJPlayer*)getMJPlayerByIdx(nIdx); auto pActCard = (SZMJPlayerCard*)player->getPlayerCard(); auto nNewCard = getMJPoker()->distributeOneCard(); pActCard->onBuHua(nHuaCard, nNewCard); //player->signBuHuaFlag(); // send msg ; Json::Value msg; msg["idx"] = nIdx; msg["actType"] = eMJAct_BuHua; msg["card"] = nHuaCard; msg["gangCard"] = nNewCard; sendRoomMsg(msg, MSG_ROOM_ACT); } void SZMJRoom::onPlayerHu(std::vector<uint8_t>& vHuIdx, uint8_t nCard, uint8_t nInvokeIdx) { if (vHuIdx.empty()) { LOGFMTE("why hu vec is empty ? room id = %u", getRoomID()); return; } auto iterBankWin = std::find(vHuIdx.begin(), vHuIdx.end(), getBankerIdx()); m_isBankerHu = iterBankWin != vHuIdx.end(); Json::Value jsDetail; Json::Value jsMsg; bool isZiMo = vHuIdx.front() == nInvokeIdx; jsMsg["isZiMo"] = isZiMo ? 1 : 0; jsMsg["huCard"] = nCard; jsMsg["isFanBei"] = isFanBei() ? 1 : 0 ; if (isZiMo) { onPlayerZiMo(nInvokeIdx, nCard, jsDetail); jsMsg["detail"] = jsDetail; sendRoomMsg(jsMsg, MSG_ROOM_SZ_PLAYER_HU ); return; } // check dian piao ; if (vHuIdx.size() > 1) // yi pao duo xiang { m_isWillFanBei = true; } auto pLosePlayer = getMJPlayerByIdx(nInvokeIdx); if (!pLosePlayer) { LOGFMTE("room id = %u lose but player idx = %u is nullptr", getRoomID(), nInvokeIdx); return; } //{ dianPaoIdx : 23 , isRobotGang : 0 , nLose : 23, huPlayers : [{ idx : 234 , win : 234 , baoPaiIdx : 2 , huardSoftHua : 23, vhuTypes : [ eFanxing , ] } , .... ] } jsDetail["dianPaoIdx"] = pLosePlayer->getIdx(); jsDetail["isRobotGang"] = pLosePlayer->haveDecareBuGangFalg() ? 1 : 0; pLosePlayer->addDianPaoCnt(); Json::Value jsHuPlayers; uint32_t nTotalLose = 0; // adjust caculate order std::vector<uint8_t> vOrderHu; if (vHuIdx.size() > 1) { for (uint8_t offset = 1; offset <= 3; ++offset) { auto nCheckIdx = nInvokeIdx + offset; nCheckIdx = nCheckIdx % 4; auto iter = std::find(vHuIdx.begin(), vHuIdx.end(), nCheckIdx); if (iter != vHuIdx.end()) { vOrderHu.push_back(nCheckIdx); } } } else { vOrderHu.swap(vHuIdx); } for (auto& nHuIdx : vOrderHu) { auto pHuPlayer = getMJPlayerByIdx(nHuIdx); if (pHuPlayer == nullptr) { LOGFMTE("room id = %u hu player idx = %u , is nullptr", getRoomID(), nHuIdx); continue; } pHuPlayer->addHuCnt(); Json::Value jsHuPlayer; jsHuPlayer["idx"] = pHuPlayer->getIdx(); pHuPlayer->setState(eRoomPeer_AlreadyHu); auto pHuPlayerCard = (SZMJPlayerCard*)pHuPlayer->getPlayerCard(); std::vector<uint16_t> vType; uint16_t nHuHuaCnt = 0; uint16_t nHardSoftHua = 0; pHuPlayerCard->onDoHu(false,false, nCard, vType, nHuHuaCnt, nHardSoftHua); auto nAllHuaCnt = nHuHuaCnt + nHardSoftHua; if (isFanBei()) { nAllHuaCnt *= 2; } jsHuPlayer["holdHuaCnt"] = nHardSoftHua; jsHuPlayer["huHuaCnt"] = nHuHuaCnt; Json::Value jsHuTyps; for (auto& refHu : vType) { jsHuTyps[jsHuTyps.size()] = refHu; } jsHuPlayer["vhuTypes"] = jsHuTyps; // process bao pai qing kuang ; if (pLosePlayer->haveDecareBuGangFalg()) // robot gang ; { nAllHuaCnt *= 3; // robot gang means bao pai, and zi mo ; menas zi mo LOGFMTD("room id = %u , ploseplayer = %u have gang dec ", getRoomID(), pLosePlayer->getUID()); } LOGFMTD("room id = %u winner = %u all huaCnt = %u lose uid =%u", getRoomID(), pHuPlayer->getUID(), nAllHuaCnt, pLosePlayer->getUID()); if (nAllHuaCnt > pLosePlayer->getCoin()) { nAllHuaCnt = pLosePlayer->getCoin(); } pLosePlayer->addOffsetCoin(-1 * (int32_t)nAllHuaCnt); nTotalLose += nAllHuaCnt; pHuPlayer->addOffsetCoin(nAllHuaCnt); jsHuPlayer["win"] = nAllHuaCnt; jsHuPlayers[jsHuPlayers.size()] = jsHuPlayer; } jsDetail["nLose"] = nTotalLose; jsDetail["huPlayers"] = jsHuPlayers; jsMsg["detail"] = jsDetail; sendRoomMsg(jsMsg, MSG_ROOM_SZ_PLAYER_HU); LOGFMTD("room id = %u hu end ", getRoomID()); } void SZMJRoom::onPlayerZiMo(uint8_t nIdx, uint8_t nCard, Json::Value& jsDetail) { auto pZiMoPlayer = (SZMJPlayer*)getMJPlayerByIdx(nIdx); if (pZiMoPlayer == nullptr) { LOGFMTE("room id = %u zi mo player is nullptr idx = %u ", getRoomID(), nIdx); return; } pZiMoPlayer->addZiMoCnt(); pZiMoPlayer->setState(eRoomPeer_AlreadyHu); // svr :{ huIdx : 234 , baoPaiIdx : 2 , winCoin : 234,huardSoftHua : 23, isGangKai : 0 ,vhuTypes : [ eFanxing , ], LoseIdxs : [ {idx : 1 , loseCoin : 234 }, .... ] } jsDetail["huIdx"] = nIdx; auto pHuPlayerCard = (SZMJPlayerCard*)pZiMoPlayer->getPlayerCard(); std::vector<uint16_t> vType; uint16_t nHuHuaCnt = 0; uint16_t nHardSoftHua = 0; pHuPlayerCard->onDoHu(true, getMJPoker()->getLeftCardCount() < getSeatCnt() ,nCard,vType, nHuHuaCnt, nHardSoftHua); Json::Value jsHuTyps; for (auto& refHu : vType) { jsHuTyps[jsHuTyps.size()] = refHu; } jsDetail["vhuTypes"] = jsHuTyps; jsDetail["isGangKai"] = 0; // xiao gang kai hua if ( pZiMoPlayer->haveGangFalg() /*|| pZiMoPlayer->haveBuHuaFlag()*/ ) { nHuHuaCnt += 5; jsDetail["isGangKai"] = 1; } jsDetail["holdHuaCnt"] = nHardSoftHua; jsDetail["huHuaCnt"] = nHuHuaCnt; // da gang kai hua auto nAllHuaCnt = nHuHuaCnt + nHardSoftHua ; if (isFanBei()) { nAllHuaCnt *= 2; } jsDetail["invokerGangIdx"] = nIdx; auto nBaoPaiIdx = pHuPlayerCard->getSongGangIdx(); auto nTotalWin = 0; if ((uint8_t)-1 != nBaoPaiIdx) { nTotalWin = nAllHuaCnt * 3; // bao pai auto pPlayerBao = getMJPlayerByIdx(nBaoPaiIdx); if (nTotalWin > pPlayerBao->getCoin()) { nTotalWin = pPlayerBao->getCoin(); } pPlayerBao->addOffsetCoin(-1 * (int32_t)nTotalWin); jsDetail["invokerGangIdx"] = nBaoPaiIdx; } else { Json::Value jsVLoses; for (auto& pLosePlayer : m_vMJPlayers) { if (pLosePlayer == pZiMoPlayer) { continue; } auto nKouHua = nAllHuaCnt; if (nKouHua > pLosePlayer->getCoin()) { nKouHua = pLosePlayer->getCoin(); } pLosePlayer->addOffsetCoin(-1 * (int32_t)nKouHua); nTotalWin += nKouHua; //Json::Value jsLose; //jsLose["loseCoin"] = nKouHua; //jsLose["idx"] = pLosePlayer->getIdx(); //jsVLoses[jsVLoses.size()] = jsLose; } /*jsDetail["LoseIdxs"] = jsVLoses;*/ } pZiMoPlayer->addOffsetCoin(nTotalWin); jsDetail["winCoin"] = nTotalWin; LOGFMTD("room id = %u hu end ", getRoomID()); } bool SZMJRoom::onPlayerApplyLeave(uint32_t nPlayerUID) { auto pPlayer = getMJPlayerByUID(nPlayerUID); if (!pPlayer) { LOGFMTE("you are not in room id = %u , how to leave this room ? uid = %u", getRoomID(), nPlayerUID); return false; } Json::Value jsMsg; jsMsg["idx"] = pPlayer->getIdx(); sendRoomMsg(jsMsg, MSG_ROOM_PLAYER_LEAVE); // tell other player leave ; auto curState = getCurRoomState()->getStateID(); if (eRoomSate_WaitReady == curState || eRoomState_GameEnd == curState) { // direct leave just stand up ; //auto pXLPlayer = (XLMJPlayer*)pPlayer; stMsgSvrDoLeaveRoom msgdoLeave; msgdoLeave.nCoin = pPlayer->getCoin(); msgdoLeave.nGameType = getRoomType(); msgdoLeave.nRoomID = getRoomID(); msgdoLeave.nUserUID = pPlayer->getUID(); msgdoLeave.nGameOffset = pPlayer->getOffsetCoin(); getRoomMgr()->sendMsg(&msgdoLeave, sizeof(msgdoLeave), pPlayer->getSessionID()); LOGFMTD("player uid = %u , leave room id = %u", pPlayer->getUID(), getRoomID()); if (eRoomSate_WaitReady == curState || eRoomState_GameEnd == curState) // when game over or not start , delte player in room data ; { // tell robot dispatch player leave auto ret = standup(nPlayerUID); return ret; } else { LOGFMTE("decide player already sync data uid = %u room id = %u", pPlayer->getUID(), getRoomID()); } } pPlayer->doTempLeaveRoom(); onPlayerTrusteedStateChange(pPlayer->getIdx(), true); return true; } void SZMJRoom::sendPlayersCardInfo(uint32_t nSessionID) { Json::Value jsmsg; Json::Value vPeerCards; for (auto& pp : m_vMJPlayers) { if (pp == nullptr /*|| pp->haveState(eRoomPeer_CanAct) == false*/) // lose also have card { continue; } auto pCard = (SZMJPlayerCard*)pp->getPlayerCard(); Json::Value jsCardInfo; jsCardInfo["idx"] = pp->getIdx(); jsCardInfo["newMoCard"] = 0; if (getCurRoomState()->getStateID() == eRoomState_WaitPlayerAct && getCurRoomState()->getCurIdx() == pp->getIdx()) { jsCardInfo["newMoCard"] = pp->getPlayerCard()->getNewestFetchedCard(); } pCard->getCardInfo(jsCardInfo); sendMsgToPlayer(jsCardInfo, MSG_ROOM_PLAYER_CARD_INFO, nSessionID); } //jsmsg["playersCard"] = vPeerCards; //jsmsg["bankerIdx"] = getBankerIdx(); //jsmsg["curActIdex"] = getCurRoomState()->getCurIdx(); //jsmsg["leftCardCnt"] = getMJPoker()->getLeftCardCount(); /*sendMsgToPlayer(jsmsg, MSG_ROOM_PLAYER_CARD_INFO, nSessionID);*/ LOGFMTD("send player card infos !"); } bool SZMJRoom::isOneCirleEnd() { return true; } void SZMJRoom::onPlayerMingGang( uint8_t nIdx, uint8_t nCard, uint8_t nInvokeIdx ) { IMJRoom::onPlayerMingGang(nIdx, nCard, nInvokeIdx); auto pActPlayer = getMJPlayerByIdx(nIdx); auto pActCard = (SZMJPlayerCard*)pActPlayer->getPlayerCard(); pActCard->setSongGangIdx(nInvokeIdx); } void SZMJRoom::onPlayerChu(uint8_t nIdx, uint8_t nCard) { IMJRoom::onPlayerChu(nIdx, nCard); auto pActPlayer = getMJPlayerByIdx(nIdx); auto pActCard = (SZMJPlayerCard*)pActPlayer->getPlayerCard(); pActCard->setSongGangIdx(-1); // reset song gang ; } std::shared_ptr<IGameRoomRecorder> SZMJRoom::createRoomRecorder() { return std::make_shared<SZMJRoomRecorder>(); } uint8_t SZMJRoom::getZiMoHuaRequire() { if (1 == m_nRuleMode) { return 2; } else if (2 == m_nRuleMode) { return 3; } return 3; } uint8_t SZMJRoom::getDianPaoHuHuaRequire() { if (1 == m_nRuleMode) { return 3; } else if (2 == m_nRuleMode) { return 4; } return 4; }
[ "dengh_dhsea@126.com" ]
dengh_dhsea@126.com
bb769c0161030ffa1d8b426edb3ec7ca3f04cf85
62d48af115ea9d14bc5a7dd85212e616a48dcac6
/src/lambdas/headers/ComputeInfo.h
e0cc79254a6bc2a1f5bc98c7bcbeb52a192508d7
[ "Apache-2.0", "LicenseRef-scancode-public-domain", "BSD-3-Clause" ]
permissive
asu-cactus/lachesis
ab1ab1704e4f0f2d6aef1a2bff2dc99ea8f09337
92efa7b124a23894485a900bb394670487051948
refs/heads/master
2023-03-05T11:41:35.016673
2021-02-14T21:50:32
2021-02-14T21:50:32
151,744,205
2
0
Apache-2.0
2021-02-14T16:37:54
2018-10-05T15:49:15
C++
UTF-8
C++
false
false
298
h
#ifndef COMPUTE_INFO_H #define COMPUTE_INFO_H #include <memory> namespace pdb { // this is the base class for parameters that are sent into a pipeline when it is built class ComputeInfo { public: virtual ~ComputeInfo() {} }; typedef std::shared_ptr<ComputeInfo> ComputeInfoPtr; } #endif
[ "jacquelinezou@gmail.com" ]
jacquelinezou@gmail.com
b1f9777f242aca5bbb501825595aef222808a63f
8adcca55ce05f323282d9380d234b1e06a5489f7
/section1/1.5.cpp
6400b2fc7530efcf988373aef29626893e17bc98
[]
no_license
Codywei/WeiCpp
e8078dbd1a9d4b6acba2b9d12e10924948426233
6bb995848714557396402568d43cdb8a4fa468b2
refs/heads/master
2020-05-22T13:32:15.118288
2020-03-14T06:51:57
2020-03-14T06:51:57
186,361,639
0
0
null
null
null
null
UTF-8
C++
false
false
343
cpp
/** 分离打印语句 */ #include <iostream> int main() { std::cout << "Enter tow numbers:"; std::cout << std::endl; int v1 = 0, v2 = 0; std::cin >> v1 >> v2; std::cout << "The accumulate of "; std::cout << v1; std::cout << " and "; std::cout << v2; std::cout << " is "; std::cout << v1 * v2; std::cout << std::endl; return 0; }
[ "493559615@qq.com" ]
493559615@qq.com
c615ce3bccdde7cf585351f6d758418ca55460e7
c60e4f97890cc7329123d18fd5bc55734815caa5
/3rd/xulrunner-sdk/include/nsIX509Cert.h
3312dcf807e0e4bdb284751f879b43d350d0f9b4
[ "Apache-2.0" ]
permissive
ShoufuLuo/csaw
cbdcd8d51bb7fc4943e66b82ee7bc9c25ccbc385
0d030d5ab93e61b62dff10b27a15c83fcfce3ff3
refs/heads/master
2021-01-19T10:02:51.209070
2014-04-30T19:53:32
2014-04-30T19:53:32
16,976,394
0
0
null
null
null
null
UTF-8
C++
false
false
21,899
h
/* * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/rel-m-rel-xr-osx64-bld/build/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 }} class NS_NO_VTABLE NS_SCRIPTABLE nsIX509Cert : public nsISupports { public: NS_DECLARE_STATIC_IID_ACCESSOR(NS_IX509CERT_IID) /* readonly attribute AString nickname; */ NS_SCRIPTABLE NS_IMETHOD GetNickname(nsAString & aNickname) = 0; /* readonly attribute AString emailAddress; */ NS_SCRIPTABLE NS_IMETHOD GetEmailAddress(nsAString & aEmailAddress) = 0; /* void getEmailAddresses (out unsigned long length, [array, size_is (length), retval] out wstring addresses); */ NS_SCRIPTABLE NS_IMETHOD GetEmailAddresses(PRUint32 *length NS_OUTPARAM, PRUnichar * **addresses NS_OUTPARAM) = 0; /* boolean containsEmailAddress (in AString aEmailAddress); */ NS_SCRIPTABLE NS_IMETHOD ContainsEmailAddress(const nsAString & aEmailAddress, PRBool *_retval NS_OUTPARAM) = 0; /* readonly attribute AString subjectName; */ NS_SCRIPTABLE NS_IMETHOD GetSubjectName(nsAString & aSubjectName) = 0; /* readonly attribute AString commonName; */ NS_SCRIPTABLE NS_IMETHOD GetCommonName(nsAString & aCommonName) = 0; /* readonly attribute AString organization; */ NS_SCRIPTABLE NS_IMETHOD GetOrganization(nsAString & aOrganization) = 0; /* readonly attribute AString organizationalUnit; */ NS_SCRIPTABLE NS_IMETHOD GetOrganizationalUnit(nsAString & aOrganizationalUnit) = 0; /* readonly attribute AString sha1Fingerprint; */ NS_SCRIPTABLE NS_IMETHOD GetSha1Fingerprint(nsAString & aSha1Fingerprint) = 0; /* readonly attribute AString md5Fingerprint; */ NS_SCRIPTABLE NS_IMETHOD GetMd5Fingerprint(nsAString & aMd5Fingerprint) = 0; /* readonly attribute AString tokenName; */ NS_SCRIPTABLE NS_IMETHOD GetTokenName(nsAString & aTokenName) = 0; /* readonly attribute AString issuerName; */ NS_SCRIPTABLE NS_IMETHOD GetIssuerName(nsAString & aIssuerName) = 0; /* readonly attribute AString serialNumber; */ NS_SCRIPTABLE NS_IMETHOD GetSerialNumber(nsAString & aSerialNumber) = 0; /* readonly attribute AString issuerCommonName; */ NS_SCRIPTABLE NS_IMETHOD GetIssuerCommonName(nsAString & aIssuerCommonName) = 0; /* readonly attribute AString issuerOrganization; */ NS_SCRIPTABLE NS_IMETHOD GetIssuerOrganization(nsAString & aIssuerOrganization) = 0; /* readonly attribute AString issuerOrganizationUnit; */ NS_SCRIPTABLE NS_IMETHOD GetIssuerOrganizationUnit(nsAString & aIssuerOrganizationUnit) = 0; /* readonly attribute nsIX509Cert issuer; */ NS_SCRIPTABLE NS_IMETHOD GetIssuer(nsIX509Cert * *aIssuer) = 0; /* readonly attribute nsIX509CertValidity validity; */ NS_SCRIPTABLE NS_IMETHOD GetValidity(nsIX509CertValidity * *aValidity) = 0; /* readonly attribute string dbKey; */ NS_SCRIPTABLE NS_IMETHOD GetDbKey(char * *aDbKey) = 0; /* readonly attribute string windowTitle; */ NS_SCRIPTABLE NS_IMETHOD GetWindowTitle(char * *aWindowTitle) = 0; enum { UNKNOWN_CERT = 0U }; enum { CA_CERT = 1U }; enum { USER_CERT = 2U }; enum { EMAIL_CERT = 4U }; enum { SERVER_CERT = 8U }; 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 }; 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 }; /* nsIArray getChain (); */ NS_SCRIPTABLE NS_IMETHOD GetChain(nsIArray * *_retval NS_OUTPARAM) = 0; /* void getUsagesArray (in boolean localOnly, out PRUint32 verified, out PRUint32 count, [array, size_is (count)] out wstring usages); */ NS_SCRIPTABLE NS_IMETHOD GetUsagesArray(PRBool localOnly, PRUint32 *verified NS_OUTPARAM, PRUint32 *count NS_OUTPARAM, PRUnichar * **usages NS_OUTPARAM) = 0; /* void getUsagesString (in boolean localOnly, out PRUint32 verified, out AString usages); */ NS_SCRIPTABLE NS_IMETHOD GetUsagesString(PRBool localOnly, PRUint32 *verified NS_OUTPARAM, nsAString & usages NS_OUTPARAM) = 0; /* unsigned long verifyForUsage (in unsigned long usage); */ NS_SCRIPTABLE NS_IMETHOD VerifyForUsage(PRUint32 usage, PRUint32 *_retval NS_OUTPARAM) = 0; /* readonly attribute nsIASN1Object ASN1Structure; */ NS_SCRIPTABLE NS_IMETHOD GetASN1Structure(nsIASN1Object * *aASN1Structure) = 0; /* void getRawDER (out unsigned long length, [array, size_is (length), retval] out octet data); */ NS_SCRIPTABLE NS_IMETHOD GetRawDER(PRUint32 *length NS_OUTPARAM, PRUint8 **data NS_OUTPARAM) = 0; /* boolean equals (in nsIX509Cert other); */ NS_SCRIPTABLE NS_IMETHOD Equals(nsIX509Cert *other, PRBool *_retval NS_OUTPARAM) = 0; }; NS_DEFINE_STATIC_IID_ACCESSOR(nsIX509Cert, NS_IX509CERT_IID) /* Use this macro when declaring classes that implement this interface. */ #define NS_DECL_NSIX509CERT \ NS_SCRIPTABLE NS_IMETHOD GetNickname(nsAString & aNickname); \ NS_SCRIPTABLE NS_IMETHOD GetEmailAddress(nsAString & aEmailAddress); \ NS_SCRIPTABLE NS_IMETHOD GetEmailAddresses(PRUint32 *length NS_OUTPARAM, PRUnichar * **addresses NS_OUTPARAM); \ NS_SCRIPTABLE NS_IMETHOD ContainsEmailAddress(const nsAString & aEmailAddress, PRBool *_retval NS_OUTPARAM); \ NS_SCRIPTABLE NS_IMETHOD GetSubjectName(nsAString & aSubjectName); \ NS_SCRIPTABLE NS_IMETHOD GetCommonName(nsAString & aCommonName); \ NS_SCRIPTABLE NS_IMETHOD GetOrganization(nsAString & aOrganization); \ NS_SCRIPTABLE NS_IMETHOD GetOrganizationalUnit(nsAString & aOrganizationalUnit); \ NS_SCRIPTABLE NS_IMETHOD GetSha1Fingerprint(nsAString & aSha1Fingerprint); \ NS_SCRIPTABLE NS_IMETHOD GetMd5Fingerprint(nsAString & aMd5Fingerprint); \ NS_SCRIPTABLE NS_IMETHOD GetTokenName(nsAString & aTokenName); \ NS_SCRIPTABLE NS_IMETHOD GetIssuerName(nsAString & aIssuerName); \ NS_SCRIPTABLE NS_IMETHOD GetSerialNumber(nsAString & aSerialNumber); \ NS_SCRIPTABLE NS_IMETHOD GetIssuerCommonName(nsAString & aIssuerCommonName); \ NS_SCRIPTABLE NS_IMETHOD GetIssuerOrganization(nsAString & aIssuerOrganization); \ NS_SCRIPTABLE NS_IMETHOD GetIssuerOrganizationUnit(nsAString & aIssuerOrganizationUnit); \ NS_SCRIPTABLE NS_IMETHOD GetIssuer(nsIX509Cert * *aIssuer); \ NS_SCRIPTABLE NS_IMETHOD GetValidity(nsIX509CertValidity * *aValidity); \ NS_SCRIPTABLE NS_IMETHOD GetDbKey(char * *aDbKey); \ NS_SCRIPTABLE NS_IMETHOD GetWindowTitle(char * *aWindowTitle); \ NS_SCRIPTABLE NS_IMETHOD GetChain(nsIArray * *_retval NS_OUTPARAM); \ NS_SCRIPTABLE NS_IMETHOD GetUsagesArray(PRBool localOnly, PRUint32 *verified NS_OUTPARAM, PRUint32 *count NS_OUTPARAM, PRUnichar * **usages NS_OUTPARAM); \ NS_SCRIPTABLE NS_IMETHOD GetUsagesString(PRBool localOnly, PRUint32 *verified NS_OUTPARAM, nsAString & usages NS_OUTPARAM); \ NS_SCRIPTABLE NS_IMETHOD VerifyForUsage(PRUint32 usage, PRUint32 *_retval NS_OUTPARAM); \ NS_SCRIPTABLE NS_IMETHOD GetASN1Structure(nsIASN1Object * *aASN1Structure); \ NS_SCRIPTABLE NS_IMETHOD GetRawDER(PRUint32 *length NS_OUTPARAM, PRUint8 **data NS_OUTPARAM); \ NS_SCRIPTABLE NS_IMETHOD Equals(nsIX509Cert *other, PRBool *_retval NS_OUTPARAM); /* Use this macro to declare functions that forward the behavior of this interface to another object. */ #define NS_FORWARD_NSIX509CERT(_to) \ NS_SCRIPTABLE NS_IMETHOD GetNickname(nsAString & aNickname) { return _to GetNickname(aNickname); } \ NS_SCRIPTABLE NS_IMETHOD GetEmailAddress(nsAString & aEmailAddress) { return _to GetEmailAddress(aEmailAddress); } \ NS_SCRIPTABLE NS_IMETHOD GetEmailAddresses(PRUint32 *length NS_OUTPARAM, PRUnichar * **addresses NS_OUTPARAM) { return _to GetEmailAddresses(length, addresses); } \ NS_SCRIPTABLE NS_IMETHOD ContainsEmailAddress(const nsAString & aEmailAddress, PRBool *_retval NS_OUTPARAM) { return _to ContainsEmailAddress(aEmailAddress, _retval); } \ NS_SCRIPTABLE NS_IMETHOD GetSubjectName(nsAString & aSubjectName) { return _to GetSubjectName(aSubjectName); } \ NS_SCRIPTABLE NS_IMETHOD GetCommonName(nsAString & aCommonName) { return _to GetCommonName(aCommonName); } \ NS_SCRIPTABLE NS_IMETHOD GetOrganization(nsAString & aOrganization) { return _to GetOrganization(aOrganization); } \ NS_SCRIPTABLE NS_IMETHOD GetOrganizationalUnit(nsAString & aOrganizationalUnit) { return _to GetOrganizationalUnit(aOrganizationalUnit); } \ NS_SCRIPTABLE NS_IMETHOD GetSha1Fingerprint(nsAString & aSha1Fingerprint) { return _to GetSha1Fingerprint(aSha1Fingerprint); } \ NS_SCRIPTABLE NS_IMETHOD GetMd5Fingerprint(nsAString & aMd5Fingerprint) { return _to GetMd5Fingerprint(aMd5Fingerprint); } \ NS_SCRIPTABLE NS_IMETHOD GetTokenName(nsAString & aTokenName) { return _to GetTokenName(aTokenName); } \ NS_SCRIPTABLE NS_IMETHOD GetIssuerName(nsAString & aIssuerName) { return _to GetIssuerName(aIssuerName); } \ NS_SCRIPTABLE NS_IMETHOD GetSerialNumber(nsAString & aSerialNumber) { return _to GetSerialNumber(aSerialNumber); } \ NS_SCRIPTABLE NS_IMETHOD GetIssuerCommonName(nsAString & aIssuerCommonName) { return _to GetIssuerCommonName(aIssuerCommonName); } \ NS_SCRIPTABLE NS_IMETHOD GetIssuerOrganization(nsAString & aIssuerOrganization) { return _to GetIssuerOrganization(aIssuerOrganization); } \ NS_SCRIPTABLE NS_IMETHOD GetIssuerOrganizationUnit(nsAString & aIssuerOrganizationUnit) { return _to GetIssuerOrganizationUnit(aIssuerOrganizationUnit); } \ NS_SCRIPTABLE NS_IMETHOD GetIssuer(nsIX509Cert * *aIssuer) { return _to GetIssuer(aIssuer); } \ NS_SCRIPTABLE NS_IMETHOD GetValidity(nsIX509CertValidity * *aValidity) { return _to GetValidity(aValidity); } \ NS_SCRIPTABLE NS_IMETHOD GetDbKey(char * *aDbKey) { return _to GetDbKey(aDbKey); } \ NS_SCRIPTABLE NS_IMETHOD GetWindowTitle(char * *aWindowTitle) { return _to GetWindowTitle(aWindowTitle); } \ NS_SCRIPTABLE NS_IMETHOD GetChain(nsIArray * *_retval NS_OUTPARAM) { return _to GetChain(_retval); } \ NS_SCRIPTABLE NS_IMETHOD GetUsagesArray(PRBool localOnly, PRUint32 *verified NS_OUTPARAM, PRUint32 *count NS_OUTPARAM, PRUnichar * **usages NS_OUTPARAM) { return _to GetUsagesArray(localOnly, verified, count, usages); } \ NS_SCRIPTABLE NS_IMETHOD GetUsagesString(PRBool localOnly, PRUint32 *verified NS_OUTPARAM, nsAString & usages NS_OUTPARAM) { return _to GetUsagesString(localOnly, verified, usages); } \ NS_SCRIPTABLE NS_IMETHOD VerifyForUsage(PRUint32 usage, PRUint32 *_retval NS_OUTPARAM) { return _to VerifyForUsage(usage, _retval); } \ NS_SCRIPTABLE NS_IMETHOD GetASN1Structure(nsIASN1Object * *aASN1Structure) { return _to GetASN1Structure(aASN1Structure); } \ NS_SCRIPTABLE NS_IMETHOD GetRawDER(PRUint32 *length NS_OUTPARAM, PRUint8 **data NS_OUTPARAM) { return _to GetRawDER(length, data); } \ NS_SCRIPTABLE NS_IMETHOD Equals(nsIX509Cert *other, PRBool *_retval NS_OUTPARAM) { 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_SCRIPTABLE NS_IMETHOD GetNickname(nsAString & aNickname) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNickname(aNickname); } \ NS_SCRIPTABLE NS_IMETHOD GetEmailAddress(nsAString & aEmailAddress) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEmailAddress(aEmailAddress); } \ NS_SCRIPTABLE NS_IMETHOD GetEmailAddresses(PRUint32 *length NS_OUTPARAM, PRUnichar * **addresses NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEmailAddresses(length, addresses); } \ NS_SCRIPTABLE NS_IMETHOD ContainsEmailAddress(const nsAString & aEmailAddress, PRBool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->ContainsEmailAddress(aEmailAddress, _retval); } \ NS_SCRIPTABLE NS_IMETHOD GetSubjectName(nsAString & aSubjectName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSubjectName(aSubjectName); } \ NS_SCRIPTABLE NS_IMETHOD GetCommonName(nsAString & aCommonName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCommonName(aCommonName); } \ NS_SCRIPTABLE NS_IMETHOD GetOrganization(nsAString & aOrganization) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOrganization(aOrganization); } \ NS_SCRIPTABLE NS_IMETHOD GetOrganizationalUnit(nsAString & aOrganizationalUnit) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOrganizationalUnit(aOrganizationalUnit); } \ NS_SCRIPTABLE NS_IMETHOD GetSha1Fingerprint(nsAString & aSha1Fingerprint) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSha1Fingerprint(aSha1Fingerprint); } \ NS_SCRIPTABLE NS_IMETHOD GetMd5Fingerprint(nsAString & aMd5Fingerprint) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMd5Fingerprint(aMd5Fingerprint); } \ NS_SCRIPTABLE NS_IMETHOD GetTokenName(nsAString & aTokenName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTokenName(aTokenName); } \ NS_SCRIPTABLE NS_IMETHOD GetIssuerName(nsAString & aIssuerName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIssuerName(aIssuerName); } \ NS_SCRIPTABLE NS_IMETHOD GetSerialNumber(nsAString & aSerialNumber) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSerialNumber(aSerialNumber); } \ NS_SCRIPTABLE NS_IMETHOD GetIssuerCommonName(nsAString & aIssuerCommonName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIssuerCommonName(aIssuerCommonName); } \ NS_SCRIPTABLE NS_IMETHOD GetIssuerOrganization(nsAString & aIssuerOrganization) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIssuerOrganization(aIssuerOrganization); } \ NS_SCRIPTABLE NS_IMETHOD GetIssuerOrganizationUnit(nsAString & aIssuerOrganizationUnit) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIssuerOrganizationUnit(aIssuerOrganizationUnit); } \ NS_SCRIPTABLE NS_IMETHOD GetIssuer(nsIX509Cert * *aIssuer) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIssuer(aIssuer); } \ NS_SCRIPTABLE NS_IMETHOD GetValidity(nsIX509CertValidity * *aValidity) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetValidity(aValidity); } \ NS_SCRIPTABLE NS_IMETHOD GetDbKey(char * *aDbKey) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDbKey(aDbKey); } \ NS_SCRIPTABLE NS_IMETHOD GetWindowTitle(char * *aWindowTitle) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetWindowTitle(aWindowTitle); } \ NS_SCRIPTABLE NS_IMETHOD GetChain(nsIArray * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetChain(_retval); } \ NS_SCRIPTABLE NS_IMETHOD GetUsagesArray(PRBool localOnly, PRUint32 *verified NS_OUTPARAM, PRUint32 *count NS_OUTPARAM, PRUnichar * **usages NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUsagesArray(localOnly, verified, count, usages); } \ NS_SCRIPTABLE NS_IMETHOD GetUsagesString(PRBool localOnly, PRUint32 *verified NS_OUTPARAM, nsAString & usages NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUsagesString(localOnly, verified, usages); } \ NS_SCRIPTABLE NS_IMETHOD VerifyForUsage(PRUint32 usage, PRUint32 *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->VerifyForUsage(usage, _retval); } \ NS_SCRIPTABLE NS_IMETHOD GetASN1Structure(nsIASN1Object * *aASN1Structure) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetASN1Structure(aASN1Structure); } \ NS_SCRIPTABLE NS_IMETHOD GetRawDER(PRUint32 *length NS_OUTPARAM, PRUint8 **data NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRawDER(length, data); } \ NS_SCRIPTABLE NS_IMETHOD Equals(nsIX509Cert *other, PRBool *_retval NS_OUTPARAM) { 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 NS_OUTPARAM, PRUnichar * **addresses NS_OUTPARAM) { return NS_ERROR_NOT_IMPLEMENTED; } /* boolean containsEmailAddress (in AString aEmailAddress); */ NS_IMETHODIMP nsX509Cert::ContainsEmailAddress(const nsAString & aEmailAddress, PRBool *_retval NS_OUTPARAM) { 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 NS_OUTPARAM) { return NS_ERROR_NOT_IMPLEMENTED; } /* void getUsagesArray (in boolean localOnly, out PRUint32 verified, out PRUint32 count, [array, size_is (count)] out wstring usages); */ NS_IMETHODIMP nsX509Cert::GetUsagesArray(PRBool localOnly, PRUint32 *verified NS_OUTPARAM, PRUint32 *count NS_OUTPARAM, PRUnichar * **usages NS_OUTPARAM) { return NS_ERROR_NOT_IMPLEMENTED; } /* void getUsagesString (in boolean localOnly, out PRUint32 verified, out AString usages); */ NS_IMETHODIMP nsX509Cert::GetUsagesString(PRBool localOnly, PRUint32 *verified NS_OUTPARAM, nsAString & usages NS_OUTPARAM) { return NS_ERROR_NOT_IMPLEMENTED; } /* unsigned long verifyForUsage (in unsigned long usage); */ NS_IMETHODIMP nsX509Cert::VerifyForUsage(PRUint32 usage, PRUint32 *_retval NS_OUTPARAM) { 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 NS_OUTPARAM, PRUint8 **data NS_OUTPARAM) { return NS_ERROR_NOT_IMPLEMENTED; } /* boolean equals (in nsIX509Cert other); */ NS_IMETHODIMP nsX509Cert::Equals(nsIX509Cert *other, PRBool *_retval NS_OUTPARAM) { return NS_ERROR_NOT_IMPLEMENTED; } /* End of implementation class template. */ #endif #endif /* __gen_nsIX509Cert_h__ */
[ "luoshoufu@gmail.com" ]
luoshoufu@gmail.com
f937d49e56d5a6f1c4d6bd33ad2b5e056b4ed776
a0b0eb383ecfeaeed3d2b0271657a0c32472bf8e
/uvalive/6259.cpp
cd62c1ed7b4f060e11474a9a5102c2b35b3b3d6e
[ "Apache-2.0" ]
permissive
tangjz/acm-icpc
45764d717611d545976309f10bebf79c81182b57
f1f3f15f7ed12c0ece39ad0dd044bfe35df9136d
refs/heads/master
2023-04-07T10:23:07.075717
2022-12-24T15:30:19
2022-12-26T06:22:53
13,367,317
53
20
Apache-2.0
2022-12-26T06:22:54
2013-10-06T18:57:09
C++
UTF-8
C++
false
false
1,451
cpp
#include <cstdio> #include <cstring> const int maxn = 2001, maxm = 501, maxs = 6; int t, n, m, rt, H[maxm], L[maxm], R[maxm], f[maxm][maxn]; char word[maxm][maxs], str[maxn], a[maxs], b[maxs]; bool vis[maxm]; int Hash(char *s) { int res = 0; for(int i = 0; s[i]; ++i) res = res * 29 + (s[i] - 'A' + 1); return res; } void dfs(int x) { if(vis[x]) return; vis[x] = 1; if(L[x] == -1) { for(int i = 0; i <= n; ++i) { int j = i; for(int k = 0; str[j] && word[x][k]; ++k) if(str[j] == word[x][k]) ++j; f[x][i] = j; } } else { dfs(L[x]); dfs(R[x]); for(int i = 0; i <= n; ++i) f[x][i] = f[R[x]][f[L[x]][i]]; } } int main() { scanf("%d", &t); while(t--) { memset(L, -1, sizeof L); memset(vis, 0, sizeof vis); scanf("%d", &m); for(int i = 0; i < m; ++i) { scanf("%s%*s%s", a, b); H[i] = Hash(a); if(b[0] >= 'a' && b[0] <= 'z') strcpy(word[i], b); else { L[i] = Hash(b); scanf("%*s%s", b); R[i] = Hash(b); } } for(int i = 0; i < m; ++i) if(L[i] != -1) { for(int j = 0; j < m; ++j) if(L[i] == H[j]) { L[i] = j; break; } for(int j = 0; j < m; ++j) if(R[i] == H[j]) { R[i] = j; break; } } scanf("%s%s", a, str); rt = Hash(a); for(int i = 0; i < m; ++i) if(rt == H[i]) { rt = i; break; } n = strlen(str); dfs(rt); puts(f[rt][0] == n ? "YES" : "NO"); } return 0; }
[ "t251346744@gmail.com" ]
t251346744@gmail.com
d04a505ce0ce7efac8a49727489ca104df5aefc5
adc4d04471e3fced971ae7abca7663b2a3885150
/frameworks/cocos2d-x/cocos/ui/UIScrollView.cpp
280902485af55951bbdbca99351b4d0b17b346ea
[]
no_license
s752167062/MJPlatform
0aa81b38225b64852d89d5a42a6b6e6d6081016b
cacabedcf0de923740c81cbe12464774334a2cd3
refs/heads/master
2020-03-21T06:50:59.573272
2019-01-22T08:24:34
2019-01-22T08:24:34
138,245,383
1
2
null
null
null
null
UTF-8
C++
false
false
42,029
cpp
/**************************************************************************** Copyright (c) 2013-2014 Chukong Technologies Inc. http://www.cocos2d-x.org 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 "ui/UIScrollView.h" #include "base/CCDirector.h" #include "base/ccUtils.h" #include "platform/CCDevice.h" #include "ui/UIScrollViewBar.h" #include "2d/CCTweenFunction.h" #include "2d/CCCamera.h" NS_CC_BEGIN static const int NUMBER_OF_GATHERED_TOUCHES_FOR_MOVE_SPEED = 5; static const float OUT_OF_BOUNDARY_BREAKING_FACTOR = 0.05f; static const float BOUNCE_BACK_DURATION = 1.0f; #define MOVE_INCH 7.0f/160.0f static float convertDistanceFromPointToInch(const Vec2& dis) { auto glview = Director::getInstance()->getOpenGLView(); int dpi = Device::getDPI(); float distance = Vec2(dis.x * glview->getScaleX() / dpi, dis.y * glview->getScaleY() / dpi).getLength(); return distance; } namespace ui { IMPLEMENT_CLASS_GUI_INFO(ScrollView) ScrollView::ScrollView(): _innerContainer(nullptr), _direction(Direction::VERTICAL), _topBoundary(0.0f), _bottomBoundary(0.0f), _leftBoundary(0.0f), _rightBoundary(0.0f), _bePressed(false), _childFocusCancelOffsetInInch(MOVE_INCH), _touchMovePreviousTimestamp(0), _autoScrolling(false), _autoScrollAttenuate(true), _autoScrollTotalTime(0), _autoScrollAccumulatedTime(0), _autoScrollCurrentlyOutOfBoundary(false), _autoScrollBraking(false), _inertiaScrollEnabled(true), _bounceEnabled(false), _outOfBoundaryAmountDirty(true), _scrollBarEnabled(true), _verticalScrollBar(nullptr), _horizontalScrollBar(nullptr), _scrollViewEventListener(nullptr), _scrollViewEventSelector(nullptr), _eventCallback(nullptr) { setTouchEnabled(true); _propagateTouchEvents = false; } ScrollView::~ScrollView() { _verticalScrollBar = nullptr; _horizontalScrollBar = nullptr; _scrollViewEventListener = nullptr; _scrollViewEventSelector = nullptr; } ScrollView* ScrollView::create() { ScrollView* widget = new (std::nothrow) ScrollView(); if (widget && widget->init()) { widget->autorelease(); return widget; } CC_SAFE_DELETE(widget); return nullptr; } void ScrollView::onEnter() { #if CC_ENABLE_SCRIPT_BINDING if (_scriptType == kScriptTypeJavascript) { if (ScriptEngineManager::sendNodeEventToJSExtended(this, kNodeOnEnter)) return; } #endif Layout::onEnter(); scheduleUpdate(); } bool ScrollView::init() { if (Layout::init()) { setClippingEnabled(true); _innerContainer->setTouchEnabled(false); if(_scrollBarEnabled) { initScrollBar(); } return true; } return false; } void ScrollView::initRenderer() { Layout::initRenderer(); _innerContainer = Layout::create(); _innerContainer->setColor(Color3B(255,255,255)); _innerContainer->setOpacity(255); _innerContainer->setCascadeColorEnabled(true); _innerContainer->setCascadeOpacityEnabled(true); addProtectedChild(_innerContainer, 1, 1); } void ScrollView::onSizeChanged() { Layout::onSizeChanged(); _topBoundary = _contentSize.height; _rightBoundary = _contentSize.width; Size innerSize = _innerContainer->getContentSize(); float orginInnerSizeWidth = innerSize.width; float orginInnerSizeHeight = innerSize.height; float innerSizeWidth = MAX(orginInnerSizeWidth, _contentSize.width); float innerSizeHeight = MAX(orginInnerSizeHeight, _contentSize.height); _innerContainer->setContentSize(Size(innerSizeWidth, innerSizeHeight)); setInnerContainerPosition(Vec2(0, _contentSize.height - _innerContainer->getContentSize().height)); } void ScrollView::setInnerContainerSize(const Size &size) { float innerSizeWidth = _contentSize.width; float innerSizeHeight = _contentSize.height; Size originalInnerSize = _innerContainer->getContentSize(); if (size.width < _contentSize.width) { CCLOG("Inner width <= scrollview width, it will be force sized!"); } else { innerSizeWidth = size.width; } if (size.height < _contentSize.height) { CCLOG("Inner height <= scrollview height, it will be force sized!"); } else { innerSizeHeight = size.height; } _innerContainer->setContentSize(Size(innerSizeWidth, innerSizeHeight)); // Calculate and set the position of the inner container. Vec2 pos = _innerContainer->getPosition(); if (_innerContainer->getLeftBoundary() != 0.0f) { pos.x = _innerContainer->getAnchorPoint().x * _innerContainer->getContentSize().width; } if (_innerContainer->getTopBoundary() != _contentSize.height) { pos.y = _contentSize.height - (1.0f - _innerContainer->getAnchorPoint().y) * _innerContainer->getContentSize().height; } setInnerContainerPosition(pos); updateScrollBar(Vec2::ZERO); } const Size& ScrollView::getInnerContainerSize() const { return _innerContainer->getContentSize(); } void ScrollView::setInnerContainerPosition(const Vec2 &position) { if(position == _innerContainer->getPosition()) { return; } _innerContainer->setPosition(position); _outOfBoundaryAmountDirty = true; // Process bouncing events if(_bounceEnabled) { for(int direction = (int) MoveDirection::TOP; direction < (int) MoveDirection::RIGHT; ++direction) { if(isOutOfBoundary((MoveDirection) direction)) { processScrollEvent((MoveDirection) direction, true); } } } this->retain(); if (_eventCallback) { _eventCallback(this, EventType::CONTAINER_MOVED); } if (_ccEventCallback) { _ccEventCallback(this, static_cast<int>(EventType::CONTAINER_MOVED)); } this->release(); } const Vec2 ScrollView::getInnerContainerPosition() const { return _innerContainer->getPosition(); } Node* ScrollView::findChildByName(const std::string& name) const { return _innerContainer->findChildByName(name); } void ScrollView::addChild(Node* child) { ScrollView::addChild(child, child->getLocalZOrder(), child->getTag()); } void ScrollView::addChild(Node * child, int localZOrder) { ScrollView::addChild(child, localZOrder, child->getTag()); } void ScrollView::addChild(Node *child, int zOrder, int tag) { _innerContainer->addChild(child, zOrder, tag); } void ScrollView::addChild(Node* child, int zOrder, const std::string &name) { _innerContainer->addChild(child, zOrder, name); } void ScrollView::removeAllChildren() { removeAllChildrenWithCleanup(true); } void ScrollView::removeAllChildrenWithCleanup(bool cleanup) { _innerContainer->removeAllChildrenWithCleanup(cleanup); } void ScrollView::removeChild(Node* child, bool cleanup) { return _innerContainer->removeChild(child, cleanup); } Vector<Node*>& ScrollView::getChildren() { return _innerContainer->getChildren(); } const Vector<Node*>& ScrollView::getChildren() const { return _innerContainer->getChildren(); } ssize_t ScrollView::getChildrenCount() const { return _innerContainer->getChildrenCount(); } Node* ScrollView::getChildByTag(int tag) const { return _innerContainer->getChildByTag(tag); } Node* ScrollView::getChildByName(const std::string& name)const { return _innerContainer->getChildByName(name); } void ScrollView::moveInnerContainer(const Vec2& deltaMove, bool canStartBounceBack) { Vec2 adjustedMove = flattenVectorByDirection(deltaMove); setInnerContainerPosition(getInnerContainerPosition() + adjustedMove); Vec2 outOfBoundary = getHowMuchOutOfBoundary(); updateScrollBar(outOfBoundary); if(_bounceEnabled && canStartBounceBack) { startBounceBackIfNeeded(); } } void ScrollView::updateScrollBar(const Vec2& outOfBoundary) { if(_verticalScrollBar != nullptr) { _verticalScrollBar->onScrolled(outOfBoundary); } if(_horizontalScrollBar != nullptr) { _horizontalScrollBar->onScrolled(outOfBoundary); } } Vec2 ScrollView::calculateTouchMoveVelocity() const { float totalTime = 0; for(auto &timeDelta : _touchMoveTimeDeltas) { totalTime += timeDelta; } if(totalTime == 0 || totalTime >= 0.5f) { return Vec2::ZERO; } Vec2 totalMovement; for(auto &displacement : _touchMoveDisplacements) { totalMovement += displacement; } return totalMovement / totalTime; } void ScrollView::startInertiaScroll(const Vec2& touchMoveVelocity) { const float MOVEMENT_FACTOR = 0.7f; Vec2 inertiaTotalMovement = touchMoveVelocity * MOVEMENT_FACTOR; startAttenuatingAutoScroll(inertiaTotalMovement, touchMoveVelocity); } bool ScrollView::startBounceBackIfNeeded() { if (!_bounceEnabled) { return false; } Vec2 bounceBackAmount = getHowMuchOutOfBoundary(); if(bounceBackAmount == Vec2::ZERO) { return false; } startAutoScroll(bounceBackAmount, BOUNCE_BACK_DURATION, true); return true; } Vec2 ScrollView::flattenVectorByDirection(const Vec2& vector) { Vec2 result = vector; result.x = (_direction == Direction::VERTICAL ? 0 : result.x); result.y = (_direction == Direction::HORIZONTAL ? 0 : result.y); return result; } Vec2 ScrollView::getHowMuchOutOfBoundary(const Vec2& addition) { if(addition == Vec2::ZERO && !_outOfBoundaryAmountDirty) { return _outOfBoundaryAmount; } Vec2 outOfBoundaryAmount; if(_innerContainer->getLeftBoundary() + addition.x > _leftBoundary) { outOfBoundaryAmount.x = _leftBoundary - (_innerContainer->getLeftBoundary() + addition.x); } else if(_innerContainer->getRightBoundary() + addition.x < _rightBoundary) { outOfBoundaryAmount.x = _rightBoundary - (_innerContainer->getRightBoundary() + addition.x); } if(_innerContainer->getTopBoundary() + addition.y < _topBoundary) { outOfBoundaryAmount.y = _topBoundary - (_innerContainer->getTopBoundary() + addition.y); } else if(_innerContainer->getBottomBoundary() + addition.y > _bottomBoundary) { outOfBoundaryAmount.y = _bottomBoundary - (_innerContainer->getBottomBoundary() + addition.y); } if(addition == Vec2::ZERO) { _outOfBoundaryAmount = outOfBoundaryAmount; _outOfBoundaryAmountDirty = false; } return outOfBoundaryAmount; } bool ScrollView::isOutOfBoundary(MoveDirection dir) { Vec2 outOfBoundary = getHowMuchOutOfBoundary(); switch(dir) { case MoveDirection::TOP: return outOfBoundary.y > 0; case MoveDirection::BOTTOM: return outOfBoundary.y < 0; case MoveDirection::LEFT: return outOfBoundary.x < 0; case MoveDirection::RIGHT: return outOfBoundary.x > 0; } return false; } bool ScrollView::isOutOfBoundary() { return getHowMuchOutOfBoundary() != Vec2::ZERO; } void ScrollView::startAutoScrollToDestination(const Vec2& destination, float timeInSec, bool attenuated) { startAutoScroll(destination - _innerContainer->getPosition(), timeInSec, attenuated); } static float calculateAutoScrollTimeByInitialSpeed(float initialSpeed) { // Calculate the time from the initial speed according to quintic polynomial. float time = sqrtf(sqrtf(initialSpeed / 5)); return time; } void ScrollView::startAttenuatingAutoScroll(const Vec2& deltaMove, const Vec2& initialVelocity) { float time = calculateAutoScrollTimeByInitialSpeed(initialVelocity.length()); startAutoScroll(deltaMove, time, true); } void ScrollView::startAutoScroll(const Vec2& deltaMove, float timeInSec, bool attenuated) { Vec2 adjustedDeltaMove = flattenVectorByDirection(deltaMove); _autoScrolling = true; _autoScrollTargetDelta = adjustedDeltaMove; _autoScrollAttenuate = attenuated; _autoScrollStartPosition = _innerContainer->getPosition(); _autoScrollTotalTime = timeInSec; _autoScrollAccumulatedTime = 0; _autoScrollBraking = false; _autoScrollBrakingStartPosition = Vec2::ZERO; // If the destination is also out of boundary of same side, start brake from beggining. Vec2 currentOutOfBoundary = getHowMuchOutOfBoundary(); if(currentOutOfBoundary != Vec2::ZERO) { _autoScrollCurrentlyOutOfBoundary = true; Vec2 afterOutOfBoundary = getHowMuchOutOfBoundary(adjustedDeltaMove); if(currentOutOfBoundary.x * afterOutOfBoundary.x > 0 || currentOutOfBoundary.y * afterOutOfBoundary.y > 0) { _autoScrollBraking = true; } } } bool ScrollView::isNecessaryAutoScrollBrake() { if(_autoScrollBraking) { return true; } if(isOutOfBoundary()) { // It just went out of boundary. if(!_autoScrollCurrentlyOutOfBoundary) { _autoScrollCurrentlyOutOfBoundary = true; _autoScrollBraking = true; _autoScrollBrakingStartPosition = getInnerContainerPosition(); return true; } } else { _autoScrollCurrentlyOutOfBoundary = false; } return false; } void ScrollView::processAutoScrolling(float deltaTime) { // Make auto scroll shorter if it needs to deaccelerate. float brakingFactor = (isNecessaryAutoScrollBrake() ? OUT_OF_BOUNDARY_BREAKING_FACTOR : 1); // Elapsed time _autoScrollAccumulatedTime += deltaTime * (1 / brakingFactor); // Calculate the progress percentage float percentage = MIN(1, _autoScrollAccumulatedTime / _autoScrollTotalTime); if(_autoScrollAttenuate) { // Use quintic(5th degree) polynomial percentage = tweenfunc::quintEaseOut(percentage); } // Calculate the new position Vec2 newPosition = _autoScrollStartPosition + (_autoScrollTargetDelta * percentage); bool reachedEnd = (percentage == 1); if(_bounceEnabled) { // The new position is adjusted if out of boundary newPosition = _autoScrollBrakingStartPosition + (newPosition - _autoScrollBrakingStartPosition) * brakingFactor; } else { // Don't let go out of boundary Vec2 moveDelta = newPosition - getInnerContainerPosition(); Vec2 outOfBoundary = getHowMuchOutOfBoundary(moveDelta); if(outOfBoundary != Vec2::ZERO) { newPosition += outOfBoundary; reachedEnd = true; } } // Finish auto scroll if it ended if(reachedEnd) { _autoScrolling = false; } moveInnerContainer(newPosition - getInnerContainerPosition(), reachedEnd); } void ScrollView::jumpToDestination(const Vec2 &des) { _autoScrolling = false; moveInnerContainer(des - getInnerContainerPosition(), true); } void ScrollView::scrollChildren(const Vec2& deltaMove) { Vec2 realMove = deltaMove; if(_bounceEnabled) { // If the position of the inner container is out of the boundary, the offsets should be divided by two. Vec2 outOfBoundary = getHowMuchOutOfBoundary(); realMove.x *= (outOfBoundary.x == 0 ? 1 : 0.5f); realMove.y *= (outOfBoundary.y == 0 ? 1 : 0.5f); } if(!_bounceEnabled) { Vec2 outOfBoundary = getHowMuchOutOfBoundary(realMove); realMove += outOfBoundary; } bool scrolledToLeft = false; bool scrolledToRight = false; bool scrolledToTop = false; bool scrolledToBottom = false; if (realMove.y > 0.0f) // up { float icBottomPos = _innerContainer->getBottomBoundary(); if (icBottomPos + realMove.y >= _bottomBoundary) { scrolledToBottom = true; } } else if (realMove.y < 0.0f) // down { float icTopPos = _innerContainer->getTopBoundary(); if (icTopPos + realMove.y <= _topBoundary) { scrolledToTop = true; } } if (realMove.x < 0.0f) // left { float icRightPos = _innerContainer->getRightBoundary(); if (icRightPos + realMove.x <= _rightBoundary) { scrolledToRight = true; } } else if (realMove.x > 0.0f) // right { float icLeftPos = _innerContainer->getLeftBoundary(); if (icLeftPos + realMove.x >= _leftBoundary) { scrolledToLeft = true; } } moveInnerContainer(realMove, false); if(realMove.x != 0 || realMove.y != 0) { processScrollingEvent(); } if(scrolledToBottom) { processScrollEvent(MoveDirection::BOTTOM, false); } if(scrolledToTop) { processScrollEvent(MoveDirection::TOP, false); } if(scrolledToLeft) { processScrollEvent(MoveDirection::LEFT, false); } if(scrolledToRight) { processScrollEvent(MoveDirection::RIGHT, false); } } void ScrollView::scrollToBottom(float timeInSec, bool attenuated) { startAutoScrollToDestination(Vec2(_innerContainer->getPosition().x, 0.0f), timeInSec, attenuated); } void ScrollView::scrollToTop(float timeInSec, bool attenuated) { startAutoScrollToDestination(Vec2(_innerContainer->getPosition().x, _contentSize.height - _innerContainer->getContentSize().height), timeInSec, attenuated); } void ScrollView::scrollToLeft(float timeInSec, bool attenuated) { startAutoScrollToDestination(Vec2(0.0f, _innerContainer->getPosition().y), timeInSec, attenuated); } void ScrollView::scrollToRight(float timeInSec, bool attenuated) { startAutoScrollToDestination(Vec2(_contentSize.width - _innerContainer->getContentSize().width, _innerContainer->getPosition().y), timeInSec, attenuated); } void ScrollView::scrollToTopLeft(float timeInSec, bool attenuated) { if (_direction != Direction::BOTH) { CCLOG("Scroll direction is not both!"); return; } startAutoScrollToDestination(Vec2(0.0f, _contentSize.height - _innerContainer->getContentSize().height), timeInSec, attenuated); } void ScrollView::scrollToTopRight(float timeInSec, bool attenuated) { if (_direction != Direction::BOTH) { CCLOG("Scroll direction is not both!"); return; } startAutoScrollToDestination(Vec2(_contentSize.width - _innerContainer->getContentSize().width, _contentSize.height - _innerContainer->getContentSize().height), timeInSec, attenuated); } void ScrollView::scrollToBottomLeft(float timeInSec, bool attenuated) { if (_direction != Direction::BOTH) { CCLOG("Scroll direction is not both!"); return; } startAutoScrollToDestination(Vec2::ZERO, timeInSec, attenuated); } void ScrollView::scrollToBottomRight(float timeInSec, bool attenuated) { if (_direction != Direction::BOTH) { CCLOG("Scroll direction is not both!"); return; } startAutoScrollToDestination(Vec2(_contentSize.width - _innerContainer->getContentSize().width, 0.0f), timeInSec, attenuated); } void ScrollView::scrollToPercentVertical(float percent, float timeInSec, bool attenuated) { float minY = _contentSize.height - _innerContainer->getContentSize().height; float h = - minY; startAutoScrollToDestination(Vec2(_innerContainer->getPosition().x, minY + percent * h / 100.0f), timeInSec, attenuated); } void ScrollView::scrollToPercentHorizontal(float percent, float timeInSec, bool attenuated) { float w = _innerContainer->getContentSize().width - _contentSize.width; startAutoScrollToDestination(Vec2(-(percent * w / 100.0f), _innerContainer->getPosition().y), timeInSec, attenuated); } void ScrollView::scrollToPercentBothDirection(const Vec2& percent, float timeInSec, bool attenuated) { if (_direction != Direction::BOTH) { return; } float minY = _contentSize.height - _innerContainer->getContentSize().height; float h = - minY; float w = _innerContainer->getContentSize().width - _contentSize.width; startAutoScrollToDestination(Vec2(-(percent.x * w / 100.0f), minY + percent.y * h / 100.0f), timeInSec, attenuated); } void ScrollView::jumpToBottom() { jumpToDestination(Vec2(_innerContainer->getPosition().x, 0.0f)); } void ScrollView::jumpToTop() { jumpToDestination(Vec2(_innerContainer->getPosition().x, _contentSize.height - _innerContainer->getContentSize().height)); } void ScrollView::jumpToLeft() { jumpToDestination(Vec2(0.0f, _innerContainer->getPosition().y)); } void ScrollView::jumpToRight() { jumpToDestination(Vec2(_contentSize.width - _innerContainer->getContentSize().width, _innerContainer->getPosition().y)); } void ScrollView::jumpToTopLeft() { if (_direction != Direction::BOTH) { CCLOG("Scroll direction is not both!"); return; } jumpToDestination(Vec2(0.0f, _contentSize.height - _innerContainer->getContentSize().height)); } void ScrollView::jumpToTopRight() { if (_direction != Direction::BOTH) { CCLOG("Scroll direction is not both!"); return; } jumpToDestination(Vec2(_contentSize.width - _innerContainer->getContentSize().width, _contentSize.height - _innerContainer->getContentSize().height)); } void ScrollView::jumpToBottomLeft() { if (_direction != Direction::BOTH) { CCLOG("Scroll direction is not both!"); return; } jumpToDestination(Vec2::ZERO); } void ScrollView::jumpToBottomRight() { if (_direction != Direction::BOTH) { CCLOG("Scroll direction is not both!"); return; } jumpToDestination(Vec2(_contentSize.width - _innerContainer->getContentSize().width, 0.0f)); } void ScrollView::jumpToPercentVertical(float percent) { float minY = _contentSize.height - _innerContainer->getContentSize().height; float h = - minY; jumpToDestination(Vec2(_innerContainer->getPosition().x, minY + percent * h / 100.0f)); } void ScrollView::jumpToPercentHorizontal(float percent) { float w = _innerContainer->getContentSize().width - _contentSize.width; jumpToDestination(Vec2(-(percent * w / 100.0f), _innerContainer->getPosition().y)); } void ScrollView::jumpToPercentBothDirection(const Vec2& percent) { if (_direction != Direction::BOTH) { return; } float minY = _contentSize.height - _innerContainer->getContentSize().height; float h = - minY; float w = _innerContainer->getContentSize().width - _contentSize.width; jumpToDestination(Vec2(-(percent.x * w / 100.0f), minY + percent.y * h / 100.0f)); } bool ScrollView::calculateCurrAndPrevTouchPoints(Touch* touch, Vec3* currPt, Vec3* prevPt) { if (nullptr == _hittedByCamera || false == hitTest(touch->getLocation(), _hittedByCamera, currPt) || false == hitTest(touch->getPreviousLocation(), _hittedByCamera, prevPt)) { return false; } return true; } void ScrollView::gatherTouchMove(const Vec2& delta) { while(_touchMoveDisplacements.size() >= NUMBER_OF_GATHERED_TOUCHES_FOR_MOVE_SPEED) { _touchMoveDisplacements.pop_front(); _touchMoveTimeDeltas.pop_front(); } _touchMoveDisplacements.push_back(delta); long long timestamp = utils::getTimeInMilliseconds(); _touchMoveTimeDeltas.push_back((timestamp - _touchMovePreviousTimestamp) / 1000.0f); _touchMovePreviousTimestamp = timestamp; } void ScrollView::handlePressLogic(Touch *touch) { _bePressed = true; _autoScrolling = false; // Clear gathered touch move information { _touchMovePreviousTimestamp = utils::getTimeInMilliseconds(); _touchMoveDisplacements.clear(); _touchMoveTimeDeltas.clear(); } if(_verticalScrollBar != nullptr) { _verticalScrollBar->onTouchBegan(); } if(_horizontalScrollBar != nullptr) { _horizontalScrollBar->onTouchBegan(); } } void ScrollView::handleMoveLogic(Touch *touch) { Vec3 currPt, prevPt; if(!calculateCurrAndPrevTouchPoints(touch, &currPt, &prevPt)) { return; } Vec3 delta3 = currPt - prevPt; Vec2 delta(delta3.x, delta3.y); scrollChildren(delta); // Gather touch move information for speed calculation gatherTouchMove(delta); } void ScrollView::handleReleaseLogic(Touch *touch) { // Gather the last touch information when released { Vec3 currPt, prevPt; if(calculateCurrAndPrevTouchPoints(touch, &currPt, &prevPt)) { Vec3 delta3 = currPt - prevPt; Vec2 delta(delta3.x, delta3.y); gatherTouchMove(delta); } } _bePressed = false; bool bounceBackStarted = startBounceBackIfNeeded(); if(!bounceBackStarted && _inertiaScrollEnabled) { Vec2 touchMoveVelocity = calculateTouchMoveVelocity(); if(touchMoveVelocity != Vec2::ZERO) { startInertiaScroll(touchMoveVelocity); } } if(_verticalScrollBar != nullptr) { _verticalScrollBar->onTouchEnded(); } if(_horizontalScrollBar != nullptr) { _horizontalScrollBar->onTouchEnded(); } } bool ScrollView::onTouchBegan(Touch *touch, Event *unusedEvent) { bool pass = Layout::onTouchBegan(touch, unusedEvent); if (!_isInterceptTouch) { if (_hitted) { handlePressLogic(touch); } } return pass; } void ScrollView::onTouchMoved(Touch *touch, Event *unusedEvent) { Layout::onTouchMoved(touch, unusedEvent); if (!_isInterceptTouch) { handleMoveLogic(touch); } } void ScrollView::onTouchEnded(Touch *touch, Event *unusedEvent) { Layout::onTouchEnded(touch, unusedEvent); if (!_isInterceptTouch) { handleReleaseLogic(touch); } _isInterceptTouch = false; } void ScrollView::onTouchCancelled(Touch *touch, Event *unusedEvent) { Layout::onTouchCancelled(touch, unusedEvent); if (!_isInterceptTouch) { handleReleaseLogic(touch); } _isInterceptTouch = false; } void ScrollView::update(float dt) { if (_autoScrolling) { processAutoScrolling(dt); } } void ScrollView::interceptTouchEvent(Widget::TouchEventType event, Widget *sender,Touch* touch) { if(!_touchEnabled) { Layout::interceptTouchEvent(event, sender, touch); return; } Vec2 touchPoint = touch->getLocation(); switch (event) { case TouchEventType::BEGAN: { _isInterceptTouch = true; _touchBeganPosition = touch->getLocation(); handlePressLogic(touch); } break; case TouchEventType::MOVED: { _touchMovePosition = touch->getLocation(); // calculates move offset in points float offsetInInch = 0; switch (_direction) { case Direction::HORIZONTAL: offsetInInch = convertDistanceFromPointToInch(Vec2(fabs(sender->getTouchBeganPosition().x - touchPoint.x), 0)); break; case Direction::VERTICAL: offsetInInch = convertDistanceFromPointToInch(Vec2(0, fabs(sender->getTouchBeganPosition().y - touchPoint.y))); break; case Direction::BOTH: offsetInInch = convertDistanceFromPointToInch(sender->getTouchBeganPosition() - touchPoint); break; default: break; } if (offsetInInch > _childFocusCancelOffsetInInch) { sender->setHighlighted(false); handleMoveLogic(touch); } } break; case TouchEventType::CANCELED: case TouchEventType::ENDED: { _touchEndPosition = touch->getLocation(); handleReleaseLogic(touch); if (sender->isSwallowTouches()) { _isInterceptTouch = false; } } break; } } void ScrollView::processScrollEvent(MoveDirection dir, bool bounce) { ScrollviewEventType scrollEventType; EventType eventType; switch(dir) { case MoveDirection::TOP: { scrollEventType = (bounce ? SCROLLVIEW_EVENT_BOUNCE_TOP : SCROLLVIEW_EVENT_SCROLL_TO_TOP); eventType = (bounce ? EventType::BOUNCE_TOP : EventType::SCROLL_TO_TOP); break; } case MoveDirection::BOTTOM: { scrollEventType = (bounce ? SCROLLVIEW_EVENT_BOUNCE_BOTTOM : SCROLLVIEW_EVENT_SCROLL_TO_BOTTOM); eventType = (bounce ? EventType::BOUNCE_BOTTOM : EventType::SCROLL_TO_BOTTOM); break; } case MoveDirection::LEFT: { scrollEventType = (bounce ? SCROLLVIEW_EVENT_BOUNCE_LEFT : SCROLLVIEW_EVENT_SCROLL_TO_LEFT); eventType = (bounce ? EventType::BOUNCE_LEFT : EventType::SCROLL_TO_LEFT); break; } case MoveDirection::RIGHT: { scrollEventType = (bounce ? SCROLLVIEW_EVENT_BOUNCE_RIGHT : SCROLLVIEW_EVENT_SCROLL_TO_RIGHT); eventType = (bounce ? EventType::BOUNCE_RIGHT : EventType::SCROLL_TO_RIGHT); break; } } dispatchEvent(scrollEventType, eventType); } void ScrollView::processScrollingEvent() { dispatchEvent(SCROLLVIEW_EVENT_SCROLLING, EventType::SCROLLING); } void ScrollView::dispatchEvent(ScrollviewEventType scrollEventType, EventType eventType) { this->retain(); if (_scrollViewEventListener && _scrollViewEventSelector) { (_scrollViewEventListener->*_scrollViewEventSelector)(this, scrollEventType); } if (_eventCallback) { _eventCallback(this, eventType); } if (_ccEventCallback) { _ccEventCallback(this, static_cast<int>(eventType)); } this->release(); } void ScrollView::addEventListenerScrollView(Ref *target, SEL_ScrollViewEvent selector) { _scrollViewEventListener = target; _scrollViewEventSelector = selector; } void ScrollView::addEventListener(const ccScrollViewCallback& callback) { _eventCallback = callback; } void ScrollView::setDirection(Direction dir) { _direction = dir; if(_scrollBarEnabled) { removeScrollBar(); initScrollBar(); } } ScrollView::Direction ScrollView::getDirection()const { return _direction; } void ScrollView::setBounceEnabled(bool enabled) { _bounceEnabled = enabled; } bool ScrollView::isBounceEnabled() const { return _bounceEnabled; } void ScrollView::setInertiaScrollEnabled(bool enabled) { _inertiaScrollEnabled = enabled; } bool ScrollView::isInertiaScrollEnabled() const { return _inertiaScrollEnabled; } void ScrollView::setScrollBarEnabled(bool enabled) { if(_scrollBarEnabled == enabled) { return; } if(_scrollBarEnabled) { removeScrollBar(); } _scrollBarEnabled = enabled; if(_scrollBarEnabled) { initScrollBar(); } } bool ScrollView::isScrollBarEnabled() const { return _scrollBarEnabled; } void ScrollView::setScrollBarPositionFromCorner(const Vec2& positionFromCorner) { if(_direction != Direction::HORIZONTAL) { setScrollBarPositionFromCornerForVertical(positionFromCorner); } if(_direction != Direction::VERTICAL) { setScrollBarPositionFromCornerForHorizontal(positionFromCorner); } } void ScrollView::setScrollBarPositionFromCornerForVertical(const Vec2& positionFromCorner) { CCASSERT(_scrollBarEnabled, "Scroll bar should be enabled!"); CCASSERT(_direction != Direction::HORIZONTAL, "Scroll view doesn't have a vertical scroll bar!"); _verticalScrollBar->setPositionFromCorner(positionFromCorner); } Vec2 ScrollView::getScrollBarPositionFromCornerForVertical() const { CCASSERT(_scrollBarEnabled, "Scroll bar should be enabled!"); CCASSERT(_direction != Direction::HORIZONTAL, "Scroll view doesn't have a vertical scroll bar!"); return _verticalScrollBar->getPositionFromCorner(); } void ScrollView::setScrollBarPositionFromCornerForHorizontal(const Vec2& positionFromCorner) { CCASSERT(_scrollBarEnabled, "Scroll bar should be enabled!"); CCASSERT(_direction != Direction::VERTICAL, "Scroll view doesn't have a horizontal scroll bar!"); _horizontalScrollBar->setPositionFromCorner(positionFromCorner); } Vec2 ScrollView::getScrollBarPositionFromCornerForHorizontal() const { CCASSERT(_scrollBarEnabled, "Scroll bar should be enabled!"); CCASSERT(_direction != Direction::VERTICAL, "Scroll view doesn't have a horizontal scroll bar!"); return _horizontalScrollBar->getPositionFromCorner(); } void ScrollView::setScrollBarWidth(float width) { CCASSERT(_scrollBarEnabled, "Scroll bar should be enabled!"); if(_verticalScrollBar != nullptr) { _verticalScrollBar->setWidth(width); } if(_horizontalScrollBar != nullptr) { _horizontalScrollBar->setWidth(width); } } float ScrollView::getScrollBarWidth() const { CCASSERT(_scrollBarEnabled, "Scroll bar should be enabled!"); if(_verticalScrollBar != nullptr) { return _verticalScrollBar->getWidth(); } else if(_horizontalScrollBar != nullptr) { return _horizontalScrollBar->getWidth(); } return 0; } void ScrollView::setScrollBarColor(const Color3B& color) { CCASSERT(_scrollBarEnabled, "Scroll bar should be enabled!"); if(_verticalScrollBar != nullptr) { _verticalScrollBar->setColor(color); } if(_horizontalScrollBar != nullptr) { _horizontalScrollBar->setColor(color); } } const Color3B& ScrollView::getScrollBarColor() const { CCASSERT(_scrollBarEnabled, "Scroll bar should be enabled!"); if(_verticalScrollBar != nullptr) { return _verticalScrollBar->getColor(); } else if(_horizontalScrollBar != nullptr) { return _horizontalScrollBar->getColor(); } return Color3B::WHITE; } void ScrollView::setScrollBarOpacity(GLubyte opacity) { CCASSERT(_scrollBarEnabled, "Scroll bar should be enabled!"); if(_verticalScrollBar != nullptr) { _verticalScrollBar->setOpacity(opacity); } if(_horizontalScrollBar != nullptr) { _horizontalScrollBar->setOpacity(opacity); } } GLubyte ScrollView::getScrollBarOpacity() const { CCASSERT(_scrollBarEnabled, "Scroll bar should be enabled!"); if(_verticalScrollBar != nullptr) { return _verticalScrollBar->getOpacity(); } else if(_horizontalScrollBar != nullptr) { return _horizontalScrollBar->getOpacity(); } return -1; } void ScrollView::setScrollBarAutoHideEnabled(bool autoHideEnabled) { CCASSERT(_scrollBarEnabled, "Scroll bar should be enabled!"); if(_verticalScrollBar != nullptr) { _verticalScrollBar->setAutoHideEnabled(autoHideEnabled); } if(_horizontalScrollBar != nullptr) { _horizontalScrollBar->setAutoHideEnabled(autoHideEnabled); } } bool ScrollView::isScrollBarAutoHideEnabled() const { CCASSERT(_scrollBarEnabled, "Scroll bar should be enabled!"); if(_verticalScrollBar != nullptr) { return _verticalScrollBar->isAutoHideEnabled(); } else if(_horizontalScrollBar != nullptr) { return _horizontalScrollBar->isAutoHideEnabled(); } return false; } void ScrollView::setScrollBarAutoHideTime(float autoHideTime) { CCASSERT(_scrollBarEnabled, "Scroll bar should be enabled!"); if(_verticalScrollBar != nullptr) { _verticalScrollBar->setAutoHideTime(autoHideTime); } if(_horizontalScrollBar != nullptr) { _horizontalScrollBar->setAutoHideTime(autoHideTime); } } float ScrollView::getScrollBarAutoHideTime() const { CCASSERT(_scrollBarEnabled, "Scroll bar should be enabled!"); if(_verticalScrollBar != nullptr) { return _verticalScrollBar->getAutoHideTime(); } else if(_horizontalScrollBar != nullptr) { return _horizontalScrollBar->getAutoHideTime(); } return 0; } Layout* ScrollView::getInnerContainer()const { return _innerContainer; } void ScrollView::setLayoutType(Type type) { _innerContainer->setLayoutType(type); } Layout::Type ScrollView::getLayoutType() const { return _innerContainer->getLayoutType(); } void ScrollView::doLayout() { if (!_doLayoutDirty) { return; } _doLayoutDirty = false; } std::string ScrollView::getDescription() const { return "ScrollView"; } Widget* ScrollView::createCloneInstance() { return ScrollView::create(); } void ScrollView::copyClonedWidgetChildren(Widget* model) { Layout::copyClonedWidgetChildren(model); } void ScrollView::copySpecialProperties(Widget *widget) { ScrollView* scrollView = dynamic_cast<ScrollView*>(widget); if (scrollView) { Layout::copySpecialProperties(widget); setDirection(scrollView->_direction); setInnerContainerPosition(scrollView->getInnerContainerPosition()); setInnerContainerSize(scrollView->getInnerContainerSize()); _topBoundary = scrollView->_topBoundary; _bottomBoundary = scrollView->_bottomBoundary; _leftBoundary = scrollView->_leftBoundary; _rightBoundary = scrollView->_rightBoundary; _bePressed = scrollView->_bePressed; _childFocusCancelOffsetInInch = scrollView->_childFocusCancelOffsetInInch; _touchMoveDisplacements = scrollView->_touchMoveDisplacements; _touchMoveTimeDeltas = scrollView->_touchMoveTimeDeltas; _touchMovePreviousTimestamp = scrollView->_touchMovePreviousTimestamp; _autoScrolling = scrollView->_autoScrolling; _autoScrollAttenuate = scrollView->_autoScrollAttenuate; _autoScrollStartPosition = scrollView->_autoScrollStartPosition; _autoScrollTargetDelta = scrollView->_autoScrollTargetDelta; _autoScrollTotalTime = scrollView->_autoScrollTotalTime; _autoScrollAccumulatedTime = scrollView->_autoScrollAccumulatedTime; _autoScrollCurrentlyOutOfBoundary = scrollView->_autoScrollCurrentlyOutOfBoundary; _autoScrollBraking = scrollView->_autoScrollBraking; _autoScrollBrakingStartPosition = scrollView->_autoScrollBrakingStartPosition; setInertiaScrollEnabled(scrollView->_inertiaScrollEnabled); setBounceEnabled(scrollView->_bounceEnabled); _scrollViewEventListener = scrollView->_scrollViewEventListener; _scrollViewEventSelector = scrollView->_scrollViewEventSelector; _eventCallback = scrollView->_eventCallback; _ccEventCallback = scrollView->_ccEventCallback; setScrollBarEnabled(scrollView->isScrollBarEnabled()); if(isScrollBarEnabled()) { if(_direction != Direction::HORIZONTAL) { setScrollBarPositionFromCornerForVertical(scrollView->getScrollBarPositionFromCornerForVertical()); } if(_direction != Direction::VERTICAL) { setScrollBarPositionFromCornerForHorizontal(scrollView->getScrollBarPositionFromCornerForHorizontal()); } setScrollBarWidth(scrollView->getScrollBarWidth()); setScrollBarColor(scrollView->getScrollBarColor()); setScrollBarAutoHideEnabled(scrollView->isScrollBarAutoHideEnabled()); setScrollBarAutoHideTime(scrollView->getScrollBarAutoHideTime()); } } } void ScrollView::initScrollBar() { if(_direction != Direction::HORIZONTAL && _verticalScrollBar == nullptr) { _verticalScrollBar = ScrollViewBar::create(this, Direction::VERTICAL); addProtectedChild(_verticalScrollBar, 2); } if(_direction != Direction::VERTICAL && _horizontalScrollBar == nullptr) { _horizontalScrollBar = ScrollViewBar::create(this, Direction::HORIZONTAL); addProtectedChild(_horizontalScrollBar, 2); } } void ScrollView::removeScrollBar() { if(_verticalScrollBar != nullptr) { removeProtectedChild(_verticalScrollBar); _verticalScrollBar = nullptr; } if(_horizontalScrollBar != nullptr) { removeProtectedChild(_horizontalScrollBar); _horizontalScrollBar = nullptr; } } Widget* ScrollView::findNextFocusedWidget(cocos2d::ui::Widget::FocusDirection direction, cocos2d::ui::Widget *current) { if (this->getLayoutType() == Layout::Type::VERTICAL || this->getLayoutType() == Layout::Type::HORIZONTAL) { return _innerContainer->findNextFocusedWidget(direction, current); } else { return Widget::findNextFocusedWidget(direction, current); } } } NS_CC_END
[ "752167062@qq.com" ]
752167062@qq.com
004153d45d8f9d8dddcc6483c0c6500f4b4ec89a
0bffb010cf7b5c178d889ad63ba0f2ec9ecacbb5
/Model/DnaData/PairDecorator.h
2b2b5377f05a437cc41a649800b4feca4ebdb51c
[]
no_license
yujiadong666/Dna-Analyzer
a6d19111e41f008ff17ded819a04f6768416c1ce
989a9226c71f04ffcb21e49162aef4378809e50d
refs/heads/master
2020-05-30T10:48:46.335651
2019-03-29T19:45:48
2019-03-29T19:45:48
null
0
0
null
null
null
null
UTF-8
C++
false
false
509
h
#ifndef DNAPROJECT_PAIRDECORATOR_H #define DNAPROJECT_PAIRDECORATOR_H #include "AbstractDna.h" #include "../SharedPtr.h" #include "Nucleotide.h" class PairDecorator : public AbstractDna { public: PairDecorator(SharedPtr<AbstractDna> dna) : m_dna(dna) { } size_t size() const { return m_dna->size(); } Nucleotide operator[](size_t index) const { return (*m_dna)[index].pair(); } private: SharedPtr<AbstractDna> m_dna; }; #endif //DNAPROJECT_PAIRDECORATOR_H
[ "hmada.kh@gmail.com" ]
hmada.kh@gmail.com
2c424c267bd0a6b7fd96b4db731d9a0ecb5b55ce
7b3899819c46272554c0ab2a584030ad1fc92e79
/antsupporter/src/antlib/include/Ant_Error.h
08291c1b3c434ce67f055fc38119acf0b57fca5c
[ "Apache-2.0" ]
permissive
summerquiet/NmeaAnalysisTool
63a303f5fd0b7cb76704b6f74908afe9a0547291
73d10e421a5face988444fb04d7d61d3f30333f7
refs/heads/master
2020-04-05T08:06:51.994203
2018-11-08T12:48:55
2018-11-08T12:48:55
156,701,514
1
1
null
null
null
null
UTF-8
C++
false
false
5,403
h
/** * Copyright @ 2014 - 2017 Personal * All Rights Reserved. */ #ifndef ANT_ERROR_H #define ANT_ERROR_H #ifndef __cplusplus # error ERROR: This file requires C++ compilation (use a .cpp suffix) #endif /*---------------------------------------------------------------------------*/ // Include files #ifndef ANT_NEWTYPESDEFINE_H # include "Ant_NewTypesDefine.h" #endif #ifndef ANT_OBJECT_H # include "Ant_Object.h" #endif #ifndef ANT_SYNCOBJ_H # include "Ant_SyncObj.h" #endif #ifndef ANT_ERRORDEF_H # include "Ant_ErrorDef.h" #endif /*---------------------------------------------------------------------------*/ // Namespace namespace antsupporter { /*---------------------------------------------------------------------------*/ // Class declare class Ant_ErrorCore; /** * @brief Write error information to memory class * */ class ANTLIB_API Ant_Error : public virtual Ant_Object { public: /** * @brief Start Ant_Error * * @param[IN] CHAR* szMemoryNameArray[] - szMemoryNameArray[0]: "ANT_ERR_RECOVERY" - szMemoryNameArray[1]: "ANT_ERR_DEBUG" - szMemoryNameArray[2]: "ANT_ERR_FATAL" * @param[IN] INT iArraySize: Array szMemoryNameArray's size * @param[IN] DWORD dwRecNum: Max record num for each error kind * @return VOID */ static VOID start(const XCHAR* szMemoryNameArray[], INT iArraySize, DWORD dwRecNum); /** * @brief Stop Ant_Error * * @param null * @return VOID */ static VOID stop(); /** * @brief Output error information to memory * * @param[IN] const CHAR* szFileInfo: File information * @param[IN] DWORD dwLineNo: Line no * @param[IN] LONG lErrCode: Error code * @param[IN] DWORD dwOption: Option data * @param[IN] AntErrorType eErrType: Error type - ANT_ERROR_ERROR - ANT_ERROR_DEBUG - ANT_ERROR_FATAL * @return VOID */ static VOID outputError(const CHAR* szFileInfo, DWORD dwLineNo, LONG lErrCode, DWORD dwOption, AntErrorType eErrType); /** * @brief Output error information to memory * * @param[IN] const CHAR* szFileInfo: File information * @param[IN] DWORD dwLineNo: Line no * @param[IN] LONG lErrCode: Error code * @param[IN] DWORD dwOption: Option data * @param[IN] AntErrorType eErrType: Error type - ANT_ERROR_ERROR - ANT_ERROR_DEBUG - ANT_ERROR_FATAL * @return VOID */ static VOID outputError(const WCHAR* szFileInfo, DWORD dwLineNo, LONG lErrCode, DWORD dwOption, AntErrorType eErrType); /** * @brief Get error information from memory * * @param[IN] AntErrorType eErrType: Error type - ANT_ERROR_ERROR - ANT_ERROR_DEBUG - ANT_ERROR_FATAL * @param[OUT] Ant_ErrorHeader& sErrHeader: Error data header * @param[OUT] Ant_ErrorRecord* pErrRecord: Error record data * @param[IN] DWORD dwRecNum: Get error record num * @return BOOL: Whether getting error information is successful? * @retval TRUE: Successful * @retval FALSE: Failure */ static BOOL getErrorInfo(AntErrorType eErrType, ErrorHeader& sErrHeader, ErrorRecord* pErrRecord, DWORD dwRecNum); /** * @brief Clear all error information from memory * * @param null * @return BOOL: Whether clear successfully error information from memory * @retval TRUE: Successful * @retval FALSE:Failure */ static BOOL clearAllErrorInfo(); /** * InitMemory * * @param eErrType * @param *pbyErrMem * @return static BOOL */ static BOOL initMemory(AntErrorType eErrType, BYTE* pbyErrMem); private: /** * constructor */ Ant_Error(); /** * destruct */ ~Ant_Error() {}; /** * Is Start */ static BOOL isStart(); private: static Ant_ErrorCore* s_pcErrorCore; // The pointer to error core static BOOL s_bStartFlag; // Ant_Error start flag static Ant_SyncObj s_cSyncOject; // Synchronization object }; /** * @brief Record recoverable errors macro * * If defined file info, it can automatically append the file info and line number.\n * <b>You should use this macro instead using Ant_Error::outputError function directly.</b> */ #define ErrorLog(ErrorCode, dwOption) Ant_Error::outputError(__FILE__, __LINE__, ErrorCode, dwOption, ANT_ERROR_ERROR) /** * @brief Record fatal errors macro * * If defined file info, it can automatically append the file info and line number.\n * <b>You should use this macro instead using Ant_Error::outputError function directly.</b> */ #define FatalLog(ErrorCode, dwOption) Ant_Error::outputError(__FILE__, __LINE__, ErrorCode, dwOption, ANT_ERROR_FATAL) /** * @brief Record debug logs macro * * If defined file info, it can automatically append the file info and line number.\n * <b>You should use this macro instead using Ant_Error::outputError function directly.</b> */ #define DebugLog(ErrorCode, dwOption) Ant_Error::outputError(__FILE__, __LINE__, ErrorCode, dwOption, ANT_ERROR_DEBUG) /*---------------------------------------------------------------------------*/ // Namespace } /*---------------------------------------------------------------------------*/ #endif // ANT_ERROR_H /*---------------------------------------------------------------------------*/ /* EOF */
[ "summerquiet@hotmail.com" ]
summerquiet@hotmail.com
a03a0a92ee21588f3d3cb744cbfbc76677ca7c0d
10f8237265db1392ed4c5bcc888f0cecb32a3e54
/src/cc/qcdio/qciobufferpool.cpp
73634f7f738a39274177e17e71a3295d4146b190
[ "Apache-2.0" ]
permissive
jomie/kfs
c88f18334f9a4cf2a3dc4ce80f196e52304bfe9f
8bce116e87f31b1e91f75c09e8aec19c1cafffd4
refs/heads/master
2021-01-16T20:56:49.943904
2012-05-03T22:12:07
2012-05-03T22:12:07
null
0
0
null
null
null
null
UTF-8
C++
false
false
10,416
cpp
//---------------------------------------------------------- -*- Mode: C++ -*- // $Id: qciobufferpool.cpp 1552 2011-01-06 22:21:54Z sriramr $ // // Created 2008/11/01 // // Copyright 2008,2009 Quantcast Corp. // // This file is part of Kosmos File System (KFS). // // 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 "qciobufferpool.h" #include "qcutils.h" #include "qcdebug.h" #include "qcstutils.h" #include "qcdllist.h" #include <sys/mman.h> #include <errno.h> #include <unistd.h> class QCIoBufferPool::Partition { public: Partition() : mAllocPtr(0), mAllocSize(0), mStartPtr(0), mFreeListPtr(0), mTotalCnt(0), mFreeCnt(0), mBufSizeShift(0) { List::Init(*this); } ~Partition() { Partition::Destroy(); } int Create( int inNumBuffers, int inBufferSize, bool inLockMemoryFlag) { int theBufSizeShift = -1; for (int i = inBufferSize; i > 0; i >>= 1, theBufSizeShift++) {} if (theBufSizeShift < 0 || inBufferSize != (1 << theBufSizeShift)) { return EINVAL; } Destroy(); mBufSizeShift = theBufSizeShift; if (inNumBuffers <= 0) { return 0; } mFreeListPtr = new BufferIndex[inNumBuffers + 1]; size_t const kPageSize = sysconf(_SC_PAGESIZE); size_t const kAlign = kPageSize > size_t(inBufferSize) ? kPageSize : size_t(inBufferSize); mAllocSize = size_t(inNumBuffers) * inBufferSize + kAlign; mAllocSize = (mAllocSize + kPageSize - 1) / kPageSize * kPageSize; mAllocPtr = mmap(0, mAllocSize, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANON, -1, 0); if (mAllocPtr == MAP_FAILED) { mAllocPtr = 0; return errno; } if (inLockMemoryFlag && mlock(mAllocPtr, mAllocSize) != 0) { Destroy(); return errno; } mStartPtr = 0; mStartPtr += (((char*)mAllocPtr - (char*)0) + kAlign - 1) / kAlign * kAlign; mTotalCnt = inNumBuffers; mFreeCnt = 0; *mFreeListPtr = 0; while (mFreeCnt < mTotalCnt) { mFreeListPtr[mFreeCnt] = mFreeCnt + 1; mFreeCnt++; } mFreeListPtr[mFreeCnt] = 0; return 0; } void Destroy() { delete [] mFreeListPtr; mFreeListPtr = 0; if (mAllocPtr && munmap(mAllocPtr, mAllocSize) != 0) { QCUtils::FatalError("munmap", errno); } mAllocPtr = 0; mAllocSize = 0; mStartPtr = 0; mTotalCnt = 0; mFreeCnt = 0; mBufSizeShift = 0; } char* Get() { if (mFreeCnt <= 0) { QCASSERT(*mFreeListPtr == 0 && mFreeCnt == 0); return 0; } const BufferIndex theIdx = *mFreeListPtr; QCASSERT(theIdx > 0); mFreeCnt--; *mFreeListPtr = mFreeListPtr[theIdx]; return (mStartPtr + ((theIdx - 1) << mBufSizeShift)); } bool Put( char* inPtr) { if (inPtr < mStartPtr) { return false; } const size_t theOffset = inPtr - mStartPtr; const size_t theIdx = (theOffset >> mBufSizeShift) + 1; if (theIdx > size_t(mTotalCnt)) { return false; } QCRTASSERT(mTotalCnt > mFreeCnt && (theOffset & ((size_t(1) << mBufSizeShift) - 1)) == 0); mFreeListPtr[theIdx] = *mFreeListPtr; *mFreeListPtr = BufferIndex(theIdx); mFreeCnt++; return true; } int GetFreeCount() const { return mFreeCnt; } int GetTotalCount() const { return mTotalCnt; } bool IsEmpty() const { return (mFreeCnt <= 0); } bool IsFull() const { return (mFreeCnt >= mTotalCnt); } typedef QCDLList<Partition, 0> List; private: friend class QCDLListOp<Partition, 0>; friend class QCDLListOp<const Partition, 0>; typedef unsigned int BufferIndex; void* mAllocPtr; size_t mAllocSize; char* mStartPtr; BufferIndex* mFreeListPtr; int mTotalCnt; int mFreeCnt; int mBufSizeShift; Partition* mPrevPtr[1]; Partition* mNextPtr[1]; }; typedef QCDLList<QCIoBufferPool::Client, 0> QCIoBufferPoolClientList; QCIoBufferPool::Client::Client() : mPoolPtr(0) { QCIoBufferPoolClientList::Init(*this); } bool QCIoBufferPool::Client::Unregister() { return (mPoolPtr && mPoolPtr->UnRegister(*this)); } QCIoBufferPool::QCIoBufferPool() : mMutex(), mBufferSize(0), mFreeCnt(0) { QCIoBufferPoolClientList::Init(mClientListPtr); Partition::List::Init(mPartitionListPtr); } QCIoBufferPool::~QCIoBufferPool() { QCStMutexLocker theLock(mMutex); QCIoBufferPool::Destroy(); while (! QCIoBufferPoolClientList::IsEmpty(mClientListPtr)) { Client& theClient = *QCIoBufferPoolClientList::PopBack(mClientListPtr); QCASSERT(theClient.mPoolPtr == this); theClient.mPoolPtr = 0; } } int QCIoBufferPool::Create( int inPartitionCount, int inPartitionBufferCount, int inBufferSize, bool inLockMemoryFlag) { QCStMutexLocker theLock(mMutex); Destroy(); mBufferSize = inBufferSize; int theErr = 0; for (int i = 0; i < inPartitionCount; i++) { Partition& thePart = *(new Partition()); Partition::List::PushBack(mPartitionListPtr, thePart); theErr = thePart.Create( inPartitionBufferCount, inBufferSize, inLockMemoryFlag); if (theErr) { Destroy(); break; } mFreeCnt += thePart.GetFreeCount(); } return theErr; } void QCIoBufferPool::Destroy() { QCStMutexLocker theLock(mMutex); while (! Partition::List::IsEmpty(mPartitionListPtr)) { delete Partition::List::PopBack(mPartitionListPtr); } mBufferSize = 0; mFreeCnt = 0; } char* QCIoBufferPool::Get( QCIoBufferPool::RefillReqId inRefillReqId /* = kRefillReqIdUndefined */) { QCStMutexLocker theLock(mMutex); if (mFreeCnt <= 0 && ! TryToRefill(inRefillReqId, 1)) { return 0; } QCASSERT(mFreeCnt >= 1); // Always start from the first partition, to try to keep next // partitions full, and be able to reclaim these if needed. Partition::List::Iterator theItr(mPartitionListPtr); Partition* thePtr; while ((thePtr = theItr.Next()) && thePtr->IsEmpty()) {} char* const theBufPtr = thePtr ? thePtr->Get() : 0; QCASSERT(theBufPtr && mFreeCnt > 0); mFreeCnt--; return theBufPtr; } bool QCIoBufferPool::Get( QCIoBufferPool::OutputIterator& inIt, int inBufCnt, QCIoBufferPool::RefillReqId inRefillReqId /* = kRefillReqIdUndefined */) { if (inBufCnt <= 0) { return true; } QCStMutexLocker theLock(mMutex); if (mFreeCnt < inBufCnt && ! TryToRefill(inRefillReqId, inBufCnt)) { return false; } QCASSERT(mFreeCnt >= inBufCnt); Partition::List::Iterator theItr(mPartitionListPtr); for (int i = 0; i < inBufCnt; ) { Partition* thePPtr; while ((thePPtr = theItr.Next()) && thePPtr->IsEmpty()) {} QCASSERT(thePPtr); for (char* theBPtr; i < inBufCnt && (theBPtr = thePPtr->Get()); i++) { mFreeCnt--; inIt.Put(theBPtr); } } return true; } void QCIoBufferPool::Put( char* inBufPtr) { if (! inBufPtr) { return; } QCStMutexLocker theLock(mMutex); PutSelf(inBufPtr); } void QCIoBufferPool::Put( QCIoBufferPool::InputIterator& inIt, int inBufCnt) { if (inBufCnt < 0) { return; } QCStMutexLocker theLock(mMutex); for (int i = 0; i < inBufCnt; i++) { char* const theBufPtr = inIt.Get(); if (! theBufPtr) { break; } PutSelf(theBufPtr); } } bool QCIoBufferPool::Register( QCIoBufferPool::Client& inClient) { QCStMutexLocker theLock(mMutex); if (inClient.mPoolPtr) { return (inClient.mPoolPtr == this); } QCIoBufferPoolClientList::PushBack(mClientListPtr, inClient); inClient.mPoolPtr = this; return true; } bool QCIoBufferPool::UnRegister( QCIoBufferPool::Client& inClient) { QCStMutexLocker theLock(mMutex); if (inClient.mPoolPtr != this) { return false; } QCIoBufferPoolClientList::Remove(mClientListPtr, inClient); inClient.mPoolPtr = 0; return true; } void QCIoBufferPool::PutSelf( char* inBufPtr) { QCASSERT(mMutex.IsOwned()); if (! inBufPtr) { return; } QCASSERT(((char*)mBufferSize - (char*)0) % mBufferSize == 0); Partition::List::Iterator theItr(mPartitionListPtr); Partition* thePtr; while ((thePtr = theItr.Next()) && ! thePtr->Put(inBufPtr)) {} QCRTASSERT(thePtr); mFreeCnt++; } bool QCIoBufferPool::TryToRefill( QCIoBufferPool::RefillReqId inReqId, int inBufCnt) { QCASSERT(mMutex.IsOwned()); if (inReqId == kRefillReqIdUndefined) { return false; } QCIoBufferPoolClientList::Iterator theItr(mClientListPtr); Client* thePtr; while ((thePtr = theItr.Next()) && mFreeCnt < inBufCnt) { QCASSERT(thePtr->mPoolPtr == this); { // QCStMutexUnlocker theUnlock(mMutex); thePtr->Release(inReqId, inBufCnt - mFreeCnt); } } return (mFreeCnt >= inBufCnt); } int QCIoBufferPool::GetFreeBufferCount() { QCStMutexLocker theLock(mMutex); return mFreeCnt; }
[ "sriramsrao@gmail.com" ]
sriramsrao@gmail.com
0aa912e0987649da198b3e438a3a6aaf8d7686e6
6b596da0708cc5b2c15f683e2c40593c6a622153
/C++/[1]Programmers/Level1/완주하지못한선수.cpp
bca7fc7e53210dba9a592bb0e86344dad77ae956
[]
no_license
yjw5344/Algorithm
eddecefd598f05f687f9f3e645c36d8924c241cb
6a5b26692d53fd9e87193ca74b55586e8dec9be8
refs/heads/master
2023-08-16T16:20:30.663979
2023-08-08T04:21:39
2023-08-08T04:21:39
140,273,687
6
5
null
null
null
null
UTF-8
C++
false
false
384
cpp
#include <string> #include <vector> #include <algorithm> #include <map> using namespace std; string solution(vector<string> participant, vector<string> completion) { string answer = ""; map<string, int> m; for (auto i : participant){ m[i]++; } for (auto i : completion){ m[i]--; } for (auto i : m){ if (i.second == 1){ answer = i.first; } } return answer; }
[ "yjw5344@hanmail.net" ]
yjw5344@hanmail.net
9c151b38265336b42598d692660d6460959f1d9c
2e4f485ec35f5c525f28eaee0a1005555cf61a21
/messagelist/src/core/widgets/autotests/configurefilterswidgettest.h
a3b8946d619799dbca3576995e3afb3f57488e61
[ "CC0-1.0", "BSD-3-Clause" ]
permissive
KDE/messagelib
8b0174c5e4c95344a828b8bf1c31ff52cc6663d7
ab4f300a88bb9414734296d0031cbb905a53999c
refs/heads/master
2023-08-30T23:50:09.096181
2023-08-28T02:16:39
2023-08-28T02:16:39
47,712,197
13
6
null
null
null
null
UTF-8
C++
false
false
405
h
/* SPDX-FileCopyrightText: 2021-2023 Laurent Montel <montel@kde.org> SPDX-License-Identifier: GPL-2.0-or-later */ #pragma once #include <QObject> class ConfigureFiltersWidgetTest : public QObject { Q_OBJECT public: explicit ConfigureFiltersWidgetTest(QObject *parent = nullptr); ~ConfigureFiltersWidgetTest() override = default; private Q_SLOTS: void shouldHaveDefaultValues(); };
[ "montel@kde.org" ]
montel@kde.org
73e031a98b88c6ed59ec3c959a5708449f6d42bb
09b984876e6c904726b6ebd95bb08fd741515faa
/C++/16_Polymorphism/Section16Challenge/I_Printable.h
a992d0551da07bb6468a07bcee540250154d27a6
[]
no_license
Kagan-benjamin/PracticeCPP
2ee46b0fee398de9a033a6b77f2ea6375baac850
d1c0cc245daa5e2d5e752bf780e8c5d019173b83
refs/heads/main
2023-02-28T13:16:44.347056
2021-02-04T20:06:29
2021-02-04T20:06:29
309,462,125
0
0
null
null
null
null
UTF-8
C++
false
false
466
h
#ifndef _I_PRINTABLE_H_ #define _I_PRINTABLE_H_ #include <iostream> class I_Printable { // We want the stream on the left side, and the object to be inserted on the right friend std::ostream &operator<<(std::ostream &os, const I_Printable &obj); // this cannot be done with a member function public: virtual ~I_Printable() = default; virtual void print(std::ostream &os) const = 0; // pure virtual function }; #endif // _I_PRINTABLE_H_
[ "kagan.benjamin@gmail.com" ]
kagan.benjamin@gmail.com
2916e8a307c52e06ab6580f9c9d0807b4ae51aec
08a8327ba667e3b425a891a772b2c93e609d8b81
/week_260/main.cpp
40549d6a0a2babbb907d1e8ead0436bf629a0685
[]
no_license
erban-xiao/hihocoder_study
72a66ff81c545e90fbc4632b5ccb712aa39c45cb
c38f249cc44850d057989b507d15d866ef73e6dc
refs/heads/master
2020-04-15T04:13:58.333218
2019-06-24T11:17:28
2019-06-24T11:17:28
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,399
cpp
#include <iostream> #include <memory.h> using namespace std; int main() { int row,column; long long maxSum; cin>>row>>column>>maxSum; int** rowArray = new int*[row]; for(int i=0;i<row;++i) { rowArray[i] = new int[column]; } for(int i=0;i<row;++i) { for(int j=0;j<column;++i) { cin>>rowArray[i][j]; } } int elementNum = 0; //确定左右边界,其中右边界不能小于左边界 for(int left=0;left<column;++left) { for(int right = left;right<column;++right) { long long *rowSum = new long long[row]; memset(rowSum,0,row*sizeof(int)); bool needContinue=false; //将二维转一维 for(int i=0;i<row;++i) { for(int j=left;j<=right;++j) { rowSum[i]+=rowArray[i][j]; } } long long tempMaxSum=0; int maxNum = 0; for(int i=0;i<row;++i) { for(int j=i;j<row;++j) { for(int a=i;a<=j;++a) { tempMaxSum+=rowSum[a]; if(tempMaxSum>maxSum) { } } } } } } }
[ "qianyou.liang@qualvision.cn" ]
qianyou.liang@qualvision.cn
468c5c4575c01e7359031fff8b7840e86894920b
98e966b65e6f1a72ebaff03b4fe4181e58b724fc
/widgetproblem.h
bb1f95a78bdb2404b9f1a89a4c340ce24af7ce51
[]
no_license
yangwanyang/QTTest
87b6df09caea10c98474f35d3a6a774245d52128
eae02167e149e6e98bafde3bc32dff1dd77cb103
refs/heads/master
2020-09-05T13:56:52.727307
2020-01-02T06:12:05
2020-01-02T06:12:05
220,125,989
0
0
null
null
null
null
UTF-8
C++
false
false
530
h
#ifndef WIDGETPROBLEM_H #define WIDGETPROBLEM_H #include <QWidget> namespace Ui { class CWidgetProblem; } class CWidgetProblem : public QWidget { Q_OBJECT public: explicit CWidgetProblem(QWidget *parent = nullptr); ~CWidgetProblem(); private: void FindMaxSubstring(QString qstrSrc, int &nMaxLength, QString &qstrSubstring); private slots: void on_listWidget_currentRowChanged(int currentRow); void on_btnMaxStringAction_clicked(); private: Ui::CWidgetProblem *ui; }; #endif // WIDGETPROBLEM_H
[ "1764117093@qq.com" ]
1764117093@qq.com
0cf45f5800ad076fe4862f4fd007af617f9f13e6
fdba1523527f669d5ce53405bc099baacc2c1a63
/app/TestClient/TestClient.cpp
090225b8b013acbe467fcd27a6e7b320fee1d6d9
[]
no_license
jratcliff63367/wsclient
91dbf5e40287dce9c83c47b97cf2cca8d48b859e
e2268886797417baf38a5d37782b74428d7e302b
refs/heads/master
2020-03-22T16:43:41.029778
2018-08-06T17:19:18
2018-08-06T17:19:18
140,346,801
0
0
null
null
null
null
UTF-8
C++
false
false
1,554
cpp
#ifdef _MSC_VER #endif #include "easywsclient.h" #include "InputLine.h" #include "wplatform.h" #include "TestSharedMemory.h" #include <stdio.h> #include <string.h> class ReceiveData : public easywsclient::WebSocketCallback { public: virtual void receiveMessage(const void *data, uint32_t dataLen, bool isAscii) override final { if (isAscii) { const char *cdata = (const char *)data; printf("Got message:"); for (uint32_t i = 0; i < dataLen; i++) { printf("%c", cdata[i]); } printf("\r\n"); } else { printf("Got binary data %d bytes long.\r\n", dataLen); } } }; int main(int argc,const char **argv) { // testSharedMemory(); const char *host = "localhost"; if (argc == 2) { host = argv[1]; } { easywsclient::socketStartup(); char connectString[512]; wplatform::stringFormat(connectString, sizeof(connectString), "ws://%s:3009", host); easywsclient::WebSocket *ws = easywsclient::WebSocket::create(connectString); if (ws) { printf("Type: 'bye' or 'quit' or 'exit' to close the client out.\r\n"); inputline::InputLine *inputLine = inputline::InputLine::create(); ReceiveData rd; bool keepRunning = true; while (keepRunning) { const char *data = inputLine->getInputLine(); if (data) { if (strcmp(data, "bye") == 0 || strcmp(data, "exit") == 0 || strcmp(data, "quit") == 0) { keepRunning = false; } ws->sendText(data); } ws->poll(&rd, 1); // poll the socket connection } delete ws; } easywsclient::socketShutdown(); } }
[ "jratcliff@nvidia.com" ]
jratcliff@nvidia.com
8bf50620bcf0d1fe713981ab4153bc6bc58fb7a5
da8153002b0bce9c1a17fa3d2c87bb3a3406ee7c
/lib-hal/src/circle/hardware.cpp
6f45ebd40698c18d9a909afbcd7158def37726df
[]
no_license
lulersoft/rpidmx512
93369a81ee5e298ca7daea86b5bbb67b79342609
bb4209a076e35a1858859b0dcbb91eccd7b523a6
refs/heads/master
2020-08-02T23:56:51.767899
2019-09-26T17:17:05
2019-09-26T17:17:05
211,554,034
1
0
null
2019-09-28T19:50:56
2019-09-28T19:50:55
null
UTF-8
C++
false
false
2,910
cpp
/** * @file hardware.h * */ /* Copyright (C) 2019 by Arjan van Vught mailto:info@raspberrypi-dmx.nl * * 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 <stdint.h> #include <assert.h> #include "circle/actled.h" #include "circle/bcmpropertytags.h" #include "circle/machineinfo.h" #include "circle/timer.h" #include "circle/util.h" #include "circle/version.h" #include "hardware.h" static const char s_CpuName[4][24] __attribute__((aligned(4))) = { "ARM1176JZF-S", "Cortex-A7", "Cortex-A53 (ARMv8)", "Unknown" }; static const uint8_t s_nCpuNameLength[4] __attribute__((aligned(4))) = {(uint8_t) 12, (uint8_t) 9, (uint8_t) 18, (uint8_t) 8}; const char s_Machine[] __attribute__((aligned(4))) = "arm"; #define MACHINE_LENGTH (sizeof(s_Machine)/sizeof(s_Machine[0]) - 1) Hardware *Hardware::s_pThis = 0; Hardware::Hardware(void) { s_pThis = this; } Hardware::~Hardware(void) { } const char* Hardware::GetMachine(uint8_t& nLength) { nLength = MACHINE_LENGTH; return s_Machine; } const char* Hardware::GetSysName(uint8_t& nLength) { nLength = sizeof(CIRCLE_NAME); return CIRCLE_NAME; } const char* Hardware::GetBoardName(uint8_t& nLength) { const char *p = CMachineInfo::Get()->GetMachineName(); nLength = strlen(p); return p; } const char* Hardware::GetCpuName(uint8_t& nLength) { TSoCType tSocType = CMachineInfo::Get()->GetSoCType(); nLength = s_nCpuNameLength[tSocType]; return s_CpuName[tSocType]; } const char* Hardware::GetSocName(uint8_t& nLength) { const char *p = CMachineInfo::Get()->GetSoCName(); nLength = strlen(p); return p; } float Hardware::GetCoreTemperature(void) { CBcmPropertyTags Tags; TPropertyTagTemperature TagTemperature; TagTemperature.nTemperatureId = TEMPERATURE_ID; if (!Tags.GetTag(PROPTAG_GET_TEMPERATURE, &TagTemperature, sizeof TagTemperature, 4)) { return -1; } return (float) TagTemperature.nValue / 1000; }
[ "Arjan.van.Vught@gmail.com" ]
Arjan.van.Vught@gmail.com
12485af0efdfa5c5df71283b47f4c516ff71f33d
cc1701cadaa3b0e138e30740f98d48264e2010bd
/chrome/browser/chromeos/arc/print_spooler/arc_print_spooler_bridge.h
1060bc2babd37882819de83b73834372da6504e2
[ "BSD-3-Clause" ]
permissive
dbuskariol-org/chromium
35d3d7a441009c6f8961227f1f7f7d4823a4207e
e91a999f13a0bda0aff594961762668196c4d22a
refs/heads/master
2023-05-03T10:50:11.717004
2020-06-26T03:33:12
2020-06-26T03:33:12
275,070,037
1
3
BSD-3-Clause
2020-06-26T04:04:30
2020-06-26T04:04:29
null
UTF-8
C++
false
false
2,297
h
// Copyright 2019 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_CHROMEOS_ARC_PRINT_SPOOLER_ARC_PRINT_SPOOLER_BRIDGE_H_ #define CHROME_BROWSER_CHROMEOS_ARC_PRINT_SPOOLER_ARC_PRINT_SPOOLER_BRIDGE_H_ #include "base/macros.h" #include "base/memory/weak_ptr.h" #include "components/arc/mojom/print_spooler.mojom.h" #include "components/keyed_service/core/keyed_service.h" #include "mojo/public/cpp/bindings/pending_remote.h" #include "mojo/public/cpp/system/platform_handle.h" class Profile; namespace content { class BrowserContext; } // namespace content namespace arc { class ArcBridgeService; // This class handles print related IPC from the ARC container and allows print // jobs to be displayed and managed in Chrome print preview instead of the // Android print UI. class ArcPrintSpoolerBridge : public KeyedService, public mojom::PrintSpoolerHost { public: // Returns singleton instance for the given BrowserContext, // or nullptr if the browser |context| is not allowed to use ARC. static ArcPrintSpoolerBridge* GetForBrowserContext( content::BrowserContext* context); ArcPrintSpoolerBridge(content::BrowserContext* context, ArcBridgeService* bridge_service); ~ArcPrintSpoolerBridge() override; // mojom::PrintSpoolerHost: void StartPrintInCustomTab( mojo::ScopedHandle scoped_handle, int32_t task_id, int32_t surface_id, int32_t top_margin, mojo::PendingRemote<mojom::PrintSessionInstance> instance, StartPrintInCustomTabCallback callback) override; void OnPrintDocumentSaved( int32_t task_id, int32_t surface_id, int32_t top_margin, mojo::PendingRemote<mojom::PrintSessionInstance> instance, StartPrintInCustomTabCallback callback, base::FilePath file_path); private: ArcBridgeService* const arc_bridge_service_; // Owned by ArcServiceManager. Profile* const profile_; base::WeakPtrFactory<ArcPrintSpoolerBridge> weak_ptr_factory_{this}; DISALLOW_COPY_AND_ASSIGN(ArcPrintSpoolerBridge); }; } // namespace arc #endif // CHROME_BROWSER_CHROMEOS_ARC_PRINT_SPOOLER_ARC_PRINT_SPOOLER_BRIDGE_H_
[ "commit-bot@chromium.org" ]
commit-bot@chromium.org
59455da0597dc8e3e228ce3029152807c9763876
814fd0bea5bc063a4e34ebdd0a5597c9ff67532b
/components/keyed_service/ios/browser_state_keyed_service_factory.cc
115569281ab70ffd11eeed4791b7ecf7d67e03a4
[ "BSD-3-Clause" ]
permissive
rzr/chromium-crosswalk
1b22208ff556d69c009ad292bc17dca3fe15c493
d391344809adf7b4f39764ac0e15c378169b805f
refs/heads/master
2021-01-21T09:11:07.316526
2015-02-16T11:52:21
2015-02-16T11:52:21
38,887,985
0
0
NOASSERTION
2019-08-07T21:59:20
2015-07-10T15:35:50
C++
UTF-8
C++
false
false
3,789
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 "components/keyed_service/ios/browser_state_keyed_service_factory.h" #include "base/logging.h" #include "components/keyed_service/core/keyed_service.h" #include "components/keyed_service/ios/browser_state_dependency_manager.h" #include "components/keyed_service/ios/browser_state_helper.h" #include "ios/web/public/browser_state.h" void BrowserStateKeyedServiceFactory::SetTestingFactory( web::BrowserState* context, TestingFactoryFunction testing_factory) { KeyedServiceFactory::SetTestingFactory( context, reinterpret_cast<KeyedServiceFactory::TestingFactoryFunction>( testing_factory)); } KeyedService* BrowserStateKeyedServiceFactory::SetTestingFactoryAndUse( web::BrowserState* context, TestingFactoryFunction testing_factory) { return KeyedServiceFactory::SetTestingFactoryAndUse( context, reinterpret_cast<KeyedServiceFactory::TestingFactoryFunction>( testing_factory)); } BrowserStateKeyedServiceFactory::BrowserStateKeyedServiceFactory( const char* name, /*BrowserState*/DependencyManager* manager) : KeyedServiceFactory(name, manager) { } BrowserStateKeyedServiceFactory::~BrowserStateKeyedServiceFactory() { } KeyedService* BrowserStateKeyedServiceFactory::GetServiceForBrowserState( web::BrowserState* context, bool create) { return KeyedServiceFactory::GetServiceForContext(context, create); } web::BrowserState* BrowserStateKeyedServiceFactory::GetBrowserStateToUse( web::BrowserState* context) const { DCHECK(CalledOnValidThread()); #ifndef NDEBUG AssertContextWasntDestroyed(context); #endif // Safe default for Incognito mode: no service. if (context->IsOffTheRecord()) return nullptr; return context; } bool BrowserStateKeyedServiceFactory::ServiceIsCreatedWithBrowserState() const { return KeyedServiceBaseFactory::ServiceIsCreatedWithContext(); } bool BrowserStateKeyedServiceFactory::ServiceIsNULLWhileTesting() const { return KeyedServiceBaseFactory::ServiceIsNULLWhileTesting(); } void BrowserStateKeyedServiceFactory::BrowserStateShutdown( web::BrowserState* context) { KeyedServiceFactory::ContextShutdown(context); } void BrowserStateKeyedServiceFactory::BrowserStateDestroyed( web::BrowserState* context) { KeyedServiceFactory::ContextDestroyed(context); } KeyedService* BrowserStateKeyedServiceFactory::BuildServiceInstanceFor( base::SupportsUserData* context) const { return BuildServiceInstanceFor(BrowserStateFromContext(context)); } bool BrowserStateKeyedServiceFactory::IsOffTheRecord( base::SupportsUserData* context) const { return BrowserStateFromContext(context)->IsOffTheRecord(); } user_prefs::PrefRegistrySyncable* BrowserStateKeyedServiceFactory::GetAssociatedPrefRegistry( base::SupportsUserData* context) const { NOTREACHED(); return nullptr; } base::SupportsUserData* BrowserStateKeyedServiceFactory::GetContextToUse( base::SupportsUserData* context) const { return GetBrowserStateToUse(BrowserStateFromContext(context)); } bool BrowserStateKeyedServiceFactory::ServiceIsCreatedWithContext() const { return ServiceIsCreatedWithBrowserState(); } void BrowserStateKeyedServiceFactory::ContextShutdown( base::SupportsUserData* context) { BrowserStateShutdown(BrowserStateFromContext(context)); } void BrowserStateKeyedServiceFactory::ContextDestroyed( base::SupportsUserData* context) { BrowserStateDestroyed(BrowserStateFromContext(context)); } void BrowserStateKeyedServiceFactory::RegisterPrefs( user_prefs::PrefRegistrySyncable* registry) { RegisterProfilePrefs(registry); }
[ "commit-bot@chromium.org" ]
commit-bot@chromium.org
bfafba40835dd53a483051e13803bb7a1ed1729e
cefeee1872d6fb67225101c50a9e3b6b41f5e6e1
/libcef/browser/osr/render_widget_host_view_osr.cc
c8b362b3ed78b52e8667747044421f054273fb90
[ "BSD-3-Clause" ]
permissive
maojun1998/cef
39d5d22dacbd0342e1ad338a0c161e60f8d8e047
58e1149c7127314072903d3d45b9ba8b9fd2fc92
refs/heads/master
2020-04-29T08:08:11.326892
2019-02-26T18:23:17
2019-03-07T22:09:54
null
0
0
null
null
null
null
UTF-8
C++
false
false
69,384
cc
// Copyright (c) 2014 The Chromium Embedded Framework Authors. // Portions copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "libcef/browser/osr/render_widget_host_view_osr.h" #include <stdint.h> #include <utility> #include "libcef/browser/browser_host_impl.h" #include "libcef/browser/osr/osr_util.h" #include "libcef/browser/osr/software_output_device_osr.h" #include "libcef/browser/thread_util.h" #include "base/callback_helpers.h" #include "base/command_line.h" #include "base/memory/ptr_util.h" #include "base/strings/utf_string_conversions.h" #include "base/task/post_task.h" #include "cc/base/switches.h" #include "components/viz/common/features.h" #include "components/viz/common/frame_sinks/copy_output_request.h" #include "components/viz/common/frame_sinks/delay_based_time_source.h" #include "components/viz/common/gl_helper.h" #include "components/viz/common/switches.h" #include "content/browser/bad_message.h" #include "content/browser/compositor/image_transport_factory.h" #include "content/browser/frame_host/render_widget_host_view_guest.h" #include "content/browser/renderer_host/cursor_manager.h" #include "content/browser/renderer_host/delegated_frame_host.h" #include "content/browser/renderer_host/dip_util.h" #include "content/browser/renderer_host/input/motion_event_web.h" #include "content/browser/renderer_host/input/synthetic_gesture_target_base.h" #include "content/browser/renderer_host/render_widget_host_delegate.h" #include "content/browser/renderer_host/render_widget_host_impl.h" #include "content/browser/renderer_host/render_widget_host_input_event_router.h" #include "content/common/content_switches_internal.h" #include "content/common/input_messages.h" #include "content/common/view_messages.h" #include "content/public/browser/browser_task_traits.h" #include "content/public/browser/browser_thread.h" #include "content/public/browser/context_factory.h" #include "content/public/browser/render_process_host.h" #include "content/public/browser/render_view_host.h" #include "content/public/common/content_switches.h" #include "media/base/video_frame.h" #include "ui/compositor/compositor_vsync_manager.h" #include "ui/events/blink/blink_event_util.h" #include "ui/events/gesture_detection/gesture_provider_config_helper.h" #include "ui/events/gesture_detection/motion_event.h" #include "ui/gfx/geometry/dip_util.h" #include "ui/gfx/geometry/size_conversions.h" namespace { // The maximum number of damage rects to cache for outstanding frame requests // (for OnAcceleratedPaint). const size_t kMaxDamageRects = 10; const float kDefaultScaleFactor = 1.0; // The maximum number of retry counts if frame capture fails. const int kFrameRetryLimit = 2; static content::ScreenInfo ScreenInfoFrom(const CefScreenInfo& src) { content::ScreenInfo screenInfo; screenInfo.device_scale_factor = src.device_scale_factor; screenInfo.depth = src.depth; screenInfo.depth_per_component = src.depth_per_component; screenInfo.is_monochrome = src.is_monochrome ? true : false; screenInfo.rect = gfx::Rect(src.rect.x, src.rect.y, src.rect.width, src.rect.height); screenInfo.available_rect = gfx::Rect(src.available_rect.x, src.available_rect.y, src.available_rect.width, src.available_rect.height); return screenInfo; } class CefCompositorFrameSinkClient : public viz::mojom::CompositorFrameSinkClient { public: CefCompositorFrameSinkClient(viz::mojom::CompositorFrameSinkClient* forward, CefRenderWidgetHostViewOSR* rwhv) : forward_(forward), render_widget_host_view_(rwhv) {} void DidReceiveCompositorFrameAck( const std::vector<viz::ReturnedResource>& resources) override { forward_->DidReceiveCompositorFrameAck(resources); } void OnBeginFrame(const viz::BeginFrameArgs& args, const base::flat_map<uint32_t, gfx::PresentationFeedback>& feedbacks) override { if (render_widget_host_view_) { render_widget_host_view_->OnPresentCompositorFrame(); } forward_->OnBeginFrame(args, feedbacks); } void OnBeginFramePausedChanged(bool paused) override { forward_->OnBeginFramePausedChanged(paused); } void ReclaimResources( const std::vector<viz::ReturnedResource>& resources) override { forward_->ReclaimResources(resources); } private: viz::mojom::CompositorFrameSinkClient* const forward_; CefRenderWidgetHostViewOSR* const render_widget_host_view_; }; #if !defined(OS_MACOSX) class CefDelegatedFrameHostClient : public content::DelegatedFrameHostClient { public: explicit CefDelegatedFrameHostClient(CefRenderWidgetHostViewOSR* view) : view_(view) {} ui::Layer* DelegatedFrameHostGetLayer() const override { return view_->GetRootLayer(); } bool DelegatedFrameHostIsVisible() const override { // Called indirectly from DelegatedFrameHost::WasShown. return view_->IsShowing(); } SkColor DelegatedFrameHostGetGutterColor() const override { // When making an element on the page fullscreen the element's background // may not match the page's, so use black as the gutter color to avoid // flashes of brighter colors during the transition. if (view_->render_widget_host()->delegate() && view_->render_widget_host()->delegate()->IsFullscreenForCurrentTab()) { return SK_ColorBLACK; } return *view_->GetBackgroundColor(); } void OnBeginFrame(base::TimeTicks frame_time) override { // TODO(cef): Maybe we can use this method in combination with // OnSetNeedsBeginFrames() instead of using CefBeginFrameTimer. // See https://codereview.chromium.org/1841083007. } void OnFrameTokenChanged(uint32_t frame_token) override { view_->render_widget_host()->DidProcessFrame(frame_token); } float GetDeviceScaleFactor() const override { return view_->GetDeviceScaleFactor(); } std::vector<viz::SurfaceId> CollectSurfaceIdsForEviction() override { return view_->render_widget_host()->CollectSurfaceIdsForEviction(); } void InvalidateLocalSurfaceIdOnEviction() override {} bool ShouldShowStaleContentOnEviction() override { return false; }; private: CefRenderWidgetHostViewOSR* const view_; DISALLOW_COPY_AND_ASSIGN(CefDelegatedFrameHostClient); }; #endif // !defined(OS_MACOSX) ui::GestureProvider::Config CreateGestureProviderConfig() { ui::GestureProvider::Config config = ui::GetGestureProviderConfig( ui::GestureProviderConfigType::CURRENT_PLATFORM); return config; } ui::LatencyInfo CreateLatencyInfo(const blink::WebInputEvent& event) { ui::LatencyInfo latency_info; // The latency number should only be added if the timestamp is valid. base::TimeTicks time = event.TimeStamp(); if (!time.is_null()) { latency_info.AddLatencyNumberWithTimestamp( ui::INPUT_EVENT_LATENCY_ORIGINAL_COMPONENT, time, 1); } return latency_info; } } // namespace // Used for managing copy requests when GPU compositing is enabled. Based on // RendererOverridesHandler::InnerSwapCompositorFrame and // DelegatedFrameHost::CopyFromCompositingSurface. class CefCopyFrameGenerator { public: CefCopyFrameGenerator(int frame_rate_threshold_us, CefRenderWidgetHostViewOSR* view) : view_(view), frame_retry_count_(0), next_frame_time_(base::TimeTicks::Now()), frame_duration_( base::TimeDelta::FromMicroseconds(frame_rate_threshold_us)), weak_ptr_factory_(this) {} void GenerateCopyFrame(const gfx::Rect& damage_rect) { if (!view_->render_widget_host()) return; // The below code is similar in functionality to // DelegatedFrameHost::CopyFromCompositingSurface but we reuse the same // SkBitmap in the GPU codepath and avoid scaling where possible. // Let the compositor copy into a new SkBitmap std::unique_ptr<viz::CopyOutputRequest> request = std::make_unique<viz::CopyOutputRequest>( viz::CopyOutputRequest::ResultFormat::RGBA_BITMAP, base::Bind( &CefCopyFrameGenerator::CopyFromCompositingSurfaceHasResult, weak_ptr_factory_.GetWeakPtr(), damage_rect)); request->set_area(gfx::Rect(view_->GetCompositorViewportPixelSize())); view_->GetRootLayer()->RequestCopyOfOutput(std::move(request)); } void set_frame_rate_threshold_us(int frame_rate_threshold_us) { frame_duration_ = base::TimeDelta::FromMicroseconds(frame_rate_threshold_us); } private: void CopyFromCompositingSurfaceHasResult( const gfx::Rect& damage_rect, std::unique_ptr<viz::CopyOutputResult> result) { if (result->IsEmpty() || result->size().IsEmpty() || !view_->render_widget_host()) { OnCopyFrameCaptureFailure(damage_rect); return; } std::unique_ptr<SkBitmap> source = std::make_unique<SkBitmap>(result->AsSkBitmap()); DCHECK(source); if (source) { std::shared_ptr<SkBitmap> bitmap(std::move(source)); base::TimeTicks now = base::TimeTicks::Now(); base::TimeDelta next_frame_in = next_frame_time_ - now; if (next_frame_in > frame_duration_ / 4) { next_frame_time_ += frame_duration_; base::PostDelayedTaskWithTraits( FROM_HERE, {content::BrowserThread::UI}, base::Bind(&CefCopyFrameGenerator::OnCopyFrameCaptureSuccess, weak_ptr_factory_.GetWeakPtr(), damage_rect, bitmap), next_frame_in); } else { next_frame_time_ = now + frame_duration_; OnCopyFrameCaptureSuccess(damage_rect, bitmap); } // Reset the frame retry count on successful frame generation. frame_retry_count_ = 0; } else { OnCopyFrameCaptureFailure(damage_rect); } } void OnCopyFrameCaptureFailure(const gfx::Rect& damage_rect) { const bool force_frame = (++frame_retry_count_ <= kFrameRetryLimit); if (force_frame) { // Retry with the same |damage_rect|. CEF_POST_TASK(CEF_UIT, base::Bind(&CefCopyFrameGenerator::GenerateCopyFrame, weak_ptr_factory_.GetWeakPtr(), damage_rect)); } } void OnCopyFrameCaptureSuccess(const gfx::Rect& damage_rect, std::shared_ptr<SkBitmap> bitmap) { view_->OnPaint(damage_rect, bitmap->width(), bitmap->height(), bitmap->getPixels()); } CefRenderWidgetHostViewOSR* const view_; int frame_retry_count_; base::TimeTicks next_frame_time_; base::TimeDelta frame_duration_; base::WeakPtrFactory<CefCopyFrameGenerator> weak_ptr_factory_; DISALLOW_COPY_AND_ASSIGN(CefCopyFrameGenerator); }; // Used to control the VSync rate in subprocesses when BeginFrame scheduling is // enabled. class CefBeginFrameTimer : public viz::DelayBasedTimeSourceClient { public: CefBeginFrameTimer(int frame_rate_threshold_us, const base::Closure& callback) : callback_(callback) { time_source_.reset(new viz::DelayBasedTimeSource( base::CreateSingleThreadTaskRunnerWithTraits( {content::BrowserThread::UI}) .get())); time_source_->SetTimebaseAndInterval( base::TimeTicks(), base::TimeDelta::FromMicroseconds(frame_rate_threshold_us)); time_source_->SetClient(this); } void SetActive(bool active) { time_source_->SetActive(active); } bool IsActive() const { return time_source_->Active(); } void SetFrameRateThresholdUs(int frame_rate_threshold_us) { time_source_->SetTimebaseAndInterval( base::TimeTicks::Now(), base::TimeDelta::FromMicroseconds(frame_rate_threshold_us)); } private: // cc::TimerSourceClient implementation. void OnTimerTick() override { callback_.Run(); } const base::Closure callback_; std::unique_ptr<viz::DelayBasedTimeSource> time_source_; DISALLOW_COPY_AND_ASSIGN(CefBeginFrameTimer); }; CefRenderWidgetHostViewOSR::CefRenderWidgetHostViewOSR( SkColor background_color, bool use_shared_texture, bool use_external_begin_frame, content::RenderWidgetHost* widget, CefRenderWidgetHostViewOSR* parent_host_view, bool is_guest_view_hack) : content::RenderWidgetHostViewBase(widget), background_color_(background_color), frame_rate_threshold_us_(0), #if !defined(OS_MACOSX) compositor_widget_(gfx::kNullAcceleratedWidget), #endif software_output_device_(NULL), hold_resize_(false), pending_resize_(false), render_widget_host_(content::RenderWidgetHostImpl::From(widget)), has_parent_(parent_host_view != NULL), parent_host_view_(parent_host_view), popup_host_view_(NULL), child_host_view_(NULL), is_showing_(!render_widget_host_->is_hidden()), is_destroyed_(false), pinch_zoom_enabled_(content::IsPinchToZoomEnabled()), is_scroll_offset_changed_pending_(false), mouse_wheel_phase_handler_(this), gesture_provider_(CreateGestureProviderConfig(), this), forward_touch_to_popup_(false), weak_ptr_factory_(this) { DCHECK(render_widget_host_); DCHECK(!render_widget_host_->GetView()); current_device_scale_factor_ = kDefaultScaleFactor; if (parent_host_view_) { browser_impl_ = parent_host_view_->browser_impl(); DCHECK(browser_impl_); } else if (content::RenderViewHost::From(render_widget_host_)) { // CefBrowserHostImpl might not be created at this time for popups. browser_impl_ = CefBrowserHostImpl::GetBrowserForHost( content::RenderViewHost::From(render_widget_host_)); } #if !defined(OS_MACOSX) local_surface_id_allocator_.GenerateId(); local_surface_id_allocation_ = local_surface_id_allocator_.GetCurrentLocalSurfaceIdAllocation(); delegated_frame_host_client_.reset(new CefDelegatedFrameHostClient(this)); // Matching the attributes from BrowserCompositorMac. delegated_frame_host_ = std::make_unique<content::DelegatedFrameHost>( AllocateFrameSinkId(is_guest_view_hack), delegated_frame_host_client_.get(), true /* should_register_frame_sink_id */); root_layer_.reset(new ui::Layer(ui::LAYER_SOLID_COLOR)); #endif PlatformCreateCompositorWidget(is_guest_view_hack); bool opaque = SkColorGetA(background_color_) == SK_AlphaOPAQUE; GetRootLayer()->SetFillsBoundsOpaquely(opaque); GetRootLayer()->SetColor(background_color_); external_begin_frame_enabled_ = use_external_begin_frame; #if !defined(OS_MACOSX) // On macOS the ui::Compositor is created/owned by the platform view. content::ImageTransportFactory* factory = content::ImageTransportFactory::GetInstance(); ui::ContextFactoryPrivate* context_factory_private = factory->GetContextFactoryPrivate(); // Matching the attributes from RecyclableCompositorMac. compositor_.reset(new ui::Compositor( context_factory_private->AllocateFrameSinkId(), content::GetContextFactory(), context_factory_private, base::ThreadTaskRunnerHandle::Get(), false /* enable_pixel_canvas */, use_external_begin_frame ? this : nullptr, use_external_begin_frame)); compositor_->SetAcceleratedWidget(compositor_widget_); // Tell the compositor to use shared textures if the client can handle // OnAcceleratedPaint. compositor_->EnableSharedTexture(use_shared_texture); compositor_->SetDelegate(this); compositor_->SetRootLayer(root_layer_.get()); #endif if (browser_impl_.get()) ResizeRootLayer(false); cursor_manager_.reset(new content::CursorManager(this)); // Do this last because it may result in a call to SetNeedsBeginFrames. render_widget_host_->SetView(this); if (GetTextInputManager()) GetTextInputManager()->AddObserver(this); if (render_widget_host_->delegate() && render_widget_host_->delegate()->GetInputEventRouter()) { render_widget_host_->delegate()->GetInputEventRouter()->AddFrameSinkIdOwner( GetFrameSinkId(), this); } } CefRenderWidgetHostViewOSR::~CefRenderWidgetHostViewOSR() { #if defined(OS_MACOSX) if (is_showing_) browser_compositor_->SetRenderWidgetHostIsHidden(true); #else // Marking the DelegatedFrameHost as removed from the window hierarchy is // necessary to remove all connections to its old ui::Compositor. if (is_showing_) delegated_frame_host_->WasHidden(); delegated_frame_host_->DetachFromCompositor(); #endif PlatformDestroyCompositorWidget(); if (copy_frame_generator_.get()) copy_frame_generator_.reset(NULL); #if !defined(OS_MACOSX) delegated_frame_host_.reset(NULL); compositor_.reset(NULL); root_layer_.reset(NULL); #endif DCHECK(parent_host_view_ == NULL); DCHECK(popup_host_view_ == NULL); DCHECK(child_host_view_ == NULL); DCHECK(guest_host_views_.empty()); if (text_input_manager_) text_input_manager_->RemoveObserver(this); } // Called for full-screen widgets. void CefRenderWidgetHostViewOSR::InitAsChild(gfx::NativeView parent_view) { DCHECK(parent_host_view_); DCHECK(browser_impl_); if (parent_host_view_->child_host_view_) { // Cancel the previous popup widget. parent_host_view_->child_host_view_->CancelWidget(); } parent_host_view_->set_child_host_view(this); // The parent view should not render while the full-screen view exists. parent_host_view_->Hide(); ResizeRootLayer(false); Show(); } void CefRenderWidgetHostViewOSR::SetSize(const gfx::Size& size) {} void CefRenderWidgetHostViewOSR::SetBounds(const gfx::Rect& rect) {} gfx::NativeView CefRenderWidgetHostViewOSR::GetNativeView() const { return gfx::NativeView(); } gfx::NativeViewAccessible CefRenderWidgetHostViewOSR::GetNativeViewAccessible() { return gfx::NativeViewAccessible(); } void CefRenderWidgetHostViewOSR::Focus() {} bool CefRenderWidgetHostViewOSR::HasFocus() const { return false; } bool CefRenderWidgetHostViewOSR::IsSurfaceAvailableForCopy() const { return GetDelegatedFrameHost()->CanCopyFromCompositingSurface(); } void CefRenderWidgetHostViewOSR::Show() { if (is_showing_) return; is_showing_ = true; #if defined(OS_MACOSX) browser_compositor_->SetRenderWidgetHostIsHidden(false); #else delegated_frame_host_->AttachToCompositor(compositor_.get()); delegated_frame_host_->WasShown( GetLocalSurfaceIdAllocation().local_surface_id(), GetRootLayer()->bounds().size(), false); #endif // Note that |render_widget_host_| will retrieve size parameters from the // DelegatedFrameHost, so it must have WasShown called after. if (render_widget_host_) render_widget_host_->WasShown(false); } void CefRenderWidgetHostViewOSR::Hide() { if (!is_showing_) return; if (browser_impl_.get()) browser_impl_->CancelContextMenu(); if (render_widget_host_) render_widget_host_->WasHidden(); #if defined(OS_MACOSX) browser_compositor_->SetRenderWidgetHostIsHidden(true); #else GetDelegatedFrameHost()->WasHidden(); GetDelegatedFrameHost()->DetachFromCompositor(); #endif is_showing_ = false; } bool CefRenderWidgetHostViewOSR::IsShowing() { return is_showing_; } void CefRenderWidgetHostViewOSR::EnsureSurfaceSynchronizedForWebTest() { ++latest_capture_sequence_number_; SynchronizeVisualProperties(); } gfx::Rect CefRenderWidgetHostViewOSR::GetViewBounds() const { if (IsPopupWidget()) return popup_position_; if (!browser_impl_.get()) return gfx::Rect(); CefRect rc; CefRefPtr<CefRenderHandler> handler = browser_impl_->GetClient()->GetRenderHandler(); CHECK(handler); handler->GetViewRect(browser_impl_.get(), rc); CHECK_GT(rc.width, 0); CHECK_GT(rc.height, 0); return gfx::Rect(rc.x, rc.y, rc.width, rc.height); } void CefRenderWidgetHostViewOSR::SetBackgroundColor(SkColor color) { // The renderer will feed its color back to us with the first CompositorFrame. // We short-cut here to show a sensible color before that happens. UpdateBackgroundColorFromRenderer(color); DCHECK(SkColorGetA(color) == SK_AlphaOPAQUE || SkColorGetA(color) == SK_AlphaTRANSPARENT); content::RenderWidgetHostViewBase::SetBackgroundColor(color); } base::Optional<SkColor> CefRenderWidgetHostViewOSR::GetBackgroundColor() const { return background_color_; } void CefRenderWidgetHostViewOSR::UpdateBackgroundColor() {} bool CefRenderWidgetHostViewOSR::LockMouse() { return false; } void CefRenderWidgetHostViewOSR::UnlockMouse() {} void CefRenderWidgetHostViewOSR::TakeFallbackContentFrom( content::RenderWidgetHostView* view) { DCHECK(!static_cast<RenderWidgetHostViewBase*>(view) ->IsRenderWidgetHostViewChildFrame()); DCHECK(!static_cast<RenderWidgetHostViewBase*>(view) ->IsRenderWidgetHostViewGuest()); CefRenderWidgetHostViewOSR* view_cef = static_cast<CefRenderWidgetHostViewOSR*>(view); SetBackgroundColor(view_cef->background_color_); if (GetDelegatedFrameHost() && view_cef->GetDelegatedFrameHost()) { GetDelegatedFrameHost()->TakeFallbackContentFrom( view_cef->GetDelegatedFrameHost()); } host()->GetContentRenderingTimeoutFrom(view_cef->host()); } void CefRenderWidgetHostViewOSR::DidCreateNewRendererCompositorFrameSink( viz::mojom::CompositorFrameSinkClient* renderer_compositor_frame_sink) { renderer_compositor_frame_sink_.reset( new CefCompositorFrameSinkClient(renderer_compositor_frame_sink, this)); if (GetDelegatedFrameHost()) { GetDelegatedFrameHost()->DidCreateNewRendererCompositorFrameSink( renderer_compositor_frame_sink_.get()); } } void CefRenderWidgetHostViewOSR::OnPresentCompositorFrame() { // Is Chromium rendering to a shared texture? void* shared_texture = nullptr; ui::Compositor* compositor = GetCompositor(); if (compositor) { shared_texture = compositor->GetSharedTexture(); } if (shared_texture) { CefRefPtr<CefRenderHandler> handler = browser_impl_->GetClient()->GetRenderHandler(); CHECK(handler); CefRenderHandler::RectList rcList; { // Find the corresponding damage rect. If there isn't one pass the entire // view size for a full redraw. base::AutoLock lock_scope(damage_rect_lock_); // TODO: in the future we need to correlate the presentation // notification with the sequence number from BeginFrame gfx::Rect damage; auto const i = damage_rects_.begin(); if (i != damage_rects_.end()) { damage = i->second; damage_rects_.erase(i); } else { damage = GetViewBounds(); } rcList.push_back( CefRect(damage.x(), damage.y(), damage.width(), damage.height())); } handler->OnAcceleratedPaint(browser_impl_.get(), IsPopupWidget() ? PET_POPUP : PET_VIEW, rcList, shared_texture); } } void CefRenderWidgetHostViewOSR::AddDamageRect(uint32_t sequence, const gfx::Rect& rect) { // Associate the given damage rect with the presentation token. // For OnAcceleratedPaint we'll lookup the corresponding damage area based on // the frame token which is passed back to OnPresentCompositorFrame. base::AutoLock lock_scope(damage_rect_lock_); // We assume our presentation_token is a counter. Since we're using an ordered // map we can enforce a max size and remove oldest from the front. Worst case, // if a damage rect isn't associated, we can simply pass the entire view size. while (damage_rects_.size() >= kMaxDamageRects) { damage_rects_.erase(damage_rects_.begin()); } damage_rects_[sequence] = rect; } void CefRenderWidgetHostViewOSR::SubmitCompositorFrame( const viz::LocalSurfaceId& local_surface_id, viz::CompositorFrame frame, base::Optional<viz::HitTestRegionList> hit_test_region_list) { TRACE_EVENT0("cef", "CefRenderWidgetHostViewOSR::OnSwapCompositorFrame"); // Update the frame rate. At this point we should have a valid connection back // to the Synthetic Frame Source, which is important so we can actually modify // the frame rate to something other than the default of 60Hz. if (sync_frame_rate_) { if (frame_rate_threshold_us_ != 0) { // TODO(cef): Figure out how to set the VSync interval. See issue #2517. } sync_frame_rate_ = false; } if (frame.metadata.root_scroll_offset != last_scroll_offset_) { last_scroll_offset_ = frame.metadata.root_scroll_offset; if (!is_scroll_offset_changed_pending_) { // Send the notification asnychronously. CEF_POST_TASK( CEF_UIT, base::Bind(&CefRenderWidgetHostViewOSR::OnScrollOffsetChanged, weak_ptr_factory_.GetWeakPtr())); } } if (!frame.render_pass_list.empty()) { if (software_output_device_) { if (!begin_frame_timer_.get()) { // If BeginFrame scheduling is enabled SoftwareOutputDevice activity // will be controlled via OnSetNeedsBeginFrames. Otherwise, activate // the SoftwareOutputDevice now (when the first frame is generated). software_output_device_->SetActive(true); } // The compositor will draw directly to the SoftwareOutputDevice which // then calls OnPaint. // We would normally call BrowserCompositorMac::SubmitCompositorFrame on // macOS, however it contains compositor resize logic that we don't want. // Consequently we instead call the SwapDelegatedFrame method directly. GetDelegatedFrameHost()->SubmitCompositorFrame( local_surface_id, std::move(frame), std::move(hit_test_region_list)); } else { ui::Compositor* compositor = GetCompositor(); if (!compositor) return; // Will be nullptr if we're not using shared textures. const void* shared_texture = compositor->GetSharedTexture(); // Determine the damage rectangle for the current frame. This is the // same calculation that SwapDelegatedFrame uses. viz::RenderPass* root_pass = frame.render_pass_list.back().get(); gfx::Size frame_size = root_pass->output_rect.size(); gfx::Rect damage_rect = gfx::ToEnclosingRect(gfx::RectF(root_pass->damage_rect)); damage_rect.Intersect(gfx::Rect(frame_size)); if (shared_texture) { AddDamageRect(frame.metadata.begin_frame_ack.sequence_number, damage_rect); } // We would normally call BrowserCompositorMac::SubmitCompositorFrame on // macOS, however it contains compositor resize logic that we don't // want. Consequently we instead call the SwapDelegatedFrame method // directly. GetDelegatedFrameHost()->SubmitCompositorFrame( local_surface_id, std::move(frame), std::move(hit_test_region_list)); if (!shared_texture) { if (!copy_frame_generator_.get()) { copy_frame_generator_.reset( new CefCopyFrameGenerator(frame_rate_threshold_us_, this)); } // Request a copy of the last compositor frame which will eventually // call OnPaint asynchronously. copy_frame_generator_->GenerateCopyFrame(damage_rect); } } } } void CefRenderWidgetHostViewOSR::ClearCompositorFrame() { // This method is only used for content rendering timeout when surface sync is // off. NOTREACHED(); } void CefRenderWidgetHostViewOSR::ResetFallbackToFirstNavigationSurface() { GetDelegatedFrameHost()->ResetFallbackToFirstNavigationSurface(); } void CefRenderWidgetHostViewOSR::InitAsPopup( content::RenderWidgetHostView* parent_host_view, const gfx::Rect& pos) { DCHECK_EQ(parent_host_view_, parent_host_view); DCHECK(browser_impl_); if (parent_host_view_->popup_host_view_) { // Cancel the previous popup widget. parent_host_view_->popup_host_view_->CancelWidget(); } parent_host_view_->set_popup_host_view(this); CefRefPtr<CefRenderHandler> handler = browser_impl_->GetClient()->GetRenderHandler(); CHECK(handler); handler->OnPopupShow(browser_impl_.get(), true); popup_position_ = pos; CefRect widget_pos(pos.x(), pos.y(), pos.width(), pos.height()); if (handler.get()) handler->OnPopupSize(browser_impl_.get(), widget_pos); ResizeRootLayer(false); Show(); } void CefRenderWidgetHostViewOSR::InitAsFullscreen( content::RenderWidgetHostView* reference_host_view) { NOTREACHED() << "Fullscreen widgets are not supported in OSR"; } // Called for the "platform view" created by WebContentsViewGuest and owned by // RenderWidgetHostViewGuest. void CefRenderWidgetHostViewOSR::InitAsGuest( content::RenderWidgetHostView* parent_host_view, content::RenderWidgetHostViewGuest* guest_view) { DCHECK_EQ(parent_host_view_, parent_host_view); DCHECK(browser_impl_); parent_host_view_->AddGuestHostView(this); parent_host_view_->RegisterGuestViewFrameSwappedCallback(guest_view); } void CefRenderWidgetHostViewOSR::UpdateCursor( const content::WebCursor& cursor) { TRACE_EVENT0("cef", "CefRenderWidgetHostViewOSR::UpdateCursor"); if (!browser_impl_.get()) return; CefRefPtr<CefRenderHandler> handler = browser_impl_->GetClient()->GetRenderHandler(); CHECK(handler); content::CursorInfo cursor_info; cursor.GetCursorInfo(&cursor_info); const cef_cursor_type_t cursor_type = static_cast<cef_cursor_type_t>(cursor_info.type); CefCursorInfo custom_cursor_info; if (cursor.IsCustom()) { custom_cursor_info.hotspot.x = cursor_info.hotspot.x(); custom_cursor_info.hotspot.y = cursor_info.hotspot.y(); custom_cursor_info.image_scale_factor = cursor_info.image_scale_factor; custom_cursor_info.buffer = cursor_info.custom_image.getPixels(); custom_cursor_info.size.width = cursor_info.custom_image.width(); custom_cursor_info.size.height = cursor_info.custom_image.height(); } #if defined(USE_AURA) content::WebCursor web_cursor = cursor; ui::PlatformCursor platform_cursor; if (web_cursor.IsCustom()) { ui::Cursor ui_cursor(ui::CursorType::kCustom); SkBitmap bitmap; gfx::Point hotspot; float scale_factor; web_cursor.CreateScaledBitmapAndHotspotFromCustomData(&bitmap, &hotspot, &scale_factor); ui_cursor.set_custom_bitmap(bitmap); ui_cursor.set_custom_hotspot(hotspot); ui_cursor.set_device_scale_factor(scale_factor); // |web_cursor| owns the resulting |platform_cursor|. platform_cursor = web_cursor.GetPlatformCursor(ui_cursor); } else { platform_cursor = GetPlatformCursor(cursor_info.type); } handler->OnCursorChange(browser_impl_.get(), platform_cursor, cursor_type, custom_cursor_info); #elif defined(OS_MACOSX) // |web_cursor| owns the resulting |native_cursor|. content::WebCursor web_cursor = cursor; CefCursorHandle native_cursor = web_cursor.GetNativeCursor(); handler->OnCursorChange(browser_impl_.get(), native_cursor, cursor_type, custom_cursor_info); #else // TODO(port): Implement this method to work on other platforms as part of // off-screen rendering support. NOTREACHED(); #endif } content::CursorManager* CefRenderWidgetHostViewOSR::GetCursorManager() { return cursor_manager_.get(); } void CefRenderWidgetHostViewOSR::SetIsLoading(bool is_loading) { if (!is_loading) return; // Make sure gesture detection is fresh. gesture_provider_.ResetDetection(); forward_touch_to_popup_ = false; } void CefRenderWidgetHostViewOSR::RenderProcessGone( base::TerminationStatus status, int error_code) { Destroy(); } void CefRenderWidgetHostViewOSR::Destroy() { if (!is_destroyed_) { is_destroyed_ = true; if (has_parent_) { CancelWidget(); } else { if (popup_host_view_) popup_host_view_->CancelWidget(); if (child_host_view_) child_host_view_->CancelWidget(); if (!guest_host_views_.empty()) { // Guest RWHVs will be destroyed when the associated RWHVGuest is // destroyed. This parent RWHV may be destroyed first, so disassociate // the guest RWHVs here without destroying them. for (auto guest_host_view : guest_host_views_) guest_host_view->parent_host_view_ = nullptr; guest_host_views_.clear(); } Hide(); } } delete this; } void CefRenderWidgetHostViewOSR::SetTooltipText( const base::string16& tooltip_text) { if (!browser_impl_.get()) return; CefString tooltip(tooltip_text); CefRefPtr<CefDisplayHandler> handler = browser_impl_->GetClient()->GetDisplayHandler(); if (handler.get()) { handler->OnTooltip(browser_impl_.get(), tooltip); } } gfx::Size CefRenderWidgetHostViewOSR::GetCompositorViewportPixelSize() const { return gfx::ScaleToCeiledSize(GetRequestedRendererSize(), current_device_scale_factor_); } uint32_t CefRenderWidgetHostViewOSR::GetCaptureSequenceNumber() const { return latest_capture_sequence_number_; } void CefRenderWidgetHostViewOSR::CopyFromSurface( const gfx::Rect& src_rect, const gfx::Size& output_size, base::OnceCallback<void(const SkBitmap&)> callback) { GetDelegatedFrameHost()->CopyFromCompositingSurface(src_rect, output_size, std::move(callback)); } void CefRenderWidgetHostViewOSR::GetScreenInfo( content::ScreenInfo* results) const { if (!browser_impl_.get()) return; CefScreenInfo screen_info(kDefaultScaleFactor, 0, 0, false, CefRect(), CefRect()); CefRefPtr<CefRenderHandler> handler = browser_impl_->client()->GetRenderHandler(); CHECK(handler); if (!handler->GetScreenInfo(browser_impl_.get(), screen_info) || screen_info.rect.width == 0 || screen_info.rect.height == 0 || screen_info.available_rect.width == 0 || screen_info.available_rect.height == 0) { // If a screen rectangle was not provided, try using the view rectangle // instead. Otherwise, popup views may be drawn incorrectly, or not at // all. CefRect screenRect; handler->GetViewRect(browser_impl_.get(), screenRect); CHECK_GT(screenRect.width, 0); CHECK_GT(screenRect.height, 0); if (screen_info.rect.width == 0 || screen_info.rect.height == 0) { screen_info.rect = screenRect; } if (screen_info.available_rect.width == 0 || screen_info.available_rect.height == 0) { screen_info.available_rect = screenRect; } } *results = ScreenInfoFrom(screen_info); } void CefRenderWidgetHostViewOSR::TransformPointToRootSurface( gfx::PointF* point) {} gfx::Rect CefRenderWidgetHostViewOSR::GetBoundsInRootWindow() { if (!browser_impl_.get()) return gfx::Rect(); CefRect rc; CefRefPtr<CefRenderHandler> handler = browser_impl_->client()->GetRenderHandler(); CHECK(handler); if (handler->GetRootScreenRect(browser_impl_.get(), rc)) return gfx::Rect(rc.x, rc.y, rc.width, rc.height); return GetViewBounds(); } viz::SurfaceId CefRenderWidgetHostViewOSR::GetCurrentSurfaceId() const { return GetDelegatedFrameHost() ? GetDelegatedFrameHost()->GetCurrentSurfaceId() : viz::SurfaceId(); } content::BrowserAccessibilityManager* CefRenderWidgetHostViewOSR::CreateBrowserAccessibilityManager( content::BrowserAccessibilityDelegate* delegate, bool for_root_frame) { return NULL; } void CefRenderWidgetHostViewOSR::ImeSetComposition( const CefString& text, const std::vector<CefCompositionUnderline>& underlines, const CefRange& replacement_range, const CefRange& selection_range) { TRACE_EVENT0("cef", "CefRenderWidgetHostViewOSR::ImeSetComposition"); if (!render_widget_host_) return; std::vector<ui::ImeTextSpan> web_underlines; web_underlines.reserve(underlines.size()); for (const CefCompositionUnderline& line : underlines) { web_underlines.push_back(ui::ImeTextSpan( ui::ImeTextSpan::Type::kComposition, line.range.from, line.range.to, line.thick ? ui::ImeTextSpan::Thickness::kThick : ui::ImeTextSpan::Thickness::kThin, line.background_color, line.color, std::vector<std::string>())); } gfx::Range range(replacement_range.from, replacement_range.to); // Start Monitoring for composition updates before we set. RequestImeCompositionUpdate(true); render_widget_host_->ImeSetComposition( text, web_underlines, range, selection_range.from, selection_range.to); } void CefRenderWidgetHostViewOSR::ImeCommitText( const CefString& text, const CefRange& replacement_range, int relative_cursor_pos) { TRACE_EVENT0("cef", "CefRenderWidgetHostViewOSR::ImeCommitText"); if (!render_widget_host_) return; gfx::Range range(replacement_range.from, replacement_range.to); render_widget_host_->ImeCommitText(text, std::vector<ui::ImeTextSpan>(), range, relative_cursor_pos); // Stop Monitoring for composition updates after we are done. RequestImeCompositionUpdate(false); } void CefRenderWidgetHostViewOSR::ImeFinishComposingText(bool keep_selection) { TRACE_EVENT0("cef", "CefRenderWidgetHostViewOSR::ImeFinishComposingText"); if (!render_widget_host_) return; render_widget_host_->ImeFinishComposingText(keep_selection); // Stop Monitoring for composition updates after we are done. RequestImeCompositionUpdate(false); } void CefRenderWidgetHostViewOSR::ImeCancelComposition() { TRACE_EVENT0("cef", "CefRenderWidgetHostViewOSR::ImeCancelComposition"); if (!render_widget_host_) return; render_widget_host_->ImeCancelComposition(); // Stop Monitoring for composition updates after we are done. RequestImeCompositionUpdate(false); } void CefRenderWidgetHostViewOSR::SelectionChanged(const base::string16& text, size_t offset, const gfx::Range& range) { RenderWidgetHostViewBase::SelectionChanged(text, offset, range); if (!browser_impl_.get()) return; CefString selected_text; if (!range.is_empty() && !text.empty()) { size_t pos = range.GetMin() - offset; size_t n = range.length(); if (pos + n <= text.length()) selected_text = text.substr(pos, n); } CefRefPtr<CefRenderHandler> handler = browser_impl_->GetClient()->GetRenderHandler(); CHECK(handler); CefRange cef_range(range.start(), range.end()); handler->OnTextSelectionChanged(browser_impl_.get(), selected_text, cef_range); } #if !defined(OS_MACOSX) const viz::LocalSurfaceIdAllocation& CefRenderWidgetHostViewOSR::GetLocalSurfaceIdAllocation() const { return local_surface_id_allocation_; } #endif const viz::FrameSinkId& CefRenderWidgetHostViewOSR::GetFrameSinkId() const { return GetDelegatedFrameHost()->frame_sink_id(); } viz::FrameSinkId CefRenderWidgetHostViewOSR::GetRootFrameSinkId() { #if defined(OS_MACOSX) return browser_compositor_->GetRootFrameSinkId(); #else return compositor_->frame_sink_id(); #endif } std::unique_ptr<content::SyntheticGestureTarget> CefRenderWidgetHostViewOSR::CreateSyntheticGestureTarget() { // TODO(cef): This is likely incorrect for OOPIF. // See https://crrev.com/5375957bb5. return std::unique_ptr<content::SyntheticGestureTarget>( new content::SyntheticGestureTargetBase(host())); } #if !defined(OS_MACOSX) viz::ScopedSurfaceIdAllocator CefRenderWidgetHostViewOSR::DidUpdateVisualProperties( const cc::RenderFrameMetadata& metadata) { base::OnceCallback<void()> allocation_task = base::BindOnce(&CefRenderWidgetHostViewOSR::SynchronizeVisualProperties, weak_ptr_factory_.GetWeakPtr()); return viz::ScopedSurfaceIdAllocator(std::move(allocation_task)); } #endif void CefRenderWidgetHostViewOSR::SetNeedsBeginFrames(bool enabled) { SetFrameRate(); if (!external_begin_frame_enabled_) { // Start/stop the timer that sends BeginFrame requests. begin_frame_timer_->SetActive(enabled); } if (software_output_device_) { // When the SoftwareOutputDevice is active it will call OnPaint for each // frame. If the SoftwareOutputDevice is deactivated while an invalidation // region is pending it will call OnPaint immediately. software_output_device_->SetActive(enabled); } } void CefRenderWidgetHostViewOSR::SetWantsAnimateOnlyBeginFrames() { if (GetDelegatedFrameHost()) { GetDelegatedFrameHost()->SetWantsAnimateOnlyBeginFrames(); } } bool CefRenderWidgetHostViewOSR::TransformPointToLocalCoordSpaceLegacy( const gfx::PointF& point, const viz::SurfaceId& original_surface, gfx::PointF* transformed_point) { // Transformations use physical pixels rather than DIP, so conversion // is necessary. gfx::PointF point_in_pixels = gfx::ConvertPointToPixel(current_device_scale_factor_, point); if (!GetDelegatedFrameHost()->TransformPointToLocalCoordSpaceLegacy( point_in_pixels, original_surface, transformed_point)) { return false; } *transformed_point = gfx::ConvertPointToDIP(current_device_scale_factor_, *transformed_point); return true; } bool CefRenderWidgetHostViewOSR::TransformPointToCoordSpaceForView( const gfx::PointF& point, RenderWidgetHostViewBase* target_view, gfx::PointF* transformed_point, viz::EventSource source) { if (target_view == this) { *transformed_point = point; return true; } return false; } void CefRenderWidgetHostViewOSR::DidNavigate() { // With surface synchronization enabled we need to force synchronization on // first navigation. ResizeRootLayer(true); #if defined(OS_MACOSX) browser_compositor_->DidNavigate(); #else if (delegated_frame_host_) delegated_frame_host_->DidNavigate(); #endif } void CefRenderWidgetHostViewOSR::OnDisplayDidFinishFrame( const viz::BeginFrameAck& /*ack*/) { // TODO(cef): is there something we need to track with this notification? } void CefRenderWidgetHostViewOSR::OnNeedsExternalBeginFrames( bool needs_begin_frames) { needs_external_begin_frames_ = needs_begin_frames; } std::unique_ptr<viz::SoftwareOutputDevice> CefRenderWidgetHostViewOSR::CreateSoftwareOutputDevice( ui::Compositor* compositor) { DCHECK_EQ(GetCompositor(), compositor); DCHECK(!copy_frame_generator_); DCHECK(!software_output_device_); software_output_device_ = new CefSoftwareOutputDeviceOSR( compositor, background_color_ == SK_ColorTRANSPARENT, base::Bind(&CefRenderWidgetHostViewOSR::OnPaint, weak_ptr_factory_.GetWeakPtr())); return base::WrapUnique(software_output_device_); } bool CefRenderWidgetHostViewOSR::InstallTransparency() { if (background_color_ == SK_ColorTRANSPARENT) { SetBackgroundColor(background_color_); #if defined(OS_MACOSX) browser_compositor_->SetBackgroundColor(background_color_); #else compositor_->SetBackgroundColor(background_color_); #endif return true; } return false; } void CefRenderWidgetHostViewOSR::SynchronizeVisualProperties() { if (hold_resize_) { if (!pending_resize_) pending_resize_ = true; return; } ResizeRootLayer(false); } void CefRenderWidgetHostViewOSR::OnScreenInfoChanged() { TRACE_EVENT0("cef", "CefRenderWidgetHostViewOSR::OnScreenInfoChanged"); if (!render_widget_host_) return; SynchronizeVisualProperties(); if (render_widget_host_->delegate()) render_widget_host_->delegate()->SendScreenRects(); else render_widget_host_->SendScreenRects(); #if defined(OS_MACOSX) // RenderWidgetHostImpl will query BrowserCompositorMac for the dimensions // to send to the renderer, so it is required that BrowserCompositorMac be // updated first. Only notify RenderWidgetHostImpl of the update if any // properties it will query have changed. if (UpdateNSViewAndDisplay()) render_widget_host_->NotifyScreenInfoChanged(); #else render_widget_host_->NotifyScreenInfoChanged(); #endif // We might want to change the cursor scale factor here as well - see the // cache for the current_cursor_, as passed by UpdateCursor from the // renderer in the rwhv_aura (current_cursor_.SetScaleFactor) // Notify the guest hosts if any. for (auto guest_host_view : guest_host_views_) guest_host_view->OnScreenInfoChanged(); } void CefRenderWidgetHostViewOSR::Invalidate( CefBrowserHost::PaintElementType type) { TRACE_EVENT1("cef", "CefRenderWidgetHostViewOSR::Invalidate", "type", type); if (!IsPopupWidget() && type == PET_POPUP) { if (popup_host_view_) popup_host_view_->Invalidate(type); return; } InvalidateInternal(gfx::Rect(GetCompositorViewportPixelSize())); } void CefRenderWidgetHostViewOSR::SendExternalBeginFrame() { DCHECK(external_begin_frame_enabled_); base::TimeTicks frame_time = base::TimeTicks::Now(); base::TimeTicks deadline = base::TimeTicks(); base::TimeDelta interval = viz::BeginFrameArgs::DefaultInterval(); viz::BeginFrameArgs begin_frame_args = viz::BeginFrameArgs::Create( BEGINFRAME_FROM_HERE, begin_frame_source_.source_id(), begin_frame_number_, frame_time, deadline, interval, viz::BeginFrameArgs::NORMAL); DCHECK(begin_frame_args.IsValid()); begin_frame_number_++; if (renderer_compositor_frame_sink_) { GetCompositor()->context_factory_private()->IssueExternalBeginFrame( GetCompositor(), begin_frame_args); renderer_compositor_frame_sink_->OnBeginFrame(begin_frame_args, {}); } if (!IsPopupWidget() && popup_host_view_) { popup_host_view_->SendExternalBeginFrame(); } } void CefRenderWidgetHostViewOSR::SendKeyEvent( const content::NativeWebKeyboardEvent& event) { TRACE_EVENT0("cef", "CefRenderWidgetHostViewOSR::SendKeyEvent"); if (render_widget_host_ && render_widget_host_->GetView()) { // Direct routing requires that events go directly to the View. render_widget_host_->ForwardKeyboardEventWithLatencyInfo( event, ui::LatencyInfo(event.GetType() == blink::WebInputEvent::kChar || event.GetType() == blink::WebInputEvent::kRawKeyDown ? ui::SourceEventType::KEY_PRESS : ui::SourceEventType::OTHER)); } } void CefRenderWidgetHostViewOSR::SendMouseEvent( const blink::WebMouseEvent& event) { TRACE_EVENT0("cef", "CefRenderWidgetHostViewOSR::SendMouseEvent"); if (!IsPopupWidget()) { if (browser_impl_.get() && event.GetType() == blink::WebMouseEvent::kMouseDown) { browser_impl_->CancelContextMenu(); } if (popup_host_view_) { if (popup_host_view_->popup_position_.Contains( event.PositionInWidget().x, event.PositionInWidget().y)) { blink::WebMouseEvent popup_event(event); popup_event.SetPositionInWidget( event.PositionInWidget().x - popup_host_view_->popup_position_.x(), event.PositionInWidget().y - popup_host_view_->popup_position_.y()); popup_event.SetPositionInScreen(popup_event.PositionInWidget().x, popup_event.PositionInWidget().y); popup_host_view_->SendMouseEvent(popup_event); return; } } else if (!guest_host_views_.empty()) { for (auto guest_host_view : guest_host_views_) { if (!guest_host_view->render_widget_host_ || !guest_host_view->render_widget_host_->GetView()) { continue; } const gfx::Rect& guest_bounds = guest_host_view->render_widget_host_->GetView()->GetViewBounds(); if (guest_bounds.Contains(event.PositionInWidget().x, event.PositionInWidget().y)) { blink::WebMouseEvent guest_event(event); guest_event.SetPositionInWidget( event.PositionInWidget().x - guest_bounds.x(), event.PositionInWidget().y - guest_bounds.y()); guest_event.SetPositionInScreen(guest_event.PositionInWidget().x, guest_event.PositionInWidget().y); guest_host_view->SendMouseEvent(guest_event); return; } } } } if (render_widget_host_ && render_widget_host_->GetView()) { // Direct routing requires that mouse events go directly to the View. render_widget_host_->GetView()->ProcessMouseEvent( event, ui::LatencyInfo(ui::SourceEventType::OTHER)); } } void CefRenderWidgetHostViewOSR::SendMouseWheelEvent( const blink::WebMouseWheelEvent& event) { TRACE_EVENT0("cef", "CefRenderWidgetHostViewOSR::SendMouseWheelEvent"); blink::WebMouseWheelEvent mouse_wheel_event(event); mouse_wheel_phase_handler_.SendWheelEndForTouchpadScrollingIfNeeded(false); mouse_wheel_phase_handler_.AddPhaseIfNeededAndScheduleEndEvent( mouse_wheel_event, false); if (!IsPopupWidget()) { if (browser_impl_.get()) browser_impl_->CancelContextMenu(); if (popup_host_view_) { if (popup_host_view_->popup_position_.Contains( mouse_wheel_event.PositionInWidget().x, mouse_wheel_event.PositionInWidget().y)) { blink::WebMouseWheelEvent popup_mouse_wheel_event(mouse_wheel_event); popup_mouse_wheel_event.SetPositionInWidget( mouse_wheel_event.PositionInWidget().x - popup_host_view_->popup_position_.x(), mouse_wheel_event.PositionInWidget().y - popup_host_view_->popup_position_.y()); popup_mouse_wheel_event.SetPositionInScreen( popup_mouse_wheel_event.PositionInWidget().x, popup_mouse_wheel_event.PositionInWidget().y); popup_host_view_->SendMouseWheelEvent(popup_mouse_wheel_event); return; } else { // Scrolling outside of the popup widget so destroy it. // Execute asynchronously to avoid deleting the widget from inside // some other callback. CEF_POST_TASK( CEF_UIT, base::Bind(&CefRenderWidgetHostViewOSR::CancelWidget, popup_host_view_->weak_ptr_factory_.GetWeakPtr())); } } else if (!guest_host_views_.empty()) { for (auto guest_host_view : guest_host_views_) { if (!guest_host_view->render_widget_host_ || !guest_host_view->render_widget_host_->GetView()) { continue; } const gfx::Rect& guest_bounds = guest_host_view->render_widget_host_->GetView()->GetViewBounds(); if (guest_bounds.Contains(mouse_wheel_event.PositionInWidget().x, mouse_wheel_event.PositionInWidget().y)) { blink::WebMouseWheelEvent guest_mouse_wheel_event(mouse_wheel_event); guest_mouse_wheel_event.SetPositionInWidget( mouse_wheel_event.PositionInWidget().x - guest_bounds.x(), mouse_wheel_event.PositionInWidget().y - guest_bounds.y()); guest_mouse_wheel_event.SetPositionInScreen( guest_mouse_wheel_event.PositionInWidget().x, guest_mouse_wheel_event.PositionInWidget().y); guest_host_view->SendMouseWheelEvent(guest_mouse_wheel_event); return; } } } } if (render_widget_host_ && render_widget_host_->GetView()) { // Direct routing requires that mouse events go directly to the View. render_widget_host_->GetView()->ProcessMouseWheelEvent( mouse_wheel_event, ui::LatencyInfo(ui::SourceEventType::WHEEL)); } } void CefRenderWidgetHostViewOSR::SendTouchEvent(const CefTouchEvent& event) { TRACE_EVENT0("cef", "CefRenderWidgetHostViewOSR::SendTouchEvent"); if (!IsPopupWidget() && popup_host_view_) { if (!forward_touch_to_popup_ && event.type == CEF_TET_PRESSED && pointer_state_.GetPointerCount() == 0) { forward_touch_to_popup_ = popup_host_view_->popup_position_.Contains(event.x, event.y); } if (forward_touch_to_popup_) { CefTouchEvent popup_event(event); popup_event.x -= popup_host_view_->popup_position_.x(); popup_event.y -= popup_host_view_->popup_position_.y(); popup_host_view_->SendTouchEvent(popup_event); return; } } // Update the touch event first. if (!pointer_state_.OnTouch(event)) return; ui::FilteredGestureProvider::TouchHandlingResult result = gesture_provider_.OnTouchEvent(pointer_state_); blink::WebTouchEvent touch_event = ui::CreateWebTouchEventFromMotionEvent( pointer_state_, result.moved_beyond_slop_region, false); pointer_state_.CleanupRemovedTouchPoints(event); // Set unchanged touch point to StateStationary for touchmove and // touchcancel to make sure only send one ack per WebTouchEvent. if (!result.succeeded) pointer_state_.MarkUnchangedTouchPointsAsStationary(&touch_event, event); if (!render_widget_host_) return; ui::LatencyInfo latency_info = CreateLatencyInfo(touch_event); if (ShouldRouteEvents()) { render_widget_host_->delegate()->GetInputEventRouter()->RouteTouchEvent( this, &touch_event, latency_info); } else { render_widget_host_->ForwardTouchEventWithLatencyInfo(touch_event, latency_info); } bool touch_end = touch_event.GetType() == blink::WebInputEvent::kTouchEnd || touch_event.GetType() == blink::WebInputEvent::kTouchCancel; if (touch_end && IsPopupWidget() && parent_host_view_ && parent_host_view_->popup_host_view_ == this) { parent_host_view_->forward_touch_to_popup_ = false; } } bool CefRenderWidgetHostViewOSR::ShouldRouteEvents() const { if (!render_widget_host_->delegate()) return false; // Do not route events that are currently targeted to page popups such as // <select> element drop-downs, since these cannot contain cross-process // frames. if (!render_widget_host_->delegate()->IsWidgetForMainFrame( render_widget_host_)) { return false; } return !!render_widget_host_->delegate()->GetInputEventRouter(); } void CefRenderWidgetHostViewOSR::SendFocusEvent(bool focus) { if (!render_widget_host_) return; content::RenderWidgetHostImpl* widget = content::RenderWidgetHostImpl::From(render_widget_host_); if (focus) { widget->GotFocus(); widget->SetActive(true); } else { if (browser_impl_.get()) browser_impl_->CancelContextMenu(); widget->SetActive(false); widget->LostFocus(); } } void CefRenderWidgetHostViewOSR::OnUpdateTextInputStateCalled( content::TextInputManager* text_input_manager, content::RenderWidgetHostViewBase* updated_view, bool did_update_state) { const content::TextInputState* state = text_input_manager->GetTextInputState(); if (state && !state->show_ime_if_needed) return; CefRenderHandler::TextInputMode mode = CEF_TEXT_INPUT_MODE_NONE; if (state && state->type != ui::TEXT_INPUT_TYPE_NONE) { static_assert( static_cast<int>(CEF_TEXT_INPUT_MODE_MAX) == static_cast<int>(ui::TEXT_INPUT_MODE_MAX), "Enum values in cef_text_input_mode_t must match ui::TextInputMode"); mode = static_cast<CefRenderHandler::TextInputMode>(state->mode); } CefRefPtr<CefRenderHandler> handler = browser_impl_->GetClient()->GetRenderHandler(); CHECK(handler); handler->OnVirtualKeyboardRequested(browser_impl_->GetBrowser(), mode); } void CefRenderWidgetHostViewOSR::ProcessAckedTouchEvent( const content::TouchEventWithLatencyInfo& touch, content::InputEventAckState ack_result) { const bool event_consumed = ack_result == content::INPUT_EVENT_ACK_STATE_CONSUMED; gesture_provider_.OnTouchEventAck(touch.event.unique_touch_event_id, event_consumed, false); } void CefRenderWidgetHostViewOSR::OnGestureEvent( const ui::GestureEventData& gesture) { if ((gesture.type() == ui::ET_GESTURE_PINCH_BEGIN || gesture.type() == ui::ET_GESTURE_PINCH_UPDATE || gesture.type() == ui::ET_GESTURE_PINCH_END) && !pinch_zoom_enabled_) { return; } blink::WebGestureEvent web_event = ui::CreateWebGestureEventFromGestureEventData(gesture); // without this check, forwarding gestures does not work! if (web_event.GetType() == blink::WebInputEvent::kUndefined) return; ui::LatencyInfo latency_info = CreateLatencyInfo(web_event); if (ShouldRouteEvents()) { render_widget_host_->delegate()->GetInputEventRouter()->RouteGestureEvent( this, &web_event, latency_info); } else { render_widget_host_->ForwardGestureEventWithLatencyInfo(web_event, latency_info); } } void CefRenderWidgetHostViewOSR::UpdateFrameRate() { frame_rate_threshold_us_ = 0; SetFrameRate(); // Notify the guest hosts if any. for (auto guest_host_view : guest_host_views_) guest_host_view->UpdateFrameRate(); } void CefRenderWidgetHostViewOSR::HoldResize() { if (!hold_resize_) hold_resize_ = true; } void CefRenderWidgetHostViewOSR::ReleaseResize() { if (!hold_resize_) return; hold_resize_ = false; if (pending_resize_) { pending_resize_ = false; CEF_POST_TASK( CEF_UIT, base::Bind(&CefRenderWidgetHostViewOSR::SynchronizeVisualProperties, weak_ptr_factory_.GetWeakPtr())); } } void CefRenderWidgetHostViewOSR::OnPaint(const gfx::Rect& damage_rect, int bitmap_width, int bitmap_height, void* bitmap_pixels) { TRACE_EVENT0("cef", "CefRenderWidgetHostViewOSR::OnPaint"); CefRefPtr<CefRenderHandler> handler = browser_impl_->client()->GetRenderHandler(); CHECK(handler); // Don't execute SynchronizeVisualProperties while the OnPaint callback is // pending. HoldResize(); gfx::Rect rect_in_bitmap(0, 0, bitmap_width, bitmap_height); rect_in_bitmap.Intersect(damage_rect); CefRenderHandler::RectList rcList; rcList.push_back(CefRect(rect_in_bitmap.x(), rect_in_bitmap.y(), rect_in_bitmap.width(), rect_in_bitmap.height())); handler->OnPaint(browser_impl_.get(), IsPopupWidget() ? PET_POPUP : PET_VIEW, rcList, bitmap_pixels, bitmap_width, bitmap_height); ReleaseResize(); } #if !defined(OS_MACOSX) ui::Compositor* CefRenderWidgetHostViewOSR::GetCompositor() const { return compositor_.get(); } ui::Layer* CefRenderWidgetHostViewOSR::GetRootLayer() const { return root_layer_.get(); } content::DelegatedFrameHost* CefRenderWidgetHostViewOSR::GetDelegatedFrameHost() const { return delegated_frame_host_.get(); } #endif // !defined(OS_MACOSX) void CefRenderWidgetHostViewOSR::SetFrameRate() { CefRefPtr<CefBrowserHostImpl> browser; if (parent_host_view_) { // Use the same frame rate as the embedding browser. browser = parent_host_view_->browser_impl_; } else { browser = browser_impl_; } CHECK(browser); // Only set the frame rate one time. if (frame_rate_threshold_us_ != 0) return; ui::Compositor* compositor = GetCompositor(); int frame_rate; if (compositor && compositor->shared_texture_enabled()) { // No upper-bound when using OnAcceleratedPaint. frame_rate = browser->settings().windowless_frame_rate; if (frame_rate <= 0) { frame_rate = 1; } sync_frame_rate_ = true; } else { frame_rate = osr_util::ClampFrameRate(browser->settings().windowless_frame_rate); } frame_rate_threshold_us_ = 1000000 / frame_rate; if (compositor) { // TODO(cef): Figure out how to set the VSync interval. See issue #2517. } if (copy_frame_generator_.get()) { copy_frame_generator_->set_frame_rate_threshold_us( frame_rate_threshold_us_); } if (!external_begin_frame_enabled_) { if (begin_frame_timer_.get()) { begin_frame_timer_->SetFrameRateThresholdUs(frame_rate_threshold_us_); } else { begin_frame_timer_.reset(new CefBeginFrameTimer( frame_rate_threshold_us_, base::Bind(&CefRenderWidgetHostViewOSR::OnBeginFrameTimerTick, weak_ptr_factory_.GetWeakPtr()))); } } } void CefRenderWidgetHostViewOSR::SetDeviceScaleFactor() { float new_scale_factor = kDefaultScaleFactor; if (browser_impl_.get()) { CefScreenInfo screen_info(kDefaultScaleFactor, 0, 0, false, CefRect(), CefRect()); CefRefPtr<CefRenderHandler> handler = browser_impl_->client()->GetRenderHandler(); CHECK(handler); if (handler->GetScreenInfo(browser_impl_.get(), screen_info)) { new_scale_factor = screen_info.device_scale_factor; } } current_device_scale_factor_ = new_scale_factor; // Notify the guest hosts if any. for (auto guest_host_view : guest_host_views_) { content::RenderWidgetHostImpl* rwhi = guest_host_view->render_widget_host(); if (!rwhi) continue; if (rwhi->GetView()) rwhi->GetView()->set_current_device_scale_factor(new_scale_factor); } } void CefRenderWidgetHostViewOSR::ResizeRootLayer(bool force) { SetFrameRate(); const float orgScaleFactor = current_device_scale_factor_; SetDeviceScaleFactor(); const bool scaleFactorDidChange = (orgScaleFactor != current_device_scale_factor_); gfx::Size size; if (!IsPopupWidget()) size = GetViewBounds().size(); else size = popup_position_.size(); if (!force && !scaleFactorDidChange && size == GetRootLayer()->bounds().size()) { return; } GetRootLayer()->SetBounds(gfx::Rect(size)); #if defined(OS_MACOSX) bool resized = UpdateNSViewAndDisplay(); #else const gfx::Size& size_in_pixels = gfx::ConvertSizeToPixel(current_device_scale_factor_, size); local_surface_id_allocator_.GenerateId(); local_surface_id_allocation_ = local_surface_id_allocator_.GetCurrentLocalSurfaceIdAllocation(); if (GetCompositor()) { GetCompositor()->SetScaleAndSize(current_device_scale_factor_, size_in_pixels, local_surface_id_allocation_); } PlatformResizeCompositorWidget(size_in_pixels); bool resized = true; GetDelegatedFrameHost()->EmbedSurface( local_surface_id_allocation_.local_surface_id(), size, cc::DeadlinePolicy::UseDefaultDeadline()); #endif // !defined(OS_MACOSX) // Note that |render_widget_host_| will retrieve resize parameters from the // DelegatedFrameHost, so it must have SynchronizeVisualProperties called // after. if (resized && render_widget_host_) render_widget_host_->SynchronizeVisualProperties(); } void CefRenderWidgetHostViewOSR::OnBeginFrameTimerTick() { const base::TimeTicks frame_time = base::TimeTicks::Now(); const base::TimeDelta vsync_period = base::TimeDelta::FromMicroseconds(frame_rate_threshold_us_); SendBeginFrame(frame_time, vsync_period); } void CefRenderWidgetHostViewOSR::SendBeginFrame(base::TimeTicks frame_time, base::TimeDelta vsync_period) { TRACE_EVENT1("cef", "CefRenderWidgetHostViewOSR::SendBeginFrame", "frame_time_us", frame_time.ToInternalValue()); base::TimeTicks display_time = frame_time + vsync_period; // TODO(brianderson): Use adaptive draw-time estimation. base::TimeDelta estimated_browser_composite_time = base::TimeDelta::FromMicroseconds( (1.0f * base::Time::kMicrosecondsPerSecond) / (3.0f * 60)); base::TimeTicks deadline = display_time - estimated_browser_composite_time; const viz::BeginFrameArgs& begin_frame_args = viz::BeginFrameArgs::Create( BEGINFRAME_FROM_HERE, begin_frame_source_.source_id(), begin_frame_number_, frame_time, deadline, vsync_period, viz::BeginFrameArgs::NORMAL); DCHECK(begin_frame_args.IsValid()); begin_frame_number_++; if (render_widget_host_) render_widget_host_->ProgressFlingIfNeeded(frame_time); if (renderer_compositor_frame_sink_) { renderer_compositor_frame_sink_->OnBeginFrame(begin_frame_args, {}); } } void CefRenderWidgetHostViewOSR::CancelWidget() { if (render_widget_host_) render_widget_host_->LostCapture(); Hide(); if (IsPopupWidget() && browser_impl_.get()) { CefRefPtr<CefRenderHandler> handler = browser_impl_->client()->GetRenderHandler(); CHECK(handler); handler->OnPopupShow(browser_impl_.get(), false); browser_impl_ = NULL; } if (parent_host_view_) { if (parent_host_view_->popup_host_view_ == this) { parent_host_view_->set_popup_host_view(NULL); } else if (parent_host_view_->child_host_view_ == this) { parent_host_view_->set_child_host_view(NULL); // Start rendering the parent view again. parent_host_view_->Show(); } else { parent_host_view_->RemoveGuestHostView(this); } parent_host_view_ = NULL; } if (render_widget_host_ && !is_destroyed_) { is_destroyed_ = true; // Don't delete the RWHI manually while owned by a scoped_ptr in RVHI. // This matches a CHECK() in RenderWidgetHostImpl::Destroy(). const bool also_delete = !render_widget_host_->owner_delegate(); // Results in a call to Destroy(). render_widget_host_->ShutdownAndDestroyWidget(also_delete); } } void CefRenderWidgetHostViewOSR::OnScrollOffsetChanged() { if (browser_impl_.get()) { CefRefPtr<CefRenderHandler> handler = browser_impl_->client()->GetRenderHandler(); CHECK(handler); handler->OnScrollOffsetChanged(browser_impl_.get(), last_scroll_offset_.x(), last_scroll_offset_.y()); } is_scroll_offset_changed_pending_ = false; } void CefRenderWidgetHostViewOSR::AddGuestHostView( CefRenderWidgetHostViewOSR* guest_host) { guest_host_views_.insert(guest_host); } void CefRenderWidgetHostViewOSR::RemoveGuestHostView( CefRenderWidgetHostViewOSR* guest_host) { guest_host_views_.erase(guest_host); } void CefRenderWidgetHostViewOSR::RegisterGuestViewFrameSwappedCallback( content::RenderWidgetHostViewGuest* guest_host_view) { guest_host_view->RegisterFrameSwappedCallback(base::BindOnce( &CefRenderWidgetHostViewOSR::OnGuestViewFrameSwapped, weak_ptr_factory_.GetWeakPtr(), base::Unretained(guest_host_view))); guest_host_view->set_current_device_scale_factor( current_device_scale_factor_); } void CefRenderWidgetHostViewOSR::OnGuestViewFrameSwapped( content::RenderWidgetHostViewGuest* guest_host_view) { InvalidateInternal(gfx::ConvertRectToPixel(current_device_scale_factor_, guest_host_view->GetViewBounds())); RegisterGuestViewFrameSwappedCallback(guest_host_view); } void CefRenderWidgetHostViewOSR::InvalidateInternal( const gfx::Rect& bounds_in_pixels) { if (software_output_device_) { software_output_device_->OnPaint(bounds_in_pixels); } else if (copy_frame_generator_.get()) { copy_frame_generator_->GenerateCopyFrame(bounds_in_pixels); } } void CefRenderWidgetHostViewOSR::RequestImeCompositionUpdate( bool start_monitoring) { if (!render_widget_host_) return; render_widget_host_->RequestCompositionUpdates(false, start_monitoring); } void CefRenderWidgetHostViewOSR::ImeCompositionRangeChanged( const gfx::Range& range, const std::vector<gfx::Rect>& character_bounds) { if (browser_impl_.get()) { CefRange cef_range(range.start(), range.end()); CefRenderHandler::RectList rcList; for (size_t i = 0; i < character_bounds.size(); ++i) { rcList.push_back(CefRect(character_bounds[i].x(), character_bounds[i].y(), character_bounds[i].width(), character_bounds[i].height())); } CefRefPtr<CefRenderHandler> handler = browser_impl_->GetClient()->GetRenderHandler(); CHECK(handler); handler->OnImeCompositionRangeChanged(browser_impl_->GetBrowser(), cef_range, rcList); } } viz::FrameSinkId CefRenderWidgetHostViewOSR::AllocateFrameSinkId( bool is_guest_view_hack) { // GuestViews have two RenderWidgetHostViews and so we need to make sure // we don't have FrameSinkId collisions. // The FrameSinkId generated here must be unique with FrameSinkId allocated // in ContextFactoryPrivate. content::ImageTransportFactory* factory = content::ImageTransportFactory::GetInstance(); return is_guest_view_hack ? factory->GetContextFactoryPrivate()->AllocateFrameSinkId() : viz::FrameSinkId(base::checked_cast<uint32_t>( render_widget_host_->GetProcess()->GetID()), base::checked_cast<uint32_t>( render_widget_host_->GetRoutingID())); } void CefRenderWidgetHostViewOSR::UpdateBackgroundColorFromRenderer( SkColor color) { if (color == background_color_) return; background_color_ = color; bool opaque = SkColorGetA(color) == SK_AlphaOPAQUE; GetRootLayer()->SetFillsBoundsOpaquely(opaque); GetRootLayer()->SetColor(color); }
[ "magreenblatt@gmail.com" ]
magreenblatt@gmail.com
25378e0f69f161ec7a503eec2e7820c80b3cb4f7
ced9ee65fe86a50f23c8ba0e433b448604b9e08d
/lab_2/set.cpp
7f16ca3ea58623c506e0340e63906bb4d904d6bc
[]
no_license
josefineflygge/TND004-Datastructures
e46b22ba363a832ee511ec6ecabe96d9c368889d
1d178864dd093be361925d3d356f5d6a6a6f7f42
refs/heads/master
2021-06-16T07:19:10.168446
2017-05-11T16:16:10
2017-05-11T16:16:10
null
0
0
null
null
null
null
UTF-8
C++
false
false
2,846
cpp
#include "set.h" /***************************************************** * Implementation of the member functions * ******************************************************/ //Default constructor Set::Set () : counter(0) { //IMPLEMENT before HA session on week 14 } //Conversion constructor Set::Set (int n) : counter(0) { //IMPLEMENT before HA session on week 14 } //Constructor to create a Set from a sorted array Set::Set (int a[], int n) // a is sorted : counter(0) { //IMPLEMENT before HA session on week 14 } Set::~Set() { //IMPLEMENT before HA session on week 14 } //Copy constructor Set::Set (const Set& source) : counter(source.counter) { //IMPLEMENT before HA session on week 14 } //Copy-and-swap assignment operator Set& Set::operator=(Set source) { //IMPLEMENT before HA session on week 14 return *this; } //Test whether a set is empty bool Set::_empty () const { return (!counter); } //Test set membership bool Set::is_member (int val) const { //IMPLEMENT before HA session on week 14 return false; //remove this line } //Return number of elements in the set unsigned Set::cardinality() const { return counter; } //Make the set empty void Set::make_empty() { //IMPLEMENT before HA session on week 14 } //Modify *this such that it becomes the union of *this with Set S //Add to *this all elements in Set S (repeated elements are not allowed) Set& Set::operator+=(const Set& S) { //IMPLEMENT before HA session on week 14 return *this; } //Return true, if the set is a subset of b, otherwise false //a <= b iff every member of a is a member of b bool Set::operator<=(const Set& b) const { //IMPLEMENT return false; //remove this line } //Return true, if the set is equal to set b //a == b, iff a <= b and b <= a bool Set::operator==(const Set& b) const { //IMPLEMENT return false; //remove this line } //Return true, if the set is different from set b //a == b, iff a <= b and b <= a bool Set::operator!=(const Set& b) const { //IMPLEMENT return false; //remove this line } //Return true, if the set is a strict subset of S, otherwise false //a == b, iff a <= b but not b <= a bool Set::operator<(const Set& b) const { //IMPLEMENT return false; //remove this line } //Modify *this such that it becomes the intersection of *this with Set S Set& Set::operator*=(const Set& S) { //IMPLEMENT return *this; } //Modify *this such that it becomes the Set difference between Set *this and Set S Set& Set::operator-=(const Set& S) { //IMPLEMENT return *this; } // Overloaded operator<< ostream& operator<<(ostream& os, const Set& b) { if (b._empty()) os << "Set is empty!" << endl; else { auto temp = b.head->next; os << "{ "; while (temp != b.tail) { os << temp->value << " "; temp = temp->next; } os << "}" << endl; } return os; }
[ "josefineflygge@hotmail.com" ]
josefineflygge@hotmail.com
9177dcdd30bb1081f68b102dc5e5db7dc0d75002
2c9e0541ed8a22bcdc81ae2f9610a118f62c4c4d
/harmony/tests/vts/vm/src/test/vm/jvmti/funcs/ClearFieldModif/ClearFieldModif0103/ClearFieldModif0103.cpp
a26b832bbf45ae280aa43695ddcfe42568c074b8
[ "Apache-2.0", "LicenseRef-scancode-generic-cla" ]
permissive
JetBrains/jdk8u_tests
774de7dffd513fd61458b4f7c26edd7924c7f1a5
263c74f1842954bae0b34ec3703ad35668b3ffa2
refs/heads/master
2023-08-07T17:57:58.511814
2017-03-20T08:13:25
2017-03-20T08:16:11
70,048,797
11
9
null
null
null
null
UTF-8
C++
false
false
3,123
cpp
/* Copyright 2005-2006 The Apache Software Foundation or its licensors, as applicable 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. */ /** * @author Valentin Al. Sitnick * @version $Revision: 1.1 $ * */ /* *********************************************************************** */ #include "events.h" #include "utils.h" #include "fake.h" static bool test = false; static bool util = false; static bool flag = false; const char test_case_name[] = "ClearFieldModif0103"; /* *********************************************************************** */ JNIEXPORT jint JNICALL Agent_OnLoad(prms_AGENT_ONLOAD) { Callbacks CB; check_AGENT_ONLOAD; jvmtiEvent events[] = { JVMTI_EVENT_EXCEPTION, JVMTI_EVENT_VM_DEATH }; cb_exc; cb_death; return func_for_Agent_OnLoad(vm, options, reserved, &CB, events, sizeof(events)/4, test_case_name, DEBUG_OUT); } /* *********************************************************************** */ void JNICALL callbackException(prms_EXCPT) { check_EXCPT; if (flag) return; jvmtiError result; jclass myclass = NULL; jfieldID myfield = NULL; /* * Function separate all other exceptions in all other method */ if (!check_phase_and_method_debug(jvmti_env, method, SPP_LIVE_ONLY, "special_method", DEBUG_OUT)) return; flag = true; util = true; if (!is_needed_field_found(jvmti_env, "ClearFieldModif0103.java", "third_field", &myclass, &myfield, DEBUG_OUT)) return; result = jvmti_env->SetFieldModificationWatch(myclass, myfield); fprintf(stderr, "\tnative: SetFieldModificationWatch result = %d (must be zero) \n", result); fprintf(stderr, "\tnative: class is %p \n", myclass); fprintf(stderr, "\tnative: field is %p \n", myfield); fflush(stderr); if (result != JVMTI_ERROR_NONE) return; if (!is_needed_field_found(jvmti_env, "ClearFieldModif0103.java", "second_field", &myclass, &myfield, DEBUG_OUT)) return; result = jvmti_env->ClearFieldModificationWatch(myclass, myfield); fprintf(stderr, "\tnative: ClearFieldModificationWatch result = %d (must be JVMTI_ERROR_NOT_FOUND (41)) \n", result); fprintf(stderr, "\tnative: class is %p \n", myclass); fprintf(stderr, "\tnative: field is %p \n", myfield); fflush(stderr); if (result == JVMTI_ERROR_NOT_FOUND) test = true; } void JNICALL callbackVMDeath(prms_VMDEATH) { check_VMDEATH; func_for_callback_VMDeath(jni_env, jvmti_env, test_case_name, test, util); } /***************************************************************************/
[ "vitaly.provodin@jetbrains.com" ]
vitaly.provodin@jetbrains.com
d675cccb7cd28427f7ed28fa1737b7a7e953d1e2
7ec7d09ccdc49338497bddde23a23ae653b60883
/primes/main.cpp
d551ce9854c1bbd001460c4375a2b1ea4846c029
[]
no_license
dmytrolev/algorithms
0799be0cb1d983c60a95e98f9b5c95ba48fc6505
9b006f46037e13d20b77d9cfa73c0dc515d48714
refs/heads/master
2021-07-12T11:56:26.049943
2017-10-16T12:42:44
2017-10-16T12:42:44
61,023,437
0
1
null
null
null
null
UTF-8
C++
false
false
1,294
cpp
#include <iostream> #include <cmath> #ifdef ALGO_DEBUG #include "../test/debug.cpp" #else #define TRACE(message) #define TRACE_LINE(message) #define ASSERT(expr) #define UNIT_TESTS() #endif constexpr int MAX_N = 150000; constexpr int MAX_P = 30000; int primes_count = 1; int primes[MAX_P]; int primes_sqr[MAX_P]; constexpr int prime_limit = std::sqrt(MAX_N); void unit_tests() { } int main() { UNIT_TESTS() primes[0] = 2; int twins = 0; std::cout << "{ 2"; for(int i = 3; i < MAX_N; i += 2) { bool is_prime = true; for(int j = 0; j < primes_count; ++j) { if(i % primes[j] == 0) { is_prime = false; break; } if(i < primes_sqr[j]) break; } if(is_prime) { if(primes_count >= MAX_P) { std::cerr << "(EE) on " << i << " maximum overbound!\n"; return -1; } primes[primes_count] = i; if(i >= prime_limit) primes_sqr[primes_count] = MAX_N; else primes_sqr[primes_count] = i * i; // if(primes[primes_count] - primes[primes_count - 1] == 2) std::cerr << ++twins << std::endl; ++primes_count; std::cout << ", " << i; } } // std::cout << twins << std::endl; std::cout << "}" << std::endl; std::cerr << "count: " << primes_count << std::endl; return 0; }
[ "ldimat@gmail.com" ]
ldimat@gmail.com
9f61277e5d85a762218b79061ed6d3d4620c864f
87188de154d973f33b45ad54c11a0b2246ad5596
/hlh516/Algorithms.cpp
a9410a3e28dc9e099eef53991cdac70c45a1534e
[]
no_license
HuangLianghong/DIP-Assignment
a9f31e5b654095fea9a75c9755aae3d966f228b0
23872b28e9d66bd021b102b75c6aa58ae37027b1
refs/heads/master
2022-11-02T07:56:29.659038
2020-06-19T15:24:32
2020-06-19T15:24:32
258,387,534
0
0
null
null
null
null
GB18030
C++
false
false
21,300
cpp
/* 学号:2017052516 姓名:黄亮鸿 专业:信息安全 GitHub:https://github.com/HuangLianghong/DIP-Assignment.git 注:github中有程序完整的提交记录 */ #include "pch.h" #include "Algorithms.h" #include <complex> #include <math.h> using namespace std; BITMAPINFO* lpBitsInfo = NULL; BITMAPINFO* lpDIB_IFFT = NULL; BOOL LoadBmpFile(LPCTSTR BmpFileName) { FILE* fp; BITMAPFILEHEADER bf; BITMAPINFOHEADER bi; if (0 != (fopen_s(&fp, BmpFileName, "rb"))) return false; fread(&bf, sizeof(BITMAPFILEHEADER), 1, fp); fread(&bi, sizeof(BITMAPINFOHEADER), 1, fp); DWORD NumColors; //调色板数组中的颜色个数 if (bi.biClrUsed > 0) NumColors = bi.biClrUsed; else { switch (bi.biBitCount) { case 1: NumColors = 2; break; case 4: NumColors = 16; break; case 8: NumColors = 255; break; case 24: NumColors = 0; break; } } DWORD LineBytes = ((bi.biBitCount * bi.biWidth) + 31)/32 * 4; DWORD dataBytes = LineBytes * bi.biHeight; DWORD size = sizeof(BITMAPINFOHEADER) + NumColors * sizeof(RGBQUAD) + dataBytes; if (NULL == (lpBitsInfo = (BITMAPINFO*)malloc(size))) return false; fseek(fp, sizeof(BITMAPFILEHEADER), SEEK_SET); fread(lpBitsInfo, size, 1, fp); lpBitsInfo->bmiHeader.biClrUsed = NumColors; fclose(fp); return true; } void gray() { int w = lpBitsInfo->bmiHeader.biWidth; int h = lpBitsInfo->bmiHeader.biHeight; DWORD LineBytes = ((lpBitsInfo->bmiHeader.biBitCount * lpBitsInfo->bmiHeader.biWidth) + 31) / 32 * 4; BYTE* lpBits = (BYTE*)&lpBitsInfo->bmiColors[lpBitsInfo->bmiHeader.biClrUsed]; int LineBytes_Gray = (w * 8 + 31) / 32 * 4; LONG size = sizeof(BITMAPINFOHEADER) + 256*sizeof(RGBQUAD) + LineBytes_Gray * h; LPBITMAPINFO lpBitsInfo_Gray = (LPBITMAPINFO)malloc(size); memcpy(lpBitsInfo_Gray, lpBitsInfo, 40); lpBitsInfo_Gray->bmiHeader.biBitCount = 8; lpBitsInfo_Gray->bmiHeader.biClrUsed = 256; int i, j; for (i = 0; i < 256; ++i) { lpBitsInfo_Gray->bmiColors[i].rgbRed = i; lpBitsInfo_Gray->bmiColors[i].rgbGreen = i; lpBitsInfo_Gray->bmiColors[i].rgbBlue = i; lpBitsInfo_Gray->bmiColors[i].rgbReserved = 0; } BYTE* lpBits_Gray = (BYTE*)&lpBitsInfo_Gray->bmiColors[256]; BYTE* R, * G, * B, avg, * pixel; for ( i = 0; i < h; ++i) { for (j = 0; j < w; ++j) { B = lpBits + LineBytes * (h-1-i) + j * 3; G = B + 1; R = G + 1; avg = (*R + *G + *B) / 3; pixel = lpBits_Gray + LineBytes_Gray * (h - i - 1) + j; *pixel = avg; } } free(lpBitsInfo); lpBitsInfo = lpBitsInfo_Gray; } bool IsGray() { //灰度图像必定8位 if (lpBitsInfo->bmiHeader.biBitCount != 8) return false; for (int i = 0; i < 256; i += 25) { if (lpBitsInfo->bmiColors[i].rgbRed == lpBitsInfo->bmiColors[i].rgbGreen && lpBitsInfo->bmiColors[i].rgbRed == lpBitsInfo->bmiColors[i].rgbBlue) continue; else return false; } return true; } void Histogram(); void pixel(int i, int j, char* str) { if (NULL == lpBitsInfo) return; int w = lpBitsInfo->bmiHeader.biWidth; int h = lpBitsInfo->bmiHeader.biHeight; DWORD LineBytes = ((lpBitsInfo->bmiHeader.biBitCount * lpBitsInfo->bmiHeader.biWidth) + 31) / 32 * 4; BYTE* lpBits = (BYTE*)&lpBitsInfo->bmiColors[lpBitsInfo->bmiHeader.biClrUsed]; if (i > h || j > w) return; BYTE* pixel, bv; int r, g, b; switch (lpBitsInfo->bmiHeader.biBitCount) { case 8: pixel = lpBits + LineBytes * (h - i - 1) + j; if (IsGray()) { sprintf(str, "灰度值:%d", *pixel); Histogram(); } else { r = lpBitsInfo->bmiColors[*pixel].rgbRed; g = lpBitsInfo->bmiColors[*pixel].rgbGreen; b = lpBitsInfo->bmiColors[*pixel].rgbBlue; sprintf(str, "RGB(%d,%d,%d)", r, g, b); } break; case 24: pixel = lpBits + LineBytes * (h - i - 1) + j * 3; b = *pixel; g = *(pixel + 1); r = *(pixel + 2); sprintf(str, "RGB(%d,%d,%d)", r, g, b); break; case 1: bv = *(lpBits + LineBytes * (h - i - 1) + j /8) & (1<<(7-j%8)); if (0 == bv) strcpy(str, "背景点"); else strcpy(str, "前景点"); break; case 4: pixel = lpBits + LineBytes * (h - i - 1) + j / 2; if (j % 2 == 0) *pixel = *pixel >> 4; else *pixel = *pixel & 15; r = lpBitsInfo->bmiColors[*pixel].rgbRed; g = lpBitsInfo->bmiColors[*pixel].rgbGreen; b = lpBitsInfo->bmiColors[*pixel].rgbBlue; sprintf(str, "RGB(%d,%d,%d)", r, g, b); break; } } extern DWORD H[256]; //统计灰度图像的灰度直方图 void Histogram() { DWORD LineBytes = ((lpBitsInfo->bmiHeader.biBitCount * lpBitsInfo->bmiHeader.biWidth) + 31) / 32 * 4; BYTE* lpBits = (BYTE*)&lpBitsInfo->bmiColors[lpBitsInfo->bmiHeader.biClrUsed]; BYTE* pixel; int w = lpBitsInfo->bmiHeader.biWidth; int h = lpBitsInfo->bmiHeader.biHeight; for (int i = 0; i < 256; ++i) H[i] = 0; for (int i = 0; i < h; ++i) { for (int j = 0; j < w; ++j) { pixel = lpBits + LineBytes * (h - i - 1) + j; H[lpBitsInfo->bmiColors[*pixel].rgbRed] += 1; } } } void LinearTran(float a, float b) { DWORD LineBytes = ((lpBitsInfo->bmiHeader.biBitCount * lpBitsInfo->bmiHeader.biWidth) + 31) / 32 * 4; BYTE* lpBits = (BYTE*)&lpBitsInfo->bmiColors[lpBitsInfo->bmiHeader.biClrUsed]; BYTE* pixel; int w = lpBitsInfo->bmiHeader.biWidth; int h = lpBitsInfo->bmiHeader.biHeight; for (int i = 0; i < h; ++i) { for (int j = 0; j < w; ++j) { pixel = lpBits + LineBytes * (h - i - 1) + j; float tmp = a * (*pixel) + b; if (tmp > 254) tmp = 254; if (tmp < 0) tmp = 0; *pixel = tmp; } } } void Equalize() { DWORD LineBytes = ((lpBitsInfo->bmiHeader.biBitCount * lpBitsInfo->bmiHeader.biWidth) + 31) / 32 * 4; BYTE* lpBits = (BYTE*)&lpBitsInfo->bmiColors[lpBitsInfo->bmiHeader.biClrUsed]; int w = lpBitsInfo->bmiHeader.biWidth; int h = lpBitsInfo->bmiHeader.biHeight; BYTE* pixel; int i, j; BYTE Map[256]; Histogram(); DWORD tmp; for (i = 0; i < 255; i++) { tmp = 0; for (j = 0; j < i; ++j) { tmp += H[j]; } Map[i] =(BYTE) (tmp * 254.0/(w * h)+0.5); } for (int i = 0; i < h; ++i) { for (int j = 0; j < w; ++j) { pixel = lpBits + LineBytes * (h - i - 1) + j; *pixel = Map[*pixel]; } } } #define PI 3.1415926535 //TD为指向时域数组的指针 //FD为指向频域数组的指针 //m为点的个数 //一位离散傅里叶正变换 void FT(complex<double>* TD,complex<double>* FD,int m) { int x, u; double angle; for (u = 0; u < m;u++) { FD[u] = 0; for (x = 0; x < m;x++) { angle = -2 * PI * u * x / m; FD[u] += TD[x] * complex<double>(cos(angle), sin(angle)); } FD[u] /= m; } } //一维离散傅里叶反变换 void IFT(complex<double>* FD, complex<double>* TD, int m) { int x, u; double angle; for (x = 0; x < m; x++) { TD[x] = 0; for (u = 0; u < m; u++) { angle = 2 * PI * u * x / m; TD[x] += FD[u] * complex<double>(cos(angle), sin(angle)); } } } BITMAPINFO* lpDIB_FFT = NULL; void FFT(complex<double>* TD, complex<double>* FD, int r) { // 计算付立叶变换点数 LONG count = 1 << r; // 计算加权系数 int i; double angle; complex<double>* W = new complex<double>[count / 2]; for (i = 0; i < count / 2; i++) { angle = -i * PI * 2 / count; W[i] = complex<double>(cos(angle), sin(angle)); } // 将时域点写入X1 complex<double>* X1 = new complex<double>[count]; memcpy(X1, TD, sizeof(complex<double>) * count); // 采用蝶形算法进行快速付立叶变换,输出为频域值X2 complex<double>* X2 = new complex<double>[count]; int k, j, p, size; complex<double>* temp; for (k = 0; k < r; k++) { for (j = 0; j < 1 << k; j++) { size = 1 << (r - k); for (i = 0; i < size / 2; i++) { p = j * size; X2[i + p] = X1[i + p] + X1[i + p + size / 2]; X2[i + p + size / 2] = (X1[i + p] - X1[i + p + size / 2]) * W[i * (1 << k)]; } } temp = X1; X1 = X2; X2 = temp; } // 重新排序(码位倒序排列) for (j = 0; j < count; j++) { p = 0; for (i = 0; i < r; i++) { if (j & (1 << i)) { p += 1 << (r - i - 1); } } FD[j] = X1[p]; FD[j] /= count; } // 释放内存 delete W; delete X1; delete X2; } //IFFT反变换 void IFFT(complex<double>* FD, complex<double>* TD, int r) { // 付立叶变换点数 LONG count; // 计算付立叶变换点数 count = 1 << r; // 分配运算所需存储器 complex<double>* X = new complex<double>[count]; // 将频域点写入X memcpy(X, FD, sizeof(complex<double>) * count); // 求共轭 for (int i = 0; i < count; i++) X[i] = complex<double>(X[i].real(), -X[i].imag()); // 调用快速付立叶变换 FFT(X, TD, r); // 求时域点的共轭 for (int i = 0; i < count; i++) TD[i] = complex<double>(TD[i].real() * count, -TD[i].imag() * count); // 释放内存 delete X; } complex<double>* gFD = NULL; void Fourier() { DWORD LineBytes = ((lpBitsInfo->bmiHeader.biBitCount * lpBitsInfo->bmiHeader.biWidth) + 31) / 32 * 4; BYTE* lpBits = (BYTE*)&lpBitsInfo->bmiColors[lpBitsInfo->bmiHeader.biClrUsed]; int w = lpBitsInfo->bmiHeader.biWidth; int h = lpBitsInfo->bmiHeader.biHeight; BYTE* pixel; complex<double>* TD = new complex<double>[w * h]; complex<double>* FD = new complex<double>[w * h]; for (int i = 0; i < h; ++i) { for (int j = 0; j < w; ++j) { pixel = lpBits + LineBytes * (h - i - 1) + j; TD[w * i + j] = complex<double>(*pixel * pow(-1, i + j), 0); } } for (int i = 0; i < h; ++i) { FT(&TD[w * i], &FD[i*w], w); } //转置 for (int i = 0; i < h; ++i) { for (int j = 0; j < w; ++j) { TD[h * j + i] = FD[w * i + j]; } } for (int j = 0; j < w; ++j) { FT(&TD[h * j], &FD[j*h], h); } LONG size = 40 + 1024 + LineBytes * h; LPBITMAPINFO lpDIB_FT = (LPBITMAPINFO)malloc(size); memcpy(lpDIB_FT, lpBitsInfo, size); lpBits = (BYTE*)&lpDIB_FT->bmiColors[256]; double temp; for (int i = 0; i < h; i++) { for (int j = 0; j < w; ++j) { pixel = lpBits + LineBytes * (h - 1 - i) + j; temp = sqrt(FD[j * h + i].real() * FD[j * h + i].real()+FD[j * h + i].imag() * FD[j * h + i].imag()) * 2000; if (temp > 254) temp = 254; *pixel = (BYTE)(temp); } } delete TD; //delete FD; gFD = FD; free(lpBitsInfo); lpBitsInfo = lpDIB_FT; }; void FFourier() { //图像的宽度和高度 int width = lpBitsInfo->bmiHeader.biWidth; int height = lpBitsInfo->bmiHeader.biHeight; int LineBytes = (width * lpBitsInfo->bmiHeader.biBitCount + 31) / 32 * 4; //指向图像数据指针 BYTE* lpBits = (BYTE*)&lpBitsInfo->bmiColors[256]; // FFT宽度(必须为2的整数次方) int FFT_w = 1; // FFT宽度的幂数,即迭代次数 int wp = 0; while (FFT_w * 2 <= width) { FFT_w *= 2; wp++; } // FFT高度(必须为2的整数次方) int FFT_h = 1; // FFT高度的幂数,即迭代次数 int hp = 0; while (FFT_h * 2 <= height) { FFT_h *= 2; hp++; } // 分配内存 complex<double>* TD = new complex<double>[FFT_w * FFT_h]; complex<double>* FD = new complex<double>[FFT_w * FFT_h]; int i, j; BYTE* pixel; for (i = 0; i < FFT_h; i++) // 行 { for (j = 0; j < FFT_w; j++) // 列 { // 指向DIB第i行,第j个象素的指针 pixel = lpBits + LineBytes * (height - 1 - i) + j; // 给时域赋值 TD[j + FFT_w * i] = complex<double>(*pixel * pow(-1, i + j), 0); } } for (i = 0; i < FFT_h; i++) { // 对y方向进行快速付立叶变换 FFT(&TD[FFT_w * i], &FD[FFT_w * i], wp); } // 保存中间变换结果 for (i = 0; i < FFT_h; i++) { for (j = 0; j < FFT_w; j++) { TD[i + FFT_h * j] = FD[j + FFT_w * i]; } } for (i = 0; i < FFT_w; i++) { // 对x方向进行快速付立叶变换 FFT(&TD[i * FFT_h], &FD[i * FFT_h], hp); } // 删除临时变量 delete TD; //生成频谱图像 //为频域图像分配内存 LONG size = 40 + 1024 + LineBytes * height; lpDIB_FFT = (LPBITMAPINFO)malloc(size); if (NULL == lpDIB_FFT) return; memcpy(lpDIB_FFT, lpBitsInfo, size); //指向频域图像数据指针 lpBits = (BYTE*)&lpDIB_FFT->bmiColors[256]; double temp; for (i = 0; i < FFT_h; i++) // 行 { for (j = 0; j < FFT_w; j++) // 列 { // 计算频谱幅度 temp = sqrt(FD[j * FFT_h + i].real() * FD[j * FFT_h + i].real() + FD[j * FFT_h + i].imag() * FD[j * FFT_h + i].imag()) * 2000; // 判断是否超过255 if (temp > 255) { // 对于超过的,直接设置为255 temp = 255; } pixel = lpBits + LineBytes * (height - 1 - i) + j; // 更新源图像 *pixel = (BYTE)(temp); } } gFD = FD; } void IFourier() { DWORD LineBytes = ((lpBitsInfo->bmiHeader.biBitCount * lpBitsInfo->bmiHeader.biWidth) + 31) / 32 * 4; BYTE* lpBits = (BYTE*)&lpBitsInfo->bmiColors[lpBitsInfo->bmiHeader.biClrUsed]; int w = lpBitsInfo->bmiHeader.biWidth; int h = lpBitsInfo->bmiHeader.biHeight; BYTE* pixel; complex<double>* TD = new complex<double>[w * h]; complex<double>* FD = new complex<double>[w * h]; for (int i = 0; i < h; ++i) { for (int j = 0; j < w; ++j) { FD[w * i + j] = gFD[h * j + i]; } } for (int i = 0; i < h; ++i) { IFT(&FD[w * i], &TD[i * w], w); } //转置 for (int i = 0; i < h; ++i) { for (int j = 0; j < w; ++j) { FD[h * j + i] = TD[w * i + j]; } } for (int j = 0; j < w; ++j) { IFT(&FD[h * j], &TD[j * h], h); } LONG size = 40 + 1024 + LineBytes * h; LPBITMAPINFO lpDIB_IFT = (LPBITMAPINFO)malloc(size); memcpy(lpDIB_IFT, lpBitsInfo, size); lpBits = (BYTE*)&lpDIB_IFT->bmiColors[256]; for (int i = 0; i < h; i++) { for (int j = 0; j < w; ++j) { pixel = lpBits + LineBytes * (h - 1 - i) + j; *pixel = (BYTE)(TD[j * h + i].real() / pow(-1, i + j)); } } delete TD; delete FD; //delete gFD; gFD = NULL; free(lpBitsInfo); lpBitsInfo = lpDIB_IFT; } void IFFourier() { //图像的宽度和高度 int width = lpBitsInfo->bmiHeader.biWidth; int height = lpBitsInfo->bmiHeader.biHeight; int LineBytes = (width * lpBitsInfo->bmiHeader.biBitCount + 31) / 32 * 4; // FFT宽度(必须为2的整数次方) int FFT_w = 1; // FFT宽度的幂数,即迭代次数 int wp = 0; while (FFT_w * 2 <= width) { FFT_w *= 2; wp++; } // FFT高度(必须为2的整数次方) int FFT_h = 1; // FFT高度的幂数,即迭代次数 int hp = 0; while (FFT_h * 2 <= height) { FFT_h *= 2; hp++; } // 分配内存 complex<double>* TD = new complex<double>[FFT_w * FFT_h]; complex<double>* FD = new complex<double>[FFT_w * FFT_h]; int i, j; for (i = 0; i < FFT_h; i++) // 行 for (j = 0; j < FFT_w; j++) // 列 FD[j + FFT_w * i] = gFD[i + FFT_h * j]; // 沿水平方向进行快速傅里叶变换 for (i = 0; i < FFT_h; i++) IFFT(&FD[FFT_w * i], &TD[FFT_w * i], wp); // 保存中间变换结果 for (i = 0; i < FFT_h; i++) for (j = 0; j < FFT_w; j++) FD[i + FFT_h * j] = TD[j + FFT_w * i]; // 沿垂直方向进行快速傅里叶变换 for (i = 0; i < FFT_w; i++) IFFT(&FD[i * FFT_h], &TD[i * FFT_h], hp); //为反变换图像分配内存 LONG size = 40 + 1024 + LineBytes * height; lpDIB_IFFT = (LPBITMAPINFO)malloc(size); if (NULL == lpDIB_IFFT) return; memcpy(lpDIB_IFFT, lpBitsInfo, size); //指向反变换图像数据指针 BYTE* lpBits = (BYTE*)&lpDIB_IFFT->bmiColors[256]; BYTE* pixel; double temp; for (i = 0; i < FFT_h; i++) // 行 { for (j = 0; j < FFT_w; j++) // 列 { pixel = lpBits + LineBytes * (height - 1 - i) + j; temp = (TD[j * FFT_h + i].real() / pow(-1, i + j)); if (temp < 0) temp = 0; else if (temp > 255) temp = 255; *pixel = (BYTE)temp; } } // 删除临时变量 delete FD; delete TD; //delete gFD; } BOOL gFD_isValid() { return (gFD != NULL); } //均值滤波 //Array:运算模板,3*3数组,用一维数组表示 void Template(int* Array, float coef) { //图像的宽度和高度 int w = lpBitsInfo->bmiHeader.biWidth; int h = lpBitsInfo->bmiHeader.biHeight; //每行的字节数 int LineBytes = ((lpBitsInfo->bmiHeader.biBitCount * w) + 31) / 32 * 4; //指向原图像数据的指针 BYTE* lpBits = (BYTE*)&lpBitsInfo->bmiColors[lpBitsInfo->bmiHeader.biClrUsed]; //为新图像分配内存 BITMAPINFO* new_lpBitsInfo; LONG size = sizeof(BITMAPINFOHEADER) + 256 * sizeof(RGBQUAD) + h * LineBytes; if (NULL == (new_lpBitsInfo = (LPBITMAPINFO)malloc(size))) return; //复制BMP memcpy(new_lpBitsInfo, lpBitsInfo, size); //新图像起始位置 BYTE* lpNewBIts = (BYTE*)&new_lpBitsInfo->bmiColors[new_lpBitsInfo->bmiHeader.biClrUsed]; int i, j, k, l; BYTE* pixel, * new_pixel; float result; //行 for (i = 1; i < h - 1; i++) { //列 for (j = 1; j < w - 1; j++) { new_pixel = lpNewBIts + LineBytes * (h - 1 - i) + j; result = 0; //3*3模板内的像素和 for (k = 0; k < 3; k++) { for (l = 0; l < 3; l++) { pixel = lpBits + LineBytes * (h - i - k) + j - 1 + l; result += (*pixel) * Array[k * 3 + l]; } } result *= coef; if (result < 0) *new_pixel = 0; else if (result > 254) *new_pixel = 254; else *new_pixel = (BYTE)(result + 0.5); } } free(lpBitsInfo); lpBitsInfo = new_lpBitsInfo; } BYTE WINAPI GetMedianNum(BYTE* Array) { int i, j; BYTE tmp; //也可在得到一半有序数组后就结束排序 for (i = 0; i < 8; i++) { for (j = 0; j < 9-i-1; j++) { if (Array[j] > Array[j+1]) { tmp = Array[j]; Array[j] = Array[j+1]; Array[j+1] = tmp; } } } return Array[4]; } //中值滤波 void MedianFilter() { //图像的宽度和高度 int w = lpBitsInfo->bmiHeader.biWidth; int h = lpBitsInfo->bmiHeader.biHeight; //每行的字节数 int LineBytes = ((lpBitsInfo->bmiHeader.biBitCount * lpBitsInfo->bmiHeader.biWidth) + 31) / 32 * 4; //指向原图像数据的指针 BYTE* lpBits = (BYTE*)&lpBitsInfo->bmiColors[lpBitsInfo->bmiHeader.biClrUsed]; //为新图像分配内存 BITMAPINFO* new_lpBitsInfo; LONG size = sizeof(BITMAPINFOHEADER) + 256 * sizeof(RGBQUAD) + h * LineBytes; if (NULL == (new_lpBitsInfo = (LPBITMAPINFO)malloc(size))) return; //复制BMP memcpy(new_lpBitsInfo, lpBitsInfo, size); //新图像起始位置 BYTE* lpNewBIts = (BYTE*)&new_lpBitsInfo->bmiColors[new_lpBitsInfo->bmiHeader.biClrUsed]; int i, j, k, l; BYTE* pixel, * new_pixel; BYTE Value[9]; //3*3模板 //行 for (i = 1; i < h - 1; i++) { //列 for (j = 1; j < w - 1; j++) { new_pixel = lpNewBIts + LineBytes * (h - 1 - i) + j; //3*3模板内的像素的灰度值 for (k = 0; k < 3; k++) { for (l = 0; l < 3; l++) { pixel = lpBits + LineBytes * (h - i - k) + j - 1 + l; Value[k * 3 + l] = *pixel; } } *new_pixel = GetMedianNum(Value); } } free(lpBitsInfo); lpBitsInfo = new_lpBitsInfo; } //梯度锐化函数 void GradientSharp() { //图像的宽度和高度 int w = lpBitsInfo->bmiHeader.biWidth; int h = lpBitsInfo->bmiHeader.biHeight; //每行的字节数 int LineBytes = ((lpBitsInfo->bmiHeader.biBitCount * lpBitsInfo->bmiHeader.biWidth) + 31) / 32 * 4; //指向原图像数据的指针 BYTE* lpBits = (BYTE*)&lpBitsInfo->bmiColors[lpBitsInfo->bmiHeader.biClrUsed]; BYTE* lpSrc, * lpSrc1, * lpSrc2; int i, j; BYTE temp; //行 for (i = 0; i < h - 1; i++) { //列 for (j = 0; j < w - 1; j++) { //第i行,第j个 lpSrc = lpBits + LineBytes * (h - 1 - i) + j; //第i+1行,第j个 lpSrc1 = lpBits + LineBytes * (h - 2 - i) + j; //第i行,第j+1个 lpSrc2 = lpBits + LineBytes * (h - 1 - i) + j + 1; //梯度算子 temp = abs((*lpSrc) - (*lpSrc1)) + abs((*lpSrc) - (*lpSrc2)); if (temp > 254) *lpSrc = 254; else *lpSrc = temp; } } } //理想低-高通滤波 // D>0低通滤波 // D<0高通滤波 void Ideal_Filter_FFT(int D) { //图像的宽度和高度 int width = lpBitsInfo->bmiHeader.biWidth; int height = lpBitsInfo->bmiHeader.biHeight; int FFT_w = 1; while (FFT_w * 2 <= width) FFT_w *= 2; int FFT_h = 1; while (FFT_h * 2 <= height) FFT_h *= 2; //备份原始频域数据 complex<double>* origin_FD = new complex<double>[FFT_w * FFT_h]; for (int n = 0; n < FFT_w * FFT_h; n++) origin_FD[n] = gFD[n]; //频率滤波(理想高/低通滤波) int i, j; double dis; for (i = 0; i < FFT_h; i++) { for (j = 0; j < FFT_w; j++) { dis = sqrt((i - FFT_h / 2) * (i - FFT_h / 2) + (j - FFT_w / 2) * (j - FFT_w / 2) + 1); if (D > 0) //低通 { if (dis > D) gFD[i * FFT_h + j] = 0; //理想低通,截断高频 } else { //高通 if (dis <= -D) gFD[i * FFT_h + j] = 0; //理想高通,截断低频 } } } //生成新的频谱图像 int LineBytes = (width * lpBitsInfo->bmiHeader.biBitCount + 31) / 32 * 4; LONG size = 40 + 1024 + LineBytes * height; BITMAPINFO* new_lpDIB_FFT = (LPBITMAPINFO)malloc(size); memcpy(new_lpDIB_FFT, lpDIB_FFT, size); BYTE* lpBits = (BYTE*)&new_lpDIB_FFT->bmiColors[new_lpDIB_FFT->bmiHeader.biClrUsed]; double temp; BYTE* pixel; for (i = 0; i < FFT_h; i++) { for (j = 0; j < FFT_w; j++) { temp = sqrt(gFD[j * FFT_h + i].real() * gFD[j * FFT_h + i].real() + gFD[j * FFT_h + i].imag() * gFD[j * FFT_h + i].imag()) * 2000; if (temp > 255) temp = 255; pixel = lpBits + LineBytes * (height - 1 - i) + j; *pixel = (BYTE)(temp); } } //释放原频谱图像 if (lpDIB_FFT) free(lpDIB_FFT); //更新新的频谱图像 lpDIB_FFT = new_lpDIB_FFT; //快速傅里叶反变换 IFFourier(); //恢复到原始频域数据 delete gFD; gFD = origin_FD; }
[ "739302661@qq.com" ]
739302661@qq.com
0e7384b4414ad347f61d2d2baaddb388b53e9131
3136459fd674e1027f480895ba6685312ac6959b
/examples/replaceplus/Replacer.cpp
1bebe15d8495ef821f1765ebb8de3b25ccecfa94
[ "Zlib" ]
permissive
pierrebestwork/owl-next
701d1a6cbabd4566a0628aa8a64343b498d1e977
94ba85e8b4dcb978f095b479f85fe4ba3af2fe4e
refs/heads/master
2023-02-14T02:03:33.656218
2020-03-16T16:41:49
2020-03-16T16:41:49
326,663,717
0
0
null
null
null
null
UTF-8
C++
false
false
9,401
cpp
#include "pch.h" #pragma hdrstop #include "Replacer.h" #include <owl/filename.h> #include <algorithm> using namespace owl; using namespace std; namespace { const uint FileAndExt = TFileName::File | TFileName::Ext; //----------------------------------------------------------------------------- class TFileProcessorBase { public: virtual bool ProcessFile(const owl::TFileName&) = 0; virtual void ReportResults(owl::TWindow&) = 0; }; //----------------------------------------------------------------------------- class TFileRecurser { public: TFileRecurser(const owl::tstring& folder, const owl::tstring& filter, bool recurseFlag, TFileProcessorBase&); bool RecurseFolders(); private: owl::tstring Folder; typedef std::vector<owl::tstring> TFilters; TFilters Filters; bool RecurseFlag; TFileProcessorBase& FileProcessor; bool RecurseFiles(const tstring& folder); bool IterateFiles(const tstring& folder); }; //----------------------------------------------------------------------------- // // Replaces text in the given file. // class TReplacer : public TFileProcessorBase { public: TReplacer(const owl::tstring& searchTerm, const owl::tstring& replacement) : SearchTerm(searchTerm), Replacement(replacement), FileCount(0), ReplacementCount(0) {} virtual bool ProcessFile(const owl::TFileName&); // override virtual void ReportResults(owl::TWindow&); // override private: owl::tstring SearchTerm; owl::tstring Replacement; int FileCount; int ReplacementCount; }; //----------------------------------------------------------------------------- // // Changes file date and time. // class TToucher : public TFileProcessorBase { public: TToucher(const owl::TTime& filetime) : FileTime(filetime), FileCount(0) {} virtual bool ProcessFile(const owl::TFileName&); // override virtual void ReportResults(owl::TWindow&); // override private: owl::TTime FileTime; int FileCount; }; //----------------------------------------------------------------------------- TFileRecurser::TFileRecurser(const tstring& folder, const tstring& filter, bool recurseFlag, TFileProcessorBase& p) : Folder(folder), RecurseFlag(recurseFlag), FileProcessor(p) { // Split the filter string into individual filters. // tstring::const_iterator b = filter.begin(); for (;;) { tstring::const_iterator e = std::find(b, filter.end(), _T(';')); Filters.push_back(tstring(b, e)); if (e == filter.end()) break; b = ++e; } } //----------------------------------------------------------------------------- bool TFileRecurser::RecurseFolders() { return RecurseFlag ? RecurseFiles(Folder) : IterateFiles(Folder); } //----------------------------------------------------------------------------- bool TFileRecurser::RecurseFiles(const tstring& folder) { // Recurse subfolders. // TFileName p = TFileName(folder, true); p.MergeParts(FileAndExt, _T("*.*")); for (TFileNameIterator i(p.Canonical()); i; ++i) { if ((i.Current().attribute & FILE_ATTRIBUTE_DIRECTORY) == 0) continue; tstring f = i.Current().fullName; if (f == _T(".") || f == _T("..")) continue; p.MergeParts(FileAndExt, f); bool r = RecurseFiles(p.Canonical()); if (!r) return false; } return IterateFiles(folder); } //----------------------------------------------------------------------------- bool TFileRecurser::IterateFiles(const tstring& folder) { // Iterate over files by filter. // TFileName p = TFileName(folder, true); for (TFilters::const_iterator fit = Filters.begin(); fit != Filters.end(); ++fit) { p.MergeParts(FileAndExt, *fit); for (TFileNameIterator i(p.Canonical()); i; ++i) { const uint skipFlags = FILE_ATTRIBUTE_DIRECTORY | FILE_ATTRIBUTE_HIDDEN | FILE_ATTRIBUTE_READONLY; if (i.Current().attribute & skipFlags) continue; p.MergeParts(FileAndExt, i.Current().fullName); bool r = FileProcessor.ProcessFile(p); if (!r) return false; } } return true; } //----------------------------------------------------------------------------- bool TReplacer::ProcessFile(const TFileName& filename) { tifstream ifs(filename.Canonical().c_str(), ios::in | ios::binary); if (!ifs) return false; TFileName temp(TFileName::TempFile); tofstream ofs(temp.Canonical().c_str(), ios::out | ios::binary); if (!ofs) return false; // Build partial match table (Knuth-Morris-Pratt algorithm). // // On a mismatch at position i within the search term, the next[i] value gives us the next // position where there may be a match. For example, consider a mismatch at 'x' for the search // term "ab_abx". In this case, next[5] will be 2, since the prefix "ab" is also a suffix of // the partial match "ab_ab". // // Text: ...ab_ab_abx... // Search term (mismatched): ab_abx // Search term (matched): ab_abx // vector<int> next(SearchTerm.size()); { int i = 0; int j = next[0] = -1; while (i < static_cast<int>(SearchTerm.size()) - 1) { while (j >= 0 && SearchTerm[i] != SearchTerm[j]) j = next[j]; next[++i] = ++j; } } int pos = 0; int localReplacements = 0; while (!ifs.eof()) { tchar c = static_cast<tchar>(ifs.get()); if (ifs.eof()) { // Output any partial match, then break. // ofs.write(SearchTerm.c_str(), pos); break; } // On mismatch, backtrack to the next partial match, if any. // Then output the mismatching part. // int oldpos = pos; while (pos > 0 && c != SearchTerm[pos]) pos = next[pos]; ofs.write(SearchTerm.c_str(), oldpos - pos); // Accumulate match, or output mismatched character. // if (c == SearchTerm[pos]) // match { pos++; if (pos == static_cast<int>(SearchTerm.size())) // Full match; output replacement. { ofs << Replacement; ReplacementCount++; localReplacements++; pos = 0; } } else // no match ofs.put(c); } ifs.close(); ofs.close(); // If replacements were made, then overwrite the original file with the changes. // Then remove the temporary file. // if (localReplacements > 0) { bool r = temp.Copy(filename, false); if (!r) return false; } bool r = temp.Remove(); if (!r) return false; FileCount++; return true; } //----------------------------------------------------------------------------- void TReplacer::ReportResults(TWindow& window) { tostringstream s; if (FileCount == 0) s << _T("No files processed."); else if (FileCount == 1) s << _T("1 file processed."); else s << FileCount << _T(" files processed."); s << endl; if (ReplacementCount == 0) s << _T("No replacements made."); else if (ReplacementCount == 1) s << _T("1 replacement made."); else s << ReplacementCount << _T(" replacements made."); window.MessageBox(s.str(), _T("Replace Results"), MB_ICONINFORMATION); } //----------------------------------------------------------------------------- bool TToucher::ProcessFile(const TFileName& filename) { TFileStatus status; if (!filename.GetStatus(status)) return false; status.modifyTime = FileTime; if (!TFileName(filename).SetStatus(status)) return false; FileCount++; return true; } //----------------------------------------------------------------------------- void TToucher::ReportResults(TWindow& window) { tostringstream s; if (FileCount == 0) s << _T("No files processed."); else if (FileCount == 1) s << _T("1 file processed."); else s << FileCount << _T(" files processed."); window.MessageBox(s.str(), _T("Replace"), MB_OK); } } // namespace //----------------------------------------------------------------------------- bool PerformCommand(const TReplaceData& d, TWindow* resultParent) { if (d.Action == 0) { // Perform find-and-replace. // TReplacer replacer(d.SearchTerm, d.Replacement); bool r = TFileRecurser(d.Folder, d.Filter, d.RecurseFlag, replacer).RecurseFolders(); if (r && resultParent) replacer.ReportResults(*resultParent); return r; } else { // Perform touch. // TFileTime ft(TTime(d.Date, d.Time.GetHour(), d.Time.GetMinute(), d.Time.GetSecond())); ft.ToUniversalTime(); TToucher toucher(ft); bool r = TFileRecurser(d.Folder, d.Filter, d.RecurseFlag, toucher).RecurseFolders(); if (r && resultParent) toucher.ReportResults(*resultParent); return r; } }
[ "Pierre.Best@taxsystems.com" ]
Pierre.Best@taxsystems.com
b4b3639702bd972950a49d782f6810fb1e730578
e0bd9572d3d2e5e24b41ab5b33245cec0c8250c9
/MontiCompiler/MontiCompiler/TypeTableManager.h
4735e8b8cc1157dbb8989c4d1ebb45e19b59a6e3
[]
no_license
montionproductions/Compilador
f6088651281b2bb9d17a30750ef6c2ae544a4245
d168b9eaa44f002dfbf20e65923e9cd1d3e39a85
refs/heads/master
2021-01-23T12:32:05.231763
2017-08-19T00:32:00
2017-08-19T00:32:00
93,162,770
0
0
null
null
null
null
UTF-8
C++
false
false
1,656
h
#pragma once #include <unordered_map> #include "EnumNodes.h" #include "STree.h" class CSymbolManager; class CErrorController; class CTypeTableManager { public: CTypeTableManager(); ~CTypeTableManager(); void SetSymbolManager(CSymbolManager *sybolManagerPtr); CSymbolManager *m_ptrSymbolManager; void SetErrorControler(CErrorController *errorController); CErrorController *m_ptrErrorController; void AddSubExp(std::string id, SubExpr subExp); void AddExp(std::string id, std::vector<Token> expresion); void AddElement(std::string ID, Type::E type, int nLine); void AddDimensionTest(std::string IDvar, std::string IDexpr, Category::E context); void AddAssignation(std::string IDvar, std::string IDexpr); std::vector<CSTree> vTrees; void CreateTree(NodeExpr *nodeExpr, Op::E Opertator, Type::E ReturnType); void CheckSubExp(); void CheckExpresions(); void CheckAssign(); void CheckDimensions(); void CheckTypes(); std::vector<Token> GetExpresion(std::string); SubExpr GetSubExpresion(std::string); private: //void *GenerateValueExpr(SubExpr subExp); //bool CompareType(SubExpr subExp, int index); std::unordered_map<std::string, RType> Elements; // contiene las pruebas de tipo que se deben hacer std::unordered_map<std::string, Dimension> DC; // Comprobacion de dimenciones // ======================= Arboles semanticos ======================================= std::unordered_map<std::string, std::vector<Token>> Expresions; /// Arboles semanticos std::unordered_map<std::string, SubExpr> SubExpresions; // Map de sub expresiones std::vector<Asign> vAssignations; // contiene las asignaciones que se deben hacer };
[ "idv15c.jmontion@uartesdigitales.edu.mx" ]
idv15c.jmontion@uartesdigitales.edu.mx
295492fb66c8cdde46ba40985dee1180eee8ee37
1ada0d995d8de7892d47857fe10b6f9b2bae4a40
/WinCode/刷题/洛谷刷题/数学/P1029最大公约数和最小公倍数.cpp
578af8a5e2529a2a36747e8f2523a61e4c124dac
[]
no_license
Chicaogo/My-Linux-git
4d99065b5cb84a089a3b036d9a472333208d1350
185bcbb72d37eecb6e84a15781f4e255e9df29d1
refs/heads/master
2020-03-27T13:01:35.319019
2018-10-05T14:34:14
2018-10-05T14:34:14
146,585,341
0
0
null
null
null
null
UTF-8
C++
false
false
344
cpp
#include<bits/stdc++.h> using namespace std; int m,n,ans; int gcd(int x,int y) { if(y==0)return x; return gcd(y,x%y); } int main() { cin>>n>>m; for(int i=1;i <= sqrt(m*n);i++) { if((n*m)%i == 0 && gcd(i,(n*m)/i)==n) ans++; } cout << ans*2; getchar();getchar();getchar(); return 0; }
[ "chicago01@qq.com" ]
chicago01@qq.com
008bb2de0cc9826a89dc9a92f4478526954f973a
006f035d65012b7c5af15d54716407a276a096a8
/src/Core/src/assign_openings.cpp
4a455bf0075bb880cc85fb38b70865a778244f4d
[]
no_license
rosecodym/space-boundary-tool
4ce5b67fd96ec9b66f45aca60e0e69f4f8936e93
300db4084cd19b092bdf2e8432da065daeaa7c55
refs/heads/master
2020-12-24T06:51:32.828579
2016-08-12T16:13:51
2016-08-12T16:13:51
65,566,229
7
0
null
null
null
null
UTF-8
C++
false
false
703
cpp
#include "precompiled.h" #include "assign_openings.h" #include "surface.h" #include "oriented_area.h" #include "area.h" namespace opening_assignment { namespace impl { boost::optional<oriented_area> has_subarea( const oriented_area & parent, const oriented_area & child, double height_eps) { if (parent.sense() == child.sense() && &parent.orientation() == &child.orientation() && equality_context::are_equal( parent.height(), child.height(), height_eps)) { auto intr = parent.area_2d() * child.area_2d(); if (!intr.is_empty()) { return oriented_area(parent, intr); } } return boost::optional<oriented_area>(); } } // namespace impl } // namespace opening_assignment
[ "cmrose@lbl.gov" ]
cmrose@lbl.gov
7e6a0e910d7c560af51a60d66177f6538c6581da
6c8a158fd3eea6dc37b8497f9eb7ea2e57b91896
/132_QtQmlDashboardAnimation/carinfoproxy.h
5d6de1168566215e28b5f95263882091c9140c05
[]
no_license
beduty/QtTrain
07677ec37730c230dbf5ba04c30ef69f39d29a45
5983ef485b5f45ae59ef2ac33bc40c7241ae6db7
refs/heads/master
2023-02-10T11:22:49.400596
2021-01-04T14:59:20
2021-01-04T14:59:20
326,716,000
0
0
null
null
null
null
UTF-8
C++
false
false
1,973
h
#ifndef CARINFOPROXY_H #define CARINFOPROXY_H #include <QObject> #include "carinfo.h" /// 프록시 패턴. /// 1. 일종의 비서(대리자)다. /// 2. 인터페이스 역할만 하여 외부의 요청을 수행하는 역할을 한다. /// 3. 여기서는 CarInfoProxy를 사용하여 QML과의 인터페이스를 수행한다. /// 4. Q_PROPERTY 의 READ는 실제 객체인 CarInfo m_car;에서 수행한다. /// 5. 프록시 패턴을 위해서 외부와의 인터페이스를 만들어준 것처럼, /// 대리자와 실제 객체간에도 요청하고 응답을 받는 인터페이스가 필요하다. /// /// --> 가져다 쓰는 QML 입장에서는 인터페이스만 알면되기 때문에 간편하다! class CarInfoProxy : public QObject { Q_OBJECT /// CarInfo의 Q_PROPERTY인 CarInfoEngine과 speed, distance에 접근 할 수 있도록, /// QML에 인터페이스 마련해주도록 동일하게 Q_PROPERY 대리자를 만든다. Q_PROPERTY(CarInfoEngine *engine READ engine NOTIFY engineChanged) Q_PROPERTY(int speed READ speed WRITE setSpeed NOTIFY speedChanged) Q_PROPERTY(double distance READ distance WRITE setDistance NOTIFY distanceChanged) Q_PROPERTY(bool visible READ visible WRITE setVisible NOTIFY visibleChanged) public: explicit CarInfoProxy(QObject *parent = nullptr); CarInfoEngine * engine() const; int speed() const; double distance() const; bool visible() const; public slots: void setSpeed(int speed); void setDistance(double distance); void setVisible(bool v); signals: void engineChanged(CarInfoEngine * engine); void speedChanged(int speed); void distanceChanged(double distance); void visibleChanged(bool visible); private: CarInfo m_car; // 프록시 패턴이므로 CarInfo 하나만 유지한다. // CarInfoEngine * m_engine; // int m_speed; // double m_distance; bool m_visible; }; #endif // CARINFOPROXY_H
[ "jungty6735@gmail.com" ]
jungty6735@gmail.com
edf6ab0a9328f599c94da2829757107848ea2379
9d8b17c43380d53d3159612b09ec6bff643c3689
/Lab2_2/Lab2_2/Lab2_2.cpp
e99c5b7ae98f4f87172ad5da6624e476ae51e505
[ "Unlicense" ]
permissive
ThomasMorrissey/Cpp_Lab_02
822710daa7dbf128e25bb61c2d2f99098890fca4
b02fe5e28ecff8179912215595b0c2057fa980c3
refs/heads/master
2020-12-26T15:52:38.204283
2015-01-27T12:25:25
2015-01-27T12:25:25
29,743,093
0
0
null
2015-01-23T17:07:17
2015-01-23T17:07:16
null
UTF-8
C++
false
false
807
cpp
// Lab2_2.cpp : Recreate guess my number in C++ //Author: Thomas Morrissey //Date: 1-23-2015 #include "stdafx.h" #include <iostream> #include <string> #include <ctime> using namespace std; int main() { cout << "Welcome to Guess my Number!" << endl; cout << "I'm think of a number between 1 and 100." << endl; cout << "Try to guess it in as few attempts as possible." << endl; int Number = 0; int Guess = 0; int Attempts = 0; srand(time(NULL)); Number = rand() % 100 + 1; while (Number != Guess){ cout << "What is your guess: "; cin >> Guess; if (Number > Guess){ cout << "Higher" << endl; } else if (Number < Guess){ cout << "Lower" << endl; } else{ cout << "You got it!" << endl; } } cout << "Press <Enter> to Exit." << endl; getchar(); getchar(); return 0; }
[ "IEUser@IE8Win7-09P.cis.com" ]
IEUser@IE8Win7-09P.cis.com
b0d31f99ef09c97a92f521f0141a4f54841a17ca
03625da9b7d6b514565b311249a2af321c6373b6
/fat12/fat12/stdafx.cpp
cee96651b943e44feca9e13553e6fc2bc20f0105
[]
no_license
zhaoqike/os
6b6256767eae686901a15ecbc7bea55f67a5b91b
dcc1b4f249f755dee54f053f6e1516ec88b72344
refs/heads/master
2021-01-01T05:32:38.402884
2012-12-25T13:39:43
2012-12-25T13:39:43
null
0
0
null
null
null
null
GB18030
C++
false
false
257
cpp
// stdafx.cpp : 只包括标准包含文件的源文件 // fat12.pch 将作为预编译头 // stdafx.obj 将包含预编译类型信息 #include "stdafx.h" // TODO: 在 STDAFX.H 中 // 引用任何所需的附加头文件,而不是在此文件中引用
[ "zhaoqike@163.com" ]
zhaoqike@163.com
fdf9ccecd395623f4edf7f4b96d140c3c408a520
eb8a3c494aca2dca624b8e6af0d72daec69a30bf
/shuttle.cpp
bce47bffcf58602dc4d9e872b4e1eecdae9b325a
[]
no_license
asand017/AirportShuttleModel
fdc70e78f986edaf7be6ae28c36b1b3ed6af42e6
372d1d4d7d6555432edf0a783f86bb6697c3ba99
refs/heads/master
2021-01-20T09:57:11.753306
2017-05-04T23:44:44
2017-05-04T23:44:44
90,310,859
0
0
null
null
null
null
UTF-8
C++
false
false
8,231
cpp
// Simulation of the Hertz airport shuttle bus, which picks up passengers // from the airport terminal building going to the Hertz rental car lot. #include <iostream> #include "cpp.h" #include <string.h> #include <stdio.h> #include <stdlib.h> #include <string> #include <cmath> #include <time.h> #include <vector> // to use vector instead of array for terminal and pass types - AARON using namespace std; #define NUM_SEATS 6 // number of seats available on shuttle #define TINY 1.e-20 // a very small time period //#define TERMNL 0 // named constants for labelling event set long int TERMNL = 0; long int CARLOT = 1; //#define CARLOT 1 //facility_set buttons ("Curb",2); // customer queues at each stop facility_set *buttons; facility rest ("rest"); // dummy facility indicating an idle shuttle event_set *get_off_now; //("get_off_now"); // all customers can get off shuttle //event_set hop_on("board shuttle", 2); // invite one customer to board at this stop event_set *hop_on; event boarded ("boarded"); // one customer responds after taking a seat //event_set shuttle_called ("call button", 2); // call buttons at each location event_set *shuttle_called; void make_passengers(long whereami); // passenger generator //string places[2] = {"Terminal", "CarLot"}; // where to generate vector<string> places = {"Terminal", "CarLot"}; long group_size(); void passenger(long whoami); // passenger trajectory //string people[2] = {"arr_cust","dep_cust"}; // who was generated vector<string> people = {"arr_cust", "dep_cust"}; void shuttle(); // trajectory of the shuttle bus consists of... void loop_around_airport(long & seats_used); // ... repeated trips around airport void load_shuttle(long whereami, long & on_board); // posssibly loading passengers qtable shuttle_occ("bus occupancy"); // time average of how full is the bus extern "C" void sim(int argc, char *argv[]) // main process { srand(time(NULL)); if(argc != 4){ cout << "need 3 arguments" << endl; exit(1); }else{ int num_terms = atoi(argv[1]); int num_shutt = atoi(argv[2]); int mean_time = atoi(argv[3]); string new_term = "Terminal"; // updating amount of terminals for(unsigned int i = 2; i < num_terms + 1; ++i){ new_term += to_string(i); places.push_back(new_term); //cout << new_term << endl; new_term = "Terminal"; } string new_pass_a = "arr_cust"; string new_pass_d = "dep_cust"; unsigned int x = 2; for(unsigned int i = 2; i < 2 * num_terms; i++){ //updating passenger types if(i % 2 == 0){ //even passengers - depart new_pass_d += to_string(x); people.push_back(new_pass_d); new_pass_d = "dep_cust"; x++; }else{ // odd passengers - arrive new_pass_a += to_string(x); people.push_back(new_pass_a); new_pass_a = "arr_cust"; x++; } } buttons = new facility_set("Curb", num_terms + 1); hop_on = new event_set("board shuttle", num_terms + 1); shuttle_called = new event_set("call button", num_terms + 1); get_off_now = new event_set("get off now", num_terms + 1); create("sim"); shuttle_occ.add_histogram(NUM_SEATS+1,0,NUM_SEATS); for(unsigned int i = 0; i < TERMNL + 1; i++){ if(i == 1){ continue; } make_passengers(i); // generate a stream of arriving customers } make_passengers(CARLOT); // generate a stream of departing customers shuttle(); // create a single shuttle hold (1440); // wait for a whole day (in minutes) to pass report(); status_facilities(); } } // Model segment 1: generate groups of new passengers at specified location void make_passengers(long whereami) { const char* myName=places[whereami].c_str(); // hack because CSIM wants a char* create(myName); while(clock < 1440.) // run for one day (in minutes) { hold(expntl(10)); // exponential interarrivals, mean 10 minutes long group = group_size(); for (long i=0;i<group;i++) // create each member of the group passenger(whereami); // new passenger appears at this location } } // Model segment 2: activities followed by an individual passenger void passenger(long whoami) { const char* myName=people[whoami].c_str(); // hack because CSIM wants a char* create(myName); (*buttons) [whoami].reserve(); // join the queue at my starting location (*shuttle_called) [whoami].set(); // head of queue, so call shuttle (*hop_on) [whoami].queue(); // wait for shuttle and invitation to board (*shuttle_called) [whoami].clear();// cancel my call; next in line will push hold(uniform(0.5,1.0)); // takes time to get seated boarded.set(); // tell driver you are in your seat (*buttons) [whoami].release(); // let next person (if any) access button get_off_now->wait_any(); // everybody off when shuttle reaches next stop } // Model segment 3: the shuttle bus void shuttle() { create ("shuttle"); while(1) { // loop forever // start off in idle state, waiting for the first call... rest.reserve(); // relax at garage till called from somewhere long who_pushed = shuttle_called->wait_any(); (*shuttle_called) [who_pushed].set(); // loop exit needs to see event rest.release(); // and back to work we go! long seats_used = 0; // shuttle is initially empty shuttle_occ.note_value(seats_used); hold(5); // 5 minutes to reach car lot stop // Keep going around the loop until there are no calls waiting //while (((*shuttle_called) [TERMNL].state()==OCC)|| // FIGURE OUT WAY TO STOP AT EACH TERMINAL // ((*shuttle_called) [CARLOT].state()==OCC) ) // loop_around_airport(seats_used); for(unsigned int i = 0; i < (*shuttle_called).num_events(); i++){ //loop through every terminal + car lot if((*shuttle_called) [i].state()==OCC){ loop_around_airport(seats_used); } } } } long group_size() { // calculates the number of passengers in a group double x = prob(); if (x < 0.3) return 1; else { if (x < 0.7) return 2; else return 5; } } // HERE IMPLEMENT PASSENGER TERMINAL SETUP void loop_around_airport(long & seats_used) { // one trip around the airport // Start by picking up departing passengers at car lot load_shuttle(CARLOT, seats_used); shuttle_occ.note_value(seats_used); //-------------------- for(unsigned int i = 0; i < places.size(); i++){ if(i == 1 || (*buttons) [i].name() == "Curb[1]"){ hold (uniform(3,5)); continue; } hold (uniform(3,5)); // drive to airport terminal // drop off all departing passengers at airport terminal if(seats_used > 0 && (*buttons) [i].name() == ("Curb[" + to_string(i) + "]")) { (*get_off_now) [i].set(); // open door and let them off seats_used = 0; //seats_used - (*get_off_now) [i].wait_cnt(); shuttle_occ.note_value(seats_used); } if(seats_used == 0){ //--------------------- // pick up arriving passengers at airport terminal load_shuttle(i, seats_used); shuttle_occ.note_value(seats_used); } } hold (uniform(3,5)); // drive to Hertz car lot hold (uniform(3,5)); // drop off all arriving passengers at car lot if(seats_used > 0) { (*get_off_now) [1].set(); // open door and let them off seats_used = 0; shuttle_occ.note_value(seats_used); } // Back to starting point. Bus is empty. Maybe I can rest... } void load_shuttle(long whereami, long & on_board) // manage passenger loading { // invite passengers to enter, one at a time, until all seats are full while((on_board < NUM_SEATS) && ((*buttons) [whereami].num_busy() + (*buttons) [whereami].qlength() > 0)) { (*hop_on) [whereami].set();// invite one person to board boarded.wait(); // pause until that person is seated on_board++; hold(TINY); // let next passenger (if any) reset the button } }
[ "asand017@ucr.edu" ]
asand017@ucr.edu
48ac890b6db8760f8892e6a9cb22dacc35c4221d
c5111c91943f467bc4de4bc2142d129f7eddeeeb
/clipp/null_consumer.cpp
c4a64166d63416f3dfc9a662c1aa24de2d714d5c
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0", "LicenseRef-scancode-generic-cla" ]
permissive
orenyomtov/ironbee
9ec91bdad60ab367543ae753a2152f2b27eef366
320064e17543665989b67f6187150a4a26cf00ef
refs/heads/master
2021-01-22T15:00:42.739930
2015-07-24T18:04:34
2015-07-24T18:04:34
39,648,775
1
0
null
2015-07-24T17:55:39
2015-07-24T17:55:38
null
UTF-8
C++
false
false
1,241
cpp
/***************************************************************************** * Licensed to Qualys, Inc. (QUALYS) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * QUALYS licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ****************************************************************************/ /** * @file * @brief IronBee --- CLIPP Null Consumer Implementation * * @author Christopher Alfeld <calfeld@qualys.com> */ #include "null_consumer.hpp" namespace IronBee { namespace CLIPP { bool NullConsumer::operator()(const Input::input_p& input) { return true; } } // CLIPP } // IronBee
[ "calfeld@qualys.com" ]
calfeld@qualys.com
9a6245c533f7bf484b20a0660ee310474ed4e999
94dcc118f9492896d6781e5a3f59867eddfbc78a
/llvm/lib/Target/Mips/MCTargetDesc/MipsTargetStreamer.cpp
c6bb84d3b02e967d1115bd93d99e5bad2293c18c
[ "Apache-2.0", "NCSA" ]
permissive
vusec/safeinit
43fd500b5a832cce2bd87696988b64a718a5d764
8425bc49497684fe16e0063190dec8c3c58dc81a
refs/heads/master
2021-07-07T11:46:25.138899
2021-05-05T10:40:52
2021-05-05T10:40:52
76,794,423
22
5
null
null
null
null
UTF-8
C++
false
false
41,719
cpp
//===-- MipsTargetStreamer.cpp - Mips Target Streamer Methods -------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// // // This file provides Mips specific target streamer methods. // //===----------------------------------------------------------------------===// #include "MipsTargetStreamer.h" #include "InstPrinter/MipsInstPrinter.h" #include "MipsELFStreamer.h" #include "MipsMCExpr.h" #include "MipsMCTargetDesc.h" #include "MipsTargetObjectFile.h" #include "llvm/MC/MCContext.h" #include "llvm/MC/MCSectionELF.h" #include "llvm/MC/MCSubtargetInfo.h" #include "llvm/MC/MCSymbolELF.h" #include "llvm/Support/CommandLine.h" #include "llvm/Support/ELF.h" #include "llvm/Support/ErrorHandling.h" #include "llvm/Support/FormattedStream.h" using namespace llvm; namespace { static cl::opt<bool> RoundSectionSizes( "mips-round-section-sizes", cl::init(false), cl::desc("Round section sizes up to the section alignment"), cl::Hidden); } // end anonymous namespace MipsTargetStreamer::MipsTargetStreamer(MCStreamer &S) : MCTargetStreamer(S), ModuleDirectiveAllowed(true) { GPRInfoSet = FPRInfoSet = FrameInfoSet = false; } void MipsTargetStreamer::emitDirectiveSetMicroMips() {} void MipsTargetStreamer::emitDirectiveSetNoMicroMips() {} void MipsTargetStreamer::emitDirectiveSetMips16() {} void MipsTargetStreamer::emitDirectiveSetNoMips16() { forbidModuleDirective(); } void MipsTargetStreamer::emitDirectiveSetReorder() { forbidModuleDirective(); } void MipsTargetStreamer::emitDirectiveSetNoReorder() {} void MipsTargetStreamer::emitDirectiveSetMacro() { forbidModuleDirective(); } void MipsTargetStreamer::emitDirectiveSetNoMacro() { forbidModuleDirective(); } void MipsTargetStreamer::emitDirectiveSetMsa() { forbidModuleDirective(); } void MipsTargetStreamer::emitDirectiveSetNoMsa() { forbidModuleDirective(); } void MipsTargetStreamer::emitDirectiveSetAt() { forbidModuleDirective(); } void MipsTargetStreamer::emitDirectiveSetAtWithArg(unsigned RegNo) { forbidModuleDirective(); } void MipsTargetStreamer::emitDirectiveSetNoAt() { forbidModuleDirective(); } void MipsTargetStreamer::emitDirectiveEnd(StringRef Name) {} void MipsTargetStreamer::emitDirectiveEnt(const MCSymbol &Symbol) {} void MipsTargetStreamer::emitDirectiveAbiCalls() {} void MipsTargetStreamer::emitDirectiveNaN2008() {} void MipsTargetStreamer::emitDirectiveNaNLegacy() {} void MipsTargetStreamer::emitDirectiveOptionPic0() {} void MipsTargetStreamer::emitDirectiveOptionPic2() {} void MipsTargetStreamer::emitDirectiveInsn() { forbidModuleDirective(); } void MipsTargetStreamer::emitFrame(unsigned StackReg, unsigned StackSize, unsigned ReturnReg) {} void MipsTargetStreamer::emitMask(unsigned CPUBitmask, int CPUTopSavedRegOff) {} void MipsTargetStreamer::emitFMask(unsigned FPUBitmask, int FPUTopSavedRegOff) { } void MipsTargetStreamer::emitDirectiveSetArch(StringRef Arch) { forbidModuleDirective(); } void MipsTargetStreamer::emitDirectiveSetMips0() { forbidModuleDirective(); } void MipsTargetStreamer::emitDirectiveSetMips1() { forbidModuleDirective(); } void MipsTargetStreamer::emitDirectiveSetMips2() { forbidModuleDirective(); } void MipsTargetStreamer::emitDirectiveSetMips3() { forbidModuleDirective(); } void MipsTargetStreamer::emitDirectiveSetMips4() { forbidModuleDirective(); } void MipsTargetStreamer::emitDirectiveSetMips5() { forbidModuleDirective(); } void MipsTargetStreamer::emitDirectiveSetMips32() { forbidModuleDirective(); } void MipsTargetStreamer::emitDirectiveSetMips32R2() { forbidModuleDirective(); } void MipsTargetStreamer::emitDirectiveSetMips32R3() { forbidModuleDirective(); } void MipsTargetStreamer::emitDirectiveSetMips32R5() { forbidModuleDirective(); } void MipsTargetStreamer::emitDirectiveSetMips32R6() { forbidModuleDirective(); } void MipsTargetStreamer::emitDirectiveSetMips64() { forbidModuleDirective(); } void MipsTargetStreamer::emitDirectiveSetMips64R2() { forbidModuleDirective(); } void MipsTargetStreamer::emitDirectiveSetMips64R3() { forbidModuleDirective(); } void MipsTargetStreamer::emitDirectiveSetMips64R5() { forbidModuleDirective(); } void MipsTargetStreamer::emitDirectiveSetMips64R6() { forbidModuleDirective(); } void MipsTargetStreamer::emitDirectiveSetPop() { forbidModuleDirective(); } void MipsTargetStreamer::emitDirectiveSetPush() { forbidModuleDirective(); } void MipsTargetStreamer::emitDirectiveSetSoftFloat() { forbidModuleDirective(); } void MipsTargetStreamer::emitDirectiveSetHardFloat() { forbidModuleDirective(); } void MipsTargetStreamer::emitDirectiveSetDsp() { forbidModuleDirective(); } void MipsTargetStreamer::emitDirectiveSetNoDsp() { forbidModuleDirective(); } void MipsTargetStreamer::emitDirectiveCpLoad(unsigned RegNo) {} bool MipsTargetStreamer::emitDirectiveCpRestore( int Offset, std::function<unsigned()> GetATReg, SMLoc IDLoc, const MCSubtargetInfo *STI) { forbidModuleDirective(); return true; } void MipsTargetStreamer::emitDirectiveCpsetup(unsigned RegNo, int RegOrOffset, const MCSymbol &Sym, bool IsReg) { } void MipsTargetStreamer::emitDirectiveCpreturn(unsigned SaveLocation, bool SaveLocationIsRegister) {} void MipsTargetStreamer::emitDirectiveModuleFP() {} void MipsTargetStreamer::emitDirectiveModuleOddSPReg() { if (!ABIFlagsSection.OddSPReg && !ABIFlagsSection.Is32BitABI) report_fatal_error("+nooddspreg is only valid for O32"); } void MipsTargetStreamer::emitDirectiveModuleSoftFloat() {} void MipsTargetStreamer::emitDirectiveModuleHardFloat() {} void MipsTargetStreamer::emitDirectiveSetFp( MipsABIFlagsSection::FpABIKind Value) { forbidModuleDirective(); } void MipsTargetStreamer::emitDirectiveSetOddSPReg() { forbidModuleDirective(); } void MipsTargetStreamer::emitDirectiveSetNoOddSPReg() { forbidModuleDirective(); } void MipsTargetStreamer::emitR(unsigned Opcode, unsigned Reg0, SMLoc IDLoc, const MCSubtargetInfo *STI) { MCInst TmpInst; TmpInst.setOpcode(Opcode); TmpInst.addOperand(MCOperand::createReg(Reg0)); TmpInst.setLoc(IDLoc); getStreamer().EmitInstruction(TmpInst, *STI); } void MipsTargetStreamer::emitRX(unsigned Opcode, unsigned Reg0, MCOperand Op1, SMLoc IDLoc, const MCSubtargetInfo *STI) { MCInst TmpInst; TmpInst.setOpcode(Opcode); TmpInst.addOperand(MCOperand::createReg(Reg0)); TmpInst.addOperand(Op1); TmpInst.setLoc(IDLoc); getStreamer().EmitInstruction(TmpInst, *STI); } void MipsTargetStreamer::emitRI(unsigned Opcode, unsigned Reg0, int32_t Imm, SMLoc IDLoc, const MCSubtargetInfo *STI) { emitRX(Opcode, Reg0, MCOperand::createImm(Imm), IDLoc, STI); } void MipsTargetStreamer::emitRR(unsigned Opcode, unsigned Reg0, unsigned Reg1, SMLoc IDLoc, const MCSubtargetInfo *STI) { emitRX(Opcode, Reg0, MCOperand::createReg(Reg1), IDLoc, STI); } void MipsTargetStreamer::emitII(unsigned Opcode, int16_t Imm1, int16_t Imm2, SMLoc IDLoc, const MCSubtargetInfo *STI) { MCInst TmpInst; TmpInst.setOpcode(Opcode); TmpInst.addOperand(MCOperand::createImm(Imm1)); TmpInst.addOperand(MCOperand::createImm(Imm2)); TmpInst.setLoc(IDLoc); getStreamer().EmitInstruction(TmpInst, *STI); } void MipsTargetStreamer::emitRRX(unsigned Opcode, unsigned Reg0, unsigned Reg1, MCOperand Op2, SMLoc IDLoc, const MCSubtargetInfo *STI) { MCInst TmpInst; TmpInst.setOpcode(Opcode); TmpInst.addOperand(MCOperand::createReg(Reg0)); TmpInst.addOperand(MCOperand::createReg(Reg1)); TmpInst.addOperand(Op2); TmpInst.setLoc(IDLoc); getStreamer().EmitInstruction(TmpInst, *STI); } void MipsTargetStreamer::emitRRR(unsigned Opcode, unsigned Reg0, unsigned Reg1, unsigned Reg2, SMLoc IDLoc, const MCSubtargetInfo *STI) { emitRRX(Opcode, Reg0, Reg1, MCOperand::createReg(Reg2), IDLoc, STI); } void MipsTargetStreamer::emitRRI(unsigned Opcode, unsigned Reg0, unsigned Reg1, int16_t Imm, SMLoc IDLoc, const MCSubtargetInfo *STI) { emitRRX(Opcode, Reg0, Reg1, MCOperand::createImm(Imm), IDLoc, STI); } void MipsTargetStreamer::emitAddu(unsigned DstReg, unsigned SrcReg, unsigned TrgReg, bool Is64Bit, const MCSubtargetInfo *STI) { emitRRR(Is64Bit ? Mips::DADDu : Mips::ADDu, DstReg, SrcReg, TrgReg, SMLoc(), STI); } void MipsTargetStreamer::emitDSLL(unsigned DstReg, unsigned SrcReg, int16_t ShiftAmount, SMLoc IDLoc, const MCSubtargetInfo *STI) { if (ShiftAmount >= 32) { emitRRI(Mips::DSLL32, DstReg, SrcReg, ShiftAmount - 32, IDLoc, STI); return; } emitRRI(Mips::DSLL, DstReg, SrcReg, ShiftAmount, IDLoc, STI); } void MipsTargetStreamer::emitEmptyDelaySlot(bool hasShortDelaySlot, SMLoc IDLoc, const MCSubtargetInfo *STI) { if (hasShortDelaySlot) emitRR(Mips::MOVE16_MM, Mips::ZERO, Mips::ZERO, IDLoc, STI); else emitRRI(Mips::SLL, Mips::ZERO, Mips::ZERO, 0, IDLoc, STI); } void MipsTargetStreamer::emitNop(SMLoc IDLoc, const MCSubtargetInfo *STI) { emitRRI(Mips::SLL, Mips::ZERO, Mips::ZERO, 0, IDLoc, STI); } /// Emit the $gp restore operation for .cprestore. void MipsTargetStreamer::emitGPRestore(int Offset, SMLoc IDLoc, const MCSubtargetInfo *STI) { emitLoadWithImmOffset(Mips::LW, Mips::GP, Mips::SP, Offset, Mips::GP, IDLoc, STI); } /// Emit a store instruction with an immediate offset. void MipsTargetStreamer::emitStoreWithImmOffset( unsigned Opcode, unsigned SrcReg, unsigned BaseReg, int64_t Offset, std::function<unsigned()> GetATReg, SMLoc IDLoc, const MCSubtargetInfo *STI) { if (isInt<16>(Offset)) { emitRRI(Opcode, SrcReg, BaseReg, Offset, IDLoc, STI); return; } // sw $8, offset($8) => lui $at, %hi(offset) // add $at, $at, $8 // sw $8, %lo(offset)($at) unsigned ATReg = GetATReg(); if (!ATReg) return; unsigned LoOffset = Offset & 0x0000ffff; unsigned HiOffset = (Offset & 0xffff0000) >> 16; // If msb of LoOffset is 1(negative number) we must increment HiOffset // to account for the sign-extension of the low part. if (LoOffset & 0x8000) HiOffset++; // Generate the base address in ATReg. emitRI(Mips::LUi, ATReg, HiOffset, IDLoc, STI); if (BaseReg != Mips::ZERO) emitRRR(Mips::ADDu, ATReg, ATReg, BaseReg, IDLoc, STI); // Emit the store with the adjusted base and offset. emitRRI(Opcode, SrcReg, ATReg, LoOffset, IDLoc, STI); } /// Emit a store instruction with an symbol offset. Symbols are assumed to be /// out of range for a simm16 will be expanded to appropriate instructions. void MipsTargetStreamer::emitStoreWithSymOffset( unsigned Opcode, unsigned SrcReg, unsigned BaseReg, MCOperand &HiOperand, MCOperand &LoOperand, unsigned ATReg, SMLoc IDLoc, const MCSubtargetInfo *STI) { // sw $8, sym => lui $at, %hi(sym) // sw $8, %lo(sym)($at) // Generate the base address in ATReg. emitRX(Mips::LUi, ATReg, HiOperand, IDLoc, STI); if (BaseReg != Mips::ZERO) emitRRR(Mips::ADDu, ATReg, ATReg, BaseReg, IDLoc, STI); // Emit the store with the adjusted base and offset. emitRRX(Opcode, SrcReg, ATReg, LoOperand, IDLoc, STI); } /// Emit a load instruction with an immediate offset. DstReg and TmpReg are /// permitted to be the same register iff DstReg is distinct from BaseReg and /// DstReg is a GPR. It is the callers responsibility to identify such cases /// and pass the appropriate register in TmpReg. void MipsTargetStreamer::emitLoadWithImmOffset(unsigned Opcode, unsigned DstReg, unsigned BaseReg, int64_t Offset, unsigned TmpReg, SMLoc IDLoc, const MCSubtargetInfo *STI) { if (isInt<16>(Offset)) { emitRRI(Opcode, DstReg, BaseReg, Offset, IDLoc, STI); return; } // 1) lw $8, offset($9) => lui $8, %hi(offset) // add $8, $8, $9 // lw $8, %lo(offset)($9) // 2) lw $8, offset($8) => lui $at, %hi(offset) // add $at, $at, $8 // lw $8, %lo(offset)($at) unsigned LoOffset = Offset & 0x0000ffff; unsigned HiOffset = (Offset & 0xffff0000) >> 16; // If msb of LoOffset is 1(negative number) we must increment HiOffset // to account for the sign-extension of the low part. if (LoOffset & 0x8000) HiOffset++; // Generate the base address in TmpReg. emitRI(Mips::LUi, TmpReg, HiOffset, IDLoc, STI); if (BaseReg != Mips::ZERO) emitRRR(Mips::ADDu, TmpReg, TmpReg, BaseReg, IDLoc, STI); // Emit the load with the adjusted base and offset. emitRRI(Opcode, DstReg, TmpReg, LoOffset, IDLoc, STI); } /// Emit a load instruction with an symbol offset. Symbols are assumed to be /// out of range for a simm16 will be expanded to appropriate instructions. /// DstReg and TmpReg are permitted to be the same register iff DstReg is a /// GPR. It is the callers responsibility to identify such cases and pass the /// appropriate register in TmpReg. void MipsTargetStreamer::emitLoadWithSymOffset(unsigned Opcode, unsigned DstReg, unsigned BaseReg, MCOperand &HiOperand, MCOperand &LoOperand, unsigned TmpReg, SMLoc IDLoc, const MCSubtargetInfo *STI) { // 1) lw $8, sym => lui $8, %hi(sym) // lw $8, %lo(sym)($8) // 2) ldc1 $f0, sym => lui $at, %hi(sym) // ldc1 $f0, %lo(sym)($at) // Generate the base address in TmpReg. emitRX(Mips::LUi, TmpReg, HiOperand, IDLoc, STI); if (BaseReg != Mips::ZERO) emitRRR(Mips::ADDu, TmpReg, TmpReg, BaseReg, IDLoc, STI); // Emit the load with the adjusted base and offset. emitRRX(Opcode, DstReg, TmpReg, LoOperand, IDLoc, STI); } MipsTargetAsmStreamer::MipsTargetAsmStreamer(MCStreamer &S, formatted_raw_ostream &OS) : MipsTargetStreamer(S), OS(OS) {} void MipsTargetAsmStreamer::emitDirectiveSetMicroMips() { OS << "\t.set\tmicromips\n"; forbidModuleDirective(); } void MipsTargetAsmStreamer::emitDirectiveSetNoMicroMips() { OS << "\t.set\tnomicromips\n"; forbidModuleDirective(); } void MipsTargetAsmStreamer::emitDirectiveSetMips16() { OS << "\t.set\tmips16\n"; forbidModuleDirective(); } void MipsTargetAsmStreamer::emitDirectiveSetNoMips16() { OS << "\t.set\tnomips16\n"; MipsTargetStreamer::emitDirectiveSetNoMips16(); } void MipsTargetAsmStreamer::emitDirectiveSetReorder() { OS << "\t.set\treorder\n"; MipsTargetStreamer::emitDirectiveSetReorder(); } void MipsTargetAsmStreamer::emitDirectiveSetNoReorder() { OS << "\t.set\tnoreorder\n"; forbidModuleDirective(); } void MipsTargetAsmStreamer::emitDirectiveSetMacro() { OS << "\t.set\tmacro\n"; MipsTargetStreamer::emitDirectiveSetMacro(); } void MipsTargetAsmStreamer::emitDirectiveSetNoMacro() { OS << "\t.set\tnomacro\n"; MipsTargetStreamer::emitDirectiveSetNoMacro(); } void MipsTargetAsmStreamer::emitDirectiveSetMsa() { OS << "\t.set\tmsa\n"; MipsTargetStreamer::emitDirectiveSetMsa(); } void MipsTargetAsmStreamer::emitDirectiveSetNoMsa() { OS << "\t.set\tnomsa\n"; MipsTargetStreamer::emitDirectiveSetNoMsa(); } void MipsTargetAsmStreamer::emitDirectiveSetAt() { OS << "\t.set\tat\n"; MipsTargetStreamer::emitDirectiveSetAt(); } void MipsTargetAsmStreamer::emitDirectiveSetAtWithArg(unsigned RegNo) { OS << "\t.set\tat=$" << Twine(RegNo) << "\n"; MipsTargetStreamer::emitDirectiveSetAtWithArg(RegNo); } void MipsTargetAsmStreamer::emitDirectiveSetNoAt() { OS << "\t.set\tnoat\n"; MipsTargetStreamer::emitDirectiveSetNoAt(); } void MipsTargetAsmStreamer::emitDirectiveEnd(StringRef Name) { OS << "\t.end\t" << Name << '\n'; } void MipsTargetAsmStreamer::emitDirectiveEnt(const MCSymbol &Symbol) { OS << "\t.ent\t" << Symbol.getName() << '\n'; } void MipsTargetAsmStreamer::emitDirectiveAbiCalls() { OS << "\t.abicalls\n"; } void MipsTargetAsmStreamer::emitDirectiveNaN2008() { OS << "\t.nan\t2008\n"; } void MipsTargetAsmStreamer::emitDirectiveNaNLegacy() { OS << "\t.nan\tlegacy\n"; } void MipsTargetAsmStreamer::emitDirectiveOptionPic0() { OS << "\t.option\tpic0\n"; } void MipsTargetAsmStreamer::emitDirectiveOptionPic2() { OS << "\t.option\tpic2\n"; } void MipsTargetAsmStreamer::emitDirectiveInsn() { MipsTargetStreamer::emitDirectiveInsn(); OS << "\t.insn\n"; } void MipsTargetAsmStreamer::emitFrame(unsigned StackReg, unsigned StackSize, unsigned ReturnReg) { OS << "\t.frame\t$" << StringRef(MipsInstPrinter::getRegisterName(StackReg)).lower() << "," << StackSize << ",$" << StringRef(MipsInstPrinter::getRegisterName(ReturnReg)).lower() << '\n'; } void MipsTargetAsmStreamer::emitDirectiveSetArch(StringRef Arch) { OS << "\t.set arch=" << Arch << "\n"; MipsTargetStreamer::emitDirectiveSetArch(Arch); } void MipsTargetAsmStreamer::emitDirectiveSetMips0() { OS << "\t.set\tmips0\n"; MipsTargetStreamer::emitDirectiveSetMips0(); } void MipsTargetAsmStreamer::emitDirectiveSetMips1() { OS << "\t.set\tmips1\n"; MipsTargetStreamer::emitDirectiveSetMips1(); } void MipsTargetAsmStreamer::emitDirectiveSetMips2() { OS << "\t.set\tmips2\n"; MipsTargetStreamer::emitDirectiveSetMips2(); } void MipsTargetAsmStreamer::emitDirectiveSetMips3() { OS << "\t.set\tmips3\n"; MipsTargetStreamer::emitDirectiveSetMips3(); } void MipsTargetAsmStreamer::emitDirectiveSetMips4() { OS << "\t.set\tmips4\n"; MipsTargetStreamer::emitDirectiveSetMips4(); } void MipsTargetAsmStreamer::emitDirectiveSetMips5() { OS << "\t.set\tmips5\n"; MipsTargetStreamer::emitDirectiveSetMips5(); } void MipsTargetAsmStreamer::emitDirectiveSetMips32() { OS << "\t.set\tmips32\n"; MipsTargetStreamer::emitDirectiveSetMips32(); } void MipsTargetAsmStreamer::emitDirectiveSetMips32R2() { OS << "\t.set\tmips32r2\n"; MipsTargetStreamer::emitDirectiveSetMips32R2(); } void MipsTargetAsmStreamer::emitDirectiveSetMips32R3() { OS << "\t.set\tmips32r3\n"; MipsTargetStreamer::emitDirectiveSetMips32R3(); } void MipsTargetAsmStreamer::emitDirectiveSetMips32R5() { OS << "\t.set\tmips32r5\n"; MipsTargetStreamer::emitDirectiveSetMips32R5(); } void MipsTargetAsmStreamer::emitDirectiveSetMips32R6() { OS << "\t.set\tmips32r6\n"; MipsTargetStreamer::emitDirectiveSetMips32R6(); } void MipsTargetAsmStreamer::emitDirectiveSetMips64() { OS << "\t.set\tmips64\n"; MipsTargetStreamer::emitDirectiveSetMips64(); } void MipsTargetAsmStreamer::emitDirectiveSetMips64R2() { OS << "\t.set\tmips64r2\n"; MipsTargetStreamer::emitDirectiveSetMips64R2(); } void MipsTargetAsmStreamer::emitDirectiveSetMips64R3() { OS << "\t.set\tmips64r3\n"; MipsTargetStreamer::emitDirectiveSetMips64R3(); } void MipsTargetAsmStreamer::emitDirectiveSetMips64R5() { OS << "\t.set\tmips64r5\n"; MipsTargetStreamer::emitDirectiveSetMips64R5(); } void MipsTargetAsmStreamer::emitDirectiveSetMips64R6() { OS << "\t.set\tmips64r6\n"; MipsTargetStreamer::emitDirectiveSetMips64R6(); } void MipsTargetAsmStreamer::emitDirectiveSetDsp() { OS << "\t.set\tdsp\n"; MipsTargetStreamer::emitDirectiveSetDsp(); } void MipsTargetAsmStreamer::emitDirectiveSetNoDsp() { OS << "\t.set\tnodsp\n"; MipsTargetStreamer::emitDirectiveSetNoDsp(); } void MipsTargetAsmStreamer::emitDirectiveSetPop() { OS << "\t.set\tpop\n"; MipsTargetStreamer::emitDirectiveSetPop(); } void MipsTargetAsmStreamer::emitDirectiveSetPush() { OS << "\t.set\tpush\n"; MipsTargetStreamer::emitDirectiveSetPush(); } void MipsTargetAsmStreamer::emitDirectiveSetSoftFloat() { OS << "\t.set\tsoftfloat\n"; MipsTargetStreamer::emitDirectiveSetSoftFloat(); } void MipsTargetAsmStreamer::emitDirectiveSetHardFloat() { OS << "\t.set\thardfloat\n"; MipsTargetStreamer::emitDirectiveSetHardFloat(); } // Print a 32 bit hex number with all numbers. static void printHex32(unsigned Value, raw_ostream &OS) { OS << "0x"; for (int i = 7; i >= 0; i--) OS.write_hex((Value & (0xF << (i * 4))) >> (i * 4)); } void MipsTargetAsmStreamer::emitMask(unsigned CPUBitmask, int CPUTopSavedRegOff) { OS << "\t.mask \t"; printHex32(CPUBitmask, OS); OS << ',' << CPUTopSavedRegOff << '\n'; } void MipsTargetAsmStreamer::emitFMask(unsigned FPUBitmask, int FPUTopSavedRegOff) { OS << "\t.fmask\t"; printHex32(FPUBitmask, OS); OS << "," << FPUTopSavedRegOff << '\n'; } void MipsTargetAsmStreamer::emitDirectiveCpLoad(unsigned RegNo) { OS << "\t.cpload\t$" << StringRef(MipsInstPrinter::getRegisterName(RegNo)).lower() << "\n"; forbidModuleDirective(); } bool MipsTargetAsmStreamer::emitDirectiveCpRestore( int Offset, std::function<unsigned()> GetATReg, SMLoc IDLoc, const MCSubtargetInfo *STI) { MipsTargetStreamer::emitDirectiveCpRestore(Offset, GetATReg, IDLoc, STI); OS << "\t.cprestore\t" << Offset << "\n"; return true; } void MipsTargetAsmStreamer::emitDirectiveCpsetup(unsigned RegNo, int RegOrOffset, const MCSymbol &Sym, bool IsReg) { OS << "\t.cpsetup\t$" << StringRef(MipsInstPrinter::getRegisterName(RegNo)).lower() << ", "; if (IsReg) OS << "$" << StringRef(MipsInstPrinter::getRegisterName(RegOrOffset)).lower(); else OS << RegOrOffset; OS << ", "; OS << Sym.getName(); forbidModuleDirective(); } void MipsTargetAsmStreamer::emitDirectiveCpreturn(unsigned SaveLocation, bool SaveLocationIsRegister) { OS << "\t.cpreturn"; forbidModuleDirective(); } void MipsTargetAsmStreamer::emitDirectiveModuleFP() { OS << "\t.module\tfp="; OS << ABIFlagsSection.getFpABIString(ABIFlagsSection.getFpABI()) << "\n"; } void MipsTargetAsmStreamer::emitDirectiveSetFp( MipsABIFlagsSection::FpABIKind Value) { MipsTargetStreamer::emitDirectiveSetFp(Value); OS << "\t.set\tfp="; OS << ABIFlagsSection.getFpABIString(Value) << "\n"; } void MipsTargetAsmStreamer::emitDirectiveModuleOddSPReg() { MipsTargetStreamer::emitDirectiveModuleOddSPReg(); OS << "\t.module\t" << (ABIFlagsSection.OddSPReg ? "" : "no") << "oddspreg\n"; } void MipsTargetAsmStreamer::emitDirectiveSetOddSPReg() { MipsTargetStreamer::emitDirectiveSetOddSPReg(); OS << "\t.set\toddspreg\n"; } void MipsTargetAsmStreamer::emitDirectiveSetNoOddSPReg() { MipsTargetStreamer::emitDirectiveSetNoOddSPReg(); OS << "\t.set\tnooddspreg\n"; } void MipsTargetAsmStreamer::emitDirectiveModuleSoftFloat() { OS << "\t.module\tsoftfloat\n"; } void MipsTargetAsmStreamer::emitDirectiveModuleHardFloat() { OS << "\t.module\thardfloat\n"; } // This part is for ELF object output. MipsTargetELFStreamer::MipsTargetELFStreamer(MCStreamer &S, const MCSubtargetInfo &STI) : MipsTargetStreamer(S), MicroMipsEnabled(false), STI(STI) { MCAssembler &MCA = getStreamer().getAssembler(); // It's possible that MCObjectFileInfo isn't fully initialized at this point // due to an initialization order problem where LLVMTargetMachine creates the // target streamer before TargetLoweringObjectFile calls // InitializeMCObjectFileInfo. There doesn't seem to be a single place that // covers all cases so this statement covers most cases and direct object // emission must call setPic() once MCObjectFileInfo has been initialized. The // cases we don't handle here are covered by MipsAsmPrinter. Pic = MCA.getContext().getObjectFileInfo()->getRelocM() == Reloc::PIC_; const FeatureBitset &Features = STI.getFeatureBits(); // Set the header flags that we can in the constructor. // FIXME: This is a fairly terrible hack. We set the rest // of these in the destructor. The problem here is two-fold: // // a: Some of the eflags can be set/reset by directives. // b: There aren't any usage paths that initialize the ABI // pointer until after we initialize either an assembler // or the target machine. // We can fix this by making the target streamer construct // the ABI, but this is fraught with wide ranging dependency // issues as well. unsigned EFlags = MCA.getELFHeaderEFlags(); // Architecture if (Features[Mips::FeatureMips64r6]) EFlags |= ELF::EF_MIPS_ARCH_64R6; else if (Features[Mips::FeatureMips64r2] || Features[Mips::FeatureMips64r3] || Features[Mips::FeatureMips64r5]) EFlags |= ELF::EF_MIPS_ARCH_64R2; else if (Features[Mips::FeatureMips64]) EFlags |= ELF::EF_MIPS_ARCH_64; else if (Features[Mips::FeatureMips5]) EFlags |= ELF::EF_MIPS_ARCH_5; else if (Features[Mips::FeatureMips4]) EFlags |= ELF::EF_MIPS_ARCH_4; else if (Features[Mips::FeatureMips3]) EFlags |= ELF::EF_MIPS_ARCH_3; else if (Features[Mips::FeatureMips32r6]) EFlags |= ELF::EF_MIPS_ARCH_32R6; else if (Features[Mips::FeatureMips32r2] || Features[Mips::FeatureMips32r3] || Features[Mips::FeatureMips32r5]) EFlags |= ELF::EF_MIPS_ARCH_32R2; else if (Features[Mips::FeatureMips32]) EFlags |= ELF::EF_MIPS_ARCH_32; else if (Features[Mips::FeatureMips2]) EFlags |= ELF::EF_MIPS_ARCH_2; else EFlags |= ELF::EF_MIPS_ARCH_1; // Machine if (Features[Mips::FeatureCnMips]) EFlags |= ELF::EF_MIPS_MACH_OCTEON; // Other options. if (Features[Mips::FeatureNaN2008]) EFlags |= ELF::EF_MIPS_NAN2008; // -mabicalls and -mplt are not implemented but we should act as if they were // given. EFlags |= ELF::EF_MIPS_CPIC; MCA.setELFHeaderEFlags(EFlags); } void MipsTargetELFStreamer::emitLabel(MCSymbol *S) { auto *Symbol = cast<MCSymbolELF>(S); if (!isMicroMipsEnabled()) return; getStreamer().getAssembler().registerSymbol(*Symbol); uint8_t Type = Symbol->getType(); if (Type != ELF::STT_FUNC) return; Symbol->setOther(ELF::STO_MIPS_MICROMIPS); } void MipsTargetELFStreamer::finish() { MCAssembler &MCA = getStreamer().getAssembler(); const MCObjectFileInfo &OFI = *MCA.getContext().getObjectFileInfo(); // .bss, .text and .data are always at least 16-byte aligned. MCSection &TextSection = *OFI.getTextSection(); MCA.registerSection(TextSection); MCSection &DataSection = *OFI.getDataSection(); MCA.registerSection(DataSection); MCSection &BSSSection = *OFI.getBSSSection(); MCA.registerSection(BSSSection); TextSection.setAlignment(std::max(16u, TextSection.getAlignment())); DataSection.setAlignment(std::max(16u, DataSection.getAlignment())); BSSSection.setAlignment(std::max(16u, BSSSection.getAlignment())); if (RoundSectionSizes) { // Make sections sizes a multiple of the alignment. This is useful for // verifying the output of IAS against the output of other assemblers but // it's not necessary to produce a correct object and increases section // size. MCStreamer &OS = getStreamer(); for (MCSection &S : MCA) { MCSectionELF &Section = static_cast<MCSectionELF &>(S); unsigned Alignment = Section.getAlignment(); if (Alignment) { OS.SwitchSection(&Section); if (Section.UseCodeAlign()) OS.EmitCodeAlignment(Alignment, Alignment); else OS.EmitValueToAlignment(Alignment, 0, 1, Alignment); } } } const FeatureBitset &Features = STI.getFeatureBits(); // Update e_header flags. See the FIXME and comment above in // the constructor for a full rundown on this. unsigned EFlags = MCA.getELFHeaderEFlags(); // ABI // N64 does not require any ABI bits. if (getABI().IsO32()) EFlags |= ELF::EF_MIPS_ABI_O32; else if (getABI().IsN32()) EFlags |= ELF::EF_MIPS_ABI2; if (Features[Mips::FeatureGP64Bit]) { if (getABI().IsO32()) EFlags |= ELF::EF_MIPS_32BITMODE; /* Compatibility Mode */ } else if (Features[Mips::FeatureMips64r2] || Features[Mips::FeatureMips64]) EFlags |= ELF::EF_MIPS_32BITMODE; // If we've set the cpic eflag and we're n64, go ahead and set the pic // one as well. if (EFlags & ELF::EF_MIPS_CPIC && getABI().IsN64()) EFlags |= ELF::EF_MIPS_PIC; MCA.setELFHeaderEFlags(EFlags); // Emit all the option records. // At the moment we are only emitting .Mips.options (ODK_REGINFO) and // .reginfo. MipsELFStreamer &MEF = static_cast<MipsELFStreamer &>(Streamer); MEF.EmitMipsOptionRecords(); emitMipsAbiFlags(); } void MipsTargetELFStreamer::emitAssignment(MCSymbol *S, const MCExpr *Value) { auto *Symbol = cast<MCSymbolELF>(S); // If on rhs is micromips symbol then mark Symbol as microMips. if (Value->getKind() != MCExpr::SymbolRef) return; const auto &RhsSym = cast<MCSymbolELF>( static_cast<const MCSymbolRefExpr *>(Value)->getSymbol()); if (!(RhsSym.getOther() & ELF::STO_MIPS_MICROMIPS)) return; Symbol->setOther(ELF::STO_MIPS_MICROMIPS); } MCELFStreamer &MipsTargetELFStreamer::getStreamer() { return static_cast<MCELFStreamer &>(Streamer); } void MipsTargetELFStreamer::emitDirectiveSetMicroMips() { MicroMipsEnabled = true; MCAssembler &MCA = getStreamer().getAssembler(); unsigned Flags = MCA.getELFHeaderEFlags(); Flags |= ELF::EF_MIPS_MICROMIPS; MCA.setELFHeaderEFlags(Flags); forbidModuleDirective(); } void MipsTargetELFStreamer::emitDirectiveSetNoMicroMips() { MicroMipsEnabled = false; forbidModuleDirective(); } void MipsTargetELFStreamer::emitDirectiveSetMips16() { MCAssembler &MCA = getStreamer().getAssembler(); unsigned Flags = MCA.getELFHeaderEFlags(); Flags |= ELF::EF_MIPS_ARCH_ASE_M16; MCA.setELFHeaderEFlags(Flags); forbidModuleDirective(); } void MipsTargetELFStreamer::emitDirectiveSetNoReorder() { MCAssembler &MCA = getStreamer().getAssembler(); unsigned Flags = MCA.getELFHeaderEFlags(); Flags |= ELF::EF_MIPS_NOREORDER; MCA.setELFHeaderEFlags(Flags); forbidModuleDirective(); } void MipsTargetELFStreamer::emitDirectiveEnd(StringRef Name) { MCAssembler &MCA = getStreamer().getAssembler(); MCContext &Context = MCA.getContext(); MCStreamer &OS = getStreamer(); MCSectionELF *Sec = Context.getELFSection(".pdr", ELF::SHT_PROGBITS, 0); MCSymbol *Sym = Context.getOrCreateSymbol(Name); const MCSymbolRefExpr *ExprRef = MCSymbolRefExpr::create(Sym, MCSymbolRefExpr::VK_None, Context); MCA.registerSection(*Sec); Sec->setAlignment(4); OS.PushSection(); OS.SwitchSection(Sec); OS.EmitValueImpl(ExprRef, 4); OS.EmitIntValue(GPRInfoSet ? GPRBitMask : 0, 4); // reg_mask OS.EmitIntValue(GPRInfoSet ? GPROffset : 0, 4); // reg_offset OS.EmitIntValue(FPRInfoSet ? FPRBitMask : 0, 4); // fpreg_mask OS.EmitIntValue(FPRInfoSet ? FPROffset : 0, 4); // fpreg_offset OS.EmitIntValue(FrameInfoSet ? FrameOffset : 0, 4); // frame_offset OS.EmitIntValue(FrameInfoSet ? FrameReg : 0, 4); // frame_reg OS.EmitIntValue(FrameInfoSet ? ReturnReg : 0, 4); // return_reg // The .end directive marks the end of a procedure. Invalidate // the information gathered up until this point. GPRInfoSet = FPRInfoSet = FrameInfoSet = false; OS.PopSection(); // .end also implicitly sets the size. MCSymbol *CurPCSym = Context.createTempSymbol(); OS.EmitLabel(CurPCSym); const MCExpr *Size = MCBinaryExpr::createSub( MCSymbolRefExpr::create(CurPCSym, MCSymbolRefExpr::VK_None, Context), ExprRef, Context); int64_t AbsSize; if (!Size->evaluateAsAbsolute(AbsSize, MCA)) llvm_unreachable("Function size must be evaluatable as absolute"); Size = MCConstantExpr::create(AbsSize, Context); static_cast<MCSymbolELF *>(Sym)->setSize(Size); } void MipsTargetELFStreamer::emitDirectiveEnt(const MCSymbol &Symbol) { GPRInfoSet = FPRInfoSet = FrameInfoSet = false; // .ent also acts like an implicit '.type symbol, STT_FUNC' static_cast<const MCSymbolELF &>(Symbol).setType(ELF::STT_FUNC); } void MipsTargetELFStreamer::emitDirectiveAbiCalls() { MCAssembler &MCA = getStreamer().getAssembler(); unsigned Flags = MCA.getELFHeaderEFlags(); Flags |= ELF::EF_MIPS_CPIC | ELF::EF_MIPS_PIC; MCA.setELFHeaderEFlags(Flags); } void MipsTargetELFStreamer::emitDirectiveNaN2008() { MCAssembler &MCA = getStreamer().getAssembler(); unsigned Flags = MCA.getELFHeaderEFlags(); Flags |= ELF::EF_MIPS_NAN2008; MCA.setELFHeaderEFlags(Flags); } void MipsTargetELFStreamer::emitDirectiveNaNLegacy() { MCAssembler &MCA = getStreamer().getAssembler(); unsigned Flags = MCA.getELFHeaderEFlags(); Flags &= ~ELF::EF_MIPS_NAN2008; MCA.setELFHeaderEFlags(Flags); } void MipsTargetELFStreamer::emitDirectiveOptionPic0() { MCAssembler &MCA = getStreamer().getAssembler(); unsigned Flags = MCA.getELFHeaderEFlags(); // This option overrides other PIC options like -KPIC. Pic = false; Flags &= ~ELF::EF_MIPS_PIC; MCA.setELFHeaderEFlags(Flags); } void MipsTargetELFStreamer::emitDirectiveOptionPic2() { MCAssembler &MCA = getStreamer().getAssembler(); unsigned Flags = MCA.getELFHeaderEFlags(); Pic = true; // NOTE: We are following the GAS behaviour here which means the directive // 'pic2' also sets the CPIC bit in the ELF header. This is different from // what is stated in the SYSV ABI which consider the bits EF_MIPS_PIC and // EF_MIPS_CPIC to be mutually exclusive. Flags |= ELF::EF_MIPS_PIC | ELF::EF_MIPS_CPIC; MCA.setELFHeaderEFlags(Flags); } void MipsTargetELFStreamer::emitDirectiveInsn() { MipsTargetStreamer::emitDirectiveInsn(); MipsELFStreamer &MEF = static_cast<MipsELFStreamer &>(Streamer); MEF.createPendingLabelRelocs(); } void MipsTargetELFStreamer::emitFrame(unsigned StackReg, unsigned StackSize, unsigned ReturnReg_) { MCContext &Context = getStreamer().getAssembler().getContext(); const MCRegisterInfo *RegInfo = Context.getRegisterInfo(); FrameInfoSet = true; FrameReg = RegInfo->getEncodingValue(StackReg); FrameOffset = StackSize; ReturnReg = RegInfo->getEncodingValue(ReturnReg_); } void MipsTargetELFStreamer::emitMask(unsigned CPUBitmask, int CPUTopSavedRegOff) { GPRInfoSet = true; GPRBitMask = CPUBitmask; GPROffset = CPUTopSavedRegOff; } void MipsTargetELFStreamer::emitFMask(unsigned FPUBitmask, int FPUTopSavedRegOff) { FPRInfoSet = true; FPRBitMask = FPUBitmask; FPROffset = FPUTopSavedRegOff; } void MipsTargetELFStreamer::emitDirectiveCpLoad(unsigned RegNo) { // .cpload $reg // This directive expands to: // lui $gp, %hi(_gp_disp) // addui $gp, $gp, %lo(_gp_disp) // addu $gp, $gp, $reg // when support for position independent code is enabled. if (!Pic || (getABI().IsN32() || getABI().IsN64())) return; // There's a GNU extension controlled by -mno-shared that allows // locally-binding symbols to be accessed using absolute addresses. // This is currently not supported. When supported -mno-shared makes // .cpload expand to: // lui $gp, %hi(__gnu_local_gp) // addiu $gp, $gp, %lo(__gnu_local_gp) StringRef SymName("_gp_disp"); MCAssembler &MCA = getStreamer().getAssembler(); MCSymbol *GP_Disp = MCA.getContext().getOrCreateSymbol(SymName); MCA.registerSymbol(*GP_Disp); MCInst TmpInst; TmpInst.setOpcode(Mips::LUi); TmpInst.addOperand(MCOperand::createReg(Mips::GP)); const MCExpr *HiSym = MipsMCExpr::create( MipsMCExpr::MEK_HI, MCSymbolRefExpr::create("_gp_disp", MCSymbolRefExpr::VK_None, MCA.getContext()), MCA.getContext()); TmpInst.addOperand(MCOperand::createExpr(HiSym)); getStreamer().EmitInstruction(TmpInst, STI); TmpInst.clear(); TmpInst.setOpcode(Mips::ADDiu); TmpInst.addOperand(MCOperand::createReg(Mips::GP)); TmpInst.addOperand(MCOperand::createReg(Mips::GP)); const MCExpr *LoSym = MipsMCExpr::create( MipsMCExpr::MEK_LO, MCSymbolRefExpr::create("_gp_disp", MCSymbolRefExpr::VK_None, MCA.getContext()), MCA.getContext()); TmpInst.addOperand(MCOperand::createExpr(LoSym)); getStreamer().EmitInstruction(TmpInst, STI); TmpInst.clear(); TmpInst.setOpcode(Mips::ADDu); TmpInst.addOperand(MCOperand::createReg(Mips::GP)); TmpInst.addOperand(MCOperand::createReg(Mips::GP)); TmpInst.addOperand(MCOperand::createReg(RegNo)); getStreamer().EmitInstruction(TmpInst, STI); forbidModuleDirective(); } bool MipsTargetELFStreamer::emitDirectiveCpRestore( int Offset, std::function<unsigned()> GetATReg, SMLoc IDLoc, const MCSubtargetInfo *STI) { MipsTargetStreamer::emitDirectiveCpRestore(Offset, GetATReg, IDLoc, STI); // .cprestore offset // When PIC mode is enabled and the O32 ABI is used, this directive expands // to: // sw $gp, offset($sp) // and adds a corresponding LW after every JAL. // Note that .cprestore is ignored if used with the N32 and N64 ABIs or if it // is used in non-PIC mode. if (!Pic || (getABI().IsN32() || getABI().IsN64())) return true; // Store the $gp on the stack. emitStoreWithImmOffset(Mips::SW, Mips::GP, Mips::SP, Offset, GetATReg, IDLoc, STI); return true; } void MipsTargetELFStreamer::emitDirectiveCpsetup(unsigned RegNo, int RegOrOffset, const MCSymbol &Sym, bool IsReg) { // Only N32 and N64 emit anything for .cpsetup iff PIC is set. if (!Pic || !(getABI().IsN32() || getABI().IsN64())) return; MCAssembler &MCA = getStreamer().getAssembler(); MCInst Inst; // Either store the old $gp in a register or on the stack if (IsReg) { // move $save, $gpreg Inst.setOpcode(Mips::OR64); Inst.addOperand(MCOperand::createReg(RegOrOffset)); Inst.addOperand(MCOperand::createReg(Mips::GP)); Inst.addOperand(MCOperand::createReg(Mips::ZERO)); } else { // sd $gpreg, offset($sp) Inst.setOpcode(Mips::SD); Inst.addOperand(MCOperand::createReg(Mips::GP)); Inst.addOperand(MCOperand::createReg(Mips::SP)); Inst.addOperand(MCOperand::createImm(RegOrOffset)); } getStreamer().EmitInstruction(Inst, STI); Inst.clear(); const MipsMCExpr *HiExpr = MipsMCExpr::createGpOff( MipsMCExpr::MEK_HI, MCSymbolRefExpr::create(&Sym, MCA.getContext()), MCA.getContext()); const MipsMCExpr *LoExpr = MipsMCExpr::createGpOff( MipsMCExpr::MEK_LO, MCSymbolRefExpr::create(&Sym, MCA.getContext()), MCA.getContext()); // lui $gp, %hi(%neg(%gp_rel(funcSym))) Inst.setOpcode(Mips::LUi); Inst.addOperand(MCOperand::createReg(Mips::GP)); Inst.addOperand(MCOperand::createExpr(HiExpr)); getStreamer().EmitInstruction(Inst, STI); Inst.clear(); // addiu $gp, $gp, %lo(%neg(%gp_rel(funcSym))) Inst.setOpcode(Mips::ADDiu); Inst.addOperand(MCOperand::createReg(Mips::GP)); Inst.addOperand(MCOperand::createReg(Mips::GP)); Inst.addOperand(MCOperand::createExpr(LoExpr)); getStreamer().EmitInstruction(Inst, STI); Inst.clear(); // daddu $gp, $gp, $funcreg Inst.setOpcode(Mips::DADDu); Inst.addOperand(MCOperand::createReg(Mips::GP)); Inst.addOperand(MCOperand::createReg(Mips::GP)); Inst.addOperand(MCOperand::createReg(RegNo)); getStreamer().EmitInstruction(Inst, STI); forbidModuleDirective(); } void MipsTargetELFStreamer::emitDirectiveCpreturn(unsigned SaveLocation, bool SaveLocationIsRegister) { // Only N32 and N64 emit anything for .cpreturn iff PIC is set. if (!Pic || !(getABI().IsN32() || getABI().IsN64())) return; MCInst Inst; // Either restore the old $gp from a register or on the stack if (SaveLocationIsRegister) { Inst.setOpcode(Mips::OR); Inst.addOperand(MCOperand::createReg(Mips::GP)); Inst.addOperand(MCOperand::createReg(SaveLocation)); Inst.addOperand(MCOperand::createReg(Mips::ZERO)); } else { Inst.setOpcode(Mips::LD); Inst.addOperand(MCOperand::createReg(Mips::GP)); Inst.addOperand(MCOperand::createReg(Mips::SP)); Inst.addOperand(MCOperand::createImm(SaveLocation)); } getStreamer().EmitInstruction(Inst, STI); forbidModuleDirective(); } void MipsTargetELFStreamer::emitMipsAbiFlags() { MCAssembler &MCA = getStreamer().getAssembler(); MCContext &Context = MCA.getContext(); MCStreamer &OS = getStreamer(); MCSectionELF *Sec = Context.getELFSection( ".MIPS.abiflags", ELF::SHT_MIPS_ABIFLAGS, ELF::SHF_ALLOC, 24, ""); MCA.registerSection(*Sec); Sec->setAlignment(8); OS.SwitchSection(Sec); OS << ABIFlagsSection; }
[ "fuzzie@fuzzie.org" ]
fuzzie@fuzzie.org
511161fdd3c0523292b873187d42d7db747791ae
0e396441486cb37be80550be4df3611c7b0de2d4
/lw3/Beverages/Chocolate.h
7b53b5b16934e3cb34ba93c5d2c02a3460d39445
[]
no_license
minakovuri/ood
5ad99731e7f88f8cb3c1472b2db16638b30b4fab
d4e49c8848e08bd518ceca8d0dd41237c5390caa
refs/heads/master
2022-03-24T05:41:09.197447
2019-12-18T18:12:15
2019-12-18T18:12:15
205,739,403
0
1
null
null
null
null
UTF-8
C++
false
false
558
h
#pragma once #include "Condiments.h" const unsigned MAX_SLICES_COUNT = 5; class CChocolate : public CCondimentDecorator { public: CChocolate(IBeveragePtr&& beverage, unsigned slices = 1) : CCondimentDecorator(move(beverage)) , m_slices(slices) { if (slices > MAX_SLICES_COUNT) { m_slices = MAX_SLICES_COUNT; } } double GetCondimentCost() const override { return 10 * m_slices; } std::string GetCondimentDescription() const override { return "Chocolate " + std::to_string(m_slices) + " slices"; } private: unsigned m_slices; };
[ "minakov_uri@mail.ru" ]
minakov_uri@mail.ru
a7955e2117e58b9d213c8771b37d60778f906504
7660adaf1ae04e7c6ce38f2a1212081607d8416d
/TwoPotOneButton/TwoPotOneButton.ino
e179f236d0f360e35e4238da010786a332e0f1f7
[]
no_license
hjlam1/SerialTestUnity2019.2
5c7b13ac72dd216ab9665201cf361d7c1018399a
6eb87521db0603a4c4aec49185e65c65d755dfff
refs/heads/master
2020-07-28T16:20:22.844046
2019-09-19T05:03:43
2019-09-19T05:03:43
209,463,543
0
0
null
null
null
null
UTF-8
C++
false
false
320
ino
int buttonPIN = 3; int analogPINa = A0; int analogPINb = A1; void setup() { Serial.begin(115200); pinMode(buttonPIN, INPUT_PULLUP); } void loop() { Serial.print(digitalRead(buttonPIN)); Serial.print(";"); Serial.print(analogRead(analogPINa)); Serial.print(";"); Serial.println(analogRead(analogPINb)); }
[ "lamh657@newschool.edu" ]
lamh657@newschool.edu
b22627ae75ee145542ec2e9b40d0a88220ebe3ea
6e351c47c4d34e105909daeacc29fa8669ecc4eb
/libs/dungeon-generation-lib/src/bsp.cpp
65a76e9dc2d2bd94cf05e31cea41677b02c9d58e
[]
no_license
ludamad/lanarts
5820e267d140385955c6968d337748be2d79882f
674bd96d3b917c85ba451ddd902ee46f93179355
refs/heads/master
2021-07-07T09:35:37.927137
2021-05-15T02:34:22
2021-05-15T02:34:22
4,853,686
5
3
null
2018-02-17T01:16:55
2012-07-01T21:53:11
C++
UTF-8
C++
false
false
5,975
cpp
/* * libtcod 1.5.1 * Copyright (c) 2008,2009,2010,2012 Jice & Mingos * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * The name of Jice or Mingos may not be used to endorse or promote products * derived from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY JICE AND MINGOS ``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 JICE OR MINGOS 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. */ #include <deque> #include "bsp.hpp" TCODBsp::TCODBsp(TCODBsp *father, bool left) { if ( father->horizontal ) { x=father->x; w=father->w; y = left ? father->y : father->position; h = left ? father->position - y: father->y + father->h - father->position; } else { y=father->y; h=father->h; x = left ? father->x : father->position; w = left ? father->position - x: father->x + father->w - father->position; } level=father->level+1; } TCODBsp::~TCODBsp() { removeSons(); } bool TCODBsp::traversePreOrder(ITCODBspCallback *listener, void *userData) { if (!listener->visitNode(this,userData)) return false; if ( getLeft() && !getLeft()->traversePreOrder(listener,userData) ) return false; if ( getRight() && !getRight()->traversePreOrder(listener,userData)) return false; return true; } bool TCODBsp::traverseInOrder(ITCODBspCallback *listener, void *userData) { if ( getLeft() && !getLeft()->traverseInOrder(listener,userData) ) return false; if (!listener->visitNode(this,userData)) return false; if ( getRight() && !getRight()->traverseInOrder(listener,userData)) return false; return true; } bool TCODBsp::traversePostOrder(ITCODBspCallback *listener,void *userData) { if ( getLeft() && !getLeft()->traversePostOrder(listener,userData)) return false; if ( getRight() && !getRight()->traversePostOrder(listener,userData)) return false; if (!listener->visitNode(this,userData)) return false; return true; } bool TCODBsp::traverseLevelOrder(ITCODBspCallback *listener, void *userData) { std::deque<TCODBsp *> stack; stack.push_back(this); while ( ! stack.empty() ) { TCODBsp *node=stack.front(); stack.pop_front(); if ( node->getLeft() ) stack.push_back(node->getLeft()); if ( node->getRight() ) stack.push_back(node->getRight()); if (!listener->visitNode(node,userData)) return false; } return true; } bool TCODBsp::traverseInvertedLevelOrder(ITCODBspCallback *listener, void *userData) { std::deque<TCODBsp *> stack1; std::deque<TCODBsp *> stack2; stack1.push_back(this); while ( ! stack1.empty() ) { TCODBsp *node=stack1.front(); stack2.push_back(node); stack1.pop_front(); if ( node->getLeft() ) stack1.push_back(node->getLeft()); if ( node->getRight() ) stack1.push_back(node->getRight()); } while ( ! stack2.empty() ) { TCODBsp *node= stack2.back(); stack2.pop_back(); if (!listener->visitNode(node,userData)) return false; } return true; } void TCODBsp::removeSons() { TCODBsp *node=(TCODBsp *)sons; while ( node ) { TCODBsp *nextNode=(TCODBsp *)node->next; node->removeSons(); delete node; node=nextNode; } sons=NULL; } void TCODBsp::splitOnce(bool horizontal, int position) { this->horizontal = horizontal; this->position=position; addSon(new TCODBsp(this,true)); addSon(new TCODBsp(this,false)); } void TCODBsp::splitRecursive(MTwist& randomizer, int nb, int minHSize, int minVSize, float maxHRatio, float maxVRatio) { if ( nb == 0 || (w < 2*minHSize && h < 2*minVSize ) ) return; bool horiz; // promote square rooms if ( h < 2*minVSize || w > h * maxHRatio ) horiz = false; else if ( w < 2*minHSize || h > w * maxVRatio) horiz = true; else horiz = randomizer.rand(0,2) == 0; int position; if ( horiz ) { position = randomizer.rand(y+minVSize,y+h-minVSize+1); } else { position = randomizer.rand(x+minHSize,x+w-minHSize+1); } splitOnce(horiz,position); getLeft()->splitRecursive(randomizer,nb-1,minHSize,minVSize,maxHRatio,maxVRatio); getRight()->splitRecursive(randomizer,nb-1,minHSize,minVSize,maxHRatio,maxVRatio); } void TCODBsp::resize(int x,int y, int w, int h) { this->x=x; this->y=y; this->w=w; this->h=h; if ( getLeft() ) { if ( horizontal ) { getLeft()->resize(x,y,w,position-y); getRight()->resize(x,position,w,y+h-position); } else { getLeft()->resize(x,y,position-x,h); getRight()->resize(position,y,x+w-position,h); } } } bool TCODBsp::contains(int px, int py) const { return (px >= x && py >= y && px < x+w && py < y+h); } TCODBsp *TCODBsp::findNode(int px, int py) { if ( ! contains(px,py) ) return NULL; if ( ! isLeaf() ) { TCODBsp *left,*right; left=getLeft(); if ( left->contains(px,py) ) return left->findNode(px,py); right=getRight(); if ( right->contains(px,py) ) return right->findNode(px,py); } return this; }
[ "domuradical@gmail.com" ]
domuradical@gmail.com
a8c49ae0e36555dff53ca04de79a031a5d3d461f
4352b5c9e6719d762e6a80e7a7799630d819bca3
/tutorials/eulerVortex.twitch/eulerVortex.cyclic.twitch.test.test/processor0/1.07/T
ada8ce342f8128ae6d26978d5589c44c5d00b909
[]
no_license
dashqua/epicProject
d6214b57c545110d08ad053e68bc095f1d4dc725
54afca50a61c20c541ef43e3d96408ef72f0bcbc
refs/heads/master
2022-02-28T17:20:20.291864
2019-10-28T13:33:16
2019-10-28T13:33:16
184,294,390
1
0
null
null
null
null
UTF-8
C++
false
false
16,621
/*--------------------------------*- C++ -*----------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org \\ / A nd | Version: 6 \\/ M anipulation | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class volScalarField; location "1.07"; object T; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [0 0 0 1 0 0 0]; internalField nonuniform List<scalar> 5625 ( 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 0.999999 0.999996 0.999991 0.999977 0.999945 0.999878 0.999738 0.999464 0.998945 0.998005 0.996369 0.993627 0.98922 0.982475 0.972735 0.959579 0.942987 0.923443 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 0.999999 0.999997 0.999992 0.99998 0.999952 0.999892 0.999768 0.999525 0.999067 0.99824 0.996802 0.994399 0.990542 0.984629 0.976048 0.964367 0.949513 0.931875 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 0.999999 0.999999 0.999997 0.999993 0.999982 0.999958 0.999906 0.999798 0.999588 0.999192 0.998477 0.997237 0.995171 0.991861 0.986787 0.979397 0.969266 0.956275 0.940711 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 1 0.999999 0.999998 0.999993 0.999985 0.999964 0.99992 0.999829 0.999649 0.999313 0.998707 0.997658 0.995915 0.993129 0.98886 0.982633 0.974048 0.962952 0.949538 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 0.999998 0.999994 0.999987 0.99997 0.999934 0.999857 0.999708 0.999427 0.998923 0.998052 0.996608 0.994305 0.990784 0.985643 0.978531 0.969272 0.957985 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 0.999998 0.999996 0.999989 0.999975 0.999945 0.999883 0.999761 0.999532 0.99912 0.998411 0.997236 0.995368 0.992516 0.988356 0.982587 0.975039 0.965765 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 0.999996 0.999992 0.999981 0.999956 0.999905 0.999808 0.999624 0.999295 0.998728 0.997789 0.996302 0.994036 0.990732 0.986148 0.980127 0.972685 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999998 0.999997 0.999994 0.999984 0.999965 0.999926 0.999849 0.999705 0.999446 0.999 0.998266 0.997102 0.995334 0.99276 0.98919 0.984489 0.978651 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 0.999999 0.999998 0.999995 0.999988 0.999973 0.999943 0.999884 0.999772 0.999573 0.999231 0.998665 0.997773 0.996419 0.994451 0.991724 0.988129 0.983651 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 0.999998 0.999996 0.999991 0.99998 0.999957 0.999912 0.999828 0.999677 0.999419 0.998993 0.998321 0.997304 0.995829 0.993785 0.991093 0.987734 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 1 1 1 1 1 1 0.999999 0.999998 0.999997 0.999993 0.999985 0.999968 0.999935 0.999873 0.999761 0.99957 0.999255 0.998759 0.99801 0.996925 0.995425 0.99345 0.990984 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 0.999998 0.999995 0.999989 0.999977 0.999953 0.999908 0.999827 0.999688 0.99946 0.999101 0.998559 0.997777 0.996698 0.995278 0.993509 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 0.999999 1 0.999999 0.999998 0.999997 0.999992 0.999983 0.999967 0.999935 0.999877 0.999778 0.999617 0.999362 0.998979 0.998426 0.997665 0.996666 0.995423 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999998 0.999998 0.999995 0.999988 0.999977 0.999955 0.999914 0.999846 0.999734 0.999557 0.99929 0.998909 0.998382 0.997694 0.99684 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999998 0.999996 0.999992 0.999984 0.999969 0.999942 0.999895 0.999819 0.999698 0.999518 0.999259 0.998903 0.998438 0.997863 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 1 1 0.999999 0.999999 0.999998 0.999995 0.99999 0.999979 0.999961 0.999931 0.999879 0.9998 0.999679 0.999507 0.999271 0.998964 0.998585 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 0.999999 0.999996 0.999993 0.999987 0.999975 0.999955 0.999921 0.999869 0.999791 0.99968 0.999526 0.999328 0.999083 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 0.999999 0.999998 0.999996 0.999992 0.999984 0.999971 0.99995 0.999916 0.999867 0.999796 0.999699 0.999573 0.999418 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 0.999999 0.999997 0.999995 0.99999 0.999982 0.999969 0.999948 0.999917 0.999873 0.999812 0.999734 0.999638 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 1 1 0.999999 0.999999 0.999999 0.999997 0.999994 0.999989 0.999981 0.999969 0.999949 0.999923 0.999886 0.999838 0.999779 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 0.999999 0.999998 0.999997 0.999993 0.999989 0.999982 0.99997 0.999954 0.999932 0.999904 0.999869 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 0.999999 0.999999 0.999997 0.999993 0.999989 0.999983 0.999973 0.99996 0.999943 0.999924 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 0.999999 0.999998 0.999996 0.999994 0.99999 0.999985 0.999978 0.999969 0.999956 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 1 0.999999 1 1 0.999999 0.999998 0.999998 0.999997 0.999994 0.999992 0.999987 0.999983 0.999976 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 1 1 1 1 1 1 1 0.999999 0.999999 0.999998 0.999997 0.999996 0.999994 0.999991 0.999987 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 0.999998 0.999998 0.999997 0.999996 0.999993 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 1 1 0.999999 0.999998 0.999998 0.999997 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 1 1 1 1 1 1 1 1 1 1 1 1 0.999998 0.999999 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 0.999999 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ) ; boundaryField { emptyPatches_empt { type empty; } top_cyc { type cyclic; } bottom_cyc { type cyclic; } inlet_cyc { type cyclic; } outlet_cyc { type cyclic; } procBoundary0to1 { type processor; value nonuniform List<scalar> 75 ( 0.90188 0.912278 0.923278 0.934378 0.945114 0.955099 0.96406 0.971844 0.978406 0.983786 0.988083 0.991425 0.99396 0.995836 0.997189 0.998142 0.998797 0.999237 0.999527 0.999712 0.999829 0.9999 0.999944 0.999969 0.999983 0.999991 0.999995 0.999998 0.999999 0.999999 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ) ; } procBoundary0to1throughinlet_cyc { type processorCyclic; value nonuniform List<scalar> 75 ( 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ) ; } procBoundary0to2 { type processor; value nonuniform List<scalar> 75 ( 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0.999999 0.999998 0.999996 0.999989 0.999974 0.99994 0.999865 0.99971 0.999405 0.998829 0.997782 0.995955 0.992889 0.987957 0.98043 0.96963 0.955151 0.937032 0.915829 ) ; } procBoundary0to2throughbottom_cyc { type processorCyclic; value nonuniform List<scalar> 75 ( 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ) ; } } // ************************************************************************* //
[ "tdg@debian" ]
tdg@debian
565bf6408d3c64de66a767145bb6d6fb855fac6b
2154f4e8d2d091177b5bbcc962e28305109d4ff7
/week-03/day-03/animals/Animals.cpp
f86748215ffb48c853b300fabf5f14bdbbe9203f
[]
no_license
green-fox-academy/vviktor807
0d4a8aef2ef568775dca94d3268f7a1ab650e4b1
6472f2bf06636647da565243071a03482007ed3f
refs/heads/master
2020-05-04T11:24:11.395863
2019-06-20T15:03:32
2019-06-20T15:03:32
179,107,014
0
0
null
null
null
null
UTF-8
C++
false
false
602
cpp
// // Created by Viktor on 2019. 04. 17.. // #include "Animals.h" Animals::Animals(int hunger, int thirst) { _hunger = hunger; _thirst = thirst; } Animals::Animals() { _hunger = 50; _thirst = 50; } int Animals::getHunger() { return _hunger; } int Animals::getThirst() { return _thirst; } void Animals::eat() { _hunger -= 1; } void Animals::drink() { _thirst -= 1; } void Animals::play() { _hunger += 1; _thirst += 1; } std::string Animals::toString() { return ("Hunger: " + std::to_string(getHunger()) + " Thirst: " + std::to_string(getThirst())); }
[ "viktor.varga807@gmail.com" ]
viktor.varga807@gmail.com
8aba67215a3e7e0e37cc0ed680e324ae8ebd4e28
f6571c1c8992c21bd2fdbc3009ada9863a777a15
/src/Matrix.cpp
932550aaa53dda1a1b0b3fdec15f08b26cef1647
[ "LicenseRef-scancode-unknown-license-reference", "NCSA" ]
permissive
maxscheurer/orcavmd
0f3af216eed2a05ab05bb2b12f77c54a71626ab1
008504d541050a0884682e4f7e7d9f86434ecf1a
refs/heads/master
2021-01-19T08:24:42.672704
2018-03-25T19:35:08
2018-03-25T19:35:08
87,625,710
1
0
null
null
null
null
UTF-8
C++
false
false
14,801
cpp
// Class for Matrix calculations of arbitrary size, used in orcaplugin // Matrix.cpp // #include "Matrix.h" using namespace std; double Matrix::stringToDouble(std::string& s) { istringstream i(s); double x; if (!(i >> x)) return 0; return x; } double** Matrix::parseInput(std::string input) { rows = 0; columns = 0; vector<double> tempValues; string tempString; bool firstBracket = false; bool closedBracket = false; char previousChar = '\0'; for(char &c : input) { if (firstBracket && c == '{') { rows++; } else if(c == '{') { firstBracket = true; } else if(c == ',') { tempValues.push_back(stringToDouble(tempString)); tempString.clear(); if (closedBracket == false) { columns++; } } else if(c == '}' && closedBracket == false) { closedBracket = true; columns++; } else if (c != ',' && c != '{' && c != '}') { tempString.append(&c); } else if (c == '}' && previousChar == '}') { tempValues.push_back(stringToDouble(tempString)); } previousChar = c; } double **matrix = 0; matrix = new double *[rows]; for (int i = 0; i < rows; i++) { matrix[i] = new double [columns]; } int n = 0; for (vector<double>::iterator i = tempValues.begin(); i < tempValues.end(); i++) { div_t mod = div(n, columns); matrix[mod.quot][mod.rem] = *i; n++; } return matrix; } Matrix::Matrix(std::string input) { value = parseInput(input); } Matrix::Matrix() { value = nullptr; rows = 0; columns = 0; } // template <typename T> Matrix::Matrix(std::vector<std::vector<float>> input) { rows = input.size(); columns = input[0].size(); value = new double *[rows]; for (size_t i = 0; i < rows; i++) { value[i] = new double [columns]; if (columns != input[i].size()) { cout << "Matrix rows have different number of columns." << endl; return; } } int row = 0, col = 0; for (auto r : input) { for (auto v : r) { value[row][col] = v; col++; } row++; col = 0; } } Matrix::~Matrix() { for (size_t i = 0; i < rows; i++) { delete[] value[i]; } delete[] value; } std::vector<std::vector<float>> Matrix::toVector() { std::vector<std::vector<float>> result; for (size_t i = 0; i < rows; i++) { std::vector<float> tmpRow; for (size_t j = 0; j < columns; j++) { tmpRow.push_back(value[i][j]); } result.push_back(tmpRow); } return result; } Matrix* Matrix::copyMatrix(Matrix *input) { double **matrix = 0; matrix = new double *[input->rows]; for (int i = 0; i < input->rows; i++) { matrix[i] = new double [input->columns]; } Matrix *result = new Matrix(); result->value = matrix; result->rows = input->rows; result->columns = input->columns; for (int y = 0; y < input->rows; y++) { for (int x = 0; x < input->columns; x++) { result->value[y][x] = input->value[y][x]; } } return result; } std::vector<double>* Matrix::rowAtIndex(Matrix *input, unsigned int index) { vector<double> *result = new vector<double>; for (int i = 0; i < input->columns; i++) { result->push_back(input->value[index][i]); } return result; } std::vector<double>* Matrix::columnAtIndex(Matrix *input, unsigned int index) { vector<double> *result = new vector<double>; for (int i = 0; i < input->rows; i++) { result->push_back(input->value[i][index]); } return result; } std::vector<double>* Matrix::makeVector(std::string input) { vector<double>* tempValues = new vector<double>; string tempString; bool firstIteration = true; char previousChar = '\0'; for(char &c : input) { if((c == ',' && firstIteration) || (c == ',' && previousChar == ',')) { cout << "Syntax error."; break; } else if(c == ',' && !firstIteration && previousChar != ',') { tempValues->push_back(stringToDouble(tempString)); tempString.clear(); } else if(c!= ',') { tempString.append(&c); } previousChar = c; firstIteration = false; } tempValues->push_back(stringToDouble(tempString)); tempString.clear(); return tempValues; } double Matrix::dotProduct(std::vector<double> *firstVector, std::vector<double> *secondVector) { double result = 0.0; if (firstVector == nullptr || secondVector == nullptr){ cout << "Nullpointer Exception. \n"; } else if (firstVector->size() == secondVector->size()) { for (int i = 0; i < firstVector->size(); i++) { result += firstVector->at(i) * secondVector->at(i); } } return result; } double Matrix::getNorm(std::vector<double> *firstVector){ double result = 0.0; if (firstVector != nullptr) { double temp = 0.0; for (int i = 0; i < firstVector->size(); i++) { temp += pow(firstVector->at(i), 2); } result = sqrt(temp); } else { cout << "Nullpointer Exception.\n"; } return result; } double Matrix::getAngle(std::vector<double> *firstVector,std::vector<double> *secondVector) { double result = 0.0; if (firstVector != nullptr && secondVector != nullptr) { result = acos((dotProduct(firstVector, secondVector))/(getNorm(firstVector)*getNorm(secondVector))); } else { cout << "Nullpointer Exception.\n"; } return result; } std::vector<double>* Matrix::crossProduct(std::vector<double> *firstVector, std::vector<double> *secondVector){ vector<double> *result = new vector<double>; if (firstVector->size() == 3 && secondVector->size() == 3) { double a,b,c; a = firstVector->at(1)*secondVector->at(2)-firstVector->at(2)*secondVector->at(1); // 23 - 32 31-13 12-21 b = firstVector->at(2)*secondVector->at(0)-firstVector->at(0)*secondVector->at(2); c = firstVector->at(0)*secondVector->at(1)-firstVector->at(1)*secondVector->at(0); result->push_back(a); result->push_back(b); result->push_back(c); } else { cout << "Cross product not possible \n"; return nullptr; } return result; } Matrix* Matrix::setRow(Matrix *input, std::vector<double> *rowValues, int row) { Matrix* result = copyMatrix(input); for (int i = 0; i < rowValues->size(); i++) { result->value[row][i] = rowValues->at(i); } return result; } Matrix* Matrix::setColumn(Matrix *input, std::vector<double> *columnValues, int column) { Matrix* result = copyMatrix(input); for (int i = 0; i < columnValues->size(); i++) { result->value[i][column] = columnValues->at(i); } return result; } Matrix* Matrix::switchRows(Matrix *input, int firstRow, int secondRow) { Matrix *result = copyMatrix(input); vector<double> *tempRow = rowAtIndex(result, firstRow); result = setRow(result, rowAtIndex(result, secondRow), firstRow); result = setRow(result, tempRow, secondRow); return result; } Matrix* Matrix::switchColumns(Matrix *input, int firstColumn, int secondColumn) { Matrix *result = copyMatrix(input); vector<double> *tempColumn = columnAtIndex(result, firstColumn); result = setColumn(result, columnAtIndex(result, secondColumn), firstColumn); result = setColumn(result, tempColumn, secondColumn); return result; } Matrix* Matrix::multiplyRow(Matrix *input, int row, double factor) { Matrix *result = copyMatrix(input); vector<double> *tempRow = rowAtIndex(result, row); for (int i = 0; i < result->columns; i++) { tempRow->at(i) *= factor; } result = setRow(result, tempRow, row); return result; } Matrix* Matrix::multiplyColumn(Matrix *input, int column, double factor) { Matrix *result = copyMatrix(input); vector<double> *tempColumn = columnAtIndex(result, column); for (int i = 0; i < result->rows; i++) { tempColumn->at(i) *= factor; } result = setColumn(result, tempColumn, column); return result; } Matrix* Matrix::addRowToRow(Matrix *input, int addRow, int modifiedRow, double factor) { Matrix* result = copyMatrix(input); vector<double> *tempRow = rowAtIndex(result, addRow); vector<double> *modRow = rowAtIndex(result, modifiedRow); for (int i = 0; i < result->columns; i++) { tempRow->at(i) *= factor; modRow->at(i) += tempRow->at(i); } result = setRow(result, modRow, modifiedRow); return result; } Matrix* Matrix::addColumnToColumn(Matrix *input, int addColumn, int modifiedColumn, double factor) { Matrix* result = copyMatrix(input); vector<double> *tempColumn = columnAtIndex(result, addColumn); vector<double> *modColumn = columnAtIndex(result, modifiedColumn); for (int i = 0; i < result->rows; i++) { tempColumn->at(i) *= factor; modColumn->at(i) += tempColumn->at(i); } result = setColumn(result, modColumn, modifiedColumn); return result; } Matrix* Matrix::zeilenStufenForm(Matrix *input) { Matrix* result = copyMatrix(input); for (int x = 0; x < result->columns; x++) { vector<double> *currentColumn = columnAtIndex(result, x); int startIndex = -1; double startValue = 0.0; for (int y = x; y < result->rows; y++) { if (currentColumn->at(y) != 0.0) { startIndex = y; startValue = currentColumn->at(y); break; } } if (startIndex >= x) { if (startIndex > x) { result = switchRows(result, x, startIndex); currentColumn = columnAtIndex(result, x); } result = multiplyRow(result, x, 1/startValue); for (int y = x + 1; y < result->rows; y++) { if (currentColumn->at(y) != 0.0) { result = addRowToRow(result, x, y, -currentColumn->at(y)); } } } } // printMatrix(result); int currentY = 0; for (int x = 0; x < result->columns; x++) { if (x < result->rows) { vector<double> *currentColumn = columnAtIndex(result, x); if (currentColumn->at(currentY) == 1) { for (int y = currentY - 1; y >= 0; y--) { result = addRowToRow(result, currentY, y, -currentColumn->at(y)); } currentY++; } } else { // multiplyColumn(input, x, 0); } } return result; } Matrix* Matrix::triagonal(Matrix *input) { Matrix *result = copyMatrix(input); if (result->rows == result->columns) { for (int x = 0; x < result->columns; x++) { if (result->value[x][x] == 0.0) { for (int i = x + 1; i < result->rows; i++) { if (result->value[i][x] != 0.0) { result = switchRows(result, x, i); result = multiplyRow(result, x, -1.0); break; } } } for (int y = x + 1; y < result->rows; y++) { if (result->value[y][x] != 0.0) { result = addRowToRow(result, x, y, -(result->value[y][x]/result->value[x][x])); } } } return result; } else { cout << "Matrix ist nicht quadratisch" << endl; return nullptr; } } double Matrix::determinante(Matrix *input) { Matrix *temp = triagonal(input); double result = 1.0; for (int i = 0; i < temp->rows; i++) { result *= temp->value[i][i]; } return result; } int Matrix::rang(Matrix *input) //Funktioniert noch nicht zuverlässig. { Matrix *temp = zeilenStufenForm(input); int currentY = 0; for (int x = 0; x < temp->columns; x++) { if (currentY < temp->rows) { vector<double> *currentColumn = columnAtIndex(temp, x); if (currentColumn->at(currentY) == 1) { currentY++; } } } return currentY; } Matrix* Matrix::multiply(Matrix *firstMatrix, Matrix *secondMatrix) { if (firstMatrix->columns == secondMatrix->rows) { double **matrix = 0; matrix = new double *[firstMatrix->rows]; for (int i = 0; i < firstMatrix->rows; i++) { matrix[i] = new double [secondMatrix->columns]; } for (int y = 0; y < firstMatrix->rows; y++) { for (int x = 0; x < secondMatrix->columns; x++) { auto r = rowAtIndex(firstMatrix, y); auto c = columnAtIndex(secondMatrix, x); matrix[y][x] = dotProduct(r, c); delete r; delete c; } } Matrix *result = new Matrix(); result->rows = firstMatrix->rows; result->columns = secondMatrix->columns; result->value = matrix; return result; } else { cout << "Multiplication not possible." << endl; cout << "fmc:" << firstMatrix->columns << " smc:" << secondMatrix->columns << endl; cout << "fmr:" << firstMatrix->rows << " smr:" << secondMatrix->rows << endl; return nullptr; } } void Matrix::printMatrix(Matrix *matrix) { if (matrix != nullptr) { for (int y = 0; y < matrix->rows; y++) { for (int x = 0; x < matrix->columns; x++) { if (fabs(matrix->value[y][x]) == 0) { matrix->value[y][x] = fabs(matrix->value[y][x]); } cout << matrix->value[y][x] << " "; } cout << endl; } cout << endl; } else { cout << "Matrix empty" << endl << endl; } } void Matrix::printMatrix() { if (value != nullptr) { for (int y = 0; y < rows; y++) { for (int x = 0; x < columns; x++) { if (fabs(value[y][x]) == 0) { value[y][x] = fabs(value[y][x]); } cout << value[y][x] << " "; } cout << endl; } cout << endl; } else { cout << "Matrix empty" << endl << endl; } } void Matrix::printVector(vector<double> *vec) { if (vec != nullptr) { for (int i = 0; i<vec->size(); i++) { cout << vec->at(i) << "\n"; } } else { cout << "Vector empty" << endl << endl; } cout << "\n"; }
[ "max.scheurer@me.com" ]
max.scheurer@me.com
bbdd9cd78f54f612ef37d487f4170a0b054ac550
9f60ce25f6967550d5b5918aec361055048a3af3
/Zambies!/Project14/Source.cpp
c7c38d3fc86a0e09448cb7cb1fafc84a995ffde7
[]
no_license
AustinMorrell/Homework
61c9ae25c2e81626a3e6305aea39cdfc1e9e0dab
89488bb7d8d314f4433da7bb4aa13ca53c6b97ad
refs/heads/master
2020-06-02T01:23:49.124465
2015-09-29T14:02:04
2015-09-29T14:02:04
41,000,367
0
0
null
null
null
null
UTF-8
C++
false
false
2,289
cpp
//////////////////////////////////////////////////////////////// //Austin Morrell// //Septemper 9th 2015// //September 14th 2015// //Wumpus World Problem// /////////////////////////////////////////////////////////////// #include <iostream> #include <string> #include <fstream> #include <math.h> using namespace std; class Zambie { public: //The constructor must be public. //If you do not define the protection level //it will default to private bool getpo() { return po; } Zambie(int, int, bool); Zambie(); int setHP(int); bool setpo(bool); int gethp() { return hp; } int getatk() { return atk; } private: int hp; int atk; bool po; }; bool Zambie::setpo(bool yn) { po = yn; return po; } int Zambie::setHP(int health) { hp = health; return hp; } Zambie::Zambie() { } //this first Zambie before the :: means it's in that scope //the second Zambie is the constructor Zambie::Zambie(int x, int y, bool z) { hp = x; atk = y; po = z; } Zambie zamb[10]; void makeZambies() { for (int h = 0; h < 10; h++) { zamb[h] = Zambie(rand() % 101, rand() % 101, 0); } } void DeezzNuttzz() { cout << "We got some zambies today, and they" << endl; cout << "like killing each other! Watch them" << endl; cout << "go down one by one! In the end there" << endl; cout << "will be two winners!" << endl; for (int j = 0; j < 10; j++) { if (zamb[j].getpo() == 0) { cout << j << " "; } } cout << endl; } void Battle() { int fighter1 = rand() % 10; int fighter2 = rand() % 10; if (zamb[fighter1].getpo() == 0 && zamb[fighter2].getpo() == 0) { if (fighter1 != fighter2) { zamb[fighter2].setHP(zamb[fighter2].gethp() - zamb[fighter1].getatk()); if (zamb[fighter2].gethp() <= 0) { zamb[fighter2].setpo(1); cout << fighter2 << " died!" << endl; } } else { Battle(); } } else { Battle(); } } void Winner() { for (int k = 0; k < 10; k++) { if (zamb[k].getpo() == 0) { cout << "The winners and must destructive zambies are: #" << k << "!" << endl; } } } int main() { makeZambies(); for (int i = 0; i <= 10; i++) { DeezzNuttzz(); system("pause"); Battle(); system("pause"); system("cls"); } Winner(); system("pause"); return 0; }
[ "austinlm19@gmail.com" ]
austinlm19@gmail.com
c8912d23640ca41dc6a2b93b6395883c5c0fdfa7
c83050730f8d518e3a5689f9d27098fab55bdb32
/NCTUBINUS/gen.cpp
20cadd98984f7e542b61c26c5e3fabd5515a5a4f
[]
no_license
NCTU-Kemono/Practice
5cfed2ea2b69cea1362d78de9667f048a4cf0dc7
615a56290da8f7e24fa2f62dd0a9c18de96d28f4
refs/heads/master
2021-07-16T12:34:03.946642
2018-12-05T05:21:57
2018-12-05T05:21:57
137,240,180
0
0
null
null
null
null
UTF-8
C++
false
false
291
cpp
#include <bits/stdc++.h> using namespace std; int main() { srand(time(NULL)); int t = 100; cout << t << '\n'; while (t--) { int n = 10; cout << n << '\n'; for (int i = 0 ; i < n ; i++) cout << rand() % 1000000000 << ' '; cout << '\n'; } }
[ "s1357andy871207@gmail.com" ]
s1357andy871207@gmail.com
2ddd94b3a0c45e7a506ba832877dad7efd579860
67ed24f7e68014e3dbe8970ca759301f670dc885
/win10.19042/System32/musdialoghandlers.dll.cpp
e46f6c992f92958dfac5d2b8e34151d293573990
[]
no_license
nil-ref/dll-exports
d010bd77a00048e52875d2a739ea6a0576c82839
42ccc11589b2eb91b1aa82261455df8ee88fa40c
refs/heads/main
2023-04-20T21:28:05.295797
2021-05-07T14:06:23
2021-05-07T14:06:23
401,055,938
1
0
null
2021-08-29T14:00:50
2021-08-29T14:00:49
null
UTF-8
C++
false
false
230
cpp
#pragma comment(linker, "/export:DllCanUnloadNow=\"C:\\Windows\\System32\\musdialoghandlers.DllCanUnloadNow\"") #pragma comment(linker, "/export:DllGetClassObject=\"C:\\Windows\\System32\\musdialoghandlers.DllGetClassObject\"")
[ "magnus@stubman.eu" ]
magnus@stubman.eu
39af4a8b4f63d253c3e67bd01ab204d809f84a2d
aec141bfdb7c4e51281c1aef7b706748932e58d5
/Katya/edem/api/Api/Core/NExternalForceTypesV3_0_0.h
e0cca966071efe62203efcd719bc5f99908e6f34
[]
no_license
kystyn/different
e4e72ece48022d7789da2a6b0598f57c5bce386f
e82e99032abbe8f4f1dc92f161b82c959c88dcae
refs/heads/master
2022-12-12T22:38:49.869942
2022-12-07T08:40:26
2022-12-07T08:40:26
235,436,448
0
0
null
null
null
null
UTF-8
C++
false
false
2,066
h
#ifndef NEXTERNALFORCETYPESV3_0_0_H #define NEXTERNALFORCETYPESV3_0_0_H #include "HelpersV3_0_0.h" namespace NExternalForceTypesV3_0_0 { /** * This struct represents particle element, which is used to modify particle body forces (such as electromagnetic or drag forces). */ struct SParticle { int ID; /**< The id of the particle. */ const char* type; /**< Name of the particle template, from which this particle was created. */ double mass; /**< The mass of the particle. */ double volume; /**< The volume of the particle. */ double density; /**< The density of the particle. */ unsigned int NumOfSpheres; /**< The number of spheres of the particle. */ NApiHelpersV3_0_0::CSimple3DVector position; /**< The centroid of the particle. */ NApiHelpersV3_0_0::CSimple3DVector velocity; /**< The velocity the particle. */ NApiHelpersV3_0_0::CSimple3DVector angVel; /**< The angular velocity of the particle. */ NApiHelpersV3_0_0::CSimple3x3Matrix orientation; /**< Nine element array containing the orientation matrix for this particle. The elements of the array are in the following order: XX, XY, XZ, YX, YY, YZ, ZX, ZY, ZZ.*/ }; /** * Return values. */ struct SResults { NApiHelpersV3_0_0::CSimple3DVector force; /**< The particle body force on the particle. This force is taken to act at the particle centroid. */ NApiHelpersV3_0_0::CSimple3DVector torque; /**< The particle body torque on the particle. This torque is in global coordinates. */ }; /**Stores a time step's current time and the length of the time step.*/ struct STimeStepData { double time; /**< Current simulation time. */ double timeStep; /**< Length of current timestep. */ }; } #endif // NEXTERNALFORCETYPESV3_0_0_H
[ "konstantindamaskinskiy@gmail.com" ]
konstantindamaskinskiy@gmail.com
a3f47fced667a2c7e7e9dfa97da41e0c5a1bfded
34b3623dbd185b9d8e6bc5af787ff656ebb8f837
/finalProject/results/test/test_lowRe/wedge/wedge1/39/phi
4897d070931a4547f5f68586e3aef5f80e671a8c
[]
no_license
kenneth-meyer/COE347
6426252133cdb94582b49337d44bdc5759d96cda
a4f1e5f3322031690a180d0815cc8272b6f89726
refs/heads/master
2023-04-25T04:03:37.617189
2021-05-16T02:40:23
2021-05-16T02:40:23
339,565,109
1
0
null
null
null
null
UTF-8
C++
false
false
379,691
/*--------------------------------*- C++ -*----------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org \\ / A nd | Version: 7 \\/ M anipulation | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class surfaceScalarField; location "39"; object phi; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [0 3 -1 0 0 0 0]; internalField nonuniform List<scalar> 44730 ( -595.703 670.585 -74.8825 1064.42 -1072.34 7.92647 -334.256 380.827 -46.5713 220.796 -259.131 38.3346 -498.011 498.011 213.471 -260.159 46.6883 -386.977 380.692 6.28533 30.709 -569.431 538.722 664.532 -833.995 169.463 -1009.38 1102.33 -92.955 562.245 -150.759 -411.486 -534.176 535.863 -1.68615 -687.682 582.583 105.1 -859.806 868.864 -9.05715 248.235 70.8392 -319.074 384.597 -10.0652 -374.532 814.387 -666.914 -147.473 -401.118 414.767 -13.6484 160.58 314.824 -475.403 289.37 -355.508 66.1385 -593.897 81.7084 512.189 724.848 -60.3164 49.1586 -383.415 136.379 -489.054 352.675 236.217 -126.762 -109.455 1068.17 -3.75561 659.732 -680.854 21.1221 -279.718 -1.51967 281.238 294.111 -45.8762 -443.941 543.959 -100.019 956.711 -247.88 -708.832 -676.912 767.283 -90.3717 259.399 -225.774 -33.6256 482.66 -75.5123 -407.148 131.737 -411.455 262.579 -432.445 169.867 442.34 -583.849 141.509 291.379 -43.0652 -248.313 825.827 -980.937 155.11 1063.76 -237.937 -1018.36 1035.84 -17.4765 399.19 -86.4015 -312.788 704.078 110.309 188.834 -316.919 128.084 1228.49 -777.717 -450.772 -591.192 147.252 536.345 -538.949 2.60397 230.476 645.57 -876.046 226.016 537.204 -763.22 -100.706 543.046 -392.476 171.349 221.127 -7.18459 -227.573 234.757 -672.402 -4.50962 237.313 -23.8423 423.279 -38.6815 -277.742 -40.0034 317.746 523.731 -499.324 -24.4064 -34.3416 -559.555 -466.627 46.6208 420.006 -297.875 -35.702 333.577 799.484 17.5791 -817.064 -409.152 569.731 10.5145 -248.16 237.646 -222.667 485.245 -322.42 431.265 -108.845 263.033 240.505 -503.538 495.511 -121.09 -374.421 429.628 -50.8814 -378.747 -451.939 -29.0663 481.005 -986.831 -31.5337 1062.35 5.8266 301.66 281.264 -582.924 -245.756 548.365 -302.609 170.375 82.6922 -253.068 -430.505 380.573 49.9317 -377.598 395.352 -17.7545 278.489 -160.802 -117.687 -250.369 -57.7453 308.114 -699.279 16.5328 682.746 407.46 -86.5143 -320.946 -248.933 248.933 78.7638 -758.845 680.081 -666.383 70.6804 -947.211 848.238 98.9737 -327.089 -59.8878 -16.2308 219.384 -203.153 517.342 -132.668 -384.674 -644.437 -43.2447 652.338 -69.7551 90.8452 83.9873 -174.832 -361.74 99.673 262.067 -305.862 55.4927 847.317 -621.301 569.644 -603.663 34.0183 216.439 -89.5642 -126.875 -358.853 135.273 223.58 -31.5692 261.159 -229.59 -846.781 847.621 -0.840341 -38.9941 -154.081 193.075 267.055 -1.19247 -265.863 -711.438 12.1598 -262.085 280.965 -18.8799 778.72 20.7642 435.127 -641.015 205.888 205.203 -212.388 -757.131 822.756 -65.6255 645.94 -715.809 69.8687 74.6219 577.716 943.829 -846.98 -96.8485 -213.559 249.89 -36.3314 198.796 60.6038 357.893 124.513 -482.407 1009.1 -256.887 -752.212 17.2565 564.404 -581.661 -12.2476 -587.752 599.999 539.129 -237.469 113.945 421.125 -535.07 -302.798 406.067 -103.269 76.7203 -814.821 738.101 -700.495 454.74 17.1932 -220.788 203.595 21.3248 -855.782 834.458 -331.895 326.439 5.45573 -36.5268 299.56 23.9723 -891.067 867.095 -352.916 353.324 -0.407973 -72.3449 -328.773 18.6982 -295.764 277.066 705.461 -787.327 81.8659 726.051 -860.295 134.244 -159.091 347.925 179.541 98.948 195.534 -204.541 9.00717 309.854 -313.998 4.14397 -128.429 563.557 629.803 326.909 146.711 73.7157 -220.427 273.571 -312.392 38.8217 232.242 -266.474 34.2319 -18.4389 285.494 -362.169 9.25281 2.18749 -182.194 180.006 216.541 -54.8075 -161.734 181.125 827.974 -198.072 -739.274 937.346 -101.082 -396.929 523.222 13.1232 240.704 -226.072 -14.6313 283.781 -233.407 -50.3746 37.0864 -229.308 192.221 -398.83 639.331 -240.501 48.8588 513.259 -562.118 984.137 -886.701 -97.4363 790.844 -787.078 -3.76636 -576.583 -234.29 810.874 -145.494 722.045 -576.551 452.802 -443.193 -9.60915 -213.805 1.03036 212.775 34.9589 -764.255 729.296 -169.449 -223.027 -242.522 229.425 13.0971 242.704 -21.9076 16.3691 1020.86 -572.448 -448.409 735.193 -933.265 -397.416 94.6174 8.48835 208.053 16.5613 -778.312 761.751 -90.3611 -856.85 415.78 -451.19 35.4098 -106.803 832.854 52.7559 -736.916 684.16 -206.508 -7.29717 273.571 12.073 252.042 -264.115 -431.873 431.873 82.2037 680.416 -762.62 -311.423 49.3382 -580.167 597.423 330.356 -319.739 -10.6166 -777.829 -63.266 841.095 -153.504 454.363 -300.859 434.304 83.0385 430.377 -441.61 11.2327 278.982 -46.7399 -201.733 -332.386 534.118 499.874 -380.769 -119.105 -327.861 20.6487 307.212 786.275 -80.8137 -519.109 -81.5715 600.681 -661.016 661.016 -131.706 505.57 -373.864 95.4682 -345.382 249.914 -919.218 342.634 305.766 -356.076 50.31 436.596 16.2061 813.535 -495.32 -318.215 918.563 -71.1432 -847.419 71.7398 144.7 -847.544 614.643 232.901 -25.6736 279.553 -253.879 -205.143 226.56 -21.4173 -46.1648 -488.012 875.521 -890.36 14.8388 -59.797 428.996 -13.2166 789.321 -794.392 5.07089 247.838 -7.13458 33.065 -246.624 822.121 -963.805 141.684 246.944 -341.707 94.7633 570.457 -570.457 899.935 -93.2214 -806.714 594.107 73.1043 -667.212 64.6125 -333.702 269.09 -176.304 265.348 -89.0447 -479.867 326.363 52.4537 736.867 -392.76 529.139 245.083 -173.344 -684.139 -176.156 484.963 -630.457 453.228 -500.729 47.5011 -900.344 1036.38 -136.035 -579.216 555.434 23.7824 506.811 -581.767 74.9557 130.014 737.056 -867.069 211.187 530.827 -742.014 723.354 505.136 322.495 741.269 320.737 -231.627 -89.1104 -292.459 292.459 370.487 -401.356 30.8687 -27.7116 1090.06 268.33 -321.511 53.1816 532.336 -483.478 -297.43 -562.377 551.398 -564.771 13.3736 -29.0416 904.563 267.503 -293.176 -244.623 212.141 32.4823 498.766 -587.46 88.6944 -197.538 959.122 -761.583 588.582 -81.7716 772.484 -382.644 -389.84 337.639 -48.2696 471.979 548.877 -209.118 192.888 -743.838 59.6989 -937.616 37.2721 477.234 46.4972 -679.979 891.167 -697.524 -59.6067 183.627 -205.987 22.3605 -73.9955 915.277 -841.281 -38.0587 -817.79 855.848 178.591 -176.403 57.9555 174.74 -232.696 -7.22226 -365.926 373.149 330.778 -312.08 -612.229 213.399 -244.368 440.866 -196.497 908.566 -678.09 304.632 16.1053 313.922 -14.1981 -299.724 -569.302 166.99 402.313 459.857 -29.48 525.934 -727.666 -378.31 0.712826 646.282 -746.172 99.8894 -225.327 155.085 70.2428 -656.055 638.902 17.1536 236.088 -224.015 68.7794 176.304 -744.093 826.297 -310.355 328.479 -18.124 67.9491 -362.177 294.228 233.745 -205.861 -27.8836 525.859 -328.269 -197.589 11.209 -346.338 335.129 -496.856 484.609 -77.1765 277.556 -200.379 -663.477 161.483 501.994 -343.77 -15.0827 653.685 6.04712 444.335 -21.0566 -164.552 13.487 151.065 -23.9221 729.829 -705.906 -858.425 988.439 320.145 -154.122 -166.024 677.295 -775.07 97.775 425.579 346.905 706.157 59.8216 -765.978 818.109 81.8262 558.666 -529.416 -29.2507 1093.73 -1012.33 -81.4084 1.84777 -292.109 290.261 291.238 22.684 94.9668 141.25 209.462 -13.9279 199.873 -196.854 -3.01863 138.81 152.075 -290.884 -301.661 281.827 19.8338 -167.233 -299.45 466.683 419.251 -550.957 -316.652 201.108 -189.618 -11.4897 189.935 1008.83 -559.34 -449.492 525.647 -109.058 -416.589 137.553 508.388 84.9148 473.751 -1.53894 -698.202 715.969 -17.7677 42.6073 -546.121 503.514 -96.6212 -248.327 344.948 -447.751 38.717 409.034 -140.218 -335.813 476.031 779.984 -1.26342 24.8501 199.926 -388.293 188.368 153.214 -230.39 -920.956 849.902 71.0548 -291.994 305.989 -13.9947 675.342 -87.5691 -587.773 1047 -603.802 -443.197 199.279 -188.734 -10.5452 260.755 -112.36 -148.395 -420.175 417.66 2.5148 662.23 -30.6285 -631.602 -697.095 -1.10713 380.653 26.8073 -561.303 450.882 110.421 585.222 -578.044 -7.17815 -855.761 44.4117 811.349 856.376 33.1968 -889.573 -424.152 283.935 -202.619 38.0662 -330.096 539.57 -209.474 -189.073 -55.5506 754.992 -793.05 -147.45 205.405 543.246 -168.213 -375.033 -123.37 -308.503 213.473 -213.279 -0.194476 619.613 42.6177 683.319 -608.697 25.9003 -302.264 276.363 838.031 -876.591 38.5605 -310.771 -8.9684 958.376 -961.384 3.0076 63.5174 193.082 -256.599 680.173 -33.8905 571.706 -592.619 20.9128 -828.081 849.406 209.426 -192.233 786.599 212.007 747.115 157.989 190.364 -348.354 -297.127 -5.97009 824.964 -74.2003 -750.764 598.678 -131.413 -467.265 257.519 -86.1701 79.3177 416.193 90.0036 -266.307 473.717 -503.749 30.0318 141.1 -347.41 206.31 137.469 388.39 60.7091 857.854 653.168 -773.159 119.99 -22.3197 980.696 -292.106 -17.7405 309.847 -217.698 207.278 10.4196 -1.50711 171.883 47.8349 452.039 334.729 -341.951 -352.83 30.4105 -346.182 48.3078 838.329 -58.3453 88.0879 -234.396 146.308 -959.262 21.6456 -923.345 -35.9172 -486.348 59.4237 426.924 -736.639 905.956 -169.318 -202.534 -58.3087 260.843 -123.996 -91.612 215.608 -153.151 -47.046 200.197 -135.513 228.674 -93.1608 853.468 424.724 -224.799 159.785 -11.7382 -567.478 -879.91 -41.0467 447.013 151.666 194.414 -524.51 200.805 -1107.17 906.363 17.6985 209.229 -226.927 2.19186 -207.335 417.927 26.4088 89.0838 701.761 277.147 14.9297 -292.077 -468.103 582.048 728.876 72.7132 -801.589 -780.294 -7.03315 802.939 -856.351 53.4126 303.896 -290.102 -13.7936 87.7592 232.386 850.911 -864.913 14.0023 978.825 -862.144 -116.681 939.339 -943.843 4.50355 -400.847 -160.455 -0.615848 -873.436 544.62 328.816 -176.219 161.028 15.1906 -246.601 385.411 138.976 90.8998 -229.876 753.821 270.134 -259.619 431.497 94.1495 784.248 -699.178 -85.0699 -52.3292 -105.683 -89.6776 195.361 -304.201 261.587 42.6138 862.807 -838.835 -20.9147 378.251 -357.336 -332.833 -29.3358 572.482 -583.076 10.5939 365.653 -327.383 -38.27 -828.606 731.253 97.3531 -905.862 831.867 142.964 117.791 -404.985 275.822 129.164 466.632 -453.342 -13.29 620.83 -622.617 1.78695 517.968 -44.2512 -320.104 -129.682 449.785 6.90369 -299.01 -64.5559 -250.7 315.256 544.289 563.934 -1108.22 -900.86 849.223 51.637 1.7884 -404.094 417.679 -13.5855 430.94 -399.205 -31.7352 673.972 -849.342 175.37 711.946 -883.538 171.592 -501.952 -161.524 -439.981 62.2864 377.695 302.358 -5.75863 -296.6 -325.771 172.62 477.515 84.7303 -719.744 -108.862 15.0751 184.797 -298.441 303.327 -4.88618 25.7364 -339.146 313.409 488.881 40.4986 -529.379 -238.742 302.477 -63.7352 -896.189 -19.6369 915.826 -195.424 -39.0894 234.514 6.10389 -849.725 843.621 804.703 -118.348 -686.355 335.973 146.121 -210.677 -874.869 -21.3205 808.791 41.1101 2.42545 552.651 -194.758 -512.804 -18.2197 531.024 -801.988 913.793 -111.805 312.85 -244.9 -406.339 309.718 -29.8247 590.615 63.0701 382.33 -241.23 302.211 511.324 -11.9815 23.8786 341.774 -779.68 90.3284 689.352 456 95.3974 -128.773 -31.3841 160.158 -851.801 -23.0678 65.6259 333.564 -189.879 232.606 -42.7269 41.9777 -280.719 -290.15 280.153 9.99701 -17.3624 24.007 -513.564 489.557 -611.768 -134.404 -18.7688 299.183 -280.415 -337.103 461.617 599.383 447.616 -1102.78 430.491 672.293 328.664 0.239923 -328.904 -231.334 -169.487 400.822 -525.584 556.293 -661.313 -19.4869 680.8 100.558 80.1562 -180.714 -44.2565 799.248 839.49 -862.759 23.2689 807.389 -154.22 35.9514 -605.382 -321.926 -24.4122 556.776 57.7081 -614.484 436.735 23.1221 -348.479 390.586 -42.1076 -854.002 -3.70206 857.704 -27.8212 -823.98 280.828 -288.659 7.83067 625.222 -4.39225 574.319 -418.885 -155.434 -215.927 274.254 -58.327 -85.0545 -267.776 -419.416 -47.2116 896.411 -184.465 -825.927 89.2886 -629.175 17.4069 -537.91 47.9439 489.966 820.546 -39.6221 -780.923 -259.397 123.884 3.7173 -356.692 352.975 863.083 -189.111 305.658 -3.30007 637.175 -65.4691 494.327 -5.44623 801.327 -712.244 -1045.14 -57.6424 444.424 22.2082 537.67 31.9739 729.522 -694.563 796.56 -38.7037 -757.856 189.783 -228.777 272.539 -10.9517 -117.655 211.358 -174.271 474.882 15.2996 -490.181 576.062 -94.8273 -481.235 -458.137 421.313 36.824 128.82 672.507 12.3735 -102.027 -756.31 858.338 73.1307 -666.138 593.007 222.455 -300.943 78.488 -745.534 643.507 91.6836 713.019 -504.412 1048.7 232.368 -144.28 -284.619 -177.892 251.063 -73.1713 204.526 -267.917 63.3907 -178.339 317.315 11.6722 -344.505 -50.9848 4.71346 -409.53 404.816 -47.4916 -161.172 -194.336 -27.2157 364.951 -337.736 -870.859 944.459 -73.6004 45.4724 -527.931 482.458 31.1347 -248.833 -755.686 105.965 649.72 357.236 -225.499 819.408 1.13743 -36.4729 227.341 -190.868 443.334 130.984 -104.707 -335.274 816.271 -201.628 -95.2304 -914.148 614.046 -332.783 124.361 57.9587 651.584 -572.82 495.203 -12.5426 340.394 -34.6273 338.463 -420.775 82.3115 191.426 -237.013 45.5867 52.7295 244.794 -297.523 339.825 -507.058 -6.45758 761.955 -806.212 537.393 -62.5113 -107.711 739.403 -631.692 -268.28 301.374 -33.0941 -70.5344 292.99 198.317 -189.829 -278.812 10.5317 -1061.39 589.097 472.297 -35.8259 -79.2228 170.068 -307.719 293.412 14.3073 -675.985 692.546 267.132 -271.828 4.69615 -484.619 185.169 -504.523 -556.871 235.143 -278.209 847.158 -946.589 99.4306 -343.269 21.3434 488.91 -626.678 137.769 -2.81354 811.605 268.029 -288.415 20.386 -326.921 -546.515 -37.1013 292.224 -25.0918 367.533 -130.387 -237.146 -19.7701 -845.925 865.695 -878.107 488.999 389.108 -55.4363 735.852 -461.26 41.8448 -138.795 -125.925 264.72 874.397 -822.95 -51.4473 390.511 -324.885 797.833 5.10608 110.305 77.2373 -187.542 -580.551 1024.4 -443.846 141.583 -189.13 47.5478 -759.02 -144.965 903.985 144.435 223.098 853.5 -31.3794 813.468 -736.748 502.162 -422.844 -18.2444 -229.916 44.3539 148.888 -193.242 311.25 241.401 -21.7529 -1098.2 619.195 479.004 8.82168 891.722 -60.5381 -831.184 -430.49 622.037 -191.547 57.1248 756.344 27.5262 -540.33 -590.495 -18.1701 608.665 418.246 139.962 -558.208 -264.782 -522.296 278.28 62.1132 -174.36 -74.5726 -405.659 352.249 53.4107 -793.478 298.159 199.415 -260.2 60.7848 225.978 -266.052 40.0737 428.815 -424.102 731.289 52.216 -783.505 -202.815 48.7338 825.772 20.7561 -846.528 -373.704 22.4392 351.264 118.64 860.185 -407.826 454.447 410.843 -72.3803 -954.601 99.7474 854.854 789.132 102.59 -36.0543 227.481 50.0213 380.919 903.034 133.346 23.0341 -484.294 28.8338 -827.212 798.378 701.67 -771.132 69.461 636.363 465.971 769.004 -56.0305 -712.973 190.521 -48.9386 75.9998 339.158 -415.158 -735.267 792.392 263.445 167.82 -275.218 168.749 106.469 -111.251 -426.747 537.997 -31.169 -211.353 1004.42 -573.93 86.1337 -288.668 182.421 -218.894 -107.487 -151.644 30.8196 820.091 -168.947 508.772 -606.028 759.965 -153.937 686.701 -710.623 -399.378 381.159 -443.091 -179.526 39.2426 349.015 -15.6017 -333.413 -46.2941 808.249 -505.251 -623.37 1128.62 287.873 -244.83 213.261 1.61451 196.702 -250.452 123.69 -885.367 909.037 -23.6704 -284.998 259.844 25.1542 72.9043 711.344 3.36205 765.642 634.896 -15.2832 -14.9619 -510.914 472.437 38.4774 933.099 17.1499 -950.249 -323.636 -50.068 -0.1557 -234.457 801.102 -69.8137 529.007 -623.044 94.0366 -762.182 -84.599 12.0859 291.81 891.85 11.184 -490.174 440.378 49.7959 -950.463 -94.6794 39.6011 -377.843 338.242 -224.066 250.437 -26.3716 254.817 -50.2903 -39.389 1050.29 -313.211 -737.077 579.527 -50.5195 54.9162 -262.72 -70.9828 -689.588 778.26 -88.6721 -78.8278 -19.8427 245.821 504.534 -5.76865 92.7853 -870.614 -84.3521 208.476 -124.124 -207.966 217.522 -9.55598 -681.774 570.524 -456.047 480.054 344.637 45.8741 -459.538 424.317 35.2212 584.205 424.627 498.122 -459.738 -38.3849 494.301 -319.662 -174.639 -187.236 26.4341 349.141 -20.7614 -328.38 -253.745 75.8532 -326.628 290.102 -219.054 -636.707 -691.662 -81.4964 257.89 -58.4746 666.027 197.056 7.07289 222.352 817.231 -83.7447 -733.486 328.227 -141.945 646.828 -504.882 238.83 -297.139 -91.6711 509.917 -751.152 7.05896 -119.619 -105.708 500.009 -97.3088 786.73 -689.421 -197.317 231.761 -34.4439 -38.8227 -246.175 829.585 -737.902 217.764 -427.632 -409.348 836.98 865.901 -199.874 -42.6517 792.839 -750.187 597.282 -6.66711 17.5844 -608.079 282.526 145.315 -427.841 -403.747 479.746 -24.942 -314.352 339.294 -616.309 64.8953 551.414 -134.551 510.348 -375.797 -483.339 407.963 -482.245 74.2818 105.086 -170.77 65.6833 -180.82 338.809 -197.729 -180.581 734.398 -32.7275 102.222 581.097 -610.971 648.725 -37.754 269.761 -288.53 -811.018 -51.7409 96.827 -432.64 590.118 460.169 -615.745 172.654 419.723 -847.355 382.712 -681.851 28.6454 653.205 -187.056 234.873 -47.8169 -816.303 886.695 -70.3914 -47.6711 -432.056 479.727 1005.36 -405.642 -599.719 -67.8868 -788.465 -19.3413 300.17 -950.456 207.434 743.022 -857.686 -92.7701 -170.334 -5.8855 -777.772 731.478 -129.302 -303.945 433.247 -7.16353 -271.614 278.777 160.164 647.225 240.743 147.022 -387.765 -902.864 154.565 748.298 541.104 -580.859 39.7541 604.526 58.5822 -663.109 -45.3791 673.508 -639.911 -33.5964 352.291 -23.6275 -39.0649 244.942 -205.877 608.482 65.0258 13.0069 -793.301 721.532 -777.563 -175.554 219.907 333.56 160.741 132.359 -330.088 200.728 -203.581 2.85347 338.115 -197.912 -140.203 592.245 42.6509 -748.816 801.526 -52.7097 -405.675 -95.8688 501.543 -6.44409 -291.996 240.101 61.8173 -301.918 243.545 -95.5598 -147.986 418.164 -465.835 -61.7129 -740.275 -410.302 89.1969 144.548 502.308 -434.501 -67.8065 -234.764 252.462 -195.59 189.149 6.44135 18.5607 -220.191 201.63 -321.381 378.093 -56.7116 223.181 -21.8934 -201.288 450.466 554.894 -257.863 555.38 -473.671 141.717 -233.491 91.7741 -196.713 -22.4653 219.178 701.254 -96.7277 233.369 -164.59 -358.811 272.096 86.7152 -422.07 -19.7641 441.835 -351.817 448.643 306.926 -325.013 18.0868 -14.6876 28.2283 473.934 462.604 35.5181 38.0046 -460.075 219.461 -7.32044 -334.98 -8.28972 -367.596 298.431 69.1648 340.451 -62.1702 675.415 220.996 -229.244 247.804 -285.399 306.048 104.622 654.155 -758.777 -737.686 -25.0985 762.784 1.08815 161.812 16.7751 -338.156 -690.623 621.061 69.5622 120.762 -173.246 169.144 4.10169 436.448 -153.922 -255.232 -174.776 430.008 -162.467 -348.447 216.798 -16.0701 -254.893 116.098 98.0997 -182.452 -1009.53 696.317 -346.855 346.855 851.477 242.258 -35.1724 -509.085 -500.442 208.339 327.523 527.931 42.5259 544.424 -50.0976 273.678 -274.798 1.12066 -629.318 662.112 -32.7936 -50.3302 -531.882 -48.2847 -632.361 715.207 -82.8465 83.7382 -492.89 -352.705 539.398 5.02636 524.48 26.5285 -551.009 749.344 -646.898 6.98635 -113 -64.6538 177.653 -416.089 89.4605 308.889 -31.074 -277.815 -155.257 -47.3615 -299.524 287.597 11.9265 -289.639 73.7124 870.853 -195.438 -340.874 45.1098 769.177 -2.18407 -766.993 584.135 -658.872 74.7369 -922.864 830.383 92.4806 -22.6093 -638.704 110.407 295.66 -21.3968 -260.356 281.753 -786.962 28.1172 -201.559 -287.625 266.229 -465.979 511.451 -269.184 268.401 0.783865 -299.653 302.374 -2.72095 -813.382 705.671 995.973 -148.814 -173.369 295.764 -232.246 361.092 -170.728 423.647 -326.635 -97.012 285.343 55.1077 811.526 -87.8643 -723.662 184.627 -681.483 -759.474 675.854 83.62 6.13444 -617.031 624.915 -7.88394 59.2267 174.142 -102.469 521.72 -268.322 290.125 -21.8032 378.861 -457.966 79.1052 -608.542 649.082 -40.5398 586.1 43.7192 -629.819 256.3 -221.639 -34.661 557.229 -25.7998 -531.429 234.677 -123.09 -111.588 -127.814 -49.3747 177.189 958.583 -949.279 -9.30473 -575.49 -388.315 -45.7754 -758.726 804.501 -897.63 834.364 -591.518 373.569 217.949 605.041 -623.211 -13.3181 676.607 -663.289 22.2884 145.922 -168.211 -49.9859 -289.16 -855.986 -66.878 15.4718 365.101 334.043 -739.684 220.974 -1.51258 -224.837 224.837 409.963 -142.503 -267.46 -911.344 25.9774 -2.80029 -23.0534 -481.589 504.642 -753.797 -80.5179 486.659 -406.141 -252.379 -408.637 431.28 -9.96661 -48.699 257.928 153.502 184.613 -548.927 398.168 -159.612 400.355 338.017 -52.6742 763.498 -710.742 -283.551 -5.56222 270.694 -946.901 -3.56142 5.61615 927.483 532.424 -448.686 -844.574 577.805 266.769 12.077 258.673 -270.75 350.835 -10.6291 -340.206 -461.257 30.7675 -835.64 749.364 86.2764 -131.957 -191.679 188.318 39.4917 -227.81 212.831 125.186 -800.987 17.8828 -591.147 325.68 265.467 61.3392 248.515 360.162 -324.143 -36.0191 -376.19 402.249 -26.0593 847.405 -513.363 -454.877 312.931 -318.486 189.257 129.229 423.371 -720.8 568.32 -27.216 811.239 -807.877 79.8841 154.793 -830.394 814.233 16.1606 -795.167 46.3501 -472.163 -527.85 1042.66 -186.279 931.087 -835.188 -95.8989 -521.122 -463.311 984.433 -47.9846 -253.677 55.4284 224.086 -228.114 4.02801 -21.6754 -56.0591 733.354 471.015 -37.428 -433.587 -370.183 -199.119 30.2281 -90.6469 -251.06 -147.727 429.761 -282.034 -925.615 925.615 92.4215 -808.217 490.001 -510.467 69.0657 441.401 -210.857 -194.129 169.493 -169.789 -379.138 -559.61 389.821 599.064 54.4116 189.134 418.514 -930.198 511.684 -25.0143 302.161 -225.315 -261.033 -212.69 430.003 -96.4435 -179.033 -139.453 -65.4734 -835.387 452.383 -517.947 65.5643 18.0252 -697.344 781.029 -83.6849 415.766 -419.625 3.85942 244.475 -566.731 529.752 36.9795 106.215 115.975 -222.19 198.245 -237.31 378.944 -708.781 329.837 110.535 758.329 170.296 239.666 -68.5259 -492.963 469.91 291.667 -305.649 13.9818 416.249 -37.3879 353.913 -381.128 -20.8251 -367.544 388.369 -17.3868 -296.612 303.174 30.4311 -333.605 -431.761 284.034 -386.752 37.5686 631.173 -749.521 -409.517 531.517 -312.267 -91.8268 976.639 -866.104 -492.78 -312.281 805.062 295.076 34.9717 291.129 -326.101 -459.592 150.438 -282.395 -51.6073 450.509 -563.677 113.168 47.4155 613.6 -184.206 71.2063 350.08 -288.741 708.74 -329.796 273.913 -174.24 23.5551 364.561 -388.116 -27.333 -292.187 -10.0764 -251.352 249.037 2.31526 2.48699 562.078 -534.552 52.5732 -891.585 113.274 800.836 -3.00294 328.29 -115.459 525.493 328.7 -854.193 598.388 239.941 671.532 -768.841 -754.403 108.249 646.154 302.501 41.1369 -343.638 182.013 -174.403 -7.61015 35.8936 274.677 572.945 -196.108 33.4706 162.637 -156.644 -607.077 763.721 -338.88 366.437 -27.5572 -251.093 292.805 -41.7112 -147.41 -174.101 -255.463 207.358 48.1044 920.099 -920.099 -87.1259 727.007 -639.881 294.374 -206.614 344.003 -68.1809 -658.165 187.953 26.4523 -214.405 39.6522 -581.833 542.181 32.6197 -228.77 196.15 908.496 -914.143 5.64705 301.32 -674.643 373.323 337.664 -298.063 50.7924 309.37 -350.74 876.233 556.872 -106.363 -72.0984 -240.294 -400.38 318.765 81.615 224.707 -345.796 330.48 -500.658 170.178 -234.753 47.6978 -873.303 -73.5987 35.5776 -732.922 314.079 -178.806 796.375 -773.259 -23.1159 434.365 54.8205 -489.186 -685.475 610.612 74.863 -275.583 226.202 49.3812 319.221 -27.5542 -426.047 -254.807 881.836 -837.485 -44.3502 -357.483 658.802 126.201 -531.876 -865.043 11.0411 -54.5965 -605.119 659.716 35.354 -137.514 -137.704 -917.085 416.549 500.535 185.801 3.34796 448.976 -33.2108 543.449 256.979 -275.808 18.8293 -333.441 -5.74781 339.189 -546.11 445.404 -6.11964 -195.799 201.918 228.356 -40.4036 -92.3844 369.219 -276.834 -353.411 4.93256 433.977 -9.66047 57.8425 -808.759 750.917 -664.257 664.257 49.7023 189.128 -91.8207 -507.747 599.568 -854.494 938.118 -83.6246 741.143 55.2318 -14.114 -834.574 848.688 323.167 -340.268 17.1012 324.354 12.9124 -337.267 584.868 -636.779 51.9112 24.7813 320.54 -345.321 -201.325 -127.496 328.82 190.584 -8.57079 108.013 -711.311 603.298 -760.035 267.255 347.3 -312.328 793.728 59.7721 -77.2725 -433.194 340.453 -391.334 -682.105 103.067 579.038 330.967 -270.316 -60.6511 -530.627 616.485 -85.8579 -81.6482 -362.717 444.365 406.112 -382.233 -587.69 -329.395 598.564 -726.211 127.646 -410.279 -434.294 837.866 -39.7004 -645.775 120.181 457.223 -577.404 563.547 -644.703 81.1559 28.7442 -262.151 11.1118 -692.962 -318.141 321.858 -9.1707 570.441 -692.688 122.246 -344.477 -430.592 3.67344 -685.696 697.925 -12.229 763.058 -164.67 645.286 -102.67 -542.616 215.456 286.852 285.384 -295.781 10.3971 807.725 -935.862 128.136 -653.309 -101.094 -289.112 20.7896 -325.193 84.7329 240.46 -55.7296 640.598 92.134 -277.866 185.732 356.871 -335.03 -21.8408 -339.617 -251.53 -24.3193 207.946 -37.4909 -168.497 234.334 143.515 -377.849 -270.582 318.551 -47.9691 591.74 -683.561 21.648 287.241 -262.916 -62.2762 -286.903 -304.615 -711.306 540.742 170.564 -113.061 -147.098 -155.382 65.8176 -577.37 536.237 41.1332 576.952 -1098.07 -24.0639 -1013.97 -140.865 377.336 52.6666 -21.9362 -51.3657 -760.399 128.707 855.363 -849.259 617.355 -76.6127 1.85878 589.224 -591.083 -288.569 -162.334 450.903 -54.3686 -221.214 12.4445 189.775 -214.395 24.6193 -992.647 228.392 449.391 -118.911 19.6051 -627.9 608.295 300.482 -365.306 30.5364 334.769 63.3656 574.097 -637.463 -101.896 772.943 -671.047 -669.588 -195.325 -732.971 39.9992 692.972 -28.3122 567.198 -538.886 926.729 -918.043 -8.68622 567.261 -621.857 -611.183 -23.5072 634.69 -394.44 123.858 255.773 -279.53 23.7569 801.615 -772.781 -95.7886 730.756 -634.968 457.762 14.6751 -433.465 -669.683 604.132 65.5505 399.876 -92.097 -563.959 -48.6951 -10.4857 -399.044 -35.3423 244.856 -209.514 19.3787 327.921 -359.34 363.452 -4.11181 748.228 -794.004 125.924 134.919 210.424 -221.663 11.2394 684.164 -775.237 91.073 -319.218 -680.799 -8.78914 795.79 75.0627 290.646 120.198 812.884 -17.0945 -8.27016 -1029.35 173.571 3.93278 22.7649 -568.886 159.551 -137.263 -1083.23 -239.297 233.178 75.6139 218.76 -107.441 -467.096 574.537 -2.39611 -477.414 479.81 838.912 -31.1867 570.008 75.2785 -36.4542 -200.51 236.964 747.121 -789.772 -157.032 391.366 -412.103 447.491 -35.3884 -679.346 723.037 -43.6915 309.052 -362.564 17.181 393.91 -145.646 -248.265 175.001 -511.2 465.849 45.3509 3.60725 -460.876 465.187 -4.31099 613.605 -596.02 41.7734 -166.845 601.211 -291.43 57.4151 440.596 40.5865 608.112 -648.698 -68.4127 -157.361 220.269 5.93256 32.1107 -387.981 22.6749 -416.574 4.47121 249.086 -250.906 1.82001 711.212 -682.567 -483.695 82.9824 400.712 -42.1916 626.327 -15.937 -204.254 914.258 -141.744 -772.514 518.881 537.49 -1056.37 -304.233 -12.6859 289.168 4.24381 10.297 271.53 -694.676 -3.78824 698.464 592.273 -748.917 -224.274 191.813 32.4607 -528.68 -20.7539 -645.384 3.5488 138.168 -136.682 -428.09 -122.472 214.606 18.6817 -640.101 621.419 -38.2198 -497.916 536.136 -270.418 295.199 -69.2317 626.008 -731.267 754.993 -23.7256 217.661 -482.443 239.805 -253.038 13.2324 -16.425 -839.676 26.2946 248.446 -449.771 912.211 -922.891 10.6792 637.611 12.7955 -650.406 -50.6423 -541.977 -807.256 840.453 116.781 -206.459 897.669 -78.261 236.408 -12.3221 -60.4515 -716.018 776.47 -88.9993 -596.696 -25.3731 549.853 -677.813 24.504 206.256 -244.764 38.5083 -232.555 0.249488 232.305 -557.552 533.545 24.0071 -215.327 87.5136 49.1311 97.7536 -146.885 -880.257 314.5 18.1976 -332.697 54.9158 637.906 -692.822 -340.586 373.928 -33.3422 -653.09 -24.723 -663.567 768.189 -896.908 127.735 769.173 -143.179 -168.245 -444.017 63.2474 -456.769 -615.575 246.115 24.0188 -286.204 288.529 -2.32488 177.209 -70.9941 -421.387 393.063 28.3249 -954.901 972.051 -333.154 128.563 204.592 137.939 21.6122 525.42 861.371 -881.141 277.563 -45.1767 371.99 -506.541 -789.801 811.624 -21.8225 -354.294 -187.04 541.334 128.993 -166.409 37.4163 425.859 -528.328 751.367 -687.147 -64.2203 -266.534 -37.6988 319.934 -79.8335 312.555 -290.907 328.971 -652.026 -17.6574 5.62184 633.28 -373.129 147.63 20.6386 -891.497 550.001 -388.518 608.14 368.499 423.06 8.22022 744.68 -805.131 -39.2707 -15.0874 827.285 70.384 421.034 -499.714 78.6802 212.128 -195.272 -16.8566 -212.657 239.584 -26.9265 -4.27588 341.099 -336.823 -618.23 658.817 440.66 257.698 -216.076 -41.6221 361.978 512.419 312.389 -333.15 711.391 100.135 81.5454 -605.073 523.528 639.617 -35.4845 10.9684 -930.699 114.141 816.558 217.952 -257.042 -248.305 -793.248 732.274 60.9736 5.15139 814.801 -819.953 929.388 -929.388 -377.011 17.6707 602.82 36.7973 -109.084 -36.8214 -198.156 234.977 437.402 27.6517 -465.054 -433.291 19.3221 413.969 191.967 972.172 -453.29 -219.975 34.9764 184.998 -627.539 630.685 -3.14638 426.325 -469.026 42.7014 -430.642 -2.6491 42.945 -764.076 721.131 -636.354 -64.1417 -548.584 518.401 30.1834 -368.673 283.618 35.0019 -253.105 218.103 -166.778 -166.376 -27.8001 242.762 -22.4932 46.3027 289.813 -274.883 -71.2729 791.602 365.05 -50.5498 -769.827 32.1411 -890.02 814.441 75.5791 137.061 277.706 378.455 160.674 -757.489 859.105 331.021 194.347 -525.368 -160.748 594.435 -644.005 49.5707 482.777 61.2456 -544.023 645.332 -346.474 -298.858 -480.071 -123.592 -783.327 681.431 25.8261 -688.781 662.955 -711.247 108.491 602.756 -762.241 -6.39759 37.7801 508.473 -87.4392 -527.148 358.201 558.021 -586.333 -35.3467 -64.1735 221.526 -157.353 52.7293 -685.09 -232.753 -224.813 160.639 -26.3892 299.634 -125.227 -174.407 177.162 -8.10664 -631.77 722.098 -39.361 221.027 -181.666 869.862 -630.178 13.1472 160.034 190.046 0.995117 397.392 -398.387 -225.027 -203.378 428.405 180.923 763.537 378.918 -355.363 -843.354 7.71385 626.391 -609.858 -0.674072 -816.334 817.008 589.525 16.0039 -605.529 847.244 46.7514 -893.995 307.411 -5.03631 121.034 -409.603 425.448 8.52942 -254.65 334.321 -79.6705 189.069 381.025 -90.3796 610.768 -54.3186 -556.449 -758.427 785.407 -26.9796 15.1741 651.639 -666.814 -647.026 116.399 -5.23873 -442.134 610.422 34.2215 322.649 -29.057 183.522 -82.9644 -334.919 1.47765 95.9445 742.968 2.55651 -276.121 273.564 -421.778 -508.42 -57.4297 -757.769 815.199 247.842 -54.7609 198.981 -277.431 78.4492 198.667 -95.2777 -217.764 -516.875 -581.325 -792.175 -18.8427 -163.67 -815.75 776.44 39.3098 -34.2935 469.386 -435.092 59.7803 821.334 -881.114 193.93 -144.799 776.025 25.5009 -241.534 204.713 19.5235 -304.344 284.82 575.705 -573.846 -643.056 130.617 512.439 -560.577 586.303 -25.7254 28.257 257.127 -665.269 -441.898 608.532 45.7845 -654.317 -721.941 606.747 -679.202 72.4543 -154.302 -41.8057 449.871 -484.213 -847.029 852.181 107.474 -308.016 -588.892 -642.301 593.222 49.0786 175.351 -70.2643 -43.0752 465.035 180.297 -575.939 62.3748 514.368 -526.737 12.3691 73.3481 -717.644 644.296 265.331 -16.2445 -308.378 164.815 143.564 -565.149 591.678 -119.16 471.14 -351.98 681.39 -86.9559 -0.463458 -316.164 316.627 -447.069 -442.735 889.804 -165.391 268.142 -102.752 -103.259 -578.846 -570.409 425.044 145.365 408.85 -43.3383 -365.512 3.32972 151.755 -250.601 358.666 -108.065 -446.547 339.106 26.9942 -344.169 357.082 106.841 319.484 -152.827 -155.552 -212.05 -164.961 284.364 34.1864 -22.5491 537.761 -495.615 -42.1466 -881.59 723.224 158.366 396.877 31.938 371.011 -13.3513 -357.66 189.354 47.0537 -473.278 14.9437 -266.296 250.249 -263.456 13.2065 -193.391 -732.225 -648.795 592.012 56.7837 -493.361 360.693 -150.395 -329.472 -213.937 -38.183 73.7653 569.489 155.938 -725.427 294.063 142.384 -1.47316 249.675 -248.202 -59.4965 -8.57634 -828.909 714.609 15.2191 -618.927 -8.61113 -646.417 -114.249 -138.819 -312.778 -172.27 485.048 -233.116 -393.562 -651.175 637.857 -516.746 321.988 87.4447 -833.145 745.7 87.7409 -253.132 -18.5806 -236.45 201.107 -387.782 -531.766 -184.043 -19.8692 -273.834 284.306 -10.4721 -663.832 284.671 109.239 55.8017 165.725 240.637 -374.714 134.077 -802.542 38.5491 763.993 41.3436 -775.193 733.849 1.54164 296.773 -340.979 86.3294 140.999 -155.686 243.957 -88.2706 302.767 -283.243 -802.964 109.306 -342.052 232.746 -5.59413 -226.961 -224.684 -26.1808 250.865 798.236 -729.802 -68.4344 297.947 21.2743 -74.2094 680.957 17.2478 -318.431 301.184 743.503 -710.588 -32.9153 253.402 -253.153 -91.0488 842.625 -751.576 -443.314 -254.772 254.772 -557.424 870.991 -313.567 36.1155 201.198 -5.3107 -439.203 444.514 -309.252 311.808 186.254 -75.9495 -534.002 -549.229 -391.283 357.229 34.0546 -330.755 329.594 1.16102 -232.921 -42.4121 275.333 291.277 16.1338 -58.5072 693.108 -634.6 826.009 -738.564 -561.718 521.598 40.1201 -792.59 235.166 131.952 -31.68 572.87 -58.5015 -32.7767 881.014 488.246 -396.319 -91.9274 -163.911 -631.256 727.561 -72.8071 -654.754 627.635 -720.403 92.7675 375.921 -456.316 80.3952 266.911 -268.384 -179.272 83.7122 -233.76 211.444 22.3156 -853.98 763.25 90.7307 -757.4 509.521 739.846 -295.272 -444.575 61.7889 -878.092 356.753 -8.22788 -348.525 619.401 27.4262 488.785 -51.3832 -737.767 -441.862 11.2197 -4.80375 150.726 439.834 -319.653 193.818 -192.204 -629.035 68.4575 601.551 -538.186 -92.0233 403.97 -311.946 -815.016 774.301 40.7152 -80.669 279.65 -79.8744 485.64 -405.766 -252.835 222.446 30.3882 207.587 -39.2836 -168.303 451.867 624.634 -690.544 65.9098 -367.644 -53.7438 -858.11 99.0903 -452.554 391.985 60.5687 571.482 25.8 -113.058 -120.625 233.683 -47.8754 656.407 595.411 -25.4034 -925.451 93.1373 -729.66 636.522 -65.413 -223.002 -57.4771 -585.578 -693.536 185.789 -541.097 501.4 39.6973 0.190965 -271.804 -355.505 -1.187 7.82583 -866.251 -105.292 471.824 46.1446 -195.993 179.909 16.084 -179.849 552.316 -221.295 215.318 -4.89458 402.43 -412.208 9.77803 -129.335 417.55 -288.215 439.233 41.8457 -481.078 -768.38 -46.4413 10.5658 -605.058 594.492 -104.57 732.205 -815.759 815.085 -605.349 732.054 188.044 -835.337 45.5354 644.339 -41.5191 447.475 386.435 19.6766 -96.3237 400.737 -304.413 1097.2 -591.001 -506.196 -240.755 333.479 -92.724 334.265 74.5811 723.655 -101.14 341.777 321.999 -351.531 29.5316 -680.489 577.23 -55.1787 -772.56 -876.469 881.445 -4.9767 456.119 1.64309 192.574 15.9023 -224.863 -21.5849 246.447 508.674 -534.878 26.2046 180.093 -266.608 445.11 -192.073 -253.037 -375.414 376.409 276.091 510.184 286.877 -2.51213 496.875 -13.4049 507.404 480.692 -41.4595 285.815 -32.5553 -253.26 96.3578 -252.044 -285.487 -165.702 -454.546 -6.33027 659.759 798.376 -769.493 -28.8829 -773.841 748.743 463.371 -169.308 567.157 -582.132 16.1707 553.318 290.973 43.7023 -334.675 268.928 -50.592 -218.336 -799.933 -2.60864 -12.3472 -15.5293 -419.471 435.001 723.154 -676.228 -46.9253 34.4885 394.226 -428.715 33.1557 330.881 -481.275 -14.9253 664.478 -649.553 -84.3854 -582.848 667.234 185.276 -50.9542 -83.8168 821.221 695.014 -601.876 -639.313 -296.549 -298.763 298.954 7.80032 790.575 -321.528 317.252 -694.203 -11.1336 -211.636 -53.5616 265.197 -960.22 335.985 624.234 626.633 53.8561 -680.49 -28.1735 -55.55 358.724 763.808 81.8008 -845.608 813.295 437.225 -482.963 45.7373 731.312 41.6289 -772.94 353.989 -55.5588 285.874 -304.754 -202.32 472.933 -270.613 480.732 -14.883 -814.226 776.62 37.6056 879.624 -876.112 -3.51245 -17.1797 649.188 62.0249 -75.6468 2.69385 252.477 -255.171 36.7765 500.985 42.3678 389.505 906.386 -0.0235598 -221.656 256.657 955.901 -955.901 922.19 -410.506 -418.474 40.6315 394.136 -550.48 156.344 -333.743 -572.476 505.236 -543.456 503.836 -338.975 88.3745 4.84202 -823.444 818.602 -293.232 364.071 -170.446 -262.436 432.882 -761.772 175.375 -95.2183 401.508 221.424 -622.931 -8.12254 -322.633 -364.097 314.111 255.137 -200.725 379.337 -546.183 96.3286 -458.695 362.367 79.9457 337.734 -400.224 51.8709 -77.8683 -551.45 -331.384 105.203 90.3799 -195.583 696.747 -721.579 24.8321 71.3564 577.369 814.397 -20.6686 -342.984 -57.2402 -27.8312 688.509 -783.622 95.1136 -8.59058 323.104 -314.514 488.221 601.038 -625.225 24.1873 -227.572 351.43 -278.31 237.572 40.7387 -602.127 -56.863 658.99 -97.5575 -633.709 17.6835 294.257 -311.94 -617.175 581.851 35.3242 432.702 7.67542 -535.438 138.16 648.559 -734.771 86.2111 -864.464 8.47822 25.347 24.6593 332.094 221.472 64.2823 -285.754 331.503 -627.659 296.156 -466.439 -663.283 678.457 -663.469 769.434 648.443 -737.442 -125.781 -99.0318 15.1722 276.71 -291.882 -288.059 55.1373 500.009 65.0575 662.503 -264.095 -148.512 412.607 -7.09792 -633.003 488.144 -468.864 -19.2799 45.9248 -256.237 435.804 -963.653 -247.986 243.333 4.65336 296.944 -445.123 148.179 24.7955 -392.34 -377.374 402.17 -102.366 487.565 -947.157 488.149 160.944 -649.093 -729.021 786.864 11.182 -593.015 -371.745 36.7148 -358.67 31.5805 -50.955 334.853 -283.898 255.025 190.085 894.452 251.73 -13.9036 -416.165 430.068 634.656 -730.445 -728.94 679.51 49.43 103.379 -571.681 468.303 413.312 124.081 590.097 453.495 -82.484 11.785 -241.029 352.028 -290.211 -818.783 878.563 -16.7465 29.1467 301.821 62.1329 -704.91 642.777 -53.2236 -602.971 656.195 538.665 -144.53 100.487 -341.242 -293.667 19.0864 274.58 265.375 -191.66 -348.574 4.40462 429.851 -427.98 -1.87144 -356.479 823.486 -811.12 -12.3654 729.755 -740.842 11.0869 618.368 -649.314 30.9462 -333.003 -286.261 74.6254 95.7952 -401.265 305.47 -154.547 -277.215 243.717 17.4422 331.035 -40.0625 -204.188 230.469 -26.2809 499.841 -587.41 21.993 220.711 813.843 -20.0348 311.452 -351.455 -56.9425 -588.097 645.04 647.121 -57.1604 -589.96 285.748 -404.908 -82.2888 730.848 103.125 786.963 -745.62 -867.965 -184.19 219.581 -35.3915 -5.26612 407.461 -5.03065 -235.412 112.323 48.052 148.896 -196.948 -23.5957 253.85 31.9647 -74.4019 404.37 -820.243 415.873 -481.929 817.816 -335.887 -233.76 -728.9 5.11584 723.784 -100.551 -258.118 -24.5258 162.465 -799.773 -0.159612 237.137 -576.754 410.887 -426.416 -689.14 73.083 616.057 -260.246 -85.9361 83.9438 -239.414 155.47 -467.078 -409.732 429.897 -20.1648 380.494 68.4819 -59.273 505.357 -446.084 -4.67053 -514.741 182.078 332.663 -576.275 164.182 412.093 -894.303 816.433 77.87 -182.252 682.093 -56.0446 464.015 -407.971 660.367 16.2399 570.015 858.634 -863.034 4.40019 414.148 -117.204 -644.921 58.0685 586.853 261.743 356.427 -618.17 -317.793 105.096 212.697 370.63 -666.771 296.14 42.1467 212.99 -33.4154 745 84.585 189.973 17.6135 154.268 167.118 -572.043 404.926 755.727 -67.2179 -171.481 -94.5715 -505.812 -390.834 896.646 666.966 -178.817 224.612 -432.52 207.908 -823.056 827.83 542.062 -79.4581 3.72197 426.129 355.886 -726.228 370.343 130.943 -352.072 221.129 -452.333 191.892 260.441 -833.457 735.899 -296.358 627.861 -99.6605 520.785 1035.37 -712.879 174.19 355.582 -529.772 -392.75 363.853 28.8975 -83.8509 -871.05 -67.0052 -474.092 -24.1476 -15.3284 -587.516 569.826 -142.207 -427.62 -63.5972 690.231 -685.664 86.7559 598.908 -20.5353 208.107 -244.439 -430.809 416.906 -157.477 -36.9725 605.837 49.5702 3.7141 343.141 -755.474 64.6308 690.843 850.641 -739.052 -111.589 -286.384 138.527 147.857 -12.9558 -851.508 56.7538 757.479 -414.406 -56.328 470.734 23.864 291.177 -315.041 -278.844 -64.9262 33.0296 -465.085 211.273 4.04549 258.4 -210.348 584.415 -622.49 38.0752 69.4114 951.008 -440.681 -510.327 268.415 -410.918 -451.857 -4.58473 395.56 -390.975 -26.5168 -637.74 -311.352 163.787 147.565 129.007 -304.151 175.143 -569.766 543.341 -466.718 -76.6231 779.07 -761.569 -17.5005 -794.447 404.576 389.871 -325.141 22.0677 303.073 -391.826 785.118 -393.292 -152.226 -156.965 184.191 -598.597 -191.491 -543.27 504.396 38.8737 709.92 42.2478 -752.167 341.923 -311.492 341.267 245.812 -56.4574 -693.603 719.429 156.839 -325.249 168.41 423.206 -119.979 -303.227 142.17 31.1604 -173.33 -122.791 136.278 39.3748 607.746 -188.93 678.931 -16.997 81.2341 517.33 457.446 25.3318 -441.763 474.792 364.351 -551.391 -7.5927 -839.437 -771.378 23.7056 747.672 167.37 -83.3828 -9.37698 -284.968 263.427 21.5415 257.398 -270.218 12.8203 -96.8512 192.672 -537.086 344.414 674.909 -335.803 316.845 -16.3525 -300.493 326.882 19.9605 405.454 -425.414 -215.143 -5.64487 -706.4 918.407 -536.559 40.9439 -287.034 2.06553 -30.4927 495.001 -464.508 -34.0345 -634.019 668.054 343.609 -10.1853 -333.423 641.62 -49.608 -879.577 871.985 -508.73 292.681 216.049 633.517 -268.458 107.287 9.96308 182.611 -290.125 -1.98416 4.18772 22.4219 222.52 357.004 -937.555 -86.9558 -602.184 318.442 -448.123 20.942 -848.878 -14.2668 263.74 -249.474 666.446 0.391468 -666.837 -199.76 181.91 17.8501 273.026 -885.472 15.4643 870.008 102.031 440.032 7.50447 217.332 109.5 -373.767 171.447 596.651 44.9686 -214.158 21.902 331.728 -353.63 128.587 -255.647 127.06 696.297 -634.164 -43.5601 -531.131 574.691 -113.659 218.862 16.8834 896.909 392.251 -359.693 -32.5582 -7.93309 -705.771 713.705 -769.619 342.873 -912.102 38.7993 -188.726 -262.036 450.762 548.938 -464.024 417.569 -923.381 -298.302 -368.91 -239.043 -251.315 490.358 -30.9849 289.658 643.46 111.533 44.3506 557.201 50.631 287.008 158.153 779.965 -195.579 228.199 -737.899 290.83 -32.7598 -606.681 675.369 -709.965 757.9 -47.9349 638.902 82.7882 -684.915 444.384 -478.677 326.995 -446.1 -458.701 506.645 -28.414 -43.093 -0.375824 252.853 -14.5159 -329.921 -447.661 402.848 44.813 593.028 -652.1 59.0718 373.124 301.784 46.0208 502.918 -578.677 -360.2 355.615 416.487 -150.043 -266.444 -21.462 224.939 -203.477 15.1345 474.607 -489.742 -38.4189 -724.951 -6.60371 731.554 685.903 -48.2919 -25.2007 -350.989 746.361 -49.6141 443.232 592.142 22.4318 346.787 -338.167 -445.16 365.387 38.5827 5.65527 808.845 -814.501 912.509 -72.8714 -839.637 0.260887 -485.739 485.478 -725.115 652.307 718.59 -35.2398 -683.351 476.796 -502.596 -358.529 -81.0451 378.528 -297.483 338.387 -293.118 -45.2687 273.8 142.687 571.377 -169.869 -527.63 -453.307 217.03 -231.661 116.067 -641.651 238.472 -269.834 -563.623 -946.495 -65.832 -266.704 -316.965 583.669 -434.143 387.312 46.831 53.4643 -177.654 266.237 -88.5831 121.169 -233.529 -316.323 87.7081 -358.126 1014.94 -672.576 -342.362 253.741 413.923 -440.373 26.4499 333.889 -344.518 -588.954 400.228 419.986 39.0939 -27.5179 -246.316 -10.5497 998.989 -605.724 -38.9362 644.66 18.2081 -758.707 740.498 518.261 349.78 -868.041 729.335 -686.39 -23.7347 -509.487 533.222 -284.705 -41.3956 -3.20718 -725.693 422.867 -42.824 -380.043 -139.423 279.331 9.83646 -801.14 32.7605 -46.4528 -661.078 707.531 -315.915 -52.4711 368.386 -27.8909 673.275 -618.359 275.648 11.7006 -287.349 18.1451 325.463 174.383 -399.41 -352.959 543.117 -596.341 442.352 508.656 25.7708 -699.602 673.831 -259.446 20.1485 -346.748 -71.7259 456.636 24.0961 172.672 -30.5027 31.443 -300.638 269.195 -206.011 -128.245 334.256 32.8352 16.3956 279.368 -797.449 155.001 248.7 -403.701 -310.702 -259.707 -776.846 691.776 -678.71 286.884 880.514 -133.399 -409.611 -698.612 661.932 -622.558 -32.9976 543.148 -510.15 139.178 -253.427 -791.046 891.448 -883.622 861.441 -875.169 13.7277 -50.7506 652.689 -601.939 -54.543 180.467 -107.646 -142.806 -2.21581 -562.933 382.821 -261.525 271.168 -9.64294 -817.83 -563.243 -399.845 32.2012 841.839 -323.578 436.262 -495.535 -33.1608 -207.871 241.032 -577.488 -177.986 -528.926 539.519 101.265 169.777 -271.042 354.72 23.5312 985.981 -238.421 -747.56 162.634 -357.382 194.747 -602.803 628.574 41.1512 207.391 -248.542 213.23 -135.993 44.2945 551.117 -49.2298 247.475 589.749 -637.16 47.4114 22.1872 289.265 -759.413 203.825 -409.836 27.2109 -892.254 -533.59 -195.35 582.732 51.7803 -634.512 603.849 53.759 -657.608 55.7837 198.227 -4.40871 879.379 50.0096 623.292 41.1861 294.878 168.493 -338.173 850.948 61.5609 156.629 12.1208 -614.66 58.1825 556.477 -97.9203 191.778 -93.8579 792.121 -17.8197 -12.5743 870.278 869.098 -863.443 -734.863 753.071 158.088 -14.9608 -183.386 828.955 -540.079 80.4425 -754.921 710.683 44.2375 -3.67316 -879.183 882.856 4.84201 -320.757 263.274 -3.43063 491.219 177.475 -668.695 768.156 -837.479 69.3233 -10.8304 -880.431 891.262 -204.921 9.12189 -442.591 -430.366 10.8946 141.826 -279.339 442.467 -21.5508 -420.916 -14.3355 -444.619 -266.691 280.987 -431.031 38.3996 233.317 -271.717 -13.3291 436.389 -957.1 365.195 -847.124 637.999 3.93334 -641.932 875.914 -888.488 307.877 116.579 283.666 19.1005 286.055 -254.612 -575.379 306.708 268.672 -796.033 -31.1795 -796.072 738.642 907.698 -170.643 343.791 -463.771 -74.3007 888.742 -6.03785 431.486 635.241 -88.1448 -584.312 -471.802 -528.195 -11.2895 217.546 38.7411 -180.091 -50.1426 230.233 -724.76 716.827 -148.284 -733.306 -52.9094 789.777 369.018 200.808 325.97 -563.439 340.901 -49.5253 -291.375 1017.72 -629.386 -388.336 3.40734 166.144 714.37 -57.8159 -888.669 34.6885 -46.8281 620.925 -337.132 -173.816 510.948 -156.871 -47.0656 203.936 -189.797 -8.03113 197.814 469.963 68.8122 -538.776 29.4018 362.849 -619.524 -324.074 641.374 -699.881 -791.09 -17.6689 -321.073 -558.837 -76.9748 332.718 -255.744 5.02816 286.249 470.483 553.914 -564.506 436.077 -704.85 879.898 134.921 579.734 -714.655 157.377 -295.081 -155.889 307.254 -151.365 228.921 -913.302 844.176 69.1255 8.67271 -301.905 -578.222 -206.023 784.245 342.723 -510.335 167.613 501.086 -500.825 -376.241 414.958 342.293 -414.638 274.793 -190.849 294.303 18.2524 759.887 -794.124 34.2372 411.82 176.762 -195.023 187.034 7.9886 -161.016 -231.207 459.297 -552.987 93.6898 -277.604 697.964 94.1323 750.99 73.6106 -824.6 596.488 75.4079 -671.896 -37.2657 -20.7626 -1.81222 -916.025 837.581 78.4434 -332.678 202.395 -241.756 -53.8674 -145.641 -224.542 -165.471 -421.989 744.343 81.6653 0.967406 -290.079 -425.946 -537.773 602.668 -267.465 275.296 314.086 -291.899 813.807 676.541 -752.396 75.8549 -372.395 -422.051 454.475 -315.011 -191.147 -61.8909 -211.444 180.395 31.0491 20.5588 -269.857 249.298 -212.746 227.69 -254.029 97.1584 651.386 77.7837 -729.17 -550.372 518.537 31.8348 265.452 -249.057 -513.595 520.33 47.9902 664.947 -173.728 -270.255 269.108 -443.884 596.307 -538.599 -147.311 880.898 -891.448 194.073 34.093 -228.166 28.4782 26.042 416.425 38.2002 -349.666 311.466 371.652 -275.857 518.518 -186.851 344.605 -606.493 635.928 -29.4346 -227.885 -15.987 225.449 634.487 36.0981 305.713 182.431 -19.9002 -358.988 453.193 -449.471 -4.76784 597.99 663.314 -29.6874 -633.627 -247.54 198.029 -16.1183 -369.617 246.083 123.534 -3.4015 606.699 568.587 -244.475 -83.9503 60.5604 550.207 464.15 26.5252 -490.676 -430.214 162.755 -648.685 -361.888 14.5254 347.363 -511.187 478.189 -192.043 -355.98 386.385 -30.4051 7.69172 -415.77 -576.505 941.7 -20.2667 -703.876 724.143 -282.85 297.158 -546.124 90.2451 455.879 11.5171 213.088 -224.605 -106.825 -502.119 -604.847 1106.97 152.932 37.0416 12.2989 843.064 541.644 -482.976 -58.6678 159.055 277.51 -436.565 -274.84 284.837 -581.715 -238.322 -162.615 -229.536 29.026 -310.885 575.564 -218.128 94.2316 756.41 -65.0773 33.0651 -237.319 98.5005 865.425 355.061 752.437 136.358 436.512 -286.596 272.802 -281.079 -310.356 621.529 -582.918 -38.6113 -36.3853 395.201 -358.816 229.952 867.008 9.51296 -876.521 -486.71 510.492 -113.822 -739.181 715.13 24.0507 44.1195 248.529 -292.648 218.827 0.557449 605.116 56.8165 -276.389 -211.186 15.9139 277.439 -55.9677 315.359 -323.481 -527.786 145.142 660.061 -70.3119 259.05 -408.355 149.306 -14.3534 -505.324 -96.3401 277.357 -262.608 -14.7491 -502.609 -174.774 677.383 -564.383 48.4522 515.931 -127.46 211.501 -233.395 -164.106 135.506 245.186 19.1271 -152.764 -5.7289 127.348 201.131 -57.8532 640.585 684.791 -360.755 -324.036 156.812 33.7725 -91.4422 -264.634 274.571 -233.419 421.86 -401.9 -270.111 429.166 17.7173 259.64 183.983 0.909102 -184.892 -98.6543 75.7473 833.808 -351.397 -4.58333 -442.397 -87.0187 241.369 -255.992 14.6221 -216.719 -812.477 -280.349 659.777 15.8006 -675.577 658.544 87.8169 189.916 -239.146 -180.157 -34.9855 -150.477 197.118 -232.369 35.2506 -75.6272 38.2458 334.903 435.353 -149.605 -693.237 190.627 111.819 -290.158 35.6849 -219.875 -537.753 570.487 -32.7335 267.128 135.121 396.109 -490.937 742.123 -31.44 -564.73 615.587 -50.8567 -52.6849 356.942 -326.405 58.6813 -687.996 629.315 -32.8093 -816.886 598.852 164.206 582.045 -662.677 80.6322 -425.936 441.07 248.101 -396.613 -392.492 -608.001 -136.67 -319.483 456.153 -514.249 353.794 -246.717 -167.065 -363.346 530.41 -112.323 -452.06 -86.4937 239.996 -778.429 669.346 58.5569 219.006 -531.578 -27.0294 558.607 -570.245 788.879 -218.634 88.1861 -862.624 774.437 -17.2418 311.498 -158.133 437.145 -279.012 -455.577 -491.58 -451.359 573.558 -122.198 -81.7183 -325.941 -521.04 -101.75 -105.922 -458.054 303.452 154.603 279.215 9.3132 -517.357 -500.23 1017.59 -40.4806 -196.83 -59.9974 -286.157 -76.0201 -267.322 195.223 347.273 -6.17376 363.934 -322.313 -41.6205 -7.92306 210.761 -202.838 -437.687 283.14 -36.8043 641.315 -604.511 -837.879 98.8265 737.522 -7.27195 -730.25 729.067 130.557 278.514 -299.976 -732.573 554.514 178.059 -85.3351 25.9189 633.858 -211.99 -24.4595 147.372 -157.607 10.2352 596.619 -653.561 -729.339 -9.8421 -738.69 55.0265 683.663 278.963 -369.61 255.911 -816.528 755.726 60.802 -238.804 -51.3209 -16.4426 664.596 -544.978 -119.618 -184.414 248.758 -64.3434 -231.782 39.1697 420.301 -459.471 -199.254 -337.832 368.635 188.237 -125.25 329.075 -422.763 25.0311 397.732 -36.8049 443.727 -406.922 4.55299 755.573 -760.126 -753.261 -112.934 866.195 -456.066 78.9971 311.589 20.3478 220.219 -240.567 -166.582 511.592 -345.011 -788.172 865.124 -76.9513 622.195 -440.552 -91.183 318.54 -476.541 158 581.829 -19.8897 275.76 -255.871 192.834 258.048 872.05 -135.905 -322.791 -56.077 -899.824 1081.02 -345.831 79.0664 138.456 18.0802 -89.9544 -321.41 -27.1642 -22.5887 716.892 -694.304 236.336 -737.638 -241.303 93.8923 436.955 -568.368 802.071 -42.184 7.54646 247.225 -468.857 332.187 -58.7995 -462.433 521.233 -269.865 -301.816 524.595 -486.583 -38.0121 -515.212 549.231 -79.1878 -86.5524 165.74 570.998 -518.271 -52.7272 -26.5527 -787.297 -6.00382 -604.662 560.94 43.7225 -17.4779 -731.763 161.518 278.65 -259.564 230.653 -254.495 -44.747 610.717 -565.97 3.2223 -609.585 606.363 -368.323 6.43446 -41.4269 634.455 120.363 -298.017 20.0287 -204.295 184.266 -1.62591 -294.712 331.781 -37.0692 679.141 -75.2917 -182.76 63.8821 555.018 -618.9 -207.37 8.90143 198.469 0.524103 -582.723 391.023 -318.504 204.891 617.866 -30.8377 -100.997 683.042 -633.533 284.376 -212.919 348.425 -302.935 -280.914 216.002 -4.72892 -53.4891 566.748 -245.151 -1.14741 -230.634 234.815 -363.06 72.6767 -540.78 -39.5628 540.963 121.34 9.47665 -257.313 247.836 -326.832 406.778 247.969 5.43316 645.081 -665.348 31.7126 32.3951 26.5771 780.77 -807.347 640.995 -625.195 -358.201 -135.16 58.1695 204.846 11.9517 377.953 -359.808 -29.1934 460.98 -431.786 -436.169 244.096 347.827 -6.92624 -579.863 -237.226 191.748 45.478 51.6856 213.645 638.333 -625.538 170.141 -199.387 29.2454 94.9124 -174.135 -741.934 -257.229 277.788 -412.534 -239.754 251.271 -208.845 9.55013 250.971 -260.521 -209.542 201.619 98.5069 -153.314 -683.301 748.359 -253.472 81.9916 -54.5849 518.735 5.49199 273.724 -0.656722 260.683 6.22823 -9.82067 -293.516 296.053 -2.53703 276.186 43.7481 -278.494 49.9542 228.54 -40.8326 346.636 -24.6364 -442.767 -187.516 630.282 -237.631 10.846 226.785 -44.7096 -483.598 528.307 -740.504 -135.965 -15.995 -268.914 425.269 -156.355 -132.807 62.6716 634.47 -33.4323 709.522 -650.84 489.263 -146.97 -205.364 -24.1718 -507.734 477.241 354.988 -527.258 -28.2679 183.538 -155.27 355.902 -522.484 -344.478 23.0682 -270.008 1.62385 -162.704 458.153 -295.45 222.808 -237.075 518.375 -491.85 570.65 -812.872 242.222 229.562 -328.216 -586.704 421.233 -336.526 76.2794 -51.6596 710.203 -841.153 783.569 57.584 733.238 -688.826 215.796 27.9209 -445.56 487.599 -42.0393 -7.60068 242.248 -234.647 -592.845 -34.814 -0.0823391 456.201 -295.736 304.409 -530.984 507.708 23.2762 845.288 -5.45378 -839.834 12.1237 -604.969 -12.5835 -397.86 232.41 165.45 718.856 -120.004 -852.607 772.134 80.4738 396.33 -410.63 14.3002 464.981 -137.986 355.791 13.111 -513.491 -46.8063 560.298 -643.975 598.795 45.18 18.9312 -757.664 738.733 -549.101 -52.4198 601.52 -47.1351 425.512 191.843 324.325 -469.316 32.164 437.152 -309.145 -266.235 -258.365 257.218 377.708 8.72768 296.189 8.72684 -304.916 401.038 -455.325 54.2866 -462.606 -676.206 655.452 563.214 -517.193 -572.268 434.774 137.494 -139.642 -254.116 393.758 635.233 -689.811 54.5781 180.422 403.131 -583.552 -445.559 -23.7568 -73.6716 -782.191 0.195414 -227.768 -108.033 -491.355 599.389 -26.4334 358.73 -395.115 439.632 13.5617 828.729 -752.729 -75.9998 -18.3257 -492.861 -75.7205 430.882 287.975 849.791 -516.334 299.431 -376.406 323.325 -345.166 488.023 -461.981 -12.6695 -222.094 328.901 -290.701 -226.682 247.03 35.471 -24.5842 604.299 -26.9474 -565.126 592.073 242.142 -455.061 -63.3811 745.671 -682.29 -5.60091 189.584 938.881 -319.685 -21.0758 -737.536 758.612 -696.648 -7.22779 568.567 -646.767 78.2008 229.721 -117.902 -79.1258 830.116 -442.373 413.18 35.5087 162.182 47.686 -209.868 552.289 -172.951 205.198 5.75204 -210.95 845.436 -102.469 -56.2909 832.911 71.0619 194.184 -280.677 649.384 601.367 -3.0511 -598.316 -463.284 32.0677 431.216 -255.909 -586.363 -18.4313 604.795 -493.363 -168.021 661.384 -263.353 -28.7239 -347.957 451.082 -911.061 812.371 98.6908 -770.953 797.531 10.2263 669.283 -592.091 -3.80993 -899.02 899.02 -577.878 575.663 -45.1249 244.434 -136.331 -380.003 431.378 32.637 34.2749 445.452 -4.68011 235.333 212.71 -50.5279 -534.08 38.5397 -569.67 -487.763 246.977 240.787 850.541 -328.745 290.803 37.9419 -1.70479 224.151 602.842 -1.47527 -171.798 -264.37 785.201 -780.648 943.891 -542.976 -400.915 -891.317 316.919 574.398 -228.047 23.8596 -4.16409 -200.168 245.754 173.786 -153.909 -19.8766 -117.777 413.854 -296.077 -656.758 649.66 525.831 -20.7215 -505.109 235.775 -235.58 231.835 307.022 -283.158 -292.09 -118.064 410.154 -435.237 264.791 -56.8702 -595.23 532.256 -176.674 533.878 581.61 -108.86 -472.751 337.307 -333.432 -3.87454 561.138 -518.052 -43.0865 770.792 410.138 -380.736 -47.2455 643.733 502.45 -141.757 343.205 341.586 587.135 0.636989 220.849 -367.176 146.327 -13.205 -621.644 634.849 -408.696 139.782 -347.817 -11.734 431.74 789.065 -784.223 198.495 289.751 816.951 -728.765 -1032.22 204.136 -662.594 195.733 6.19592 -201.929 -1.59299 40.5397 299.16 -339.7 354.864 23.0892 -134.035 -202.49 -222.39 -468.154 305.953 341.896 -322.517 -39.0841 -567.83 606.915 -180.136 -14.8875 24.294 -303.138 -244.447 182.797 -179.792 -3.00504 760.528 68.201 378.574 31.5638 37.3719 -569.877 532.505 -369.545 384.07 673.181 -672.789 -1032.92 561.116 173.624 116.501 -523.816 -315.445 -134.658 450.102 -778.772 25.5115 187.916 40.556 -228.472 334.067 -469.972 -66.885 -16.0874 539.415 -523.328 14.1685 397.401 -411.569 502.352 23.4783 -302.041 181.416 -534.003 547.958 -13.9547 550.339 -185.987 -227.248 271.367 544.423 860.297 -865.751 -85.3961 354.486 -15.1225 -520.691 535.813 -407.977 -244.157 -124.515 603.724 476.046 -541.254 65.2081 -471.76 456.637 254.776 21.9332 -178.825 184.892 -6.06647 -242.314 255.52 -282.64 275.775 6.86462 -44.5109 860.944 -834.187 786.918 94.5271 -188.441 7.52641 180.915 -282.167 332.798 -560.368 733.847 -277.411 227.377 20.4277 -363.427 540.304 -176.877 417.987 25.7394 389.599 585.353 -454.736 323.578 -301.51 28.8758 582.609 -611.485 171.658 280.824 -533.203 -618.284 166.925 663.07 -774.875 656.828 -8.55884 -648.269 -809.937 133.952 539.945 -225.121 240.792 171.815 34.3725 63.6388 -326.843 -249.432 502.135 41.0131 -879.183 -17.1386 380.991 253.941 -307.502 384.967 279.629 201.803 -390.49 188.687 -880.431 259.207 -279.097 -166.322 429.767 -367.938 406.184 -19.8838 383.343 -363.459 278.391 -418.49 140.099 174.46 -445.011 347.999 -381.183 -538.035 -787.157 766.081 -642.315 31.4313 610.883 -222.664 -22.4866 -94.0274 208.377 24.8007 63.7014 188.108 -251.81 -655.263 665.715 -10.452 256.828 -236.995 40.0813 325.251 -333.842 -221.848 -231.482 223.881 -506.113 536.296 -164.728 -137.314 985.083 3.24252 317.297 -549.17 -81.6235 630.794 -545.013 302.769 -307.655 -270.233 6.88041 -335.682 319.663 16.0191 255.609 15.1668 -270.776 1.29203 178.249 -207.95 204.931 316.726 -218.065 143.418 646.248 -692.701 8.16297 -675.087 -12.9824 291.759 26.0866 403.81 39.6649 595.721 -635.386 -599.569 -460.937 280.464 180.473 -462.839 -234.139 28.7751 -260.358 -17.0729 -544.587 -97.7276 -196.04 -11.3303 -1047.44 519.241 -381.974 776.644 -394.671 -225.352 -43.1065 526.651 -521.12 -5.53112 17.0462 662.589 -679.635 11.5024 23.7963 241.117 -264.914 167.571 -528.856 536.542 -571.197 34.6555 -510.891 452.091 165.481 16.8691 -182.35 -463.223 -51.9525 770.439 43.9578 -497.881 -489.673 987.554 -677.179 619.841 57.338 -306.873 213.712 -178.978 -9.46332 -458.068 12.5088 323.565 222.819 54.8239 506.314 -1017.57 500.21 20.4307 -179.146 199.624 -20.4777 1072.14 -654.567 73.5966 -826.325 709.309 -656.58 563.505 -581.936 -788.473 18.9803 75.8037 166.444 -879.165 918.29 -39.125 -170.944 73.0238 -590.892 649.075 -419.447 458.616 -537.778 -479.789 -22.1322 -301.349 -856.74 8.00423 848.736 -23.3551 286.899 -263.544 275.313 27.3569 -302.67 -227.782 -259.981 258.77 -244.441 -14.3288 26.0939 251.462 -650.543 550.508 450.999 549.001 -72.1847 -622.452 660.99 -38.5381 -13.9792 239.428 28.4579 -239.811 233.172 68.2023 -549.071 35.5801 -119.965 -14.8276 260.265 -245.437 -862.9 875.198 222.597 -3.63569 -218.962 -265.681 -34.9568 430.124 -12.4635 -405.201 265.138 140.063 -228.729 -243.378 237.784 41.207 -640.047 598.84 387.772 -379.609 -246.703 -40.3314 -507.143 -561.93 -587.979 38.8788 268.567 -220.671 -47.8968 -66.7674 584.165 -517.398 494.331 -539.078 8.2836 -234.966 553.616 -635.188 11.6482 217.322 -228.97 -451.74 682.58 -230.84 21.4901 -83.3609 -563.407 -391.622 -213.396 -45.696 259.092 -92.5652 -528.292 620.857 -651.636 697.271 -45.6354 -853.815 -2.92562 20.5773 862.433 -883.01 297.824 -14.1577 382.613 135.316 -517.929 -17.1223 -282.111 299.234 -61.8831 827.525 -338.908 -30.8475 369.755 -276.293 -25.6248 -248.32 19.1767 -239.123 219.947 446.385 41.6382 475.98 -443.816 204.552 -198.749 -5.80305 -496.377 530.893 -34.5161 -40.68 -54.6527 -176.176 587.868 -584.646 262.756 518.578 218.497 -571.793 -521.542 40.702 480.84 320.068 43.8663 421.791 574.181 477.789 390.711 74.2704 -40.3826 465.252 -424.87 -257.141 410.585 -3.12439 206.229 30.7354 59.1427 0.442313 -570.693 -15.0262 -245.332 -170.21 444.152 -273.942 -422.963 21.1671 361.163 37.7811 -457.228 -709.348 702.744 406.441 -386.011 363.42 -104.213 0.182542 517.746 -517.929 -212.577 410.451 -357.04 908.178 -842.627 -65.5511 688.661 -50.6623 634.989 -38.3381 411.109 693.613 -44.4258 -615.141 656.348 201.538 -4.83555 3.26903 547.454 -550.724 31.2461 693.71 -724.956 -318.419 476.448 -133.725 -359.88 255.172 -157.512 -303.946 461.458 485.355 -277.176 51.824 -22.1932 568.101 -545.907 -296.797 6.71774 -532.784 36.4068 665.958 -42.6663 528.917 453.851 -546.417 -199.625 15.211 -879.577 64.5346 -298.312 -23.436 321.748 -41.5753 554.236 -512.661 176.004 7.53404 20.6807 532.936 -261.024 259.206 -244.375 -14.831 -571.954 583.136 -345.696 285.079 60.6173 4.90078 460.164 -465.064 -27.3069 483.942 -275.118 -6.86564 281.983 -550.826 16.6834 -298.287 281.604 290.378 7.44638 228.217 -235.716 7.49927 186.493 -629.259 227.781 -223.386 -4.39547 18.3251 230.433 -313.915 -461.347 449.613 286.141 -0.267699 580.682 -543.31 239.935 -257.057 15.6209 -3.29239 168.774 285.222 13.9386 81.1349 -882.937 801.802 -402.117 -6.27253 -544.554 225.63 -238.299 457.448 -128.741 -328.708 521.015 -37.9658 487.928 -449.962 287.799 16.5601 -304.359 -197.83 -10.1201 -868.17 -0.500222 868.67 559.319 283.817 14.4949 -592.373 -147.488 388.281 -596.705 611.2 -893.241 481.138 412.103 284.855 -246.455 -240.782 -104.914 -55.8754 -549.198 -25.7623 -1025.32 279.782 5.52201 -796.611 791.089 240.475 -176.773 21.6509 274.74 -296.39 -134.296 496.663 -296.954 -77.7599 -235.966 201.802 34.1634 313.139 136.646 14.9596 217.409 -2.0592 526.936 -524.877 772.41 44.5409 -131.218 458.1 455.698 -417.917 -705.829 433.509 -120.37 -260.413 -98.1257 342.239 -244.114 -292.449 -32.1045 20.9417 -263.258 242.317 -28.4472 -736.58 765.027 -276.411 -559.947 -4.75609 -381.617 386.373 434.876 -153.889 401.134 -18.5477 -630.074 648.621 -409.866 194.275 59.575 652.222 -47.106 -957.991 506.251 -252.608 17.6455 234.963 18.1291 247.323 9.10521 274.711 247.525 -156.639 404.74 556.581 -483.905 -83.9103 423.068 3.97186 -69.4452 -20.6752 -219.079 -276.463 19.2341 37.0118 -825.54 788.528 -375.232 2.90275 372.329 23.8374 -290.48 14.1862 299.409 14.6774 -823.76 905.626 73.7592 551.406 -569.206 51.4462 642.167 21.921 -287.61 265.689 -258.693 236.159 22.5337 -600.693 582.031 18.6619 634.438 -4.63548 24.1151 227.156 208.375 -17.0137 -191.361 878.22 -797.085 -671.317 765.45 -307.054 -123.979 431.033 473.355 428.046 -149.655 257.612 20.1752 -189.325 203.843 -14.5184 -108.19 -615.253 -678.676 841.663 -162.987 483.173 -448.898 -193.326 852.101 286.599 -265.658 17.5131 229.517 411.963 -152.913 -806.314 783.725 -304.241 65.4374 -228.054 212.682 15.3722 29.1314 593.158 -622.289 22.3159 559.732 18.198 178.378 -196.576 -328.109 875.914 55.6894 -359.686 325.765 33.9211 -130.764 -100.443 406.731 -450.069 213.36 0.293665 -270.512 216.279 -120.151 -96.1281 -530.891 552.381 5.91406 -116.75 -343.36 460.11 -8.67391 -658.163 -652.363 -296.597 287.9 8.69677 -164.783 -256.309 421.092 260.2 -250.723 188.889 162.091 3.52899 429.173 874.83 -871.823 -314.943 23.0608 -9.3439 -19.8338 -364.368 384.202 -746.682 285.977 589.144 -557.712 0.401648 -663.684 -126.99 -140.332 545.467 -176.832 -12.8299 710.308 -697.479 718.692 -739.227 352.976 -363.161 -249.591 829.906 -34.751 -795.155 430.292 -237.457 443.046 -165.536 67.6727 380.34 -49.7543 -330.585 3.07424 231.683 233.781 3.79051 -706.433 196.095 32.1037 -51.1676 263.49 -212.323 -532.89 45.082 487.808 138.95 -485.424 -253.014 823.664 10.3897 578.813 -589.203 -34.3258 429.436 -395.11 -517.954 -200.441 718.396 -32.5418 348.432 -315.89 -396.319 -59.956 -771.544 831.5 -159.942 -135.139 -639.841 -45.8232 10.5366 -345.203 46.8908 -11.1372 -349.063 880.898 29.7578 491.191 -520.949 279.405 -32.6568 881.128 -889.814 -282.656 7.77236 320.812 -23.3641 -297.448 2.33922 202.213 240.601 557.371 3.11957 -638.747 -0.476784 879.887 -879.41 -306.932 276.2 30.7322 278.795 -303.511 -30.0938 516.385 -103.073 347.498 -514.562 -57.7568 657.768 -600.011 -727.472 -7.39133 22.5907 -683.669 686.683 -748.566 -466.533 309.02 20.1863 743.584 -763.77 344.416 -387.509 -574.857 644.419 247.532 744.965 344.49 -16.0756 -328.415 47.6712 587.318 -154.291 428.091 876.642 -876.642 459.521 -758.376 896.147 -741.582 -285.423 257.905 -201.21 -298.115 147.539 38.6616 -186.2 141.775 50.0034 -596.247 569.218 41.5996 -669.761 628.161 -308.595 12.8594 -122.669 -156.67 -787.816 768.974 210.201 5.80063 -546.668 -152.002 120.618 -7.3884 320.798 227.282 -228.043 0.761225 -22.9867 -225.009 -278.529 3.64769 221.158 -224.806 75.0988 -714.98 -306.935 24.0848 -27.7766 472.689 -444.912 695.772 -517.662 -644.911 -6.72512 -375.102 -70.021 -64.0883 761.725 -697.637 250.807 -191.929 -58.8786 -304.985 13.0859 -460.683 189.805 270.879 -600.382 14.478 267.211 -197.666 616.045 -666.795 292.369 12.04 885.465 -877.46 862.9 -877.256 14.356 887.956 -867.378 11.153 32.5538 -547.766 -510.724 -142.366 420.609 -465.998 -663.741 18.3567 493.918 -480.545 538.235 -148.414 625.276 -68.7986 8.19329 290.447 -322.989 352.585 171.082 -523.667 -119.931 -326.169 -366.089 355.053 11.0359 -414.287 188.045 30.7816 -618.817 -395.153 270.418 -17.9556 242.206 -264.512 22.3066 14.6636 331.972 423.018 157.896 -580.914 -207.668 342.789 334.148 -494.594 160.446 -115.51 -411.74 527.25 73.5241 -4.99019 192.907 185.834 12.195 -173.152 -184.229 -227.337 -265.06 16.0029 -527.32 548 -20.6666 539.204 -868.17 -121.072 -278.176 317.049 -38.8733 213.167 -311.293 -477.839 -25.1154 502.954 -564.226 -173.243 525.828 -149.45 -255.458 -363.546 272.104 432.524 -416.318 -1.52534 203.063 -323.092 311.997 11.0949 203.441 27.0277 223.063 -0.46552 -552.339 341.416 210.923 -306.932 259.746 -238.297 12.3283 -474.799 -94.9677 -680.52 65.8073 614.713 505.231 27.529 -241.294 41.1265 200.552 -434.896 434.896 -315.969 12.4575 243.503 -201.356 -264.91 -158.651 423.561 666.22 -694.667 -409.665 404.909 21.7333 301.845 707.771 276.2 -281.076 -149.955 464.267 -332.355 -131.912 27.2856 433.694 257.073 21.4412 -31.9058 287.3 -11.6515 -32.2861 678.534 679.413 -551.408 345.385 478.121 -134.33 -477.966 -151.324 629.29 -703.955 671.669 353.551 13.178 -247.171 319.461 -72.2903 29.8633 424.287 -508.548 84.2612 -167.63 498.003 -330.373 -352.043 6.72222 226.009 108.312 273.903 158.979 -34.9435 618.454 -583.51 -544.21 502.635 367.061 -95.4147 22.8148 -300.483 277.668 212.903 -15.0999 -197.803 -311.139 -21.8378 332.977 93.6832 668.502 238.686 -227.038 -50.6299 -214.284 -50.9585 449.381 -470.932 258.591 518.053 -280.585 -157.344 437.928 -414.159 428.327 -180.489 -223.212 374.4 -551.278 -447.795 -443.523 -79.6885 -880.999 137.589 743.41 -164.423 459.301 -446.148 284.171 6.63278 -30.6491 267.532 -285.318 17.7862 51.9197 -646.491 594.572 567.768 -645.637 -147.9 -522.238 -286.361 18.8959 287.266 -38.7373 309.449 -161.105 -322.275 13.4854 323.683 -337.169 -583.816 -495.605 1079.42 462.83 -430.763 -21.4931 -385.225 365.391 -35.1212 209.861 6.84041 -465.291 458.45 -95.009 439.722 -428.526 -11.196 246.542 -318.67 195.3 -328.381 -329.186 -134.585 22.8541 -255.1 -318.56 -21.1676 339.727 209.903 427.272 428.104 -40.7918 -340.397 -525.151 548.563 -23.4114 -84.3636 509.407 830.931 -70.4039 13.7706 261.011 -45.2154 -324.598 -35.0875 -773.236 793.422 -160.977 2.78794 -325.421 -2.47087 317.727 859.797 -29.5105 -200.023 188.767 11.2553 -199.374 -0.251535 -200.809 184.691 368.527 -422.016 -220.505 295.584 -308.567 -62.149 -587.402 597.792 -160.343 508.342 353.574 -12.3076 -39.8706 -114.222 -139.205 84.0715 -598.499 650.418 -203.962 223.064 -19.1021 -246.703 9.0367 237.666 685.147 -643.548 -213.202 385.928 -172.726 -583.691 594.228 -59.2203 654.74 -595.519 -41.3364 -152.841 385.251 754.361 23.7136 -778.075 523.953 32.2279 -556.181 -753.255 -15.2169 -772.6 -239.521 -157.092 -284.183 9.3425 233.725 -12.6162 408.312 -27.972 336.765 -11.0676 -325.697 637.205 -587.036 -50.1692 -784.691 826.32 -362.827 -6.78991 276.716 -322.412 521.767 31.8393 -553.607 -196.18 79.6206 116.559 -230.978 -18.6126 640.896 25.0622 44.2392 -542.155 -1.27178 635.71 -38.7077 845.73 -14.4063 412.771 -398.364 244.341 -27.3111 296.661 327.003 -305.27 -14.4715 218.192 -3.34133 -214.85 378.382 -4.4536 -450.771 901.77 186.026 23.6605 -209.687 326.394 -235.062 -91.3316 -166.129 175.613 0.690558 306.161 -470.585 -31.8249 277.908 282.286 -280.818 -1.46821 -60.3999 662.933 -602.533 270.948 -27.701 -243.247 287.692 -448.797 289.289 -392.35 -117.985 -610.873 1.28823 -40.587 523.058 -482.471 -269.24 673.581 -640.074 -33.5068 -584.114 241.521 15.3078 -62.9262 492.153 12.489 32.5526 -7.45955 -593.768 601.228 -481.09 443.124 -280.136 -147.705 -125.784 -267.316 393.101 -283.407 -3.18911 -381.798 -15.6224 397.42 -24.8869 -282.615 -226.427 -272.119 -164.446 135.081 -176.87 158.394 18.4758 131.826 -0.299808 -20.9514 293.754 -19.8458 -365.379 231.725 -421.549 167.891 7.86403 -175.755 -280.342 -171.935 452.277 261.561 17.2343 -258.334 -28.0701 239.571 309.347 -286.533 46.226 730.66 -675.634 -19.4461 -353.706 373.152 -21.2835 294.579 -273.296 477.702 -450.416 -308.8 -177.807 486.607 158.123 -55.5686 288.886 -401.643 165.653 16.8359 -182.489 -245.109 4.07697 -284.426 466.651 -132.584 -216.654 -14.8285 -258.718 217.096 16.2963 288.565 -304.861 193.854 -155.844 -252.511 257.35 -227.079 -30.2705 -417.403 1.63304 -384.825 -364.843 -12.652 -323.03 766.575 -826.531 -392.162 152.64 249.159 -25.2774 44.656 -803.382 -511.547 -28.5613 -204.135 -393.275 -16.3903 -185.786 530.2 -254.581 291.536 -36.9552 281.565 -21.9248 -152.993 -308.641 461.633 321.895 -205.588 235.52 -29.9317 5.90027 -221.908 216.007 -408.897 -206.338 -22.3894 133.192 -506.711 539.597 -32.8858 -268.376 331.866 -353.034 -226.405 -30.1941 -35.0815 236.189 -486.198 349.866 260.274 4.54936 323.124 -327.674 -111.149 -177.519 869.147 -869.624 387.513 -363.598 -23.9157 223.988 -34.072 -36.4965 -918.151 454.84 -35.0368 -243.519 278.556 -36.9834 597.923 346.903 320.033 -36.5829 -283.451 -28.8318 -252.612 281.444 379.282 -358.115 323.008 -309.523 -28.5803 292.321 -296.967 50.2648 -342.869 240.286 -20.9172 -219.369 245.853 -32.9166 -212.936 285.864 430.77 -156.867 -67.353 308.749 -241.396 -45.0966 297.138 -43.7041 240.823 -302.086 11.8754 256.641 -27.1584 -229.482 -744.326 157.883 -713.136 193.723 360.031 -320.112 -39.9187 -50.9636 -237.095 -231.19 -24.8013 529.877 257.67 -787.546 42.4405 221.085 -3.76347 5.65909 -581.494 575.835 2.50055 473.546 -18.4094 350.276 229.385 -160.371 201.614 -1.97373 635.831 -202.851 -6.38624 339.504 -333.118 251.016 280.034 4.80288 190.656 -190.656 -142.26 513.933 174.728 -5.51904 -408.64 -701.844 -94.767 -67.8725 -495.642 486.882 8.76037 -20.3121 843.969 240.032 -31.9248 257.252 -757.234 693.146 677.769 -637.762 -40.0066 19.8918 -296.666 -15.0941 -153.449 410.701 -550.64 553.76 425.53 -457.194 31.6637 225.068 18.4349 334.121 -624.568 587.763 235.415 152.866 495.997 34.8955 202.485 436.846 6.92418 -576.13 240.368 18.8379 -199.494 -32.8754 26.2717 184.739 -211.011 -75.5673 803.577 -728.009 -14.1891 352.802 -356.914 -237.432 -349.272 -559.435 559.435 -311.413 -146.641 273.819 -5.25183 -204.836 -28.5583 -294.657 -555.945 -256.928 -206.498 -35.0362 116.123 30.1118 290.7 -320.028 25.3163 -205.372 -33.7734 -3.02487 198.758 20.1373 -93.9014 31.9937 -502.593 470.599 -689.438 180.953 12.9014 -546.124 710.136 9.29298 -148.428 383.842 11.3204 207.121 -218.442 283.436 3.86358 280.134 6.82011 -634.405 627.585 505.337 31.1611 -536.498 2.75201 195.952 -188.426 8.42495 817.722 -826.147 20.5505 -18.8259 672.22 -653.394 -598.489 627.62 -33.2432 -557.467 590.71 -253.754 -453.516 567.083 -113.567 -882.859 801.246 81.6131 -29.5487 232.99 -16.0764 321.233 -305.157 999.952 -239.364 -55.7381 295.103 454.057 -150.606 -667.624 743.032 172.664 356.888 -529.552 -246.867 -220.657 -38.061 -304.412 334.524 47.9948 -560.664 512.67 -3.9745 580.241 -576.266 -136.649 -361.067 497.716 538.969 36.4352 -575.405 -541.566 41.0554 486.681 -527.736 -30.1143 532.467 -7.75825 -891.262 286.446 -274.746 330.965 -847.507 -6.30785 538.87 -515.391 652.069 -11.0738 489.148 -373.082 -353.676 249.463 -299.107 284.013 21.9183 -1.16151 -814.597 31.0375 -565.001 533.964 8.23317 -87.8182 870.287 -782.469 -998.995 415.179 501.007 -147.213 538.038 36.6532 -526.835 864.075 -783.632 -330.503 -219.195 158.544 -341.899 229.192 112.707 -737.623 10.1517 753.944 -11.5811 -742.363 342.377 -20.4047 -708.75 729.155 446.071 29.9085 388.12 -145.977 32.841 236.478 151.642 -215.832 -244.797 247.871 321.237 132.82 -140.097 -69.3503 339.402 475.733 -157.192 -747.198 785.598 -38.3996 -752.017 604.117 412.087 -428.477 185.013 -177.479 -308.414 -132.171 -258.319 -7.41001 -405.124 -155.304 210.89 59.5276 -132.828 189.593 -506.917 64.5203 196.702 -479.056 511.05 92.4704 523.27 -567.432 44.1615 426.338 13.3839 42.429 -522.5 850.421 -840.908 -177.833 -0.196053 178.03 243.371 15.3982 507.095 47.9235 251.719 -252.94 1.22146 229.478 -16.9853 -212.493 -115.645 879.253 -763.608 314.282 58.9965 -668.918 609.921 575.733 -554.611 503.629 26.4431 -735.275 -662.221 43.32 -309.661 455.108 -433.885 -21.2237 360.223 356.345 -382.329 25.9836 -349.038 -184.169 533.207 -739.332 -28.2687 767.601 -168.631 398.016 -16.2492 709.204 -692.955 -113.033 -158.009 -213.407 210.367 3.04069 636.523 -2.58364 -633.939 -205.985 199.857 6.12828 -36.9445 272.709 -235.765 -15.1805 427.267 198.384 170.227 322.302 -492.529 -168.525 -34.2902 32.6855 -248.229 397.535 -299.837 -1.21855 718.045 245.442 14.8226 526.026 -165.803 -262.55 -34.1158 -389.572 556.507 13.4778 -905.732 194.2 8.86379 -428.062 369.027 -334.972 203.063 531.163 -175.261 -487.704 -244.059 663.311 -585.11 -271.632 280.737 -531.279 39.9239 -588.423 180.009 573.269 -36.7269 230.291 -203.839 386.455 -352.534 168.905 327.758 519.796 -164.807 -16.0016 504.223 -461.117 529.929 577.397 -176.359 -6.87375 592.332 -585.458 -639.694 -45.396 -468.382 333.222 375.2 12.5719 548.773 -508.653 -207.819 -70.6753 -212.551 -31.8875 17.1935 393.392 1.28675 -665.027 637.952 -13.0367 49.8672 181.894 85.4651 -528.779 -56.3472 -457.953 3.40786 -26.3402 43.852 -449.993 3.94482 -629.14 -300.911 -14.1302 356.881 -221.386 -135.495 525.963 13.4519 -534.824 20.2653 266.334 352.166 -0.673085 -650.095 -14.1341 664.23 -432.953 5.46745 427.486 -820.418 819.578 597.003 -75.2352 434.025 66.3134 -500.338 252.89 -253.19 770.978 -733.967 -423.299 467.151 549.654 31.9559 20.5347 -717.183 -2.53601 170.427 -4.90237 -732.865 24.5531 -278.307 21.0465 202.017 174.304 10.7084 220.395 7.38678 -158.308 489.188 76.5142 670.619 -747.133 -22.8905 357.347 221.601 27.5578 35.3016 -542.013 -301.54 -567.246 -484.17 4.35693 479.813 -4.98657 759.348 -868.731 -15.0202 -270.182 285.203 -601.964 -380.495 395.736 -285.328 451.357 -11.7258 22.0239 -249.596 806.955 -768.395 -475.477 2.52003 472.957 542.765 -501.709 -280.754 12.3775 813.147 -36.7076 -221.687 217.007 2.3873 -288.014 285.627 770.947 58.9594 23.2581 -327.671 41.147 -874.342 31.7152 -614.344 626.131 -11.787 857.161 -9.55875 536.394 44.2873 -301.885 -19.0858 320.971 192.567 302.636 -170.318 38.2671 293.514 379.915 -324.454 12.962 359.674 27.8396 -496.736 526.493 603.233 367.923 -11.7854 873.617 57.7359 -539.485 481.75 -155.356 443.048 391.406 15.0349 -12.2265 516.668 -504.441 587.517 -539.522 199.017 28.3237 -34.3215 -229.793 -9.02164 40.7927 -70.4883 54.5408 -299.484 244.943 607.146 45.0759 -366.434 -160.824 -743.723 751.234 -7.51129 2.5065 226.971 -9.11388 -271.64 30.6834 -443.579 438.06 498.614 19.7607 -248.644 232.142 16.5017 395.896 142.339 400.776 24.7543 88.5275 250.926 -339.454 170.53 -25.8306 -744.249 -13.4157 9.49537 1.6162 -24.3439 -282.529 471.713 -16.9994 -454.713 62.7873 667.873 -13.5506 -637.65 16.0062 680.194 -621.198 -464.135 -64.7212 -531.734 12.9255 518.808 506.182 -319.558 -128.104 -191.404 -224.685 -14.3772 309.961 -446.762 -566.102 4.43161 -418.167 421.696 -3.63954 -680.03 486.127 37.4927 -523.619 -155.399 -299.926 -8.74174 687.411 -8.95409 21.3183 -470.102 448.784 -221.467 221.667 -0.199482 371.936 11.4072 -194.897 -530.977 526.155 4.82124 210.44 -204.688 235.029 -232.523 -808.562 879.617 -533.999 21.5724 512.426 130.134 248.247 -366.862 -216.062 -448.134 -530.113 451.492 78.6206 -204.03 561.377 757.578 -4.50742 -140.508 -366.033 -895.004 1034.19 -139.19 341.211 -357.287 644.238 -599.27 -350.562 -187.446 509.434 647.056 -599.384 581.749 -526.925 744.942 -6.20849 -160.341 -283.543 556.813 -131.301 -45.1524 -650.132 28.5134 621.618 18.1707 217.162 319.702 -480.073 273.878 -36.2642 -314.906 52.186 423.164 -571.578 29.9017 -586.351 540.803 -173.742 452.486 -18.4611 -198.227 7.63949 190.588 78.1369 179.753 342.079 -146.383 411.522 65.3261 -836.87 402.235 -23.6608 -675.12 737.907 -136.907 -318.155 -538.096 562.321 -24.2247 607.524 -8.72932 761.273 256.448 -871.807 871.807 -592.818 -118.621 543.324 -357.594 -185.73 380.926 171.362 -37.4181 501.854 30.6127 -313.078 12.1677 62.4913 547.809 41.3341 138.491 -130.636 449.077 -9.2949 731.772 -722.477 -26.8339 -303.879 330.713 313.307 -105.399 -457.866 316.108 -749.022 13.833 -653.527 28.1249 427.876 526.422 13.0979 -25.0282 484.93 -459.902 -682.901 -6.90987 -19.3958 -281.087 84.8529 -3.27235 -114.992 622.087 -8.02881 -648.551 3.5689 -661.732 -730.83 -6.79366 432.991 22.7078 -782.23 42.8977 126.2 613.245 23.2773 34.3014 290.153 -324.454 766.046 -817.493 355.237 -14.4021 -340.835 -15.1844 724.506 -709.322 67.1264 -528.243 -495.686 1.45405 494.232 -2.95094 -669.839 226.711 1.80626 173.807 509.185 -5.671 374.231 -137.753 261.499 9.66954 606.204 23.7688 -629.973 -168.701 495.064 5.31186 -685.832 -574.315 -37.28 611.595 764.895 22.068 -183.468 -8.78353 364.399 -23.025 -652.895 675.92 -758.158 597.518 -562.217 419.481 35.6273 440.54 -22.5524 -644.884 41.1704 603.714 50.4284 -204.55 950.816 -867.747 -83.0696 59.1116 466.355 -525.467 488.682 37.9691 -654.614 594.214 -944.062 705.641 712.533 -413.661 -298.872 361.423 -132.231 -267.958 245.068 -974.043 799.753 174.29 -768.688 -11.9595 -807.143 -11.0081 818.151 -200.903 194.837 666.818 -32.331 -2.17981 -690.521 -813.469 -540.75 486.165 42.8503 258.35 -301.2 -501.288 25.8104 -122.108 -245.068 546.009 22.0916 28.998 464.92 -7.50754 352.112 -481.67 466.816 -167.024 -299.792 343.275 -3.87339 52.2451 301.61 -323.103 33.5278 -648.668 376.243 -21.379 883.622 15.3976 458.419 24.7547 -372.578 458.043 -29.6646 -531.12 193.288 -298.101 -0.623185 298.724 -121.058 527.789 -23.5713 668.653 -508.374 -50.1324 558.506 846.201 -780.875 -773.481 -13.6756 -271.628 -43.2779 252.004 -250.381 -1.62264 -845.738 -6.18229 -637.539 -485.223 -38.2219 523.445 -575.795 47.5034 780.269 -14.1883 -291.996 303.922 -742.524 48.7491 693.775 691.025 54.6454 -682.991 -20.9643 -511.973 72.1292 -219.368 217.664 -535.379 12.0516 796.471 20.8721 -817.343 124.157 48.515 -428.338 -815.665 303.212 -472.52 26.5208 851.033 -877.554 -461.965 -497.027 958.992 481.039 -34.6539 -7.83984 200.991 -204.016 280.201 -5.57168 -274.629 350.596 -276.013 330.554 219.161 -1.36666 -217.795 -292.572 273.176 171.338 17.3763 -188.714 -459.563 -491.329 360.905 171.351 -518.487 147.641 42.8803 679.988 -759.634 705.689 53.9446 -448.223 522.538 1.15985 -523.697 -457.011 -4.33553 38.7165 -11.3461 300.635 438.253 35.2929 5.27831 432.975 -280.304 519.243 -10.5078 360.346 -349.838 199.071 24.4134 -223.484 -36.4556 3.89649 266.798 381.568 -388.978 207.064 -0.941621 -206.122 520.958 -453.831 -220.536 220.07 1.25739 213.747 -215.004 305.21 -459.132 -17.2099 14.1295 241.391 -657.935 101.991 -299.596 20.2005 279.396 -546.825 532.475 -495.495 444.357 -72.3195 -539.061 13.9097 18.6098 -8.70902 17.4407 -280.568 263.127 186.538 6.36812 -490.968 -10.9842 -373.494 8.9456 364.548 296.264 -443.969 -364.169 387.7 305.425 -174.867 -2.96663 703.219 -531.166 518.049 13.1177 -723.754 -18.7699 -159.978 17.8558 17.2303 -491.84 474.609 -624.657 686.293 -61.6359 -296.409 288.569 -848.668 10.9573 382.179 -132.716 534.071 14.4914 -708.634 13.9663 -14.2438 6.76272 280.136 344.586 -289.766 877.447 -863.969 -501.736 525.743 787.38 67.308 -854.688 -1.59574 578.196 -543.54 812.159 -673.551 21.3703 652.181 -13.5377 424.647 32.6659 503.147 -510.3 551.244 643.219 -610.063 -522.454 14.6485 369.422 -60.136 639.202 -579.066 177.45 -53.2924 -201.312 202.369 -1.0571 14.7346 28.9856 -285.574 5.95818 -288.652 282.694 652.204 13.5108 -69.9155 31.4506 -260.374 228.924 528.911 46.9726 -575.884 -300.772 98.2818 774.924 -690.071 -290.451 518.891 8.23637 -279.868 -219.038 -2.42876 -502.973 -496.022 -706.948 -16.7132 -364.104 663.44 -299.335 -272.306 193.828 -153.272 -20.9176 -228.311 249.229 -275.992 -23.604 182.716 -182.912 538.81 4.37091 -543.181 78.5508 -505.126 426.575 -354.884 107.087 -358.148 13.5597 640.69 -654.25 4.79554 -281.765 276.969 736.123 -637.268 -98.8556 3.67475 -252.718 249.043 9.88146 264.689 562.177 -166.282 208.465 -206.126 21.5826 -437.747 626.667 21.2592 200.735 -221.994 194.643 -199.051 6.25415 253.946 57.9629 706.411 -764.374 -4.18752 287.624 332.53 -165.209 512.707 -317.587 581.244 55.9612 -256.665 5.59268 251.072 -217.443 213.808 -581.229 23.6476 557.582 -697.459 768.521 18.9825 387.202 -348.249 384.964 -465.804 -36.5742 255.314 -218.74 -317.808 -26.6702 277.775 4.82205 -227.841 223.019 -595.311 33.3808 726.822 -2.67955 0.0839931 -57.3402 -612.421 260.812 9.61307 -769.491 778.938 -9.44718 -215.233 421.258 -225.191 -196.067 88.0348 283.102 -264.264 -2.12521 218.115 -197.068 -607.124 372.715 -363.77 275.25 -441.6 778.687 19.81 -283.856 601.476 -19.6684 -689.834 12.655 261.864 -255.61 259.571 17.8212 311.08 46.0039 -531.227 21.3256 -349.706 268.167 -273.739 -536.613 607.187 12.6546 71.6809 554.646 250.808 -242.317 -8.49138 19.5892 262.164 -634.995 12.5434 -5.42846 13.5498 458.163 -22.485 792.924 51.5179 -559.891 -21.5819 847.902 35.4041 -633.893 542.052 399.648 618.333 -619.99 1.6574 1030.3 -208.963 -616.548 27.9113 588.637 200.649 -214.628 649.018 11.9721 -32.3187 -103.769 -759.036 862.805 -273.528 -176.717 533.605 342.265 -360.674 588.074 -164.909 631.857 5.11279 -252.99 -28.7469 462.222 737.036 -50.3534 -133.089 -242.837 8.69438 389.848 259.353 -244.045 304.699 -302.312 675.648 -32.1882 65.1242 514.499 -579.623 16.4373 292.435 6.39527 -298.83 737.602 -46.8836 254.89 -191.251 13.6314 221.578 -235.209 263.472 16.0981 -393.473 323.274 9.25579 17.444 15.1306 -827.645 -48.8761 -168.066 165.53 372.267 -310.154 28.2398 603.586 71.3057 -674.891 43.9227 -484.674 440.751 -382.488 25.1518 531.234 -507.827 -23.4074 -484.749 543.861 14.1226 418.401 234.026 344.202 -358.604 242.408 408.647 80.1383 155.018 280.335 -699.829 28.7822 -391.613 12.0038 13.9157 -1.04836 199.806 488.124 -481.283 242.638 -233.94 -8.69801 -35.0884 11.3102 378.538 12.4683 -566.213 553.744 17.8949 28.4305 430.186 11.4366 -197.391 189.36 -465.281 323.111 142.17 668.538 -88.2976 846.654 12.6634 -859.317 193.148 182.183 11.6449 290.887 527.23 553.794 -37.9154 285.249 -438.162 326.342 -353.899 174.021 18.3447 -192.366 538.993 -513.936 -25.0574 -566.365 20.4574 194.329 -0.188769 -194.14 -644.307 560.946 557.435 1.172 231.533 280.203 410.389 370.453 -23.0903 16.1592 318.137 -277.345 -40.7924 13.7717 396.617 -6.41182 -785.936 792.348 551.527 -177.127 -525.02 -479.043 -102.186 235.414 -597.47 802.361 -1.07625 -166.99 259.467 -992.901 877.256 -883.768 877.46 -869.147 867.378 1.76839 422.712 -18.1107 -404.601 6.29122 236.347 635.368 197.267 -755.802 744.842 10.9601 96.4949 264.403 -258.81 28.1001 -526.541 498.441 -442.078 -48.8907 228.639 -441.841 -37.6302 -1.67983 -574.138 23.3223 550.816 522.496 -127.506 -394.99 13.1057 409.606 -4.29272 -628.541 37.6493 595.993 51.063 447.46 -117.855 -329.605 -598.595 -309.777 306.477 -476.219 48.1299 -498.443 26.5226 471.92 262.569 -419.661 -66.167 829.333 -763.166 5.92872 -506.094 500.165 -221.401 246.202 44.4464 -505.008 -113.276 4.04844 -831.694 727.512 -831.281 229.08 -311.697 334.955 1.13075 14.337 407.523 25.2776 -409.943 384.666 5.9032 228.123 528.693 -483.611 -588.314 -16.7438 375.425 -40.5222 19.7532 -459.228 439.475 -54.3499 -0.320429 7.01195 848.809 -855.821 574.087 -530.164 447.921 32.7227 -529.458 -386.805 27.7923 359.013 -232.138 236.052 -3.91369 834.903 734.973 -83.5867 -27.9128 533.297 42.4362 -816.697 4.4266 812.271 516.307 -524.414 8.10691 6.90556 -509.247 30.191 -754.209 -24.5634 -171.841 168.549 -577.517 569.573 7.94338 -804.919 -77.7423 882.661 -519.323 -17.1754 -50.8115 40.2818 -483.86 -367.404 -196.035 -565.409 25.8429 -467.605 191.964 -544.995 264.226 622.294 -589.453 -27.8087 -185.27 184.942 0.328227 -290.684 306.98 46.1445 368.814 1.41301 251.477 -2.93522 -979.015 522.573 456.441 598.025 45.1942 -41.834 537.471 -495.637 276.675 -432.519 -298.278 -610.063 555.713 274.667 -414.309 34.7483 -452.666 -594.727 -649.592 628.551 21.0409 25.497 -796.45 13.3388 468.706 -482.045 -637.084 38.5855 -583.168 359.595 38.473 20.4142 -224.253 -166.652 -7.05703 -830.113 837.17 28.7536 -446.921 -461.421 21.2311 440.19 -648.65 21.8551 626.794 -1.4598 -226.533 -28.1292 24.4094 386.042 16.617 -829.559 787.036 42.523 25.8259 -541.967 14.6473 41.8975 38.6463 -807.041 54.3782 -426.957 -630.469 34.9616 595.507 -9.91713 15.3062 -95.6534 -656.742 621.984 59.8976 -681.881 282.817 -436.706 -8.29857 540.232 -590.365 207.434 -202.101 -5.33364 101.912 641.12 -192.354 208.973 -16.6189 -875.198 888.926 27.5087 12.4409 -469.445 880.499 25.1264 -448.605 30.8785 417.726 -440.487 453.871 -234.032 254.46 40.6729 26.9947 600.625 39.3371 -230.484 -818.8 865.552 -344.426 377.846 -33.4209 25.8938 20.778 -487.267 -54.7455 542.358 699.341 10.9678 310.442 -7.6724 18.6636 -482.724 479.247 60.6902 12.4051 -278.701 40.3408 865.081 -905.421 174.359 -8.82873 -440.358 283.014 282.348 -432.303 456.404 487.486 441.23 -20.9293 -302.064 341.218 -39.1546 682.031 55.5709 -506.548 26.0036 -6.15444 481.647 -475.493 -4.48809 -129.389 133.877 44.8542 -236.33 265.868 -29.5381 -92.2339 504.054 -621.069 33.4224 587.647 -442.949 278.504 -759.427 20.6167 738.811 619.773 -29.6758 281.684 -442.66 -444.084 278.548 -670.682 -49.4735 720.156 199.228 -3.95536 -195.273 -593.217 -336.624 268.443 262.273 209.722 -26.7505 -204.91 -536.038 601.162 17.2845 -710.96 11.839 699.121 548.725 -543.066 -368.204 393.356 -842.192 868.713 -243.808 312.686 -68.8777 -441.951 281.609 893.326 -888.926 -654.604 596.848 -887.956 7.52453 414.479 -1.15754 211.598 175.949 -453.448 30.1483 -522.353 547.146 -24.7922 256.843 562.775 -181.848 -885.465 6.28157 22.1442 -317.294 295.15 542.306 -181.401 -493.098 521.198 753.846 77.0851 -530.454 -9.28393 539.738 212.38 433.844 344.416 10.8703 281.793 -431.448 -445.148 273.213 187.206 15.3886 -461.589 330.954 384.951 -461.242 539.792 -422.569 -444.621 284.281 -251.455 -303.025 251.858 -186.77 190.114 -3.34337 -652.871 -23.3348 -868.67 861.613 58.4025 752.638 -811.041 6.07256 -159.014 -278.673 529.281 -480.13 -49.1508 -451.336 285.207 -455.794 477.112 523.075 281.398 36.7387 216.914 -6.71276 -204.881 236.985 -163.516 194.677 20.9443 648.025 -16.1686 -769.121 817.87 461.281 -721.185 752.431 -15.2313 -600.184 12.7817 632.198 25.0647 -657.263 -30.974 298.477 424.143 -38.244 -377.526 367.018 23.4063 -626.315 -3.75672 240.979 142.863 46.6903 -764.955 718.265 493.045 441.058 -430.421 -17.8014 518.655 481.345 11.0777 426.155 -216.813 245.588 15.4171 355.036 117.012 468.341 -357.426 44.6373 -269.473 276.235 436.32 -8.4447 752.354 10.4297 499.671 -995.276 84.0254 -506.015 55.5756 212.567 8.9709 332.925 474.427 -464.271 -10.1562 -716.72 763.41 -182.974 -2.29663 272.144 -273.824 233.348 -8.67379 -224.674 18.1476 357.278 837.245 -737.174 -100.072 21.9078 359.155 189.56 -215.322 -21.9703 606.455 -44.1335 41.8433 -505.758 463.915 -813.365 22.7188 268.168 -161.795 4.10703 650.043 -631.808 -18.2351 869.36 -25.739 430.774 17.1469 6.75924 316.345 -6.18718 263.513 -257.325 -757.766 66.5635 691.202 -295.839 464.862 -169.022 30.599 430.682 12.2583 164.094 -176.352 -377.208 405.047 521.382 -216.75 247.486 20.7291 -636.862 616.133 9.36227 271.375 487.463 -455.507 547.728 546.588 -544.068 17.3637 -381.054 363.691 -651.425 36.5278 614.897 -324.056 76.885 3.90327 410.575 284.603 1.84357 74.9947 -468.638 393.643 -25.7863 -604.683 36.3046 -578.013 541.708 637.314 -562.451 534.577 -512.21 -36.8617 761.438 -92.812 -691.089 56.1215 -547.744 -40.2349 -209.226 215.299 868.877 -861.865 0.625579 304.799 316.636 -9.42429 170.636 3.7224 161.831 -607.443 445.612 336.724 -1.59496 807.884 -35.4735 250.996 461.365 22.2398 -782.838 760.599 11.6159 268.587 10.5521 264.196 -274.748 32.2888 461.252 -493.541 11.4623 33.7715 -580.063 546.291 338.787 -6.25765 2.63896 204.795 315.071 -313.658 860.196 -8.01546 76.2197 -725.772 208.735 -1.67113 110.571 471.851 -32.5565 -439.294 -433.258 551.116 -117.858 516.75 -484.461 -418.891 443.645 -618.58 399.482 219.098 -44.7893 -829.553 -236.546 248.952 -13.241 1.4918 197.737 757.627 20.3959 -778.023 -153.886 112.081 343.315 7.28101 -60.2672 -470.367 530.634 181.911 -0.549852 -181.361 -873.446 7.19486 -880.494 872.736 16.2341 339.671 -4.90175 -7.26969 209.482 25.5583 415.672 -377.056 346.209 606.686 -185.836 -420.85 25.027 273.762 -398.277 202.602 -201.11 10.1898 218.12 -228.31 74.1628 191.997 -8.69734 -648.061 735.008 -110.302 -624.705 -114.104 -402.028 516.132 577.944 41.8295 245.825 -216.799 -8.36905 577.942 280.76 -430.209 15.0228 -18.1147 789.093 -3.2643 542.861 262.917 -264.377 121.304 273.22 -394.524 190.521 -186.549 10.8958 626.031 -636.926 543.631 -559.583 477.959 756.643 -727.8 -28.8433 -492.116 639.678 -147.562 41.2672 593.423 503.507 213.668 -207.739 -5.92919 2.66293 24.4907 398.436 -422.927 -235.335 252.848 36.0772 480.673 -196.671 230.834 -251.985 254.3 86.6412 -895.203 -616.463 865.044 -176.521 -2.23645 178.757 168.875 1.55188 -2.79867 176.606 194.178 -832.776 -6.93405 839.71 -341.874 335.487 342.754 61.7868 -508.341 538.954 -464.518 335.777 251.661 -19.3554 33.5805 632.199 -661.534 29.3348 -336.388 309.554 -191.053 196.299 -5.24595 41.8035 -18.1187 250.261 -883.768 881.128 882.856 -992.901 893.326 183.209 -2.26021 -180.948 350.192 362.34 -374.831 199.451 -26.2029 460.977 166.134 -5.10598 73.9622 662.247 30.6728 462.373 -886.037 807.869 78.1682 170.36 -153.491 558.147 -434.066 21.6486 -40.7151 652.676 -611.961 842.033 -826.568 -2.76349 192.452 -189.689 34.7585 -302.075 455.783 490.678 -415.683 518.317 -549.134 30.8165 -177.485 4.93266 172.552 288.466 531.128 -557.331 -550.294 53.2524 497.311 -550.564 -626.712 33.4951 7.672 -201.612 193.94 -207.87 210.508 -206.326 -34.9769 -26.7981 -276.227 242.06 -29.6845 879.476 -48.6677 193.28 -497.061 533.952 -36.8908 643.505 41.6424 -30.7513 -309.517 32.3577 403.963 39.0279 613.661 -462.396 -33.8801 872.803 -838.922 722.85 -679.942 -42.9076 -193.161 234.287 277.013 -260.576 40.0378 523.176 462.731 -459.323 423.392 30.454 487.863 15.799 -179.315 30.5281 -1.82825 5.35182 187.796 358.653 -349.959 32.3334 494.16 30.4878 466.669 -470.98 -172.292 -245.48 227.524 32.8873 488.495 -634.993 648.59 86.4173 -450.102 485.729 -707.12 -109.577 -9.18544 287.571 -270.127 357.813 -541.744 575.516 501.918 32.6589 -449.078 496.1 -47.0219 650.224 -569.068 -330.405 296.402 34.0025 26.6986 742.474 411.345 -383.02 -474.659 458.658 51.9266 597.148 18.8849 277.553 -311.669 204.366 349.794 -24.3301 870.262 -4.56702 306.83 523.885 249.221 -239.589 -9.63253 196.714 -783.772 582.823 -528.411 -54.4126 271.852 -256.454 -519.78 328.668 8.09726 440.252 -507.56 553.564 192.745 237.277 -231.374 -798.703 867.828 -214.424 213.266 225.656 -7.46421 91.0614 623.554 -714.615 672.018 531.852 -556.04 -201.725 268.387 -253.257 -624.526 -42.0179 -602.866 182.046 31.7132 504.422 39.6819 582.513 -0.572323 855.459 70.9256 -335.56 404.922 415.091 36.9484 -3.41656 -178.641 182.058 54.9749 189.925 754.108 39.3145 -499.288 -370.496 379.752 692.204 44.8108 -688.359 -219.916 -8.12653 596.367 43.5875 -210.34 212.49 -2.14976 -222.289 229.195 350.594 -65.9224 869.624 -872.803 3.17897 -248.282 268.696 -228.27 235.657 -35.9899 525.776 -24.7909 38.0304 246.846 -240.555 -730.525 73.3856 657.14 -171.221 173.82 -2.59904 41.5052 330.762 427.063 45.8104 -362.922 317.112 177.151 -472.991 265.132 -250.31 485.092 -18.0716 -359.454 302.969 1.73025 356.29 28.661 414.782 26.2755 4.82059 328.307 -333.128 25.6889 412.371 251.317 -233.422 35.2049 680.251 -641.223 44.753 -298.215 253.462 -369.879 381.286 231.031 130.392 388.03 23.3143 579.908 -543.473 653.3 60.2112 -713.512 -618.671 50.4351 568.236 -544.128 595.646 630.837 41.1819 -42.1043 581.057 -538.952 177.327 1.19323 -178.52 -797.005 42.7964 4.49129 173.275 -177.766 -116.641 -849.487 852.971 -3.48437 -521.868 -76.21 873.715 -797.505 7.36509 -594.911 587.545 779.867 -578.989 629.355 48.4141 387.258 2.6315 839.401 457.755 -515.691 44.5319 816.467 -863.803 47.3362 -483.727 -46.3181 530.045 -0.501566 207.295 -206.794 315.316 400.654 35.8525 562.485 -509.233 316.184 -374.582 386.586 30.9371 179.755 -176.148 704.712 35.6715 508.189 18.5546 -895.447 876.893 3.36231 166.997 263.048 -249.132 24.0904 404.237 -577.248 52.2285 395.769 25.9269 44.5418 -392.989 313.891 67.9748 641.996 -709.971 -297.826 -9.82914 45.1535 -641.971 596.818 508.655 -485.008 -868.877 0.707653 -380.402 392.974 25.996 400.159 29.9532 840.309 25.6273 398.515 -128.052 32.2668 425.777 113.509 -618.518 -413.126 -15.7543 428.881 65.9405 670.183 -36.4077 -708.37 -8.81247 56.813 647.899 539.448 -383.291 394.601 -253.701 -31.7215 -860.61 528.446 -1.51 15.803 620.802 -573.299 470.56 -457.011 -135.339 -131.135 554.263 9.44101 -7.77027 284.162 3.46165 623.271 48.9483 434.506 -159.256 72.725 -649.276 487.341 -524.759 -866.004 778.186 -20.4377 -230.031 250.469 702.08 48.9233 345.018 -315.487 841.336 -13.7874 -385.493 399.28 -478.656 520.499 21.9021 275.256 -299.334 706.212 -175.385 581.85 -543.881 141.141 -426.628 782.987 29.2835 187.758 170.482 -2.75407 -167.728 43.3891 -707.432 -4.89325 712.325 -816.467 856.807 -441.437 281.673 159.764 442.033 29.8178 16.9413 18.0541 260.596 6.7295 -186.852 15.9632 11.5943 854.6 17.1476 22.2725 30.7383 439.446 14.4251 19.9442 -301.765 281.821 -184.949 -639.464 -386.601 402.7 -742.089 685.382 56.7072 874.83 763.315 -737.721 57.3958 680.325 15.4873 14.4815 -477.462 552.262 -74.8002 28.6352 434.195 171.964 -454.631 282.667 166.743 -171.231 418.359 -404.587 11.8601 345.222 -745.214 58.046 687.168 468.539 -52.1139 336.065 48.531 -257.423 279.356 20.6786 628.379 -263.395 285.313 200.645 -15.9543 44.7774 118.099 729.306 -552.402 549.137 -308.865 22.3324 -503.854 278.663 -66.6091 362.269 4.63628 472.476 -554.32 -161.559 164.533 -2.97437 -708.923 38.2405 -45.4679 627.003 -581.535 24.784 -315.031 290.247 -498.126 572.091 -73.9653 31.2234 430.141 2.85036 -843.758 -391.086 407.245 16.3953 290.585 -1.25916 16.3121 290.709 60.844 -689.339 628.495 -542.23 530.004 -846.727 436.755 445.304 16.3178 -305.999 289.682 37.2308 -641.788 591.458 -7.7645 510.813 -503.049 411.795 -396.76 48.686 20.4134 445.745 -451.9 346.923 130.329 732.469 -862.798 -201.33 -50.1248 269.974 -306.93 -548.247 584.9 22.0701 -331.593 -581.571 600.96 17.4935 -9.11959 29.1868 757.31 -696.336 21.1065 639.292 377.123 -309.529 -67.5948 699.003 -75.732 590.356 -551.817 381.194 789.355 67.0846 -856.439 32.3935 369.886 17.8143 167.373 298.106 -465.479 706.973 24.2528 -731.226 674.077 82.566 68.2499 274.539 248.142 20.3013 39.3123 27.58 213.548 643.656 -598.462 17.0905 54.0857 711.364 -7.89592 -427.659 -306.116 -408.539 447.641 -585.449 -232.499 6.7699 225.729 17.8295 -451.278 40.9754 343.318 -326.034 298.623 -263.865 -444.98 285.966 308.363 -258.431 64.5432 -652.64 177.746 37.6485 435.447 -2.47253 70.8522 712.873 643.634 568.034 -654.178 86.144 747.17 -629.071 -734.675 70.8436 26.435 -172.827 -861.853 867.747 -5.89379 -874.913 46.4077 -755.523 62.9847 692.538 45.1168 793.525 -261.436 230.017 31.4197 21.1834 424.401 -411.296 -686.518 110 520.794 -5.73965 256.547 24.8679 179.191 -204.058 188.551 502.6 -501.146 -411.912 430.478 -18.5658 34.3436 -831.43 -1.34589 46.7857 26.872 -1013.34 489.14 524.196 615.898 -65.6901 9.33839 689.665 254.321 -293.058 182.257 575.334 -417.256 431.593 3.51983 -545.75 23.8124 -531.341 690.789 -159.448 47.8092 553.353 356.315 19.9275 663.576 -569.539 -1.54728 230.55 -229.002 229.017 -267.078 -1.16403 169.938 -207.935 214.384 -6.44945 -414.692 435.328 -20.6361 -627.806 602.02 17.1991 27.6388 -693.933 -0.283785 694.217 43.2204 -478.313 259.363 -298.071 -418.381 438.134 30.8124 478.028 -131.684 -346.344 53.7723 96.7882 -19.447 -857.365 859.996 6.02175 467.751 -1.34254 -816.15 -263.913 285.354 4.57497 702.532 -707.107 469.717 33.7893 16.2252 -743.749 727.523 85.4564 -413.726 -162.913 167.826 -4.91363 767.342 -50.4498 552.378 -538.469 -480.543 348.632 507.84 31.1144 -417.059 440.58 -23.5216 479.096 -424.767 -54.3293 33.6583 -667.678 33.3656 162.936 -2.32824 -160.608 547.913 -534.461 570.768 -553.976 -16.7916 43.6567 -16.2303 -218.213 234.443 274.652 -299.539 40.8674 -39.7045 -272.258 289.492 -48.7779 -660.145 -494.817 517.916 -23.0995 622.533 -665.199 -47.2218 277.162 -10.364 455.881 -421.132 464.856 -442.148 185.666 776.33 43.2475 28.079 44.912 445.766 766.497 -675.424 -204.945 228.981 -24.0355 491.239 -465.235 31.3168 -275.125 -856.421 183.997 -445.343 466.574 -777.482 48.7171 675.661 86.1976 -761.858 265.862 -301.845 35.9827 60.9221 293.564 380.749 -540.242 554.733 22.1191 241.371 -2.47924 -159.08 838.194 -50.038 -788.156 -14.1714 377.234 27.8133 156.237 -8.86573 -17.3298 309.31 -291.98 -23.2662 -447.17 470.436 -883.343 78.4244 -201.531 -28.0248 229.555 -252.991 232.074 -217.812 244.839 -589.687 582.813 -46.1245 635.165 -589.04 653.24 580.879 -697.477 419.518 24.1273 544.796 -532.744 235.013 -262.714 374.302 -473.962 -839.604 68.5168 771.087 884.516 -880.583 -271.368 289.155 1.6206 -449.925 475.768 44.8106 -717.755 672.944 -560.866 523.976 36.8901 -256.911 264.397 -319.966 -163.977 182.239 403.735 -34.7163 206.487 -9.78507 306.594 -455.024 480.918 -241.987 213.886 28.1006 171.021 582.33 -14.2968 -41.0678 539.638 -498.57 653.789 363.272 -335.48 -721.013 327.765 175.864 478.178 -473.277 503.667 -368.351 484.984 -460.23 38.4988 485.386 237.551 -2.52112 859.547 -793.958 -65.5885 174.369 -772.827 63.1512 709.676 20.9736 57.6027 42.7461 380.453 84.5048 -464.958 45.7643 -510.927 548.42 -473.705 490.272 38.4204 -478.118 522.65 278.601 -302.994 24.3926 515.173 -479.501 453.247 -693.748 452.167 -438.828 575.222 -532.786 -437.882 288.277 705.723 61.6191 537.983 -499.952 801.996 -879.739 -444.233 488.926 -44.6924 480.754 503.68 696.314 65.4111 2.32863 -849.748 -424.834 460.312 -35.478 -254.913 273.809 -884.516 860.845 -537.801 36.0915 -548.94 593.102 118.812 -44.546 452.94 -432.512 -20.4285 52.0331 587.259 69.8335 602.363 -672.196 -865.057 23.7756 614.979 62.0122 -676.991 591.158 -546.381 -546.997 586.921 59.5994 -810.363 614.676 -567.704 21.5953 -783.836 592.82 50.836 178.208 204.978 -10.335 -286.281 327.425 -101.416 158.398 382.405 -852.68 -364.372 -276.643 176.484 58.3885 41.3541 -475.262 31.4466 42.2269 -258.463 272.234 634.048 560.849 227.097 -258.26 31.1629 -782.402 65.6822 -2.86988 267.448 -251.445 582.969 -559.647 -318.422 316.636 1.78557 -804.843 -78.5 65.3635 709.129 -774.492 889.814 -47.1051 603.883 -556.777 -0.158289 -74.3306 47.9012 680.986 720.238 -686.112 -34.1266 880.374 -864.149 38.7627 -1.1516 779.758 79.789 204.311 -15.5439 234.627 -212.516 -22.1113 711.9 -711.9 83.1332 736.958 41.3118 359.635 -400.947 60.8568 659.299 -553.318 600.104 595.389 -556.076 64.0559 767.444 606.951 -559.142 -161.106 178.482 -706.886 -216.382 240.274 -23.8911 621.142 -267.572 277.242 224.291 -242.903 177.475 -198.893 -793.852 7.91625 -474.528 446.835 27.6929 356.891 516.627 37.609 -237.905 215.418 -488.712 46.5781 -81.691 184.397 -189.998 387.913 -228.67 204.21 224.993 -267.623 42.6297 754.277 557.112 695.201 -752.866 57.6644 -768.708 82.5583 686.149 -565.024 576.356 -11.3324 -229.825 194.744 733.126 -102.29 348.239 -224.214 193.397 30.8167 -719.251 777.731 68.4701 -220.657 192.096 -222.351 187.23 156.937 -145.412 -11.5251 -635.252 52.8305 582.422 -202.597 175.71 26.887 -205.514 176.086 29.4286 -499.614 -214.157 180.931 33.226 383.382 70.9812 -207.776 175.877 31.8986 -260.889 270.232 44.0531 94.0446 -731.312 -197.015 183.045 13.9701 1.39952 657.208 -42.2293 52.108 576.271 -690.58 -37.4871 728.068 581.976 -541.938 253.236 -283.507 -204.118 235.55 -31.4315 38.925 521.373 -265.145 269.947 775.325 42.545 -32.5341 503.423 44.942 686.983 655.207 -666.281 -664.84 650.706 148.387 10.2036 -158.59 559.976 50.9074 -629.786 692.399 -62.6126 855.461 -48.1839 -807.277 -28.4565 -1.31422 821.099 23.9926 -845.091 578.499 -556.407 703.523 -121.193 285.623 2.84349 759.688 77.5574 574.803 -554.346 -849.857 68.9817 1.97023 363.685 -727.789 -144.781 -284.761 283.293 435.248 31.9037 822.753 -76.6049 -746.148 -709.508 780.36 231.275 -261.709 30.4338 -214.954 243.278 288.569 -12.2058 157.291 15.2076 -580.231 -312.463 277.506 232.854 -223.818 167.883 -495.548 35.6459 21.9612 66.9038 788.557 346.262 -478.847 320.487 41.5492 -463.319 645.66 -608.863 -607.012 44.7955 643.486 -718.368 25.9079 647.031 -672.939 -745.882 357.977 387.905 -287.437 284.248 651.314 -647.369 -16.4139 -228.882 -482.817 348.232 -32.7159 202.857 519.503 51.2652 48.5835 596.456 79.3427 -884.186 -308.682 65.4163 200.397 -22.0187 688.227 -648.565 -39.662 756.556 72.7765 278.42 -276.796 -217.411 227.859 -10.4477 634.154 -38.6463 -184.103 164.318 19.7847 847.942 617.166 -649.497 53.7634 700.513 34.8579 753.377 -685.434 -67.9426 -6.52831 -680.677 687.206 740.016 -861.853 -515.302 -498.033 790.338 -724.656 -376.723 -837.445 78.4088 -19.0087 -214.406 233.415 -561.542 556.585 4.95633 816.053 -269.825 248.873 259.257 888.488 -877.447 -594.445 651.228 547.647 -535.908 -11.7388 266.314 -309.753 43.4387 -154.609 -208.937 -871.985 863.969 -248.279 37.5769 235.404 -272.981 -254.96 256.276 -1.31595 -841.787 775.109 66.6779 -187.998 174.593 -160.649 18.6386 17.2055 522.587 236.9 -220.564 -16.3367 230.182 -220.454 -9.72792 950.816 293.82 -7.84355 277.639 23.6472 451.505 34.2239 -644.178 715.483 -264.138 239.623 24.5154 -26.7703 683.39 -16.1565 199.161 -7.21703 -191.944 -254.028 258.105 40.211 366.282 195.896 24.2641 524.873 675.369 31.3092 236.476 -267.786 1.02573 -228.634 232.977 -4.34317 4.4419 698.154 -633.163 -64.9909 -20.8344 -389.613 410.448 31.4748 -239.293 92.4212 777.866 270.839 -305.876 234.135 -228.235 253.862 -268.611 655.239 0.212626 -257.822 235.897 251.913 -293.705 41.7919 -467.352 484.583 248.925 -304.663 280.492 -317.075 285.864 -316.838 283.388 -319.788 36.3993 622.918 -597.853 -233.221 227.228 5.99341 -619.738 621.395 241.376 -256.204 -419.561 421.792 31.5179 158.707 -187.275 28.5679 4.24985 195.202 -828.965 109.221 85.2958 798.73 -884.026 -992.391 503.082 489.309 -425.433 -16.9401 345.757 48.8308 680.236 899.824 -868.109 -0.494705 296.664 221.342 -224.711 3.36902 -761.044 761.044 -256.861 232.06 30.3349 339.42 224.611 -263.683 39.0718 -4.76448 -584.922 -39.0507 -800.554 73.2302 -763.301 12.9561 217.499 -230.455 -235.122 -123.025 33.4077 59.2681 -741.558 -333.585 61.5256 -759.162 405.349 285.823 -314.655 472.558 -659.863 761.776 -101.914 298.615 175.569 643.124 -649.638 6.51427 -256.591 220.095 42.8695 8.4502 -285.861 51.8213 -505.653 -463.534 459.199 596.474 -76.9714 7.90302 159.376 -180.635 21.2593 278.357 -287.363 9.00603 -247.747 206.631 41.1161 384.839 -775.538 -598.553 561.772 36.7804 40.0603 -557.458 -557.408 670.917 90.9969 745.994 -836.991 229.731 -274.828 -858.191 52.4278 805.763 -898.871 124.73 774.141 295.895 -248.964 223.434 25.5299 283.228 -275.456 455.744 -254.292 233.375 -3.33687 236.529 -233.192 -47.2419 596.53 -549.289 29.2979 235.367 -269.688 -0.574148 -547.359 590.679 -261.935 229.06 715.997 64.3634 160.037 -240.614 80.5778 -24.4194 646.952 70.4655 -536.445 -18.4639 267.507 264.22 -241.913 41.2321 480.001 238.773 -269.147 30.374 -45.0529 515.647 -470.594 726.686 -260.8 217.096 734.387 69.1903 355.472 -830.288 75.7613 754.527 8.24785 746.22 -671.605 -74.6157 -251.116 214.02 37.0957 297.744 -290.879 6.0878 -707.932 62.8845 494.541 35.5041 2.6715 206.178 457.398 837.996 -837.996 857.841 -477.373 -529.687 1007.06 -22.4717 -373.463 395.934 799.72 234.939 -266.912 31.9732 675.813 -49.9131 -625.9 -531.209 489.375 6.4267 190.287 -208.76 175.134 -247.6 220.441 3.51091 205.972 530.954 8.92148 469.256 -484.34 350.011 -78.3448 811.583 -518.114 156.746 -629.065 685.953 -56.8888 590.501 -590.501 165.072 -842.192 826.037 82.8383 -908.876 230.477 -265.233 34.7557 435.181 30.0714 -3.7594 198.436 286.331 -211.277 202.106 -245.318 210.282 2.76949 46.726 318.472 -305.386 38.9336 -771.798 306.697 -25.2982 233.825 -307.002 73.1769 305.123 -653.015 612.3 -204.85 200.455 287.27 -308.553 -167.131 584.975 14.3859 -722.755 708.37 818.971 -543.448 591.371 839.591 -31.6256 -807.966 -242.146 209.23 -781.34 -479.344 35.0681 -242.064 206.996 55.2795 684.737 -307.735 287.49 20.2454 172.597 -3.03335 55.9351 735.656 -791.591 291.294 -319.897 28.6022 -221.796 -241.791 208.018 -15.0242 445.798 42.9054 -826.538 -302.97 12.0626 11.1199 265.025 -276.145 31.9457 766.508 -798.454 839.098 -52.7146 -786.383 -647.713 588.492 746.618 76.1357 -605.9 270.657 140.865 26.0603 -255.835 229.774 -672.194 180.077 -7.42514 224.432 -865.35 861.865 307.721 -178.755 -244.196 210.124 -305.941 293.289 851.538 147.45 -82.2094 833.929 -751.72 742.778 -453.416 -493.173 639.796 -664.021 -239.483 207.558 819.286 -145.209 64.8556 725.482 -485.701 2.70704 40.4095 -623.882 660.41 222.043 -4.37937 735.872 -242.121 210.233 -44.5934 640.586 868.713 -793.108 885.53 -570.36 -3.44447 -496.97 500.414 -369.457 347.068 321.031 -318.243 600.382 -648.744 48.362 522.596 -50.7404 283.379 -304.359 20.9793 26.1255 5.17552 315.628 -320.803 -739.291 546.322 44.3883 170.1 -50.7433 479.71 5.38184 -236.884 206.952 475.196 237.118 0.432467 -181.967 0.875071 -324.549 269.794 54.7546 -15.4527 -41.8033 308.785 -337.365 62.2301 -774.474 -434.866 310.161 124.705 333.141 -833.616 58.4434 775.173 -310.142 311.303 16.4918 -604.806 239.766 -255.859 16.0928 374.641 762.969 -767.476 -20.6376 -10.0769 -190.624 194.873 178.393 -12.7498 283.774 -271.024 762.575 76.5235 71.1006 -265.836 257.353 8.48269 -838.336 75.1702 -514.305 534.251 -686.491 735.322 319.264 -316.021 -277.783 252.746 25.0377 -336.749 316.176 20.5735 210.234 -230.006 19.7724 -231.313 203.243 820.887 -738.321 16.4919 758.671 -766.062 -492.734 1015.31 259.1 -274.121 -322.699 -233.296 204.737 -541.787 -285.688 -2.32644 289.345 -777.05 527.047 38.3263 -647.208 764.931 -117.722 13.2517 -548.575 535.324 -14.4012 661.928 -80.6848 -248.549 42.2229 -372.184 -173.998 -115.761 810.884 -695.123 428.298 3.44189 839.32 -92.7028 -321.172 308.864 231.768 752.426 -759.22 -666.986 739.375 -72.3887 361.795 68.0811 -773.152 763.31 -18.2697 798.432 -780.163 -627.064 684.862 -57.798 440.163 -218.933 203.834 28.5865 -367.114 338.528 698.809 310.787 171.819 258.473 -800.893 886.189 520.888 38.6096 519.538 654.314 -666.101 794.677 -695.964 -98.7132 48.9567 571.9 523.951 -181.197 750.729 -758.24 452.327 35.6007 -859.221 -91.0281 564.942 114.471 -7.9288 775.041 536.455 276.531 -271.075 494.73 176.837 -193.251 -20.3112 -296.851 317.162 -7.27249 252.865 -245.593 775.201 -712.123 -63.0785 441.776 259.932 -337.298 77.3657 595.098 -550.811 75.6413 152.024 290.805 53.1869 -324.165 317.376 456.593 686.993 734.411 -503.978 -491.298 468.818 -64.855 41.927 290.58 -263.141 -27.4389 456.779 751.908 -541.04 555.687 14.8459 179.17 268.291 -215.735 148.387 67.3477 -35.8454 806.807 -51.0807 743.617 19.6979 -167.31 809.685 -763.385 -46.3 47.4193 291.436 -301.898 10.4615 316.292 -304.252 282.991 304.096 -312.366 435.854 -403.916 -806.887 57.1017 749.786 286.265 -318.09 809.955 -820.963 292.253 -22.0214 80.4076 80.1838 30.0277 -196.806 293.071 -303.688 279.14 486.464 275.659 -118.516 -281.156 292.659 341.702 -39.8808 572.811 -536.86 104.815 -733.886 664.678 540.499 -536.978 573.282 799.179 74.5364 755.644 -761.853 50.3313 738.09 -59.4932 -678.597 15.0191 827.979 -768.206 750.631 56.1755 -639.807 54.6974 216.573 -843.645 76.9616 766.683 -858.048 1001.49 -464.001 793.313 725.366 -175.647 190.376 -149.638 -65.7828 -162.868 23.8324 -850.401 -968.776 863.803 104.973 42.4345 67.042 563.441 98.4873 -39.0908 780.414 -741.323 -3.06484 659.662 -668.391 815.603 612.67 -669.633 56.9631 45.7918 -685.866 -83.9564 284.782 67.5088 555.69 -393.354 754.466 -767.882 813.044 788.852 -766.784 128.599 -154.988 -588.506 650.518 317.262 49.0014 -20.6407 161.637 -784.216 792.97 -8.75433 -486.504 41.4007 513.979 327.3 -39.6975 362.163 -502.671 -25.5563 -872.05 897.607 24.8131 205.633 -230.446 166.299 586.757 165.833 77.049 796.469 -873.518 316.988 -304.129 -802.721 822.531 337.192 70.8188 625.704 50.109 576.11 16.2219 69.2895 434.378 -445.381 36.4835 837.255 785.485 -794.932 -828.468 47.128 97.9137 -835.087 586.615 48.5497 786.876 178.409 217.327 624.021 -638.318 -699.597 -781.444 788.565 -7.12011 -865.35 765.153 -796.593 -2.12807 810.973 -35.496 -793.469 -24.4972 -803.971 798.403 -777.531 -58.1867 -800.004 -323.791 -442.187 550.035 41.4226 880.583 -856.807 656.048 -664.789 -866.614 845.033 137.595 701.725 337.638 204.369 -231.68 207.704 -15.9556 2.92582 498.525 -702.543 204.019 652.686 694.034 69.3765 -504.659 362.399 -230.69 203.94 -843.561 102.231 46.4306 597.988 440.471 767.813 -806.864 -81.923 -858.457 -36.9906 -587.837 600.619 8.96024 403.81 67.8509 -795.86 -10.932 193.648 59.9702 -730.158 670.188 629.724 -23.5204 42.5557 610.12 -391.145 377.357 -58.5067 -752.532 72.5897 3.76874 545.035 6.38462 228.381 223.093 -5.93066 605.658 15.2644 151.095 202.229 383.547 -27.2567 -227.898 208.796 781.36 759.228 15.2097 -296.397 312.531 543.945 -530.694 -193.672 -35.5969 -604.463 640.06 -540.214 748.025 339.414 -372.834 791.687 -462.525 439.259 376.207 -741.292 69.6874 193.125 -198.377 658.764 -665.674 61.9937 -726.784 664.79 41.3779 0.824613 639.725 436.461 674.278 90.653 18.949 -878.17 -35.7917 338.413 227.774 -397.984 767.342 -673.298 -569.57 328.165 -317.07 794.839 -363.82 522.218 -219.063 170.364 -58.498 445.794 237.959 -0.841081 -774.892 843.093 -764.965 848.504 -83.5395 -862.082 887.198 -25.1159 -505.354 358.141 -23.165 676.395 -653.23 -628.277 58.7074 -42.0909 374.754 46.4071 -872.724 20.0193 852.705 826.216 682.988 -57.2839 35.5386 51.9586 -491.368 -501.023 -56.856 911.628 -854.772 -493.047 -506.934 -429.697 285.396 144.301 421.397 -272.934 276.725 470.668 430.233 426.085 -627.488 661.016 -314.397 327.359 -886.241 88.7358 -615.213 676.057 598.817 -634.302 -989.453 1031.98 605.09 57.8432 405.895 -63.3715 -968.776 492.887 -546.458 834.342 -821.679 621.598 496.313 -1117.91 678.281 84.3175 -762.598 0.924647 652.155 -661.109 376.223 -376.223 -809.192 838.922 -825.83 -13.0928 747.927 -723.674 377.785 726.006 -33.4602 36.2699 50.0978 686.183 -736.28 -29.5396 4.28274 -1015.53 42.7478 435.047 -191.885 -243.161 -127.165 501.488 500.002 493.59 603.607 -316.365 329.543 69.1668 808.464 -784.75 -158.72 303.128 -290.8 -781.31 864.149 -495.935 439.607 -413.24 395.129 -791.653 788.381 -619.33 657.916 -547.387 -195.066 -23.3754 -61.8405 706.261 -46.9618 999.006 -452.847 -546.159 465.419 -784.275 813.25 -28.975 -881.672 80.7789 53.2025 -789.67 777.71 79.5127 237.652 -241.416 322.561 -315.838 506.164 644.853 -633.634 476.653 -670.246 661.549 7.25741 217.332 462.045 651.273 -650.872 51.1751 39.247 626.943 -620.703 621.991 858.931 -781.969 656.591 63.6474 72.563 -502.77 -497.213 -316.28 322.913 -82.493 -4.02635 -124.643 -739.063 764.56 623.866 856.692 -779.135 251.174 -842.175 -78.4054 -783.605 862.01 584.725 54.4771 862.18 -63.0321 -799.148 804.522 -810.422 5.90012 265.483 -272.349 61.2205 -933.944 -788.56 855.464 302.682 -293.985 -821.821 -26.6719 478.164 870.394 -14.5461 50.5643 361.552 -498.201 516.398 -10.9658 -237.589 40.9622 400.146 35.7084 -163.522 80.0789 592.991 47.5954 -211.097 210.523 85.261 800.928 58.3721 89.2 853.174 -755.26 -504.339 -496.532 1000.87 -639.792 -360.192 -178.164 850.458 684.78 -630.317 -54.4629 3.01645 70.1614 706.689 -6.59808 -657.311 719.304 184.426 792.006 -0.259164 -791.747 171.205 60.414 -231.619 11.2763 -63.7955 651.218 -664.8 709.611 -472.757 860.845 11.9329 4.2456 640.089 774.215 -788.404 668.408 66.9132 1.42318 -236.304 227.606 82.5542 -865.668 833.532 32.1362 -378.393 733.434 -626.829 -106.605 770.145 84.0201 -854.165 -857.841 817.629 -838.546 20.9169 -25.9661 -385.774 608.189 13.7579 -801.226 58.8387 742.387 619.375 646.471 -647.823 1.35151 61.5198 13.6471 827.925 43.1489 55.7979 -774.556 772.735 1.82142 842.14 -769.363 -41.5979 11.8758 96.0663 -184.371 587.502 842.143 -766.972 39.4126 -736.011 689.085 35.0671 -547.728 -496.954 350.314 857.365 -833.532 -964.324 472.956 -752.724 821.89 247.676 -752.2 -770.595 827.697 415.044 -334.695 753.199 -831.604 -781.31 558.412 -613.923 655.093 72.6407 -630.048 -400.545 379.711 -38.722 -577.101 754.576 -376.518 6.02217 631.745 54.2083 831.935 -751.147 -80.7882 30.2222 640.695 50.4158 604.324 834.22 -792.949 -41.271 -685.171 661.776 -634.268 12.7384 14.0268 9.87311 212.519 528.771 11.3238 -694.16 806.566 244.139 634.53 42.6079 -276.03 518.05 -754.673 236.623 869.235 722.164 -728.692 1.36404 329.19 198.424 719.849 -707.195 239.781 -709.437 721.981 3.73279 -381.82 393.778 303.518 -291.642 76.2647 -38.4988 -172.881 211.379 957.487 -425.61 -531.878 -498.521 880.374 574.45 -128.684 485.295 64.1634 570.307 719.536 -706.881 -49.7624 857.631 609.006 -418.425 21.7944 -37.3051 522.691 -658.358 74.5035 -863.487 788.983 -683.378 6.70386 826.293 719.409 -705.898 532.961 800.512 -813.46 736.855 718.478 -704.511 -716.701 728.673 23.6733 -1002.37 661.253 -769.612 759.791 707.319 380.094 -500.834 350.228 668.315 69.5921 6.18363 -778.95 799.346 522.294 -567.878 45.5847 -327.382 726.686 -715.729 9.68386 723.138 -683.139 -651.501 42.3204 609.181 -170.232 176.674 -469.54 466.096 850.012 -777.88 -72.1321 -865.668 -84.2457 -768.541 -861.613 -107.163 -797.946 872.449 50.7868 -504.751 -459.573 649.658 35.079 632.005 66.1488 -438.883 9.31592 345.737 19.1792 -464.091 794.859 661.301 -637.532 29.8574 -371.731 -823.128 -84.9018 881.292 -796.391 25.4684 980.877 847.063 -788.619 116.388 -728.289 611.901 212.438 -212.438 9.10804 -193.085 193.085 -16.3394 -174.36 -21.2539 285.526 -240.294 76.7806 -875.055 798.274 -182.037 182.037 -835.123 385.647 -166.808 166.808 -878.01 -148.787 -169.477 11.4526 -171.191 171.191 -512.828 357.524 855.277 -788.599 230.553 61.6714 83.0267 802.025 -885.052 167.489 -167.489 -783.156 616.464 166.692 -350.656 52.3784 854.931 -786.461 -187.944 794.709 66.2349 12.6787 -419.313 513.31 -93.9974 88.2393 -774.351 -700.889 715.275 273.2 -264.473 834.414 -80.5675 -234.639 235.401 -786.325 -33.6282 -18.4872 -825.045 877.473 -179.651 -449.384 855.707 -786.725 -40.835 774.482 -733.647 392.627 779.092 -716.946 716.946 -140.235 140.235 -716.245 745.027 -879.379 964.916 -85.5371 -774.9 774.9 159.518 -720.579 657.208 826.948 -826.948 -45.5534 252.912 859.996 226.264 -199.419 -26.8447 -186.255 67.5118 794.668 -201.559 9.08067 -218.597 259.354 -40.7564 880.343 190.417 795.528 -65.7393 -729.789 593.033 68.0501 -661.083 11.6135 785.217 -753.075 769.845 -759.416 796.356 -751.909 23.1806 776.512 -779.515 497.84 501.166 51.5919 -640.098 -514.235 357.042 810.215 -756.803 756.936 -736.319 -73.0461 163.694 -736.142 52.6561 -767.731 757.814 8.89686 49.0614 -658.486 609.425 7.20713 796.388 -682.981 764.569 -726.964 581.056 -107.701 703.103 -703.103 -161.487 433.409 22.3349 -802.438 773.555 -59.9853 854.244 -794.259 10.4856 -409.778 -807.381 881.918 -226.931 42.9147 676.39 756.541 -731.414 1087.77 -614.812 -10.7721 -370.682 381.454 807.24 -733.475 87.5841 60.899 833.553 747.278 652.714 53.9745 583.138 879.442 -790.706 740.511 169.116 -169.116 -209.146 11.7546 812.024 -750.237 755.887 -760.18 247.225 710.636 -518.723 352.92 777.937 -791.613 792.432 -705.79 736.973 -755.087 736.593 -712.036 -24.5569 -800.519 -0.345956 800.865 915.072 -829.811 388.727 16.6224 -787.4 865.809 765.342 -704.443 913.436 -832.657 -852.382 54.2321 798.149 812.593 -771.877 748.393 -169.946 -1.24548 -123.289 855.758 -144.845 -298.593 443.438 844.034 -742.122 878.777 26.3714 504.64 6.1792 -807.805 887.148 221.733 -322.816 -251.009 -825.854 825.854 186.528 12.4891 152.172 386.493 169.946 -2.45693 13.222 -729.976 769.29 792.818 -773.933 -651.569 -710.112 43.8232 778.568 -157.852 -516.068 352.013 164.055 16.9013 -16.3091 215.38 16.9472 -721.549 -171.691 41.2253 549.113 -590.339 -785.335 -150.083 843.644 -744.818 495.832 763.891 28.5004 749.155 -707.258 331.114 -28.6674 -754.429 -12.658 767.087 62.3458 810.103 763.116 -751.522 723.458 104.815 -828.273 170.992 182.1 21.075 17.5606 624.081 60.6992 784.87 49.3507 639.546 -673.739 34.1933 -50.7141 -694.32 -778.424 862.444 19.5125 719.983 28.0411 -64.9214 19.7489 -54.2366 655.135 -795.569 13.7329 -690.193 -507.07 334.778 -797.172 866.584 96.7841 -377.181 -346.127 -7.77197 624.291 19.4042 -38.6695 -653.668 692.337 20.5106 860.122 -722.008 -138.113 795.569 871.823 20.7441 -519.504 358.681 -732.714 775.511 20.6885 -693.227 60.0644 769.431 -743.92 289.084 372.232 12.6066 18.021 -503.76 -54.2828 -597.219 752.445 81.9686 -698.712 -78.5198 777.232 -502.965 -497.038 789.165 59.339 -56.9082 856.156 231.763 -277.317 -157.468 17.2338 80.571 699.843 -467.107 -46.3161 -828.859 749.29 79.5686 -145.989 -295.853 482.594 27.0256 -397.23 370.204 -15.4304 800.849 -733.765 658.142 75.2923 27.5963 720.797 498.839 -1001.8 819.968 -776.311 38.784 813.486 -193.558 821.13 -777.882 776.848 134.78 -816.418 723.715 724.231 -713.263 192.204 -15.3667 643.084 -569.841 827.578 -778.86 -710.172 710.172 792.601 60.1032 -149.173 20.7206 -178.074 825.83 -964.916 139.086 402.087 60.4561 589.396 -629.402 -237.06 216.622 -594.061 -754.194 54.7403 699.454 -157.468 -586.473 627.851 92.1196 -669.221 495.249 55.2854 -657.818 -73.1297 852.595 -727.865 -783.685 828.226 53.4541 -533.89 480.436 69.1464 -659.114 589.967 -257.542 -2.29277 259.835 -2.02327 -320.388 -734.828 884.653 -801.627 56.0003 256.686 824.557 -785.795 85.2688 -202.84 197.506 -16.8403 -33.2645 234 29.4702 191.557 27.8203 -452.69 550.734 -546.363 11.647 365.588 85.0692 -849.123 764.054 -510.034 345.227 825.373 -782.828 -6.05354 861.431 -855.378 815.609 -112.506 -275.056 815.609 75.3265 152.217 383.114 -666.27 23.5675 731.009 326.236 -12.345 764.336 63.6422 568.183 -560.818 74.7229 275.138 745.114 -76.7992 -661.52 -513.28 342.963 279.888 508.702 -33.3455 786.905 -753.56 -526.426 351.165 53.0657 -772.289 719.223 889.214 -785.138 -104.076 223.586 8.18153 -163.061 64.9846 790.479 177.762 -539.479 361.717 -528.67 324.64 180.638 74.6098 -165.58 38.3492 817.807 -594.596 693.053 -648.242 -808.841 887.265 800.544 84.1094 -10.2448 -166.6 642.744 -51.7224 638.338 -22.5313 -346.685 -6.94555 -292.216 126.12 52.2692 825.204 29.9528 597.83 -576.463 -21.3675 -833.303 833.303 74.0389 -83.2579 -208.069 -3.02744 -732.874 -8.51006 741.384 -230.324 230.324 686.728 -647.482 -39.2459 -579.056 616.705 980.969 -376.774 -604.196 69.6591 -199.048 556.907 29.3956 70.8384 -834.819 786.636 874.372 -73.8283 710.636 -136.84 864.371 -340.959 -162.895 718.464 97.1226 -815.587 -568.053 615.585 -47.5317 846.346 15.1772 792.137 -807.314 641.54 -238.593 763.45 79.6425 689.323 -679.984 51.1795 744.349 -653.104 694.746 672.002 -636.704 -35.2978 790.062 84.3109 669.003 -643.941 609.927 -589.198 715.692 -648.141 -67.5505 -516.295 330.929 185.366 652.028 -575.177 -76.8517 806.022 -40.0419 -765.98 -837.723 69.5166 42.5116 -569.437 -211.455 817.451 -774.545 -552.418 -7.16502 727.084 -678.135 779.751 -763.59 39.2927 724.899 -676.213 -813.33 53.5789 759.751 716.279 -667.356 696.855 -655.673 -806.23 771.479 32.5554 -482.518 609.097 -622.591 13.4943 670.288 -640.953 -584.671 660.891 675.412 -634.225 -514.839 359.44 -217.845 -21.2582 239.103 570.952 114.218 -685.17 646.614 -14.8686 -670.843 719.374 -7.44867 3.28399 716.699 -535.898 359.539 588.535 -597.819 -9.97714 -611.715 621.692 198.841 643.558 31.8108 -549.44 14.6468 473.651 -488.298 229.326 -245.557 -696.039 -220.08 -240.604 -705.752 610.985 -809.01 773.514 -502.167 -546.015 362.547 -516.775 479.47 722.556 -674.142 -840.535 750.849 89.6864 629.349 -629.349 673.541 61.4318 47.6694 765.374 704.299 -29.1296 -675.169 612.176 -600.337 276.809 9.52243 858.282 -66.9032 -791.378 840.435 -107.825 -732.609 713.262 -672.699 -40.563 615.122 -596.454 -18.6679 852.437 -798.674 631.156 -168.223 -549.805 363.817 41.1693 69.0992 645.613 -601.894 76.6747 -665.424 692.626 -27.2026 632.438 -580.511 790.542 757.611 -692.2 613.264 759.249 -689.763 -69.4861 52.7084 -29.0161 -170.37 -35.2721 738.761 -703.489 -343.461 348.281 183.07 -546.014 362.945 22.6958 657.498 -808.294 71.9792 736.315 -1000.69 -204.67 749.29 -540.167 363.493 743.038 -668.227 751.36 782.785 -811.532 763.321 -713.648 -49.6734 496.049 -960.049 -885.38 827.738 -160.268 -885.38 671.971 -609.776 -43.2392 -416.758 134.724 71.5448 755.527 -697.863 562.483 -254.871 -307.612 -163.013 735.968 -649.771 -1.23569 795.759 -794.524 69.9495 698.24 18.8514 798.05 95.2618 -893.312 278.205 44.3842 798.296 53.5474 800.697 -167.055 -610 627.407 72.7792 61.0809 137.25 76.5501 -7.91106 -194.663 202.574 897.607 -650.271 672.967 -602.288 602.288 -4.18926 -480.202 -489.167 969.369 -461.29 1004.74 12.1365 795.299 -740.654 -841.865 74.8931 127.132 -550.456 364.726 -33.7715 478.445 564.211 -520.211 -495.321 -498.348 1001.43 -157.54 -24.657 458.066 -521.571 -706.928 780.158 -586.937 553.046 9.44463 -628.927 213.233 -7.4149 179.967 415.709 597.051 -651.334 351.969 -256.571 -169.424 -924.034 960.855 -36.8215 -889.958 889.958 -159.521 256.453 -234.334 -1079.94 618.652 -689.451 762.164 854.428 -74.6703 536.729 682.891 -649.233 -657.447 33.5643 738.154 71.5309 18.396 -579.933 -957.1 -960.855 805.457 83.7569 -701.491 761.189 107.267 -504.679 -497.694 92.5161 713.506 808.997 -815.05 -220.594 799.838 -730.648 837.669 -837.669 643.558 -573.29 18.9443 -924.034 502.306 -25.8263 712.202 -686.375 -35.535 869.695 -82.1993 -787.496 -857.286 793.097 64.1896 174.301 -176.758 783.352 -717.935 785.668 -721.304 615.63 -598.136 -507.123 507.123 850.143 -850.143 540.427 543.451 461.288 -672.054 -327.964 827.738 456.567 840.503 -786.271 -538.731 790.388 50.7073 650.819 -620.971 -29.8474 -154.358 -701.504 19.7294 72.0607 713.991 -668.2 -749.791 796.017 -0.448492 250.241 -18.4778 769.327 -707.801 -34.4305 851.594 49.2612 698.975 -46.2612 -24.5138 -735.238 699.966 -15.7652 -568.348 46.4372 750.859 -691.591 -624.811 79.4712 774.957 -46.555 565.434 -552.966 634.385 -620.825 -725.88 619.077 797.245 -729.394 -637.74 -694.32 -504.32 3.17376 684.759 -234.713 -450.046 78.307 253.781 83.8249 797.468 850.386 -751.206 807.381 -16.2117 404.939 -733.384 813.792 -825.051 862.132 -72.0702 -738.451 281.615 652.93 -96.0526 -260.371 10.3346 866.131 -781.062 13.6932 32.9219 -150.51 37.0171 -244.554 244.554 178.993 75.4992 -866.206 214.219 589.984 0.516551 -470.425 413.361 57.0635 817.744 -756.942 -673.056 356.067 -378.539 -724.07 796.66 589.984 -861.651 1019.8 -331.957 337.132 -876.469 788.718 87.7503 374.494 -386.609 249.702 826.547 -744.882 -424.481 -116.269 446.977 -138.478 865.755 -96.5309 -301.973 468.157 -166.183 544.625 -546.135 126.685 36.3673 -391.28 787.726 69.9055 20.6773 72.0626 144.269 -544.029 11.2851 -7.99073 -803.739 -161.966 799.735 -804.711 -678.337 652.511 470.062 36.1023 613.6 889.055 -804.946 858.293 -52.836 -2.92665 177.296 822.359 -746.223 -711.539 787.18 836.187 720.501 6.45696 -18.9356 -665.57 800.35 -370.411 713.284 -5.28831 173.171 -13.7506 385.983 573.104 235.316 2.64356 -307.854 341.857 38.5033 -713.911 794.095 -715.004 655.511 -717.887 808.54 71.5878 0.654 169.284 -87.0586 -790.952 69.183 -868.109 884.094 -800.27 -384.558 244.462 -13.8011 279.356 -404.507 418.264 -45.6037 664.293 -618.69 59.8385 576.089 857.586 78.5724 774.022 127.647 36.4066 -555.347 555.347 -352.01 -151.113 319.068 450.437 -769.505 -762.151 399.666 -410.525 10.8592 210.616 -0.0931648 -19.8502 65.1725 -750.64 685.467 255.68 508.931 -162.008 3.0686 -997.555 -488.134 534.541 102.598 796.02 -898.618 253.766 -46.375 -583.69 35.1143 -720.311 615.741 8.62468 637.989 626.347 -720.54 94.193 -827.153 -10.7288 837.882 -207.477 -670.673 -570.363 570.363 7.65046 498.554 -506.205 181.809 66.6576 -4.87626 -1.02486 833.016 -522.842 522.842 -8.24838 452.099 -7.22412 -437.104 473.766 -36.6623 60.2041 -672.165 -72.8836 180.886 -145.954 -34.9321 -851.154 251.012 105.869 -199.632 -795.195 -806.383 890.694 -8.11294 868.434 832.818 832.615 -132.773 26.8083 -589.808 -5.94473 710.243 66.3318 176.604 -209.32 88.8363 -838.627 379.31 130.607 -711.144 790.657 883.855 -795.539 -88.3161 828.381 -901.98 777.826 77.932 -476.715 -14.2214 43.6782 348.175 -391.853 248.552 -252.578 207.709 -630.788 -933.741 1017.5 172.744 -596.018 26.2543 569.764 986.592 -636.812 -930.98 836.3 8.17807 -835.331 -566.102 320.334 -415.506 457.575 -42.0695 -613.721 640.663 -26.9413 -7.22427 -395.681 249.704 51.0374 527.802 -496.99 -492.519 532.217 -750.564 -63.5367 -133.564 846.598 592.8 -553.921 566.482 -529.592 -698.734 35.4048 663.329 502.404 49.9769 69.2463 -487.998 529.011 542.969 -511.855 -730.498 819.698 587.274 -545.047 597.736 -553.683 525.516 601.634 -557.246 461.78 -471.937 592.259 -544.358 587.028 -543.639 -856.125 69.3996 354.604 562.5 -524.891 539.846 -509.317 217.981 -217.981 596.228 -571.963 -367.937 245.829 539.708 -507.874 536.134 -512.321 189.772 136.22 439.742 -575.962 191.938 362.381 -313.312 -49.0688 82.6717 -563.853 608.649 522.796 -484.323 535.502 -497.853 349.847 -280.124 -69.7226 -573.998 79.0242 799.753 -58.712 -807.581 866.293 -612.969 35.7202 612.464 -567.347 42.1091 -420.385 -55.0183 630.699 -579.434 575.869 -558.778 -802.506 -472.139 472.139 -5.66336 -631.987 195.64 194.701 -272.763 343.689 646.172 -583.288 -493.504 529.911 803.42 -745.132 903.22 -379.804 242.051 740.373 -686.795 -74.6475 558.012 -522.945 280.774 -462.741 527.2 -796.68 219.614 -49.8854 -8.72851 232.315 506.286 -475.548 82.4678 -888.019 807.867 80.1518 -220.809 217.15 3.65874 -99.7172 895.737 -794.555 -620.137 669.567 583.043 -540.532 326.14 -280.33 -289.057 335.104 -46.047 525.609 -490.714 672.601 -625.875 -4.01617 -752.643 828.908 513.427 -485.847 666.495 -611.21 322.311 -277.558 -21.1711 -677.563 816.401 -583.063 637.76 -358.43 382.059 -23.6295 -490.802 526.894 207.709 688.513 -628.309 653.708 -605.346 -7.12059 170.071 -162.95 362.029 -321.678 -40.3513 -869.528 -364.19 367.959 -471.346 471.346 -603.979 660.796 644.255 -511.104 546.309 -34.9095 994.323 10.9404 -594.63 22.711 59.1817 791.204 652.995 -607.919 -55.7897 -722.148 777.938 832.627 -757.048 193.32 5.10334 141.282 -761.855 60.9666 -895.257 -580.653 780.909 76.932 89.0763 801.066 -890.143 67.7442 -743.169 24.4107 83.113 556.339 -514.985 646.105 -578.024 575.294 -456.486 -118.808 671.198 -613.354 608.997 -533.718 -422.21 -43.6257 803.595 79.066 568.83 -527.281 725.71 -657.966 8.43082 11.6811 763.36 649.411 -590.339 41.5908 470.932 -466.295 333.52 -292.014 556.728 -521.148 -312.722 -64.9713 755.834 -898.613 142.779 44.714 612.505 44.7026 506.964 -493.846 144.781 -774.759 852.629 482.458 594.941 -554.73 -521.671 560.596 817.987 -830.943 -618.179 675.142 -2.57189 33.8472 381.862 -712.089 -12.028 -57.2277 844.608 -597.521 -886.776 81.8304 -9.32 173.414 -82.1549 -813.102 858.45 -52.1529 -806.297 -6.01124 -14.845 836.63 -770.395 484.947 -463.039 481.564 -376.197 243.966 -767.312 564.297 -524.237 615.179 -573.845 416.326 -410.304 667.883 -607.913 -348.045 370.641 -22.5961 -605.694 653.114 12.4354 -626.157 463.945 -18.3785 -445.566 -629.936 672.492 427.774 -425.259 446.157 -459.374 785.192 77.6122 480.812 -458.54 -890.7 81.7544 808.946 676.468 -617.844 -58.6233 892.015 -808.902 -79.9491 -808.07 -777.135 -91.4745 868.609 -274.765 -14.3948 163.029 -467.078 64.4776 712.761 -628.443 814.812 -825.541 614.68 35.8379 -607.503 698.736 -91.2328 35.0453 693.992 4.98351 22.4699 -361.404 382.426 -21.0221 888.589 186.456 683.55 -645.651 -37.8987 -42.6307 860.438 -804.308 788.607 57.9916 -634.718 807.677 79.5883 7.68348 -388.179 499.873 -358.733 788.836 76.973 -134.195 8.16399 861.531 -966.632 777.914 188.718 -41.6945 -656.152 -368.036 -5.4263 -82.7523 871.359 44.625 81.0721 -889.786 808.714 474.63 -455.45 -779.872 -816.153 750.055 66.0982 -268.318 290.22 -73.3672 758.893 -685.526 97.0724 615.879 -13.1223 868.189 418.886 -409.926 -350.4 435.856 254.057 415.464 -415.464 -23.1127 426.923 -10.6203 -660.638 730.799 835.311 -758.796 523.828 -11.6395 809.861 26.124 14.1902 -814.709 528.473 458.668 -444.243 -603.138 619.217 -16.0788 -381.558 248.73 889.698 33.8804 -356.579 -600.096 656.057 81.3152 -637.521 739.71 -647.194 444.581 -422.932 455.191 -444.321 -754.317 10.9626 404.905 -415.868 441.5 -415.05 396.913 -377.846 -19.0674 -98.7092 923.913 907.063 434.137 -397.313 859.208 -64.5913 -794.617 402.048 -175.101 -226.947 -810.548 455.21 -441.648 447.777 -423.65 -431.81 478.388 -207.844 249.264 -41.4198 322.911 -781.507 424.022 -406.823 421.253 -380.277 409.742 -386.427 -414.675 425.569 -394.058 427.905 -413.247 421.467 384.313 -366.499 420.848 -393.976 -394.644 429.865 48.2409 606.852 -656.385 727.204 386.937 -357.75 -14.6212 -412.361 412.361 -348.169 -43.4325 852.785 -809.352 427.548 -416.47 734.186 -664.498 -64.8721 839.829 -819.947 93.3741 726.573 -125.803 472.707 -46.3539 -244.107 290.461 783.932 595.011 -551.288 -248.092 251.825 719.494 -652.581 374.436 -354.023 489.971 574.381 49.9097 -657.513 600.624 471.529 -440.083 426.496 -417.966 -410.93 439.009 879.642 -81.3457 375.842 -326.586 -49.2558 856.398 -603.017 882.821 876.086 -82.9895 -566.963 566.963 -811.495 -49.8315 861.326 -446.867 476.775 402.901 -403.713 0.811626 444.234 -418.495 867.053 -792.443 464.801 -434.73 -880.696 80.4261 589.42 183.234 -4.47243 -178.761 -157.122 -53.2822 -738.309 37.7397 615.19 166.254 304.25 -470.504 -676.691 747.792 887.032 -81.2692 476.43 -459.225 882.619 480.069 -452.376 -25.5732 604.038 -578.464 377.395 -356.617 341.367 -321.066 346.501 -280.362 -235.728 -469.022 704.751 351.085 -326.301 305.36 -260.982 -44.3779 495.063 -459.417 -341.175 367.61 336.874 -313.693 370.203 -352.373 335.943 -312.537 373.628 -344.73 -353.762 376.851 450.416 -443.687 478.43 -458.319 -20.1113 -419.731 419.731 373.604 -352.421 -418.811 746.109 -703.194 -447.071 497.625 -50.5547 -750.249 342.839 -321.733 289.237 -264.038 -25.1988 -785.161 -266.995 292.523 -25.528 335.127 -313.057 339.321 -318.377 286.458 -268.404 752.398 -682.806 284.538 -264.594 43.738 -539.375 838.057 -272.484 272.484 -447.918 499.739 388.883 -361.244 489.954 -454.353 22.1096 375.672 -355.745 404.124 -376.31 -76.3509 -890.281 -506.101 -790.149 380.418 -356.745 405.727 -380.7 -34.9105 -61.9456 860.988 -799.043 331.881 -311.137 -20.7442 658.267 -663.336 5.06885 -458.209 494.062 320.06 -323.589 3.52834 -83.0238 873.36 -790.336 325.582 -338.657 13.0752 0.692804 -369.029 404.538 59.5506 534.127 -498.623 105.332 451.837 -450.193 378.721 -389.493 -82.9476 883.644 -11.0949 -309.92 321.014 -257.096 272.484 159.73 -282.399 -680.791 788.592 -107.801 -291.809 -781.787 323.489 -390.099 527.44 -490.209 4.70777 834.473 -828.366 881.022 360.172 -301.383 -58.7885 -25.7477 12.5847 761.798 -774.383 -438.172 483.523 805.87 76.345 -882.215 483.85 -24.3991 -459.451 679.624 43.5859 497.05 -462.192 -194.34 298.266 -281.948 41.729 424.761 -330.143 -48.0416 427.352 -404.77 404.77 -796.694 867.362 -70.6677 84.7633 91.4479 -176.211 180.395 679.215 63.5622 870.277 -775.015 -873.454 462.452 -423.974 886.743 72.3897 734.177 626.148 -600.023 346.117 -314.381 -31.7353 80.9428 -877.333 302.244 -282.278 -19.9663 560.055 -560.055 -449.524 473.62 858.841 -174.787 171.86 -9.63249 75.3839 43.8923 858.986 -640.474 693.676 773.464 -677.398 93.4759 83.0238 -176.5 460.692 -438.731 -523.583 497.967 25.6161 65.1812 -509.265 563.037 42.4314 304.244 -287.932 474.031 -432.392 912.072 -708.747 750.157 -41.4093 589.059 -550.732 855.556 -770.617 -84.939 787.44 -682.625 46.1581 695.222 -645.113 339.071 -327.211 823.125 304.881 -285.287 -19.5949 807.055 307.269 -290.874 632.806 -41.5025 -591.303 668.497 -659.872 -810.198 -537.401 586.403 -50.8667 520.928 -787.253 862.637 660.983 72.5624 -733.546 717.7 -664.513 603.725 -561.798 -455.652 486.589 862.125 164.069 -389.078 -311.873 311.873 -777.686 -204.993 982.678 113.156 63.6969 -176.853 608.717 -565.971 42.2695 -455.611 489.835 712.448 -661.273 439.476 -394.934 -40.1677 357.18 -317.013 329.837 -325.433 12.8824 544.155 -503.746 -92.8117 -757.098 849.91 -411.279 446.988 -751.964 193.603 597.132 -556.265 336.443 -313.375 393.685 -19.8539 -373.831 -284.31 299.574 460.189 -432.369 306.372 -287.709 42.0857 -699.999 1044.09 -344.087 -655.353 711.151 -262.392 262.392 866.448 -396.929 -13.5897 72.8426 105.569 -178.411 -412.239 396.485 400.822 -394.556 -6.2662 849.196 -775.54 -73.6561 -14.967 97.927 81.1008 -179.028 -44.0837 22.9378 -398.854 375.916 98.9858 80.7211 -179.707 698.597 -670.962 -27.6349 887.232 -73.2229 829.057 99.9926 80.4382 -180.431 79.4962 96.4863 -175.983 100.789 89.6068 -190.396 -782.847 842.028 70.7887 304.279 -281.946 98.1629 83.0162 -181.179 -762.06 33.2042 713.32 -659.112 28.0446 91.8162 90.1814 -181.998 334.312 -317.164 108.457 79.4699 -187.927 83.9538 98.8749 -182.829 -556.968 598.391 63.5938 802.699 -68.5532 866.703 105.861 79.4668 -185.327 -808.105 890.776 -395.368 395.368 664.935 340.258 -332.811 250.925 -219.45 990.046 209.962 -25.6893 -474.171 495.965 728.767 -665.12 -52.609 861.025 -70.5461 66.5386 491.264 -458.709 324.341 -309.035 -50.7435 -784.076 723.761 -635.522 597.579 -551.142 857.773 -777.299 71.9324 66.454 -175.051 174.857 -799.617 57.1396 -304.947 320.91 836.547 -757.137 -79.4105 525.135 -481.397 741.07 66.311 38.789 388.715 -388.715 732.546 -639.203 -93.3424 -659.962 63.9381 596.024 770.46 63.0939 -77.8969 -797.158 -266.987 294.573 -275.473 -467.783 538.248 278.121 -261.504 -699.638 753.612 -630.724 49.6375 -648.749 599.112 -259.387 274.874 -850.572 36.0442 814.528 298.229 -277.55 793.03 -54.8764 455.879 289.092 -274.61 27.8728 705.253 859.256 275.215 -258.274 -33.6945 66.5965 -749.816 55.0791 694.737 640.484 641.313 -590.25 41.1392 855.503 -66.9456 847.691 -762.422 -78.5785 855.439 -776.86 104.401 741.945 -4.24552 31.263 -17.0497 41.1074 868.652 -791.679 -805.456 804.22 79.256 787.192 69.6049 15.5257 851.307 395.692 608.8 -573.261 -752.07 -32.4191 -361.81 361.81 -79.0594 630.418 -585.564 722.637 63.0309 -23.4186 131.82 618.121 -566.163 864.141 -69.4733 83.9084 -0.410878 220.015 -31.9697 -221.624 -26.4683 247.701 -240.053 240.053 800.655 -587.935 642.412 -204.576 215.815 802.648 -79.3836 -723.265 17.9096 68.91 -710.196 715.18 85.1211 -368.118 368.118 621.298 -578.429 192.781 -19.5401 134.379 1.94893 -136.328 -178.883 -446.191 56.3936 628.327 -579.248 45.6012 845.901 -59.2654 448.656 -64.3343 -286.803 351.137 306.065 -687.045 21.2151 665.83 -33.6772 -599.295 646.891 74.187 162.674 772.626 86.2152 354.333 -354.333 81.5929 709.545 -870.011 861.458 -787.419 62.0474 62.2224 404.544 -372.98 216.417 -208.224 -384.256 251.54 -873.092 799.417 73.6749 715.367 46.3832 -14.4971 -134.281 303.349 22.3761 -325.725 -802.802 868.83 -66.0279 -37.4476 62.8419 -787.497 858.335 -41.0629 14.7985 36.5759 177.885 75.8812 -308.503 -222.275 452.102 69.2927 -669.999 792.014 760.433 -577.223 633.513 -56.2905 685.016 80.5412 -418.189 -880.936 815.385 -54.4054 -604.247 658.652 65.5192 31.5911 242.385 6.16628 653.678 -604.041 4.04042 881.369 38.6599 788.323 791.492 70.9519 429.621 657.675 -604.509 -53.1656 -41.3646 45.7427 586.046 -328.078 328.078 40.1466 -113.924 877.461 53.3405 -68.2769 -833.703 216.107 -210.307 890.539 -678.791 -36.2135 -610.611 661.027 786.029 62.6589 795.64 19.6212 82.9511 -276.728 276.728 10.131 66.3234 42.1942 -25.8181 -32.0655 58.0657 15.0104 864.377 -784.735 653.225 -610.904 94.0942 159.493 -726.255 639.435 -1.57562 -637.86 -60.5493 666.331 -605.782 -297.946 297.946 655.041 -601.378 -53.6634 -80.0759 -818.542 -734.521 820.177 -85.6561 245.253 -245.253 -20.2686 -201.639 77.1272 -790.755 -177.649 -120.798 -146.189 -196.162 738.148 -750.453 840.139 -180.717 188.927 -8.21038 -787.56 875.311 -9.84186 -63.5153 79.984 3.47139 700.926 54.6015 -80.2531 854.275 850.432 -76.2907 632.627 -415.612 252.09 60.1586 793.235 73.3483 715.903 -655.203 81.8739 -624.19 692.241 758.426 837.457 -67.6253 -769.832 -884.257 -134.185 30.8027 343.141 797.071 9.61494 837.539 -59.2253 -778.314 -10.1835 54.1489 680.492 -642.752 74.5662 675.954 -640.549 609.499 450.191 -564.296 826.564 -746.485 -378.042 -312.869 24.9366 759.671 76.9586 -579.074 651.715 747.614 22.2311 -333.287 306.517 15.4387 -331.384 -180.34 853.198 14.992 -771.43 82.2341 224.845 493.56 -718.405 -776.319 847.863 51.4772 -8.80549 354.531 2.04987 -356.581 -315.847 315.847 626.609 -606.88 622.049 -591.827 112.173 398.493 -398.493 77.0084 382.513 212.064 -198.967 61.9093 60.6733 605.497 659.038 -571.134 -87.9041 879.666 -691.823 -187.843 674.394 50.2682 290.107 -290.107 41.1812 -662.765 722.83 -666.242 -35.6168 25.801 886.549 -808.242 -585.564 -23.8262 -319.635 42.0865 -13.6362 -304.27 304.27 -159.856 -256.717 768.531 -24.1823 -316.252 91.2572 786.003 -877.26 702.898 -610.778 93.2083 84.6176 -177.826 -198.039 -11.5026 21.4069 833.389 -112.888 708.429 -646.404 65.3179 -597.792 695.567 -70.2761 626.345 13.0907 -9.70725 7.09802 698.279 -632.13 50.7252 -718.15 667.425 -778.955 844.463 -65.5073 52.2643 -8.49105 47.0996 747 -811.655 64.6556 -804.591 680.436 55.5326 664.529 -636.932 -486.871 35.3098 109.66 23.2889 -204.619 76.1633 -863.659 -339.483 347.58 -683.535 707.103 14.3929 -545.087 665.094 -609.616 -55.4783 10.2057 -120.856 -94.8783 72.898 714.542 57.5796 263.854 -321.433 -52.9813 812.733 743.735 350.021 679.584 -628.797 -9.9913 842.809 -496.233 457.848 79.8451 -858.249 765.586 92.6624 42.8556 106.102 80.0846 -186.187 770.179 -803.831 -1009.89 -412.137 7.63013 78.7356 31.8177 -36.1373 46.764 56.3967 588.457 -384.747 67.5318 -121.726 870.025 -117.108 75.374 -631.824 683.27 -81.8457 666.029 -663.498 -2.53066 -233.821 228.573 5.24827 70.27 4.60865 -33.2667 128.219 67.067 740.993 -745.979 164.571 488.024 584.112 782.552 70.2324 -2.59544 21.3997 657.757 -611.869 -45.8874 243.252 8.57327 -43.8626 -780.117 -36.6796 485.549 -204.775 -13.6139 -182.384 210.842 849.718 632.393 -40.2264 31.6209 342.681 -775.041 -13.2516 46.3426 845.353 -801.458 762.797 38.661 668.049 -618.987 -39.6191 -69.4733 -25.6154 139.705 255.647 20.2213 10.333 -866.648 72.2454 794.403 -27.26 -30.2552 47.2312 -6.43869 -251.109 814.549 -815.894 685.641 66.7569 -26.9268 -85.6209 -60.6116 203.625 488.242 708.474 -655.408 -26.8451 -6.30188 -4.09515 -780.655 -29.6367 -855.894 74.8326 -26.5112 8.78125 373.73 7.01884 57.4948 716.509 -644.598 -71.911 40.314 -597.515 673.614 -76.0992 -36.3479 -7.38641 -21.3056 863.405 -735.186 654.119 -612.894 -6.78412 -619.645 691.251 -71.6064 45.4365 -613.584 427.748 26.3996 694.598 -636.984 -57.6141 45.2321 54.9957 98.0948 -43.2742 -706.542 -49.7349 -672.628 722.363 65.0726 25.1479 784.957 741.285 -685.226 -56.0582 -664.551 -719.784 734.961 64.9858 34.2413 695.356 -620.063 -1.87376 -150.712 -623.015 720.137 649.075 63.6862 74.4138 -2.7293 -594.747 -981.901 -644.402 -43.5947 819.164 -746.266 649.138 -667.626 18.488 864.072 471.69 28.7244 -756.115 833.074 78.7876 74.6232 800.926 -686.707 4.62455 -303.192 15.3461 37.6378 -473.49 -43.0128 761.72 -718.707 55.1063 -12.3437 37.6735 863.555 732.794 -678.054 37.9495 -715.55 827.933 -112.383 30.7002 -404.533 588.776 -588.259 387.335 853.095 -760.31 -301.513 293.841 51.4673 -21.2281 832.564 -811.336 39.9493 -154.263 753.646 657.993 38.8623 29.3889 -420.465 4.66151 -678.301 749.936 -71.6353 -136.108 776.191 -722.042 166.741 -26.3043 -55.1657 768.671 -88.8294 -685.364 774.194 174.839 -190.206 -785.47 836.177 -692.788 755.735 -666.481 616.568 60.3805 -352.54 352.54 46.6352 38.4852 -6.01753 39.553 -469.933 215.393 -251.967 -240.973 237.94 14.2739 -202.011 3.97185 53.085 664.209 -666.801 -5.81091 199.131 22.8169 -718.93 788.446 856.974 5.08716 225.376 -234.495 -3.2294 68.5544 39.073 -889.177 -120.584 299.071 -299.071 -14.8137 -710.234 790.079 -41.5679 746.989 -705.421 390.909 -390.909 -6.02496 861.312 -120.938 -36.5048 28.8291 551.382 -580.211 610.634 65.4234 -73.2235 16.8155 -175.895 3.55437 497.59 36.6611 58.5772 705.155 -634.885 220.092 290.716 -290.716 -15.4543 12.6596 -534.015 -296.503 -353.037 10.4119 5.28023 778.274 -308.387 -58.2366 -779.389 843.031 -205.749 209.795 -838.004 72.6169 -43.1748 -38.9134 359.995 -20.5818 210.105 -227.09 -19.3624 804.49 -785.128 54.6474 862.707 -850.293 175.121 -359.351 28.7633 26.6513 464.873 -491.524 12.3416 -424.851 260.068 -824.202 -26.583 14.4229 -53.9634 847.781 -771.618 -44.7796 -217.591 -24.1708 -31.2108 -33.45 -49.9998 650.907 -600.907 -6.08694 792.734 68.6969 -840.419 47.4692 -90.3812 -43.416 753.659 -728.656 800.635 53.0188 -3.96002 32.7547 -54.9123 -728.412 783.325 -20.9641 -549.044 367.643 -7.86177 -773.323 851.491 -14.4056 -10.5058 497.987 -41.3496 -756.773 830.945 -74.172 620.688 54.4541 12.4279 -13.519 53.1411 156.587 352.344 481.879 -13.943 35.4094 604.818 48.8903 12.5279 -33.9643 29.0751 14.0224 78.9903 -136.86 176.583 -6.9553 678.031 -745.249 -24.531 -884.411 417.516 -601.887 176.611 -574.836 398.224 10.0052 -167.612 571.375 -571.375 28.9238 -248.516 350.702 -478.208 811.304 79.2351 -304.762 316.086 -33.9515 639.976 30.3118 795.588 -591.203 5.7537 47.6486 -16.9163 -849.38 -27.6528 -7.73788 -9.83619 170.754 -50.5356 666.276 893.177 58.6416 68.6223 28.0504 31.4706 20.7878 63.075 -42.3324 -323.664 7.0121 866.263 -70.6744 78.9133 787.789 850.427 -738.253 61.5836 279.95 -287.794 -39.4609 279.717 -282.254 28.7884 -30.8579 -857.239 52.8767 -14.0571 -25.396 93.3785 35.6126 2.7488 472.078 890.645 -818.584 -55.1188 -28.5605 10.4608 658.036 -30.9157 21.3771 379.768 -401.145 -7.62757 49.7507 26.0354 587.915 51.8106 731.152 -428.029 489.549 602.615 -585.054 30.5443 175.619 -0.0494997 36.1936 889.224 -80.5097 37.3492 830.013 79.6015 107.457 -187.059 -31.7401 768.076 731.505 -676.257 -55.2486 -34.2076 660.746 659.383 -34.0205 -7.21252 0.914084 778.232 11.5521 -415.374 404.011 11.3626 -848.439 -788.459 858.364 53.4477 -36.435 773.303 83.0954 -33.5793 31.7141 -23.6794 47.4115 -277.461 -282.201 332.619 -50.4181 -3.22734 50.4022 8.2664 -11.3777 261.847 -31.4079 36.1553 42.2511 45.9272 -683.99 638.063 179.94 8.61156 -477.074 324.902 152.172 585.657 29.7768 48.3089 620.691 -669 4.74206 819.951 243.566 488.639 15.4434 -758.489 72.9631 791.974 -731.816 -35.3507 -624.611 43.7163 40.4703 30.9138 56.4255 15.9784 735.893 -751.871 55.7661 13.4524 883.546 -792.289 537.855 713.346 9.61849 16.4652 274.947 -266.497 20.5959 -24.877 12.9608 19.46 -900.564 926.541 -41.9764 26.6654 -4.40031 610.813 -668.097 -27.8995 -15.0604 615.309 -600.249 529.605 59.7362 -795.696 -531.633 -24.2999 33.4641 178.239 -479.322 40.5003 -27.2903 663.197 -635.907 -20.5983 -788.827 834.745 -765.562 -830.827 -31.3162 19.5708 62.347 839.223 -27.0336 61.1508 230.411 -237.116 6.70477 -358.848 -149.7 -31.7819 -25.8039 -182.956 -43.1338 773.842 -730.708 19.7201 -10.4666 -14.6915 152.852 -90.6995 -637.621 728.32 37.7808 -36.1424 689.615 -626.54 -142.496 -35.1504 463.128 0.816661 -15.2674 54.7481 72.7184 -887.769 37.9706 494.991 52.0391 630.213 46.1821 41.3019 53.0179 -842.394 -20.2343 -857.026 53.9328 10.0575 -821.571 906.692 -791.664 3.50802 32.4032 -32.5614 68.7655 -18.5521 -350.321 708.137 78.2078 -61.1221 624.461 624.631 36.3856 -207.706 40.4902 29.668 39.117 776.698 78.7408 -691.732 -31.2759 67.6232 -73.4763 867.879 256.087 -321.975 -24.7643 346.739 54.3165 -520.818 327.492 -903.612 903.612 -6.89694 342.384 45.7872 666.415 -65.8438 -582.425 -611.183 243.211 43.6045 -36.1786 917.15 -850.818 38.3381 19.8995 -273.547 302.134 -60.2418 -565.377 625.619 -17.0449 220.955 50.1745 16.59 213.385 605.685 44.733 71.062 -817.285 54.5773 -816.434 70.2856 -142.955 690.863 -680.402 -885.021 76.9507 53.0405 -730.571 992.767 -262.197 -800.153 782.484 -769.735 47.5866 -852.038 75.1782 33.4845 218.714 30.4927 790.656 -821.149 705.975 -655.8 -757.901 61.347 48.7154 42.2949 807.615 36.1258 434.542 180.087 27.6815 624.347 -0.507151 834.965 -243.052 703.124 42.6706 13.4779 43.6342 -141.119 1.78771 -734.661 53.1371 35.4352 27.74 412.731 -31.9964 178.601 -812.474 738.818 51.0331 578.633 -629.666 -649.925 -60.7726 739.988 31.0017 711.48 -653.985 49.4886 62.4599 -29.2501 -24.7121 28.2274 -20.4652 -21.375 -50.7714 714.1 -3.76573 -317.153 318.939 788.891 -18.451 -64.2828 -572.176 636.459 -792.731 63.337 61.101 531.799 34.6835 20.3646 30.2351 -750.123 55.4267 -320.829 823.77 -17.2587 37.9966 68.2364 791.065 -819.378 28.3138 -26.0694 -27.193 255.145 -263.726 8.58093 82.3355 779.789 -76.1687 77.7889 407.506 -79.3966 -2.51168 -831.63 161.421 13.3586 698.909 -331.152 -29.3254 574.956 49.2596 -298.468 714.484 -662.445 40.168 22.5192 611.235 46.6814 48.6291 855.721 -588.863 -27.6548 616.518 -34.5646 32.908 49.4311 31.0067 652.647 -619.163 48.0415 89.0912 21.0962 -486.754 -498.185 -784.531 68.2875 716.244 59.6489 862.134 646.541 -582.603 -11.5656 -494.528 -208.617 195.193 403.369 26.8638 49.9463 596.944 144.419 114.375 363.751 33.1209 33.1474 -55.4649 789.641 -719.7 61.7341 0.525718 35.1119 102.877 40.2808 17.3032 95.8102 514.778 28.1908 654.453 -603.728 27.3385 -275.91 277.88 609.317 20.1369 -629.454 -417.977 300.122 32.5572 -248.229 0.3537 -124.669 -298.294 -66.7701 -584.075 650.845 350.764 23.7308 -281.58 283.423 223.526 4.0731 -166.983 -85.0611 -815.438 -61.728 877.166 57.5001 71.3159 809.163 -739.558 693.672 -26.3435 281.051 -278.208 -585.962 641.389 37.0161 -0.0200657 -811.015 811.035 27.991 -843.863 764.453 76.605 -38.8438 -679.307 55.1359 113.056 180.698 -244.162 -2.95319 247.115 -26.5994 652.404 42.022 87.9725 745.044 -833.792 24.7819 39.8037 15.7214 767.7 17.3016 25.8137 746.252 -772.065 745.047 56.1793 2.01407 875.984 311.161 -308.489 -62.7853 47.2488 33.1795 35.2271 33.9334 54.439 -1085.98 60.7206 -28.1631 689.147 -35.159 35.5074 30.3709 -638.924 713.338 26.8163 853.133 -845.207 35.0568 -7.23656 176.52 15.2932 55.0653 -874.134 27.387 61.2463 -794.573 869.296 -20.3202 35.3343 34.8069 -0.675471 -610.021 658.062 35.1911 -26.5757 15.7898 31.324 -220.819 223.745 -255.283 -143.383 -138.813 50.9152 -593.654 36.3591 154.517 -20.1357 -568.696 24.6282 39.1973 -16.9818 -8.82789 59.8879 686.561 -660.747 91.2801 901.487 549.296 23.9863 51.3311 700.014 -751.345 220.862 -214.176 -6.68598 -840.419 458.422 25.4282 27.6281 116.883 12.3047 -28.8338 -802.109 841.055 584.024 58.3881 -576.933 636.821 -75.4335 -814.709 -234.169 234.83 -0.660392 609.863 44.5903 -672.446 429.72 28.3468 24.9425 352.626 -806.233 -509.679 -734.716 26.784 734.179 21.9961 501.404 32.7224 218.501 -56.197 576.957 -712.922 752.011 88.1282 829.102 -758.04 562.87 -573.783 10.9126 91.546 -28.4606 849.964 -863.765 -656.014 809.031 80.1929 714.093 1.18154 -55.8674 829.002 222.726 364.82 28.817 30.512 53.3807 9.53053 197.262 -14.0285 339.024 -3.98168 -335.042 877.176 29.3598 23.9351 39.3065 -52.4921 101.603 3.03787 176.929 -740.882 807.336 198.777 165.553 236.494 -769.734 -286.638 37.8792 -51.776 742.02 10.8895 629.041 21.3896 549.592 1.14135 684.256 -631.171 560.91 17.0328 25.512 551.3 -576.812 -743.081 -32.1124 -18.1306 -28.6273 625.225 -641.969 -318.505 318.505 -9.86933 -180.324 674.75 37.8252 -729.7 710.543 -717.771 475.958 505.011 653.66 418.318 -729.203 -416.095 21.1168 36.8537 211.963 -519.824 -4.58997 -15.301 -841.2 41.6197 617.763 -51.9931 -620.286 6.96877 784.873 1.0206 30.5369 27.0705 533.533 -560.604 372.251 21.4343 404.858 -404.858 8.33148 -150.52 18.563 614.374 -627.521 13.1462 268.37 -810.653 36.1076 78.207 -723.32 9.11671 -682.694 54.3852 -15.6323 -1.73731 -0.714707 779.968 29.2398 450.83 35.3657 193.976 31.8695 -604.949 673.503 566.848 -592.421 24.6622 813.988 38.6815 299.635 -723.883 63.9835 659.9 -300.011 -73.1723 823.227 585.107 677.821 -648.153 24.7189 425.305 22.4721 29.4344 823.225 7.34228 20.9308 14.4455 215.819 -214.894 169.405 214.129 -214.222 -43.6956 475.372 9.21098 30.1846 36.9113 406.617 188.526 -595.143 40.2161 -162.6 53.0005 598.217 -669.596 440.596 318.612 734.055 -671.833 -627.976 513.754 8.84265 598.825 -566.268 -119.536 30.9785 -790.206 -27.4471 28.2993 -352.878 -8.29051 361.169 -59.7561 -751.899 33.9988 18.6511 25.4589 833.867 -761.088 21.3025 729.159 231.654 12.7754 -49.6192 656.471 699.508 -683.53 930.781 -1.73811 184.443 660.279 -607.239 -831.366 -3.96585 34.8894 779.268 58.7891 393.193 -156.71 -661.871 50.661 563.087 23.6697 26.825 169.162 133.717 -27.7021 317.823 44.5577 815.836 -567.834 385.986 601.209 -576.308 655.312 -609.711 18.0404 36.5347 -886.819 522.587 7.41741 847.351 -804.919 790.079 17.7736 8.97235 14.6394 -695.065 636.003 59.0621 725.272 20.514 731.243 203.389 -4.54801 -235.915 635.397 799.23 631.498 -587.782 410.48 -161.681 -284.725 42.1868 767.675 311.932 -310.202 -231.647 -843.054 863.427 19.6727 815.931 -744.343 45.5189 -318.052 272.533 16.0899 12.4095 26.2043 -744.915 53.3234 37.0834 178.656 57.5457 -688.573 11.8987 610.096 -555.031 -163.148 17.4704 249.643 20.89 17.8891 493.299 -511.188 27.4907 572.871 24.9214 -798.808 8.47178 -362.582 -5.06327 81.6994 23.9401 843.139 426.226 -22.1022 -568.026 627.762 29.4164 20.8976 422.479 -137.082 -640.026 84.1338 555.892 -863.14 635.172 -594.21 29.4641 828.368 -6.93715 -821.431 -258.359 212.005 176.621 -2.3196 -11.7972 520.076 16.379 -837.666 40.4996 20.6551 -649.423 58.12 -84.2651 848.319 6.46756 29.1088 -774.729 -628.24 -167.491 446.697 11.9709 11.8417 -578.705 34.8248 -665.754 727.664 611.606 -554.106 53.3996 637.957 -752.415 35.4689 27.1568 579.431 825.995 -783.726 21.6834 -263.597 240.204 10.7211 -390.746 70.0346 789.222 821.557 576.843 23.776 -920.72 190.931 20.4382 -774.992 851.542 797.978 -810.344 23.6935 -89.5992 903.406 23.8021 37.9522 680.59 -718.542 10.2455 466.49 -476.735 19.1738 69.7978 106.649 57.5481 -36.0857 692.705 10.9484 314.692 -37.3015 -786.465 32.0774 -953.22 719.076 234.144 -327.24 360.522 -33.2827 18.9275 -22.2655 43.6773 19.8424 407.237 82.598 21.106 197.844 18.2634 -42.0342 23.8439 663.843 -226.997 10.8893 21.207 389.683 36.2198 22.8799 -360.97 383.907 529.967 18.0331 21.8189 -26.0766 -8.69426 -27.7408 514.733 -485.904 885.982 500.186 -334.583 -165.603 -811.958 677.427 44.7371 775.431 -15.4989 76.3157 658.943 27.6737 535.372 20.3155 14.8776 -467.006 -541.893 367.895 378.504 -551.456 712.648 694.176 -35.2332 188.059 210.424 8.76791 -151.353 -52.6277 661.648 32.3585 65.1659 30.3024 -612.981 791.498 17.5878 -884.475 61.0307 51.805 589.735 539.941 -4.61729 16.7502 -459.856 480.6 663.777 22.4719 -706.866 661.38 45.4859 -623.62 44.1862 -11.8299 378.848 273.305 -213.548 607.497 -393.949 5.57936 24.9973 12.5255 193.317 -215.336 -437.675 457.08 -145.63 -6.87972 -782.983 824.122 779.365 62.6632 23.5559 668.888 -215.641 8.92389 21.5142 23.2254 5.52249 -0.21676 284.763 -284.546 -35.9947 -222.364 -0.0993142 8.14974 -221.194 667.764 -446.57 644.186 24.6433 632.878 -405.616 -227.262 92.7631 675.908 673.638 411.361 -397.628 22.4202 -267.888 34.6967 -3.11731 -258.427 270.36 255.99 -41.0755 -642.914 24.1188 -168.054 812.914 -746.257 34.6622 -6.5523 -328.792 335.344 799.584 -18.8141 -844.025 778.436 20.2965 859.658 15.4433 -183.463 -539.145 344.598 -395.312 50.1697 -635.939 585.769 253.988 -254.829 752.415 -177.505 1.78347 -816.493 15.9731 -771.864 12.2584 -13.6823 191.395 21.9661 -858.926 788.251 -795.393 39.2774 58.5114 581.578 -960.721 -637.703 649.826 431.496 -414.549 20.2983 673.919 504.04 11.6068 11.842 -626.031 23.7429 -422.159 -95.5022 -383.052 404.127 702.322 7.28929 866.143 -143.78 823.915 818.582 16.9494 536.657 -21.9239 -706.078 771.396 10.0658 -754.116 35.4094 24.6901 443.576 -44.6845 -398.892 -714.584 379.752 -594.454 -233.106 691.645 -696.539 330.052 -73.2082 -8.12377 -154.006 -708.791 21.9826 -4.45986 397.851 -62.6602 -748.38 392.363 392.082 -385.899 -713.158 421.42 -408.198 -208.767 6.53914 15.4985 80.0181 -402.32 413.933 -191.656 15.5017 2.62627 -142.498 63.0321 -593.488 -395.408 404.517 10.9649 -963.084 553.737 144.583 -388.779 -16.6205 -404.93 -657.496 41.3774 616.118 -804.789 810.689 11.0103 -32.4401 428.96 -396.52 807.584 75.2365 3.83991 16.57 498.341 18.7345 29.7026 662.379 -692.082 20.9371 638.948 -637.704 10.3138 627.39 5.88813 -557.581 6.64705 692.448 58.3111 -811.522 435.771 -157.108 -183.91 -32.9497 10.9061 943.773 -874.527 1.92841 304.691 509.565 265.1 -715.872 -176.458 7.17682 100.173 83.4911 -183.664 6.54289 -792.871 -627.574 692.646 16.0677 507.549 -38.2381 -186.475 235.561 -561.876 583.265 726.281 -735.093 395.896 243.782 -187.258 -30.2366 -191.758 -23.389 74.6001 628.808 -708.817 40.6174 -0.923038 -588.105 152.993 -9.25704 238.583 11.8749 764.219 -732.956 -6.02054 -178.45 22.7563 231.339 -231.833 167.985 -2.15121 369.868 16.1152 523.234 -588.704 -689.382 13.0973 -590.04 38.7517 11.5416 -888.942 61.1617 3.51051 13.7112 -36.8027 -682.689 63.9995 -581.369 30.5882 258.022 -384.603 11.875 16.6003 -781.421 27.8614 -200.996 663.437 -47.3033 -697.945 -696.172 737.353 187.324 -39.2621 263.487 -224.225 1021.43 -381.942 -639.49 -186.639 765.424 -541.411 255.445 -257.966 -275.369 -23.2228 149.471 -126.248 368.789 -22.5806 -204.84 176.815 671.352 -497.892 9.75765 488.135 -485.617 30.1105 -300.184 769.639 21.8182 -791.457 216.275 -136.906 527.162 -494.44 -70.6719 512.448 525.786 696.797 -655.499 534.798 120.701 45.7653 -185.551 -302.753 384.361 646.968 411.383 799.935 200.065 880.732 43.2012 590.847 820.099 -745.533 -74.4661 414.918 -340.452 28.0801 -355.32 614.086 -576.305 291.915 -269.204 -300.512 -32.7753 -5.73549 -745.463 655.968 -847.925 629.291 888.942 461.952 -452.422 872.704 -622.236 379.722 -370.796 -8.92644 -483.91 -1.09778 -284.525 9.7599 730.443 -683.679 12.7363 -601.318 251.95 -270.069 90.4025 -744.536 -575.085 34.5531 186.454 258.656 252.723 -246.557 -8.09946 406.536 -736.946 803.542 768.863 44.5519 -813.415 -31.5959 -720.276 -715.379 27.5368 687.842 771.042 28.5421 641.798 -630.903 -638.321 408.712 508.267 -468.854 -491.035 530.341 809.879 -743.34 775.023 -860.644 831.859 -795.751 445.732 -164.06 -623.68 701.858 102.632 -246.119 -429.851 467.676 14.3868 634.438 -648.825 -223.55 551.782 -515.422 761.014 -729.423 851.682 779.076 -11.9888 27.4115 320.828 9.12242 670.27 -667.783 830.999 -286.046 202.567 494.107 -39.8931 537.483 -790.681 874.294 -83.6133 753.338 3.32564 -775.263 776.444 -101.012 866.598 812.414 542.95 -507.759 610.244 -571.127 13.7682 -197.957 154.583 43.3736 152.709 -198.393 45.6835 191.143 -229.148 38.005 186.653 21.2933 -233.007 189.216 43.7912 -173.591 133.962 39.6289 202.118 -231.066 28.9472 23.4707 -197.604 33.9336 -199.026 178.728 20.2986 -187.592 214.957 -27.365 -246.059 205.742 40.3166 -196.082 153.848 42.2343 -166.852 139.857 26.9947 -162.107 195.107 -32.9997 -199.337 213.303 -13.9658 -221.541 253.918 -32.3772 219.821 -208.141 -11.6799 218.955 -194.986 -23.9693 162.049 -206.384 44.335 194.916 -230.16 35.2443 148.178 -177.767 29.5887 -210.016 216.405 -6.38818 -218.479 172.439 46.0406 -171.425 203.052 -31.6272 -185.782 208.374 -22.5926 -190.644 173.031 17.6128 -225.632 193.398 32.234 204.772 -176.386 -28.3853 140.101 -168.362 28.2605 159.721 -176.556 16.8356 -191.438 217.743 -26.3052 201.805 -168.251 -33.5534 215.457 -190.246 -25.2101 -176.714 207.609 -30.8955 -181.153 19.3585 201.295 -243.522 42.2277 193.17 -196.271 3.10081 -175.834 196.96 -21.1264 -200.23 155.021 45.2084 -206.94 216.086 -9.14606 -199.551 189.39 10.1605 -189.761 152.949 36.8119 139.112 -180.099 40.9873 204.982 -188.969 -16.0126 -205.551 198.993 6.55785 36.2179 492.553 -366.467 -853.026 193.315 0.288476 297.584 167.278 -579.547 37.6094 704.332 137.332 590.134 -569.254 208.342 -333.011 10.9936 9.94792 -362.826 -726.901 765.561 -0.512162 726.178 -680.946 -681.848 32.6148 -599.868 575.144 -169.257 551.662 239.939 -239.115 485.026 -552.837 29.8918 396.51 -366.579 -29.9301 12.393 643.163 642.922 -18.9009 -522.095 66.0477 -436.579 473.433 101.282 612.818 13.2627 653.485 -605.836 -59.0681 -418.492 453.382 7.07476 466.508 54.4201 508.43 -492.64 183.494 448.388 -165.721 -495.416 -645.305 47.9012 597.404 33.0768 351.125 -633.247 691.825 268.392 -277.101 179.565 711.6 847.531 -532.977 572.174 640.138 -416.331 456.547 470.892 27.4498 -17.2604 -650.366 433.339 -5.0409 -383.97 386.02 -13.9157 447.118 2.49404 6.37993 -662.276 655.896 819.295 456.324 2.87476 444.545 3.5909 -448.136 31.6883 444.964 514.747 -516.322 1.57494 59.2892 434.817 29.6971 4.25936 47.3519 5.45786 676.238 -471.662 511.466 622.819 -2.1751 -803.566 -179.017 187.628 579.854 499.431 1.65553 -230.401 220.324 -178.157 389.505 -22.1878 587.13 -665.955 28.3343 -287.771 468.971 -10.808 -18.318 -437.403 481.538 -173.075 -308.463 487.662 555.755 -33.4607 -25.8046 -696.951 579.546 -6.73481 -732.024 750.05 28.953 -588.382 543.918 44.4641 170.893 -803.006 342.403 -755.088 813.08 -788.021 -474.416 516.438 633.045 812.731 -743.821 735.006 -670.02 1.1462 822.321 -804.28 -290.551 -40.5044 27.3851 418.408 -589.162 39.8731 783.012 -740.818 600.741 -22.2949 -578.446 517.137 367.014 -784.841 720.218 259.014 -268.2 765.523 14.3435 -10.9586 431.232 -420.273 -127.326 16.1431 -540.401 -669.955 807.256 14.6339 750.67 -765.304 -932.733 932.733 101.586 -28.4367 567.158 -59.6988 517.52 -457.821 -101.544 405.591 -304.047 -16.3193 610.068 -33.9578 -645.899 689.533 616.573 -594.613 -21.9597 -19.4613 -560.75 19.5449 -495.998 520.716 -468.863 -6.63003 208.17 139.42 -360.807 461.254 -478.429 547.933 -530.253 -17.6805 160.639 -576.367 539.087 -9.63459 -648.829 6.92408 641.905 288.698 -8.74813 -8.07638 510.703 -454.854 22.4854 459.571 -7.30736 -8.7642 481.322 -616.994 670.136 62.2842 670.019 -674.655 148.499 -672.375 -443.312 -294.13 632.933 -20.0736 174.03 53.4913 -0.771789 -604.835 -8.96437 -165.889 196.051 -30.1622 491.902 -11.8475 -6.99911 -462.541 616.806 5.18448 0.431311 0.608817 205.281 15.5814 -172.649 470.233 4.84133 601.521 -541.543 562.221 231.735 -234.334 2.59905 -432.382 -94.3957 -510.573 -550.058 46.3931 2.00823 450.169 -428.866 231.203 -11.3517 550.058 -189.666 201.541 -391.023 576.782 -185.759 783.95 15.3952 13.5544 -42.5807 201.089 -167.094 -33.9946 615.274 -584.73 250.063 -424.952 9.93127 415.021 37.6892 368.206 -54.5473 832.779 36.2656 429.153 814.297 -772.568 -278.807 275.024 -444.448 645.007 32.4962 17.3944 439.198 -43.3541 487.154 -145.979 18.786 588.188 -5.3749 15.9359 392.776 -71.5406 846.564 -524.646 -744.544 769.481 493.826 -674.045 728.794 -662.396 700.882 -404.158 730.778 -94.9301 440.687 496.693 -471.199 -2.81286 -757.156 805.147 -47.9914 -12.598 192.164 -48.3133 226.198 -843.543 48.2429 568.556 -616.799 487.949 -759.19 833.453 -5.0846 463.915 438.487 -423.848 785.395 742.78 311.302 -24.0908 -797.058 29.2716 396.814 761.296 -699.248 402.186 -19.673 29.8602 406.601 -352.91 -35.0734 387.984 -374.639 404.055 -349.301 -165.261 602.131 -663.767 -6.45776 41.4595 539.397 -512.01 -601.764 631.653 -29.8889 -705.546 32.8473 -580.12 569.209 10.9104 -131.735 80.238 -746.847 3.76659 614.217 -573.717 795.362 21.6458 -781.63 -391.901 411.574 -515.172 21.3261 726.357 431.303 -527.172 -532.468 544.605 4.7584 327.86 -642.565 21.594 395.476 822.396 -778.504 -130.1 396.053 -676.971 -141.146 -74.1817 65.8229 711.449 53.7221 674.84 -618.447 383.903 -364.976 -193.439 203.504 39.4111 -633.624 51.1983 582.426 -274.754 69.0006 23.0728 -189.821 -372.744 400.234 446.329 -160.363 585.853 48.7176 612.028 766.867 -289.746 -10.7079 -781.39 17.7998 -355.448 375.29 805.143 -0.922482 426.497 -865.28 218.582 4.99473 -223.577 590.883 -369.459 -136.933 988.969 321.945 -301.156 -553.405 580.077 -26.6725 772.619 -751.212 -32.8478 -606.697 656.128 -9.33207 7.53886 694.858 -639.751 -651.536 434.28 -20.4503 -556.361 -595.336 44.5251 -220.118 229.24 721.208 530.294 -505.351 -342.483 365.363 -135.729 269.339 -432.206 -246.664 448.986 -202.322 560.872 -525.76 -424.569 3.21749 -542.652 590.063 732.358 -689.502 627.483 25.1647 56.4027 373.033 819.072 -776.987 -687.554 -412.16 -13.9621 -798.294 15.0983 783.196 49.7747 46.1071 -620.894 627.274 242.008 -251.03 822.353 -60.5553 -327.766 -784.49 -527.494 24.8981 -10.8647 -321.092 -510.091 5.65008 607.228 -1.57091 -182.607 170.009 396.218 -375.78 509.143 239.262 -204.829 -34.4336 -41.4388 -401.26 422.158 -609.677 11.5407 -297.097 327.4 -817.475 -196.068 551.226 808.651 183.736 -285.905 8.15584 -591.666 202.214 -6.57374 596.54 7.86142 -426.819 409.879 -323.277 340.027 816.198 -312.188 334.007 -384.45 408.143 -531.643 556.99 -922.75 81.5971 46.4937 -716.999 -469.042 13.592 -23.6423 -300.501 -0.459379 527.011 323.77 -287.235 -816.198 -600.478 -780.157 23.0348 757.123 13.5833 -765.653 306.785 -285.271 402.841 312.208 -287.21 -684.657 35.1307 649.526 -2.7937 284.408 773.886 -753.664 -719.291 -410.88 0.954112 -635.819 10.7777 625.042 -0.527284 217.677 59.2006 -245.971 236.639 -399.334 0.96973 563.425 -673.812 720.447 -305.496 311.075 -391.003 2.82457 12.6187 -16.0493 -664.628 -272.056 294.022 25.4045 35.5579 673.432 -696.766 -17.3841 -186.572 -281.731 306.375 -523.918 547.694 670.716 -644.051 1.5239 -380.063 -748.624 -173.138 -135.526 -257.86 294.943 -277.218 301.337 470.808 -960.157 -3.69926 -353.564 -652.683 -0.452026 653.135 -320.794 342.777 17.4961 156.193 247.484 485.617 -359.12 -556.365 24.9214 531.444 3.79833 -572.147 -281.71 316.373 294.863 -13.812 593.909 64.1528 5.21563 112.397 -590.363 -493.709 531.588 5.09768 -785.753 -485.479 156.007 735.877 -675.203 -476.491 612.071 9.34811 797.5 255.776 312.358 -295.788 316.771 -314.145 -759.704 713.919 -6.60028 787.582 -49.8052 -193.573 0.340483 -368.377 841.467 -5.98396 -315.443 -11.2338 378.248 -20.696 324.045 376.755 290.406 -452.371 -27.2728 254.797 -553.677 546.346 591.693 -259.978 282.735 -281.74 282.349 -355.785 371.852 -5.67848 -310.13 317.307 -29.9229 339.477 -263.606 -491.02 511.335 507.214 763.176 6.52843 -769.705 11.6301 473.987 -2.13542 -793.059 715.352 -702.47 -210.086 214.528 -3.50119 216.352 -212.851 -165.324 -295.672 460.996 246.568 823.628 641.827 7.83368 -36.9544 4.54666 740.299 -8.74434 266.158 -262.648 612.999 -580.077 -718.708 5.4449 19.2559 259.884 275.685 8.88896 -779.851 770.962 -67.6902 616.692 182.089 203.839 -859.913 -614.873 648.337 762.595 -2.80398 4.78888 -702.267 666.184 -4.63557 -62.6723 -245.867 262.467 825.747 -795.047 507.669 -612.464 104.795 653.558 678.321 -623.674 -846.794 213.601 -128.19 782.742 -9.18722 652.637 -75.6804 -539.409 58.3402 481.069 54.3574 517.415 631.076 -22.5743 255.569 -229.445 209.487 -174.655 -34.8325 7.08042 -753.851 746.771 -42.9759 312.093 -34.5876 254.785 -18.1827 -236.602 -73.0859 -245.584 -37.4334 306.628 491.285 15.3888 -2.91336 -357.247 360.161 12.7175 -0.264839 -689.928 -35.0006 294.258 22.2512 44.5041 632.79 -205.041 -462.756 480.529 161.109 8.95923 -5.22102 202.895 11.0399 790.564 -775.038 210.853 695.204 -193.767 218.18 694.994 -220.734 175.87 44.8637 -12.4608 -615.06 268.702 -13.9026 -26.479 278.337 18.0266 -266.34 625.674 -628.245 401.353 -155.73 -270.898 -246.568 -19.3505 260.722 -553.237 -651.119 13.6353 637.483 -8.16685 -649.345 613.223 36.122 65.0192 -674.018 10.7288 438.304 -150.028 454.693 -46.0463 -147.32 -285.092 352.611 -514.136 -497.258 397.239 -174.706 -3.81415 343.867 -11.776 509.21 -499.766 4.66776 -565.485 -27.4778 238.368 812.331 -802.716 -614.884 34.8069 459.388 453.921 -445.153 -353.351 -3.2298 -669.39 24.9887 479.353 -458.664 -40.1093 6.64927 -29.4401 308.796 253.549 -8.70995 -719.257 748.181 -793.93 -2.83271 796.763 310.567 -457.072 -10.9212 74.7831 552.264 830.761 -14.6872 -816.074 -195.27 -560.982 -285.931 471.595 -451.084 -564.344 11.3782 -480.313 -61.2533 3.00733 628.077 625.581 -608.278 -548.988 589.269 -731.639 -827.928 53.849 -503.555 449.706 669.316 -616.297 200.996 5.20988 322.09 794.738 68.0868 -862.825 -177.454 563.102 850.099 -61.8476 642.589 -589.571 -145.886 496.588 514.625 442.082 -422.57 696.074 -677.586 36.8657 327.061 134.397 -158.418 -560.758 598.754 -248.898 812.942 543.541 -515.55 -364.585 162.805 -97.1222 -37.3511 335.832 -58.0252 -562.073 -11.7102 653.388 302.32 -297.562 748.534 -448.156 505.892 543.103 -178.377 763.35 95.6359 202.681 581.786 -427.518 -17.5495 472.009 2.34211 -30.1359 283.917 285.688 434.606 -437.836 -279.959 -185.52 453.005 -438.358 11.6804 -609.758 625.051 73.3726 -175.379 789.834 -529.048 562.169 -496.594 -28.2831 204.96 -169.846 -35.1146 244.447 -405.934 -441.494 -257.046 262.262 65.0233 0.342545 -781.85 -601.854 594.819 7.0342 69.8494 698.086 -744.386 -18.8951 739.839 -734.559 26.4457 248.698 -330.772 504.532 -173.76 365.373 -341.642 9.50705 -592.579 645.456 -21.5011 -266.026 444.124 -178.098 403.298 -386.397 -594.006 572.254 2.07234 36.4067 701.291 -662.218 80.1667 661.803 434.531 -422.273 -153.306 41.9265 -478.196 43.5069 434.689 34.4311 -820.702 9.73085 -583.729 519.909 -549.595 -189.33 545.575 -15.9305 232.684 -216.754 -64.0017 -590.603 -343.168 -135.678 -369.683 -552.794 29.1647 -571.141 211.491 52.4602 228.951 -393.114 -49.5467 450.198 -400.651 -276.494 710.079 79.5626 -634.05 -60.1106 264.186 -252.31 56.394 -537.629 -658.597 629.754 -41.1461 577.803 725.213 -678.114 -209.311 -294.855 -482.387 491.598 48.4442 804.248 -538.875 -7.25922 -493.288 -5.97319 499.261 22.2877 -374.03 383.903 -470.514 454.626 15.888 200.188 255.773 -25.999 780.368 -767.84 -3.9211 -349.539 353.46 25.0051 -501.72 480.082 -457.341 449.35 488.816 401.053 -380.163 -23.1835 -783.681 775.148 656.032 -21.812 -394.056 3.29947 -176.304 -802.963 794.135 2.28993 -528.985 526.695 -217.001 10.0496 206.951 -53.7386 -7.37939 381.363 -20.0937 228.89 7.32086 231.782 534.841 852.694 -798.057 194.255 122.68 294.87 -436.93 465.962 -424.158 -781.596 126.362 -607.31 657.48 -22.629 896.923 394.096 -183.561 19.7244 -14.4447 -108.028 221.084 -16.3496 256.922 275.714 -583.466 -485.627 -26.1838 258.258 -760.424 523.782 -175.198 -9.69429 855.961 759.279 -719.132 564.675 2.58638 -17.1449 720.78 -674.437 15.0734 235.168 388.376 -382.488 563.781 38.9551 -602.737 -216.901 210.215 323.822 -289.989 344.5 205.125 -169.823 -35.3021 664 -683.541 -8.1299 -552.091 596.805 175.379 623.497 461.747 588.261 -563.339 282.321 -448.921 282.838 -706.954 726.674 4.37559 621.648 427.928 768.47 -50.8131 -630.635 -93.1766 -191.249 -704.698 720.087 -329.679 458.818 -475.321 32.6083 615.615 -648.224 -737.382 756.006 -762.308 50.143 -3.425 -563.202 -1.74479 290.829 -285.666 274.314 -546.496 569.076 -183.09 -682.423 717.833 -802.377 -221.166 24.9768 -559.14 593.965 -347.244 -774.871 806.689 -31.3366 -380.605 724.594 421.849 141.823 -16.5669 -354.553 371.12 -476.919 -627.221 655.448 -515.597 -356.692 285.327 31.6877 -553.745 487.514 -473.068 -866.433 278.742 214.334 -10.5 -474.829 227.013 6.98612 -11.0233 -587.534 628.835 -389.479 441.891 -892.175 670.673 -642.623 -409.91 196.744 -179.576 -17.1679 83.7005 -47.7868 -445.195 486.364 347.535 411.684 -173.592 155.961 17.6306 452.123 -47.3954 10.923 -327.993 -819.264 9.91173 38.2751 240.28 278.447 223.293 -453.826 490.738 760.278 -773.914 -680.033 675.787 378.556 -127.016 -601.364 639.024 -641.344 576.18 -557.784 797.507 -811.45 110.393 137.082 -232.254 -9.16126 292.637 -691.403 189.475 -7.42879 577.325 23.0137 -600.338 747.914 -717.111 563.447 39.4741 -602.921 -872.848 873.769 -0.921259 204.27 -429.029 18.6998 -238.306 -138.888 439.01 223.818 -508.022 -760.763 -665.039 715.307 68.1505 776.725 -748.016 745.421 6.85474 597.171 -604.026 432.186 -392.108 374.915 -371.29 614.911 -638.432 707.355 34.0287 -212.302 701.901 -172.024 -424.987 667.264 -680.783 356.842 -365.133 -678.275 671.836 110.235 -212.556 102.321 551.11 380.961 -570.291 -287.527 268.375 19.1519 -567.479 -636.926 -402.872 428.331 -2.12604 -785.75 -12.5704 205.877 -170.473 -35.4037 296.58 84.2475 1.44741 363.926 568.722 -596.376 -346.723 319.992 26.7311 -489.954 511.071 -636.446 649.924 18.4161 -249.792 231.376 339.23 554.23 314.799 4.14039 -10.8192 264.77 -421.891 -447.503 284.491 280.647 562.608 -237.736 -15.1978 23.3088 -177.309 164.371 12.9379 483.138 459.198 -448.249 92.5869 382.808 -412.472 79.0775 -533.476 454.398 203.796 704.343 432.628 -505.136 25.0953 -345.844 -71.2284 -238.296 977.114 29.185 618.498 -1.67684 -516.277 562.019 515.597 693.231 -709.141 18.5604 -349.998 -554.537 592.146 -385.571 562.182 38.1023 -592.639 4.40717 5.9956 -721.404 -12.1419 -259.356 436.275 -165.026 -271.249 775.36 -361.793 -8.16615 369.959 -70.1979 577.867 693 32.7594 -725.759 -812.896 -497.667 534.683 -12.583 -395.027 246.727 -387.287 545.183 767.954 -833.461 31.2072 572.83 -554.564 -11.2086 182.78 -163.448 -19.3313 608.446 -196.762 559.311 -39.9994 -216.376 425.433 -621.501 589.324 79.7787 96.0637 -175.842 599.481 -570.664 15.5762 -33.4329 -666.566 0.744743 -512.624 13.8661 -718.564 -294.467 -168.202 462.669 -267.22 289.69 -15.3964 779.606 -753.805 -32.3501 53.8387 600.478 286.808 329.432 401.927 277.521 -476.72 -9.33057 168.777 513.551 -499.858 275.42 -317.115 285.843 -294.591 302.046 34.3767 691.566 -249.675 -786.93 -19.1376 603.32 321.549 -326.77 -585.381 43.0575 530.218 -495.161 -35.6001 -998.488 462.111 536.377 610.5 771.246 -20.4156 733.699 205.996 -11.2509 14.4478 -385.244 -823.536 830.065 223.595 -261.043 64.2631 -855.641 -462.115 478.205 -772.771 -758.215 569.013 617.296 -581.683 -302.031 -168.473 -30.2848 -22.48 -458.527 -324.24 182.538 -226.242 538.128 -506.804 -771.246 -10.064 10.2726 -314.401 414.33 -507.142 -35.1661 308.889 35.0239 618.223 -196.374 127.05 -19.4859 -253.81 -679.2 -23.448 68.8583 -676.168 -26.1917 319.957 -493.032 23.6247 -570.107 418.754 666.77 -634.01 16.6854 -714.215 697.53 347.42 -510.02 105.041 -383.145 406.989 220.34 -55.8038 -164.536 -5.73382 224.316 3.68002 389.542 476.261 668.76 293.368 -310.918 -207.521 632.953 -197.155 578.117 16.15 6.05611 10.7121 573.463 -277.287 253.869 11.912 72.8382 -538.769 354.859 -587.396 -170.004 72.3142 426.422 -609.886 9.50988 222.805 216.053 -223.517 512.604 -614.893 189.569 5.72221 682.672 -286.777 -489.012 327.331 560.852 -527.944 -502.231 282.025 -436.383 707.311 120.657 679.278 460.255 -299.957 -160.298 -983.54 -108.711 644.305 -604.137 347.476 -507.547 364.592 16.0542 202.126 473.055 -3.98988 325.539 -803.118 -556.684 370.208 -445.323 183.232 -394.244 320.052 -393.26 -193.538 -281.105 474.643 54.1146 677.745 -656.53 686.724 278.087 293.587 -347.551 -465.107 363.563 14.7958 -357.799 34.2113 -387.122 -51.2292 619.785 374.733 -561.372 -502.002 -496.486 -292.958 -161.469 454.427 608.307 -593.013 548.395 -170.609 912.455 -437.26 45.493 370.517 648.237 32.3778 -684.075 884.141 -43.3092 -464.425 484.247 182.719 389.968 65.3287 -47.1448 -237.075 261.486 -226.066 -283.214 52.9253 230.289 287.191 -794.196 236.015 -244.313 440.589 -648.109 -302.629 291.708 268.326 -305.006 857.85 -331.354 -3.68797 -789.39 -214.256 -24.0505 -458.679 -37.4707 47.7886 628.378 356.228 -378.809 30.369 -19.6959 253.584 41.5451 -600.685 -328.197 296.987 22.5309 -180.532 -287.516 468.048 -10.245 -204.383 -477.485 -492.849 982.159 207.43 298.805 -28.9867 786.109 267.135 -275.212 -3.59575 267.917 -515.333 542.15 398.791 -595.946 707.786 -739.483 759.054 585.201 -560.572 548.558 23.8526 -67.6667 558.065 -183.332 578.98 -519.918 777.591 55.1874 63.8799 310.487 -334.313 516.792 -517.656 527.991 -16.8337 54.9305 -294.626 -158.247 452.873 227.942 362.779 186.347 496.695 313.661 8.92271 -19.9399 376.168 -60.8387 722.219 728.183 -196.352 -565.885 -123.029 -175.981 -20.983 -449.442 227.635 -192.191 13.8245 178.366 5.262 -299.247 -653.675 28.3095 -282.346 954.229 -368.044 -30.8105 -30.1042 -68.7958 -302.749 460.137 -157.387 454.335 515.034 236.522 -273.027 841.135 -837.095 31.4391 -476.82 -309.473 44.4439 -810.097 -524.771 383.427 141.344 -266.062 232.795 199.854 -230.109 -215.621 202.007 -524.057 455.771 -434.84 200.505 14.8745 188.701 -218.338 697.49 10.7207 736.345 -724.793 25.2355 -391.815 -533.925 788.485 12.3798 -227.182 -209.919 2.6112 207.308 527.293 -499.665 185.089 -102.681 -82.4072 741.803 -638.318 678.268 -690.272 1.2969 -345.378 -507.537 -436.525 -583.322 8.93073 275.001 -308.965 638.802 -638.109 911.954 -780.133 -355.824 350.397 7.09595 183.656 -430.32 -573.509 231.525 -273.857 219.826 -259.287 366.982 -283.928 -31.2662 315.194 -88.4856 -763.023 -253.736 225.176 214.451 6.92641 -254.1 222.692 624.163 -608.955 -295.29 -149.557 444.847 -254.611 220.591 648.39 172.534 -184.602 -35.2731 294.155 24.6708 620.71 110.138 -211.59 -234.476 209.599 395.99 -225.178 -20.3781 255.322 -237.88 -257.916 247.41 237.859 -262.39 359.504 -505.391 397.81 -434.218 313.301 -84.2102 -229.091 654.72 246.065 411.145 -241.639 -479.693 24.2349 207.274 -242.425 295.257 -329.821 151.204 -136.014 251.078 -258.94 -4.50506 22.0698 262.938 -174.015 -400.82 -158.425 128.237 -272.315 250.94 62.1448 410.197 28.8109 202.774 -238.952 225.992 -234.119 610.933 493.919 623.338 -23.2582 -328.493 310.042 -451.306 -15.4489 466.755 -249.091 -439.747 -441.788 466.45 -17.5885 178.466 -403.614 273.514 434.595 -414.081 -230.875 251.23 -221.458 -460.483 339.899 238.248 364.244 -373.17 13.5362 220.907 52.3697 326.514 12.7159 -454.988 -229.188 -239.668 17.3038 -631.322 -14.0778 645.4 499.997 312.964 483.709 846.404 -782.141 -0.557565 -793.966 -239.882 -245.762 334.136 -35.9079 -47.5204 -26.7503 -41.499 -23.5136 23.5191 82.4934 33.1733 -36.7621 -34.4792 26.3382 20.4708 -26.2515 27.4965 32.5409 12.8812 -51.3622 -20.1836 5.16119 6.06977 -12.3809 -294.567 438.08 -143.513 29.8718 735.599 -690.163 227.512 324.524 -489.849 -35.4252 -600.513 270.573 713.224 237.394 -240.622 -59.8806 -242.842 213.592 200.597 -165.528 -35.0686 33.5908 196.947 -302.424 274.66 -730.016 267.779 -742.094 -318.515 213.047 -207.054 581.093 379.688 -256.777 -440.771 -178.006 -206.596 375.292 27.0208 -415.189 421.836 304.425 -289.079 -618.153 47.7002 570.452 5.39789 258.986 72.0388 -618.497 242.539 -491.954 40.6487 617.456 -623.467 667.42 227.319 -786.31 342.677 -371.137 372.286 -362.602 -242.186 215.843 145.898 259.874 -280.009 -82.4581 -493.552 497.927 246.819 -238.553 -214.607 -4.70545 591.279 803.377 78.9282 622.638 -254.658 280.642 -237.53 -301.419 -200.818 175.422 11.2478 17.9673 289.751 496.753 -181.2 316.058 -332.891 242.045 -229.084 31.9637 -397.015 420.955 170.136 490.803 100.89 -281.231 303.607 -0.380262 172.825 -138.086 -34.739 164.583 -11.775 712.481 -773.036 244.17 -228.727 -565.701 309.385 -324.686 -648.107 679.577 -851.101 854.573 -459.105 -762.354 -794.719 729.798 1.73526 41.7204 325.901 314.572 -477.363 -426.325 232.787 -299.447 -26.2777 98.0881 -608.812 -266.127 16.9176 -547.17 546.285 -548.023 500.004 -997.042 -202.566 178.266 32.8375 319.965 676.569 376.505 -355.297 302.314 148.768 -77.7583 -659.248 670.213 -509.305 -37.8934 144.731 556.523 15.0149 -247.316 232.301 637.364 -624.005 -447.269 332.596 -331.575 383.568 373.953 -121.846 -709.435 44.7473 759.895 -770.078 -38.5777 771.564 -709.28 281.594 57.6558 602.405 773.263 -76.5399 -84.4216 160.962 319.86 -9.37255 -48.2108 -465.983 484.634 -461.637 197.883 -163.522 -34.3611 211.627 -239.367 62.5634 273.801 189.257 186.92 317.134 -445.318 334.007 14.2743 306.932 -300.214 107.911 81.6627 -189.574 -831.826 -236.521 -35.6877 -700.727 -224.725 622.175 334.167 -316.579 636.137 -351.862 -45.3679 -284.48 282.154 -442.13 322.594 507.226 397.361 -534.765 491.697 43.0679 616.871 -601.15 73.4631 103.725 257.023 7.54291 -175.248 741.632 369.848 -357.322 393.45 417.38 -26.3524 -798.47 -328.571 -510.758 -444.77 -521.724 -702.922 467.193 155.263 366.955 -29.0662 795.574 210.03 -640.935 -142.04 -357.47 376.644 -532.348 -621.555 246.384 -10.6434 -783.912 268.791 197.595 398.976 -596.57 173.022 -175.989 -5.89435 304.51 199.21 -165.403 -33.8068 -644.133 378.97 131.977 -215.57 0.874065 214.696 31.4706 574.791 150.057 427.912 -407.194 -286.342 -528.688 211.974 315.925 23.3586 157.527 34.2254 -8.64344 278.133 0.0718099 -784.833 733.783 -16.8796 -142.266 -95.3227 -162.485 507.895 513.536 210.297 -219.458 778.883 -792.94 -383.396 -439.234 450.123 -154.841 145.198 7.60136 789.782 226.53 -26.0243 565.701 4.66155 -350.154 -213.906 -6.91317 835.605 -77.1796 -89.6132 -72.0687 161.682 195.448 -162.199 -33.2494 498.997 151.259 30.9984 310.076 15.8246 575.386 -549.015 -746.373 -362.948 -555.53 594.034 842.033 177.553 168.104 2.65028 628.549 -636.925 8.37539 -46.6233 -22.8378 281.824 14.2644 322.868 -8.77238 840.185 -214.44 805.177 272.695 16.982 -36.2348 481.639 -33.5699 565.014 -294.232 -567.621 -694.837 769.024 222.437 -22.8548 46.7068 -659.789 613.082 -50.5371 -775.034 772.305 -29.4559 -215.422 244.878 -82.0802 239.682 -443.06 63.2839 -202.8 -216.011 72.1681 -390.519 -324.153 337.416 -40.9734 650.399 659.54 -671.884 180.548 -446.575 -697.498 -3.59011 -786.559 260.11 -418.83 279.765 -268.224 -690.128 48.8156 632.575 184.237 -151.671 -32.5665 -53.7091 821.663 352.615 -486.8 870.307 -55.7791 3.22165 28.2251 -142.443 25.8024 882.814 -181.088 431.061 -173.914 625.863 -295.867 231.264 -172.876 -551.558 593.667 778.286 -553.948 29.888 13.9878 781.374 273.247 -519.73 401.214 -198.29 11.5101 186.78 291.348 -268.123 18.1361 442.549 -434.4 340.283 -830.638 -701.601 764.443 -9.35861 634.4 -243.455 266.272 39.7968 -222.075 -317.935 313.199 47.8908 631.25 280.531 -261.379 427.409 -378.242 -49.1672 -623.83 14.0721 51.461 586.496 -216.206 -165.21 198.436 19.7872 277.362 203.349 52.2201 498.325 299.627 14.9448 -407.586 -195.27 -103.568 -59.1987 162.767 52.7155 185.068 -136.435 -612.289 291.249 -459.472 -457.3 -538.109 584.267 446.332 -454.581 825.061 -188.111 34.8389 340.719 -479.197 -4.61053 642.094 431.392 -494.769 542 223.857 -202.173 234.263 -0.619401 -75.1461 167.617 257.912 -45.9073 637.172 -54.7457 -658.1 647.634 331.161 -324.726 -373.747 -190.062 563.81 361.507 -201.169 651.002 15.8539 305.164 -321.018 -564.075 -10.9984 14.5466 -402.127 305.407 -227.828 -237.902 -23.6109 15.1338 -784.839 -27.4574 581.971 -7.82439 -145.821 176.973 -31.1525 -719.704 84.9855 278.436 -444.017 -239.727 -26.6125 394.907 204.652 545.882 -178.239 739.147 -603.427 322.961 -514.616 -10.7899 36.6161 20.9015 -793.115 781.317 -276.56 398.497 -382.995 -509.054 148.941 273.537 341.287 -508.778 -462.176 -312.415 344.079 997.203 247.211 208.538 -177.93 -803.703 570.462 -656.418 85.9562 -222.299 259.404 -362.734 346.395 -416.243 8.04461 -711.393 -469.75 -703.735 -180.782 -559.299 760.728 -146.71 23.5633 -308.623 265.346 296.916 -69.4039 -0.0766858 314.51 5.82444 -397.88 -15.3249 247.107 -513.584 385.532 421.233 125.805 377.149 -66.5095 -107.333 173.843 -489.703 347.208 848.441 4.6586 328.17 -339.034 2.49355 8.59349 658.468 -638.568 472.454 -965.502 -58.4262 3.49162 -467.847 464.355 250.361 -5.86683 224.368 -95.9553 -80.0273 175.983 -23.901 -644.172 668.073 12.5355 -1.69058 -106.808 -71.2751 178.083 -285.807 -172.096 -330.482 -665.352 -707.316 322.812 -105.934 -74.1305 180.065 -617.138 -148.718 -194.92 422.079 -420.15 692.479 527.527 760.441 -4.43421 288.818 -323.728 173.662 -270.513 -240.093 -124.537 -57.4829 182.019 439.509 -236.855 -366.572 722.859 -24.7736 -739.067 -787.145 270.645 -437.7 -639.953 49.3507 302.852 20.9176 -114.4 -69.4634 183.863 293.802 -40.9574 599.294 -558.337 -33.1798 -25.2508 174.483 334.134 -680.518 55.8129 -32.6709 18.3209 220.776 -239.097 -114.887 -70.7011 185.588 656.592 367.823 -327.872 13.7011 314.171 173.327 -28.7789 231.402 757.637 755.916 165.191 -141.909 -45.2952 187.204 687.843 472.034 -114.498 -357.536 276.846 -437.113 -755.916 -733.622 -421.77 -509.753 -117.342 -71.3833 188.725 336.356 -351.68 318.003 345.466 -241.333 -430.861 576.648 806.402 -202.632 16.5822 273.729 -315.093 -210.592 -831.025 1.49686 213.031 913.21 -48.0867 3.31997 568.934 548.579 -588.758 40.179 597.581 776.901 0.13165 -592.803 -196.257 -367.015 62.968 -534.146 -654.692 285.807 219.168 -35.4324 332.347 5.89495 -187.577 97.9742 369.578 411.284 -7.1661 461.792 -2.41385 -110.441 -79.7164 190.157 667.241 -785.44 -142.253 -287.956 -316.027 277.113 208.238 -155.916 -202.209 -305.93 -741.071 534.54 -772.836 -136.625 -514.905 197.05 -602.131 405.081 726.003 114.431 348.658 47.0343 -23.7758 547.17 -554.43 -221.514 225.173 18.0315 -345.905 327.854 18.0506 30.3055 191.126 -560.585 538.543 -459.466 -279.343 272.035 52.1451 -197.628 207.677 310.667 41.2392 296.617 -330.067 386.534 -536.234 -619.237 -765.202 -861.208 -136.77 185.817 -159.678 -26.1388 -39.9219 -562.815 -6.58392 -326.544 -311.425 284.332 -441.873 -330.303 344.567 662.604 -2.5391 -27.4554 -555.43 -237.707 -437.184 -118.309 -73.1973 191.506 -27.2708 25.7917 -6.06221 -511.602 354.892 59.4221 16.5257 216.158 -264.881 238.576 17.9416 174.04 -191.982 449.349 206.992 -1.08663 -205.905 170.658 -460.151 289.493 411.381 -606.651 -633.21 37.1923 -33.3123 -224.259 197.748 -247.587 216.729 -87.3112 -293.743 -251.84 220.1 -158.904 189.953 183.133 -7.07661 -170.69 -243.585 210.006 -148.237 125.014 -39.5203 -11.0086 -12.8259 19.5942 215.937 21.4157 -237.353 618.694 -595.68 194.626 -290.131 338.693 -173.803 232.738 18.1506 178.594 -26.5909 268.125 174.181 -0.150823 191.341 -83.4304 887.248 -488.857 325.708 283.741 -16.0535 238.491 277.176 -427.686 242.188 -256.594 45.2467 47.6276 395.949 -13.4406 699.428 -20.67 305.962 -303.954 -54.4862 5.38055 308.781 -755.351 -63.0274 383.855 -663.064 653.356 306.906 -262.615 256.528 -561.682 -321.574 -457.883 159.207 298.676 54.1533 807.173 -198.714 -8.56756 207.281 -378.781 43.8684 334.912 -5.78441 -1.67625 265.292 160.033 7.27311 329.455 -147.283 167.382 -20.0993 242.268 -249.48 -126.232 -243.172 211.176 -39.1159 39.5907 293.657 -314.122 205.467 520.707 -255.946 -649.475 -225.51 215.01 21.86 -477.076 168.051 -158.046 -247.423 55.9607 257.046 -256.132 391.176 -340.05 -0.852559 -160.569 -345.445 -324.922 307.663 183.608 -15.5039 -198.489 170.589 -18.0658 168.039 -467.996 195.505 422.717 -257.788 262.53 -545.292 174.881 -747.531 759.959 768.112 614.054 -757.662 -915.422 362.593 -539.051 123.439 -290.421 510.007 -299.043 323.733 247.085 -34.5183 -609.622 -172.341 168.527 -645.635 -170.485 351.813 -4.33725 237.465 -227.846 -363.2 391.28 343.738 -7.90593 -290.702 340.554 35.2789 -168.287 144.608 338.171 388.838 -576.096 38.4698 507.607 67.9902 -61.6417 172.034 344.867 -86.6156 -108.324 194.94 733.295 200.009 -132.59 -521.66 826.692 -2.88494 -213.571 -46.2206 238.281 -224.829 347.244 38.1672 -222.171 216.128 6.04251 469.215 -294.755 18.3719 -184.448 -210.12 582.335 -509.957 371.144 535.701 -98.0219 -437.679 -781.924 773.119 276.539 64.4233 -226.286 782.548 260.407 -240.947 -158.69 211.712 -308.943 -22.8937 -653.275 -166.366 -9.7945 -245.787 255.581 -250.545 -26.6995 277.244 640.59 67.2508 382.717 -610.298 -9.77107 589.869 623.407 -596.961 551.035 26.7682 347.114 -483.222 -328.595 307.899 -87.7764 -3.20177 221.916 -605.245 171.709 -331.808 376.918 -302.478 -681.279 15.009 -240.386 260.981 -215.808 589.224 52.6594 -228.82 204.284 -51.0705 -152.312 -484.551 -403.622 1021.58 135.808 -384.036 -524.707 -15.1988 300.563 -242.232 274.918 354.301 515.703 -403.754 765.525 -780.979 -722.674 -277.307 -869.367 832.377 424.536 239.237 237.4 -69.932 -20.5949 -722.674 387.929 -256.102 860.967 -808.821 692.902 -202.106 195.192 -163.186 -221.738 -477.416 165.785 -173.009 50.8302 309.304 602.578 -565.962 618.467 -5.24354 600.825 217.705 -8.82709 -241.581 307.642 -305.3 -305.723 -295.652 -668.303 355.255 -676.111 48.8838 627.228 -129.6 371.651 -309.286 -153.209 -625.272 693.422 286.413 -317.689 135.393 242.79 -378.183 -533.696 174.26 -385.66 211.4 701.175 329.05 -361.826 -248.975 -32.5569 634.92 -160.339 321.574 293.47 199.67 -583.802 384.131 -3.17667 438.77 295.737 27.7893 207.831 400.615 51.529 610.274 -354.383 366.544 -12.1609 553.007 348.426 -462.924 221.033 -12.863 -658.229 210.035 286.722 466.692 -287.12 -794.566 -889.866 -279.649 0.511679 225.762 -761.731 558.253 112.065 356.641 109.098 294.243 -292.171 666.797 -150.305 -481.119 346.838 18.2376 -69.3592 503.204 40.7154 -221.533 -134.12 286.865 19.4255 24.5164 -63.4763 98.7638 86.3247 -660.175 37.4393 -747.811 135.3 480.833 31.3273 391.53 642.664 -407.023 183.811 -653.826 667.898 -302.567 -157.583 -17.1217 771.277 -194.091 254.818 218.385 -244.462 333.356 -466.92 244.204 -12.8016 -185.997 -46.7672 -161.525 437.888 -134.489 549.328 15.3962 318.74 -304.352 -153.53 397.387 -230.3 -265.079 -394.461 2.55991 -659.954 580.783 -569.871 -184.043 655.445 3.84013 -659.285 440.491 -396.322 195.855 -420.54 261.403 669.367 -633.012 679.719 -545.967 -653.69 457.316 107.693 680.159 -268.056 -570.755 292.642 -877.249 11.9685 -64.3014 650.07 -27.8925 357.251 -387.181 294.132 -219.128 -550.897 -20.4241 -718.803 -583.559 -654.387 735.852 -743.239 529.323 660.837 -658.823 -669.192 289.964 584.867 -168.527 379.359 -12.164 565.216 -265.686 -156.451 -394.112 236.962 601.218 17.2482 -92.5875 31.8262 186.394 465.803 -652.197 656.381 588.542 -358.489 -264.442 -694.768 -159.847 24.3906 -425.428 -169.202 263.389 -233.015 -308.747 24.6053 284.142 -42.7764 -549.644 -661.254 -21.4301 142.048 -695.91 395.623 69.0824 -22.6464 420.456 -33.9635 29.7411 -111.239 -224.321 70.0683 -792.11 216.034 -185.728 -554.465 -771.352 -35.1882 -88.9161 -55.0662 -26.5398 3.04056 81.8407 -128.926 -167.673 -221.64 -338.415 -28.3582 202.895 -8.56717 -2.13322 -140.495 238.347 -434.471 -606.336 -321.163 -16.0623 -37.0072 -26.6639 712.126 -34.5118 -22.9946 -614.686 404.565 250.188 -24.47 -320.466 -535.973 187.362 -207.631 -191.968 6.61253 -298.592 -767.056 831.711 -560.827 231.771 329.056 231.654 -25.8046 634.387 -546.622 368.172 -512.635 96.9518 -458.483 -67.117 642.261 207.595 -12.4029 -171.889 -561.997 -215.309 191.274 -15.7274 689.913 592.605 -5.51563 -10.2614 -34.8356 -411.508 -705.506 606.65 23.506 9.54279 -214.16 251.998 -271.484 0.323135 -2.41174 211.815 -605.764 646.409 -186.827 260.004 -265.144 -40.3985 -194.851 -3.43931 -17.3224 -345.504 -9.01646 493.478 -41.3865 134.489 4.32331 -16.029 269.491 -384.15 -296.368 -465.702 -640.459 295.17 -7.74556 -313.058 594.411 -479.888 193.68 -31.6663 2.38559 -284.835 281.717 393.972 -6.84966 -274.651 287.726 787.636 -784.415 532.222 -530.164 -225.175 281.325 -285.199 -652.718 114.848 777.057 -135.937 602.643 694.258 -791.813 -274.629 235.367 7.48171 231.102 -790.795 -3.40076 -736.657 50.2676 387.041 -395.14 -22.5522 148.354 32.1138 412.761 16.8852 595.269 -209.968 200.24 14.1264 -233.038 -265.167 -579.261 844.428 464.544 334.543 293.386 545.967 -85.6451 497.738 -688.139 179.244 25.348 5.77604 142.197 -211.273 -113.802 325.075 604.266 -584.357 -108.745 -87.1919 195.937 210.091 337.836 -326.842 148.634 45.657 49.85 118.201 -24.9303 -355.466 409.315 -231.04 238.714 -13.1701 63.9596 749.184 -355.726 -168.33 499.99 -292.958 -513.725 176.265 494.937 31.11 -168.902 -592.142 227.221 -322.753 664.761 727.469 265.144 -19.9154 226.866 -228.469 9.1974 499.993 550.599 -79.4766 -6.53519 -278.299 646.706 42.4403 496.356 516.985 -641.472 699.056 -751.813 173.744 -64.9539 -66.4164 -286.59 285.875 116.995 164.242 -27.8464 261.686 -233.84 182.865 -316.373 -613.112 703.843 -412.958 159.238 -52.0656 -107.172 699.352 552.678 735.09 -701.061 -642.114 737.228 107.399 381.315 444.417 -825.732 170.649 -774.988 761.895 -161.033 -603.754 -2.14601 -681.09 500.007 -226.943 413.863 843.928 -779.738 731.564 358.494 -183.769 27.7739 -15.5609 -181.015 6.63153 242.873 -388.852 239.531 161.29 500.01 428.837 427.467 374.894 141.282 -469.876 53.8919 -126.457 -176.735 568.676 -678.503 21.2654 -655.315 17.7282 -169.586 165.113 -63.5436 -639.559 -203.005 -66.9142 269.402 785.223 32.0454 -626.378 465.916 160.462 40.8964 337.604 -6.44313 259.457 -126.264 183.782 -725.115 85.6509 192.211 -212.037 86.5749 125.462 -144.763 -146.438 -445.431 448.923 648.549 853.407 490.843 -446.379 -168.743 182.567 75.3024 288.388 320.145 688.233 19.3189 -585.587 -520.987 141.801 200.472 -462.716 357.762 -502.544 -582.413 20.3406 -765.318 701.774 -666.361 74.6815 591.68 392.757 -48.341 647.222 -432.095 295.013 -588.004 -76.6868 73.696 -672.416 222.369 309.246 -28.3238 -280.922 -254.694 -15.7658 -621.755 590.733 183.769 -71.9603 -631.512 209.353 -696.251 695.992 230.256 -13.6341 490.185 435.877 41.5636 611.995 -78.9862 -447.379 200.861 -16.4184 -276.689 -527.612 17.4757 187.268 -204.744 279.66 -283.255 -183.843 -419.73 15.9757 -605.957 -648.543 710.126 365.487 232.371 -291.159 -233.241 225.142 -196.353 -313.613 324.519 540.1 -342.506 604.259 667.983 -697.981 22.7955 29.0534 -6.45895 -398.001 403.492 -4.73925 183.105 -283.981 72.7073 -33.7812 182.669 605.757 -0.631705 38.8037 -724.168 -804.854 10.8882 -19.7001 658.724 -792.475 -27.5693 -206.926 623.446 187.496 449.351 -266.121 9.07466 407.784 211.222 -740.553 202.108 247.14 -280.909 239.513 335.273 105.218 -623.446 -229.897 225.937 -254.927 -667.038 35.3157 242.593 99.3314 649.574 -659.132 561.64 -58.7106 -735.555 431.997 303.558 -637.582 193.007 579.322 47.1378 95.9417 -808.203 124.513 -591.791 -370.621 -298.831 -247.183 131.483 99.7813 36.9776 147.11 142.992 497.963 -538.106 -23.0662 36.8298 641.15 42.5554 235.373 -147.921 -250.516 -155.418 -144.008 -200.369 697.064 -30.5336 -584.707 411.619 -789.146 -142.348 107.968 571.369 -45.9404 -710.721 -264.489 349.221 -22.5451 481.472 -12.9403 -634.903 77.2677 797.637 518.516 -235.179 -777.058 -92.3094 -559.442 -486.502 44.5852 -250.406 -568.387 -712.879 -18.701 400.563 -568.072 -379.15 373.13 -574.087 347.144 -765.11 -130.843 -383.925 514.769 17.9265 634.478 402.512 -881.851 479.339 -6.8721 443.455 231.652 -37.1401 729.451 359.395 -445.252 837.926 408.368 599.219 573.747 514.371 -277.739 188.438 -616.359 427.921 -247.324 -418.183 153.681 264.502 49.3113 -378.584 -322.452 2.81743 18.897 203.724 -152.204 -51.5203 -439.562 606.253 618.323 -337.878 663.067 93.8746 -788.438 152.962 6.27562 518.496 538.621 250.57 -466.309 51.9466 -415.146 -536.685 735.792 299.479 -221.244 -158.96 -353.41 -130.407 130.407 441.128 -686.233 304.587 -157.478 45.3263 -175.733 630.31 -287.454 781.574 778.746 -768.834 -284.034 329.553 590.759 -393.708 164.464 -591.983 723.469 62.1398 168.41 20.7761 -366.681 -209.509 -172.311 435.62 -534.307 145.144 -371.77 -216.629 -145.953 -391.135 -37.5794 -445.118 -399.002 -80.6979 -116.164 196.862 254.149 -250.076 617.911 -592.934 532.362 24.1656 31.6821 -619.202 -24.8489 896.884 -123.37 -248.306 375.299 -396.229 -3.61536 -351.704 -623.455 -125.845 -166.153 -302.527 -265.848 -485.502 828.137 6.68964 -306.904 -508.979 23.9717 454.192 320.408 110.653 -481.152 -185.091 -858.29 397.392 9.60617 -651.509 -1.33601 145.005 154.554 -13.5777 -383.964 248.438 615.906 -254.1 -18.2148 281.307 -243.032 30.0451 -712.656 487.6 306.207 -181.783 284.4 5.58454 580.494 -253.001 -491.633 510.952 -151.089 541.98 -208.926 7.54172 269.82 -577.517 16.9449 81.1266 469.99 -533.846 -324.654 344.378 705.174 -17.6206 244.94 362.423 -735.47 -125.781 512.262 400.193 -631.07 184.263 610.576 -33.5637 300.83 -300.319 277.739 730.755 738.388 -775.096 -75.4391 -36.8074 166.131 -86.5106 144.947 -393.212 -672.86 330.415 170.696 -156.726 426.047 -271.445 -492.36 158.875 20.9496 -786.317 49.6497 156.348 -629.579 373.739 -356.016 391.386 -4.26023 -306.935 614.884 848.42 -72.1769 -525.907 -320.755 -19.0694 -364.466 383.536 580.51 11.1764 615.214 -378.44 22.0383 -18.855 -126.897 254.783 -127.886 -105.321 184.791 -324.239 330.928 628.349 822.224 209.935 -450.539 708.356 473.614 546.191 347.642 184.604 377.578 602.503 -625.371 9.19889 -14.39 -808.979 -24.4842 -514.401 -602.503 540.565 455.509 -127.966 126.459 -592.47 181.824 -241.749 425.54 -428.229 613.059 -228.388 219.821 -662.105 -101.1 -419.393 520.494 159.895 -175.637 148.041 -936.906 59.6574 -11.8246 307.3 160.747 155.756 -230.139 -42.8882 -697.985 -315.093 -147.24 -344.552 -170.353 -382.563 -26.5081 732.225 267.775 -732.054 -267.965 -736.961 806.696 -811.98 266.629 13.9022 -124.869 170.926 -471.292 -59.3658 351.496 -292.13 5.17455 654.015 612.388 467.787 39.6171 -179.033 169.564 -748.497 -492.362 -642.407 210.979 480.962 -173.661 495.234 -201.659 598.505 -53.5991 442.563 554.182 44.9705 279.296 -241.764 60.1981 -628.585 279.101 -303.272 140.175 355.523 616.409 237.646 -33.1128 -298.695 -611.353 614.714 -17.3094 18.8223 416.69 45.0907 -206.224 715.613 -47.6296 -2.58651 22.6863 851.083 717.304 179.62 461.852 -726.997 -275.657 23.0442 102.1 537.21 -24.6923 573.806 382.927 220.095 -737.365 568.463 249.253 -504.124 196.58 -326.18 -17.4232 309.993 129.018 635.637 272.353 299.628 -571.981 -405.04 -419.808 -389.601 370.531 -291.003 -435.635 -180.966 20.6108 743.832 -329.837 57.5678 272.269 63.0601 -300.958 313.675 -478.263 431.118 -145.416 -25.3503 -658.18 326.211 -77.023 -249.188 -737.216 -326.122 301.358 -447.49 -91.286 -618.199 34.9567 779.448 -278.961 676.597 -349.272 568.391 90.7504 -214.067 -25.0308 -661.715 -577.851 610.209 -576.791 542.664 -161.967 -10.7134 170.66 -177.737 -280.301 283.518 478.853 -22.5907 -126.309 177.117 -93.6257 -418.485 242.532 -378.261 -175.758 605.925 153.363 18.5867 -171.949 -236.305 217.827 14.5493 -46.8049 241.749 -199.124 429.302 -478.848 -249.973 -129.965 -166.72 644.679 -243.544 -535.896 310.775 44.6515 460.492 -726.079 -116.161 -247.743 -159.28 613.744 703.723 -192.676 -264.948 390.753 585.995 -105.559 656.987 626.508 218.311 -133.578 384.301 -319.32 -380.735 -609.652 785.78 -15.974 232.132 -62.8063 710.899 -648.093 -238.449 407.336 153.223 355.55 48.5393 650.88 -572.574 -78.3063 458.396 -149.232 93.4571 36.3848 11.908 -1.83627 -255.134 -166.757 -505.782 -186.835 -318.948 -438.759 816.951 -759.403 633.25 -779.57 313.185 -85.0821 -228.103 37.2088 241.892 279.128 275.333 -21.0378 47.1341 228.886 131.764 -89.4485 544.861 814.068 -403.068 -32.1878 9.70926 -397.324 -260.961 25.196 -36.5279 818.631 -782.103 98.1693 148.916 425.855 222.517 704.048 17.0772 398.387 -25.0117 -193.429 -90.8668 631.417 806.06 0.653189 17.3757 170.253 249.527 -27.4471 -210.605 -184.35 -186.261 240.226 11.036 -325.181 192.708 -216.599 614.823 559.387 26.1844 -212.61 -5.9978 -189.582 -574.374 783.095 283.719 214.887 -359.18 61.1166 88.2113 467.711 -163.208 94.7952 -14.821 175.758 -676.174 654.091 -528.778 -3.40383 604.997 408.637 302.527 -226.662 -11.1684 -667.905 688.203 313.33 -295.279 -629.992 -409.161 261.485 577.738 172.592 -195.183 -59.6331 302.553 268.263 -548.335 -46.5562 547.333 -200.626 -504.399 -631.497 723.194 -630.532 212.787 -227.619 8.24971 -469.528 190.434 278.782 616.315 193.946 -290.077 -6.42602 216.113 -503.877 -37.4166 -150.695 -550.864 41.7188 757.669 -280.891 -111.671 -211.965 -94.3491 50.0499 548.932 298.121 -87.6919 -568.726 338.415 672.618 194.568 -24.5587 781.983 36.6479 -455.161 265.864 323.292 307.281 26.8535 -689.118 -335.73 -194.824 -27.0245 -144.188 -260.67 191.258 -269.904 -198.025 -707.902 67.2432 -188.1 -244.267 -457.114 538.24 -260.506 -394.884 764.217 -691.6 -430.149 193.429 236.452 -5.35029 -82.9946 141.247 -200.963 276.507 -251.102 201.304 -36.9682 651.682 -191.343 -194.533 193.586 260.67 -393.99 -625.181 11.1428 -65.9697 27.3413 -64.8771 632.711 525.171 -240.835 245.264 -506.732 160.741 -26.7791 -122.518 284.55 589.394 42.9558 446.593 -96.0038 123.12 68.0456 -191.165 -273.314 336.207 104.48 392.402 -21.2827 71.5705 -393.962 118.739 -118.739 -473.808 531.37 -267.59 -417.951 226.066 -454.362 489.476 28.4144 -662.579 -621.081 -150.674 241.618 -780.408 -291.064 -23.9672 506.137 -141.432 71.376 -1.84408 12.9572 -187.605 21.2289 -31.9023 -370.363 28.7211 -220.089 254.845 -738.229 621.548 181.269 284.52 -433.693 14.3569 635.533 -194.677 90.4321 -303.044 253.773 -41.8468 160.585 -700.31 189.582 226.662 -105.394 395.342 -35.2328 225.283 -190.05 737.245 486.988 496.548 -135.819 170.737 -118.894 -442.981 709.34 -264.923 542.796 -209.014 0.096298 601.122 227.317 -335.662 -174.358 -40.288 175.207 580.98 -682.893 610.286 -565.039 754.207 32.7175 353.882 -386.6 -92.5562 164.127 -485.883 39.0232 270.222 156.282 519.366 -69.588 690.298 -258.752 229.153 -628.483 603.704 90.4719 -464.336 392.56 -121.681 -357.998 -166.513 -683.573 -201.286 722.616 438.69 -606.232 46.7897 41.6714 -850.65 -10.3725 -701.835 252.451 -302.835 286.806 479.224 247.348 -590.36 632.287 -13.4039 -214.787 -612.929 667.509 364.603 796.291 241.91 151.013 422.733 411.878 -544.468 -719.364 3.47685 169.545 -212.383 -320.458 45.8066 -551.166 550.313 380.737 -620.324 177.361 289.695 -652.865 -566.363 -54.1162 362.912 -308.796 154.674 -207.104 -379.143 232.03 -23.4893 -208.541 -196.986 233.393 298.043 -172.244 -603.019 619.528 -694.141 -714.154 690.252 667.418 295.409 -304.373 -664.065 -332.26 735.807 -387.093 430.14 576.92 196.279 635.885 253.246 196.051 2.6234 -323.716 -38.6392 -139.434 -274.756 -51.0375 593.141 130.766 27.485 -314.72 -398.939 688.903 -570.98 -276.809 15.43 201.652 -95.6332 -116.404 -313.284 49.7309 607.407 325.167 48.1574 47.4714 -370.574 392.783 -372.668 240.933 -651.814 696.318 443.568 71.2772 209.369 -73.7006 -130.84 732.407 154.836 154.467 -561.261 -460.177 -163.291 195.189 125.097 169.513 -581.757 640.716 -9.17672 -187.094 -29.1535 7.44611 316.287 986.081 -148.155 281.459 -626.06 -28.1256 375.343 -126.905 731.117 -261.453 -296.756 208.587 560.437 123.88 218.772 -171.888 -527.277 -215.313 193.202 -139.393 -227.622 405.433 -11.1476 -501.466 -273.766 333.854 -15.5302 36.1907 609.209 -53.7067 640.718 648.15 255.33 -223.357 198.672 565.543 334.012 -45.1764 -164.144 -11.1977 -182.03 502.281 -537.514 352.321 -303.229 128.989 -156.416 -351.792 -793.68 -405.259 -465.355 211.803 -212.463 242.454 715.215 173.278 -142.891 -30.3873 -439.435 -264.299 -716.028 356.581 -160.472 507.13 340.37 287.501 127.563 -518.582 41.9967 -340.412 298.415 -512.224 -69.5689 168.347 -98.778 -181.701 -33.6345 -570.568 -250.881 17.5128 164.605 -126.021 183.578 -156.691 736.129 322.557 -311.521 357.798 -136.058 -33.5281 -746.888 -299.911 41.3896 625.38 -604.426 -215.289 518.447 -3.55372 592.836 -279.455 -364.287 625.59 29.6319 -655.222 131.174 -300.79 38.917 300.861 286.854 -793.977 -875.91 -384.402 -240.475 -18.8669 171.719 306.406 -148.335 194.929 27.4573 29.1349 30.3237 195.613 639.091 46.0182 208.13 -84.7619 475.556 102.311 -238.594 -635.448 -240.133 406.058 362.28 117.045 108.37 -473.481 456.403 2.2486 -260.108 -102.809 138.128 -240.908 -143.51 157.42 494.119 -206.474 -28.0112 -383.558 624.493 64.8699 -644.479 6.61908 743.455 244.309 -276.843 198.872 616.505 -688.893 226.848 3.1431 -687.809 580.97 -144.296 -311.357 650.528 -312.609 470.399 684.392 205.412 -441.672 -210.667 194.33 711.105 -449.816 -36.3512 -191.815 -218.056 215.103 -174.973 -208.442 274.963 297.546 7.63257 425.084 36.5323 -15.9116 383.78 383.503 343.957 -392.848 -410.683 -552.971 61.6605 -280.449 -385.934 -53.39 627.87 -344.444 -47.4095 284.334 522.922 -524.96 -713.592 -473.201 -115.038 486.182 -583.902 466.343 243.167 682.168 -182.133 209.809 -306.953 -635.004 -19.5506 192.215 251.114 -159.13 -515.603 -228.073 -303.116 190.557 -160.433 258.003 -213.106 -273.487 488.878 -474.331 9.79827 0.193193 -253.054 225.208 -642.49 60.0644 -697.844 -346.858 -213.727 416.502 -229.303 -571.682 -276.032 -146.973 368.727 12.7269 -247.175 -398.55 -324.489 24.4038 -628.158 192.345 -201.055 297.836 -311.465 663.704 98.5081 -63.0224 169.671 -302.37 -147.699 339.91 356.041 453.374 -530.345 -690.954 -31.5781 -685.252 475.87 -238.418 -36.3946 274.813 -588.288 -88.087 -328.174 373.835 -192.549 353.881 -321.163 543.547 244.196 -51.8334 193.882 185.627 191.369 -698.27 197.222 213.538 -410.759 -207.469 404.817 -241.962 -207.595 -228.343 -757.662 -723.887 25.9018 87.8943 -462.111 -738.198 777.475 719.79 444.086 687.859 -185.579 -445.955 137.314 -530.702 641.176 72.1701 399.746 -567.767 140.997 -137.671 186.991 293.971 611.307 -117.746 34.2216 -767.765 -6.61817 -286 9.85388 -244.187 -18.8318 -235.268 -8.00655 307.723 -225.599 -33.1534 7.72266 207.852 664.254 -639.089 507.477 -23.3692 -139.84 163.209 -128.513 138.748 362.263 118.43 -0.80835 -381.754 82.1324 -234.278 152.146 -38.6794 277.256 -252.811 -283.085 778.66 731.978 333.788 -175.244 164.683 -77.8682 192.716 274.702 11.5463 -256.958 -173.362 -380.675 -708.862 -33.5001 192.048 108.811 28.4206 197.667 801.674 629.984 270.559 -183.236 203.356 -171.174 -383.283 -16.8164 -270.676 287.492 21.4533 186.224 -262.4 -216.732 482.205 55.4435 -455.323 501.083 -517.875 -238.778 -47.5991 -222.115 283.394 -284.014 26.8557 -175.04 259.014 46.0573 -636.85 -221.758 237.851 530.451 146.274 216.638 -73.4686 -139.087 256.914 -591.083 -209.531 412.554 261.834 187.945 -158.516 -515.619 330.577 -456.485 -194.603 170.198 188.526 644.432 -6.17836 228.857 143.192 -264.416 -330.148 222.083 146.514 -251.417 -21.4051 -274.744 248.044 -185.278 -55.692 -30.9999 333.886 0.776277 -545.619 544.842 -560.186 446.91 179.681 -197.113 534.261 315.965 554.746 216.266 259.537 148.775 -87.3232 16.6297 483.508 27.4806 204.55 359.378 -303.711 323.726 -314.528 310.434 -300.725 -340.76 18.3082 203.341 8.30451 -350.821 -175.688 316.114 655.061 -223.111 0.139055 -215.133 112.006 -485.088 -143.369 -666.822 -362.506 525.458 -322.589 637.705 51.2405 -688.945 -174.649 -151.73 -253.856 -57.437 -6.25344 483.712 -10.2402 -132.77 448.592 120.45 -631.023 -412.861 390.215 208.14 385.321 -16.5941 393.862 -709.552 21.5535 -66.3888 612.946 -13.6465 175.476 316.089 -171.283 -412.183 381.45 -136.99 -636.046 562.378 672.86 252.755 -612.028 348.716 193.616 -624.477 -216.259 -34.1471 -182.061 365.733 -56.5157 33.5962 -168.539 -16.7398 -138.586 -254.677 -324.122 -202.089 72.5268 711.011 -681.727 -7.67558 633.266 -169.669 12.3074 -749.184 271.526 663.88 40.0439 206.168 -185.697 476.348 198.649 -207.826 50.2246 -332.705 -172.004 415.833 -131.283 -363.22 380.974 48.6885 -237.156 30.6819 -51.822 -150.621 -688.784 658.075 -89.6839 -13.0466 604.548 -495.602 474.202 -194.369 188.642 -216.212 -53.2823 -125.621 150.937 -25.3159 829.87 -57.7903 406.216 297.646 479.519 244.239 -270.525 -649.574 -587.957 -447.467 -7.57688 -229.701 -205.982 490.185 -293.444 -810.267 464.435 -10.46 677.701 193.16 -22.9073 -627.104 660.695 451.147 -777.698 779.434 -172.331 669.658 -225.287 31.4647 254.41 287.984 -635.375 443.407 186.167 -84.9952 -17.2989 823.692 215.945 -490.315 575.3 215.155 6.3087 -491.012 -234.761 560.573 194.685 5.95342 299.479 -163.726 -265.164 428.214 416.214 689.913 703.369 -363.381 582.527 366.559 455.793 180.728 -207.988 120.745 -508.251 565.589 108.673 -25.1226 48.3204 -192.275 -92.6899 144.458 -135.499 -107.201 -228.445 -664.223 56.5453 191.129 282.968 -94.2808 -298.637 5.86312 -493.08 418.279 -150.434 -194.665 592.89 -53.939 -183.217 394.369 -273.615 449.479 8.4866 460.77 -698.52 64.5097 551.013 377.94 -638.353 -255.471 260.313 -48.0922 -757.108 -146.118 443.455 97.7559 -670.576 -95.8557 270.682 134.267 223.376 -386.666 198.758 -1.85701 216.96 135.898 -32.3018 -241.012 -40.1253 525.985 397.308 11.2051 -1.7049 692.548 67.4499 222.282 -254.701 -269.77 -345.618 21.9024 -30.0238 -221.134 212.992 -303.422 3.10299 -9.49826 -307.046 453.274 30.6301 354.691 -32.4624 -168.217 -245.868 38.4167 675.731 119.785 -17.0116 654.716 300.982 236.56 -590.888 -18.8228 51.8667 -397.125 -540.507 289.192 577.265 422.087 616.69 -572.1 157.885 -715.675 760.786 97.4711 -656.308 -337.668 203.74 133.928 -182.952 -338.035 192.717 48.9013 -111.929 -268.114 -628.803 -65.5462 631.54 -221.494 229.977 -471.142 -220.258 -232.593 -599.303 -148.995 -31.8477 332.6 -502.469 284.207 -186.319 150.411 279.157 -386.018 348.823 37.1958 450.624 -762.43 -182.771 215.944 162.946 7.74999 -696.109 -198.084 250.047 -409.894 -43.0608 378.584 -272.711 -28.2815 -224.277 -156.458 188.598 145.189 118.414 -23.1956 -457.751 -741.369 613.034 -750.024 626.215 120.273 96.6269 640.99 -369.424 -182.865 -202.536 151.174 -217.439 234.784 167.341 363.618 -573.159 -164.752 -566.167 -88.3249 -13.3091 195.499 -200.849 237.486 -408.994 -50.1108 766.699 -8.19141 -29.2619 639.559 211.45 -288.473 206.028 503.23 -439.23 -29.5913 -354.614 -3.67261 183.551 -89.9764 164.141 25.2195 -295.755 407.761 732.246 -175.134 234.047 -9.95821 535.737 -81.1783 -665.955 226.408 -438.09 608.654 209.737 -182.24 -475.33 193.434 215.569 -250.081 -388.215 423.733 160.878 -42.8291 321.117 30.3789 23.3971 228.217 5.23291 399.002 -267.947 194.002 -107.99 24.2732 -283.252 258.979 70.2559 432.288 -142.795 -863.973 279.079 -285.431 -188.751 498.181 -566.887 166.878 111.218 39.9141 545.432 177.566 -192.653 38.2233 224.845 -30.0452 -194.799 35.1453 -460.551 479.218 789.009 -65.3534 -151.407 20.0184 -69.042 431.987 24.6671 -697.951 718.9 -64.3439 699.585 -16.6499 -370.525 -169.838 -25.3446 24.0396 14.5738 -30.9156 -300.262 425.239 509.873 40.864 -174.234 -47.0175 -16.999 -543.231 677.183 410.353 -48.0907 -11.4873 -181.189 -251.7 -9.44483 577.296 549.499 -576.77 495.972 269.467 616.506 -659.566 -605.903 196.935 408.969 24.165 461.444 -160.462 -248.049 94.5601 676.086 -146.752 12.3525 380.01 22.3144 -3.9967 356.016 -691.689 419.043 237.884 -543.71 389.703 429.208 -77.7254 226.641 166.516 -487.531 -463.027 729.982 734.614 216.752 -248.817 -374.656 -23.4309 -304.243 13.4935 -52.9788 -171.626 -639.912 129.162 236.082 -215.508 -402.523 -25.097 -372.447 21.6954 350.752 -46.261 34.4366 517.15 169.574 8.95344 -196.673 195.051 336.82 -63.8828 448.592 -20.4325 -176.887 -256.807 -187.085 145.586 -36.6768 459.584 -407.717 -462.738 153.03 -430.761 88.7534 171.293 -610.76 159.959 -127.845 628.756 -303.534 -439.95 297.155 462.299 50.9879 357.655 -201.281 -30.978 40.5768 157.69 3.18857 317.485 -111.175 435.836 439.615 -204.083 26.8521 -96.1319 581.039 -20.2908 338.325 -318.034 -276.303 466.737 -22.7869 193.719 -165.619 628.475 44.3774 -672.853 110.395 -122.259 541.168 15.0698 -355.482 29.3806 -440.475 159.644 -442.121 -374.943 214.889 -143.62 95.139 576.803 -148.519 -98.1047 -36.6731 -38.7673 -234.971 480.562 -14.6457 215.741 256.572 -434.67 -10.4265 -237.56 119.902 418.338 -82.2518 373.089 -739.25 28.7296 392.926 -373.985 324.817 -138.246 -4.6445 174.192 15.7641 337.427 652.071 -291.281 -653.221 -12.6483 200.442 -187.794 -351.314 451.572 -119.669 -206.302 104.896 -588.374 113.737 137.397 -428.678 -34.7547 38.22 187.063 454.257 4.63614 398.156 569.636 -308.001 -399.159 468.159 -273.872 -495.492 -186.353 -888.869 104.646 309.509 -223.789 -268.744 -298.734 -245.256 218.592 637.051 -692.563 55.5122 190.408 535.006 610.152 -297.483 323.774 615.638 -242.776 217.745 700.931 11.1045 -678.215 588.766 32.8232 47.4652 29.4209 -20.2592 318.519 1.64781 -691.069 -442.93 -190.09 -347.202 159.714 -125.033 -510.087 -139.166 183.514 277.93 197.73 -191.66 -8.35295 145.329 24.1172 -415.297 -450.556 150.854 -69.9465 219.632 109.336 -26.6845 533.349 -719.705 44.4551 452.09 -496.545 -9.16204 -692.578 -602.139 -529.886 -213.215 -379.569 6.99824 -173.219 403.941 -396.589 -4.36211 -648.859 53.273 477.361 -441.513 -458.73 -0.313888 -449.665 17.3186 189.085 -19.5726 626.116 668.023 7.50622 185.1 -192.607 -468.217 428.555 -41.9396 -73.9298 -261.637 302.501 -195.162 118.18 149.392 -128.133 -659.636 810.49 -154.526 275.281 -627.429 -248.485 156.348 11.6523 186.077 165.713 -494.925 -316.595 40.413 196.694 -166.734 -184.493 540.487 -439.308 381.517 -784.241 759.086 -60.0913 249.619 296.337 83.7929 -758.742 778.761 -91.7286 -205.342 165.328 179.382 -651.999 123.932 -150.711 -425.136 49.751 -315.097 583.27 -695.776 52.8621 83.1513 751.082 -18.6759 -18.4792 378.365 241.069 670.866 333.452 509.756 750.491 265.427 126.975 20.7232 592.998 -4.15049 -291.128 31.7787 -304.941 -366.928 -355.625 -71.3317 -138.558 -17.859 -31.4884 -29.2984 32.4306 439.971 -199.88 -122.666 -235.526 268.349 70.8079 -151.682 3.79526 507.092 -510.887 110.411 64.2526 -660.593 141.39 -401.642 -32.2201 15.6419 -333.465 338.095 -340.567 -33.1523 322.801 317.693 401.46 -226.158 -61.7533 -527.719 492.905 -170.31 642.408 -366.669 125.845 322.483 -514.838 -316.888 -353.799 202.086 -189.205 434.469 31.254 151.565 230.001 -99.3281 -215.102 385.33 -335.8 -196.076 -150.959 187.068 -29.073 408.708 -38.7086 -36.8426 467.2 215.534 176.84 484.616 -412.716 471.056 -33.2907 -711.766 152.524 269.114 167.976 461.852 302.756 -357.085 47.1964 150.507 -55.1617 -604.286 -66.6617 -291.92 -645.651 -599.872 -472.449 -199.769 224.042 210.059 38.8333 173.511 223.653 112.36 428.878 -429.976 -80.1234 382.759 188.227 35.1641 605.292 -301.735 207.574 558.496 -4.9068 264.759 232.003 -259.458 237.302 168.575 417.455 -160.883 19.2055 -270.986 -242.349 24.7592 470.996 282.358 387.3 64.1678 420.047 -247.647 -29.5731 129.594 257.512 208.756 150.588 74.1261 285.6 -350.455 32.4016 529.528 -8.54349 534.307 -286.134 307.829 606.696 256.984 194.025 220.479 -43.6383 504.204 324.154 -169.686 223.207 -71.5064 -341.985 579.671 6.41742 348.616 36.4648 197.218 678.503 -516.985 -203.166 -340.857 -322.796 169.198 -203.406 14.0517 548.251 432.968 -6.26475 228.006 -397.216 13.9104 -587.701 1.29774 586.403 135.309 -69.6861 -661.871 -114.94 -567.621 -336.29 -556.553 9.60892 -406.825 -307.834 -875.965 151.539 482.948 -507.797 -112.146 -275.035 500.622 31.6877 -622.352 273.698 18.0101 -90.7852 -177.344 -46.9593 584.867 116.519 282.787 -16.4314 -55.4357 478.169 -263.427 -17.2459 -627.149 644.395 -37.5569 -754.19 477.803 59.3685 600.267 340.054 -255.806 -343.17 157.652 27.1614 -327.194 300.032 223.426 186.892 -320.705 393.204 -72.4998 -290.987 -544.088 -59.9217 180.627 224.308 -244.567 16.3565 160.587 308.862 184.901 -194.536 413.55 668.762 -56.4682 -277.845 385.442 638.431 1.61926 -621.626 178.648 -434.954 -423.79 -477.322 -366.963 -24.8524 612.767 -624.931 -1.53402 612.426 -656.278 74.4931 249.504 834.523 522.181 598.969 385.557 -225.843 669.311 -595.185 60.9256 548.124 -614.513 40.7453 9.14154 603.284 213.182 -228.909 -538.796 -745.355 -34.779 607.203 191.398 752.673 77.6186 547.201 295.753 174.794 -25.2072 690.65 -408.292 31.7474 -412.488 457.235 -399.584 -166.583 -51.7048 -287.329 446.94 14.4538 -123.217 -180.927 157.414 211.239 -186.48 -154.851 169.823 -185.885 -656.485 374.332 -426.448 13.9594 -86.4788 35.3198 189.201 -744.623 400.948 -6.38033 219.562 177.44 -451.787 429.863 -570.274 665.44 -244.096 -459.878 403.615 0.181846 -403.797 -481.049 -170.23 -35.5591 186.187 307.56 706.441 -445.316 142.961 -14.8326 -420.121 -15.6807 24.2166 63.0884 320.869 257.105 -239.095 337.365 402.962 14.506 123.276 -143.459 360.64 325.54 -126.268 -28.383 -152.544 181.441 -316.992 15.7039 301.288 -323.448 30.7099 292.738 -79.6786 -184.33 299.887 11.9198 391.134 381.771 -319.041 -197.259 249.063 342.674 163.993 319.37 -340.767 191.052 167.897 -10.483 463.693 431.646 402.35 -219.956 214.44 22.5431 -528.891 439.058 216.302 -152.999 264.775 -203.599 -683.905 -29.723 -250.655 684.631 -331.403 175.985 -244.806 23.6327 6.61263 343.908 -14.4688 24.962 -31.5115 -111.948 15.6489 188.307 -203.956 -241.889 -139.726 381.615 425.727 328.063 215.56 -206.011 -227.818 -75.3197 742.555 -57.8912 -227.679 59.813 50.4576 -210.135 237.476 3.14065 601.541 62.0611 -8.74072 424.071 -283.825 190.369 85.995 -307.449 50.3144 -31.9317 -198.673 264.125 12.0676 -48.8125 -510.039 38.5457 -159.684 -100.529 -332.325 -158.42 30.7941 489.592 -216.36 595.308 459.051 176.197 -148.84 -320.126 378.377 -11.0767 181.392 -424.882 -15.8972 371.502 -139.581 -6.37658 365.563 -8.92282 -486.935 142.863 63.9683 -0.974651 1.03861 -0.0639582 207.893 -183.586 -24.3067 -3.7986 10.4626 -6.66405 136.879 -206.143 69.2637 19.1868 -4.49673 -14.69 240.194 -195.859 142.961 -118.6 -24.3601 82.8874 -0.737797 -82.1496 1.83759 0.690894 -2.52849 -213.489 131.103 82.3867 31.6561 -51.7483 20.0922 -136.136 94.3785 41.7577 -0.517109 0.152293 0.364816 -0.608619 0.646568 -0.0379496 -82.4327 107.27 -24.8375 -0.94746 -0.0271916 2.31543 18.0821 -20.3975 17.4116 126.429 -143.84 88.8873 -31.608 -57.2793 149.969 -156.883 6.91452 0.134826 -2.15549 2.02067 142.657 -143.839 1.18219 76.9275 5.95984 209.175 -265.234 56.0587 -119.116 62.9394 56.1767 -3.87199 7.17957 -3.30758 204.619 -127.988 -76.6309 1.96127 -1.96127 58.9222 -77.3605 18.4383 -0.595433 0.637977 -0.0425441 -81.7885 -103.894 185.682 -79.8977 69.2817 10.6159 -0.64776 0.692003 -0.044243 -0.678968 0.80451 -0.125542 5.66097 1.2567 -6.91767 1.97824 -142.114 140.136 -13.1594 75.8493 -62.6899 -56.4526 -79.6835 111.87 108.539 -220.409 17.0549 2.13188 -105.142 89.8887 15.2536 3.32939 15.4387 -18.7681 34.8881 8.00011 -42.8882 -157.729 165.004 -7.27459 -94.8494 112.261 0.89715 -0.149619 -0.74753 -36.4145 167.765 -131.35 -150.273 160.006 -9.7334 138.269 -165.252 26.9836 184.082 -47.203 136.669 67.95 -130.662 140.104 -9.44246 -34.1437 128.454 -94.3106 2.12795 -3.56783 1.43989 -203.717 70.7275 132.989 -0.339183 2.46713 14.4584 -21.7673 7.30892 4.29361 -3.21601 -1.0776 -177.956 137.709 40.2467 0.684669 3.64364 -4.32831 32.7184 118.165 -150.883 -47.2911 -112.501 159.792 156.139 -17.8701 0.0305544 -0.547664 -161.662 11.3897 -0.121404 -1.55379 1.6752 205.242 -16.8564 -188.386 -95.9746 -107.742 -70.7525 82.4191 -11.6666 3.39093 -0.3375 -3.05343 117.018 53.8965 -170.914 -173.97 92.1813 0.60494 -0.850795 0.245855 198.912 -169.154 -29.7578 8.10764 9.33949 -17.4471 -1.92865 14.9455 -13.0169 -1.73096 2.13121 -0.400255 1.0924 -0.479774 -0.61263 201.005 -110.867 -90.1377 2.30654 1.98707 71.5112 -12.589 0.646191 -0.685457 0.0392657 53.2029 -21.5468 4.90772 -5.69025 0.782531 6.30086 -4.22352 -2.07734 -71.8486 1.0961 65.5426 174.652 210.503 -98.6332 -162.194 128.051 0.978875 -0.978039 -0.00083649 -36.0343 -43.8634 44.5131 -9.625 102.39 4.10178 -106.491 2.71463 -3.09344 0.378804 28.4706 -4.5968 -23.8738 -106.129 23.6804 82.4483 107.782 -155.073 18.1309 180.781 -38.8169 -10.0352 48.8521 -6.64157 -4.40005 11.0416 167.214 16.3931 -183.607 115.892 85.1128 -1.17473 -149.586 150.761 3.94936 2.3515 -94.5712 91.4553 3.11586 90.6439 13.7233 -104.367 42.3857 -39.8557 -2.52999 1.05124 1.12359 -2.17483 82.3388 -171.652 89.3135 -8.55494 46.9274 -38.3725 -177.627 8.47305 3.12483 -0.410199 0.644185 -0.687942 0.0437569 56.9696 -206.014 149.044 0.999905 0.0924996 -0.915589 -4.02974 4.94533 11.6953 -19.882 8.18671 -107.228 -163.576 237.83 -74.2536 56.129 14.8235 -70.9525 127.011 -73.2836 -53.7278 -18.45 16.5214 -87.6156 -6.9556 0.240673 -0.836105 -149.369 -0.64821 150.017 1.5218 -6.95108 5.42928 -173.117 10.133 162.984 23.0545 -27.1199 4.06536 24.7652 -10.3068 25.1033 -2.04881 2.25575 -2.71165 0.455903 -0.656785 5.20502 -4.54824 -4.22382 -173.403 165.063 55.5132 -220.576 76.6339 -7.35221 180.511 -13.2971 32.0486 -36.9362 4.88759 17.6387 -23.9834 6.34471 0.932786 -0.0356365 -64.7092 74.2569 -9.54772 -36.394 245.569 12.3143 42.2237 -54.5379 113.567 -11.1775 -147.717 -17.5357 5.12759 -1.05706 -4.07053 182.8 25.0928 -3.7576 0.00393681 3.75366 108.48 -212.373 -0.126789 0.126789 14.5744 -21.7548 7.18043 -218.541 140.75 77.7901 26.0042 2.4664 0.198584 4.83182 -5.0304 -71.7716 15.8654 55.9063 -149.033 147.858 -4.76155 -125.9 121.207 -123.577 2.36941 44.4906 -2.10496 -152.164 4.44763 -140.851 91.1434 49.708 0.169928 -0.817688 16.2554 5.40788 -21.6633 23.3674 -7.11203 51.0916 -58.6545 7.56286 -0.222355 -0.00212825 0.224483 0.565939 -72.3376 -15.9191 19.0425 -3.12338 114.087 -30.2548 -83.8323 -51.4884 42.9334 158.049 -143.398 -14.6506 -0.848814 0.240195 -0.222195 0.0781342 0.144061 -10.5087 -71.924 135.785 -230.418 94.6336 -1.64203 2.3267 -1.73536 -62.9738 -241.172 105.588 135.585 27.6052 130.444 -0.14068 -2.60477 2.74545 -2.74021 -3.23649 5.9767 133.762 -12.5546 -3.34051 -16.6361 19.9766 -3.53549 8.44321 -5.76708 1.89509 -0.48098 0.457282 0.0236974 19.0479 -22.4897 3.44184 12.9412 -10.6258 -88.9428 -7.07067 96.0135 -0.819032 -3.49194 4.31097 2.01035 -2.53432 0.523969 86.6689 -113.422 26.7528 -0.247709 -0.257709 0.505417 73.603 -103.764 30.1606 1.79183 -152.616 150.824 -0.0978438 -0.528098 0.625942 45.6008 16.4191 -62.0198 -7.38834 6.56931 -2.74327 1.33512 1.40816 17.668 -81.5574 63.8894 -1.18756 -1.55572 -123.256 78.0611 45.1948 -0.16953 0.813714 2.12338 -3.67513 1.55176 11.7775 -107.291 95.5135 -16.53 -4.99305 21.523 63.2368 -17.636 0.988409 0.166311 -1.15472 -0.657753 12.2521 -11.5944 11.4086 -51.7738 40.3652 -0.419766 -2.5035 2.92326 -85.2833 -7.74216 93.0255 -10.9065 -162.21 167.626 -157.493 124.942 -34.2983 -146.612 228.951 -0.141245 -0.638625 0.779869 -2.68815 3.84762 -1.15947 2.56036 0.228247 -2.78861 0.432418 -1.52674 1.09432 11.3293 6.22637 -17.5556 129.241 -119.579 -9.66228 4.08392 -2.29936 -1.78457 -78.77 63.8089 14.961 2.89386 -0.306046 -2.58781 -122.026 139.591 -17.5646 1.01223 0.949036 -39.4168 125.79 -86.3734 -5.59898 -0.091269 22.0518 -7.47742 2.20719 -0.196836 -19.3486 3.42947 -4.6366 -30.7942 35.4308 0.529153 -0.650556 -154.142 10.7433 20.4798 -24.6927 4.21293 -0.219918 1.8164 -1.59648 -27.1064 11.4341 15.6723 3.39028 -3.25545 178.732 -39.1792 -139.552 131.244 -136.209 4.96456 -48.5367 65.995 -17.4583 0.793863 2.55559 -3.34946 21.5476 4.45662 0.837597 -0.191406 0.899087 0.0797883 -77.2367 141.33 -64.0933 -7.59087 7.78945 -0.984748 0.30578 -16.93 113.938 -97.0082 -41.8961 35.5404 6.35566 -23.0977 -25.439 -0.726786 1.19147 -0.464682 9.40182 1.14342 -10.5452 131.546 44.9549 -176.501 -164.3 158.696 5.60461 3.43906 -3.28488 -0.154178 19.9312 -19.6262 -0.305008 -0.695088 0.655184 0.0399032 0.611591 -0.86777 0.256178 75.7418 -102.119 26.377 -0.482539 0.194701 0.287838 101.336 -25.5941 -2.251 -1.6696 3.9206 18.0904 -0.639937 -17.4504 41.7934 11.4095 65.8427 57.9297 -123.772 21.963 -2.91506 2.05639 3.0712 -0.614766 -0.112394 0.72716 -112.813 114.791 50.5645 -41.6509 -8.91359 1.19185 -0.676864 -0.51499 -90.3754 -84.0845 174.46 14.329 -10.9996 12.3869 38.1776 35.1145 -39.7511 -0.752259 -3.00534 -6.98491 14.1422 -7.15726 -0.659356 3.21972 10.0543 -66.5555 56.5012 124.365 -40.4732 -83.8922 0.409843 0.782011 18.6122 -17.8931 -0.719176 4.23716 -4.4495 0.212331 177.319 -26.3303 -150.988 108.265 -34.662 225.926 -3.91142 -222.015 -7.45286 5.59103 1.86183 -172.063 46.6579 125.405 144.635 -111.917 -2.81983 3.04808 -2.24444 -0.390286 2.63472 87.2731 55.6875 155.742 -149.713 -6.02872 -48.131 65.7991 13.6659 -9.9422 -3.72368 60.2338 53.8533 -78.7782 90.5556 21.851 -4.21226 -0.53519 6.19616 18.4895 -55.8628 37.3733 2.91107 -0.241486 -2.66959 20.631 -19.7116 -0.919394 -272.387 260.707 -56.6964 46.8238 9.87256 -121.027 -0.999898 -11.6937 44.9287 -158.139 113.21 99.2374 -110.862 11.6248 4.20337 -2.68157 -120.156 80.7388 -17.4841 -6.55474 24.0388 114.388 -27.7188 3.56438 -1.36349 -2.20089 -202.179 190.908 11.2707 -41.5142 162.688 -121.174 -134.785 164.866 -30.0805 -44.5486 -78.7073 -17.666 -3.18548 20.8515 5.86265 -94.8055 6.93804 -6.14418 -0.243582 -0.238956 138.602 -180.116 20.9874 -1.05625 -106.377 111.281 -4.90404 -106.129 -9.50766 14.3348 -2.63953 22.8864 43.1086 4.05007 -11.035 -81.0657 9.21714 4.89253 8.77334 84.7817 -77.8058 -6.97589 -0.149798 -5.44919 -18.0939 17.4361 75.9851 0.648824 69.6187 57.3926 -32.9498 45.2641 4.42429 -0.187125 -30.4874 1.45212 2.6318 0.572927 0.119087 -0.692014 -43.6622 -15.3746 59.0369 -36.2702 172.157 -135.887 -41.5656 -109.372 150.937 79.477 3.13398 -82.611 0.00375937 3.38717 -147.922 106.356 74.3044 -114.1 39.7958 80.1048 -173.224 93.1191 -145.325 140.564 67.1833 -58.8498 -8.33347 -161.171 155.655 5.51613 -0.443558 -1.82477 2.26833 -4.84038 -15.1687 20.0091 17.2444 114 2.27567 0.348676 -2.62434 2.31896 -0.0889255 -2.23003 2.1403 0.185836 -2.32613 1.99361 0.275339 -2.26895 -2.28332 -0.334596 2.61792 -0.226788 -2.32847 2.55526 -7.38633 6.47074 55.1834 -13.39 -0.572644 0.829221 -0.256577 -100.017 12.4016 -5.43937 77.8808 -72.4414 84.8739 -101.804 -1.44903 -5.50205 0.183499 0.612521 -0.79602 19.442 -0.829744 93.0264 31.339 -9.67918 -38.2347 47.9138 -42.2713 100.941 -58.6699 -123.411 170.208 -46.7969 -47.8997 9.0828 125.722 -152.056 26.3341 -111.072 68.8002 80.7124 8.1749 2.35634 -0.518743 39.4961 -62.5937 115.827 -53.106 -62.7212 -1.10349 0.159058 0.944434 -0.0617576 -0.734453 0.796211 1.45824 -1.59948 -62.0471 -3.58625 65.6333 95.3242 -258.9 -1.40514 2.72694 -1.3218 -115.881 -4.59888 120.48 70.003 -13.874 -158.334 71.1834 87.1505 3.09371 4.08587 125.065 -133.393 8.32768 -1.71223 -5.74062 88.3147 -35.6977 -52.6169 -27.1131 -54.4696 81.5826 -2.78711 1.10378 1.68332 -33.6554 -168.523 -12.5316 -14.5749 -1.23798 0.511193 69.1016 -83.3291 14.2275 -3.52549 2.03832 1.48716 -72.4203 61.9116 -17.0038 -3.85897 20.8628 -32.4647 45.1933 -12.7287 15.6851 12.5608 -28.2459 131.761 52.3213 -76.1217 177.276 -101.155 -11.0432 -45.6532 36.2276 8.2855 23.6281 -3.39135 -20.2368 -0.184309 -0.0380463 5.14961 -11.2733 6.12373 1.99231 1.57207 -18.1239 25.0975 -6.97362 130.549 -121.474 -9.07554 15.2944 59.0157 -74.3101 -80.2926 216.077 -9.14351 30.6911 1.73031 -1.98224 0.251926 -3.63941 1.51947 2.11995 -51.9214 189.044 -137.122 -142.532 14.5437 -182.423 106.301 -0.00563306 -2.23881 -14.1844 4.69391 124.547 160.954 -21.2599 -139.694 -1.70014 -1.82534 170.857 7.87412 -1.37617 -77.2748 78.6509 -0.896901 0.876665 0.0202362 4.48413 -86.0415 -2.00992 22.9871 2.11622 119.685 -156.099 -3.42566 -135.742 139.168 -157.674 -83.4988 -32.7261 107.031 0.894119 0.0386672 -189.677 137.756 0.0495769 0.727016 -0.776593 -126.464 171.113 -44.649 137.876 -136.084 -5.47249 17.7246 -11.4645 53.6881 28.831 197.095 194.185 -77.167 -0.0479189 -0.731682 0.779601 -45.4887 60.7831 0.653689 -0.0420974 -41.055 -3.45558 3.6172 -0.161626 -3.39671 3.77864 -0.381936 144.503 -46.4371 -98.0661 22.2138 -5.38618 -16.8276 1.03971 4.68883 -5.72854 -0.102057 0.811778 -0.709721 0.0275089 -0.735879 0.70837 -145.714 157.493 -11.7789 -175.114 20.9727 -18.7979 13.9575 -8.46429 7.01526 0.217941 -1.9489 223.333 -307.907 84.5739 1.80364 83.5923 -85.396 -25.7257 190.789 195.128 -86.6478 -0.878587 -144.835 187.383 -139.197 -48.1857 -2.62117 0.370168 140.506 -143.819 3.3137 -33.4415 -19.4245 52.8659 -61.8149 60.4387 -39.1801 -65.9622 189.239 -57.4783 127.928 29.5646 -1.86742 1.72913 0.138289 0.139437 2.70862 -2.84806 18.5356 3.31538 -0.0901478 9.75725 -11.3322 1.57493 -17.0911 -1.14995 18.2411 -0.163989 0.819173 44.3866 36.3935 -80.7801 158.62 -114.381 -44.2389 160.984 -160.984 0.54195 -1.90544 -114.878 115.571 -0.692863 133.436 -183.799 50.3628 -63.3559 -17.7098 21.215 -18.888 -2.32698 -3.84607 3.42631 -52.4017 42.7225 -15.686 23.2171 -7.53118 8.25668 -10.2209 1.96426 -163.042 28.2566 135.267 -21.3292 -0.112004 3.00586 -27.2907 45.7802 -46.9238 22.9455 23.9783 -11.2984 7.49985 190.38 -133.41 -6.38483 -13.6505 20.0353 -18.2357 -5.24628 23.4819 -152.931 -4.79768 162.209 25.1737 -0.113645 17.5561 -17.4425 117.163 -28.4444 -88.719 30.4806 51.9385 1.52936 -1.95203 0.422667 -1.98987 -0.896763 2.88663 78.381 37.4462 -171.882 160.975 0.721632 8.81014 -9.53177 7.37593 42.1102 -49.4862 -20.2986 24.9193 -4.62072 -140.067 139.507 0.560336 95.5049 -64.9404 -30.5645 -5.63463 56.7262 0.0389224 -10.8237 -62.7641 73.5878 -173.082 101.353 71.7296 -36.4366 -56.8574 93.294 22.5782 133.164 -5.94391 14.2006 -58.2081 20.2781 37.9301 42.5519 -35.176 112.219 23.048 88.0506 -4.46638 27.4535 39.52 -71.128 -52.3542 32.9477 19.4065 -76.1747 49.0616 0.0130562 0.881063 -23.2658 147.991 -124.725 -110.436 126.578 -16.142 -1.31056 5.79844 -36.5926 6.8056 21.4252 -28.2308 -0.341506 -0.139474 -3.73038 0.65207 3.07831 0.955764 -1.00148 0.0457129 196.188 -59.5188 167.718 -39.7903 2.28303 -0.552723 36.7361 -21.051 -1.37542 -0.272092 -0.516618 0.78871 -57.547 13.8848 7.34188 -5.66328 -1.6786 -21.8874 6.20149 -2.81983 4.25124 -4.39192 6.97254 -5.93261 -12.8437 18.7763 -2.26902 -69.9413 72.2103 56.7524 -72.127 -179.839 37.7243 -85.1198 2.67801 82.4418 -116.76 -19.4485 50.1441 97.4367 -147.581 6.64128 3.81613 134.613 -16.5726 -118.041 187.668 -54.232 -52.2835 96.6701 3.57724 -44.3864 40.8092 -0.00910347 -0.117685 33.0135 11.8596 -44.8731 0.30458 -0.240818 -0.0637628 -0.611423 -0.0851838 0.696606 40.3165 -9.17691 -31.1396 163.68 -92.1586 -71.5214 -23.5965 23.4829 20.8568 -24.5867 3.72989 -2.95614 73.7339 17.7214 2.54006 -0.0297967 -2.51027 0.0125754 2.26309 -0.430326 2.74928 -0.0246827 -2.25864 -0.205433 2.34573 -0.353883 2.3475 -9.04034 53.9904 -44.9501 43.1473 -9.08655 -34.0607 248.235 -15.3308 -232.904 -2.06248 -1.14307 3.20556 -136.319 80.8401 55.4792 -2.62371 2.81348 -0.189768 13.3288 -8.17917 -3.73334 2.88987 0.843473 0.211421 4.67901 -4.89043 0.0895234 -5.05251 4.96298 21.2427 -0.611672 21.0433 0.171741 40.9324 54.5725 -0.188993 0.452821 -0.263828 0.0691283 15.885 -15.9541 -29.1442 16.6126 0.293701 -0.444693 0.150992 -101.927 65.4905 2.93446 -3.07985 0.145394 10.4507 -0.693437 203.805 -21.0049 -100.105 -113.385 103.809 -15.4686 19.0971 -3.62847 2.20136 83.5783 -85.7796 7.59247 -1.91387 -5.6786 221.116 27.1187 3.08975 -0.155298 3.16459 0.538235 -3.70283 -3.1613 -0.537478 3.69878 3.16755 0.53283 -3.70038 -2.82111 -0.521368 3.34248 3.16241 0.535709 -3.69812 186.25 4.65764 -5.27655 41.5042 36.9666 -46.0069 43.1615 162.081 1.22219 6.37028 -77.0808 63.9214 -14.8537 8.2121 202.809 -16.5587 -199.545 -72.8416 -5.63866 -15.1249 20.7636 -26.4115 22.7146 3.69689 56.1401 6.77042 -1.94244 3.4718 -19.9859 3.45588 21.3059 -27.6908 -1.60151 17.7924 -16.1909 75.8594 12.4553 -40.7358 -131.327 3.46777 -100.788 97.3207 -25.2315 156.334 -18.8107 -33.5435 -3.44233 -0.069678 3.51201 3.03172 -0.120647 51.251 112.429 -0.22295 0.00075498 -6.78987 30.6399 -23.85 122.35 -3.7295 -0.0744161 3.80392 -2.61604 -0.477394 -39.921 -108.001 -19.1553 -9.98891 -6.137 -9.96956 16.1066 21.0686 -3.47421 -17.5944 -0.177852 1.16626 89.561 -17.006 -72.555 -116.998 -37.354 154.352 -47.292 -24.0991 20.7586 -95.7681 10.4847 9.1697 1.29295 145.983 -146.631 -148.65 108.729 137.566 -0.352999 -137.213 -0.615698 0.043054 50.6469 0.130107 -50.777 101.122 -108.077 6.95544 -2.18862 3.90775 -1.71913 -50.3932 -35.8818 86.275 -45.2289 7.72574 -2.13471 3.44385 112.827 -116.271 -129.626 149.067 -19.441 11.4621 -2.06028 -148.458 184.592 -36.134 -87.097 36.7038 -8.73943 5.99922 0.334475 3.92839 -4.26287 -21.7626 21.8318 -19.6506 99.1276 -7.0741 18.4034 6.70193 -44.3266 37.6247 3.10653 -0.00528555 -3.10124 3.11942 -0.0144063 -3.10502 -3.08737 -0.0204235 3.1078 3.06289 0.0469708 -3.10986 -3.10666 0.0110874 3.09557 3.07333 -0.0546984 -3.01863 -3.13075 0.0303075 3.10044 -5.08615 5.22559 -21.4737 169.443 -147.969 39.2101 -2.81067 -0.644906 1.8342 -0.782964 -1.25824 -8.61335 -60.5345 69.1478 -12.5493 -114.134 -3.43072 117.564 -82.3857 -58.4656 218.712 -235.24 16.5281 19.4607 -25.3933 -5.30373 3.73397 1.56976 14.6437 -69.2913 54.6476 -7.35519 15.4628 -111.536 193.675 -82.1394 0.0351458 113.421 -109.583 -3.83803 68.4735 103.683 78.1775 -85.2481 0.877889 47.0715 -120.355 2.91859 80.0027 -10.9012 3.33309 -121.933 -0.0445556 0.338257 -30.2118 -27.9963 -38.653 -3.77172 42.4248 0.042351 -137.865 114.6 -2.66699 -0.120119 0.233827 -0.199239 -0.0345883 -87.8693 26.3102 61.5591 3.13647 -3.13647 35.382 -3.33338 -18.5714 12.4344 -42.6789 -4.94641 47.6253 3.4552 3.24873 2.98441 3.39476 -3.44125 -3.35754 -3.53093 7.75243 -7.54101 70.7264 32.1831 130.207 -162.39 -1.46533 1.55043 -0.085099 19.4194 -3.3948 -16.0246 1.04558 -0.879267 -60.4972 26.6965 -192.27 165.573 -4.69199 0.242498 -0.0427705 72.8198 64.8114 -137.631 8.95612 41.6907 2.57571 -4.55945 21.6762 -17.1168 -43.4808 11.0162 -3.15061 -0.578889 -3.49743 3.10715 0.161533 -2.78524 144.406 -130.744 -13.6617 95.9474 -72.3137 -23.6337 22.591 -26.7918 4.2008 -161.905 87.6907 74.2143 72.9221 -86.7723 13.8502 -26.4168 -20.507 -6.35961 50.9355 -44.5759 -0.830802 -0.297063 1.12787 117.624 -51.9014 -65.7221 48.9067 -57.5201 -0.15309 -3.34434 46.2031 -130.029 83.8259 -76.9942 -98.0739 175.068 -60.5524 6.46981 -5.74818 -0.965005 0.0681036 -84.9765 -0.143348 43.3707 4.91193 -48.2826 3.71743 -3.93735 18.0346 -23.6733 -76.7207 25.1775 51.5432 -3.14902 0.402263 2.74676 3.58346 -0.404759 -3.1787 0.551282 2.56665 -3.11793 1.20475 19.652 77.2395 40.384 -44.8179 -100.508 1.40968 -43.553 42.1433 6.50992 -156.096 135.525 8.88083 -0.39614 2.5632 -2.16706 -3.00366 0.31551 77.8161 -38.5407 -39.2754 26.6999 -4.10887 -1.88739 2.15931 -0.271919 -2.7682 -0.674135 110.011 -1.08331 110.717 -109.634 -95.3588 101.221 2.60108 -0.0610203 -3.80598 2.8787 0.927285 -9.74058 21.2623 0.0929573 -21.3553 181.605 38.5299 -220.135 -32.4293 174.531 -142.101 -0.882237 0.753922 0.128316 -0.0729736 -0.174735 -3.33331 1.99538 -0.296775 -1.69861 -87.3039 81.8645 51.4285 -42.8535 -8.575 0.295477 17.0548 -1.60651 -15.4483 40.7158 -16.2465 -24.4693 -35.0228 104.607 -69.5845 135.342 -89.139 49.683 -56.0291 6.34611 42.5238 8.90472 -6.60933 6.69886 23.3256 -186.243 54.5074 131.735 -0.644643 -0.0408135 187.606 15.1959 -202.802 39.8011 -163.213 -26.8382 33.6438 5.12624 -121.007 3.98856 -0.209916 122.7 -161.879 156.001 -75.8966 -140.027 84.6206 55.4065 218.893 -153.35 -1.00967 31.2272 -30.2175 31.6482 9.06758 -0.587814 -1.92276 2.51058 0.877492 -0.865649 -0.0118432 0.0109643 0.649166 -0.66013 -22.6553 7.23294 15.4223 3.38033 -13.0011 -4.1624 17.1635 0.195043 0.511869 -0.706912 -0.475706 0.286713 -72.5587 61.7351 9.83036 -0.853107 -8.97726 -2.99995 0.937469 19.5668 -29.8551 10.2884 163.278 -60.5067 -102.771 -113.495 74.3146 -113.849 -68.5613 182.41 -35.7011 34.6914 204.104 -86.1116 -117.993 46.5463 -173.01 -44.8256 -103.824 -3.85348 8.74602 9.32732 -142.237 132.91 9.19406 -152.569 107.743 -31.4957 70.4403 118.388 -188.828 81.2431 -66.5994 5.88332 1.44246 -39.5998 41.2011 -1.60129 -22.6096 4.94362 11.4794 -23.4481 11.9687 7.00699 -165.825 158.818 34.5629 -27.861 108.765 16.3004 -148.437 -37.8054 3.2264 -2.48333 -0.743063 3.36789 -0.581648 -2.78624 41.9049 9.23402 -51.1389 -1.02104 0.0735757 156.071 -9.95167 -146.119 -160.275 11.4623 148.813 3.11908 0.464382 -3.13942 -0.00959997 -21.3854 -151.82 8.74269 143.077 -2.76158 0.874192 1.33311 2.7751 -4.1082 51.9757 -16.5963 -35.3794 1.2199 -1.24458 -2.86321 -0.00509354 2.8683 0.166103 6.30371 166.915 36.8895 -25.669 24.4624 1.2066 52.2097 32.572 3.32576 3.20027 -0.0356765 -3.19192 0.0306225 3.19926 -0.0317127 -3.18317 0.362061 3.19199 -0.0295792 0.237623 0.456989 -0.694612 -14.9189 22.1122 -7.19335 -57.7353 115.37 0.522251 -59.9096 -17.7662 77.6758 -72.7188 25.5923 47.1265 -5.17893 4.15072 -0.0712133 -4.07951 0.919375 -1.04101 -0.826409 0.412467 2.90964 -29.3264 -59.1203 47.6559 13.9616 -4.62216 -6.95806 10.3175 -3.3594 8.39733 -168.812 160.415 0.534899 -0.125055 102.673 -99.229 -3.18577 0.569725 13.0879 -59.2035 46.1156 -3.44374 2.38668 -35.3158 161.037 -0.103587 -0.599864 -0.0995746 0.699439 245.376 123.569 -102.926 -20.6423 -2.90605 -0.537689 -120.317 -6.10843 126.426 0.2137 -2.36552 -0.0978669 2.46339 -135.335 -83.2056 -0.131328 -0.515515 0.646843 -4.61099 4.02317 -6.24291 -39.6016 -37.1191 -1.21682 1.22939 0.468469 102.204 11.781 -2.53333 0.167806 -8.75807 -13.8972 -2.31841 -0.355452 2.67387 -2.31991 -0.37427 2.69418 -2.31685 -0.345564 2.66241 2.31669 0.354101 -2.67079 -7.51057 7.84504 -21.632 44.3672 -22.7352 -0.10725 -0.467666 0.574916 1.95139 -16.5604 3.55928 -20.4538 3.44998 -75.4711 54.0176 -131.254 39.4599 -4.34546 -130.382 13.6219 -0.187567 0.265702 -0.844881 0.898815 -0.0539339 86.9713 -28.4255 -58.5458 1.37227 0.623109 -4.52757 55.086 -5.40301 -197.376 171.237 95.9786 -128.705 128.331 32.6536 20.0194 144.984 3.50342 -2.81253 -146.808 173.504 -1.75598 82.9991 83.9523 5.60873 133.748 -112.375 -21.3726 -65.7209 71.2234 -5.5025 -1.18596 1.08812 5.123 -5.4605 30.9864 76.2838 -5.01511 3.47184 -2.36805 10.0482 0.817746 -10.866 -12.195 -14.2165 16.8428 74.6714 -91.5142 20.6795 -27.7536 159.324 -169.119 9.79552 1.22509 -1.23073 3.80723 127.576 -131.002 1.52632 1.09897 -0.170895 4.32162 162.536 -6.46491 3.63795 -2.59824 8.72955 107.29 -116.019 0.346033 2.35532 -2.70135 -53.0148 29.9049 23.11 133.873 -79.9762 143.503 60.601 125.103 41.9557 -167.059 -3.07435 1.08448 -34.6223 25.1149 9.50737 -0.93017 0.0479325 1.15359 0.977629 187.167 -169.536 107.319 -25.3403 -81.9792 -61.2459 -19.0134 80.2593 43.8707 -10.082 -33.7887 8.23702 -38.4489 21.2703 -22.8718 39.4486 -134.135 94.6862 -6.65012 118.334 -111.684 20.1269 -26.6817 9.43998 158.186 0.540213 -0.797922 0.210584 4.31659 -4.52717 -43.0723 -35.6977 -26.4694 144.352 -117.883 16.7918 0.941481 -0.0639891 11.2066 -144.281 69.7501 71.5798 83.5918 0.206668 0.24563 -0.452299 0.314294 3.34263 -3.65693 -3.8282 3.8282 4.20702 -4.20702 4.21722 -4.21722 -2.68812 12.7894 -10.1013 -141.378 11.5756 129.802 -0.653968 0.0153438 62.9803 63.3934 -126.374 -3.53756 17.7097 -14.1721 -0.215097 0.407243 -0.192147 88.0838 -54.5236 -33.5602 -49.6666 43.307 1.83387 -1.9199 0.0860273 -102.051 57.2898 44.7613 182.02 -169.724 -12.2958 7.36833 65.5538 49.1354 38.9484 -149.054 158.494 3.4895 -2.44208 -1.04742 -64.4844 -83.6069 154.047 24.3906 -27.1622 2.77157 -45.1014 45.2315 162.237 -155.082 -7.15475 -1.94975 -127.676 -3.37612 0.0393534 3.33677 9.26749 125.346 -4.62065 0.792446 3.85706 0.349964 3.83485 0.382373 109.196 -110.279 -3.33727 165.209 -161.872 110.511 -78.4328 -32.0782 75.6293 8.32298 236.075 -100.192 -7.88511 124.96 -61.9798 137.64 25.8667 -163.506 -2.93938 0.619473 -3.1218 0.803391 0.802229 -0.822732 34.9716 -31.3944 -1.48 1.91241 -2.064 -1.01585 96.5561 -125.128 28.5716 165.426 -98.8261 -66.6004 -1.27833 -30.8947 -76.3534 107.248 1.79016 -0.313677 -1.47648 3.97338 37.4726 58.5336 110.583 -169.117 -1.85038 2.16468 51.043 -65.9366 14.8936 -16.6377 28.1171 0.287011 0.246084 -9.55037 -42.8513 -19.7259 -33.2889 10.3108 98.8847 -162.92 2.64491 0.316641 1.2528 51.2504 59.2605 10.7215 -0.891142 -181.228 97.1432 -10.8389 8.925 0.646174 0.0449872 -0.691161 -1.2482 21.9277 -4.9491 -136.88 141.829 220.455 -9.95223 0.787051 -0.0331292 -29.842 167.482 -100.965 -57.3689 101.459 10.0644 -111.523 146.237 24.6207 -17.592 87.7064 -70.1144 -37.9283 -18.1008 156.441 11.3234 -8.51152 -92.1847 100.696 -18.7236 22.2288 -3.50519 34.8569 -44.5857 9.72882 -61.1611 23.2328 -80.707 -112.939 124.049 -11.1103 -77.7993 -28.3571 106.156 1.44352 -10.5328 9.08928 -15.194 -136.626 -0.214166 2.2879 -2.07373 0.446545 0.357965 -0.944303 0.29966 -41.6998 -13.7039 55.4037 115.874 -20.0881 -95.7856 -81.3727 67.6042 13.7684 50.8656 -60.416 -195.224 119.276 75.9479 -30.1357 43.2236 1.4048 15.65 -79.6977 -60.3295 -66.7947 3.4388 -3.14954 -0.444989 3.59453 -2.89093 -0.405582 3.29651 50.9825 5.79346 -56.776 -81.3715 198.915 -117.543 -0.365282 0.52434 5.43967 -0.234651 -163.161 62.196 7.00911 -7.36511 0.355994 3.54745 -0.51458 19.3244 1.93791 1.47879 25.4587 -26.9375 51.0929 42.9233 -94.0162 48.0928 -161.354 113.261 -9.14727 123.235 -114.088 -134.352 18.6961 115.655 48.3432 5.72297 -54.0662 180.659 -213.225 73.7568 -51.3897 89.8595 -87.6582 81.2595 100.959 -182.218 84.2405 -115.135 -2.27969 226.619 -233.007 0.40757 -2.10692 1.69935 15.8035 58.4534 -17.8048 -1.23826 19.0431 11.0786 25.6574 -3.18035 -17.2286 16.1408 1.08781 51.2843 15.7302 -67.0145 4.64213 68.8201 -73.4622 203.887 -16.2813 -9.85944 236.479 181.54 -141.296 -40.2439 -0.802229 -0.00594778 0.808177 0.114514 3.59022 -3.70474 -0.110099 -3.60043 3.71053 -0.110282 -3.61485 3.72513 0.0647713 3.98041 -4.04518 -0.110379 -3.60222 3.7126 88.1368 77.2896 -6.9518 4.96902 1.98278 21.8679 1.76024 0.400917 -1.24882 0.8479 -16.7042 113.26 3.83988 -4.25008 -63.6934 -49.8014 2.51492 -0.013232 -2.50168 -2.7153 3.47686 -0.761558 -139.546 -125.688 0.198697 -0.196092 -0.00260513 2.06659 0.567279 -2.63387 183.845 -175.448 0.219076 -2.37457 0.0381123 83.3457 -11.6306 -71.7151 -131.978 -15.4554 147.433 -0.997959 -5.95384 -0.822029 4.46567 84.2929 -0.700523 -119.499 -75.7252 -2.51577 -0.0185545 33.1689 -22.1202 -11.0487 47.0796 -3.70897 -13.4126 117.302 -103.89 -44.3772 -38.9518 -104.476 47.4405 -9.97485 -37.4656 -66.1204 9.12214 9.33632 -0.526183 0.549573 -0.0816387 -0.467935 -120.33 -7.50655 127.837 -8.14617 4.29269 47.7677 -39.5306 14.8962 167.124 -0.313093 14.6421 -17.1096 -116.284 137.617 24.9185 136.605 -162.948 26.3426 39.0293 -7.38108 4.35337 22.0747 -26.4281 -0.89205 0.0264006 -65.5738 138.394 -160.921 120.185 39.8592 -153.667 9.42239 144.244 -4.02288 166.711 -0.06089 -0.152106 0.212996 -7.11764 32.4705 -25.3528 -29.6137 22.8238 123.636 -20.7983 22.2771 2.49609 0.230854 -11.4632 46.32 31.2063 -61.3421 -169.599 148.126 51.6213 -9.71645 -35.0352 -160.824 22.1878 -2.86339 -2.23328 -1.50006 -0.235917 0.421561 -0.185644 -134.313 13.983 248.681 -16.1698 49.1174 9.4641 18.6643 -14.865 -3.79938 -0.904249 0.0734468 0.0911686 0.864595 2.71206 12.4446 7.28656 0.354327 -7.64089 -189.524 -118.382 -5.87936 4.35131 4.015 186.356 34.0995 -35.4274 51.2927 1.38784 -0.167945 41.2701 -42.1635 0.893377 6.558 -176.797 3.5735 -104.876 -58.2851 -137.76 3.4082 183.829 -6.51057 0.661493 -3.8775 -7.23167 8.48837 107.278 -0.231988 -0.00392854 -16.5072 -97.4479 113.955 100.282 -1.05554 5.08512 -4.02957 5.15581 20.7706 -25.9264 53.7761 142.412 78.8751 -108.764 32.4103 -3.68089 3.72786 3.68036 -3.70078 -3.68095 3.67566 -3.80075 3.74605 -3.8039 3.65081 3.67412 -3.66303 -3.68946 3.67505 -3.64334 4.19463 0.578549 -3.9337 3.35516 3.68312 -3.65282 -0.480528 3.84607 -3.36555 59.3887 15.0745 -74.4631 -1.00776 0.0881271 -8.4594 8.37127 -0.323295 -3.04808 3.37137 29.9353 -37.0529 42.8688 69.3507 -31.1272 31.24 -0.112849 -0.355547 7.36466 -140.926 -21.9946 -158.616 170.493 -11.8767 199.933 -222.417 22.4834 -3.14082 -14.7402 17.881 -78.8379 38.4371 -155.435 36.8606 102.73 132.829 -123.622 -9.20789 135.969 1.59665 -131.317 104.986 4.74167 0.963847 -5.70552 5.50486 -1.57647 -88.2229 71.3338 16.889 -4.60548 4.60548 -2.46302 2.6736 0.0278648 -24.3858 26.0064 -1.62062 1.78796 0.348173 -4.5717 -89.3522 -94.061 183.413 -7.93606 -3.39733 11.3334 -2.59138 0.00267106 2.58871 -156.394 176.987 -20.5929 64.9145 -76.9704 12.056 -2.23715 -1.56883 18.0416 3.30085 -21.3424 -1.50176 -0.0249776 17.6328 -20.7736 4.92865 -5.78176 -6.52121 -41.8093 41.4092 0.400126 19.8006 58.0155 -10.4787 -19.8781 30.3567 -0.650842 -0.0238644 0.674707 75.3339 -36.9884 -38.3455 6.7973 -6.13581 -6.31281 168.55 120.966 -137.538 6.5403 0.207478 -0.268368 157.399 -160.736 -9.21382 -50.447 59.6608 5.09661 36.1735 56.7467 -71.7788 -81.5334 153.312 -13.4042 -21.2181 -56.7304 125.204 0.714469 -1.95933 -1.04433 -3.0323 149.016 -0.295189 -2.56802 116.177 -73.3081 -1.41583 36.1965 59.7508 -18.5564 -2.89529 21.4517 93.9059 -126.335 3.46373 17.6025 -21.0662 -0.112432 2.56839 -2.45596 -1.69653 2.39368 -0.697152 83.1111 -84.867 -0.10625 163.909 -83.9907 0.857933 -0.773607 -0.0843259 -23.4864 48.5114 -25.0251 45.6985 7.98967 -2.14665 0.446509 123.454 -27.4757 0.854411 0.044676 -22.0939 0.0087493 -2.60013 -14.5709 18.0346 197.016 -151.839 -45.1777 4.03329 -1.20776 0.0963516 2.3011 -2.39745 -0.0907437 -2.30192 2.39267 -0.211107 -2.05135 2.26246 -0.0952537 -2.34452 2.43977 0.0827267 2.34349 -2.42621 -0.0894004 -2.27308 2.36248 -0.349222 0.214256 0.134966 -12.2965 15.3658 3.29855 -79.8753 19.9657 2.86757 -26.864 23.9965 -76.3455 -69.0088 145.354 0.0779706 2.29951 -2.37748 -25.3792 -33.2753 -35.0311 -46.3416 0.674313 2.86078 -3.5351 -4.7023 1.56583 25.1543 -94.6865 69.5322 41.4826 21.773 -100.39 78.6166 192.044 -201.904 0.112136 -1.52797 -32.8449 169.45 1.56115 17.6596 143.295 65.9601 -2.15114 -48.0702 8.43529 39.6349 -116.216 -0.756419 0.876847 -0.120427 -80.6527 17.8886 -11.2918 -8.59018 114.173 -1.34579 -35.0926 -2.51791 49.6394 66.2343 -28.9489 23.9559 -2.36472 0.300721 -59.6318 157.068 180.517 57.3125 -126.68 117.533 -4.38193 204.315 164.81 -18.7614 -146.049 -20.729 -8.6273 -69.8356 70.4016 65.3719 -100.395 2.07873 -1.40441 -0.269038 106.459 63.2029 100.075 -24.8993 -130.702 155.601 -0.220318 2.50783 -2.28751 -1.48049 141.441 -109.258 -163.355 106.537 56.8179 -0.700056 -0.056363 15.968 6.21984 -31.761 -102.582 134.343 -83.7617 -92.7391 0.226653 59.5371 -155.1 95.5625 -16.7369 183.624 -166.887 -23.1198 19.9344 -15.7809 35.3476 -2.32594 -0.189827 95.3698 -152.1 -58.5413 -145.512 204.053 -1.37832 0.161503 -70.8726 115.801 -13.1623 -136.089 149.251 -70.5481 -22.8994 93.4475 1.68669 -2.27626 0.589575 -66.5692 -78.3655 82.8496 -4.69184 22.7334 2.53718 -2.86801 0.33083 1.08031 0.358741 -1.43905 2.09051 -12.0327 112.454 -0.019487 25.2965 -25.277 1.93902 -71.7747 -177.516 -85.4007 85.8691 149.008 40.0355 -1.69464 -2.03574 29.4576 133.826 -163.284 0.490742 -1.00736 -1.96917 -6.49512 2.67395 -90.5642 87.8903 55.1366 -1.1462 115.938 28.4143 9.63826 0.409961 155.296 -5.34778 -149.949 -14.2595 95.8507 -81.5912 168.698 -43.5946 150.857 -45.1835 4.87681 40.3066 31.9702 -27.1934 -4.77687 -12.4518 14.3236 -1.87179 0.73636 0.0922197 -0.828579 148.005 -1.768 -3.14781 -0.00172615 -3.18275 0.291818 82.6785 31.7092 72.0697 -30.4057 -41.664 0.250349 -0.465446 28.8227 -157.064 128.241 129.943 -133.966 -7.81834 15.0513 -8.81522 9.11198 -0.296758 -144.315 -45.3626 9.19595 -37.1447 184.558 -147.413 -14.0625 15.2673 4.36254 -12.1809 -44.3984 4.76617 39.6323 86.9401 110.076 -111.92 146.615 28.8489 -175.464 63.4984 17.8489 -81.3473 174.245 -80.3387 -98.8561 28.308 -4.88884 4.58279 2.3397 0.0485118 -2.38821 2.26901 -0.141286 -2.12772 24.1169 -0.148368 -68.5171 -19.3522 -93.4358 -24.9191 118.355 -6.64844 5.82641 15.0334 -164.087 60.8628 3.84415 -3.67805 -81.8899 85.3577 -7.70153 -3.13735 -8.95365 41.9672 7.56826 -102.927 132.728 -171.259 38.531 -204.956 99.7346 105.221 -97.5125 89.7704 67.3299 16.0158 172.482 5.15889 -23.9274 18.7685 9.17236 -9.48545 -18.461 -142.46 -118.72 5.7811 -135.561 1.68848 2.15914 36.3386 -5.80497 -30.5336 1.27119 -1.07615 -110.067 114.306 -4.23932 1.8164 -146.236 144.42 2.77835 -0.175883 -2.60246 65.2171 -13.9328 102.915 -98.6031 -4.31167 0.283412 0.983706 -1.26712 -9.97439 -87.5381 1.78166 -54.5615 76.3345 -181.534 67.6858 1.20832 -1.18045 -201.012 184.275 22.2041 49.8656 3.66103 1.84383 -10.0918 1.27655 0.0940622 6.48388 -6.57795 -19.2548 13.7911 5.46375 69.8573 -13.1049 -7.17265 6.1171 16.8425 58.879 -75.7215 0.095804 0.490299 -0.586103 -7.6098 13.9646 -6.35475 19.9773 -20.6173 36.2057 68.4016 43.4088 7.7102 -51.119 -77.5903 82.2324 0.473676 1.18969 -1.66336 -22.8242 18.9652 -0.497118 1.57743 30.7731 -85.2427 -19.5676 106.614 4.10298 94.4179 -77.5751 31.4061 -30.0521 -1.354 0.672441 -1.15221 1.29222 -22.8903 -3.9737 18.2998 -121.226 -3.37023 0.0853534 -0.0417678 9.49028 149.205 72.1036 -55.2611 2.45736 -0.441606 -2.01576 115.037 -119.636 -90.626 102.202 11.4697 159.414 -170.884 -3.16719 0.889992 2.27719 70.4612 -146.807 -2.37599 -0.291001 -114.042 82.2814 0.487343 -8.71218 8.22484 -0.317645 1.99284 -37.4128 45.7768 128.468 172.179 2.3517 -137.606 -59.7705 -3.22974 114.163 -130.67 -122.355 122.355 -6.15795 3.0993 0.00784523 3.32404 -0.549092 -2.77494 -6.13452 0.886465 5.24806 -1.78507 69.3893 140.7 -141.053 -11.2649 -40.2234 0.113375 -0.150454 -0.0251905 0.175644 -54.0055 134.846 61.0468 -208.268 147.221 -2.28077 -1.39436 1.56313 -1.37963 139.466 -51.2401 -88.2261 9.522 55.3925 3.1161 -1.56435 92.7678 -102.742 -18.9775 54.3294 -35.3519 14.3103 -5.83806 -8.47225 -0.111812 3.46489 -3.35308 5.17422 -0.495216 -23.614 -15.1378 38.7518 135.47 51.6972 -18.8365 -2.92612 118.355 5.69433 4.84363 -140.148 185.744 -45.5967 -3.03295 -138.786 133.837 -1.12557 3.66275 -2.96837 -21.1307 72.1462 52.796 -1.18682 -0.774447 -1.42135 2.64657 -1.22522 -3.27237 10.5821 22.5868 -17.5452 -122.522 -1.43782 1.37606 -67.7523 1.1968 -0.234008 0.783581 -1.2287 5.91753 32.5128 -45.3333 12.8205 -2.99199 -91.8807 116.741 -24.8605 23.9071 -26.8754 1.12943 4.04479 122.537 -1.09227 -6.29607 -18.7665 12.4414 -149.321 -0.263088 0.423072 -0.159984 24.3013 -117.737 -163.218 4.60195 -2.20433 0.379557 62.5567 -39.7657 -22.791 9.88665 67.9941 23.3736 -122.897 99.5237 -16.7695 0.820379 15.9491 -38.047 204.164 -166.118 -2.54558 -94.3518 96.8974 12.6597 75.0467 -6.84179 1.1785 4.70701 -5.78583 1.07882 4.64755 -2.77002 -1.87753 -50.7481 74.4285 -2.1389 -1.9693 -242.219 67.2223 174.996 -22.9459 -75.9103 0.807229 0.1701 -0.977329 28.6603 -125.306 96.6459 3.37878 0.0764298 -0.404878 3.38928 0.342673 -3.37559 -0.0656653 3.32512 0.0696451 0.145884 -0.140656 -20.8866 1.17495 11.4087 -12.9642 1.55545 -73.9076 -67.3562 141.264 -127.695 134.702 1.05091 138.456 -39.958 -5.22541 -20.4448 6.38231 -0.130745 -0.0197083 -171.106 17.4395 13.7996 -16.4877 -65.4011 -64.5545 85.3055 -20.751 -4.53919 -27.4516 31.9907 -26.4649 23.5696 -0.0676379 87.0889 -131.38 44.2911 -23.8321 5.78713 18.045 80.5386 -4.90929 20.2653 51.8383 -18.5853 192.708 -174.122 -64.7096 36.2477 -25.1691 -139.485 0.78036 -0.775866 -0.00449348 -6.69282 -147.271 148.454 -1.27288 1.81309 -43.25 29.687 13.563 -2.04503 -6.69441 90.7828 78.5184 -169.301 -124.821 184.358 -25.9818 196.371 -170.389 21.6596 158.999 5.09733 -10.7004 5.6031 -1.89217 2.00668 1.89686 -2.00696 1.90238 -2.01266 -1.62987 1.89746 -2.00784 1.41294 -0.204618 101.009 -160.641 -59.8821 40.8687 20.6961 -25.3879 -261.816 28.912 -1.16727 29.9839 -28.8167 1.69779 76.133 -0.273663 -3.26091 -0.0834327 9.72807 188.913 29.7993 -15.4957 93.3952 -77.8995 -147.964 160.406 -26.2624 107.672 -81.4094 -1.37766 5.11163 0.529908 0.508702 -59.9667 90.7399 -17.6683 -3.60387 3.60387 -150.961 -55.0525 -78.6712 113.993 -35.322 -2.98743 -6.72457 9.712 -160.121 122.767 -74.0575 -130.898 -154.341 3.44305 150.898 261.052 -186.908 -74.1433 -45.2182 105.466 -60.248 -25.0537 -146.694 171.748 35.2149 27.3418 -127.911 -45.4157 173.327 -5.97975 -17.8524 1.41907 -1.36949 86.2736 -88.8192 156.656 -154.256 -2.40029 2.38139 -6.64589 188.251 20.8549 -22.0222 -7.79339 27.9203 141.406 -132.138 -156.2 141.006 105.785 27.8299 4.14032 67.9317 60.1061 -0.717377 -5.76245 -81.6488 87.4113 141.862 1.2 -143.062 -2.13666 7.10568 21.0199 -26.9996 -166.371 84.9996 -121.62 67.1717 54.4487 -32.0683 -10.7942 42.8625 -1.12046 -1.03022 2.15068 -92.5393 102.604 -1.42079 1.37287 166.269 -172.594 -20.917 24.0519 -3.13487 -66.4889 -55.1315 -33.494 166.222 -22.4802 -39.9247 62.4049 -9.96405 7.91902 1.20257 -1.47435 0.271784 -16.2176 50.9268 -119.527 68.6005 -1.46366 -1.70352 -75.6398 47.2143 -74.6997 99.8541 1.03674 7.25939 -8.29614 150.309 -46.9085 -103.401 -10.2756 61.1413 -35.7015 -95.6785 1.63361 7.71234 -9.34595 -1.37893 1.27687 1.39861 -1.3711 -58.0327 -125.553 -4.98875 -2.08321 7.07197 -145.33 -4.38296 24.5203 -190.196 165.676 27.8737 5.05782 46.81 -51.8679 -23.8435 -0.865992 0.0211113 -99.9682 -8.91338 59.8959 -0.395956 1.13232 0.0411605 -32.8827 28.3435 23.8546 -27.246 -0.628907 -5.18941 5.81832 -53.4865 31.0063 -1.2336 1.45267 23.3171 -115.198 96.2657 -77.4911 -18.7746 52.8353 -7.13686 -168.183 131.038 -98.3018 -0.00579314 -0.0758456 88.7555 -111.655 -178.22 176.679 1.54094 0.371398 13.3772 -4.59712 9.69445 -4.94822 14.8887 -9.94046 -0.230388 109.119 -192.725 0.913583 -13.3654 50.6253 -16.2717 -34.3536 -7.86251 56.2057 1.3869 -0.161808 -82.1546 -19.9642 161.55 3.65876 -14.793 -1.22263 0.557228 122.06 -122.617 -46.0726 36.9861 -6.35803 1.36928 -19.0238 -7.43351 26.4573 -0.0363518 2.2045 -200.833 198.628 -14.3337 -27.8298 -3.22283 -17.6638 -23.3482 142.625 22.6941 -61.2348 119.667 0.0511418 -3.23122 3.18008 -158.949 18.0237 61.5954 132.711 -194.307 -106.373 115.102 -46.2278 -7.79599 54.0238 -5.59221 26.8625 -70.427 34.7293 -3.29687 2.77924 0.517623 -37.1565 128.3 30.0955 39.9075 10.455 -11.5473 25.5699 -103.369 0.285358 150.663 14.2025 117.744 -33.5033 -123.595 -3.92963 127.524 -0.697865 7.49517 14.8803 0.065183 77.4825 -102.82 2.77367 9.63621 -12.4099 0.292449 -2.63697 -0.108791 2.40989 0.146783 -2.41987 0.120299 -2.42222 0.284946 -2.3363 -0.279358 2.62284 1.35855 7.55912 -8.91767 7.24549 -8.47419 -28.3709 44.5607 -6.04372 -38.517 1.72726 1.74454 -3.23713 -15.2129 -0.103072 0.348702 173.951 2.32441 -0.0248945 166.558 2.53958 -1.16731 -105.571 -46.2818 117.465 2.79944 -147.393 120.611 -48.4644 8.80411 0.532212 -10.9435 8.97433 0.241431 -0.00760434 205.674 23.2766 13.4836 -41.8206 37.5437 4.27685 2.9192 -0.370591 -2.54861 -3.69797 -113.72 117.418 4.93601 31.4026 -2.76511 95.7915 -119.149 176.506 -57.3567 1.23469 -0.997071 -0.679481 5.36107 -4.68159 -21.332 -38.4645 -87.8325 126.297 0.336438 77.2158 -77.5522 6.50057 -138.893 78.4652 60.4276 91.6821 -4.44225 -7.097 11.5393 -142.768 82.8902 -109.153 11.7164 -52.784 41.0676 131.864 9.54152 -81.9544 17.3999 208.516 -16.4714 -44.6654 -65.8545 -44.5159 1.83703 -143.29 -40.991 -24.5364 65.5274 6.69805 -1.86623 -2.70921 168.676 -161.761 10.3241 -7.95316 -2.37097 -4.09072 0.486854 -0.61388 109.637 -109.023 167.718 -17.055 66.0109 136.391 -110.629 151.558 -40.9296 -36.5194 54.8733 -18.3539 0.111315 8.98801 -9.64589 0.657883 1.1154 -6.97682 5.86142 -3.54794 -25.401 -7.92365 -33.8969 8.4108 5.89951 33.4479 -3.46399 -0.064985 2.40468 -0.0990724 2.36808 -3.77343 1.99201 110.092 -78.7489 -31.343 -9.05775 -1.47505 0.387166 -48.5397 157.658 62.8398 -43.591 -19.2488 0.874152 -3.35749 78.8899 -4.21841 -109.134 25.3022 154.166 -175.552 18.2671 -2.80929 -15.4578 28.8375 -80.2786 39.2876 -5.28989 -170.013 162.035 -155.388 -6.64741 -16.0832 -114.299 -123.842 0.284664 0.502387 -2.50217 -16.1327 18.6349 3.23064 132.294 -45.067 225.584 163.255 -7.95836 -5.67635 6.16369 37.1414 1.8879 -4.06418 21.697 -2.90524 22.8826 0.384172 1.65188 -2.03605 -42.4247 -0.790369 5.53204 -4.27624 21.8787 -70.5138 67.7487 2.02563 7.18303 -9.20866 -0.109156 7.78266 -9.30001 1.51735 -27.1396 67.8027 -40.6631 -5.81434 -0.915801 6.73014 93.5312 -88.4542 -5.077 37.2254 -47.1954 -124.846 101.497 30.1799 -40.6586 0.220462 0.0324233 -0.231676 0.170818 0.129047 147.922 -4.02807 -143.894 6.41257 -1.48392 7.80854 -0.521978 -31.6597 194.557 -162.096 -122.063 110.676 11.3871 -0.538457 0.275369 -5.09557 -97.125 102.221 3.34684 -88.3233 -3.08267 -74.1855 77.2681 0.246516 120.575 -4.39796 132.467 -149.323 6.21832 12.3173 -0.218438 -147.053 -11.6088 54.5422 99.4002 -104.496 -0.678767 -5.42145 6.10021 50.9062 -57.6625 6.75626 -158.202 160.407 -0.976043 2.66273 -178.095 38.4105 139.684 89.4637 171.588 -108.658 111.197 -2.53865 -5.47001 -0.88802 24.3218 -64.7354 40.4135 -19.0718 14.1236 -2.97343 3.26827 -0.294836 4.50205 98.4127 -3.35794 1.48751 46.9521 18.265 149.93 6.72593 9.53137 24.5193 -34.0507 -105.759 -12.9608 -99.9239 76.4311 23.4928 79.3147 -142.84 91.4037 51.4361 86.7905 -56.3099 211.802 -177.26 -34.542 -101.42 181.625 -80.2057 59.8695 7.72528 -67.5948 2.71432 -93.5846 75.8183 7.16615 -7.79505 -38.487 50.3465 2.70228 0.676493 -3.21046 -0.165126 2.69561 0.629512 -46.1636 170.405 -124.241 -19.1547 28.4205 -9.26582 -2.52814 -14.6724 17.2005 0.20698 0.520417 -0.727397 -52.8288 47.8824 -9.08016 68.9497 -8.66129 -3.01156 11.6729 -42.9106 39.1389 6.60747 -0.826829 3.68761 -69.182 97.8423 -0.962317 0.855067 -2.84136 21.9424 -19.101 -0.403281 1.02469 -0.621409 -86.9658 90.7154 -3.74957 -18.9168 -3.40792 22.3248 175.289 -208.543 33.2544 147.273 -147.491 -78.9551 9.01385 -0.677628 84.5244 -1.41331 28.5359 -63.9632 113.983 -118.887 209.364 -150.125 -59.2396 142.516 3.8039 0.843653 -59.9151 -17.0553 -4.67997 3.80075 0.87922 -17.1543 -142.398 -13.8023 -9.07331 -97.618 -65.7371 79.1673 -2.43047 -76.7368 -0.269329 0.0285112 -5.09778 123.963 -7.27222 -116.69 10.2119 -6.76174 -3.45011 26.3334 -28.3384 2.00496 -2.67297 -1.7101 6.15995 -4.44985 2.04025 -1.56657 -68.8905 -19.3324 -59.6111 75.8741 -16.263 18.5492 -0.756847 0.0679518 74.654 -1.42122 -0.0441193 -176.09 56.9409 -156.281 -9.44585 165.727 170.852 -189.438 -5.41291 1.38317 -145.822 128.277 3.22285 -236.23 3.20499 -3.43164 0.226654 -1.06573 -155.216 -10.7579 -24.5456 35.3035 -103.151 58.8992 44.2521 10.2545 -14.814 -51.2021 12.0055 1.06748 0.672964 -1.74044 141.894 -5.38071 15.6352 -2.8017 67.8696 -65.0679 103.694 -111.246 7.55185 0.0722544 0.0545341 87.7572 -126.145 38.388 -72.7772 -155.067 64.2937 90.7733 37.4182 -22.8162 -14.602 -43.2976 44.7073 -0.0349911 3.23998 -1.14071 1.00938 0.761987 0.0924243 -169.137 193.657 -191.559 161.478 4.54086 -6.61708 2.07622 -1.64696 2.52111 12.4732 2.46307 -14.9363 93.5376 -182.89 7.56134 -4.51693 10.4129 -215.941 157.4 -0.592295 0.0641972 4.67768 -7.09644 2.41876 -75.1201 78.6035 -3.48337 -39.3286 202.555 46.1256 -3.09801 -132.789 31.9435 131.311 -100.04 -12.7323 -1.7283 14.4606 -0.711041 5.83404 -3.34691 -17.2023 20.5492 -5.83053 25.8228 -29.3708 -64.2843 76.4351 -155.838 79.4028 22.0819 -133.526 111.445 -8.23123 5.2438 79.4224 70.8869 17.5741 -0.0180028 -3.16948 -15.1412 18.3107 181.08 -169.611 2.36752 -2.28524 -0.0822802 -3.87811 -1.30081 -100.896 -118.803 -9.68485 1.22545 5.26656 -32.1048 -67.0643 -7.19037 -30.9502 -55.0713 86.0215 4.00223 99.9417 -94.8438 -5.09788 118.478 -4.49541 1.37846 -0.310986 45.6251 -7.38253 -38.2425 43.5637 -54.8286 -48.0985 6.09537 17.0128 -23.1082 -5.53903 89.3151 -11.1376 9.94536 -22.565 12.6196 24.3912 -6.35653 -54.899 35.9215 3.05484 -2.04261 -9.32218 -1.29917 10.6214 -181.725 3.50528 -2.74991 0.145133 -37.1877 -15.8885 50.3258 -6.91702 4.60923 -69.69 65.0808 -29.2156 -5.98723 35.2029 -32.2977 -9.16584 41.4635 -8.79321 -28.5917 37.3849 16.752 58.5819 -28.2713 37.8026 -1.33718 -4.52444 5.74663 117.313 -1.96238 23.0346 -25.9398 84.8768 -93.8375 8.96068 -91.0541 16.1648 74.8894 1.38551 2.52224 -132.913 9.31815 2.50424 -0.0468801 -88.4553 114.832 -6.9072 6.47521 0.431994 41.438 4.1871 76.4622 11.4113 -87.8735 -44.8545 49.9511 30.843 163.331 -29.4579 89.2944 -32.0046 129.133 9.55306 -11.6897 -144.712 -49.1926 -164.033 -36.6882 -21.419 -10.5265 -105.107 -66.1519 37.492 76.0846 8.94703 -11.0302 -6.72607 -19.7388 184.512 14.4032 22.5126 -25.9205 -7.71338 44.3035 -36.5901 -123.306 -54.7885 -155.831 178.812 -22.9809 153.974 -179.028 -88.4926 19.6021 0.44474 8.14358 -8.58832 -10.9277 -3.08539 14.0131 168.259 -89.7401 -82.7801 5.18978 3.93601 -3.16013 -0.775877 -0.0361418 -33.5074 -176.12 31.4084 51.0012 -10.636 4.50995 1.90262 84.288 -66.4391 83.3181 -114.978 31.6602 22.9014 -29.6274 117.452 -3.546 -17.5973 21.1433 63.2319 100.099 -7.61026 -114.305 119.211 -4.90628 6.18915 -7.89925 -120.275 -6.00228 126.278 -22.0136 -0.107384 0.984231 90.263 4.15492 -3.10417 -63.8454 66.9495 19.7534 -20.9916 -170.763 170.872 -0.108277 -37.2718 50.6799 -13.4081 -91.2283 114.602 4.82934 0.115986 19.2548 -31.1742 11.9193 7.78516 -8.46393 105.629 -4.39668 -101.232 -11.5216 -2.58855 14.1102 5.56412 -33.0051 38.2716 -123.084 145.183 -22.0991 -12.476 -78.7656 6.95418 71.8114 -3.13922 1.1285 130.608 -42.8506 -1.1913 -18.3297 0.879322 3.88748 114.64 10.6581 20.0916 -30.7496 -6.69678 0.882442 21.5769 -24.4182 -10.3117 -4.32632 14.6381 -3.86107 25.167 -8.92123 -49.5223 58.4436 -5.17691 20.1289 -14.952 20.4595 -23.8064 31.8995 54.891 -1.16246 -5.61753 6.78 -150.45 147.418 -1.33015 -4.39838 -81.4311 56.8948 224.339 -19.7304 1.81554 -3.23689 -0.132112 2.26356 -2.74409 6.68312 -7.11399 0.43087 -188.83 94.7691 -69.482 -19.0107 -69.096 8.19529 66.4585 -74.6538 106.16 11.0054 -117.165 -75.6121 151.64 -76.0279 -149.17 -13.0245 1.18739 -57.4011 72.7726 -15.3715 6.59662 76.856 -83.4526 -6.94602 31.4653 -140.724 -4.60681 -0.709967 0.647272 0.0626945 10.4464 -3.71354 23.1743 -2.44238 -1.30762 -85.9962 57.4189 -67.6945 10.1046 -10.4601 38.4347 -8.4994 -1.69136 -99.0971 55.0425 -63.9559 -1.08496 -1.66495 -110.085 -65.0297 81.532 119.739 -127.011 84.5038 -33.4109 8.78202 -9.69782 -19.0627 -56.5771 -0.531719 -1.78851 2.32023 49.1112 29.2633 -78.3745 -1.46882 1.24232 0.226503 144.188 -140.957 -81.017 11.1057 69.9112 5.96266 -5.51792 52.8261 -60.6886 -1.24496 -157.784 159.029 119.241 1.33403 5.85085 21.4462 -24.9922 83.4579 -85.8884 -2.86443 0.108528 79.887 -89.0926 9.20562 -0.384671 -3.30105 8.65053 -5.34947 -48.7637 41.0503 0.104211 1.75984 -1.86405 23.8328 20.5344 3.64553 -4.19463 -3.84144 3.70078 3.34117 -3.74605 4.07053 -3.72786 3.65865 -3.65081 -3.72869 3.66303 3.75209 -3.67566 -3.50693 3.65282 3.74469 -3.67505 -3.82322 3.36555 0.457677 3.52355 -3.35516 -0.168389 3.9337 -3.71743 -0.21627 5.47311 1.00371 -6.47682 20.67 -24.7342 -0.357183 3.27237 -2.91519 -116.661 -50.0031 49.9669 58.7544 81.3501 5.91566 -81.6746 -31.9466 113.621 -2.08795 6.6288 -3.0489 -0.321337 -53.0941 44.1729 59.8853 -8.84231 -62.3873 163.396 3.82322 -3.37137 -0.451853 -112.438 112.178 0.26039 96.8024 0.722426 -97.5249 0.212351 -1.48523 49.2 -23.9748 -25.2252 51.2114 -59.0074 -41.6146 44.6139 -2.99931 102.89 2.7396 -35.752 -63.9627 99.7147 9.77826 -0.974148 72.8038 -144.583 74.4122 137.39 -9.39305 -39.3707 74.3904 20.6152 -24.8914 -1.45624 1.02591 7.42164 -0.483599 30.1774 32.6624 40.7863 167.984 -133.365 -34.6191 -30.9349 -95.7187 -155.2 -0.247669 155.448 -145.989 148.763 -2.77421 -37.5042 -16.0823 -2.24744 -14.3071 -107.756 118.53 -123.026 -108.101 0.247856 -9.9876 -40.0155 -16.8979 11.721 1.65544 -2.19755 0.542106 -9.88207 142.799 -145.473 2.6744 -48.609 11.3372 -20.7667 -8.09111 7.38007 3.42378 88.7096 -123.008 45.869 -53.2516 2.94034 15.3268 -73.2917 8.15664 -1.71454 -6.4421 6.82649 -70.5703 94.877 2.44368 -3.35922 2.52975 0.829467 -177.585 139.539 24.5563 -27.6607 3.10436 -0.0414477 45.0347 -56.6435 15.7586 30.5769 -109.248 23.1176 4.23086 -49.6711 45.4403 1.51683 -1.75083 -108.239 26.564 8.68971 -9.38758 26.6999 -79.806 -181.492 80.0729 3.92364 -85.6502 82.8485 -174.9 235.947 -1.78696 85.0263 -87.7602 2.73385 7.22843 -0.744549 66.0788 -91.306 25.2272 -108.629 -0.978743 109.608 125.335 -132.181 6.84681 -5.82392 -1.20033 0.754121 1.39019 -2.14431 18.7035 3.1718 -0.605148 -16.7815 3.93788 5.2467 -10.6274 77.3925 -1.25944 8.36435 3.26592 -11.6303 12.6065 0.722274 0.527006 12.4561 7.94307 -8.73344 78.8376 -5.08078 95.8713 11.4492 -107.32 4.33084 15.7981 3.09883 -25.9892 -8.68067 -22.9046 31.5853 -113.392 57.3113 56.081 -95.5065 71.3396 24.1669 -170.096 150.619 19.4775 27.3735 4.03262 137.995 -143.184 5.18906 -128.88 9.50339 119.377 102.158 -0.4806 2.73635 -12.4969 162.623 -150.127 -1.80804 -0.414118 2.22216 26.1904 24.5438 8.53467 2.18683 -35.494 -87.4606 122.955 -82.93 82.6563 -244.93 208.536 19.7592 -77.8238 62.5061 15.3177 2.57086 -9.33631 8.17384 7.47263 154.563 -5.34496 155.721 -150.376 0.64972 2.82714 76.8488 -17.9698 1.74699 19.9407 -102.095 -6.40671 5.08969 1.31702 20.6709 -27.617 -21.9482 2.62162 -80.5336 -72.6429 79.2395 -59.0518 39.9891 128.976 115.062 -119.459 98.0556 -1.2531 4.31394 -4.53426 0.827857 -0.79899 -0.028867 9.7497 -2.03736 -59.5041 43.3343 -170.608 151.693 18.9154 86.8719 -6.9849 -78.7509 75.6467 2.80081 19.0245 -88.5064 13.4904 -73.4055 -0.896578 5.84057 -1.13355 -174.694 69.5864 -24.3237 158.15 95.7056 -96.3195 28.3575 -3.80119 84.1193 -77.1651 23.6681 -2.81318 0.198548 82.374 -82.5726 -49.9163 -28.0822 8.20414 -13.3814 -0.392769 13.7742 -48.0033 -9.65912 -112.043 200.16 -88.118 2.93805 11.0731 -4.95119 31.2901 7.14459 0.39926 -0.287945 81.8565 -32.7454 21.8405 -152.542 49.1588 -8.34955 -4.43918 -15.0443 19.4835 150.756 -51.3554 -72.0424 108.248 -28.5177 27.4608 1.05692 50.6324 -1.18115 -0.18705 0.00274095 17.5484 -77.1595 -3.44731 27.3019 -77.3759 88.4817 116.688 -112.186 10.1854 -3.99648 89.8214 -85.8249 72.9816 16.3335 3.16872 -18.2937 137.14 -4.9775 157.654 -152.676 1.33312 -1.44552 86.9469 75.0709 -6.39272 -4.03868 38.3348 -47.5006 0.771926 -0.784336 0.0124101 0.49557 0.00984702 38.8916 -15.0587 56.8189 -105.914 -31.8456 -3.89145 3.35973 109.035 -110.726 -118.264 -10.6157 2.12054 -1.83713 47.0614 -14.5486 -4.20787 -147.074 0.837546 34.1298 5.33012 159.315 -1.01373 -158.302 -3.75362 43.9212 -53.3143 163.092 -86.6566 -0.937097 -3.57798 4.51508 -97.0969 -9.03179 112.048 -111.325 50.8494 -45.9374 10.4103 -13.8077 -165.38 167.488 -2.10824 15.1339 -28.5382 -54.6984 39.0171 15.6813 100.267 -39.4047 3.12407 -7.52412 -169.748 123.584 45.6812 -55.6688 42.3808 9.24054 6.07372 -127.982 189.577 116.247 -6.19722 25.3803 -19.183 0.0608295 8.66732 -10.3819 8.20261 1.72421 -0.871051 -0.853155 8.50646 9.01071 143.898 -145.143 -36.7958 -114.087 -47.479 -2.32793 0.0884916 2.23944 -3.56157 -80.0824 96.1683 -16.0858 -18.1434 4.59063 13.5527 36.2616 8.29913 1.59132 -147.161 140.105 7.05604 4.46372 -14.7755 159.607 -0.291728 3.27194 -2.30809 -34.5255 -153.861 -3.6064 25.3333 -21.7269 -139.444 -18.3403 20.5663 -20.5858 -23.6392 -122.476 146.115 -117.763 2.18236 -154.258 152.076 153.752 -138.719 13.7168 -58.5713 26.3364 -0.816222 -80.4389 10.7617 69.6772 0.484002 -0.183791 -0.30021 32.0881 81.9052 104.966 -9.26067 39.0066 -124.33 120.632 0.0415785 49.1568 -171.79 122.633 20.8486 -143.932 3.85111 30.2628 -34.1139 -126.02 90.526 -0.35172 1.15895 -8.09963 149.961 2.44294 141.98 -132.476 18.6711 -86.704 68.0329 -143.838 69.9302 0.81601 -0.0356508 101.588 92.0872 -3.56184 23.2927 -19.7308 -7.62127 18.3139 -114.053 8.294 -158.28 160.961 -2.68129 -3.83008 -0.346769 -0.875864 -104.048 115.054 2.11821 -2.61877 0.500568 -69.6921 120.619 -42.2119 -39.0488 -54.6833 22.4913 32.192 11.5408 -8.93256 8.25308 3.72869 0.099505 -3.74469 -0.462328 -3.75209 -0.465132 -5.05279 5.78377 -5.78377 161.969 -167.314 -0.993769 -7.71841 -15.6383 -156.243 194.02 -63.8139 -34.1838 22.9522 11.2316 -106.6 -135.619 -39.644 -170.559 210.202 -76.6762 -1.12964 41.7672 -53.9059 12.1387 4.36523 -5.40956 -26.8441 0.911286 25.9328 0.539865 3.07059 -3.61046 -4.49035 -1.91636 28.1283 -7.10839 2.40937 -13.3371 4.92521 -4.40124 0.00713854 -5.4192 26.1153 83.3495 84.909 -60.1607 -0.214394 0.36957 -0.155176 57.5663 -43.8496 116.852 -106.627 -10.2247 0.969964 -0.685636 -0.284328 19.4582 -18.6378 -4.41493 -15.7836 20.1985 124.989 8.47452 -1.21512 3.68946 -3.72513 3.68089 -3.7126 3.68095 -3.71053 -3.68312 4.04518 -3.67412 3.70474 26.0561 -20.8972 66.5709 87.242 -199.285 80.8999 -78.2259 3.53787 -3.15369 -3.24077 3.49913 -0.258358 5.23982 0.600742 -7.64846 168 -160.351 -180.523 4.04614 176.477 -100.707 0.803843 99.9034 3.20296 -3.20296 3.64553 -3.61485 3.34117 -3.84144 -3.16976 3.16976 3.34263 3.83988 3.65865 -3.73844 3.73844 -3.64334 3.59022 -3.41935 3.41935 3.68036 -3.50693 -3.60043 3.98041 3.52355 -3.60222 3.38048 -3.38048 -14.2089 -9.14516 -14.5281 -3.54415 13.1804 -13.4759 -74.7091 -11.3324 0.565091 -7.15651 6.59142 6.4384 -133.349 126.911 1.11926 -1.08648 75.0003 -150.612 1.08147 106.044 -13.276 -64.3189 9.05785 -1.7678 -26.7499 4.25008 -9.99014 -23.1481 33.1382 -33.397 116.715 89.3326 -76.673 18.8505 40.0246 -21.6569 -36.9144 17.8231 -22.2623 104.985 55.0216 -55.8948 77.7874 -21.8926 34.8404 174.524 94.565 28.8893 -152.755 -85.3313 62.3854 -95.208 -15.0708 -21.4357 -1.59385 -1.16773 166.804 -167.817 -167.271 -15.3628 111.234 -0.819846 -30.3074 0.0711428 0.399676 -0.470818 -55.0684 50.1552 4.91313 2.26882 -31.4088 27.9615 -148.222 150.404 4.29313 -104.485 -0.235857 0.486206 41.7651 -10.475 25.0692 11.1785 117.891 -121.322 -2.57127 8.57049 1.46219 -1.42976 14.3139 -2.90513 -16.786 77.0198 9.72091 -2.53788 -29.2271 -93.5937 122.821 -0.235505 -0.229941 -0.170702 0.129826 0.0408759 -17.1357 0.640545 94.5542 -126.501 -9.36536 7.27741 1.44769 -1.24206 -19.2579 23.8067 -4.54881 -30.2937 22.5003 142.827 5.17764 -0.316109 -0.222348 34.2185 -8.34372 -25.8748 73.5366 -0.327211 -73.2094 -35.8789 -23.1729 -94.1967 105.646 1.02799 -14.4094 -0.49691 0.0936288 -0.183661 17.2962 -105.751 190.896 -71.2112 -4.12329 -13.0136 17.1369 0.314176 -13.4256 2.05669 10.0308 21.2093 -1.26767 -71.0699 1.38995 172.754 -89.4042 -185.74 30.711 155.029 -64.2139 11.8446 52.3693 -46.6386 58.355 -5.83023 58.7135 -14.2023 90.993 -76.7907 -152.942 -93.6323 152.983 -59.3505 0.75839 -62.2166 137.183 -74.9662 8.93053 11.2538 -39.5251 -1.6187 9.17781 -0.0296903 2.80804 -12.4412 16.4915 -4.0503 7.73641 -12.5857 4.84929 -5.00389 -21.2833 26.2872 0.638047 0.386643 24.3 -28.5079 17.1544 -117.814 -144.002 0.0814117 -2.77924 2.29864 -81.694 12.9431 128.025 -0.402474 -1.06635 -179.53 66.7172 -131.529 118.24 13.2882 4.88168 89.2939 -3.02031 0.0864677 -0.285706 -1.68892 8.93441 167.25 -159.778 -0.508515 -31.1742 3.49627 -263.851 189.597 -2.16175 228.607 -226.445 -27.2624 21.6702 -29.301 21.8675 61.7808 -7.13321 108.646 42.912 83.6062 120.205 -127.446 7.24049 -9.46023 0.991208 8.46902 0.237625 -0.412916 0.17529 30.293 -1.90277 1.15611 0.746653 0.231065 -19.8202 -2.23157 9.24683 -18.3757 -52.5768 29.7834 202.375 -232.159 -0.820858 -23.5891 -10.5947 3.94471 -3.01897 -0.925735 127.047 -4.98768 -0.188365 0.0590806 0.129285 155.334 -167.831 105.199 4.43769 0.0416518 -13.3007 13.2591 -74.562 14.0275 -0.0415813 0.565297 -0.523715 -154.342 -31.3985 -28.9745 25.3681 4.03647 -4.79802 5.88201 1.03231 -6.91432 8.35464 1.18197 -9.53661 21.9601 -25.5216 -12.0506 -102.003 -141.256 5.16718 -2.99665 -0.0567881 54.9526 -8.14253 35.8325 -29.7874 -6.04509 -4.55423 -3.86705 -23.2951 74.8798 73.31 -148.19 -0.315619 -173.351 109.175 64.1763 -26.9984 31.2113 -1.03307 1.43399 -21.8873 3.05079 -224.471 220.089 -0.660015 -2.87508 -5.04871 -10.4801 -4.73182 -29.7436 22.0651 7.67849 1.10559 11.5362 -12.6418 15.3025 -0.446342 -0.483828 -28.2313 -21.9225 50.1538 -222.852 169.665 53.1868 -111.622 -108.955 -41.0856 17.1108 1.10883 0.340285 2.03293 -2.37322 -25.4833 20.0972 -41.7435 222.096 -10.808 -211.288 34.1082 12.9532 -126.957 7.65535 119.301 114.258 -102.704 -11.554 -1.29084 1.5367 50.5931 -38.9082 -11.6849 -14.0501 -80.3017 2.39697 -2.79944 -26.6093 23.0474 30.2833 -33.4214 -11.9119 119.317 13.142 -132.459 163.971 -68.8211 -95.1504 -2.10692 -80.5697 153.28 -72.7098 -0.308768 0.622944 -3.26106 25.5378 7.01207 0.713672 88.7941 75.3561 -164.15 -31.994 -0.273774 -75.1603 -84.4114 -87.7196 172.131 -169.039 -24.7724 18.9721 5.80034 -113.365 68.1465 -0.268516 -0.183783 22.8522 0.19957 0.207674 -66.7926 79.0475 -12.2549 8.36805 -10.9393 -192.399 -9.03282 -2.56713 11.5999 -108.512 137.334 -0.0608012 17.4953 -27.4854 176.448 -7.77223 -74.2617 132.191 -26.0071 0.60611 -17.7598 51.868 -63.0425 195.754 1.35424 -1.01396 21.4008 6.72745 -5.89249 120.93 36.4723 12.6452 105.977 -98.4083 -28.2452 21.959 6.28625 -187.155 -64.3291 -17.6929 82.022 19.5367 -47.0522 -29.6746 76.7267 -27.3709 8.21617 -83.3398 -6.17327 -28.4268 22.2295 0.13476 -1.369 1.23424 -28.6497 21.6761 37.0109 12.2726 -1.81757 38.5867 -46.8653 8.27854 21.8158 0.898817 2.41726 0.35938 -2.77664 2.54109 -0.485732 -2.05536 -26.08 21.0313 -0.504373 6.3885 -1.14867 -30.227 21.0818 2.71749 -3.226 87.7857 112.258 -200.044 5.14667 1.87264 6.51349 -6.50057 -0.0129218 39.8865 -41.6219 -79.6368 -1.05204 6.52515 -0.668419 -132.007 108.367 -7.02491 -148.175 -73.6527 77.7121 -4.05939 7.06398 -6.17031 -0.986198 0.106954 0.27295 -0.379904 14.6927 -51.2121 23.0392 -10.4785 36.5561 35.7698 -72.3258 5.06878 -3.60076 3.70497 124.56 -122.191 158.91 -4.74388 -126.463 -62.1698 188.632 -90.4107 -35.6093 0.704164 0.2658 -9.84577 2.14424 -205.962 0.0882444 5.36389 -6.18475 -136.478 -0.827673 12.3639 -0.242268 25.7762 -42.733 0.301717 -0.441191 42.0206 88.5872 11.709 -11.6674 73.4593 -147.834 74.3749 -0.124032 2.19443 -2.07039 -16.1951 -48.0188 -26.1152 19.0032 31.994 -42.9201 10.926 19.2838 52.1533 -71.4371 -20.7502 -2.59666 -8.34683 -23.6728 2.8363 21.7654 -24.6017 -10.7576 -2.20661 47.6399 -11.1677 -62.7078 -110.644 -0.217168 0.416738 -5.25991 15.1215 1.59689 1.88651 -2.08361 0.197098 -0.0702864 2.09873 -2.02845 -1.87242 2.02331 -0.150896 0.222625 -2.10148 1.87885 1.88704 -2.09927 0.212238 -82.2511 62.6005 -17.9183 35.6071 -17.6888 4.37806 -4.55394 13.7911 -68.958 49.0187 -10.432 210.637 -193.792 -16.8458 12.3568 93.6869 24.2306 -4.88345 3.9074 13.5354 44.0309 150.098 -50.0234 -16.6054 -58.2842 74.8895 0.695183 1.02902 67.0866 -44.2002 0.0205527 -0.755006 -0.0659794 -108.563 10.4114 -1.42339 -0.27342 -0.70944 0.982859 -1.11455 1.13479 -1.20508 -53.6129 -17.515 -20.0437 15.9204 2.0373 -1.78538 -0.222216 0.026124 -65.0143 156.471 -169.768 0.0813336 -2.45732 145.277 -149.442 4.16508 1.85383 -0.198385 -124.026 114.95 5.05279 45.1476 75.463 -0.118566 0.332822 7.30941 -2.63172 102.127 44.7491 60.7171 -148.579 120.297 -75.5476 112.845 -112.041 -4.41869 -30.7869 -35.1497 104.046 -0.258023 0.300198 -0.042175 -3.29687 1.98719 23.863 -2.77002 124.476 -7.47585 -159.736 67.2584 92.4773 20.8152 -17.9789 36.8063 -26.2243 -188.449 22.624 2.05941 0.480172 -128.215 1.25862 71.3213 -58.866 -3.18284 27.1387 -1.36004 -0.33649 80.5921 -72.3444 -8.24774 -0.194224 0.0252029 0.169021 38.4012 160.085 -198.486 66.3278 -15.4784 -0.0199611 0.746977 -23.6193 -139.665 19.9027 57.1645 -77.0672 54.4421 -66.3863 54.5432 11.8431 -68.2171 6.09382 -44.3364 -130.73 82.2657 -19.2307 62.5913 -43.3606 190.729 -38.5543 -152.174 150.422 -3.14901 0.312832 113.945 169.731 -250.023 209.848 -175.008 -39.2782 -15.4051 142.365 3.79733 -146.162 -0.563412 -1.78531 2.34872 -1.22311 -2.71737 3.94047 45.2226 -21.5055 -116.176 137.681 0.391329 3.55338 12.1719 37.7792 9.34516 1.31107 -7.37711 -9.9278 -1.61951 -12.9485 -3.2353 16.1838 -4.88801 4.22799 161.144 -0.0497174 0.351435 -130.617 114.475 8.69116 -0.908501 -201.702 61.5538 -178.046 202.48 -24.4342 -10.6385 -80.7241 91.3626 4.13861 -14.9959 -0.177411 0.391111 -11.6558 5.71191 -160.336 142.466 -12.9915 -6.08034 -64.3334 -2.22979 -0.640232 0.01562 0.0964128 24.507 -2.26265 -22.2444 -162.367 -24.7872 172.067 -168.021 27.3436 38.9842 -122.43 176.798 -54.3686 0.0424033 110.638 -10.1417 -100.497 32.0097 8.01495 1.59291 -1.96972 0.376812 -1.62814 1.89032 -0.262177 1.68839 -1.79065 0.102261 1.6729 -1.79194 0.119039 65.3771 71.8058 9.5743 -4.47006 -16.8724 -77.064 -1.95969 2.11451 -0.154819 -1.9625 2.06598 -0.103485 -2.7143 1.865 -1.39514 -0.469854 1.54863 -1.57582 -1.85492 1.39603 0.458886 5.6937 -1.32847 -9.60718 54.3145 64.6792 -1.97935 1.50325 0.476094 1.63584 -1.63892 0.00307785 -1.62337 1.63968 -0.0163079 -1.62425 1.63344 -0.0091936 -167.835 -0.0177963 1.68171 -1.66391 -0.272377 -1.60348 1.87586 0.363916 1.52338 -1.88729 1.56986 -1.92158 2.88694 139.2 -142.087 87.9863 -18.3706 0.919287 17.4514 40.7853 -38.083 -6.87303 1.26408 -9.49203 -43.292 -6.82534 14.5617 -14.3783 129.692 -205.115 75.4232 -1.1581 1.27719 -143.739 -8.34013 -84.8795 119.605 -34.7253 9.46554 -22.8362 -184.858 207.694 8.43962 118.608 -81.9313 -1.98736 8.75673 -6.76937 -30.1327 75.4521 -45.3194 -69.1012 -3.77965 19.3013 -15.5217 123.826 -105.477 -18.3488 8.98147 -35.6996 26.7181 8.96532 -2.77617 -8.31188 -1.33401 -7.92406 -41.9923 6.23674 -1.65395 -7.31802 1.57739 -106.085 -73.7533 -61.2574 -12.1481 21.6441 -24.5702 8.15854 -0.992392 75.0393 -73.1003 -60.7013 -3.26191 44.3554 -170.818 -11.0406 2.00777 -3.34696 -79.2131 -8.0149 87.228 -126.883 1.34978 0.494502 -1.84428 103.138 78.4876 0.302324 -0.126679 -7.01724 1.0634 -17.5899 -63.7574 22.5137 -5.50085 2.24661 -69.1821 0.770966 -86.1549 -67.9618 154.117 30.0696 -3.73612 8.26924 21.5494 182.338 187.838 -3.34009 2.41716 0.922927 139.209 -131.554 19.2416 1.51503 -148.128 172.172 -24.0436 -173.531 241.788 -68.2563 66.8427 -54.9549 -11.8877 153.361 37.3672 104.955 1.04198 8.07 9.00323 181.206 -204.042 7.66207 -0.650005 33.9132 -5.56973 -113.733 0.0663381 -0.254703 81.9188 -64.3704 29.9595 79.2396 -109.199 -184.6 -8.03814 -1.26187 0.112021 -2.78161 -69.2117 99.1712 28.9931 -7.5923 -20.0715 -102.826 -5.08384 18.8834 91.4789 82.7178 -174.197 -44.3663 187.87 -146.789 142.761 -6.2384 -0.668805 0.0226968 -0.754379 -63.1319 -23.6335 -3.61242 -179.239 209.022 -6.09724 -0.707367 6.80461 0.387429 1.85918 -195.795 157.24 -0.0545546 2.05049 -1.99593 49.7873 13.7995 13.5629 -14.2563 27.2724 10.5302 71.0703 152.267 -78.9571 -15.5157 -2.36943 -15.4681 17.8375 154.208 3.44557 0.130482 151.636 3.16138 78.7031 29.7829 -3.96012 21.2249 -3.78873 1.14964 -7.59174 -32.3598 40.629 -8.18739 -142.002 150.189 -18.5736 -2.84544 10.6538 96.6522 -107.306 -0.586426 5.4839 -4.89748 -8.17903 31.0804 -7.35442 -1.03196 8.38637 7.85732 1.55633 -9.41365 -0.128594 -29.7921 90.4831 -60.691 108.555 -109.685 1.13005 -2.07796 2.75092 -0.128131 -0.316562 -38.1901 210.866 -172.676 136.626 3.23983 3.26107 -10.551 -133.451 144.002 -37.0245 -5.36658 -7.57361 49.0116 -8.01487 -0.221205 -1.80223 2.02344 -0.175961 -2.24233 2.41829 -53.2476 -9.72621 1.60935 -1.58911 1.84022 -1.43316 -0.407058 1.74874 -1.43403 -0.31471 -35.0333 44.0366 -50.2887 -10.1273 -6.97992 -0.815129 1.58429 -1.65333 0.0690415 1.5956 -1.63253 0.036927 -1.25485 5.06208 -0.323426 1.85333 -1.52991 1.95558 -1.54291 -0.412676 1.71853 -1.70806 -0.0104714 2.1558 -2.1559 0.000105902 -1.74578 1.87626 -0.178179 -1.43577 1.61395 -106.349 5.11674 0.856594 84.2138 -85.0704 -4.27525 -47.8656 -8.91038 41.1011 -91.0843 15.174 0.770449 -6.35703 5.58658 103.72 85.5185 23.8667 -0.566209 5.04488 -4.47867 0.335497 -127.284 1.32556 125.958 12.3678 -14.7249 2.35711 -28.0208 -3.63898 -63.2194 83.1221 -36.3694 -6.24734 42.6167 -0.668623 0.0923365 0.576287 0.829676 -0.0577497 -38.3583 27.6004 -123.914 -0.324472 0.193835 0.130637 -46.0998 -7.96639 -6.02184 26.7925 5.99327 -61.7678 35.1608 87.7938 -62.6897 -40.5713 -2.42072 -13.7951 16.2158 -70.5898 -86.7833 157.373 -0.680922 5.05632 -4.3754 -3.12338 81.0744 -11.1632 -1.49426 1.69092 -0.196658 -16.8829 -2.84751 26.1289 -3.09429 -155.744 -6.76205 -1.02523 7.78728 88.3423 1.368 -1.92072 -6.7131 -4.96852 76.7799 36.6175 66.7358 29.9343 -0.376589 -3.35515 130.266 -0.108482 76.1931 24.9919 -3.22651 -72.6309 92.233 5.44127 -212.869 173.047 39.8228 -24.784 -3.55439 -154.436 -8.78208 -1.24919 25.9729 -3.46032 26.8555 69.0007 -122.729 -69.0557 5.21035 -43.1023 35.8027 7.29959 52.4522 -67.9306 -10.1345 11.4227 -1.28818 -1.70482 14.3408 -12.636 -110.549 95.1857 -100.626 102.385 -1.75943 12.5677 -12.8644 6.40173 -128.877 -31.4865 -25.0906 12.8389 -8.78884 -2.13743 2.44615 -0.308725 12.0834 -193.382 181.298 -31.4694 4.47099 -2.17071 6.2155 88.8798 -153.164 -69.8152 64.8466 -143.656 1.94114 106.614 -4.02443 3.35601 -21.4568 -33.4422 13.2194 -55.693 42.4736 -25.9743 -2.10041 -4.99604 -77.3132 180.451 25.2264 -3.64951 -0.0843528 -0.232427 0.31678 14.7141 0.460278 0.481204 -3.29589 -14.2941 17.59 -90.1549 -21.1067 -92.8473 113.954 -6.05715 -1.72468 1.70268 0.0220029 108.095 -67.7115 -17.1139 12.4359 4.67797 -105.354 140.546 -35.1918 167.543 -140.865 -26.6778 -108.176 -62.5173 170.693 -96.4572 -15.0662 -1.43609 1.71429 -0.278198 154.496 -45.8491 108.718 -15.0306 -17.5556 -3.21113 0.225164 0.0158528 -0.241017 -1.52424 1.73013 -0.205889 1.67653 -1.55854 -0.117986 -7.35992 -1.60628 8.96619 26.1161 -5.50094 -26.6001 30.671 -4.07091 23.7538 -3.29436 30.9401 -7.1431 8.46078 -4.98689 27.0616 58.5939 -13.5591 -17.8171 -5.29104 -7.64989 -149.928 157.578 22.6161 -27.2369 43.0326 6.1262 0.167893 110.435 -10.4932 25.941 -4.49481 -25.4273 -3.94348 25.3662 -4.69621 2.29864 -91.332 -11.4101 24.8943 -5.02267 -19.8716 4.10142 146.321 -61.969 -4.7755 -1.19047 5.96597 -134.343 -39.6263 -3.16123 -14.2226 17.3838 -18.4599 -4.0176 22.4775 -12.6436 -5.08743 17.731 -6.80505 -0.427266 6.27811 -6.4245 127.056 0.379286 138.77 -6.90606 3.65693 3.93735 -147.087 -15.28 -3.12293 -17.0373 -3.73634 -7.25031 -1.66736 -16.6274 -5.87151 22.4989 -15.2741 -6.03155 21.3056 -5.62605 -0.509762 4.4269 -4.79749 2.80464 -64.7736 -85.1873 -9.65652 70.1467 -17.6945 -9.47784 50.5282 92.5212 -7.6444 96.5392 103.621 -0.857857 -1.04491 -70.9416 -23.9398 -2.99767 -102.68 5.15476 -5.07242 -0.633097 -9.2954 10.5229 -1.22749 -73.3537 10.0652 63.2885 -18.4715 -6.84795 25.3195 -3.67129 2.07488 1.59641 -1.54344 13.1254 -11.5819 -4.86252 -1.97926 -0.40883 -3.82624 4.23507 1.01865 -1.01865 -9.53712 -4.03198 -13.7657 17.7977 94.8566 18.0423 -112.899 0.408679 -168.018 -5.02139 -1.45475 6.47613 -121.816 135.911 -14.0955 -19.0694 -2.22121 21.2906 95.3944 -6.63894 151.535 17.9073 -22.5407 -92.5945 -22.9425 -2.99736 10.09 -0.536908 9.77657 -0.829538 -16.8308 -4.23542 -92.5112 19.8803 -5.69567 8.5286 -2.83294 -7.30496 -2.04099 -1.73374 4.85162 -3.11788 -4.96431 -2.64007 7.60438 -18.9556 -12.1818 -4.5092 16.691 -13.9527 -4.59193 18.5446 -44.6804 -6.43864 -14.7239 -5.31982 1.334 -1.68788 -135.812 -6.0527 141.865 -6.37278 -2.64639 9.01917 -90.8895 121.83 -137.586 203.327 -164.926 -7.10015 -132.704 139.804 0.609686 -16.9945 -4.97574 21.9703 -34.8245 -5.83406 -87.3795 -6.45793 -5.47857 -16.8182 -5.44407 9.1021 -0.958518 -91.0805 -32.8336 -7.86557 -2.45041 10.316 -23.3877 -3.48772 3.68231 -4.35994 -8.89119 37.4346 -28.5434 3.73172 3.64747 -1.11772 -4.32955 -1.83613 6.16569 -5.47116 6.38702 -0.915864 -2.54308 -124.745 127.288 -8.67483 9.23298 -0.558152 176.312 -19.8407 140.596 -75.219 -17.8266 -6.13919 23.9657 -114.813 -55.2832 -57.2881 38.0575 -7.08694 -1.00417 144.807 -141.92 -13.43 -98.2124 111.642 0.120397 0.0428958 -8.41708 8.37418 -103.748 -84.2621 188.01 128.215 -33.6612 -3.14786 -10.5632 48.8979 129.41 -9.67158 -22.4878 -3.43267 8.35456 -0.569397 40.549 -58.3088 -1.6477 1.26507 -73.0397 -161.17 -2.62359 105.513 -5.30558 -2.59367 27.366 39.7206 -6.41069 -20.5889 -0.60751 5.33123 -4.72372 -7.92879 -0.659533 -7.02525 -1.27089 152.653 -158.827 -21.5968 178.972 -91.1864 -45.6287 -6.99325 52.6219 178.607 -24.6327 -92.2141 159.835 -67.6206 7.89367 -165.277 0.284197 -0.0542553 -0.229941 28.5712 -4.27119 -42.7095 10.6412 10.4425 90.779 -69.8048 25.9229 -72.9751 -4.51139 190.119 -36.7572 1.61374 -107.042 -2.64243 -0.268181 1.02657 -94.5716 -5.818 -17.4398 136.816 125.909 -7.30147 -27.0586 -4.3502 -2.44876 14.3784 -11.9297 74.6319 88.4598 91.4102 -3.42385 -9.7516 11.6944 -1.94283 -7.77421 -0.689716 66.2774 -2.23617 0.108452 -7.89915 95.6162 -87.717 -22.5486 -3.44055 7.31036 -0.627234 102.063 -67.937 -34.1264 35.2524 -54.6769 2.85606 -0.613039 -2.24303 -3.29147 -7.16211 -0.47878 -7.04896 -2.7968 0.68215 90.518 -1.29475 -89.2233 -21.088 -3.33018 -157.003 -3.33391 1.1427 23.3643 126.756 18.4268 36.8178 30.985 -10.0319 21.2486 -11.2167 -5.35685 4.53002 7.73361 -150.024 33.8483 -96.8827 -62.6066 159.489 -142.56 -4.60064 129.395 -9.18998 -0.638785 50.9277 -7.89514 0.0274468 -0.0370358 0.0256993 -0.761578 0.412778 19.0454 4.90778 -0.480877 6.9967 -77.567 9.08535 2.71619 -11.8015 -4.13018 4.00615 9.78361 -1.0016 -122.697 -4.7487 -20.4452 -3.36118 -4.03892 -35.7121 -13.6736 -49.7166 -35.6147 -21.85 -7.89355 -20.9004 -3.1077 -85.0208 69.396 -11.9771 -12.1163 183.338 -17.0685 106.622 -124.062 -6.10386 7.1737 -1.06984 66.1506 -11.1081 -3.87611 76.6207 -145.579 -137.751 -2.64361 14.2849 -11.6413 -112.652 -18.8762 26.0211 -4.06102 -4.17268 -85.4349 -3.38428 1.80904 -0.856014 -0.953023 -7.81378 1.32322 161.606 -163.768 -17.8856 83.4795 -65.5939 -3.87755 -1.96448 -14.1036 12.8044 -8.22865 -62.2536 -73.4867 -9.61117 11.6535 -2.04237 63.2272 -10.4011 53.4297 -7.56072 -161.438 92.8772 0.0547243 -9.07625 10.0129 -0.936701 13.2294 -4.45601 3.50002 -31.9358 -70.7957 -7.04556 -95.8815 122.69 -4.15908 -103.086 1.35597 -2.5428 -2.1248 18.0431 -15.6374 -2.40569 -70.8253 87.7143 152.555 -106.277 -1.51815 2.88614 -85.2516 -0.144393 -0.752421 57.5999 -9.944 59.8845 -8.67303 21.1707 6.74963 53.8869 -30.8199 41.3502 -1.16315 -120.017 -6.99436 -24.9789 29.9327 -4.95382 2.44467 -1.80412 81.0175 -65.6998 -0.328509 15.45 -24.8014 195.654 -0.0598521 0.362176 10.4722 -83.7639 107.217 -169.605 85.3601 -1.90216 -20.6362 -4.35604 0.0408552 0.591556 3.09606 2.43808 168.487 -13.1532 -6.27829 -1.08682 -7.81752 -1.51879 10.7224 -13.734 -120.591 -114.664 -14.3297 128.993 -83.431 -2.45737 -21.6406 -7.98688 -12.4259 -104.955 117.38 -21.3486 -4.79737 26.146 197.392 -9.55403 3.33824 -161.64 -0.301959 8.83499 -8.53303 -134.257 2.18067 132.076 -3.83344 -155.803 -12.0282 9.10324 -59.2851 50.1818 -10.5725 -17.9656 12.2604 -20.0704 -4.66385 5.88625 98.9021 -113.209 -105.692 -5.96287 3.93771 -16.5813 -10.84 -0.849753 14.2345 -0.00022372 -0.51603 0.516254 67.7893 -11.6492 -119.567 -3.05014 -0.103639 -3.2268 14.7458 -11.519 1.98327 96.0723 -45.3028 -9.7656 8.02066 -9.02646 -3.38342 -20.4242 -4.9637 44.7704 -44.7704 39.6455 -54.1941 1.03475 -6.50477 -20.943 -97.2595 -1.34359 -9.63336 12.1863 -2.55298 -41.0621 -10.2677 -0.762506 -45.9854 9.61607 -21.1802 -7.46949 -5.74112 -113.062 -5.84584 0.983316 -20.3615 -42.3322 9.97237 -4.03384 -60.4506 -2.42519 -59.4931 -16.2284 -4.76689 6.77105 -2.00416 -1.25666 -0.933179 -0.922461 1.85564 6.24449 -2.29513 177.216 -17.1964 2.18903 -23.8949 29.8609 -5.96598 -19.5758 -5.31563 -163.097 -100.724 111.378 116.451 0.463381 -116.915 -4.92772 -13.8404 66.521 10.5296 -77.0505 154.108 -150.77 -7.62488 -4.71281 -79.3651 84.0779 -0.0453543 2.55319 10.7178 -45.7511 0.632904 -14.4923 -36.6466 157.935 -6.29977 -19.7022 -5.9171 25.6193 -19.9362 -6.14381 19.8406 6.61674 -24.0564 -6.17053 19.1029 0.0957431 -0.0366625 -7.94084 -4.39932 14.8097 -116.166 -6.8601 -141.812 -4.97722 -5.11862 5.16976 9.00148 -9.92718 0.925704 -95.8348 -5.81673 7.618 -1.80128 27.8499 -6.76807 -24.5031 -6.23116 -18.8368 -69.6696 -20.7453 27.9336 -7.18837 14.8311 -14.1294 -0.701709 2.04946 -0.842061 0.283502 -0.513443 -3.50034 15.5981 -12.0977 5.72649 -4.53423 -1.19226 2.5852 -180.96 -10.5987 -116.269 137.747 -21.4776 -74.1412 -127.4 201.541 8.38305 -1.00298 -45.8561 -8.83332 54.6895 -24.7101 -4.2644 -143.632 -25.9676 4.8177 -8.11875 -88.2093 10.8334 7.3339 8.90569 -0.96262 -32.5723 -9.64251 42.2148 103.856 -177.497 73.6409 -93.0678 -0.516776 118.5 -3.43762 -13.0798 -11.1664 -9.27156 2.89877 -10.2827 13.2929 -3.01018 3.77571 -19.3037 1.3753 -71.1801 162.997 -88.3652 -65.3987 -5.56447 15.7455 -10.1811 -152.553 -45.6217 -7.62984 66.722 -0.296163 -2.70048 133.506 41.919 -175.425 -42.7787 -11.4604 54.2391 -188.486 31.422 48.5502 -10.6201 142.222 -139.476 -2.74559 -51.6006 66.2369 -14.6363 -3.67747 13.8375 -10.1601 -84.4181 -6.66615 141.278 -204.32 -141.887 -123.338 -8.84314 -88.7194 3.06917 2.00912 -15.8042 -3.50697 12.2153 -8.70829 -4.22322 6.12479 -1.90157 83.0026 -0.154121 -203.355 34.2185 -115.876 119.192 -3.31597 -1.8288 6.90374 -5.07493 -118.277 -15.726 -7.27991 -2.86936 10.1493 12.9011 -10.892 86.8064 2.56311 -89.3695 1.64715 -106.687 15.7973 54.2704 -10.3492 0.0343263 -141.466 114.4 -7.44297 -19.2331 0.425771 -153.58 -17.0283 -3.0571 11.4251 2.0373 -6.73436 -2.4743 79.2176 -40.0457 -39.1719 151.653 -159.303 12.7331 -3.64778 -17.3795 -155.527 -6.23491 -6.11723 8.56562 -2.44839 -23.1464 -6.84069 146.374 2.64116 2.67775 32.7936 42.6585 -28.4885 25.7606 -0.209329 -3.66878 -155.719 -23.3095 -9.25917 -16.6104 -75.2781 1.62537 -19.5172 18.3516 8.51092 55.2294 -9.54815 105.54 -112.94 7.39989 -42.4625 11.6426 -21.4102 2.66578 -3.91749 -8.49347 78.668 -0.955879 144.116 -4.01098 -10.5056 -16.8111 70.222 6.86109 -89.7911 0.950985 55.5966 -49.6867 -5.90988 -21.1569 -10.3206 -18.092 8.04284 -126.307 -8.44078 0.148248 -0.0940042 -166.869 101.839 -10.0073 0.949591 -6.99831 -185.272 -22.3075 -4.30173 -5.97661 3.60855 -78.9249 -3.05335 81.9783 -8.7597 44.1883 -194.313 8.95875 -7.77308 -1.18567 -151.142 60.9936 11.8674 -72.861 1.5407 -1.0295 -75.9262 3.28331 -54.9954 -29.7537 84.749 -31.4871 -115.409 -4.04924 0.761617 44.481 -106.596 119.738 136.793 -171.798 -3.75319 0.962128 0.720082 158.887 0.478332 -5.94949 10.794 -2.12669 -81.6902 2.93936 -19.4872 160.051 -23.8473 -11.3579 77.8602 6.25905 -60.7565 80.7376 -19.9811 76.0369 6.33717 -65.9879 32.4476 33.5402 9.66734 -1.4935 -6.31102 -3.05434 75.6159 7.23367 5.35431 79.3167 3.33959 -200.901 126.844 -89.9222 1.59889 131.043 -234.062 103.019 -7.31782 -11.5432 52.6809 -41.1377 -18.0467 -36.6517 -0.231605 -10.1388 191.219 10.7929 -1.70365 4.65729 -104.247 -9.23097 113.478 100.042 -191.308 91.266 -11.2785 -96.0922 -26.8845 -15.1159 17.2429 -2.12698 136.552 94.6978 32.2988 2.01351 77.1147 2.12485 -83.0335 5.86843 -1.31915 0.417236 -8.02632 -122.931 130.957 2.27455 -89.4447 6.87212 5.28047 -24.6779 -23.8112 -7.77117 2.56167 15.148 155.027 -150.599 -4.42803 71.7611 3.88559 0.791116 -6.89498 -89.3907 20.3742 -57.7794 37.4052 148.911 -2.59023 56.3901 -14.6229 -11.6743 49.2323 -33.9596 -15.2727 -32.158 14.2397 -158.587 0.307156 -68.8196 215.306 -146.486 44.7926 19.3955 35.7771 148.613 -2.23837 -6.68712 1.09336 108.286 0.74883 -5.58892 4.42161 -7.07157 6.3969 9.44388 -8.10925 -1.33463 76.0521 19.7672 -113.342 93.5748 77.7371 11.6901 -89.4272 45.6923 16.4317 -155.87 114.467 -1.62227 77.8448 10.6369 -53.3418 -103.09 15.7403 87.3493 132.887 4.90736 -137.794 14.0297 -130.299 0.400968 -0.584759 -110.729 -1.31155 -5.17249 73.536 11.5674 -85.1034 -7.04386 153.315 -26.5589 -0.300027 -168.784 169.084 18.8494 -71.2353 52.3859 41.795 14.5951 9.61258 67.6394 -84.7082 17.0688 38.5449 -50.4569 0.154478 1.49824 -0.461421 -22.0023 116.859 109.803 2.24507 -111.786 1.06019 147.848 -145.577 -3.86564 -50.0341 40.954 21.5127 14.0944 188.727 -88.6849 129.848 -145.304 -0.0399131 -151.67 78.1772 73.4927 0.721933 -142.912 3.4599 -104.086 0.396853 9.4144 -7.68008 -1.73431 2.4088 55.419 -10.6264 4.70409 107.743 -2.19403 142.756 -43.1623 -10.152 -231.502 194.211 37.2916 182.535 -227.602 181.186 -36.9985 -73.9605 19.3021 54.6583 -54.3168 -9.63912 52.4256 65.4512 -93.74 119.349 -25.6088 105.744 -185.949 0.0660787 9.14631 -112.918 1.59229 -145.19 -2.3012 -0.892971 30.7624 161.763 -192.525 -26.0483 -53.6072 79.6555 -56.0233 -11.6712 -135.247 -51.9181 -8.7705 140.647 1.29282 -1.3919 -8.27507 -2.1068 142.853 1.04546 -5.48415 -6.32632 88.8978 -176.617 16.4105 -2.33403 -14.0765 -23.3883 -0.0985627 23.4869 10.1257 -0.0601396 0.195105 0.230739 -0.414522 80.2543 86.5853 -166.84 57.0237 -11.3314 11.2626 -2.11624 -129.928 15.351 114.577 -145.034 2.93215 -0.981575 1.3912 -126.136 -2.31613 -8.39593 -0.991647 163.498 -1.52904 -0.785679 3.61282 -7.50203 -9.39586 72.8947 -4.56062 -1.41599 3.12824 -119.294 5.16257 139.288 -114.958 5.32366 -55.1851 54.0389 -2.37895 -0.149542 -30.1999 172.956 -150.174 44.8203 9.45491 -7.60453 -1.85038 -43.0738 -12.595 -80.8993 -131.474 -27.6829 9.69905 -126.63 -2.24791 -109.018 127.957 -18.939 133.982 7.99792 4.25925 -0.705872 -50.463 -8.54442 -139.645 7.16899 23.2589 -6.10857 7.09977 -2.76749 2.99538 -2.99538 2.7982 -2.7982 2.76749 -2.79883 2.79883 96.0717 -19.6406 -113.123 0.937288 -6.51349 8.78884 -2.27534 -119.161 -58.3546 -37.9142 -9.58646 59.5387 -10.0612 -49.4775 74.3318 -153.724 79.3925 -21.4933 -6.93343 177.078 -5.01137 158.327 -78.0724 11.3329 -2.35856 -0.829033 -76.9635 96.8438 6.63223 -32.5264 -0.21435 0.0566003 0.157749 -7.74996 -0.983483 -1.07383 -0.443916 -126.84 167.981 0.0187231 -112.551 8.50255 -165.292 -2.72894 -233.039 211.602 21.4377 1.36414 -1.15716 10.4289 -115.948 10.0341 -32.9106 -55.5961 88.5067 -115.758 -42.7333 117.47 -74.7368 -1.52369 -91.7479 95.2078 -18.4813 -7.00204 -20.9316 -7.31363 -29.2723 61.8374 -32.5651 84.1112 -128.429 5.355 123.074 -159.242 3.85414 13.0527 131.602 7.60664 -137.048 -31.1852 28.4666 2.71858 -191.816 -24.125 9.34414 136.788 5.04123 -25.6722 -29.1701 165.976 -211.893 45.9168 5.78037 34.1357 -118.637 111.592 -18.1251 -91.0094 1.29459 4.68211 7.21655 -82.9829 -157.572 117.941 -116.55 1.5292 -108.82 36.3702 12.6414 154.563 208.14 -66.8623 10.4431 -7.81115 -2.6319 -33.7371 162.071 -128.334 -0.60108 2.46026 -185.339 108.026 -0.676077 -3.65223 78.0579 74.2092 159.705 -0.30934 -131.965 132.274 0.700342 -166.524 -0.789928 -39.7301 -87.2873 127.017 -0.368327 1.60257 3.80193 -63.0437 60.505 47.832 60.2635 -27.0244 22.4756 119.882 138.58 -124.55 17.0178 -21.0681 -73.5123 -4.91983 24.7724 2.64384 0.15291 0.598626 8.23636 -13.2625 -42.6003 -0.740035 -3.35666 10.4229 -33.2391 106.672 -187.572 -158.877 79.9195 59.6698 -13.2863 -40.6196 167.743 -0.939561 133.999 -0.0966425 -0.22783 -122.176 30.428 34.6992 -45.1742 190.319 55.2508 8.57278 -1.81024 39.8402 -137.914 -31.2087 -16.6626 -49.7237 -4.16513 40.2891 -170.421 130.132 5.92845 135.909 9.51872 190.847 -0.681782 -1.76384 2.44562 0.610091 -120.271 22.2049 11.8979 -136.855 -12.419 149.274 -172.854 107.272 65.582 -88.6233 57.8963 -16.1013 -142.177 -3.29585 0.215845 -13.8288 -0.877299 -26.3834 13.2795 -80.8612 22.7492 58.112 140.185 -102.46 -1.79341 -168.463 169.018 -0.554266 133.686 -183.158 49.4725 69.69 -76.6659 5.75986 0.62716 74.5518 -73.4557 -120.128 -2.09824 6.3632 2.39353 -129.279 130.604 -9.86996 18.1614 -62.6092 41.1523 77.1121 -80.2137 3.10164 -5.48444 21.4049 -157.29 65.0756 129.939 11.1159 -10.5172 35.6686 -139.366 144.274 1.01474 -137.787 136.773 -2.1494 136.706 -151.016 -79.4022 -131.927 -26.6572 158.584 -3.81169 106.63 8.42353 -125.75 210.749 55.4927 -165.367 45.0922 5.20812 -165.936 -1.88184 19.1091 -206.153 137.333 0.415715 -0.120239 -189.317 213.364 -24.0476 88.1048 -20.4654 -122.69 26.0689 -124.67 98.6013 -8.68115 -1.3262 0.119304 -96.5421 -67.4392 163.981 79.3493 27.6812 -4.59494 -118.095 -10.0422 5.01743 -131.647 95.3818 1.47464 -85.8107 -11.2478 -209.767 205.16 4.60757 1.4564 1.55175 61.9852 -23.3126 17.2322 -76.4612 124.289 49.0383 0.174023 53.5058 -11.125 -0.980604 41.7316 -111.316 -38.9902 71.4378 -0.816087 9.28511 -0.739924 147.006 -201.374 3.57257 33.6633 -36.3277 -148.87 185.198 -3.02479 86.0196 8.04289 10.1756 36.4807 5.37871 102.522 0.190416 0.200695 13.0073 -118.484 0.827298 -0.731494 248.44 -177.27 -71.1705 -123.375 -3.36432 -13.1234 12.4356 44.6901 -25.235 -95.036 1.59489 150.426 2.16986 -11.6067 9.43681 -142.622 81.6288 -161.747 80.1181 18.6013 49.158 73.2607 3.84438 36.9539 75.0559 -112.01 -35.0183 15.8668 -18.7719 -46.603 57.5819 -10.9789 10.5292 -90.9378 27.7184 16.8915 -66.4138 -60.7866 96.4552 172.858 -11.379 -4.76016 158.26 2.15277 -160.413 -162.114 2.33685 -84.1347 24.4008 59.7339 -19.7293 152.024 9.52203 9.70994 4.43223 22.4016 0.182989 -28.3466 62.952 0.03914 0.360536 -88.9801 164.336 74.6673 13.4375 -79.4405 -100.09 -55.4733 68.1672 33.6038 -101.771 -2.57044 -136.796 204.351 -180.329 -24.0219 12.8389 4.27848 29.3654 193.043 -45.822 -73.2343 32.1798 87.4251 194.537 10.0348 -187.83 24.0908 163.739 -42.9201 -126.47 -105.985 -1.23285 12.2425 -0.993138 -69.6822 -1.0722 14.1032 -13.031 33.8293 -42.3287 -117.357 176.07 -4.69354 -170.162 174.856 162.509 -73.6289 -195.15 33.0537 -68.3118 17.8648 52.8849 -7.00583 213.243 -212.489 -0.753549 -1.88898 -167.792 134.055 8.37405 -9.20252 2.33487 -2.33487 -70.9312 -149.65 0.150741 -52.3804 -10.9956 54.3299 -129.262 59.9486 -158.921 98.9723 -189.24 206.853 -211.551 127.907 83.6441 16.0923 -63.3983 -234.769 51.0394 -61.2123 10.1728 20.874 48.4036 -69.2776 -105.151 225.196 -122.035 19.575 102.46 -71.6474 -93.72 -34.3582 6.1333 28.2249 -2.8544 15.6374 -12.783 -0.0334399 0.841617 203.694 -178.127 -25.5671 -0.573367 0.351019 -73.8579 1.01847 -1.29189 17.0425 87.568 75.4291 -93.3349 -148.501 0.0916354 0.192561 0.0332448 -24.5845 98.1205 15.0439 -70.0393 -57.069 -10.1137 -163.559 173.673 -1.4 0.123675 0.499269 -45.6534 -14.9762 60.6296 6.18839 -86.5445 82.5481 10.149 165.907 -56.7322 12.1928 -3.79198 -145.858 5.72579 2.92474 1.51806 5.25299 8.32758 39.2554 18.0431 12.673 -3.06046 -177.514 205.053 -27.5393 5.61384 -14.7457 18.7571 152.837 -5.41976 10.0437 5.58068 -78.9158 -22.6834 -16.5867 35.1016 -41.9746 -159.937 73.2805 93.4042 -18.8524 -8.01167 6.01058 2.00109 151.111 15.0204 -17.227 17.5916 2.21758 13.3317 147.988 -75.5471 -91.1198 -77.3434 168.463 39.8784 -12.4933 -27.3851 -23.294 -11.9303 14.1002 -127.149 6.95008 -9.05048 0.100395 1.55282 65.6887 -93.5173 109.315 -48.7585 26.8361 9.57364 1.2145 4.42244 -9.01956 -85.6339 55.9593 -197.716 96.6668 -19.5547 79.7465 -46.9529 210.513 -176.295 -115.742 -29.9572 -4.401 36.5348 26.0564 145.222 68.5552 72.0408 -213.511 4.10281 -143.579 -127.503 -0.129303 0.620045 10.6962 -65.6365 12.5879 -164.814 209.003 -2.13254 50.8717 -83.7823 -99.4231 -6.12066 105.544 -0.952823 142.656 -145.401 1.67929 12.3565 -14.0357 -63.0501 173.633 37.8614 4.35345 -9.98532 7.3536 -98.7954 -68.0735 63.0431 -114.776 114.714 -177.764 -153.229 2.24099 -65.6332 -101.598 167.231 -119.13 129.934 -10.8038 46.028 12.783 0.0558977 -0.0398946 -92.5062 32.0349 -142.902 7.65363 1.10317 -0.118942 -18.5678 5.37959 0.7452 192.778 -0.731314 56.2028 38.1078 -157.269 89.8263 -47.1838 -42.6425 2.3594 169.325 -130.95 -79.5956 10.2015 -115.156 5.89326 26.7432 -32.6365 41.0116 -19.4989 34.121 -39.955 -154.201 -3.59134 -18.296 164.782 -78.1969 16.7441 -20.8393 4.09515 9.10132 -67.103 -26.3471 53.6907 95.7219 -21.0546 45.0464 0.272248 -161.745 161.472 10.7804 38.1007 62.7914 78.4723 -210.443 6.14317 -103.244 97.1008 11.3027 17.6426 8.95085 -169.089 80.7236 86.6018 -176.342 107.553 3.916 -5.71535 1.79936 28.8036 111.742 -11.2463 8.41336 4.51063 -87.8688 83.3582 15.6012 -18.8365 -111.452 10.9558 18.4259 -71.1162 9.34591 11.6655 -16.1215 1.5161 -83.3224 -183.25 200.317 -17.0672 -101.713 -194.945 139.662 185.545 -77.5186 -10.4761 7.88247 48.7561 10.2807 8.47067 14.3663 -16.1839 2.17285 8.37141 -79.4841 149.738 -186.066 38.3145 -27.0829 92.1377 -20.7981 21.2398 -3.19675 0.314609 -12.9263 -155.292 168.219 99.1835 -0.518057 -3.21136 0.493991 15.6962 -20.7801 83.0689 -186.817 16.337 -19.7013 55.9379 -79.5378 23.5999 17.2849 -196.073 42.3029 36.9147 8.49753 -11.2737 147.517 9.28454 -12.0813 -20.3196 -40.7656 61.0852 -146.144 3.96672 -85.6238 12.3895 9.95044 -13.0878 17.0463 -60.3383 7.99466 -78.5758 2.57172 5.92491 -10.4216 139.724 -110.921 32.7526 -38.3223 -1.11571 12.2949 77.0377 -13.928 10.8203 -1.12886 23.3813 114.365 88.7211 -172.905 84.1838 9.77609 -108.184 11.3863 -15.11 25.0221 -27.4157 2.39362 22.3835 -143.865 24.6179 -93.8296 45.7942 -94.2367 109.977 74.8066 -74.8567 92.1011 139.296 -154.934 105.815 -192.463 -190.655 2.62698 21.2621 -23.889 2.99525 11.3171 -14.7005 -83.6441 -98.5741 16.6065 -59.9065 13.5507 -15.1702 22.7076 96.6413 2.66811 -97.2938 215.388 -61.3854 172.568 -91.0817 -81.4863 -171.095 82.1152 1.349 24.3526 -31.9449 -0.242007 -3.0203 -0.701579 -33.0689 25.1753 -0.928371 -111.985 -79.0528 191.038 31.9468 -36.9996 72.442 -112.168 39.7264 75.2441 -43.3921 -31.8519 43.7234 -151.899 -133.685 1.43401 5.84545 -147.657 10.3686 26.4467 -36.8153 23.225 -29.6357 1.104 -0.734738 15.5658 33.7303 -41.5549 7.82463 -66.5371 -194.833 112.693 187.105 24.0384 -31.1467 -111.816 195.801 -83.9846 -26.5959 34.8121 -113.412 190.213 -76.8002 12.9878 -14.4112 -12.4549 -34.0672 46.5221 -34.3762 26.1475 95.2594 -183.592 88.3324 16.1973 105.918 -122.116 78.9074 -164.707 85.8 165.974 -0.540714 95.9928 82.9793 34.6996 23.1967 -90.5307 -17.3333 21.4077 -215.424 90.2065 125.217 9.40911 -32.5572 -10.5771 17.0411 -14.8683 -0.509063 38.6382 69.6099 25.5107 114.214 -32.831 24.8441 57.6558 25.4664 3.20209 25.1554 26.5201 126.795 193.29 95.8857 -60.6995 7.87072 90.8706 82.8043 -173.675 21.3241 -26.6152 -1.32268 21.7239 -27.5954 31.1665 -35.9434 19.6253 68.089 82.3329 90.2351 45.9748 -34.3322 55.5651 6.21571 -31.3106 23.8411 0.254849 -84.3805 -81.8274 23.4244 -34.186 10.7615 -121.416 -41.6256 -29.1815 23.0109 -134.938 6.72585 -9.02098 21.5401 -27.041 -167.894 -38.0677 -30.9879 23.7996 -47.4801 -143.376 74.3669 12.148 -13.482 26.3948 -92.5152 97.447 -76.0393 -48.6307 197.675 -199.248 -78.4306 -30.473 23.705 -32.0605 24.4356 -115.415 -13.0138 198.154 -158.525 -150.652 109.722 14.3052 -17.1596 -91.0874 177.689 -73.1909 157.88 -84.6891 1.90976 -11.6936 -43.135 103.192 71.8763 11.3698 -29.1365 22.9927 30.5559 -34.1948 139.306 -50.7192 -155.751 156.024 -14.5867 13.6782 -144.54 47.7192 -61.2783 6.74926 -7.94151 76.8118 76.6659 -82.4483 5.78234 -29.8243 23.5931 29.6093 12.6921 -21.882 47.248 -60.3278 73.5302 43.94 -58.7225 47.0289 -38.3513 -80.2958 217.629 106.046 152.884 -1.23163 -28.6204 22.7033 -9.0115 6.8867 -62.2449 47.6086 0.775536 1.0335 88.2803 100.447 11.1124 -12.3743 75.0213 -75.978 0.956694 -1.94913 5.43279 0.484739 71.6364 22.9748 -28.4757 -43.8184 71.1843 14.5428 -117.247 43.5758 -118.736 60.0948 40.5827 46.4639 -57.9243 129.999 -39.4727 -0.848287 -0.0136178 0.861905 134.266 -153.754 29.3912 -33.1273 101.099 49.6567 34.6533 -73.6434 5.94806 -29.1288 23.1808 22.588 -27.9036 0.0208063 -59.186 132.645 183.54 14.6639 -16.5357 -5.54602 92.3258 -29.4373 23.4713 -64.0105 34.7382 0.102839 -2.69065 42.2159 -51.8024 18.5818 96.5299 -153.899 -26.293 21.2703 -85.2304 -5.30028 -5.60953 -66.7042 -1.47051 -11.5478 13.0183 128.639 -139.016 10.3776 -16.5133 84.8282 87.3028 -27.8321 22.8684 50.3595 -11.1041 -89.0176 -113.238 6.51727 0.711166 67.5855 -129.839 -36.5812 118.898 -82.3171 186.006 -176.943 -9.06381 35.2173 36.2205 85.5077 -167.041 14.5194 1.6423 14.5515 40.3218 -28.1365 22.7173 6.84832 -7.58571 0.737392 -218.523 28.663 -32.2174 -29.0122 24.316 10.9199 -11.9123 -10.9331 0.610837 4.74348 -111.222 163.736 -30.1144 25.3171 6.24255 -7.57102 -0.246517 0.00265977 22.7344 -27.3983 3.06068 17.6349 -20.6956 -3.39398 -11.3309 -10.0956 -34.7775 76.3651 -149.203 72.8376 -98.6983 32.1612 4.97479 -29.9829 25.0082 1.16062 -146.19 29.5172 -33.4774 44.1047 0.509171 -1.16646 -29.4149 24.4611 -34.5802 30.5093 79.8819 -44.1122 24.0374 -28.5322 42.9509 -27.6484 151.645 155.058 -0.306896 0.372975 1.10569 -1.28656 0.180873 52.7614 29.0951 1.25433 79.1527 59.8481 -139.001 -32.3548 28.8908 -12.1246 9.07022 1.57883 -30.0074 25.172 4.8353 -28.0888 23.7327 1.06856 151.907 -55.3772 38.9281 -28.3071 24.4296 -0.894222 -1.6391 -43.5936 -18.0753 -33.3155 29.372 57.8431 -130.187 72.344 28.2714 -31.6293 -31.598 27.0867 36.18 60.2752 4.10962 24.0341 -28.1437 10.5259 -11.341 27.5098 -24.3918 -3.11803 -0.16176 -149.713 6.84456 142.869 26.8859 -30.8596 -46.4647 170.753 -85.7906 -28.2713 24.8308 -81.8506 16.1508 27.5904 -30.5881 -79.8191 89.6819 75.1003 13.0177 20.1205 23.6507 -27.3002 -29.8252 26.3649 103.263 -103.329 0.974782 -0.992578 -30.662 27.1743 -52.8956 135.161 178.083 -74.2274 -32.0812 27.81 -69.8266 -27.4612 24.1669 10.0841 -10.7341 75.9706 7.02842 93.8783 -178.899 130.392 -139.235 26.0016 -29.4343 0.701435 -1.78538 23.6255 -26.9866 -27.9486 24.6184 -29.1207 25.0597 -1.82746 -29.1872 26.1898 26.8008 -29.8951 -28.9494 25.7229 -1.41872 47.8811 -121.992 74.1112 6.58312 -7.19063 75.619 95.9487 -171.568 16.5995 24.4121 32.489 60.9152 42.4428 -81.7659 39.323 -76.4613 57.6089 140.167 14.4916 -154.658 -31.5088 27.7552 21.4087 50.8921 -72.3008 -132.776 102.547 -102.072 -0.475021 19.2985 -80.929 61.6305 -193.505 104.82 6.34448 -6.83592 0.491434 -141.361 -71.5086 -44.8875 178.394 23.7771 40.7798 -51.3999 -30.2967 141.266 -138.271 16.3507 -55.2589 -1.29735 19.4472 127.986 -165.301 92.11 2.74627 142.061 187.793 -85.8369 -101.956 -33.9288 -6.64255 52.047 -69.7568 64.5526 32.1142 63.9527 -54.8494 -17.7813 17.3886 9.97593 4.1833 -20.4606 -0.818085 121.805 -134.749 12.9438 -85.2742 65.7195 39.8636 -0.253021 0.344656 -4.28342 98.9428 -94.6593 14.0662 -118.313 -179.421 107.607 71.8139 6.24412 -144.223 130.128 -9.75825 43.3032 36.4433 75.6441 100.708 -176.352 18.7169 155.971 -70.5118 -85.4595 -0.382361 -81.3319 -77.9565 39.5995 38.357 20.1556 -89.6781 69.5226 20.7749 -24.3843 12.5044 51.4482 0.124331 -0.338725 125.415 -134.605 93.047 -184.129 -86.7617 56.9697 31.9547 -40.024 27.5307 122.813 -11.767 -43.926 -93.7169 73.2514 -62.576 22.4668 40.1092 -150.929 8.46857 1.0789 0.146479 112.28 -178.452 66.1718 15.6917 80.0302 13.9795 -149.645 144.896 0.0332015 -128.502 -79.4716 168.018 -88.546 0.362493 77.3829 -98.4375 122.927 -132.599 -185.746 72.3336 6.71108 -40.6398 -82.8666 -151.195 80.0631 -140.063 59.9998 20.544 -102.953 82.4088 34.8086 -88.6807 53.8721 6.89954 94.3963 -92.5798 -1.81649 106.854 44.5241 -151.379 -71.8601 -1.60209 117.294 -156.722 39.4284 -6.19315 -155.551 10.1361 1.549 121.573 -124.889 214.315 -80.6294 24.4712 37.3662 125.009 -132.003 23.1233 83.0332 171.863 -48.2789 176.145 -61.4315 3.1865 13.8546 69.1167 66.7298 -135.847 -139.543 132.242 -31.8551 24.5414 -1.44467 2.11711 -33.2381 -7.95565 41.1938 -1.00393 133.939 -138.926 34.1181 9.09702 -35.6037 26.5067 22.0898 -59.8429 37.753 87.2757 -103.108 15.8318 2.5768 147.828 -145.082 153.192 -46.3376 -95.8083 -30.4703 8.35313 -33.3655 25.0124 85.8251 -109.737 23.9123 3.44341 -75.6737 59.087 171.593 38.0145 51.8117 0.385117 131.178 47.7892 -178.967 -33.7209 25.5418 156.576 -205.207 -112.995 23.2147 89.7799 102.136 -185.78 -22.0602 18.1241 -4.79237 132.35 -135.4 93.128 8.54753 -9.29208 -95.1764 185.383 107.771 -131.286 23.5143 -10.4704 -39.1962 -31.4956 24.5622 -157.295 192.615 26.7966 119.216 -146.013 -77.239 120.807 -127.667 -80.915 91.7484 25.0539 4.00414 -29.058 129.884 -134.043 -29.6961 -45.9776 103.42 -93.0608 -10.3587 -85.9056 -194.052 21.2398 -162.883 208.566 9.27763 -108.701 -14.9811 -74.9768 175.684 92.6597 -80.9696 6.90825 -31.0465 24.1382 7.04333 -126.177 -76.4193 202.596 -60.6075 45.293 15.3145 92.8846 -171.082 93.4175 -81.3001 91.9369 105.535 -180.512 121.221 6.61613 -115.133 97.3586 17.7742 35.7094 -31.431 -0.783872 1.14779 54.2625 120.029 -174.292 7.05344 -40.2916 -47.1898 -128.235 175.994 -99.4608 -76.5337 -30.0923 24.0704 -101.63 101.63 2.05496 -0.330105 -1.72486 161.216 -60.9553 47.2513 119.562 -122.999 -38.1048 38.499 11.6547 77.4828 -76.1994 157.368 -44.8406 -112.527 -0.00842665 160.087 -160.079 -80.5842 15.5926 -51.1531 35.5605 -4.46308 90.4843 119.457 -123.506 2.50541 -157.113 154.607 -18.6633 136.883 108.321 209.949 -141.93 -68.0193 3.95992 -79.8285 89.0341 -30.0861 24.7129 5.3732 49.7217 -61.265 136.702 -0.345092 103.682 110.633 -197.496 -12.9467 -53.3791 69.9555 -0.0566978 -40.1221 54.6736 -126.644 12.345 119.8 -124.706 -85.6042 38.4205 30.2206 5.63721 -30.5238 24.8866 129.075 103.702 74.3812 82.2987 -151.476 42.4049 109.071 79.4054 -191.391 -33.5371 150.831 31.5973 121.412 -122.758 -3.10541 84.4275 87.57 3.44015 105.971 -18.6955 -30.7563 25.7694 29.3702 108.371 -143.648 35.2776 2.88109 -4.74732 -73.0441 -2.66477 152.838 -150.173 126.859 -126.442 -127.614 -86.9115 -87.9669 176.865 -5.75227 -184.367 -148.714 75.8201 113.238 -113.238 0.317241 72.588 -131.378 110.734 20.6438 -5.34908 -149.808 155.158 -163.07 165.311 85.2263 4.32762 -30.4633 26.1357 -128.39 -3.25677 125.881 -124.944 -134.476 112.998 -25.5692 -77.5127 62.7886 -118.285 -30.5295 -23.3201 -50.6661 107.556 25.9624 91.4314 -117.394 7.75686 6.94286 -14.6997 -39.0512 28.257 -177.82 79.0791 98.7405 -146.826 111.635 115.577 -117.199 -67.4039 -8.75667 -128.098 8.08434 104.609 -141.191 125.995 108.144 -109.456 -21.3872 144.157 -86.0414 -23.6437 -110.949 47.5874 -27.053 -35.3043 30.9541 -69.9909 -141.196 113.443 27.753 -14.9645 52.3378 21.561 -119.619 98.0584 150.224 -120.794 -29.4298 -51.4143 -29.204 24.9023 78.3556 97.6389 -158.416 -6.6669 -160.046 166.713 -168.721 140.668 -23.6066 8.77317 -104.655 109.886 -109.137 106.128 -76.575 137.003 -60.4277 -91.5597 -154.127 156.632 -32.7632 28.4988 -32.1831 28.3819 -163.306 108.692 45.8039 24.3227 114.897 4.00165 109.51 -108.449 1.04045 -81.4021 -94.9058 176.308 28.5785 -8.91907 -117.451 126.37 -71.3644 -92.0238 36.4277 -0.0535685 -118.041 116.646 -114.401 -94.2163 102.723 90.3443 -74.6526 -46.579 171.568 3.20641 -0.746337 -2.46007 -23.9587 124.633 -56.4865 -0.512553 -1.92277 0.328915 150.365 -22.3788 -120.196 -34.0094 154.205 -133.096 140.703 100.574 77.9302 -85.5478 18.2934 122.374 -24.1943 -144.764 -13.1891 157.953 -5.50058 -82.7062 87.3635 87.5514 -82.3617 104.697 -113.928 88.1089 -81.8498 105.532 87.7389 -81.8705 -87.2545 187.701 88.2129 -81.8757 -81.8787 89.1124 88.7039 -81.8318 123.843 -122.251 141.659 -134.443 -82.7773 86.9323 -25.186 178.584 -131.789 -46.7946 -70.2249 15.5091 -3.03593 -172.588 104.933 -185.467 -99.4639 -110.777 99.3673 -107.679 -83.6113 -142.106 97.3364 44.7694 -134.501 141.67 -176.784 166.67 29.8696 -144.451 114.581 -58.4273 98.4012 -108.894 -19.947 82.2701 85.7475 -113.03 99.7539 -27.1696 116.24 -115.979 -81.3452 15.7513 -59.4113 -26.7041 59.6305 113.171 -172.801 23.5759 126.789 104.713 -123.652 21.7253 -138.354 116.629 -97.3006 96.0059 -89.6842 149.379 48.2961 5.65596 30.826 -36.4819 3.95195 -114.42 99.389 -111.547 125.613 -126.721 80.8132 45.9073 -94.7345 91.8872 2.84729 -0.220871 122.138 38.6649 -160.803 -10.1514 12.6145 -0.0228479 0.731218 0.0209828 -0.730704 70.7476 -117.434 171.696 -21.9798 118.667 -114.564 97.2531 -106.91 -10.1074 9.4686 -78.8619 82.2015 -45.3946 74.658 89.2027 -95.6565 6.45381 85.1648 -78.3038 -152.78 -39.6193 -91.4063 91.2619 -0.214676 -4.71098 61.5299 157.488 -35.3499 -79.7893 81.4147 2.63432 26.975 -42.2561 -127.72 169.976 -38.4558 0.000735503 -0.215085 -170.032 79.8521 -78.8315 -1.02056 92.9049 -100.549 -54.4976 129.961 13.465 -93.2512 92.5507 -184.837 108.037 88.974 -90.8762 188.747 -159.393 -29.3541 -85.1142 87.6773 80.0094 -83.0627 -27.6829 37.092 90.595 -96.413 -108.564 -83.7312 83.9791 -0.247878 36.8552 112.733 -149.588 -178.208 113.663 64.5447 54.9553 96.9518 -148.259 129.383 30.7155 85.9996 -15.6492 115.686 -110.362 79.7159 -81.4498 1.73389 96.6436 85.0601 -82.9352 -117.08 102.014 167.374 81.7436 -82.2604 93.1096 -99.5675 -82.7891 85.7285 32.9074 -153.103 119.302 -58.5853 81.7519 -78.4686 118.92 76.5272 -166.682 26.6512 123.572 -79.5984 177.237 -175.972 128.782 88.5124 -90.9698 122.339 -120.101 -2.23782 -78.5042 82.3898 85.6969 -85.851 91.7979 -95.2218 37.8394 -31.1284 -134.301 142.299 116.958 0.96672 0.846143 8.93212 89.0863 -90.4996 -110.549 -145.884 48.7591 -108.38 -148.554 110.098 -114.986 87.8168 122.349 35.1391 152.184 -125.533 0.667961 114.196 -59.7543 91.8341 -94.8544 144.849 6.12649 96.2588 4.2831 21.0646 84.4674 -137.719 142.908 110.985 -106.547 86.4617 -83.3926 -101.553 95.59 88.8335 -91.2586 9.28817 -3.84437 -5.4438 95.891 -102.53 27.003 21.8491 -39.0389 -11.5966 10.8441 64.4709 -65.7303 -86.5911 -15.8077 177.049 -83.9994 83.0436 -11.9263 11.3682 -12.4852 11.7227 83.638 -83.2205 -0.417431 91.1496 -94.5338 -11.3967 10.7372 52.3718 122.398 -174.77 114.456 -137.322 22.8662 -58.728 171.899 -171.667 159.791 12.717 -13.5668 11.0466 -11.616 -13.5688 12.6103 -77.5322 -49.1883 -83.8898 -138.31 143.477 120.815 -10.5797 10.1009 147.089 -10.8093 10.2874 -95.1456 91.396 108.199 77.3457 -78.2401 174.504 -96.2641 81.1155 -62.2661 -88.0606 89.6595 -88.2851 -4.90245 -140.499 -13.6363 13.0994 90.1232 -90.2665 110.549 2.6888 -11.2777 10.588 -12.8368 12.0073 1.17593 -120.562 100.994 -10.3666 9.73937 150.373 -89.8839 -37.3806 -148.685 115.814 -174.542 126.236 37.6471 -163.883 0.684978 -9.10206 -93.5723 114.055 -107.423 -106.149 -73.8861 -154.603 108.754 26.1832 -33.4114 -107.779 -65.9283 -64.7082 90.1746 125.625 -152.417 26.4107 126.006 10.9414 -122.962 105.397 -178.541 109.869 68.6723 3.34807 10.7521 87.5057 -79.1827 -70.9337 -2.3594 192.225 -87.4042 -58.7309 110.802 -107.394 94.1349 -175.486 81.3509 -81.0159 0.457919 -79.4561 -84.2708 -82.0429 -164.994 121.413 43.5819 -10.7708 9.76786 -72.4402 164.55 -172.492 155.423 20.8214 -114.681 -71.065 118.748 32.083 44.8807 108.311 2.11964 -196.64 151.043 182.67 -44.4594 -138.211 -21.7049 112.656 119.016 -108.982 -161.216 163.553 -172.986 154.911 -172.012 154.984 -3.93256 -139.646 69.7619 96.9128 -166.675 -155.277 111.409 -112.388 -78.683 117.516 81.6796 -199.195 -175.568 155.728 162.642 -160.49 143.313 -11.9558 11.0647 20.2813 42.5073 -173.322 146.644 -12.3763 11.3747 -7.23393 1.55533 -154.563 150.552 -12.3029 11.1398 -146.231 143.915 140.751 -12.6693 11.7326 148.49 -2.17536 -218.025 162.973 -139.136 148.835 31.2546 -158.062 121.266 -166.689 130.019 36.6703 146.311 -148.079 138.817 106.125 -61.3634 151.59 -143.716 72.3819 -120.86 48.4779 98.0757 -61.0648 -168.589 163.896 17.2027 161.673 -162.905 125.284 -181.039 157.73 -0.0430347 116.485 -108.061 -30.8132 37.8666 -83.4115 20.1686 -6.20484 175.573 -25.9906 -149.582 116.751 -108.249 -60.9321 -29.8461 29.8461 0.90492 0.0144557 7.14076 -70.5391 12.0195 108.721 -142.132 -158.033 163.412 -73.3502 63.8025 -49.0446 10.5576 190.116 96.9499 80.2873 26.9812 118.179 -11.0352 9.82003 -146.168 148.519 -44.1794 -128.977 103.003 148.275 6.69325 149.2 -146.268 -77.9535 4.31538 -143.997 145.043 -87.7797 -69.51 -64.5429 54.5989 183.549 -75.3496 125.103 -160.12 152.348 151.651 -157.886 -23.592 36.6097 -42.4529 62.7342 -154.978 151.224 -173.15 159.997 -155.635 150.891 -11.2506 10.288 -10.9856 10.0021 -11.865 11.023 -11.5646 10.5729 156.427 -167.026 -81.4614 2.62509 -168.822 157.443 -12.2196 11.6935 45.2767 -168.412 123.135 -0.223519 -0.0458095 -74.0443 -110.785 184.829 -153.16 150.011 168.424 36.0027 -204.427 214.48 -24.364 -27.5098 -2.33623 135.437 -77.5936 88.6023 29.577 -130.147 102.671 -61.9804 85.5803 144.788 -147.089 -170.041 158.013 -129.088 -45.6149 -112.447 150.753 -165.041 155.487 -157.396 151.096 -132.514 100.579 -149.814 147.04 83.7593 -174.461 3.57708 -12.0147 10.5212 -43.1614 45.1107 133.473 -68.5827 -56.5167 49.5996 43.4634 -168.868 125.405 -156.272 151.099 -142.815 -4.84215 -119.374 -113.151 -24.387 150.777 -154.643 -140.084 -114.118 1.63847 -59.5402 -158.613 154.185 -1.56301 -131.615 0.0735548 -148.571 145.981 -98.4802 -125.896 11.1974 -158.041 152.621 -51.4495 39.6825 131.315 -113.022 179.415 -204.575 25.1599 -123.966 -12.307 8.08538 -103.298 175.112 -15.7577 101.676 -114.488 12.8121 -103.166 -161.405 165.064 -1.92984 -168.767 169.377 -59.3424 175.156 -11.2801 10.0944 -12.0499 -137.664 -197.564 39.0382 -182.254 173.179 9.07422 5.03221 143.801 -63.7378 -55.7715 164.5 -170.261 168.152 -114.973 -64.1004 -93.8555 30.7346 9.12904 83.2941 -183.491 158.858 -66.8184 113.975 -185.878 177.689 8.18819 -70.1847 59.7836 -170.402 168.52 -63.7872 55.2428 -11.9286 10.594 145.95 -184.275 177.277 59.423 -68.1935 125.262 -77.3807 162.33 14.8563 174.123 -188.979 -69.8482 60.209 -70.0182 58.9101 175.663 -200.464 -4.37959 162.566 -64.6302 55.9572 -5.27098 -4.91582 176.02 -143.937 -14.5744 45.7807 1.54271 -0.713239 -59.2284 165.585 -46.2043 36.1223 -144.408 115.696 60.449 -71.3706 59.6994 171.133 -181.272 115.386 39.4894 -154.875 14.8002 74.5867 153.2 94.8396 -75.2138 61.5402 -75.1083 63.1313 -12.3302 11.004 -195.729 2.86241 -63.2279 -155.673 121.664 92.8479 -80.553 -172.237 171.447 177.702 -62.0058 -12.8216 11.3466 -13.3352 11.6316 -171.942 171.388 -170.351 170.37 60.5611 74.8756 -172.798 -17.9864 -59.2414 50.4081 -128.092 -59.5032 49.257 10.2462 -114.435 137.278 -70.5479 -117.008 -173.5 171.971 -17.7534 -170.314 169.375 -13.7736 3.59258 50.4872 -58.0479 -116.661 -57.312 49.6822 116.247 114.456 -11.634 9.89967 -60.947 56.9132 -176.405 173.676 0.055797 173.482 -67.5247 50.5016 17.0231 -21.3996 95.5728 -51.1538 118.146 -118.146 -58.8441 59.5018 -0.657691 154.961 -130.646 130.646 -4.40887 3.11911 115.543 -75.8166 -171.028 166.016 -66.7375 58.404 -118.94 -74.6157 -65.4472 -36.7917 159.141 0.0371213 -75.8127 62.7078 -7.53801 38.2726 7.9175 23.1629 -31.5311 68.8973 13.7218 36.4334 18.2709 -60.0144 -69.6565 58.0074 -75.9173 -1.5118 1.34781 -176.332 131.932 44.4 -16.5296 -163.652 101.046 78.9682 -49.8731 4.35021 92.9495 -39.0774 -57.3604 51.4505 61.4971 -54.3564 -176.677 -0.038087 125.297 -12.5314 10.4246 144.343 -134.801 -50.5924 -85.8716 19.4325 -37.8875 164.123 135.121 -9.77543 64.7126 -75.6915 -113.637 -12.2207 55.5277 -100.628 2.46886 -175.793 123.676 52.1167 -16.6903 114.692 -98.0017 66.7916 171.209 -118.837 -4.56154 -14.9556 124.398 -52.016 -53.3947 -85.3274 -130.839 95.2297 32.204 -26.548 -177.867 -147.88 1.31233 146.567 124.429 -161.221 -32.1469 120.749 149.1 -51.7638 2.08347 -43.4089 -78.5308 63.1593 125.02 45.733 45.2556 132.048 -177.304 110.88 -102.586 171.241 -146.068 -91.5515 -6.92865 7.00773 -54.7406 67.7093 -27.6001 93.8905 -161.511 -2.35052 -133.958 100.297 -11.1749 9.32453 5.14781 -78.2481 180.504 -49.3257 -84.4377 213.864 -33.2062 223.525 -12.646 162.259 -158.813 -155.186 38.1772 132.61 47.8942 -114.093 -46.2006 180.43 -140.19 -96.9119 -24.9508 -60.2945 160.029 -73.8699 110.975 1.82453 109.303 71.9787 -181.281 -58.8479 55.3189 1.96916 -31.8955 141.225 -72.6701 133.354 163.553 108.173 -182.822 74.649 0.409667 1.88898 -56.9859 46.8339 39.3365 -45.5952 6.25867 4.40199 -34.4615 30.0595 -61.9752 -37.6849 99.6601 -60.3616 130.163 -49.3498 43.1652 -43.1652 137.308 110.88 -47.6514 172.935 -28.8261 120.257 8.0025 -101.337 103.401 -64.4729 99.2657 -63.0857 -56.149 46.4325 99.1527 91.6123 -123.961 32.3486 46.8657 -5.57493 57.2968 -13.0047 10.6461 -169.473 141.336 28.1366 -6.35528 40.588 -34.2327 -187.158 -34.1922 -145.794 117.087 28.7072 -177.188 132.729 -47.9399 29.0244 -118.483 89.4587 -119.092 -65.7448 -13.0222 10.8955 -31.7487 -47.9975 3.49031 -20.3627 -5.05277 -23.7501 121.809 -45.793 145.188 -36.4678 93.2534 77.5848 -188.417 148.972 39.445 -6.84058 133.797 -61.9908 -58.4439 105.102 -13.4978 11.3816 -51.8827 -78.3044 156.803 -2.03385 -45.4984 -76.4939 -46.4451 171.548 94.8465 42.008 94.0849 -136.093 175.786 -52.1097 122.477 -35.0514 -79.2652 63.0369 162.076 -59.201 -11.3449 -40.5229 176.146 -135.624 -63.8057 -22.0646 -1.48942 151.255 -54.3028 165.413 -32.0591 -25.8959 -44.5311 51.7668 -25.9906 43.3788 -125.167 174.243 -49.0761 121.55 -77.6096 109.662 -111.429 -55.4025 164.156 94.7781 -42.9664 145.032 -116.195 -8.68348 -36.3714 89.5115 44.0988 -133.61 209.941 -101.768 -108.283 73.379 54.3324 -38.7398 -1.33729 -19.9784 -14.1678 46.1226 -74.0184 182.71 -177.75 99.0671 -42.6286 158.015 -58.165 47.8158 -38.2281 150.961 176.739 -44.1293 -59.3986 48.7722 -1.68117 -60.9964 46.0202 -107.743 186.766 -79.0232 -11.9935 9.45566 -11.1259 83.7731 -47.3298 161.998 -142.478 77.2846 -56.1328 45.0078 4.84602 21.9464 118.36 45.2158 -17.6851 7.74452 -98.7539 0.154506 -167.808 167.653 -0.0163089 -58.396 -59.4201 46.3516 13.0684 -107.623 -17.0467 -3.91296 188.29 -34.9385 146.681 98.9428 111.602 -104.598 -46.7803 6.67929 -1.69152 -26.2736 140.639 79.8318 113.841 -193.672 -4.00637 84.0015 110.019 -189.555 -180.626 145.417 35.2095 -62.3562 61.5937 0.762437 104.97 -67.789 55.194 -69.7686 52.1326 -7.42082 112.43 -105.009 -31.3423 113.414 -21.8017 112.171 -89.1233 68.2116 141.729 -195.88 -3.03524 -60.5286 49.1972 -32.7496 146.963 80.5922 110.782 -191.374 77.2074 105.203 -31.2133 -59.1327 95.5604 121.319 73.218 -57.5323 47.9841 -4.73523 154.256 -178.562 -45.4261 170.447 122.877 -26.2355 -4.14111 29.195 -90.0812 28.106 -57.8229 47.7617 -6.34934 -152.067 -93.6689 99.8121 -89.364 89.364 3.60418 -4.39834 0.794154 23.1487 -2.28589 -95.4728 -81.8575 63.8877 -62.7976 92.7319 -72.3865 171.539 80.547 -167.139 153.943 13.1957 -75.038 1.99824 3.01174 155.043 -46.732 -45.3918 177.44 -3.97753 45.5019 -37.6772 172.987 6.43114 -179.418 -3.19873 79.0825 107.285 -186.368 -4.85268 -173.446 93.0924 70.8889 177.726 -3.0399 165.541 -172.208 -1.60677 116.146 -195.199 -70.3538 -0.826299 -6.29479 -98.8272 -3.80324 44.8904 -58.159 13.2686 -35.6597 42.3529 162.749 -162.595 -100.045 -3.58381 -21.4533 116.403 -59.0108 78.4618 -177.289 -108.095 172.87 -115.128 -57.7418 107.28 79.4861 -42.4744 -4.28969 -106.245 48.3046 -41.005 -41.684 167.089 -77.1495 77.1495 -85.4243 -121.641 207.065 -3.39123 187.872 -132.193 64.8678 -47.968 -44.4126 177.141 -44.7393 153.818 -178.182 150.137 -176.128 -174.628 144.428 38.6414 -44.9967 72.6088 -147.632 -3.97812 105.272 -3.89269 121.448 -16.7346 26.9438 -65.0223 174.779 -41.3063 -128.183 -12.5669 9.93501 -15.8285 -41.4596 -88.9647 19.2951 -139.928 -118.886 73.3873 -126.117 106.669 -108.457 -80.457 188.914 125.761 -71.0754 196.836 -1.21187 -9.34743 10.5593 -8.2306 19.105 -20.8819 1.77683 17.5813 173.294 -190.875 0.00872882 -0.232248 -208.578 104.606 103.972 -128.031 108.804 79.0685 -67.9765 67.9765 2.09193 184.092 45.1243 -20.7122 -68.3391 -114.483 179.37 36.0175 -177.645 -149.439 127.598 73.5866 110.505 -116.809 -2.91602 -12.8882 -59.9323 78.8147 -78.8147 -166.489 162.11 -1.37965 -29.9189 131.519 -159.585 130.012 -79.9475 -23.8534 140.482 -119.673 17.8092 -41.4705 135.555 -23.1768 -7.81118 167.904 -195.787 -34.4795 19.9051 -169.2 190.493 0.116549 -7.22249 188.043 -77.2611 -7.46208 -58.8902 45.6277 179.357 -159.998 -8.71625 -9.20084 41.1909 -53.4637 12.2729 45.3057 33.6625 182.456 -86.8832 50.8134 124.972 129.944 -3.7112 -7.22712 3.2926 -140.92 126.592 -60.4829 -1.39687 -60.5887 45.6242 -2.53246 -57.5973 45.8746 11.7227 -44.6442 181.952 -85.8521 5.82237 -3.40975 -34.6468 72.7788 54.2729 -0.0503814 -24.2795 -8.55149 -45.9712 -14.5257 -60.0968 46.8105 -1.5147 1.60587 -6.90697 -5.20131 -6.83157 28.3037 -8.14774 -14.0304 -9.66847 -54.5665 64.235 -8.21933 -147.528 26.7344 -28.6442 154.269 -62.6546 48.0317 -12.3961 10.2635 126.49 49.7603 -57.9028 55.3206 -55.3206 -58.1014 195.857 -12.2587 -13.2989 -0.263355 33.349 157.88 -191.229 17.8384 -10.8956 129.387 -1.09252 -11.8159 -39.3372 132.134 -181.46 -7.90659 133.027 -24.3918 49.964 -41.6648 119.848 83.4232 -203.271 -11.7172 -10.1881 21.9053 99.7725 49.3278 -27.7577 154.552 -8.0555 -15.1616 64.4696 -49.3081 -75.5389 -1.61057 -123.428 10.0101 -37.693 -19.2138 -25.889 45.1029 -7.85363 -62.5232 46.4219 -22.2522 -6.36825 116.347 88.4531 -204.8 -119.338 157.749 -6.4255 -99.2625 -83.9562 63.975 37.6045 -45.5601 -7.92172 -8.87673 -2.5021 -0.00816759 -27.7649 153.771 -177.987 133.858 -7.7907 -3.15196 68.1916 31.1775 -3.56908 -5.4519 -140.271 -0.149906 -3.189 -11.7932 -10.7204 -152.586 -9.4562 -54.2603 -26.5198 13.5 50.8883 36.6817 -6.46253 -5.88772 153.67 -30.0974 99.0317 -5.9572 -12.4879 1.9707 -31.8271 -12.9989 -46.6146 -14.3407 -8.47764 8.47764 62.7452 -66.1019 -8.92993 163.24 -62.1937 72.2554 132.497 126.122 -104.2 146.992 -144.317 -11.0742 113.144 -81.2908 -20.8045 -43.8908 62.5935 -83.3309 -15.3064 -4.67943 -7.45337 162.485 2.41886 -164.903 -4.56352 -153.882 -0.244352 -99.9713 -60.1436 160.115 -12.3262 17.3564 -5.0302 52.8771 77.2858 59.518 31.1099 -182.572 120.566 3.51938 99.4908 -22.5104 -3.78255 -52.5474 12.124 40.4234 -5.14277 -6.5618 -64.7704 166.61 -1.48432 2.93216 -21.385 -176.979 120.102 56.877 -70.2006 -125.253 -56.2222 181.476 -0.238073 -80.8255 57.1818 -5.26816 -178.455 36.2024 -48.6572 18.5313 3.17282 159.312 110.967 -172.398 122.647 23.3037 -158.784 161.202 180.306 -52.4166 -127.889 -6.9115 130.797 -180.989 50.1925 5.48632 -39.5736 34.0873 -151.488 153.127 133.545 -181.308 140.002 33.5376 43.2742 -101.236 -2.84976 -137.322 -41.0282 91.9165 51.3798 -76.949 38.4244 -95.7334 71.5391 -82.4834 73.0175 9.46594 -148.034 148.872 18.3573 -18.5072 -1.69897 -11.9664 99.6409 -1.93032 0.265372 -6.27778 -67.1366 103.997 15.3238 128.763 -45.8529 31.0147 19.6601 -22.8121 143.019 33.1274 166.363 -69.4502 -58.7594 137.17 -6.61481 -92.4151 18.9284 -121.226 121.226 -4.66586 -51.3639 184.842 -55.4542 -17.6944 171.512 7.15245 -39.8527 32.7002 -4.92271 -7.20242 -11.0226 107.621 -176.554 121.813 129.255 -181.17 51.9157 -104.486 -12.7608 70.6774 -28.0446 -5.69177 123.851 -72.1932 62.5247 -99.4112 90.3296 5.31345 113.551 -160.236 153.064 7.17247 87.3682 -142.23 146.197 132.149 37.61 -169.759 -6.96249 113.96 -178.06 146.205 -71.2048 1.66243 -8.15755 -5.64091 12.9545 82.8962 -175.575 126.499 46.1307 -55.1019 8.97122 91.1622 -9.91161 -81.2506 7.96533 31.1287 -39.0941 -147.718 55.6398 -180.893 140.081 119.786 -3.75151 91.9231 -82.2344 202.082 112.436 -178.364 -7.80645 -180.259 13.381 166.878 51.9213 -5.37747 -4.94014 9.71566 -43.7828 -144.424 -10.8683 162.558 26.189 -182.048 111.114 114.477 -4.6927 -5.54629 -58.9776 -4.79947 157.691 -154.518 -50.6628 38.5038 225.411 55.4361 -6.37554 112.969 -181.552 -0.365499 -147.514 -17.5744 -41.3875 173.885 128.693 39.5478 -168.241 16.7825 -17.5172 70.1107 -48.0209 -102.586 94.6486 123.285 -218.462 -5.74812 -5.48629 0.620245 72.7187 42.8243 -176.985 123.59 -4.27308 -161.157 107.516 53.6417 3.86885 -134.819 222.446 -23.8089 -4.3348 13.3961 40.0418 -53.4379 56.7054 -14.3526 -107.581 -0.955411 5.23851 -30.4411 -144.618 181.507 99.1267 20.0075 88.0065 -108.014 142.743 53.1103 -68.2718 -144.431 -177.378 125.269 -4.69108 -217.919 76.5584 83.8818 1.84702 20.8643 100.944 55.7007 2.4981 -1.7438 -0.7543 -190.471 -76.4212 -47.1046 173.697 -60.0046 24.3021 43.4071 -5.8331 119.16 -199.506 80.3459 94.4475 -19.5581 -0.296048 51.4585 -191.005 -50.6028 28.1942 -187.264 111.914 4.14425 -2.24164 -0.33972 0.211589 26.6028 -5.29129 67.8201 41.2972 -190.852 -160.737 115.123 126.899 -211.279 -59.9733 113.931 127.238 38.1756 -3.63222 -3.83576 -10.3933 41.6478 119.8 -165.593 183.055 -13.9191 -162.865 115.75 -6.05532 -5.14303 -4.71212 -58.6196 -3.93922 -4.6206 126.721 37.4025 -71.4569 204.484 125.076 34.0644 -51.7346 -173.618 152.868 -6.02884 -3.78175 119.767 152.473 124.084 50.086 -208.04 157.954 -4.99455 -2.86068 110.897 -188.416 36.6428 125.434 -45.6322 45.6322 0.0174334 147.95 -147.967 -2.68181 68.7912 4.6079 129.317 -212.183 -70.9014 187.047 -75.5389 -5.71683 -0.104774 0.120627 -28.7285 34.2148 165.276 -156.218 85.2863 3.68396 -24.9673 40.3642 109.01 -188.606 70.7008 -56.4513 21.5292 -201.971 180.442 -5.3875 56.7706 122.598 31.6075 11.7447 119.571 -171.305 45.733 -206.534 182.409 -157.399 13.3999 53.5889 -66.9888 -71.6057 -58.7594 -3.82361 134.566 -186.983 -4.14437 -4.29712 10.4483 -4.44312 118.613 -200.847 -4.10013 -84.6199 -4.06615 36.0026 -33.284 -41.9702 170.733 116.786 -96.1257 19.1622 123.727 33.0754 -0.190932 -161.804 -12.6572 -4.80368 -1.0026 150.372 -230.668 125.026 186.67 -69.1544 5.10373 -0.681293 -4.33449 166.303 -55.1717 -16.0978 17.6518 -1.55398 12.1085 -0.196228 0.141973 53.7885 125.537 -179.326 -5.32698 -5.06292 -4.08343 171.748 -217.366 45.6186 -58.438 29.8999 123.3 131.792 -243.101 111.309 -4.95314 -4.03893 -89.7321 117.337 -2.63321 -29.0643 36.2167 47.4059 -156.308 108.903 -4.42464 177.341 -52.0724 -3.542 -3.79395 6.02804 -111.179 -3.46436 84.962 -190.254 105.292 126.511 -45.1551 33.3393 -5.35799 107.662 -188.678 -4.46431 -4.86623 -13.8204 -3.78723 9.31593 1.30542 -2.1824 -4.10538 -34.4728 40.2532 -3.70646 -127.796 -53.3744 53.6797 1.19009 -146.272 -4.25591 -3.70528 -55.8852 125.487 -3.29383 188.516 -0.00139687 123.723 42.5803 -139.848 203.654 -63.8059 4.10077 -146.061 166.785 -0.0797453 -0.768542 126.787 -6.57659 49.6663 -152.152 102.485 -26.7177 175.34 -48.841 -52.7305 -28.095 -102.788 -11.178 148.318 10.2916 -0.172399 38.3345 -34.3019 -7.59014 103.096 179.217 0.238672 -37.2047 109.923 8.56319 -9.36701 129.897 3.67902 -0.155878 106.117 -189.448 -9.05508 -13.2361 103.757 -150.095 -97.0969 -183.673 127.222 104.431 -151.163 -127.145 179.06 -64.3903 -31.3431 -177.135 -97.1529 0.43019 40.133 -65.6248 11.8783 31.0479 -135.75 -184.582 6.20132 -84.6099 -67.4458 40.3153 -4.42798 108.762 -88.7548 -30.2817 39.9973 0.372351 0.500592 -0.3496 -160.444 80.9602 174.243 8.19659 1.23634 -143.157 -15.1515 -3.68492 126.738 66.8094 -2.26321 144.327 -215.443 -29.0846 37.05 -53.2218 -72.3856 -48.0355 -164.896 25.935 138.961 -17.2116 -164.603 140.312 -35.8807 1.22685 -4.79508 -65.3951 -3.47427 1.48214 16.1316 -99.9577 18.6669 -57.7865 27.4393 -167.924 114.702 0.196172 161.719 45.9815 -145.964 99.9824 3.53783 13.599 -50.4705 -128.775 2.21401 1.93024 101.686 -148.467 44.6559 117.063 162.836 -9.07359 7.51058 26.0316 -28.077 2.04533 -1.45437 -6.01139 -5.18216 9.8457 -161.901 18.2994 -15.7657 -2.53366 -153.402 99.099 9.90029 -70.4373 -18.3745 82.3632 -146.101 13.0273 -136.847 123.82 -104.738 49.9728 54.7655 104.169 -147.496 87.1347 152.878 -229.339 165.378 -216.041 96.2607 -151.638 113.276 -113.276 1.0499 -0.201999 2.6881 4.72811 157.792 -16.5083 1.42611 92.3919 -151.593 151.637 -1.87216 -149.765 -150.039 90.6884 -103.265 17.4539 -21.0752 121.544 -49.2004 7.36891 78.2096 -82.9224 123.866 33.9257 -189.883 131.445 -52.6608 1.12144 -196.716 109.311 109.309 -199.193 1.76945 4.87654 -1.3864 148.535 -80.715 -106.767 17.3767 -7.54434 -114.16 -48.4082 144.717 -211.579 36.0261 9.47579 -36.4984 129.274 -97.1081 71.514 110.74 -198.858 -107.132 119.824 26.5801 -65.1944 -1.25695 140.604 -3.07981 5.51983 188.083 132.715 -11.3788 -121.336 0.757001 -3.86241 97.2637 -115.638 0.622616 0.5579 85.037 -134.387 -3.11095 -149.3 211.709 -103.17 -8.95394 8.13585 18.7237 5.59909 155.673 126.777 -183.379 71.5625 11.0127 6.82569 100.961 -85.0062 201.353 -133.376 45.6091 87.7667 -37.3475 -184.195 104.376 1.34621 4.58039 -96.47 -117.415 31.4257 20.844 4.84526 136.987 88.1523 -123.204 5.74722 5.88909 6.34242 6.82814 7.2806 3.63287 -0.751783 54.0016 -71.3349 4.58613 -99.7858 -122.631 86.4108 82.9506 -132.139 -113.519 7.50805 24.5169 88.8971 2.72832 2.10103 4.59828 0.729216 -2.42514 1.69592 -148.944 118.503 -37.8472 -151.86 1.48477 -18.4847 -141.752 -0.763239 55.9757 -25.1327 6.17051 0.837223 79.7737 -40.4507 -1.16767 29.7141 30.9155 -115.868 144.575 78.5919 -144.039 3.42631 51.8761 123.249 -175.125 -34.7067 159.732 98.3085 28.3251 -126.634 -68.8411 100.019 177.162 26.8912 -117.457 -53.848 98.7705 -4.13687 83.4759 -135.492 152.547 -1.25213 121.981 -151.411 -153.588 123.491 -0.524888 -158.259 85.6004 -120.326 10.6274 67.9341 -142.922 74.9877 -123.135 96.8999 -122.825 96.1038 26.7216 3.37943 6.46081 57.1411 98.9433 -156.084 -76.3663 -109.597 115.625 -0.911049 -0.299427 -2.16188 -0.340225 -86.2505 11.7185 82.2674 74.9859 -109.178 -100.239 -45.7251 71.7981 -122.551 50.7525 2.37118 173.741 -176.112 -33.1945 3.64328 6.76362 -1.17704 69.966 -145.185 -114.516 79.1938 -142.887 70.2174 11.6217 100.818 -119.469 39.785 -17.6713 -170.832 -46.7481 173.671 -10.9214 -51.0127 -124.067 107.332 -88.349 4.14314 110.596 -197.187 8.88332 -0.813327 -118.172 81.801 -11.9622 36.9516 90.2026 -127.154 67.5343 -142.5 -118.651 96.1762 22.4748 2.00662 -76.0507 -1.51312 4.34131 -104.487 59.2129 -108.478 49.2654 154.851 -28.0631 -1.83907 -1.29801 0.183464 1.27972 -0.144934 102.311 57.804 -153.309 -1.96812 94.7158 40.8396 -2.19918 6.27471 -4.15507 45.1948 69.0513 77.1538 92.5362 38.9832 -65.1331 21.4852 -59.246 -62.9043 7.3875 68.3031 -105.49 37.1872 60.9045 92.8604 -153.765 7.5029 -109.628 117.955 -2.49192 6.30296 1.54831 1.17788 15.8679 55.5322 81.094 2.41218 -184.236 113.799 38.1599 -97.8357 59.6758 1.69935 36.4898 1.99735 52.9604 67.0715 -120.032 -1.18329 0.0878684 -3.46802 -86.462 205.622 -1.8938 8.95896 7.22428 168.522 64.0643 -101.749 1.81243 8.69026 24.1845 3.92117 -147.622 78.4399 7.37581 180.915 -69.001 163.044 -58.8751 115.769 109.129 -198.147 -6.39228 38.5247 81.1319 -119.657 9.95105 0.0794005 -5.19642 31.1672 42.2087 -73.3759 -28.4868 168.373 3.5116 5.11846 -80.9442 182.214 -55.1221 -127.092 35.4111 31.9562 -67.3673 -22.3242 -2.24945 -57.8403 160.151 -24.8972 14.5693 10.328 39.53 -112.901 73.3708 -67.5091 67.2065 -42.029 -0.0766159 -104.572 -27.4446 141.922 83.4019 -96.8468 5.29531 -4.07744 -0.0020708 48.663 -21.6677 138.453 -2.06035 -2.46703 46.8869 -7.35868 169.062 -7.85972 -2.38245 -58.8495 47.7236 103.771 -189.561 -2.58476 156.747 -85.2837 -41.8813 27.6425 14.2388 50.843 25.8837 49.5984 -0.0820931 -1.82822 -149.66 2.41339 -2.91519 -1.52698 1.60677 -2.7766 10.4302 -23.1225 -4.01526 0.29379 3.4365 49.0616 85.784 -116.633 -38.5526 -1.13507 20.9469 15.6629 -96.4662 53.4999 -196.336 -0.303979 -91.0745 -48.8788 139.953 -1.79447 -180.242 21.5969 158.645 9.80394 -162.39 -10.6626 -51.9283 62.591 -77.4538 86.5803 -9.12652 0.610729 -123.686 -9.05014 171.685 41.426 66.1127 -107.539 0.145128 -1.38533 1.2402 3.03286 0.245394 140.569 -50.2856 177.024 -13.6805 -1.22568 -33.9922 128.708 -2.07359 125.104 -0.176987 193.479 16.4706 -72.2445 -27.7567 -47.0429 62.6292 -31.8712 -101.955 60.9 63.5796 -139.497 -80.8926 15.2421 17.0603 -32.3025 -82.5609 -2.30847 125.225 49.1293 -91.7718 0.421667 0.477148 0.187514 -162.572 -4.43313 167.005 -14.7003 -87.4364 44.275 -37.6033 -2.56765 -22.5472 -178.858 -84.1561 43.4359 -116.253 169.408 -53.1544 -25.4734 -2.43222 -0.383321 129.186 -35.3694 73.7937 -1.29485 6.67254 -6.49043 165.802 51.5361 170.641 -118.765 6.28539 -177.871 -42.5942 138.77 -1.98937 114.672 -8.99974 116.332 -32.8613 152.648 -51.6363 5.73186 -7.02979 1.29793 -0.481825 -0.483179 21.4675 23.7885 -45.256 -2.3638 51.9564 93.3979 -34.3225 81.4437 -65.6924 -11.1026 112.487 -91.5633 -1.8835 -8.37255 -170.304 5.65662 -22.1863 47.337 51.5575 -98.8945 59.3446 -136.938 -1.66614 -156.774 -2.52866 -1.04227 -3.30378 -0.0489471 10.7043 -10.9578 0.659185 -0.974197 151.048 -144.203 22.0511 -1.38015 35.278 199.997 -22.8348 -159.893 -3.01192 -1.86715 77.6507 -145.649 67.9982 -3.04269 156.721 4.76265 -168.817 164.054 -99.117 108.529 -5.63708 3.27581 -1.13548 0.859805 57.0672 -85.8893 38.5595 113.69 37.2711 27.9592 -48.9212 20.962 -38.9785 157.826 140.051 -0.607038 1.38443 1.00925 76.0614 -121.572 45.5106 34.8097 -81.7626 -70.7939 185.466 -2.05258 -42.135 50.7261 55.0395 -105.766 1.44032 -72.9214 55.6338 -133.938 -22.2512 -0.528001 0.30713 5.63897 -1.10895 -40.875 -24.6708 -152.9 41.1141 -57.7499 163.338 4.17545 112.173 -43.9876 62.9647 53.4387 -34.7827 -43.5918 -5.53174 48.9618 -126.342 -5.0615 -2.59488 -5.41345 15.2546 -123.035 46.541 -5.49474 -8.66205 -4.43462 104.313 -188.203 -0.0498099 -16.6047 16.6545 80.1523 52.0612 -132.213 2.64872 -2.07457 -148.47 -4.61508 30.8909 -76.2103 -0.89801 -3.38772 -147.716 5.48578 -8.56392 6.63408 -179.082 -4.42542 -6.94121 -3.70483 -114.391 197.814 -29.6672 -166.668 -143.006 -81.9625 -4.41013 -0.840354 -20.1059 124.043 -112.656 -80.4372 -80.007 -5.99176 51.0796 37.4271 -54.2324 177.481 61.632 -0.708383 -114.926 -3.13781 64.6669 26.4953 -1.11169 44.991 -28.2173 79.0603 -145.507 142.578 2.92907 -90.1242 31.2763 -1.21769 -12.3762 -30.2019 71.4992 149.266 -180.802 31.536 45.0599 144.195 -149.172 66.0123 44.3923 -110.405 6.14438 -4.57462 -0.990387 -67.7102 -5.547 178.992 -12.9755 -42.0733 -53.8006 -0.350117 -167.576 200.925 -139.029 61.4192 -99.9249 126.647 3.09717 -3.09717 -0.564395 -3.51304 -62.6365 -85.1977 1.87934 0.195602 -191.285 108.724 -87.4069 -6.50543 -155.181 -11.6413 105.237 -185.866 -13.6627 -8.46956 -1.24857 40.3948 55.1656 -1.27655 -2.83161 155.93 -32.4385 -1.23827 -1.23652 -1.46007 145.675 -157.724 148.121 -34.1896 0.223388 -6.78925 0.683954 -14.0048 157.157 -186.824 -1.29211 -7.43973 -44.1821 52.8331 144.664 -149.506 84.4242 -28.4649 121.223 138.812 -147.885 -1.19668 -25.1662 -1.11701 -4.22315 123.235 -78.9209 161.665 -58.5686 -45.2093 24.4971 157.16 120.254 -14.6657 19.939 2.96713 157.302 -131.984 -11.1208 -14.7994 46.3691 28.2849 -158.261 148.956 9.30507 -1.24775 7.41826 46.4828 -62.7004 -101.899 -142.392 244.291 -152.097 21.4208 -40.9197 162.45 -6.42607 -36.189 18.5002 -47.0722 -1.80902 -188.361 -12.6932 -145.036 -31.6364 -3.67645 116.465 -11.0957 -1.11409 -159.167 7.09986 2.04074 9.11671 -6.93998 -12.395 111.932 -191.388 -11.5387 -4.39949 -12.7012 -1.55951 -10.2956 175.837 -97.747 12.7947 84.9523 -17.6914 77.5243 -136.56 59.0355 -1.8176 86.0738 101.717 86.9154 -1.98863 -6.10173 -25.3001 124.427 0.754436 -1.07786 -80.3908 -11.7549 -11.7022 -16.5891 116.375 -105.997 -26.9681 10.1345 -115.738 107.473 8.26583 127.532 -4.99422 14.0761 -18.9919 -12.6497 -2.49639 -12.5977 13.8279 -1.02346 26.8024 -71.5417 -180.727 226.853 -88.2613 -0.435537 -0.410883 0.395171 0.323132 -0.410712 51.0001 106.059 -4.52427 162.422 -157.897 0.684677 -94.6593 -8.28447 -0.48435 -106.002 38.0652 -1.32859 1.32859 -15.1378 194.878 -85.5668 -18.0017 41.1425 -185.33 84.1753 0.333613 177.356 -171.101 -26.6447 21.792 13.5765 -17.9853 -20.6579 -171.856 -2.5976 91.6474 -35.4572 15.0976 -28.0081 12.9105 59.5481 0.840068 -77.4062 -4.84493 -18.5474 66.0477 1.0126 -1.0126 -2.87253 0.369033 -224.854 122.772 -30.8487 -121.533 -153.353 -75.839 64.4424 -98.5688 -0.00481629 -124.984 -45.5996 -158.72 157.323 -23.1056 9.51474 13.5908 -160.131 213.318 -7.71239 102.284 116.116 68.7134 -2.60228 -1.09804 1.09804 12.3112 -40.6578 -25.3116 60.8002 -24.8787 1.53505 0.32995 -1.3781 -0.476813 -48.5615 25.1727 -68.5333 -47.4968 -0.430713 0.240701 -0.228219 -0.273593 -0.288014 0.286834 -0.267274 -0.22208 5.24677 15.5746 106.328 -0.160657 -0.247612 0.23694 -0.288138 -144.012 137.207 -76.5972 -1.39693 -1.10198 1.10198 14.6336 -93.5929 8.93493 2.69977 -1.00014 1.00014 24.7138 -145.328 -1.05593 1.05593 -122.414 -78.4339 12.158 0.409675 -41.2394 -14.0195 -20.9765 48.4158 -28.3821 154.894 33.8373 -25.7608 -0.981516 0.981516 3.24439 -21.9675 -77.8351 -8.7542 -79.2157 -0.888239 0.888239 -71.3534 12.3668 -24.084 -8.36572 -9.09517 -0.976108 0.976108 84.9763 34.2095 -119.186 -109.467 -9.18836 -0.90643 0.90643 140.978 2.9948 36.3417 -0.813704 0.813704 3.55321 -151.506 147.952 -183.063 117.668 -12.0928 102.947 8.87433 -137.962 -0.853114 0.853114 -17.7949 -8.44924 -16.448 -119.107 96.7829 -92.9838 -30.977 2.0029 -43.5565 12.3477 7.51982 1.11703 -1.11703 -29.3621 28.6733 -80.3806 51.7073 -0.853652 0.853652 -66.9939 -9.7003 -9.58711 -0.845485 0.845485 -16.202 12.3446 -46.6768 -13.2774 13.9624 1.19693 -1.19693 113.946 -75.707 -0.911151 0.911151 -59.1229 19.7856 -8.02293 -2.86443 -10.4454 21.4068 -62.8664 8.4718 7.86021 -48.5585 40.6983 -9.38741 -0.85121 0.85121 -84.4765 177.427 -92.9505 -0.821519 0.821519 -12.2363 -0.715661 0.715661 -9.82427 -92.0746 -86.2649 -0.724301 0.724301 -10.0646 -0.768958 0.768958 -94.2851 45.8843 -120.621 -11.3311 -9.80914 -88.0583 -162.511 -17.7475 -3.11126 -22.7812 0.727912 -0.727912 -85.6284 -117.642 5.0505 -1.18521 -147.285 4.7653 -159.946 -12.4605 -0.723306 0.723306 7.88009 2.29436 0.163276 -2.45763 -25.9312 112.164 -173.438 61.2745 -61.5602 -0.70237 0.70237 -72.6199 -48.763 -1.2866 10.6025 2.12462 -70.4281 114.82 16.3837 -55.1234 -81.3045 0.507505 -0.507505 -23.5799 161.278 7.99623 -5.0291 12.2718 -13.4837 -0.930171 0.930171 -77.0513 -107.144 159.109 -45.4195 -158.742 126.83 -11.2525 -27.1701 -3.74945 -15.409 -7.99074 -11.5828 -0.712954 0.712954 -143.629 6.04304 -12.9324 3.81683 4.1794 -0.799527 0.799527 -1.59388 -0.358142 -14.2725 -12.2242 8.55524 -10.5891 -0.902366 0.902366 100.228 -115.828 15.6004 49.4267 -0.790363 0.790363 -63.5215 -2.33828 -96.3112 14.72 1.62705 -0.69672 0.69672 -12.3469 -88.6331 1.15041 87.4827 -0.41593 0.41593 29.7804 -191.962 -0.738635 0.738635 -13.8803 19.027 -106.607 172.779 -12.5445 12.4479 -37.617 -0.751207 0.751207 88.8278 -26.1986 68.5391 52.0799 0.576793 -0.0744054 0.209661 -130.984 0.836978 -0.836978 52.8588 4.3245 92.5927 -117.166 43.7328 -29.494 -0.716858 0.716858 -17.6993 123.586 -117.341 -79.8015 -0.00233935 -15.823 5.00615 -0.584535 -0.76548 0.76548 -49.816 11.9688 -16.0045 0.270764 -135.49 10.8435 124.646 -94.3762 -208.042 0.792316 -0.792316 -7.27523 48.966 -150.95 -0.0301092 -2.34884 0.782407 -0.782407 45.5592 -118.603 -0.658555 0.658555 -2.46332 -114.09 0.161528 -6.40412 207.974 -10.5277 41.6565 -0.700032 0.700032 26.1571 -74.2882 1.25949 -119.573 -22.4195 7.36239 -11.9731 -0.666374 0.666374 -86.0118 199.958 -12.0284 106.788 -181.015 12.0903 -52.9821 40.8919 -14.2222 -0.740171 0.740171 133.275 -151.069 172.507 9.17396 -0.791954 0.791954 -6.75586 -0.7875 0.7875 -156.056 5.88234 -27.144 24.5443 -119.109 94.5648 -96.5664 -0.903975 0.903975 187.515 -28.6572 -16.1059 -15.8441 -152.189 202.275 -27.9836 -49.4079 -0.783328 0.783328 -29.8436 -0.679477 0.679477 5.95132 6.54351 22.8267 -33.3793 -14.4915 -0.737955 0.737955 6.88031 -49.6471 -13.4219 -56.4125 12.4865 -0.740615 0.740615 -19.6949 73.2838 109.595 -17.6081 70.7183 16.7463 -4.41695 -12.3293 -155.344 2.66749 80.6637 0.0882929 -2.6369 0.763639 -0.763639 75.0619 -130.192 55.1296 -0.395239 -166.326 166.722 101.304 -13.7116 -13.4083 4.50856 -152.023 0.814659 -0.814659 12.4313 -59.9114 -2.13549 1.68523 0.45026 45.9795 19.7092 12.1825 23.3579 -108.987 -1.13017 1.13017 32.6449 -8.10348 65.8944 -24.7421 1.64823 188.764 -60.8566 114.3 -106.925 65.0777 -18.6559 -6.7214 -152.445 -0.621107 0.621107 -94.7286 34.4806 -12.2716 2.18683 1.33066 -1.33066 -83.0554 -53.3827 43.4939 9.88876 63.0334 -17.7403 23.9704 34.0408 -9.02839 0.634518 -0.634518 -6.55538 73.474 196.397 -56.7344 -0.783609 0.783609 -0.0431516 0.0431516 -63.9158 12.5014 -0.871902 0.871902 5.8722 -76.226 -18.8207 43.8757 -117.746 -0.98043 0.98043 20.4511 110.631 -122.819 12.188 -73.5545 -87.9566 -0.818804 0.818804 168.025 -0.176344 0.31228 -46.896 204.776 62.4407 -49.6846 -12.7561 -1.03208 1.03208 -67.4702 12.6208 32.3088 -7.74656 -0.592438 0.592438 -155.812 -155.097 -1.69881 162.057 -160.358 -48.8967 8.80967 -10.5012 34.5699 -9.02806 -15.6413 0.605214 -0.605214 104.793 -66.6928 44.5443 165.479 -210.023 75.2398 -26.8606 -92.2465 110.169 -180.394 -185.278 97.2193 0.773391 -0.773391 -158.879 -85.248 0.0777398 -0.0777398 -0.846857 0.846857 -0.849528 0.849528 85.8753 -23.2748 -122.668 127.633 -75.8643 23.6779 120.897 35.3888 -155.984 36.031 -9.5243 -6.20019 34.5039 4.10948 167.279 31.6551 -7.5169 -20.8555 -76.2499 49.2066 -111.928 -20.0685 0.611831 -0.611831 1.38358 0.22577 -73.12 0.251104 0.234038 0.151134 0.161572 0.199997 0.323057 -88.6892 0.612889 0.188622 -104.604 98.9348 5.66946 145.814 -158.161 0.982515 0.277653 120.659 -39.5268 0.873608 61.9626 -14.7113 0.777821 -0.777821 -14.6035 57.5833 -42.9798 0.168209 0.0943623 -0.0943623 12.9268 -3.85659 -138.302 6.68655 9.74558 0.742447 -0.742447 -0.839286 0.839286 -8.98782 33.5029 91.6009 -151.593 68.354 -159.632 0.818101 -0.20132 15.5837 1.92694 -17.5106 31.0679 -6.99749 0.854694 -0.854694 18.9447 133.321 -38.0917 -0.858453 0.858453 1.9893 -93.1445 -124.455 -0.711192 0.711192 33.1236 -0.703218 0.703218 -0.609393 0.609393 143.7 -41.9828 -21.2174 68.1043 111.477 -177.113 43.431 -113.492 70.0605 93.8487 -85.0126 0.682068 -124.648 0.921985 -0.921985 -141.955 -1.20155 -170.477 7.88184 28.4258 -69.5197 209.853 -140.333 9.2744 -10.8812 -76.0446 -43.612 -0.788208 0.788208 -56.0337 105.299 39.2268 -25.6638 -108.654 -0.0466258 -0.828577 0.828577 43.3274 -102.805 59.4778 -118.724 132.346 -130.479 2.38121 -7.42485 -28.2873 -0.778196 0.778196 -147.905 -67.9286 215.834 32.9856 -8.27265 131.208 5.72762 -4.34211 -1.10193 -12.5863 -67.7662 -45.1345 0.8324 -0.8324 -13.9393 52.8206 -38.8813 -0.118739 0.118739 129.315 -116.97 -32.6035 -11.6931 44.2966 -5.10783 1.104 -102.982 -15.8602 151.791 -148.054 -3.73672 -1.14635 1.14635 139.501 0.264274 115.023 -41.6524 -0.936437 0.936437 7.21626 42.1218 -29.1197 -13.0021 -84.6646 78.6415 6.02314 -124.274 11.1225 8.9385 -134.587 125.649 -1.19944 1.19944 0.220138 -0.84775 0.84775 12.6241 -33.6751 -0.684448 0.684448 -77.1973 34.3061 -9.41948 -30.0805 -8.34975 38.4303 -13.6389 60.6211 -46.9822 17.2476 -6.72785 -10.5198 10.4904 -52.1552 -41.1269 6.48006 167.561 0.715426 -0.715426 -6.72069 -43.9559 -99.7497 57.6147 49.5708 -12.9864 -36.5844 -0.860559 0.860559 16.9111 -70.7261 -35.3378 -0.89521 0.89521 10.259 -82.9664 96.9741 -32.9991 144.987 -0.903512 0.903512 222.711 -76.6507 -146.061 -4.43304 -22.5784 27.0114 -3.07052 4.28502 -0.856482 0.856482 31.4977 -5.72829 5.62709 -71.2956 12.5648 108.641 -42.5285 21.4138 10.1961 -25.8672 35.4832 -10.5911 -116.185 126.776 0.721472 0.961497 -0.961497 -1.07487 1.07487 11.5276 -19.1733 7.64573 80.528 -44.3148 -36.2132 -1.05856 1.05856 -1.09181 1.09181 110.363 -2.88991 -153.793 53.681 100.112 -1.05682 1.05682 0.266588 -95.7997 2.11369 -1.01084 -1.10285 -17.5029 0.190052 0.171586 18.8652 -49.3947 50.4721 -41.4142 -0.117856 0.117856 -106.561 129.035 -47.1783 8.66134 43.4763 -34.5716 -46.2499 193.603 -58.6788 -134.924 1.60915 -1.60915 -61.5313 -89.3986 123.247 -0.0818358 1.12561 -1.12561 -48.3649 77.0382 40.3205 -21.0446 23.7444 -1.36811 1.36811 -73.9335 123.833 1.29907 165.706 0.0385003 112.525 -206.902 -1.18098 1.18098 3.28638 -3.28638 -80.7954 -169.424 173.533 -1.16827 1.16827 -36.9514 -52.1501 1.83061 -0.153763 27.8233 -6.96907 -17.6176 -12.182 -128.177 10.1361 -0.899175 0.899175 -146.14 -157.063 101.717 55.3465 -217.425 -3.90852 -159.367 187.643 -28.2767 -138.497 -3.58943 -6.20062 160.385 0.122267 -3.07841 0.949036 31.3987 -5.26299 -45.5224 165.141 -84.5978 5.5737 -137.712 -9.06082 -83.5337 -1.03045 1.03045 1.16359 -89.3134 -198.494 115.527 -1.0675 1.0675 -142.901 -10.6986 177.369 -0.535504 0.636442 -0.100938 -1.02948 1.02948 -33.8173 12.5992 -1.348 1.26826 78.1273 -60.4059 -15.86 46.9079 125.501 -130.065 1.54362 -0.960871 0.960871 0.623158 -0.095372 82.3664 29.9852 -15.4375 69.8049 -54.3675 -163.04 155.181 -53.2924 -92.3565 1.15009 -1.15009 -186.535 12.4128 87.0611 30.4621 -6.09025 -24.3718 -0.110325 0.110325 150.822 3.6256 -1.54937 -18.4061 -26.85 -12.8932 12.13 -1.38462 1.38462 160.038 173.313 -104.64 -13.4485 11.9353 -1.4867 1.4867 -52.4842 -7.42238 30.1719 -5.26961 31.7425 -1.29636 11.3908 -42.0266 102.927 -12.1841 61.9058 -5.73875 -6.18253 -71.9269 9.66075 -139.699 -24.6431 65.0808 -73.3079 1.30732 -1.30732 -3.09968 13.0347 0.00446677 -34.2231 39.3519 -5.12879 2.91625 145.955 -74.7276 -76.5137 -13.8192 11.7589 -84.0521 206.698 -71.1136 129.452 -104.74 -24.7126 -9.03754 170.997 -161.959 -172.835 -10.2007 -183.508 189.027 -10.2915 -106.709 117.001 -156.964 9.3419 -10.4344 -16.0857 -44.3649 -25.1627 40.8256 159.592 15.9798 -74.8227 0.03941 11.1286 -85.534 18.7156 -6.20941 -42.3491 -84.6007 -9.877 56.6851 -46.8081 82.0788 -195.598 110.665 -110.665 162.875 -11.8879 61.0851 -89.1256 42.0534 132.213 -80.1521 123.793 -126.084 2.29134 -121.303 148.722 -80.724 -83.2933 13.1789 33.3348 -4.836 9.67771 -42.256 45.1748 -2.91878 -32.7939 -7.15327 39.9472 10.9299 -175.173 163.211 -159.565 0.845417 18.847 -15.9284 25.2565 -89.0054 12.3324 -130.877 145.648 -137.085 -7.79177 18.2382 -92.6235 12.0705 -168.788 -0.635423 -77.9185 -162.577 0.172795 0.0101946 2.31244 142.107 -166.247 -50.5661 75.8007 134.961 -146.035 -120.869 -11.3071 132.176 -50.0751 42.7164 15.2282 -123.511 -59.3932 48.2906 219.812 -163.753 0.170813 -28.0629 33.9947 -5.9318 -20.6856 21.5257 -93.5584 -73.1164 -130.185 -6.66226 200.43 -120.084 -135.222 -2.72465 137.947 45.0509 -67.1111 -13.1086 117.542 17.5265 0.714592 -12.7681 -5.21719 -129.428 0.0711427 -0.0711427 -165.031 1.01843 -0.0436503 -6.64123 37.4672 137.327 1.84068 -148.589 0.0877875 32.839 -4.45705 -45.534 56.0244 -61.8387 14.018 54.668 -16.169 -145.462 153.344 30.3226 11.1816 -202.27 197.442 4.82724 15.8805 26.1395 -8.90725 115.429 -100.784 148.268 145.69 -7.56028 -19.9252 30.5069 153.338 5.68167 -14.0913 12.795 -161.789 163.558 -19.5683 187.249 -167.681 -66.0043 56.9542 64.9722 -66.5498 94.7439 115.335 -123.105 7.76955 40.6743 -30.8592 -9.81512 -41.4649 139.251 -134.67 -37.4714 90.2035 -43.1085 -89.105 -31.2452 -2.12324 19.0279 -16.9047 -21.5498 -2.14434 2.14434 -48.4271 27.4506 169.081 -35.2001 -7.33675 42.5369 -34.3291 -0.524058 -1.39666 -28.2099 36.6532 -5.69907 2.58155 -2.74994 14.2176 -0.958591 -44.3222 -70.698 -61.7598 47.7294 -69.8021 56.8032 -38.7836 26.4142 12.3694 -0.206988 1.59718 -127.492 -23.93 48.6927 -0.633459 1.39034 -0.756877 118.891 -9.09869 -109.792 84.2252 12.0055 -96.2307 128.319 -36.7183 -51.4845 -47.4249 -92.7444 104.489 20.0859 1.31297 75.5704 -76.8833 26.2296 -206.555 204.305 -41.0134 50.1821 25.4224 -61.4713 14.1189 47.3524 -54.9688 -58.6749 -96.8832 113.794 145.472 -16.0895 -67.5272 -15.921 205.869 -163.714 -42.1548 -70.846 26.4222 -117.054 28.2162 -37.4171 4.78347 8.15438 0.219806 108.389 5.91175 25.4018 44.521 -38.5697 -112.83 26.6207 -34.4114 -183.202 112.356 32.5558 -6.12537 27.4795 99.9476 -96.2685 20.5421 -14.0813 -2.88005 12.226 33.4688 147.712 -153.677 29.1274 0.927651 0.01562 -0.943272 -0.301292 -17.8438 -171.356 25.2869 121.39 -34.3596 48.2444 3.0712 19.8627 3.62419 -17.306 13.3285 -15.3322 0.376599 -5.99116 152.174 -131.912 -168.332 4.77254 71.7764 -65.434 -120.557 -54.9785 104.129 -115.683 -17.476 -31.4452 -24.6258 191.385 -166.759 90.2038 -140.923 -86.3875 19.2509 -91.0124 103.121 -0.911482 0.911482 1.5349 -0.444466 -1.09043 25.1107 111.975 21.0692 -133.044 -40.1042 -102.54 103.163 -68.9173 -8.02468 22.1483 167.837 -11.1191 2.4356 -143.446 148.565 -124.585 124.958 1.71907 199.344 4.97094 -22.6406 -98.3355 109.957 102.389 -104.149 -1.1577 1.1577 6.68988 -39.4838 -140.532 93.7346 0.279512 -0.111619 111.91 -126.262 -0.117685 -1.5219 -114.517 -31.0186 24.4037 -61.3175 -46.2212 -99.9655 105.713 12.7313 -16.3151 -173.357 159.438 -140.142 -7.57548 35.6675 -163.18 -6.03574 109.312 -190.256 -131.889 -0.977793 141.221 29.203 138.077 -92.4675 -5.72922 -132.369 56.2069 -0.977793 117.079 104 -96.7194 26.5727 -34.4944 40.5536 -158.642 -7.60525 104.195 -107.045 -56.4587 -106.109 -59.3621 75.8265 12.0937 -87.9201 23.7967 -56.3618 148.848 -148.768 142.557 -27.9814 20.175 14.6048 -1.5469 -13.0579 -108.493 -143.449 114.276 -112.464 -9.33568 5.96484 3.37085 107.417 -120.178 -3.11012 -75.8733 -16.7967 -110.043 8.05825 -9.75722 -81.4414 86.0275 -30.1359 -10.338 40.474 -174.384 172.517 -175.972 -64.5776 2.16216 -52.931 66.6882 -13.7572 -172.773 -19.6253 192.399 9.72807 -80.2911 96.2957 25.8564 8.95576 -122.267 9.05081 -39.1313 29.3834 -27.9044 36.0099 -8.10551 144.739 -145.965 62.0624 -50.4949 -126.422 122.715 -28.8782 -9.97393 38.8521 1.34402 -146.38 5.88632 123.294 -128.621 0.59554 -169.411 -10.0071 76.9679 -72.7523 -31.2225 -67.3463 -45.7762 103.391 8.14998 -12.0427 30.7649 -64.9497 135.464 -0.05325 1.2801 11.0024 -11.91 -2.84644 14.7565 6.48029 -7.60915 -47.3591 -15.3807 62.7397 -163.391 -8.81685 -0.206629 19.6277 -15.5623 0.0891738 -0.0891738 117.09 7.33434 101.431 111.775 6.18067 26.5575 124.413 -13.118 -2.91472 16.0327 12.0245 94.8583 -106.883 72.6477 -183.311 3.61031 13.572 41.273 -56.9222 -143.472 -6.03357 48.4436 176.753 78.8159 -79.9992 -27.925 -8.48397 36.409 -0.375707 -49.4093 -28.2219 -9.00146 37.2234 0.708651 -0.327389 -0.381262 -12.2463 -1.84507 145.757 0.810797 -74.3048 81.5291 -1.27442 0.860306 -27.2891 -8.47566 35.7648 -20.074 -13.783 -2.14996 15.933 -23.0484 -13.7431 36.7915 -27.6698 -8.87108 36.5409 14.8909 -11.6985 -3.19245 1.8985 2.0221 1.24123 -0.336312 -27.151 -7.89773 35.0487 -5.33771 27.9604 -33.5067 113.455 -6.4737 -0.0854424 43.1885 -85.8242 87.0021 -56.1851 -55.0618 25.4967 19.5679 60.3629 122.451 -62.9027 -51.4722 -33.9585 -10.8969 44.8555 -54.4654 68.2339 -32.4904 -11.2924 -86.7867 102.984 -13.6907 -1.58542 15.2761 -167.113 0.071514 -0.071514 -30.5681 24.8763 -142.131 142.082 -49.4463 -14.7822 64.2285 184.601 -185.237 28.122 133.642 -74.9501 11.7912 -1.08628 -40.8791 -153.434 56.0824 -2.43766 7.87297 -29.4021 -6.26811 35.6702 -51.0096 -17.2622 -33.5853 -4.98945 112.909 -4.82316 27.0639 12.222 7.89018 0.101845 -39.6602 -75.7901 82.093 -65.6871 -157.108 159.756 101.879 -36.4641 -12.1932 -37.9062 1.23398 -1.23398 -145.941 0.0804451 -0.0804451 12.3746 142.891 -143.934 -30.0203 -5.70741 35.7277 41.0157 46.3505 71.1918 -48.9217 -66.4544 -37.2503 14.6885 -19.1054 -40.6274 -12.8105 -31.2445 -8.60819 -31.2263 -8.34734 0.0932767 -52.1597 -14.2947 -29.9463 -9.14778 16.2972 -64.2653 43.644 -31.7247 -8.85075 40.5755 -35.7733 -11.6315 -14.6708 -32.7792 28.6348 36.6561 -48.3492 79.928 -29.5094 -35.6715 -39.2105 50.9332 0.606957 -35.683 -10.851 46.5339 -220.348 117.773 -122.768 0.092726 -148.224 26.2327 -52.9412 -19.8052 72.7464 112.39 1.71719 -1.83613 -50.0606 -41.2454 -38.7198 -12.9747 51.6945 -119.853 -206.102 48.4283 142.675 -151.337 -15.7898 110.648 -66.2413 -145.338 -102.321 -102.479 -167.192 -19.3431 -17.2758 -19.3168 9.7309 -70.9347 46.1926 -30.7557 26.974 65.9758 40.3518 -42.6807 -12.4212 -221.838 8.65554 -67.559 -116.174 158.949 -154.183 -81.9518 -2.71289 -57.6209 64.1789 -1.81689 119.195 -165.021 -17.3468 182.368 20.4989 -33.0838 -7.20777 -137.75 130.16 0.26338 -34.806 -60.9512 -112.487 24.7453 73.0504 -82.962 -83.3668 -107.918 23.5008 -29.5296 85.3986 -85.1532 30.1507 -38.5005 1.86527 -143.278 -190.582 -0.0608681 45.2198 -15.3944 -80.9838 84.4203 -37.4004 -8.15971 7.05912 -42.2593 78.9103 -81.4951 0.28578 -66.2333 24.0337 -183.401 0.0599418 -74.8643 57.2562 -34.2398 -6.40008 -162.975 247.549 92.9724 -191.926 9.21238 182.713 4.26611 -34.1485 28.6079 -33.6025 129.084 0.105858 113.934 -63.1814 -0.00864008 -32.6583 -5.34617 38.0044 -60.7716 -11.5491 -4.63372 16.1828 89.3291 11.6319 -1.80045 -1.80292 1.80661 1.71261 -1.80126 6.36989 131.833 -145.653 -0.0446567 -38.7747 -7.19642 -14.8097 58.5305 13.8733 -72.4038 156.248 78.3518 -82.3671 11.488 -29.4536 -8.24363 -43.6242 -60.3504 46.1283 145.663 -48.4415 -9.46129 -134.133 98.6756 8.8431 29.2686 0.00460614 -67.0497 52.5582 -15.8307 15.6294 0.0707785 -0.0707785 0.39209 135.563 -13.0738 11.8217 59.6766 0.0209358 0.969771 -0.181061 -31.9502 -7.18109 39.1313 -183.472 -10.0738 -3.69986 4.7106 -15.298 13.4589 59.5229 -164.633 14.9107 -14.4064 -15.7203 -39.58 29.0523 -107.99 50.1273 4.57724 0.217217 -169.902 -21.2969 191.199 0.0386073 1.52905 1.50267 -0.0865733 -146.697 -62.3787 10.4797 -37.1907 -7.80601 -179.707 66.7057 -54.3651 96.4185 -35.7339 31.3994 -58.6779 48.9776 4.05352 -59.7079 -12.4542 72.1621 10.3872 -66.4773 56.0901 11.7871 -14.0931 12.9254 0.093643 -4.01535 -0.960275 0.176403 -15.4057 -0.0419156 -1.25951 92.8723 -94.0078 14.3183 -178.137 167.016 -0.0125718 5.69813 -64.7042 -138.471 -48.9617 41.7346 -73.1098 13.7476 0.796766 -176.145 -14.7299 154.783 -92.2069 91.8236 -160.309 155.899 168.331 -102.098 100.215 -93.3627 0.901988 -1.21071 38.6665 126.61 92.6982 -32.3352 29.045 101.335 -0.0486215 -14.8637 13.0547 -35.1304 -0.940883 -5.28608 -84.0779 5.142 34.0331 0.535938 -0.177973 18.3427 -99.1381 -15.7717 -6.08548 -33.992 43.3374 -9.34541 -58.3086 46.7258 11.1003 -12.0744 -15.176 -3.64273 -59.2771 89.1313 -29.8542 10.7366 -65.7053 -34.1987 30.4935 -65.4447 50.7335 -13.7063 4.73434 56.7 99.1757 -155.876 -96.3867 93.9545 0.123851 178.047 159.653 -2.33039 -68.8578 68.595 0.262727 -3.17563 -152.262 17.369 -17.9098 -0.00661127 -108.33 -0.0414765 31.4038 -35.4427 -175.372 168.583 31.5354 -198.786 187.083 11.2756 0.0336575 13.6917 14.7696 26.734 65.4531 -0.0737961 -58.3473 -39.5484 33.7153 -38.2826 34.1773 -1.77904 1.37879 -0.0517836 -78.9173 192.075 -82.4799 -35.2832 3.43606 -3.43606 -13.348 12.1303 -7.07641 -2.61918 9.69559 57.4464 -66.3903 0.0682481 -0.0682481 -7.99695 76.7378 1.90369 -42.4644 -1.03683 -58.1542 -109.1 167.254 0.103851 128.964 -29.961 -0.0584781 44.2654 26.9189 -47.7565 -14.0254 12.7488 32.3973 101.69 -105.395 44.326 -28.3462 -67.2744 115.752 -101.7 -18.0808 20.197 0.170881 -14.8874 50.3106 -67.5729 146.904 0.613781 -0.262762 134.152 -164.267 -32.6635 196.93 149.07 -161.763 -61.9655 -75.7345 -0.515347 -43.5437 26.1046 52.0288 -43.4064 36.2039 90.7205 -133.571 -102.135 97.5204 -36.3848 31.5811 -168.043 155.649 -98.0929 95.498 -64.5153 -139.805 -17.9679 14.7754 -24.7007 -239.626 152.983 -17.6406 32.7681 -41.7696 -90.8026 -40.5958 -61.1547 53.4423 -81.5317 -2.64756 -85.2618 20.0674 -148.02 -58.5407 206.56 116.53 -60.6795 51.9253 33.271 -39.7201 -1.77101 -158.721 -32.5075 -24.9929 -14.3679 13.2562 -155.417 203.846 -27.7836 -0.149091 -3.67387 114.339 194.576 1.4831 -1.31443 1.94394 -1.40524 2.08173 79.3896 -9.71235 28.3323 -44.2911 -15.313 -103.23 97.6982 16.1379 -19.0526 12.4239 -39.124 7.35167 -55.6554 -67.7234 48.1999 -17.6395 0.578696 -0.0668267 12.5413 2.20711 6.99706 -28.5211 21.5241 -19.1597 -180.159 -40.3698 50.5043 6.22885 0.296301 -0.213274 -22.6752 22.8848 -27.6838 73.8764 160.223 -165.42 35.1289 1.83437 -0.182492 -8.31775 0.43964 -72.4221 3.01557 21.1193 -25.2195 -76.9389 -66.3409 56.7538 -197.333 113.966 -155.056 -52.9843 65.1512 -10.4929 149.592 20.918 39.1768 -104.523 -13.0093 12.1113 174.259 -184.266 -30.6375 -1.97598 146.454 -1.38857 -37.4943 -13.4422 12.7338 -70.5197 60.0743 163.796 -55.8817 15.1161 -0.0734665 -15.833 61.8125 -88.7512 100.629 9.71869 -126.689 4.25194 0.355958 -42.3011 -57.0896 137.753 -175.624 162.923 26.0613 35.5706 -1.25925 -70.9604 -35.9417 -21.1422 72.5905 120.156 0.0166225 -0.0417711 0.803758 -84.4452 86.0996 -1.65441 13.3478 0.0674931 -0.0674931 81.9873 -29.6918 -0.107392 151.357 13.424 16.697 68.2068 -64.2831 55.0948 3.21739 -60.6651 97.3422 -51.3765 -29.0041 37.7841 -34.8765 0.0631801 47.3313 2.72245 0.312034 -3.03448 -34.7299 -17.7992 -74.0041 -44.6082 -108.574 103.027 -131.82 -0.889627 -0.0147485 0.904375 160.307 1.37891 -181.789 163.787 35.4836 -43.6433 -109.645 98.0035 -0.0968393 2.50464 -0.774447 -86.4055 66.337 -103.445 99.7682 57.8876 -166.988 -70.8939 170.127 -168.7 -84.314 68.208 0.0642397 14.4926 -15.6096 168.626 -36.4073 0.145094 33.3285 -73.3742 -19.2086 0.147262 -2.02923 -74.9337 65.1246 0.00797394 -15.6696 14.2153 -60.4855 34.841 0.0938249 -18.1699 3.13986 115.334 -0.0775852 -113.799 100.136 122.284 -50.2025 72.6745 -1.29078 1.09412 -74.6861 0.624912 -0.103566 -0.521346 0.249835 128.535 -75.6579 13.9979 -112.392 94.7008 154.757 0.133777 -50.8206 162.235 -9.10845 19.2821 -0.0806237 -17.1648 -104.368 -0.0403695 158.556 -183.867 0.278489 70.3061 15.2344 -49.2956 34.0612 177.002 -223.898 -182.685 157.212 14.103 -185.721 -100.413 134.668 -34.2556 64.3211 -73.3819 -52.5969 -13.8804 -192.924 15.1348 -59.4571 -5.15714 7.1214 1.17663 -1.05759 -55.8246 -73.2319 -200.034 143.3 -39.6911 11.3447 34.3735 -33.8361 98.8914 -107.393 8.5019 -98.7756 151.401 -52.6254 148.433 -0.0881168 -7.32892 1.38231 1.62355 0.952834 15.5392 -17.8024 0.0545833 -0.0545833 -14.9399 -23.8437 -0.263006 -7.30791 56.2691 -15.2015 46.8261 -61.3518 181.243 -0.182642 0.303268 -58.9241 0.351694 0.163302 -94.7485 105.197 -106.75 3.01174 103.739 -19.2873 16.4266 108.589 -63.5293 113.847 26.9123 -34.9678 -0.252057 -0.768978 48.971 -62.2699 -2.54947 -183.401 130.552 -121.196 99.2286 45.0921 -26.2269 -226.393 155.04 -195.088 134.232 0.610297 -26.7566 20.4618 -194.22 179.49 25.9656 -33.4276 -81.9618 87.8509 179.525 28.2942 -37.1709 -133.335 106.191 95.3492 -81.312 86.185 -79.3569 -0.0346514 33.3267 -0.196797 29.4012 -38.8574 -9.38418 -3.77718 13.1614 -1.40414 -32.7261 25.8945 -5.07363 -29.3142 -52.8354 9.26987 -1.75929 -0.00830107 -178.579 176.785 -182.362 -7.78571 6.67676 13.2229 -44.4426 62.4055 -64.0076 7.54456 2.80802 0.0470297 113.081 -105.578 -83.2782 88.1234 -2.8947 -30.001 -7.69201 -31.9875 25.562 -34.9926 26.7732 -102.291 146.647 169.018 -173.452 4.90918 -139.223 135.929 149.444 -33.8373 -31.431 25.5432 -169.349 96.2329 109.845 16.9316 -0.504004 -0.497473 -0.0721959 0.106022 -2.27309 -105.18 101.638 -6.96373 -25.5934 -1.15977 -100.245 165.827 39.2231 -25.6162 -13.6069 -10.8538 -96.4521 -7.27311 2.11597 -178.763 50.874 -200.47 -7.83404 -48.6512 56.4852 2.19346 43.1608 -38.1103 -213.596 20.2889 12.436 -16.7257 2.67377 -18.6021 52.69 -151.466 166.827 -101.929 70.5862 -121.804 62.6178 8.9279 -46.3993 62.2738 -26.6063 0.0580517 -0.0580517 53.987 0.0127127 -144.689 107.203 -133.792 186.397 118.427 -71.561 66.2382 -206.572 173.468 0.269092 -4.2966 3.71697 0.579637 41.5524 -54.5388 -137.198 99.1067 13.595 8.96999 96.5737 12.2434 -16.0466 -35.8294 30.3469 -36.095 2.496 0.000370172 -80.6418 84.7849 0.257048 -0.63831 -4.39403 69.5117 -81.94 83.9374 -61.2387 49.2103 -7.64828 0.478124 -172.168 209.459 14.1161 -0.0370469 -34.5728 26.6662 15.9933 -81.7176 83.2659 9.97035 -13.3616 12.8041 -2.15799 0.0380135 -24.5537 28.5934 -33.8846 -31.4145 26.6151 30.8886 -103.961 -64.2281 168.189 0.0686109 -1.05584 60.5941 125.155 -104.085 -8.86091 -9.612 0.0957549 0.0782685 -86.3004 11.7141 21.7896 -0.161479 73.6857 -82.9464 5.87277 18.1284 119.948 -0.28773 1.98796 -1.70023 -0.234522 -119.522 12.8132 50.6162 10.0256 -13.7368 -215.735 145.009 -31.6632 27.3901 34.3952 -38.8198 -0.102088 4.00956 -0.723186 152.919 -159.86 96.5089 25.1031 -2.83015 10.33 120.433 -46.3312 -0.661428 0.535886 -12.3883 148.574 -14.7991 7.70646 7.09268 -10.7085 -115.376 75.8885 -44.4628 0.06018 -0.06018 -41.155 33.8798 93.5398 -0.600342 -177.431 169.146 100.73 141.08 -54.6695 -17.1386 16.1152 0.153577 -79.3651 21.4624 -189.143 -92.2343 -19.7256 5.02527 -72.6153 118.523 26.312 -30.1477 19.7031 -160.317 140.614 21.9501 -15.6568 -104.12 -49.919 41.9282 -3.53414 33.2348 15.3866 2.13843 16.2325 4.07648 45.6067 131.395 -41.9237 0.314311 -28.4211 25.7393 -5.91956 -0.46416 104.209 12.7922 15.3586 -59.3461 -61.8984 114.731 -70.084 0.607372 -0.94241 -0.35399 30.4351 -35.3883 -86.7658 87.3766 -81.9981 -22.2371 -31.7034 26.9913 32.7701 48.5643 46.7963 -26.8573 132.779 46.6595 -3.67591 -7.02452 -3.4221 -63.6809 160.561 -161.536 8.3602 -146.857 0.916418 53.2415 -216.995 -37.361 0.723603 0.764994 48.8373 -0.723603 -0.0043088 -12.0285 111.001 166.331 -92.6904 0.818046 83.4954 -83.6724 -165.739 -36.2321 47.4398 0.358941 -8.66483 -44.4292 103.288 -69.8192 -84.0988 82.9638 0.865647 -33.0403 29.2167 16.1747 -0.865647 -48.6602 -12.8111 6.41064 -4.46862 94.4517 70.0984 -32.5 -54.3712 -5.3801 24.2124 -30.2678 -11.7826 -21.8925 15.8094 19.7169 -24.9182 -88.0186 -89.3287 177.347 -3.60127 -104.364 181.656 -39.244 -50.5835 8.23442 -22.3293 13.0388 55.195 -13.1629 -22.976 5.42886 7.56984 64.1652 -50.5732 -95.3109 -0.0774553 0.0774553 3.80718 -117.895 3.37441 105.025 -17.5425 -10.7034 -1.59053 2.5279 10.6503 -13.1782 -1.42076 -48.5643 -139.786 2.69388 -16.551 -124.442 44.9479 -47.8667 -12.7888 -12.1146 -13.6224 35.0982 -34.1156 30.6513 2.26184 -2.28193 0.0200953 -102.066 100.4 112.169 -105.989 -8.44587 -8.73825 -9.69141 41.1882 -59.8515 -14.4011 -9.20132 23.6024 -1.2551 7.93186 33.238 -12.0878 22.4346 -94.0566 91.6928 -2.12653 -120.978 -0.512894 1.66901 -124.808 35.4095 186.549 -29.1492 -65.1834 22.8139 42.3696 1.22162 -2.02016 -37.9441 33.8606 0.000382893 -38.5228 -8.00522 -0.567174 11.5006 -26.009 16.5099 9.49903 -12.0473 -7.12602 6.68203 95.3183 -95.9254 -45.9036 61.4917 6.48065 -7.46125 12.3871 -8.57041 -13.0129 110.195 -44.1469 38.8953 42.2537 -30.5351 26.5141 -74.535 37.1153 -3.23551 -96.9406 54.6004 -7.32432 -59.6237 115.138 11.7751 -40.8948 -94.956 92.9666 30.453 18.1148 30.7826 -1.08954 -1.50372 1.31231 -151.946 153.431 16.8123 -163.331 118.682 -21.9731 166.401 -39.319 10.2539 29.0651 1.20022 -0.823405 -0.172486 -0.0117549 0.184241 18.2552 -1.57119 -14.1053 -6.70056 14.4025 -9.4575 -4.94505 -145.357 128.145 38.96 -23.3891 0.452513 5.38571 -148.885 12.801 -108.515 62.2935 82.3745 -82.2524 -0.122093 7.41024 -38.6555 -162.997 53.7388 -28.7797 149.489 -106.353 -3.91358 -187.398 176.302 -0.245216 0.184348 28.4851 -36.4241 31.9598 -6.32025 -18.0239 210.502 -110.428 110.428 -5.06263 5.59099 31.2184 -36.6059 28.5356 4.75919 -5.58822 -66.1427 13.0979 -14.9155 -8.77825 -3.39717 -13.3345 -3.12415 11.91 11.6958 -3.17229 3.23911 -6.33629 5.52248 -1.2457 -0.0138071 -98.5507 95.1629 -1.88682 10.052 -11.3006 -40.5967 34.2211 182.152 -84.9658 79.9043 -13.8224 -42.1656 141.272 -90.284 0.0827353 12.7489 -14.0411 -110.513 -89.3382 194.087 -125.733 12.0069 45.8114 12.0786 180.32 13.4317 5.28447 34.957 -42.8107 47.2491 -63.0932 -0.00592936 -0.662694 -44.3151 12.8537 31.4614 -20.7903 -8.66332 120.447 79.9825 -11.7066 -10.016 -5.14211 0.425479 4.71663 119.729 0.160128 -0.160128 -152.974 134.148 18.8265 -192.054 180.3 -14.4353 6.79933 0.09646 0.319255 102.773 -105.911 -1.07828 -0.497544 1.08822 -89.4151 156.732 -161.157 1.28311 109.257 154.552 -166.091 -6.36342 4.857 128.331 -0.520062 -0.457977 79.6826 -62.6138 -48.0656 37.1686 0.716573 0.211079 -62.6582 20.6293 -110.143 104.729 -75.3386 -30.3632 10.9617 -12.2 -0.170536 -1.60851 -57.0757 44.2652 -171.593 -8.11376 -3.63351 0.236545 -7.03508 -2.37856 0.784464 160.355 -231.469 17.252 6.30103 -0.784464 -80.3845 4.61597 10.9498 6.69985 10.0127 -10.8531 169.989 89.6248 -103.63 -5.33865 4.59929 -5.58682 -13.1684 0.746864 -171.294 158.697 -0.746864 -5.92428 5.54429 28.6705 -1.14155 3.79058 -180.41 75.4303 113.484 9.32581 30.6715 7.33304 -40.9908 31.3788 -93.6257 14.3565 7.79272 28.424 4.99737 -6.0013 -60.4505 109.996 -131.283 0.538736 31.4802 -15.8811 14.4947 -168.295 108.332 -99.3615 7.77751 29.2724 158.688 -95.5372 -63.1512 -115.471 104.577 8.77991 55.4551 -12.1608 0.910208 0.0133482 -0.923556 -37.6816 28.8207 1.87071 -1.46104 54.5407 -62.9064 -1.1806 0.327445 -30.832 154.132 117.653 -63.2766 54.1815 -1.36726 13.7572 23.6774 87.9904 151.18 -167.101 -160.583 155.088 0.00901811 -2.08985 2.08985 -70.2199 -1.65774 -146.046 86.4226 -30.2157 -109.575 97.1991 -39.6013 59.7085 -58.7518 -6.09657 -220.493 140.102 -73.5622 -2.30209 -14.6615 1.7733 -2.72477 4.58659 21.7955 -106.393 -8.99066 202.976 -82.5284 -11.1273 100.832 54.4112 -24.0083 142.626 28.1071 10.0812 -42.84 32.7588 2.76417 19.0255 28.0612 9.05414 -4.76213 47.576 -58.9072 7.25049 56.9284 20.8895 -1.8625 3.77172 62.9583 -70.9813 -4.44375 -83.7065 -17.292 16.1779 57.4186 -3.91504 140.975 1.33034 -0.826611 -0.503727 -79.073 -0.129903 0.0375736 0.0923289 98.0896 -105.03 -151.5 -27.1691 96.4742 -111.14 -154.463 95.2235 -5.74702 -1.44712 47.9507 11.6624 0.344481 -18.5785 -110.917 -50.0677 181.873 8.58736 -38.4137 29.8263 20.4641 -49.818 -12.1475 -31.009 10.2187 13.1273 20.3104 66.8217 -104.447 -6.78038 29.3251 -19.8518 -9.47331 -6.61117 5.07059 115.616 -57.0463 130.52 1.34495 9.99974 -9.24316 -26.2187 70.0146 -79.4021 -19.2231 17.0407 24.8092 28.4118 -105.609 61.244 -73.4682 0.755644 -0.004437 -8.48299 11.8538 -82.3802 0.485505 -0.755644 -5.65897 -7.70528 -26.4432 62.4824 -148.518 -122.939 -59.2793 -0.228012 0.228012 0.213636 -0.213636 0.206719 -0.206719 0.257472 -0.257472 0.170068 -0.170068 -0.206929 0.206929 0.211755 -0.211755 -0.228642 0.228642 -0.211836 0.211836 -0.237572 0.237572 0.21519 -0.21519 0.203836 -0.203836 0.217394 -0.217394 -0.26461 0.26461 -0.201557 0.201557 -0.305721 0.305721 0.313472 -0.313472 -0.16675 0.16675 -0.206809 0.206809 0.220976 -0.220976 0.216901 -0.216901 -0.219595 0.219595 -0.271779 0.271779 -0.248995 0.248995 -0.211518 0.211518 0.243391 -0.243391 0.238558 -0.238558 -0.209132 0.209132 -0.254843 0.254843 -0.229426 0.229426 0.2234 -0.2234 -0.217668 0.217668 0.281686 -0.281686 -0.188417 0.188417 -0.244312 0.244312 0.214568 -0.214568 0.250946 -0.250946 -0.174462 0.174462 -0.172832 0.172832 -0.216448 0.216448 -0.217697 0.217697 0.185033 -0.185033 -0.21419 0.21419 -0.17697 0.17697 0.22945 -0.22945 0.215068 -0.215068 0.255286 -0.255286 -0.207285 0.207285 0.243005 -0.243005 0.217783 -0.217783 -0.213564 0.213564 0.252277 -0.252277 -0.304691 0.304691 -0.220385 0.220385 0.285421 -0.285421 0.218977 -0.218977 0.203232 -0.203232 -0.218079 0.218079 0.220984 -0.220984 0.244282 -0.244282 0.290249 -0.290249 -0.255125 0.255125 0.211492 -0.211492 -0.373222 0.373222 0.258056 -0.258056 -0.220962 0.220962 0.512047 -0.512047 0.17102 -0.17102 0.253458 -0.253458 0.217244 -0.217244 0.218147 -0.218147 -0.214031 0.214031 0.232277 -0.232277 0.21979 -0.21979 -0.223145 0.223145 1.05508 -1.05508 0.232266 -0.232266 0.180525 -0.180525 -0.211107 0.211107 0.2182 -0.2182 0.220275 -0.220275 0.213562 -0.213562 -0.201659 0.201659 -0.218123 0.218123 -0.191202 0.191202 -0.19255 0.19255 0.219562 -0.219562 -0.196621 0.196621 0.169947 -0.169947 -0.228365 0.228365 0.195265 -0.195265 0.198012 -0.198012 -0.218915 0.218915 0.21493 -0.21493 0.216235 -0.216235 -0.232906 0.232906 -0.22958 0.22958 0.212172 -0.212172 0.2237 -0.2237 0.209804 -0.209804 -0.195291 0.195291 0.213048 -0.213048 -0.224616 0.224616 0.202127 -0.202127 -0.226729 0.226729 -0.223974 0.223974 0.25119 -0.25119 -0.22584 0.22584 0.200914 -0.200914 -0.232197 0.232197 -0.20952 0.20952 0.202572 -0.202572 -0.212819 0.212819 0.230985 -0.230985 -0.17401 0.17401 -0.211959 0.211959 0.232145 -0.232145 0.247817 -0.247817 -0.245614 0.245614 0.217317 -0.217317 -0.213825 0.213825 0.241763 -0.241763 -0.22067 0.22067 0.262755 -0.262755 -0.222429 0.222429 -0.23061 0.23061 0.209156 -0.209156 -0.270976 0.270976 -0.261494 0.261494 -0.222512 0.222512 0.270382 -0.270382 0.226066 -0.226066 -0.214365 0.214365 0.233756 -0.233756 -0.19993 0.19993 -8.06719 26.182 5.47257 -113.054 -28.2349 58.2201 -16.965 48.705 -12.5621 -36.1429 155.923 164.098 -118.491 32.5069 -142.469 -121.765 94.8927 11.8794 -48.4359 75.3548 47.4132 -20.7326 -26.6807 134.76 -175.639 -59.4668 30.0128 -0.147686 0.0467473 144.869 -0.129665 -130.087 69.7945 -85.6176 1.5192 -1.62279 -0.979881 -37.1564 29.4511 58.5598 159.686 -185.447 -49.1593 -114.208 95.6605 16.8209 -19.4541 -72.6612 -2.97614 -7.32027 27.4889 -47.4025 -101.643 155.324 -20.3816 -0.198632 2.41807 -2.21944 -26.2355 -0.00893102 3.98942 -4.53228 7.96834 147.902 4.02681 39.3106 20.9084 -0.753761 23.0888 -48.9918 -4.78368 -124.149 8.80838 -67.4832 -1.61302 1.44248 -5.44531 -58.1393 27.6691 -0.65213 -1.185 -1.00155 -1.8608 121.765 87.6277 -51.7211 -3.26915 -163.865 9.51481 112.525 -121.624 0.26645 0.0130622 -17.6384 -11.8904 0.566803 -128.42 -13.7115 -5.74485 -113.378 33.3307 -5.26949 -8.43337 -24.1953 36.7945 -0.566803 -41.0813 3.77735 -26.3557 12.7299 -15.3275 -116.925 -0.359195 14.249 -39.2418 90.2951 30.0075 -8.06586 6.33203 -10.7325 -119.609 96.0294 98.878 -78.0366 -3.28084 -1.11749 -0.116485 -0.106465 -70.233 83.6705 2.59432 -0.502391 1.57823 -0.145796 -1.43243 -43.2614 24.0119 9.31871 2.53326 -26.0734 29.8507 -13.4913 160.049 12.7305 -51.6119 18.7401 -114.339 -27.9586 -17.0207 -0.0101112 0.0532628 -25.1044 -131.641 -157.467 -23.5915 -24.6419 28.2661 -14.0046 0.109365 139.141 29.7522 -8.33 -2.99039 131.166 -112.089 17.2396 -31.4563 1.04358 -15.6458 -62.3491 14.9241 -67.1079 57.9814 173.097 -0.705142 -0.184485 21.4811 -207.716 124.217 -6.13882 -110.801 221.604 -124.541 -132.525 102.682 -4.425 -24.625 -6.39355 168.605 -6.88137 -16.5906 -116.687 -119.26 -1.15623 -11.3513 0.686294 0.0791858 -5.02479 -34.9517 -0.686294 10.77 -12.1594 23.1691 -64.3014 -16.1125 -9.18524 -120.417 2.63071 0.102112 -103.268 -43.301 29.5064 -114.528 110.854 83.1813 119.794 -2.26509 76.4458 -6.60673 -49.6489 86.1388 4.04524 69.325 -32.662 -221.132 75.0713 -1.32211 -1.89478 0.0906602 24.4265 -28.2138 -37.8022 43.8624 -16.5835 -20.02 -46.6527 -8.27458 -0.00253042 6.51516 119.062 0.119155 1.39774 1.47056 -12.7376 41.8155 91.8303 21.616 -46.1493 -10.2082 -1.47633 30.3703 0.031055 -0.258885 0.195269 9.67293 -44.2445 -0.861349 -35.0603 5.0593 1.67265 -0.915647 -0.0101112 -11.5718 -172.96 -28.4138 -3.24463 -2.71112 2.69854 -202.565 -16.5999 -0.767564 -0.230001 0.997565 -47.19 178.585 -17.5295 -109.16 0.0546349 -1.43997 -46.3687 19.4679 -60.4813 -4.95915 110.818 -113.708 114.596 50.1574 -134.895 -24.3073 -1.2907 -9.19651 -0.0250783 -15.9258 0.771494 4.46702 2.77268 -2.41374 130.019 0.0228037 -0.265072 -105.957 -15.9181 118.732 -105.789 -146.18 58.1615 0.19638 0.663425 -11.0036 -157.381 -50.3347 -7.40803 -14.0439 4.92226 -56.4067 155.462 6.24997 -24.8665 0.537025 -0.537025 24.3071 9.06115 -7.97334 -80.1191 99.0345 -0.916196 89.8683 176.472 -85.9878 -142.407 -23.0514 32.5587 -7.03965 -2.79641 12.5273 -196.848 188.734 -120.617 0.366221 -28.5706 -140.42 -13.6948 -22.3202 -47.4366 -19.5071 1.74414 0.855846 -0.872153 0.211797 156.386 15.1259 -26.7424 -23.8017 -43.9931 -10.9854 6.70124 -16.8894 38.5684 2.7371 2.99051 -0.191358 0.0354798 -36.099 -29.3989 4.07293 -1.65417 -29.338 45.2059 25.5114 -8.16727 -4.25458 12.4219 -127.445 -92.6903 -33.6721 -24.9295 -3.59165 -33.3547 1.34853 0.170669 -0.31242 1.70003 151.492 -166.553 0.93815 -31.0875 -149.911 174.628 -166.44 -25.5357 -151.41 -1.71497 0.960672 25.2539 9.63625 -2.59582 -2.49313 10.446 7.79217 -60.0746 -1.49092 4.53303 -0.800112 0.869154 133.478 -39.6295 3.45989 134.326 -31.7189 1.11678 -0.370124 -158.506 1.21655 66.5271 3.32317 -2.2266 0.245455 1.98114 18.3149 20.9119 49.6059 2.7634 -0.736591 -0.018963 0.755554 -0.272782 0.272782 -20.3806 -72.4825 165.402 35.8998 11.0082 -37.306 0.998909 -4.65725 4.8055 -47.2345 7.21686 -41.546 97.9215 59.4516 0.131754 3.36452 -119.129 108.953 35.4417 0.782193 -0.782193 87.7117 126.57 39.1568 2.0244 48.4477 1.32131 -107.918 -0.305327 -2.93157 -2.24033 -3.01344 -3.40571 -0.0607206 162.922 33.9405 -152.305 -38.8598 34.6472 -23.9237 -54.891 50.326 -40.1532 -16.8438 155.669 0.297223 21.1099 -10.6639 1.07874 128.933 7.00697 31.6556 -161.538 1.39859 44.2587 -10.9194 15.5455 -43.7554 -32.9624 -1.39859 -49.578 -0.705718 -42.1362 4.44259 37.6936 29.2945 34.0389 1.68324 -78.2037 69.5168 -18.4317 -51.0852 105.857 133.284 11.7033 0.773021 -0.0619508 -56.3099 -8.39445 -0.773021 0.494321 -61.4332 55.0697 -27.0637 52.5605 0.919163 -48.3666 11.7823 -36.016 27.4526 7.78648 -13.0985 -194.437 -2.1445 42.8847 6.60265 2.33227 39.3544 11.1499 -0.0129099 -114.349 1.32408 -0.859861 -0.0305132 1.05803 143.739 -0.341245 -0.206418 22.5888 0.124728 -1.55838 120.891 -35.6449 -14.6852 43.8181 96.2269 -151.681 -138.963 148.864 155.298 -179.733 6.24666 51.9683 18.4069 0.119155 0.305487 147.798 0.156867 -0.156867 33.9481 -8.24917 8.65913 -85.0143 15.1493 -0.590098 -21.0807 -146.02 -38.0756 93.7631 -4.37593 31.8312 8.7443 -82.5878 16.1591 0.536145 -0.5479 10.5542 3.09078 -0.567057 -2.52373 -34.09 12.707 10.7305 116.051 -38.7652 91.406 44.1912 -0.0718787 -112.416 77.1029 33.6665 -103.535 45.2987 -67.619 39.9208 17.2936 -0.839051 -0.524176 0.0565099 76.094 -154.503 0.708504 0.201704 1.13897 116.339 -70.4712 0.89677 174.328 24.9046 10.9979 6.64116 -34.3393 -132.805 -8.03927 -98.9649 1.39543 2.35823 1.07864 -0.134209 -130.843 -47.92 10.0025 59.3868 1.53109 -1.87786 119.99 110.472 -21.0133 -0.713239 -86.482 11.1545 -21.3297 110.178 46.8649 0.818938 -0.0875216 41.676 -20.6992 2.40327 40.091 -30.449 0.00346853 -51.5534 0.11391 -0.0926154 110.917 8.35599 -0.129395 9.44957 1.46472 -0.359029 91.5545 16.7267 96.7514 -60.1367 -10.8238 -0.333754 -105.072 118.36 32.6942 1.94307 -88.1398 -0.915647 -94.9012 10.456 -79.7718 25.2103 -1.83932 73.0466 166.247 52.2963 -27.5825 0.914417 -0.15998 -112.697 3.17981 -63.8444 180.374 17.1769 107.086 69.961 127.233 66.4246 -8.22829 2.54252 0.265494 -130.745 35.3117 -36.0622 0.0875216 -0.0163789 11.9215 42.8648 -23.0788 101.519 1.48713 167.375 11.108 10.6572 -12.8152 -14.1492 -8.77035 -135.163 169.268 -11.0856 -27.002 0.818714 0.132971 -170.518 14.8445 2.69795 -2.38131 187.107 -30.1989 -149.084 195.001 75.3725 -148.604 -39.1824 -5.36261 0.220499 -0.690708 81.3694 151.759 22.8106 13.9809 -68.5617 84.8621 -124.123 -48.8376 -2.02907 4.67456 -10.6592 -23.1724 -3.35576 -160.966 0.531679 0.873796 -0.88299 -0.531679 -9.28883 1.43276 -0.365282 40.1703 -8.33907 7.88855 -5.19468 -51.9291 -0.162925 148.237 -45.0947 58.968 -125.009 122.783 162.939 131.515 10.5155 -25.5946 -147.489 -26.8889 -34.7299 14.8952 0.380963 5.90322 10.711 0.682624 61.7278 11.2896 10.4328 20.3281 91.3469 -99.0577 -0.138263 -1.15362 -17.4733 -0.816295 0.802488 14.9599 -3.1687 -150.09 -14.7484 -94.0841 162.797 -148.731 107.105 0.779866 51.3183 -23.8677 19.2933 -0.0868012 0.858145 -15.6942 -52.0292 30.3118 -33.5473 -100.022 22.4354 -2.2961 0.505902 -10.0418 -0.505902 -108.375 14.2998 0.0188686 -0.180844 -33.2854 66.108 10.9949 116.636 27.6871 -12.1685 3.72154 -31.6057 -151.906 6.59794 -35.4522 -120.031 122.734 23.9122 -93.7091 -0.062779 -122.601 112.668 -166.516 110.559 -109.3 19.7482 -76.7778 0.620245 45.8686 -178.949 104.805 -140.596 -98.5461 -111.477 -9.14126 2.89315 114.721 -145.57 -0.293228 -2.8247 59.4945 -28.8907 8.82022 -102.289 109.416 -7.12753 142.634 -202.258 1.006 0.303887 193.948 1.36102 0.24485 78.7955 -7.02419 1.66158 -0.0826728 93.4884 -12.6691 48.2296 -20.5569 -28.0308 -14.8574 -16.5209 31.5896 -8.73242 163.401 -126.57 59.0674 0.916169 147.228 -4.0275 20.1714 -105.131 0.860451 0.0206118 -43.5072 -33.4419 -30.3961 36.3245 -0.15849 -7.26251 -1.00969 161.824 -110.775 22.0207 0.89677 -0.0671874 1.94232 -1.94676 -90.3382 164.719 -7.9089 74.0169 -3.16213 57.6205 -31.5592 19.2601 -7.25463 18.6563 3.78323 4.49629 3.39226 129.906 -0.888883 -3.89611 131.671 0.0216211 -0.758212 1.99032 2.79179 -2.46184 0.917356 -0.895353 -2.37741 2.21675 -2.41811 2.1705 -2.4123 2.12416 2.41555 -2.17861 -0.511583 -2.17907 -36.9379 49.7916 58.9583 143.317 25.3739 -31.0585 135.435 -11.8706 31.7349 -0.232285 -0.804544 -13.4333 16.5479 9.16078 -123.979 26.9314 31.0795 -74.4347 -16.7967 -76.2032 -37.2799 28.8341 -99.8488 28.6927 -2.03918 2.26495 -1.99256 2.26004 -2.1089 132.449 2.60038 -2.43217 5.06593 1.40156 -6.46749 42.5642 0.109044 -3.57384 148.113 11.6793 -16.5194 18.1763 -2.17725 75.993 20.8832 14.6421 23.2252 105.637 -26.9375 45.2084 -2.83625 6.15554 -14.3934 16.3085 149.939 11.4725 -33.8018 -63.9377 -3.34992 3.15129 26.3297 -38.8917 -63.3251 -49.7017 -2.54691 108.692 -46.9123 39.4899 96.136 70.2024 91.4302 -71.5969 113.355 16.814 -154.441 107.251 47.5273 9.76583 11.8675 96.5022 -56.1504 3.1984 -2.77292 -1.54503 0.422721 -0.422721 17.902 -1.30776 0.354739 -17.1317 54.6853 2.73024 8.01073 -88.8929 -36.3148 125.208 -39.8396 21.1081 -35.0832 -87.0196 179.662 -80.0674 72.8091 7.25838 -15.5079 53.2609 -151.808 37.2913 -82.1545 13.4433 39.4227 0.33181 -10.8342 31.296 68.5224 -3.20168 41.6475 -0.979281 -160.829 222.576 -61.7473 2.0935 0.891431 3.8252 0.0313114 -0.785072 0.0127938 0.681509 -0.694302 25.3015 -116.126 6.96634 57.9072 -125.209 -67.5162 -57.8682 50.7744 26.1267 -32.6736 -2.52434 -15.8149 -44.0694 35.4944 -1.38591 61.6811 44.1555 -102.768 -23.5831 -0.084167 -133.677 -0.178759 0.193246 46.1115 -11.4643 161.127 -73.1368 -11.6321 17.852 53.7329 -57.0222 3.28924 92.7809 -96.419 90.4167 -0.891498 14.2988 24.4714 -38.7701 -0.0409062 -44.1785 2.04231 32.5152 6.67708 161.695 15.9834 -41.8725 0.448906 7.54517 -0.234395 -0.448906 -30.453 13.469 12.323 0.409946 -0.409946 -16.7524 22.0162 131.328 159.683 20.258 -0.590098 -48.4904 151.385 -3.48259 -1.08803 -14.7768 -86.4096 -0.0200163 -18.3206 11.5928 1.46627 -2.99918 -19.1881 35.0259 143.455 -43.3435 13.625 -35.5176 156.982 -170.473 5.01909 -159.202 -120.406 -84.0208 0.402404 -0.51958 -0.402404 -12.0966 0.648451 24.3831 93.3217 -146.043 147.122 5.54905 10.2973 29.873 45.0926 81.1202 0.450053 110.446 -0.450053 84.0381 -81.1571 -0.0567887 45.0559 -14.9604 204.844 -70.5092 -129.856 0.0567887 -64.2342 204.336 -22.4692 2.08592 0.571158 112.059 2.0134 -1.71156 -4.76527 56.0858 -179.215 -8.51142 123.093 0.364212 45.2777 17.4565 -2.80103 8.03912 172.26 -4.59218 -7.45049 -24.478 -0.260647 3.71625 -75.4021 -79.4009 -170.956 10.5514 -2.84495 -104.888 16.1492 -11.1239 82.5088 -4.32017 38.4095 97.2197 -2.21563 0.0571356 117.397 -35.7331 -26.2868 -86.2 96.151 15.347 158.954 -149.607 -9.34714 11.4697 -88.6631 164.093 -17.4917 15.6292 16.3811 -0.0926154 14.6135 175.695 -26.7332 0.459294 -0.499709 -0.518504 167.351 -120.427 0.274098 115.424 1.96977 -2.11557 0.171586 -1.60402 -9.3551 61.9133 -53.1869 165.317 0.0501856 3.72178 -2.97658 -87.6648 -83.2467 -0.085484 -47.7548 0.775352 -113.207 -10.7236 -15.6584 -65.4813 111.293 -10.4983 110.616 -22.3412 -65.0735 64.7797 -0.00403236 -0.0128228 0.034834 -0.000343235 -0.00879014 -0.00609989 0.000236912 0.0037584 -0.00860457 -0.00243982 -0.0216571 -0.00844168 -0.00335453 -0.0115443 0.0185661 0.00972858 0.0100219 -0.0186758 0.00747335 0.00981595 0.00687947 0.0118923 -0.00823893 0.138825 0.071334 0.00504761 0.0685312 -0.0126306 -0.000284905 -0.013654 -0.00274735 0.0337154 -0.00524309 -0.004379 0.0128616 0.0218529 0.0224324 -0.0909598 -0.0147661 -0.00358465 -0.0119045 -0.00553655 -0.00957699 -0.0182709 -0.00164288 0.0268416 0.00524233 0.0199051 0.0148624 0.00646929 0.00345216 0.0253391 -0.0063052 -0.0252677 -0.0339459 -0.0032859 0.0266935 -0.00456003 -0.00287832 0.0119055 -0.0187806 -0.0115627 -138.154 -58.3234 -1.59866 59.922 -64.6522 103.036 -109.459 6.42296 -35.0387 -89.5467 -2.09452 -0.616601 145.126 -95.8283 214.034 -90.9407 12.1635 60.731 7.28241 -5.68403 -1.59838 -0.0166086 -0.0545341 0.112864 -2.22599 0.462152 2.17761 -29.6429 -149.306 -16.7617 60.2153 27.3862 97.5716 137.907 5.57085 43.1041 -146.409 -10.043 -2.49633 62.5349 -54.4883 7.3893 -41.3489 -25.6168 2.16599 -0.152584 -2.77161 -64.9471 -45.285 3.5218 -38.6144 -73.9207 -2.34789 171.173 -10.1293 31.9539 -71.1258 -20.1279 -65.4199 49.7257 19.336 140.42 8.67635 -29.3955 86.814 11.7785 -14.9472 2.72736 -2.73566 -4.07645 -0.707225 1.87026 8.68904 14.8772 2.08149 -1.58717 178.126 -125.436 31.617 -19.1068 89.1806 96.2024 -11.067 26.4314 15.8254 -4.83281 210.147 65.4972 5.88276 -1.41574 9.01788 10.1052 38.1244 -11.6545 -60.8294 -100.711 22.0739 -126.159 -101.212 117.938 -13.9555 -1.81419 -0.962449 134.633 57.7057 22.2268 0.144622 -0.971233 -66.9254 56.1017 0.139639 -0.139639 0.519218 0.0166676 -102.368 -14.8626 11.8722 -150.274 79.0632 5.73726 222.078 134.808 -11.1038 -27.7879 -67.2275 22.6964 20.7696 -13.1239 12.1537 -99.3902 55.1513 90.8297 55.7216 -167.84 30.0893 0.676649 0.00486009 -13.6036 2.0904 2.17203 76.3426 32.7752 -39.1879 33.2773 -34.6869 -24.453 -119.092 149.26 56.2998 -45.1499 -8.23982 39.7012 -147.312 147.067 -17.1012 -102.977 -2.33217 27.4348 -47.5627 0.411388 0.168714 -22.3887 1.38213 146.285 24.9528 -74.683 -1.22947 100.998 -66.1842 159.223 -118.351 -37.9124 124.124 -86.2118 0.376715 -14.2171 -19.9541 100.662 -0.0868012 -38.9757 49.2565 2.63625 1.95034 -43.0093 115.657 -0.0352106 -0.802091 21.5717 59.8885 64.5781 -69.8784 6.50108 -9.89379 10.3136 20.3901 -0.198935 57.0725 1.50939 -137.538 -31.9983 26.672 -23.9094 -102.353 -0.898868 -0.156214 -92.8279 -10.4406 16.3129 -108.498 12.7352 38.0256 1.28118 -1.0687 35.5961 7.86892 67.33 -144.967 150.396 1.05713 -26.3285 78.0358 -3.10518 -1.64214 30.886 5.02502 -64.9029 -156.229 2.24293 -7.68673 13.5525 161.076 102.679 -69.0336 -99.8899 7.0429 -2.26564 -36.4008 0.520996 -2.2196 9.69717 87.6225 -88.852 0.660723 157.113 26.2635 -16.7645 3.74291 -2.7596 -0.627671 -0.46918 -147.608 -7.32574 -148.901 -0.608966 5.59622 -4.49605 -0.057439 -99.0692 0.174036 -0.0736742 -4.51718 170.534 -7.05134 100.677 -27.0719 31.7465 166.779 -5.70356 -35.1223 24.4014 2.01192 23.7274 0.779866 -62.2736 -12.9259 115.548 65.1976 43.5849 33.4534 137.606 -118.402 137.228 -9.17289 42.4439 -10.0717 -93.5579 0.057439 70.5291 188.133 69.6404 -7.61217 13.4125 0.0255014 0.0668275 -0.664162 -0.691504 0.695215 0.688367 -0.686966 0.630662 -0.633101 -0.747815 -0.82516 0.821576 0.790215 0.743414 0.733843 0.766669 -0.768312 -0.73041 151.6 -154.016 -0.514994 -134.351 3.12393 -58.942 -126.055 154.192 -27.9905 97.0502 83.5791 1.23315 -19.9528 156.483 -25.2666 0.093608 1.02317 -2.40595 2.64665 1.94792 -2.17613 42.4027 -9.88749 -2.13643 44.4682 126.349 45.8505 0.0323992 -2.0813 2.33241 8.91178 -73.4694 11.6479 149.499 9.45551 0.15396 -0.15396 -88.1585 -18.3329 0.0572743 -30.6045 16.4588 -43.9721 128.671 -84.6992 -8.11083 41.4158 -39.2964 27.6115 1.17069 3.39583 41.3326 116.416 -33.5191 -68.4506 55.6618 -152.477 43.8548 2.9158 36.0354 -206.291 142.353 -35.9906 -3.41203 1.03072 -59.0806 0.732153 -113.093 -65.6523 -2.9989 -88.2948 -2.37978 2.49576 -37.6477 0.879777 1.20172 0.433989 0.134832 -0.134832 -126.791 -8.62749 65.7545 1.21432 19.8991 -59.5007 -41.8345 59.2289 -38.1889 11.2514 -34.0267 77.718 191.519 -2.13221 3.09646 -56.3827 -0.127988 32.5089 -114.128 19.8173 -26.041 2.59606 -1.21289 2.3914 -2.43288 4.07294 -4.26912 13.9416 -7.04116 -34.9234 2.30413 -2.10413 -5.39721 -62.9744 -1.68687 61.1814 72.0442 -1.74729 0.387156 -68.8932 117.731 -84.5725 2.32894 -2.00588 0.689313 0.308118 0.200726 4.76266 80.2001 -2.19558 5.6731 -0.195228 -2.8077 3.00293 -0.443878 0.895654 38.8063 61.2493 -2.62753 4.28911 34.255 132.524 7.22335 0.0410455 3.78877 -66.6705 76.1201 -26.7327 48.5918 -146.656 -10.4894 101.427 6.62121 -108.048 0.266976 2.14975 2.22713 -1.96055 122.374 -46.6057 51.816 -13.9894 -1.1748 -24.9976 -112.505 -170.087 2.34259 -0.0248575 -2.7108 -2.81991 3.33913 6.18892 -101.639 -154.888 105.23 -89.6297 -0.124015 0.124015 61.5034 -0.552158 -2.12759 -6.03315 32.9635 -35.7646 2.80113 156.051 -40.5032 127.778 32.7781 -37.7436 31.8193 40.925 107.338 -24.0808 -56.4385 -1.94502 -1.98539 45.9054 36.4853 25.3682 13.4381 25.4165 7.70712 -16.7631 31.9162 53.3421 -10.7541 40.8896 -26.9087 50.6522 -0.179522 -1.6598 0.153066 1.8462 -4.47373 57.7413 40.6461 -8.25075 -140.905 67.5973 51.079 -47.0519 3.11802 -68.2811 -95.7531 -112.293 100.721 124.964 153.054 -101.3 -0.394328 14.2614 -23.1714 -40.4779 157.673 -83.6763 105.231 -21.5544 -31.6646 81.3682 32.1549 156.122 28.4796 8.8068 -26.275 -5.38958 -0.979281 0.178735 -98.8399 -16.9666 115.806 0.184808 -0.185817 1.86224 -53.7971 44.442 -94.0926 13.6775 -116.503 -0.17046 1.07245 -3.15783 -3.11655 70.7798 -63.5214 -30.7188 -151.334 -3.28085 -27.5409 5.51678 11.3335 -0.0781917 1.51619 11.4536 -14.2898 -8.99432 -68.3146 2.2422 -2.08063 -73.2195 -1.64997 2.10023 -1.95366 1.01152 115.231 14.9083 65.5465 0.642283 4.33652 -1.94299 27.3532 -46.6043 3.15179 -1.35243 -34.8137 68.4762 55.4186 79.1948 -1.80036 98.9262 19.012 1.96264 62.9437 -67.3732 4.42944 43.4706 -51.4617 3.23455 2.96161 -19.6616 -47.1289 30.1956 -10.7997 -1.83421 131.496 -92.8865 -0.24831 2.82986 148.226 -0.0571356 -12.2958 -42.1456 35.2642 -5.35316 -72.6835 3.53463 -0.152907 -19.5176 -0.375479 -2.12085 102.44 -8.62429 33.7024 -25.0781 -2.31169 104.752 -1.67729 -0.0508871 -106.224 -0.976236 -72.9409 117.069 6.25783 125.202 3.76946 136.535 -0.720653 0.747346 0.0366156 104.676 -94.582 -17.7107 -12.6121 -39.5681 57.4717 4.20935 -84.4119 -60.7417 -168.088 107.346 10.8488 47.8223 -56.6646 -11.7271 -80.7514 -70.7141 104.518 1.27531 -5.9998 -42.965 0.24964 -2.05919 1.55297 -29.6977 43.1358 1.8913 20.0319 -0.219928 -87.2737 -180.586 -35.3065 37.1687 38.5573 -8.20897 44.8109 -68.4367 -0.0501856 -15.658 48.2635 -97.4017 36.6489 -0.299044 -86.4635 102.073 -48.7158 2.57807 -32.8769 -9.26862 219.203 36.7325 85.9281 -1.96175 10.4649 167.661 5.08716 12.4007 1.0847 4.38046 -16.0534 0.81756 -57.8483 -6.341 -144.569 111.365 -5.28922 49.7952 -34.9706 -94.4013 -1.80822 135.585 -7.34112 -52.9678 -90.2829 158.875 0.648451 3.21809 43.984 -40.31 0.13629 170.966 -128.416 1.70361 43.2575 0.14117 -0.419243 -1.71719 2.18496 -1.61817 -26.2519 60.6342 2.84837 -102.582 20.2648 0.068455 -119.703 33.4907 2.35196 -11.8984 -29.5467 25.6316 -0.605513 38.8842 -113.018 -5.4811 119.291 1.45553 -1.37634 -109.725 -73.9045 2.20864 -1.69629 -34.9554 -1.10477 34.5915 -0.0627551 0.0876845 -0.391439 -17.3265 -11.2692 -35.5291 33.8518 -0.590698 -11.7965 5.63645 -83.395 -2.67473 -81.9523 -144.949 -41.2069 47.1584 50.0178 -15.9067 152.442 1.53154 25.5071 -39.5117 42.3764 -36.1185 -62.8536 0.232444 -0.52569 -1.60652 -99.0295 -77.2531 -10.4857 -7.66451 0.196617 -112.358 25.2093 -174.515 -0.838463 -1.59441 -102.761 1.97698 -7.39379 35.7426 -0.0320678 0.599139 0.607266 -42.9522 -69.6848 14.8324 -180.499 1.84248 1.7786 1.81505 -1.8245 188.886 44.4837 1.6867 0.490127 -0.486368 28.5565 -0.841708 0.910239 -81.196 -81.4714 80.4952 16.0841 -51.7819 -131.533 113.629 100.599 84.8086 -1.86489 -0.00841351 34.1048 -102.75 91.2738 -84.0505 -37.8392 32.4115 14.5754 0.632968 -0.599253 167.765 4.77765 42.9021 60.5255 -117.397 -113.292 96.6924 1.89224 0.179077 -68.2555 -1.10787 6.76093 -61.0573 0.58097 35.1823 -44.3675 6.61178 142.586 43.8054 158.67 -60.5019 -0.630753 0.652606 0.248091 -0.392191 -1.56146 -12.5714 29.5042 -1.5652 -75.7386 47.0461 109.428 -34.2219 40.1668 45.691 -2.37863 44.094 2.20178 -2.23598 -2.21197 -2.2138 -156.088 -35.8334 -0.211898 -31.4716 -46.1351 0.775283 -0.595017 -0.0919491 6.13523 0.543536 -0.590149 -0.101355 0.228837 -9.10332 46.6765 39.2516 -9.17705 -6.63014 58.7443 17.33 34.2838 -105.696 117.4 3.25601 -0.531468 0.114304 16.2016 -151.866 89.9751 -109.482 -0.533314 -0.291847 0.536668 -1.14042 -47.0817 0.601648 -0.608671 0.216282 -0.539493 133.855 0.59128 -0.587439 37.4873 1.45561 45.7956 -11.5119 -83.9658 98.4241 -112.422 10.0695 -1.85684 0.14153 -9.01331 40.7221 -31.7088 -0.10443 48.0118 53.0973 24.7849 143.012 19.8696 -20.9265 0.116593 -0.566865 1.37238 -2.26269 2.51233 30.3581 -35.3829 -0.601712 1.55227 -1.33599 49.8301 80.3209 -0.588533 -1.85706 1.878 -2.46782 0.537458 -0.550281 -0.552459 0.564351 -0.57547 5.12339 0.214064 0.647841 1.55687 33.5092 -0.556045 0.568907 0.534251 -25.6965 0.559404 -0.572035 2.45848 -2.27975 3.88942 -0.231635 104.233 0.56015 -0.60595 -0.596112 -0.233345 1.09365 1.65966 -52.6051 0.56333 0.0789532 -0.300187 -24.1315 126.091 -89.9907 74.0727 -24.1811 -28.4241 2.05643 0.485598 -0.482146 0.499275 -0.508066 1.6347 0.528265 -0.53981 62.8489 0.195027 3.67262 -1.34029 26.8399 18.9557 120.458 -127.783 -1.21722 1.55447 1.54778 -1.53767 1.55652 -3.21222 10.9105 0.0519364 0.573352 0.148818 0.00131625 -56.2404 -0.556959 0.551716 -2.36539 28.1894 0.664107 -0.681518 -0.666025 -0.655453 0.0726904 43.8034 -9.69861 -0.0834296 -15.3479 -51.1112 12.5931 -22.7755 -0.304184 -7.21994 -0.522209 0.51783 -28.5472 26.9351 -0.0134231 0.431612 -0.424732 0.524792 -0.530892 -1.58724 0.339713 0.432268 -0.420363 -3.36843 22.7643 -33.8624 24.7118 9.15064 13.7374 -200.335 -2.83998 0.469188 0.506195 -0.518099 161.777 -0.103533 -0.486465 16.2432 0.486877 0.116333 -0.413372 0.403795 -0.177096 34.0121 -21.5011 0.502099 0.0580515 -0.503636 -0.0361734 -29.1543 -0.267242 1.72094 -0.0440155 0.0197292 80.6062 82.4856 41.7554 8.42675 -11.1932 ) ; boundaryField { frontAndBack { type empty; value nonuniform 0(); } bottom { type calculated; value uniform 0; } inlet { type calculated; value uniform -1000; } top { type calculated; value uniform 0; } outlet { type calculated; value nonuniform List<scalar> 28 ( 1000.01 999.997 999.981 999.982 999.984 999.987 999.991 999.995 1000.01 999.999 999.993 1000 1000.01 1000.01 1000.01 1000.02 1000.01 1000.02 1000.02 1000.02 999.986 999.981 1000.02 1000 999.981 1000.02 999.983 999.989 ) ; } car { type calculated; value uniform 0; } } // ************************************************************************* //
[ "kmeyer299@gmail.com" ]
kmeyer299@gmail.com
11cee4f4410bbc3be0b22bf27dd713ea9bef90d8
2c37c298a494ed37bff11b0b240371eaba6575b7
/0143/main.cpp
8ed9641c1ae88656da6aad994a93b71ba12b4eec
[]
no_license
chichuyun/LeetCode
04ec78bf5b05d4febfd8daff5e0e0145cfcfacf4
44752f2b58cd7a850b8e02cd3735f93bb82bcb85
refs/heads/master
2021-06-04T11:03:04.297131
2020-11-19T14:48:32
2020-11-19T14:48:32
148,440,792
1
0
null
null
null
null
UTF-8
C++
false
false
1,093
cpp
/** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), next(NULL) {} * }; */ class Solution { public: void reorderList(ListNode* head) { int len=0; ListNode *p = head; while(p) {++len; p = p->next;} int sublen = len/2 + len%2; ListNode *newhead = new ListNode(0); newhead->next = head; p = newhead; while(sublen--) { p = p->next; } ListNode *subhead = new ListNode(0), *q = p->next; p->next = nullptr; while(q) { // reverse subhead List ListNode *t = subhead->next; subhead->next = q; q = q->next; subhead->next->next = t; } subhead = subhead->next; sublen = len/2; while(sublen--) { // link two List ListNode *t = head->next; head->next = subhead; subhead = subhead->next; head = head->next; head->next = t; head = head->next; } } };
[ "442307054@qq.com" ]
442307054@qq.com
f92511647b1dc8c9ad14b58252f172df050f291e
8be023f90d9a18f4917af4bba8fb31230df3df2a
/SigLog_MibLib/ip-mib/data_access/ipaddress_common.cpp
454d60b9dc8785d81b463edea3677741fe217074
[]
no_license
duniansampa/SigLog
d6dba1c0e851e1c8d3aef3af4bb85b4d038ab9c9
3dae0e42a36ebc5dca46fb044d3b1d40152ec786
refs/heads/master
2021-01-10T12:25:17.511236
2016-03-12T18:38:19
2016-03-12T18:38:19
44,571,851
0
0
null
null
null
null
UTF-8
C++
false
false
15,310
cpp
/* * Ipaddress MIB architecture support * * $Id$ */ #include <siglog/net-snmp-config.h> #include <siglog/net-snmp-includes.h> #include <siglog/agent/net-snmp-agent-includes.h> #include <siglog/data_access/ipaddress.h> #include <siglog/data_access/interface.h> #include "ip-mib/ipAddressTable/ipAddressTable_constants.h" #include <siglog/net-snmp-features.h> netsnmp_feature_child_of(ipaddress_common, libnetsnmpmibs) netsnmp_feature_child_of(ipaddress_common_copy_utilities, ipaddress_common) netsnmp_feature_child_of(ipaddress_entry_copy, ipaddress_common) netsnmp_feature_child_of(ipaddress_entry_update, ipaddress_common) netsnmp_feature_child_of(ipaddress_prefix_copy, ipaddress_common_copy_utilities) #ifdef NETSNMP_FEATURE_REQUIRE_IPADDRESS_ENTRY_COPY netsnmp_feature_require(ipaddress_arch_entry_copy) #endif /* NETSNMP_FEATURE_REQUIRE_IPADDRESS_ENTRY_COPY */ /**---------------------------------------------------------------------*/ /* * local static prototypes */ static int _access_ipaddress_entry_compare_addr(const void *lhs, const void *rhs); static void _access_ipaddress_entry_release(netsnmp_ipaddress_entry * entry, void *unused); /**---------------------------------------------------------------------*/ /* * external per-architecture functions prototypes * * These shouldn't be called by the general public, so they aren't in * the header file. */ extern int netsnmp_arch_ipaddress_container_load(netsnmp_container* container, u_int load_flags); extern int netsnmp_arch_ipaddress_entry_init(netsnmp_ipaddress_entry *entry); extern int netsnmp_arch_ipaddress_entry_copy(netsnmp_ipaddress_entry *lhs, netsnmp_ipaddress_entry *rhs); extern void netsnmp_arch_ipaddress_entry_cleanup(netsnmp_ipaddress_entry *entry); extern int netsnmp_arch_ipaddress_create(netsnmp_ipaddress_entry *entry); extern int netsnmp_arch_ipaddress_delete(netsnmp_ipaddress_entry *entry); /**---------------------------------------------------------------------*/ /* * container functions */ /** */ netsnmp_container * netsnmp_access_ipaddress_container_init(u_int flags) { netsnmp_container *container1; DEBUGMSGTL(("access:ipaddress:container", "init\n")); /* * create the containers. one indexed by ifIndex, the other * indexed by ifName. */ container1 = netsnmp_container_find("access_ipaddress:table_container"); if (NULL == container1) { snmp_log(LOG_ERR, "ipaddress primary container not found\n"); return NULL; } container1->container_name = strdup("ia_index"); if (flags & NETSNMP_ACCESS_IPADDRESS_INIT_ADDL_IDX_BY_ADDR) { netsnmp_container *container2 = netsnmp_container_find("ipaddress_addr:access_ipaddress:table_container"); if (NULL == container2) { snmp_log(LOG_ERR, "ipaddress secondary container not found\n"); CONTAINER_FREE(container1); return NULL; } container2->compare = _access_ipaddress_entry_compare_addr; container2->container_name = strdup("ia_addr"); netsnmp_container_add_index(container1, container2); } return container1; } /** * @retval NULL error * @retval !NULL pointer to container */ netsnmp_container* netsnmp_access_ipaddress_container_load(netsnmp_container* container, u_int load_flags) { int rc; u_int container_flags = 0; DEBUGMSGTL(("access:ipaddress:container", "load\n")); if (NULL == container) { if (load_flags & NETSNMP_ACCESS_IPADDRESS_LOAD_ADDL_IDX_BY_ADDR) container_flags |= NETSNMP_ACCESS_IPADDRESS_INIT_ADDL_IDX_BY_ADDR; container = netsnmp_access_ipaddress_container_init(container_flags); } if (NULL == container) { snmp_log(LOG_ERR, "no container specified/found for access_ipaddress\n"); return NULL; } rc = netsnmp_arch_ipaddress_container_load(container, load_flags); if (0 != rc) { netsnmp_access_ipaddress_container_free(container, NETSNMP_ACCESS_IPADDRESS_FREE_NOFLAGS); container = NULL; } return container; } void netsnmp_access_ipaddress_container_free(netsnmp_container *container, u_int free_flags) { DEBUGMSGTL(("access:ipaddress:container", "free\n")); if (NULL == container) { snmp_log(LOG_ERR, "invalid container for netsnmp_access_ipaddress_free\n"); return; } if(! (free_flags & NETSNMP_ACCESS_IPADDRESS_FREE_DONT_CLEAR)) { /* * free all items. */ CONTAINER_CLEAR(container, (netsnmp_container_obj_func*)_access_ipaddress_entry_release, NULL); } if(! (free_flags & NETSNMP_ACCESS_IPADDRESS_FREE_KEEP_CONTAINER)) CONTAINER_FREE(container); } /**---------------------------------------------------------------------*/ /* * ipaddress_entry functions */ /** */ /** */ netsnmp_ipaddress_entry * netsnmp_access_ipaddress_entry_create(void) { netsnmp_ipaddress_entry *entry = SNMP_MALLOC_TYPEDEF(netsnmp_ipaddress_entry); int rc = 0; entry->oid_index.len = 1; entry->oid_index.oids = &entry->ns_ia_index; /* * set up defaults */ entry->ia_type = IPADDRESSTYPE_UNICAST; entry->ia_status = IPADDRESSSTATUSTC_PREFERRED; entry->ia_storagetype = STORAGETYPE_VOLATILE; rc = netsnmp_arch_ipaddress_entry_init(entry); if (SNMP_ERR_NOERROR != rc) { DEBUGMSGT(("access:ipaddress:create","error %d in arch init\n", rc)); netsnmp_access_ipaddress_entry_free(entry); entry = NULL; } return entry; } /** */ void netsnmp_access_ipaddress_entry_free(netsnmp_ipaddress_entry * entry) { if (NULL == entry) return; if (NULL != entry->arch_data) netsnmp_arch_ipaddress_entry_cleanup(entry); free(entry); } /** * update underlying data store (kernel) for entry * * @retval 0 : success * @retval -1 : error */ int netsnmp_access_ipaddress_entry_set(netsnmp_ipaddress_entry * entry) { int rc = SNMP_ERR_NOERROR; if (NULL == entry) { netsnmp_assert(NULL != entry); return -1; } /* * make sure interface and ifIndex match up */ if (NULL == netsnmp_access_interface_name_find(entry->if_index)) { DEBUGMSGT(("access:ipaddress:set", "cant find name for index %" NETSNMP_PRIo "d\n", entry->if_index)); return -1; } /* * don't support non-volatile yet */ if (STORAGETYPE_VOLATILE != entry->ia_storagetype) { DEBUGMSGT(("access:ipaddress:set", "non-volatile storagetypes unsupported\n")); return -1; } /* * */ rc = -1; if (entry->flags & NETSNMP_ACCESS_IPADDRESS_CREATE) { rc = netsnmp_arch_ipaddress_create(entry); } else if (entry->flags & NETSNMP_ACCESS_IPADDRESS_CHANGE) { } else if (entry->flags & NETSNMP_ACCESS_IPADDRESS_DELETE) { rc = netsnmp_arch_ipaddress_delete(entry); } else { snmp_log(LOG_ERR,"netsnmp_access_ipaddress_entry_set with no mode\n"); netsnmp_assert(!"ipaddress_entry_set == unknown mode"); /* always false */ rc = -1; } return rc; } #ifndef NETSNMP_FEATURE_REMOVE_IPADDRESS_ENTRY_UPDATE /** * update an old ipaddress_entry from a new one * * @note: only mib related items are compared. Internal objects * such as oid_index, ns_ia_index and flags are not compared. * * @retval -1 : error * @retval >=0 : number of fields updated */ int netsnmp_access_ipaddress_entry_update(netsnmp_ipaddress_entry *lhs, netsnmp_ipaddress_entry *rhs) { int rc, changed = 0; /* * copy arch stuff. we don't care if it changed */ rc = netsnmp_arch_ipaddress_entry_copy(lhs,rhs); if (0 != rc) { snmp_log(LOG_ERR,"arch ipaddress copy failed\n"); return -1; } if (lhs->if_index != rhs->if_index) { ++changed; lhs->if_index = rhs->if_index; } if (lhs->ia_storagetype != rhs->ia_storagetype) { ++changed; lhs->ia_storagetype = rhs->ia_storagetype; } if (lhs->ia_address_len != rhs->ia_address_len) { changed += 2; lhs->ia_address_len = rhs->ia_address_len; memcpy(lhs->ia_address, rhs->ia_address, rhs->ia_address_len); } else if (memcmp(lhs->ia_address, rhs->ia_address, rhs->ia_address_len) != 0) { ++changed; memcpy(lhs->ia_address, rhs->ia_address, rhs->ia_address_len); } if (lhs->ia_type != rhs->ia_type) { ++changed; lhs->ia_type = rhs->ia_type; } if (lhs->ia_status != rhs->ia_status) { ++changed; lhs->ia_status = rhs->ia_status; } if (lhs->ia_origin != rhs->ia_origin) { ++changed; lhs->ia_origin = rhs->ia_origin; } if (lhs->ia_onlink_flag != rhs->ia_onlink_flag) { ++changed; lhs->ia_onlink_flag = rhs->ia_onlink_flag; } if (lhs->ia_autonomous_flag != rhs->ia_autonomous_flag) { ++changed; lhs->ia_autonomous_flag = rhs->ia_autonomous_flag; } if (lhs->ia_prefered_lifetime != rhs->ia_prefered_lifetime) { ++changed; lhs->ia_prefered_lifetime = rhs->ia_prefered_lifetime; } if (lhs->ia_valid_lifetime != rhs->ia_valid_lifetime) { ++changed; lhs->ia_valid_lifetime = rhs->ia_valid_lifetime; } return changed; } #endif /* NETSNMP_FEATURE_REMOVE_IPADDRESS_ENTRY_UPDATE */ #ifndef NETSNMP_FEATURE_REMOVE_IPADDRESS_ENTRY_COPY /** * copy an ipaddress_entry * * @retval -1 : error * @retval 0 : no error */ int netsnmp_access_ipaddress_entry_copy(netsnmp_ipaddress_entry *lhs, netsnmp_ipaddress_entry *rhs) { int rc; /* * copy arch stuff. we don't care if it changed */ rc = netsnmp_arch_ipaddress_entry_copy(lhs,rhs); if (0 != rc) { snmp_log(LOG_ERR,"arch ipaddress copy failed\n"); return -1; } lhs->if_index = rhs->if_index; lhs->ia_storagetype = rhs->ia_storagetype; lhs->ia_address_len = rhs->ia_address_len; memcpy(lhs->ia_address, rhs->ia_address, rhs->ia_address_len); lhs->ia_type = rhs->ia_type; lhs->ia_status = rhs->ia_status; lhs->ia_origin = rhs->ia_origin; return 0; } #endif /* NETSNMP_FEATURE_REMOVE_IPADDRESS_ENTRY_COPY */ /**---------------------------------------------------------------------*/ /* * Utility routines */ #ifndef NETSNMP_FEATURE_REMOVE_IPADDRESS_PREFIX_COPY /** * copy the prefix portion of an ip address */ int netsnmp_ipaddress_prefix_copy(u_char *dst, u_char *src, int addr_len, int pfx_len) { int bytes = pfx_len / 8; int bits = pfx_len % 8; if ((NULL == dst) || (NULL == src) || (0 == pfx_len)) return 0; memcpy(dst, src, bytes); if (bytes < addr_len) memset(&dst[bytes],0x0, addr_len - bytes); if (bits) { u_char mask = (0xff << (8-bits)); dst[bytes] = (src[bytes] & mask); } return pfx_len; } #endif /* NETSNMP_FEATURE_REMOVE_IPADDRESS_PREFIX_COPY */ /** * Compute the prefix length of a network mask * * @param mask network byte order mask * * @returns number of prefix bits */ int netsnmp_ipaddress_ipv4_prefix_len(in_addr_t mask) { int i, len = 0; unsigned char *mp = (unsigned char *)&mask; for (i = 0; i < 4; i++) if (mp[i] == 0xFF) len += 8; else break; if (i == 4) return len; while(0x80 & mp[i]) { ++len; mp[i] <<= 1; } return len; } in_addr_t netsnmp_ipaddress_ipv4_mask(int len) { int i = 0, m = 0x80; in_addr_t mask; unsigned char *mp = (unsigned char *)&mask; if (len < 0 || len > 32) abort(); memset(mp, 0, sizeof(mask)); while (len >= 8) { mp[i] = 0xFF; len -= 8; i++; } while (len) { mp[i] |= m; m >>= 1; len--; } return mask; } int netsnmp_ipaddress_ipv6_prefix_len(struct in6_addr mask) { int i, len = 0; unsigned char *mp = (unsigned char *)&mask.s6_addr; for (i = 0; i < 16; i++) if (mp[i] == 0xFF) len += 8; else break; if (i == 16) return len; while(0x80 & mp[i]) { ++len; mp[i] <<= 1; } return len; } /** */ void _access_ipaddress_entry_release(netsnmp_ipaddress_entry * entry, void *context) { netsnmp_access_ipaddress_entry_free(entry); } static int _access_ipaddress_entry_compare_addr(const void *lhs, const void *rhs) { const netsnmp_ipaddress_entry *lh = (const netsnmp_ipaddress_entry *)lhs; const netsnmp_ipaddress_entry *rh = (const netsnmp_ipaddress_entry *)rhs; netsnmp_assert(NULL != lhs); netsnmp_assert(NULL != rhs); /* * compare address length */ if (lh->ia_address_len < rh->ia_address_len) return -1; else if (lh->ia_address_len > rh->ia_address_len) return 1; /* * length equal, compare address */ return memcmp(lh->ia_address, rh->ia_address, lh->ia_address_len); } #ifndef NETSNMP_FEATURE_REMOVE_IPADDRESS_COMMON_COPY_UTILITIES int netsnmp_ipaddress_flags_copy(u_long *ipAddressPrefixAdvPreferredLifetime, u_long *ipAddressPrefixAdvValidLifetime, u_long *ipAddressPrefixOnLinkFlag, u_long *ipAddressPrefixAutonomousFlag, u_long *ia_prefered_lifetime, u_long *ia_valid_lifetime, u_char *ia_onlink_flag, u_char *ia_autonomous_flag) { /*Copy all the flags*/ *ipAddressPrefixAdvPreferredLifetime = *ia_prefered_lifetime; *ipAddressPrefixAdvValidLifetime = *ia_valid_lifetime; *ipAddressPrefixOnLinkFlag = *ia_onlink_flag; *ipAddressPrefixAutonomousFlag = *ia_autonomous_flag; return 0; } int netsnmp_ipaddress_prefix_origin_copy(u_long *ipAddressPrefixOrigin, u_char ia_origin, int flags, u_long ipAddressAddrType) { if(ipAddressAddrType == INETADDRESSTYPE_IPV4){ if(ia_origin == 6) /*Random*/ (*ipAddressPrefixOrigin) = 3 /*IPADDRESSPREFIXORIGINTC_WELLKNOWN*/; else (*ipAddressPrefixOrigin) = ia_origin; } else { if(ia_origin == 5) { /*Link Layer*/ if(!flags) /*Global address assigned by router adv*/ (*ipAddressPrefixOrigin) = 5 /*IPADDRESSPREFIXORIGINTC_ROUTERADV*/; else (*ipAddressPrefixOrigin) = 3 /*IPADDRESSPREFIXORIGINTC_WELLKNOWN*/; } else if(ia_origin == 6) /*Random*/ (*ipAddressPrefixOrigin) = 5 /*IPADDRESSPREFIXORIGINTC_ROUTERADV*/; else (*ipAddressPrefixOrigin) = ia_origin; } return 0; } #endif /* NETSNMP_FEATURE_REMOVE_IPADDRESS_COMMON_COPY_UTILITIES */
[ "duniansampa@outlook.com" ]
duniansampa@outlook.com
4dbcf0d0809a68af5689fb3efbf61d96aaab0c98
f6cf2a73274025b4e2e7b2a44c3e303041fd1c54
/ComponentFramework1.0 Bullet/ComponentFramework/MaterialManager.h
dfc8d40ea87066776f0c1d54c2515461ae987bb2
[]
no_license
Rynold/MayneGameEngine
6c23342506dc0cd417a8e31e1b9d0bc55f3492e9
b19267eefae67d4d0fdb0c008922ad31d5d3658a
refs/heads/master
2020-05-20T06:01:17.872133
2016-04-27T03:53:46
2016-04-27T03:53:46
51,024,569
1
0
null
null
null
null
UTF-8
C++
false
false
412
h
#ifndef MATERIALMANAGER_H #define MATERIALMANAGER_H #include <map> #include "Material.h" class MaterialManager { public: static MaterialManager* GetInstance(); void Insert(const char* path, Material* mat); Material* Contains(const char* name); void Delete(); private: MaterialManager(); ~MaterialManager(); std::map<const char*, Material*> materials; static MaterialManager* instance; }; #endif
[ "Ryan_P_Mayne@hotmail.com" ]
Ryan_P_Mayne@hotmail.com
35d9dc9c4c53cc98cf74cd416dfb712dae33e1b5
60afbb6676cd148e1de81075a6c290f9de3f968e
/asio/daytime_server_async.cpp
edbcbc0e24d95e5e0071ebd6add61b144bd573ae
[]
no_license
SebastianElvis/cpp-learn
38c6f064475a61739a0fb33f0caf8eba9520b475
7d1a6314b186872d41baf32d877bd8ead9560257
refs/heads/master
2021-09-16T23:04:58.737761
2018-06-25T20:37:46
2018-06-25T20:37:46
113,498,117
0
0
null
null
null
null
UTF-8
C++
false
false
2,437
cpp
// // server.cpp // ~~~~~~~~~~ // // Copyright (c) 2003-2017 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // #include <ctime> #include <iostream> #include <string> #include <boost/bind.hpp> #include <boost/shared_ptr.hpp> #include <boost/enable_shared_from_this.hpp> #include <boost/asio.hpp> using boost::asio::ip::tcp; std::string make_daytime_string() { using namespace std; // For time_t, time and ctime; time_t now = time(0); return ctime(&now); } class tcp_connection : public boost::enable_shared_from_this<tcp_connection> { public: typedef boost::shared_ptr<tcp_connection> pointer; static pointer create(boost::asio::io_service &io_service) { return pointer(new tcp_connection(io_service)); } tcp::socket &socket() { return socket_; } void start() { message_ = make_daytime_string(); boost::asio::async_write(socket_, boost::asio::buffer(message_), boost::bind(&tcp_connection::handle_write, shared_from_this(), boost::asio::placeholders::error, boost::asio::placeholders::bytes_transferred) ); } private: tcp_connection(boost::asio::io_service &io_service) : socket_(io_service) { } void handle_write(const boost::system::error_code & /*error*/, size_t /*bytes_transferred*/) { } tcp::socket socket_; std::string message_; }; class tcp_server { public: tcp_server(boost::asio::io_service &io_service) : acceptor_(io_service, tcp::endpoint(tcp::v4(), 10000)) { start_accept(); } private: void start_accept() { tcp_connection::pointer new_connection = tcp_connection::create(acceptor_.get_io_service()); acceptor_.async_accept(new_connection->socket(), boost::bind(&tcp_server::handle_accept, this, new_connection, boost::asio::placeholders::error)); } void handle_accept(tcp_connection::pointer new_connection, const boost::system::error_code &error) { if (!error) { new_connection->start(); } start_accept(); } tcp::acceptor acceptor_; }; int main() { try { boost::asio::io_service io_service; tcp_server server(io_service); io_service.run(); } catch (std::exception &e) { std::cerr << e.what() << std::endl; } return 0; }
[ "408063141@qq.com" ]
408063141@qq.com
fcfe3bd6ea8184a3edcfc703bf26767d3b5b2410
973a6943b3c5fc76696064819cc06acbfc5fd049
/src/graphics/BaseSprite.cpp
494774d38052da416e660ab2be2923c94e9ea863
[ "MIT" ]
permissive
Alex-doc/nCine
a8a5fb59d36532886f530d3bde384fd8a6707a52
985bc37f3a312a1f4ccfdb12331d9e5a1544eadc
refs/heads/master
2022-05-24T13:14:04.295248
2019-10-17T14:31:49
2019-10-20T22:03:01
null
0
0
null
null
null
null
UTF-8
C++
false
false
2,391
cpp
#include "BaseSprite.h" #include "RenderCommand.h" namespace ncine { /////////////////////////////////////////////////////////// // CONSTRUCTORS and DESTRUCTOR /////////////////////////////////////////////////////////// /*! \note The initial layer value for a sprite is `DrawableNode::SCENE_LAYER` */ BaseSprite::BaseSprite(SceneNode *parent, Texture *texture, float xx, float yy) : DrawableNode(parent, xx, yy), texture_(texture), texRect_(0, 0, 0, 0), opaqueTexture_(false), spriteBlock_(nullptr) { } /*! \note The initial layer value for a sprite is `DrawableNode::SCENE_LAYER` */ BaseSprite::BaseSprite(SceneNode *parent, Texture *texture, const Vector2f &position) : BaseSprite(parent, texture, position.x, position.y) { } /////////////////////////////////////////////////////////// // PUBLIC FUNCTIONS /////////////////////////////////////////////////////////// void BaseSprite::setSize(float width, float height) { width_ = width; height_ = height; } void BaseSprite::setSize(const Vector2f &size) { width_ = size.x; height_ = size.y; } void BaseSprite::setTexRect(const Recti &rect) { texRect_ = rect; height_ = static_cast<float>(rect.h); width_ = static_cast<float>(rect.w); } void BaseSprite::flipX() { texRect_.x += texRect_.w; texRect_.w *= -1; } void BaseSprite::flipY() { texRect_.y += texRect_.h; texRect_.h *= -1; } /////////////////////////////////////////////////////////// // PRIVATE FUNCTIONS /////////////////////////////////////////////////////////// void BaseSprite::updateRenderCommand() { renderCommand_->transformation() = worldMatrix_; renderCommand_->material().setTexture(*texture_); spriteBlock_->uniform("color")->setFloatVector(Colorf(absColor()).data()); const bool isTransparent = absColor().a() < 255 || texture()->numChannels() == 1 || (texture()->numChannels() == 4 && opaqueTexture_ == false); renderCommand_->material().setTransparent(isTransparent); const Vector2i texSize = texture_->size(); const float texScaleX = texRect_.w / float(texSize.x); const float texBiasX = texRect_.x / float(texSize.x); const float texScaleY = texRect_.h / float(texSize.y); const float texBiasY = texRect_.y / float(texSize.y); spriteBlock_->uniform("texRect")->setFloatValue(texScaleX, texBiasX, texScaleY, texBiasY); spriteBlock_->uniform("spriteSize")->setFloatValue(width_, height_); } }
[ "encelo@gmail.com" ]
encelo@gmail.com
752dcec10976420b55a86c33c17de06766571dd6
344698fe022c42c25074328cea0437945658e554
/3_Sort/3-6-1_SortColors.cpp
289e760dab7041bc44b4d3c4375c9726bddd311d
[]
no_license
cotecsz/WayOfOffer-Phase2
249dd39f7c4ea41cc4266004e317fd6e075d85bf
75c6cc73fe100f5c48912d64e4609751e01f9625
refs/heads/master
2023-02-05T12:15:23.958782
2020-12-21T04:08:15
2020-12-21T04:08:15
313,908,739
0
0
null
null
null
null
UTF-8
C++
false
false
535
cpp
// // Created by dream on 2020/11/24. // #include <vector> using namespace std; class Solution { public: void sortColors(vector<int> &nums) { int less = -1; int more = nums.size(); int index = 0; while (index < more){ if (nums[index] == 0){ swap(nums[index++], nums[++less]); } else if (nums[index] == 2){ swap(nums[index], nums[--more]); } else{ index++; } } } };
[ "dreamre21@gmail.com" ]
dreamre21@gmail.com
327318408443f864e6e7bcedce1b1edc2c562895
6b652479502d96db0ca9edf9c590ce8170ed982e
/Project6/Level1.cpp
48fca86aa4c47d5b0bcb5fe9d17c2c465dff52f3
[]
no_license
LonghamBridge/CSUY3113
ed208fce93559ecb7c01ae98bc37f5de220956d7
7c5869da05ca658d537713144bacca598daacc0b
refs/heads/master
2023-01-30T11:48:48.536908
2020-12-15T04:15:25
2020-12-15T04:15:25
288,581,445
0
0
null
null
null
null
UTF-8
C++
false
false
9,658
cpp
#include "Level1.h" #define LEVEL1_WIDTH 40 #define LEVEL1_HEIGHT 8 #define LEVEL1_ENEMY_COUNT 41 unsigned int level1_data[] = { 0, 1, 1, 1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1, 0, 1, 1, 1, 3, 14,5, 5, 5, 5, 5, 5, 5, 17,5, 5, 5, 5, 5, 5, 5, 5, 14,5, 5, 5, 5, 14,5, 5, 5, 5, 5, 5, 17,5, 5, 5, 5, 5, 14,5, 5, 5, 17, 14,5, 5, 5, 5, 5, 5, 5, 17,5, 5, 5, 5, 5, 5, 17,5, 14,5, 5, 5, 5, 28,1, 1, 1, 3, 5, 5, 17,5, 5, 5, 5, 5, 14,5, 5, 5, 17, 14,5, 5, 5, 5, 5, 5, 5, 17,1, 1, 1, 1, 1, 1, 31,5, 14,5, 5, 5, 5, 5, 5, 5, 5, 17,5, 5, 17,5, 5, 5, 5, 5, 14,5, 5, 5, 17, 28,1, 29,1, 5, 5, 5, 1, 31,5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 14,5, 5, 5, 17,5, 5, 17,5,109,110,111, 5, 28,1, 5, 1, 31, 14,5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 17,5, 14,5, 5, 5, 5, 28,1, 1, 1, 31,5, 5, 5, 5,123,124,125, 5, 5, 5, 5, 5, 17, 14,5, 5, 5, 5, 5, 5, 5, 17,5, 5, 5, 5, 5, 5, 17,5, 14,5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 17,5,137,138,139, 5, 5, 5, 5, 5, 17, 28,1, 1, 1, 1, 1, 1, 1, 31,1, 1, 1, 1, 1, 1, 31,1, 28,1, 1, 1, 1, 1, 1, 1, 1, 1, 30,1, 31,1, 1, 1, 1, 1, 1, 1, 1, 1, 31, }; void Level1::Initialize(int lives) { state.nextScene = -1; GLuint mapTextureID = Util::LoadTexture("tilemap.png"); state.map = new Map(LEVEL1_WIDTH, LEVEL1_HEIGHT, level1_data, mapTextureID, 1.0f, 14, 10); fontID = Util::LoadTexture("font1.png"); /*------player field------*/ state.player = new Entity(glm::vec3(3, -2, 0), glm::vec3(0), 4.0f); state.player->entityType = PLAYER; state.player->textureID = Util::LoadTexture("character.png"); state.player->lives = lives; state.player->height = 0.8f; state.player->width = 0.4f; /*------enemies field------*/ state.enemies = new Entity[LEVEL1_ENEMY_COUNT]; GLuint snakeTextureID = Util::LoadTexture("snake.png"); GLuint batTextureID = Util::LoadTexture("bat.png"); GLuint spiderTextureID = Util::LoadTexture("spider.png"); GLuint redTextureID = Util::LoadTexture("red.png"); GLuint blueTextureID = Util::LoadTexture("blue.png"); GLuint greenTextureID = Util::LoadTexture("green.png"); GLuint yellowTextureID = Util::LoadTexture("yellow.png"); GLuint keyTextureID = Util::LoadTexture("key.png"); for (int i = 0; i < LEVEL1_ENEMY_COUNT; i++) { state.enemies[i].entityType = ENEMY; state.enemies[i].speed = 3; state.enemies[i].height = 0.9; state.enemies[i].width = 0.9; } state.enemies[0].textureID = spiderTextureID; state.enemies[0].position = glm::vec3(24, -1, 0); state.enemies[0].aiType = SPIDER; state.enemies[1].textureID = snakeTextureID; state.enemies[1].position = glm::vec3(8, -5, 0); state.enemies[1].aiType = SNAKE; state.enemies[2].textureID = snakeTextureID; state.enemies[2].position = glm::vec3(22, -3, 0); state.enemies[2].aiType = SNAKE; state.enemies[3].textureID = snakeTextureID; state.enemies[3].position = glm::vec3(19, -5, 0); state.enemies[3].aiType = SNAKE; state.enemies[4].textureID = snakeTextureID; state.enemies[4].position = glm::vec3(13, -1, 0); state.enemies[4].aiType = SNAKE; state.enemies[5].textureID = snakeTextureID; state.enemies[5].position = glm::vec3(20, -6, 0); state.enemies[5].aiType = SNAKE; state.enemies[6].textureID = batTextureID; state.enemies[6].position = glm::vec3(6, -4, 0); state.enemies[6].aiType = BAT; state.enemies[7].textureID = batTextureID; state.enemies[7].position = glm::vec3(13, -5, 0); state.enemies[7].aiType = BAT; state.enemies[8].textureID = batTextureID; state.enemies[8].position = glm::vec3(16, -5, 0); state.enemies[8].aiType = BAT; state.enemies[9].textureID = batTextureID; state.enemies[9].position = glm::vec3(18, -5, 0); state.enemies[9].aiType = BAT; state.enemies[10].textureID = batTextureID; state.enemies[10].position = glm::vec3(21, -5, 0); state.enemies[10].aiType = BAT; state.enemies[11].textureID = batTextureID; state.enemies[11].position = glm::vec3(27, -5, 0); state.enemies[11].aiType = BAT; state.enemies[12].textureID = redTextureID; state.enemies[12].position = glm::vec3(1, -6, 0); state.enemies[12].aiType = RED; state.enemies[13].textureID = redTextureID; state.enemies[13].position = glm::vec3(25, -4, 0); state.enemies[13].aiType = RED; state.enemies[14].textureID = blueTextureID; state.enemies[14].position = glm::vec3(7, -2, 0); state.enemies[14].aiType = BLUE; state.enemies[15].textureID = blueTextureID; state.enemies[15].position = glm::vec3(14, -6, 0); state.enemies[15].aiType = BLUE; state.enemies[16].textureID = blueTextureID; state.enemies[16].position = glm::vec3(24, -4, 0); state.enemies[16].aiType = BLUE; state.enemies[17].textureID = greenTextureID; state.enemies[17].position = glm::vec3(13, -2, 0); state.enemies[17].aiType = GREEN; state.enemies[18].textureID = greenTextureID; state.enemies[18].position = glm::vec3(12, -2, 0); state.enemies[18].aiType = GREEN; state.enemies[19].textureID = greenTextureID; state.enemies[19].position = glm::vec3(11, -2, 0); state.enemies[19].aiType = GREEN; state.enemies[20].textureID = yellowTextureID; state.enemies[20].position = glm::vec3(7, -1, 0); state.enemies[20].aiType = YELLOW; state.enemies[21].textureID = yellowTextureID; state.enemies[21].position = glm::vec3(7, -3, 0); state.enemies[21].aiType = YELLOW; state.enemies[22].textureID = yellowTextureID; state.enemies[22].position = glm::vec3(20, -1, 0); state.enemies[22].aiType = YELLOW; state.enemies[23].textureID = yellowTextureID; state.enemies[23].position = glm::vec3(19, -1, 0); state.enemies[23].aiType = YELLOW; state.enemies[24].textureID = yellowTextureID; state.enemies[24].position = glm::vec3(20, -6, 0); state.enemies[24].aiType = YELLOW; state.enemies[25].textureID = yellowTextureID; state.enemies[25].position = glm::vec3(19, -6, 0); state.enemies[25].aiType = YELLOW; state.enemies[26].textureID = batTextureID; state.enemies[26].position = glm::vec3(3, -5, 0); state.enemies[26].aiType = BAT; state.enemies[27].textureID = batTextureID; state.enemies[27].position = glm::vec3(2, -6, 0); state.enemies[27].aiType = BAT; state.enemies[28].textureID = batTextureID; state.enemies[28].position = glm::vec3(14, -2, 0); state.enemies[28].aiType = BAT; state.enemies[29].textureID = batTextureID; state.enemies[29].position = glm::vec3(23, -4, 0); state.enemies[29].aiType = BAT; state.enemies[30].textureID = keyTextureID; state.enemies[30].position = glm::vec3(23, -1, 0); state.enemies[30].aiType = KEY; state.enemies[31].textureID = redTextureID; state.enemies[31].position = glm::vec3(36, -1, 0); state.enemies[31].aiType = RED; state.enemies[32].textureID = redTextureID; state.enemies[32].position = glm::vec3(38, -1, 0); state.enemies[32].aiType = RED; state.enemies[33].textureID = batTextureID; state.enemies[33].position = glm::vec3(37, -3, 0); state.enemies[33].aiType = BAT; state.enemies[34].textureID = snakeTextureID; state.enemies[34].position = glm::vec3(37, -2, 0); state.enemies[34].aiType = SNAKE; state.enemies[35].textureID = snakeTextureID; state.enemies[35].position = glm::vec3(39, -3, 0); state.enemies[35].aiType = SNAKE; state.enemies[36].textureID = snakeTextureID; state.enemies[36].position = glm::vec3(37, -5, 0); state.enemies[36].aiType = SNAKE; state.enemies[37].textureID = snakeTextureID; state.enemies[37].position = glm::vec3(33, -2, 0); state.enemies[37].aiType = SNAKE; state.enemies[38].textureID = batTextureID; state.enemies[38].position = glm::vec3(32, -3, 0); state.enemies[38].aiType = BAT; state.enemies[39].textureID = greenTextureID; state.enemies[39].position = glm::vec3(31, -1, 0); state.enemies[39].aiType = GREEN; state.enemies[40].textureID = greenTextureID; state.enemies[40].position = glm::vec3(33, -1, 0); state.enemies[40].aiType = GREEN; for (int i = 0; i < LEVEL1_ENEMY_COUNT; i++) { if (state.enemies[i].aiType == BAT) state.enemies[i].movement.y = 1; else if (state.enemies[i].aiType == SNAKE) state.enemies[i].movement.x = 1; } } void Level1::Update(float deltaTime) { state.player->Update(deltaTime, state.player, state.map, state.enemies, LEVEL1_ENEMY_COUNT); for (int i = 0; i < LEVEL1_ENEMY_COUNT; i++) state.enemies[i].Update(deltaTime, state.player, state.map, state.enemies, LEVEL1_ENEMY_COUNT); } void Level1::Render(ShaderProgram* program) { state.map->Render(program); state.player->Render(program); for (int i = 0; i < LEVEL1_ENEMY_COUNT; i++) state.enemies[i].Render(program); program->SetViewMatrix(glm::mat4(1.0f)); if (state.player->key && state.player->position.x <= 27 && state.player->position.y <= -5.5) { Util::DrawText(program, fontID, "YOU ESCAPED!!!", 1, 0, glm::vec3(-6.5, -4, 0)); state.player->escaped = true; state.player->isActive = false; } else if(state.player->isActive) Util::DrawText(program, fontID, "HP:" + std::to_string(state.player->lives), 1, 0, glm::vec3(-7, -4, 0)); else Util::DrawText(program, fontID, "YOU DIED!!!", 1, 0, glm::vec3(-5, -4, 0)); }
[ "lawrencexue26@gmail.com" ]
lawrencexue26@gmail.com
70bf93baadb1fead7016e0d920471258ad3f3b4b
2788cb3ad63bafea870441fb99a619cbffa43698
/source/interface/bci.hpp
162a8e6c1ac4cf08a2f704f8a6f690b67cc265e6
[ "MIT" ]
permissive
tfussell/cort
166e276e3f9953ff23db0dd60ba9904226bbe362
bf548aaeab0dfca9a88afaa0c5420270622f4a0d
refs/heads/master
2021-01-17T07:04:05.977669
2016-03-25T06:45:06
2016-03-25T06:45:06
28,144,991
7
0
null
null
null
null
UTF-8
C++
false
false
1,557
hpp
/* The MIT License (MIT) Copyright (c) 2006-2016 Thomas Fussell Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #pragma once #include <string> namespace cort { class layer; enum class bci_type { input, output }; class bci { public: bci(); virtual ~bci(); void set_layer(layer *layer) { layer_ = layer; }; layer *get_layer() const { return layer_; }; virtual void initialize() = 0; virtual std::string get_state() = 0; virtual void set_state(const std::string &state) = 0; private: layer *layer_; }; } // namespace cort
[ "thomas.fussell@gmail.com" ]
thomas.fussell@gmail.com
2ea0c3b65468c5cfc3465d55d36c2bf6db099747
c87ab47fad0bee293c49c7f4f35aed25bd898ae5
/source/hydra_next/source/graphics/gpu_device_vulkan.cpp
d115f3a21bda952f58c023c42a366fd0f48be9f4
[ "Zlib" ]
permissive
swordow/DataDrivenRendering
555443db2f5463a13e3671d7061991ddc6df9f4d
2a1f1cb7be091d128c20c0c583c71c04395302a8
refs/heads/master
2023-08-15T18:40:38.518904
2021-10-26T22:27:12
2021-10-26T22:27:12
null
0
0
null
null
null
null
UTF-8
C++
false
false
131,264
cpp
#include "graphics/gpu_device_vulkan.hpp" #include "graphics/command_buffer.hpp" #include "kernel/file.hpp" #include "kernel/process.hpp" #include "kernel/hash_map.hpp" #if defined(HYDRA_VULKAN) template<class T> constexpr const T& hydra_min( const T& a, const T& b ) { return ( a < b ) ? a : b; } template<class T> constexpr const T& hydra_max( const T& a, const T& b ) { return ( a < b ) ? b : a; } #define VMA_MAX hydra_max #define VMA_MIN hydra_min #define VMA_USE_STL_CONTAINERS 0 #define VMA_USE_STL_VECTOR 0 #define VMA_USE_STL_UNORDERED_MAP 0 #define VMA_USE_STL_LIST 0 #if defined (_MSC_VER) #pragma warning (disable: 4127) #pragma warning (disable: 4189) #pragma warning (disable: 4191) #pragma warning (disable: 4296) #pragma warning (disable: 4324) #pragma warning (disable: 4355) #pragma warning (disable: 4365) #pragma warning (disable: 4625) #pragma warning (disable: 4626) #pragma warning (disable: 4668) #pragma warning (disable: 5026) #pragma warning (disable: 5027) #endif // _MSC_VER #define VMA_IMPLEMENTATION #include "external/vk_mem_alloc.h" #if defined (HYDRA_GFX_SDL) #include <SDL.h> #include <SDL_vulkan.h> #endif // HYDRA_GFX_SDL namespace hydra { namespace gfx { static void check( VkResult result ); struct CommandBufferRing { void init( GpuDeviceVulkan* gpu ); void shutdown(); void reset_pools( u32 frame_index ); CommandBuffer* get_command_buffer( u32 frame, bool begin ); CommandBuffer* get_command_buffer_instant( u32 frame, bool begin ); static u16 pool_from_index( u32 index ) { return (u16)index / k_buffer_per_pool; } static const u16 k_max_threads = 1; static const u16 k_max_pools = k_max_swapchain_images * k_max_threads; static const u16 k_buffer_per_pool = 4; static const u16 k_max_buffers = k_buffer_per_pool * k_max_pools; GpuDeviceVulkan* gpu; VkCommandPool vulkan_command_pools[ k_max_pools ]; CommandBuffer command_buffers[ k_max_buffers ]; u8 next_free_per_thread_frame[ k_max_pools ]; }; // struct CommandBufferRing void CommandBufferRing::init( GpuDeviceVulkan* gpu_ ) { gpu = gpu_; for ( u32 i = 0; i < k_max_pools; i++ ) { VkCommandPoolCreateInfo cmd_pool_info = { VK_STRUCTURE_TYPE_COMMAND_POOL_CREATE_INFO, nullptr }; cmd_pool_info.queueFamilyIndex = gpu->vulkan_queue_family; cmd_pool_info.flags = VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT; check( vkCreateCommandPool( gpu->vulkan_device, &cmd_pool_info, gpu->vulkan_allocation_callbacks, &vulkan_command_pools[ i ] ) ); } for ( u32 i = 0; i < k_max_buffers; i++ ) { VkCommandBufferAllocateInfo cmd = { VK_STRUCTURE_TYPE_COMMAND_BUFFER_ALLOCATE_INFO, nullptr }; const u32 pool_index = pool_from_index( i ); cmd.commandPool = vulkan_command_pools[ pool_index ]; cmd.level = VK_COMMAND_BUFFER_LEVEL_PRIMARY; cmd.commandBufferCount = 1; check( vkAllocateCommandBuffers( gpu->vulkan_device, &cmd, &command_buffers[ i ].vk_command_buffer ) ); command_buffers[ i ].device = gpu; command_buffers[ i ].handle = i; command_buffers[ i ].reset(); } } void CommandBufferRing::shutdown() { for ( u32 i = 0; i < k_max_swapchain_images * k_max_threads; i++ ) { vkDestroyCommandPool( gpu->vulkan_device, vulkan_command_pools[ i ], gpu->vulkan_allocation_callbacks ); } } void CommandBufferRing::reset_pools( u32 frame_index ) { for ( u32 i = 0; i < k_max_threads; i++ ) { vkResetCommandPool( gpu->vulkan_device, vulkan_command_pools[ frame_index * k_max_threads + i ], 0 ); } } CommandBuffer* CommandBufferRing::get_command_buffer( u32 frame, bool begin ) { // TODO: take in account threads CommandBuffer* cb = &command_buffers[ frame * k_buffer_per_pool ]; if ( begin ) { cb->reset(); VkCommandBufferBeginInfo beginInfo = { VK_STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFO }; beginInfo.flags = VK_COMMAND_BUFFER_USAGE_ONE_TIME_SUBMIT_BIT; vkBeginCommandBuffer( cb->vk_command_buffer, &beginInfo ); } return cb; } CommandBuffer* CommandBufferRing::get_command_buffer_instant( u32 frame, bool begin ) { CommandBuffer* cb = &command_buffers[ frame * k_buffer_per_pool + 1 ]; return cb; } // Device implementation ////////////////////////////////////////////////// // Methods ////////////////////////////////////////////////////////////////////// // Enable this to add debugging capabilities. // https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/VK_EXT_debug_utils.html #define VULKAN_DEBUG_REPORT static const char* s_requested_extensions[] = { VK_KHR_SURFACE_EXTENSION_NAME, // Platform specific extension #ifdef VK_USE_PLATFORM_WIN32_KHR VK_KHR_WIN32_SURFACE_EXTENSION_NAME, #elif VK_USE_PLATFORM_MACOS_MVK VK_MVK_MACOS_SURFACE_EXTENSION_NAME, #elif VK_USE_PLATFORM_XCB_KHR VK_KHR_XCB_SURFACE_EXTENSION_NAME, #elif VK_USE_PLATFORM_ANDROID_KHR VK_KHR_ANDROID_SURFACE_EXTENSION_NAME, #elif VK_USE_PLATFORM_XLIB_KHR VK_KHR_XLIB_SURFACE_EXTENSION_NAME, #elif VK_USE_PLATFORM_XCB_KHR VK_KHR_XCB_SURFACE_EXTENSION_NAME, #elif VK_USE_PLATFORM_WAYLAND_KHR VK_KHR_WAYLAND_SURFACE_EXTENSION_NAME, #elif VK_USE_PLATFORM_MIR_KHR || VK_USE_PLATFORM_DISPLAY_KHR VK_KHR_DISPLAY_EXTENSION_NAME, #elif VK_USE_PLATFORM_ANDROID_KHR VK_KHR_ANDROID_SURFACE_EXTENSION_NAME, #elif VK_USE_PLATFORM_IOS_MVK VK_MVK_IOS_SURFACE_EXTENSION_NAME, #endif // VK_USE_PLATFORM_WIN32_KHR #if defined (VULKAN_DEBUG_REPORT) VK_EXT_DEBUG_REPORT_EXTENSION_NAME, VK_EXT_DEBUG_UTILS_EXTENSION_NAME, #endif // VULKAN_DEBUG_REPORT }; static const char* s_requested_layers[] = { #if defined (VULKAN_DEBUG_REPORT) "VK_LAYER_KHRONOS_validation", //"VK_LAYER_LUNARG_core_validation", //"VK_LAYER_LUNARG_image", //"VK_LAYER_LUNARG_parameter_validation", //"VK_LAYER_LUNARG_object_tracker" #else "", #endif // VULKAN_DEBUG_REPORT }; #ifdef VULKAN_DEBUG_REPORT // Old debug callback. //static VKAPI_ATTR VkBool32 VKAPI_CALL debug_callback( VkDebugReportFlagsEXT flags, VkDebugReportObjectTypeEXT objectType, uint64_t object, size_t location, int32_t messageCode, const char* pLayerPrefix, const char* pMessage, void* pUserData ) { // (void)flags; (void)object; (void)location; (void)messageCode; (void)pUserData; (void)pLayerPrefix; // Unused arguments // HYDRA_LOG( "[vulkan] ObjectType: %i\nMessage: %s\n\n", objectType, pMessage ); // return VK_FALSE; //} static VkBool32 debug_utils_callback( VkDebugUtilsMessageSeverityFlagBitsEXT severity, VkDebugUtilsMessageTypeFlagsEXT types, const VkDebugUtilsMessengerCallbackDataEXT* callback_data, void* user_data ) { hprint( " MessageID: %s %i\nMessage: %s\n\n", callback_data->pMessageIdName, callback_data->messageIdNumber, callback_data->pMessage ); return VK_FALSE; } #endif // VULKAN_DEBUG_REPORT static SDL_Window* sdl_window; PFN_vkSetDebugUtilsObjectNameEXT pfnSetDebugUtilsObjectNameEXT; PFN_vkCmdBeginDebugUtilsLabelEXT pfnCmdBeginDebugUtilsLabelEXT; PFN_vkCmdEndDebugUtilsLabelEXT pfnCmdEndDebugUtilsLabelEXT; #if defined(VULKAN_DEBUG_REPORT) // TODO: // GPU Timestamps /////////////////////////////////////////////////// VkDebugUtilsMessengerCreateInfoEXT create_debug_utils_messenger_info() { VkDebugUtilsMessengerCreateInfoEXT creation_info = { VK_STRUCTURE_TYPE_DEBUG_UTILS_MESSENGER_CREATE_INFO_EXT }; creation_info.pfnUserCallback = debug_utils_callback; creation_info.messageSeverity = VK_DEBUG_UTILS_MESSAGE_SEVERITY_ERROR_BIT_EXT | VK_DEBUG_UTILS_MESSAGE_SEVERITY_WARNING_BIT_EXT; creation_info.messageType = VK_DEBUG_UTILS_MESSAGE_TYPE_PERFORMANCE_BIT_EXT | VK_DEBUG_UTILS_MESSAGE_TYPE_VALIDATION_BIT_EXT; return creation_info; } #endif // VULKAN_DEBUG_REPORT static GpuDeviceVulkan s_vulkan_device; static hydra::FlatHashMap<u64, VkRenderPass> render_pass_cache; Device* Device::instance() { return &s_vulkan_device; } void Device::backend_init( const DeviceCreation& creation ) { s_vulkan_device.internal_init( creation ); } void Device::backend_shutdown() { s_vulkan_device.internal_shutdown(); } // Resource Creation //////////////////////////////////////////////////////////// BufferHandle Device::create_buffer( const BufferCreation& creation ) { return s_vulkan_device.create_buffer( creation ); } TextureHandle Device::create_texture( const TextureCreation& creation ) { return s_vulkan_device.create_texture( creation ); } PipelineHandle Device::create_pipeline( const PipelineCreation& creation ) { return s_vulkan_device.create_pipeline( creation ); } SamplerHandle Device::create_sampler( const SamplerCreation& creation ) { return s_vulkan_device.create_sampler( creation ); } ResourceLayoutHandle Device::create_resource_layout( const ResourceLayoutCreation& creation ) { return s_vulkan_device.create_resource_layout( creation ); } ResourceListHandle Device::create_resource_list( const ResourceListCreation& creation ) { return s_vulkan_device.create_resource_list( creation ); } RenderPassHandle Device::create_render_pass( const RenderPassCreation& creation ) { return s_vulkan_device.create_render_pass( creation ); } ShaderStateHandle Device::create_shader_state( const ShaderStateCreation& creation ) { return s_vulkan_device.create_shader_state( creation ); } // Resource Destruction ///////////////////////////////////////////////////////// void Device::destroy_buffer( BufferHandle buffer ) { s_vulkan_device.destroy_buffer( buffer ); } void Device::destroy_texture( TextureHandle texture ) { s_vulkan_device.destroy_texture( texture ); } void Device::destroy_pipeline( PipelineHandle pipeline ) { s_vulkan_device.destroy_pipeline( pipeline ); } void Device::destroy_sampler( SamplerHandle sampler ) { s_vulkan_device.destroy_sampler( sampler ); } void Device::destroy_resource_layout( ResourceLayoutHandle resource_layout ) { s_vulkan_device.destroy_resource_layout( resource_layout ); } void Device::destroy_resource_list( ResourceListHandle resource_list ) { s_vulkan_device.destroy_resource_list( resource_list ); } void Device::destroy_render_pass( RenderPassHandle render_pass ) { s_vulkan_device.destroy_render_pass( render_pass ); } void Device::destroy_shader_state( ShaderStateHandle shader ) { s_vulkan_device.destroy_shader_state( shader ); } // Misc /////////////////////////////////////////////////////////////////// void Device::resize_output_textures( RenderPassHandle render_pass, u16 width, u16 height ) { s_vulkan_device.resize_output_textures( render_pass, width, height ); } void Device::link_texture_sampler( TextureHandle texture, SamplerHandle sampler ) { s_vulkan_device.link_texture_sampler( texture, sampler ); } void Device::fill_barrier( RenderPassHandle render_pass, ExecutionBarrier& out_barrier ) { s_vulkan_device.fill_barrier( render_pass, out_barrier ); } void Device::new_frame() { s_vulkan_device.new_frame(); } void Device::present() { s_vulkan_device.present(); } void Device::set_presentation_mode( PresentMode::Enum mode ) { s_vulkan_device.set_present_mode( mode ); s_vulkan_device.resize_swapchain(); } void* Device::map_buffer( const MapBufferParameters& parameters ) { return s_vulkan_device.map_buffer( parameters ); } void Device::unmap_buffer( const MapBufferParameters& parameters ) { s_vulkan_device.unmap_buffer( parameters ); } static size_t pad_uniform_buffer_size( size_t originalSize ) { // Calculate required alignment based on minimum device offset alignment size_t minUboAlignment = 256;// _gpuProperties.limits.minUniformBufferOffsetAlignment; size_t alignedSize = originalSize; if ( minUboAlignment > 0 ) { alignedSize = ( alignedSize + minUboAlignment - 1 ) & ~( minUboAlignment - 1 ); } return alignedSize; } void* Device::dynamic_allocate( u32 size ) { void* mapped_memory = dynamic_mapped_memory + dynamic_allocated_size; dynamic_allocated_size += (u32)pad_uniform_buffer_size( size ); return mapped_memory; } void Device::set_buffer_global_offset( BufferHandle buffer, u32 offset ) { s_vulkan_device.set_buffer_global_offset( buffer, offset ); } void Device::queue_command_buffer( CommandBuffer* command_buffer ) { s_vulkan_device.queue_command_buffer( command_buffer ); } CommandBuffer* Device::get_command_buffer( QueueType::Enum type, bool begin ) { return s_vulkan_device.get_command_buffer( type, begin ); } CommandBuffer* Device::get_instant_command_buffer() { return s_vulkan_device.get_instant_command_buffer(); } void Device::update_resource_list( const ResourceListUpdate& update ) { s_vulkan_device.update_resource_list( update ); } u32 Device::get_gpu_timestamps( GPUTimestamp* out_timestamps ) { return s_vulkan_device.get_gpu_timestamps( out_timestamps ); } void Device::push_gpu_timestamp( CommandBuffer* command_buffer, const char* name ) { s_vulkan_device.push_gpu_timestamp( command_buffer, name ); } void Device::pop_gpu_timestamp( CommandBuffer* command_buffer ) { s_vulkan_device.pop_gpu_timestamp( command_buffer ); } // GpuDeviceVulkan //////////////////////////////////////////////////////// static CommandBufferRing command_buffer_ring; void GpuDeviceVulkan::internal_init( const DeviceCreation& creation ) { //////// Init Vulkan instance. VkResult result; vulkan_allocation_callbacks = nullptr; VkApplicationInfo application_info = { VK_STRUCTURE_TYPE_APPLICATION_INFO, nullptr, "Hydra Graphics Device", 1, "Hydra", 1, VK_MAKE_VERSION( 1, 2, 0 ) }; VkInstanceCreateInfo create_info = { VK_STRUCTURE_TYPE_INSTANCE_CREATE_INFO, nullptr, 0, &application_info, #if defined(VULKAN_DEBUG_REPORT) ArraySize( s_requested_layers ), s_requested_layers, #else 0, nullptr, #endif ArraySize( s_requested_extensions ), s_requested_extensions }; #ifdef VULKAN_DEBUG_REPORT const VkDebugUtilsMessengerCreateInfoEXT debug_create_info = create_debug_utils_messenger_info(); create_info.pNext = &debug_create_info; #endif //// Create Vulkan Instance result = vkCreateInstance( &create_info, vulkan_allocation_callbacks, &vulkan_instance ); check( result ); swapchain_width = creation.width; swapchain_height = creation.height; //// Choose extensions #ifdef VULKAN_DEBUG_REPORT { uint32_t num_instance_extensions; vkEnumerateInstanceExtensionProperties( nullptr, &num_instance_extensions, nullptr ); VkExtensionProperties* extensions = ( VkExtensionProperties* )halloca( sizeof( VkExtensionProperties ) * num_instance_extensions, allocator ); vkEnumerateInstanceExtensionProperties( nullptr, &num_instance_extensions, extensions ); for ( size_t i = 0; i < num_instance_extensions; i++ ) { if ( !strcmp( extensions[ i ].extensionName, VK_EXT_DEBUG_UTILS_EXTENSION_NAME ) ) { debug_utils_extension_present = true; break; } } hfree( extensions, allocator ); if ( !debug_utils_extension_present ) { hprint( "Extension %s for debugging non present.", VK_EXT_DEBUG_UTILS_EXTENSION_NAME ); } else { //// Create debug callback //auto vkCreateDebugReportCallbackEXT = ( PFN_vkCreateDebugReportCallbackEXT )vkGetInstanceProcAddr( vulkan_instance, "vkCreateDebugReportCallbackEXT" ); //HYDRA_ASSERT( vkCreateDebugReportCallbackEXT != NULL, "" ); //// Setup the debug report callback /*VkDebugReportCallbackCreateInfoEXT debug_report_ci = {}; debug_report_ci.sType = VK_STRUCTURE_TYPE_DEBUG_REPORT_CALLBACK_CREATE_INFO_EXT; debug_report_ci.flags = VK_DEBUG_REPORT_ERROR_BIT_EXT | VK_DEBUG_REPORT_WARNING_BIT_EXT | VK_DEBUG_REPORT_PERFORMANCE_WARNING_BIT_EXT; debug_report_ci.pfnCallback = debug_callback; debug_report_ci.pUserData = NULL; result = vkCreateDebugReportCallbackEXT( vulkan_instance, &debug_report_ci, vulkan_allocation_callbacks, &vulkan_debug_callback ); check( result );*/ // Create new debug utils callback PFN_vkCreateDebugUtilsMessengerEXT vkCreateDebugUtilsMessengerEXT = ( PFN_vkCreateDebugUtilsMessengerEXT )vkGetInstanceProcAddr( vulkan_instance, "vkCreateDebugUtilsMessengerEXT" ); VkDebugUtilsMessengerCreateInfoEXT debug_messenger_create_info = create_debug_utils_messenger_info(); vkCreateDebugUtilsMessengerEXT( vulkan_instance, &debug_messenger_create_info, vulkan_allocation_callbacks, &vulkan_debug_utils_messenger ); } } #endif //////// Choose physical device uint32_t num_physical_device; result = vkEnumeratePhysicalDevices( vulkan_instance, &num_physical_device, NULL ); check( result ); VkPhysicalDevice* gpus = ( VkPhysicalDevice* )halloca( sizeof( VkPhysicalDevice ) * num_physical_device, allocator ); result = vkEnumeratePhysicalDevices( vulkan_instance, &num_physical_device, gpus ); check( result ); // TODO: improve - choose the first gpu. vulkan_physical_device = gpus[ 0 ]; hfree( gpus, allocator ); vkGetPhysicalDeviceProperties( vulkan_physical_device, &vulkan_physical_properties ); gpu_timestamp_frequency = vulkan_physical_properties.limits.timestampPeriod / ( 1000 * 1000 ); // Bindless support #if defined (HYDRA_BINDLESS) VkPhysicalDeviceDescriptorIndexingFeatures indexing_features{ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DESCRIPTOR_INDEXING_FEATURES_EXT, nullptr }; VkPhysicalDeviceFeatures2 device_features{ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FEATURES_2, &indexing_features }; vkGetPhysicalDeviceFeatures2( vulkan_physical_device, &device_features ); bindless_supported = indexing_features.descriptorBindingPartiallyBound && indexing_features.runtimeDescriptorArray; #else bindless_supported = false; #endif // HYDRA_BINDLESS //////// Create logical device uint32_t queue_family_count = 0; vkGetPhysicalDeviceQueueFamilyProperties( vulkan_physical_device, &queue_family_count, nullptr ); VkQueueFamilyProperties* queue_families = ( VkQueueFamilyProperties* )halloca( sizeof( VkQueueFamilyProperties ) * queue_family_count, allocator ); vkGetPhysicalDeviceQueueFamilyProperties( vulkan_physical_device, &queue_family_count, queue_families ); uint32_t family_index = 0; for ( ; family_index < queue_family_count; ++family_index ) { VkQueueFamilyProperties queue_family = queue_families[ family_index ]; if ( queue_family.queueCount > 0 && queue_family.queueFlags & ( VK_QUEUE_GRAPHICS_BIT | VK_QUEUE_COMPUTE_BIT ) ) { //indices.graphicsFamily = i; break; } //VkBool32 presentSupport = false; //vkGetPhysicalDeviceSurfaceSupportKHR( vulkan_physical_device, i, _surface, &presentSupport ); //if ( queue_family.queueCount && presentSupport ) { // indices.presentFamily = i; //} //if ( indices.isComplete() ) { // break; //} } hfree( queue_families, allocator ); u32 device_extension_count = 1; const char* device_extensions[] = { "VK_KHR_swapchain" }; const float queue_priority[] = { 1.0f }; VkDeviceQueueCreateInfo queue_info[ 1 ] = {}; queue_info[ 0 ].sType = VK_STRUCTURE_TYPE_DEVICE_QUEUE_CREATE_INFO; queue_info[ 0 ].queueFamilyIndex = family_index; queue_info[ 0 ].queueCount = 1; queue_info[ 0 ].pQueuePriorities = queue_priority; // Enable all features: just pass the physical features 2 struct. VkPhysicalDeviceFeatures2 physical_features2 = { VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FEATURES_2 }; vkGetPhysicalDeviceFeatures2( vulkan_physical_device, &physical_features2 ); VkDeviceCreateInfo device_create_info = {}; device_create_info.sType = VK_STRUCTURE_TYPE_DEVICE_CREATE_INFO; device_create_info.queueCreateInfoCount = sizeof( queue_info ) / sizeof( queue_info[ 0 ] ); device_create_info.pQueueCreateInfos = queue_info; device_create_info.enabledExtensionCount = device_extension_count; device_create_info.ppEnabledExtensionNames = device_extensions; device_create_info.pNext = &physical_features2; #if defined(HYDRA_BINDLESS) if ( bindless_supported ) { indexing_features.descriptorBindingPartiallyBound = VK_TRUE; indexing_features.runtimeDescriptorArray = VK_TRUE; device_create_info.pNext = &indexing_features; } #endif // HYDRA_BINDLESS result = vkCreateDevice( vulkan_physical_device, &device_create_info, vulkan_allocation_callbacks, &vulkan_device ); check( result ); // Get the function pointers to Debug Utils functions. if ( debug_utils_extension_present ) { pfnSetDebugUtilsObjectNameEXT = ( PFN_vkSetDebugUtilsObjectNameEXT )vkGetDeviceProcAddr( vulkan_device, "vkSetDebugUtilsObjectNameEXT" ); pfnCmdBeginDebugUtilsLabelEXT = ( PFN_vkCmdBeginDebugUtilsLabelEXT )vkGetDeviceProcAddr( vulkan_device, "vkCmdBeginDebugUtilsLabelEXT" ); pfnCmdEndDebugUtilsLabelEXT = ( PFN_vkCmdEndDebugUtilsLabelEXT )vkGetDeviceProcAddr( vulkan_device, "vkCmdEndDebugUtilsLabelEXT" ); } vkGetDeviceQueue( vulkan_device, family_index, 0, &vulkan_queue ); vulkan_queue_family = family_index; //////// Create drawable surface #if defined (HYDRA_GFX_SDL) // Create surface SDL_Window* window = ( SDL_Window* )creation.window; if ( SDL_Vulkan_CreateSurface( window, vulkan_instance, &vulkan_window_surface ) == SDL_FALSE ) { hprint( "Failed to create Vulkan surface.\n" ); } sdl_window = window; // Create Framebuffers int window_width, window_height; SDL_GetWindowSize( window, &window_width, &window_height ); #else static_assert( false, "Create surface manually!" ); #endif // HYDRA_GFX_SDL //// Select Surface Format const TextureFormat::Enum swapchain_formats[] = { TextureFormat::B8G8R8A8_UNORM, TextureFormat::R8G8B8A8_UNORM, TextureFormat::B8G8R8X8_UNORM, TextureFormat::B8G8R8X8_UNORM }; const VkFormat surface_image_formats[] = { VK_FORMAT_B8G8R8A8_UNORM, VK_FORMAT_R8G8B8A8_UNORM, VK_FORMAT_B8G8R8_UNORM, VK_FORMAT_R8G8B8_UNORM }; const VkColorSpaceKHR surface_color_space = VK_COLORSPACE_SRGB_NONLINEAR_KHR; uint32_t supported_count; vkGetPhysicalDeviceSurfaceFormatsKHR( vulkan_physical_device, vulkan_window_surface, &supported_count, NULL ); VkSurfaceFormatKHR* supported_formats = ( VkSurfaceFormatKHR* )halloca( sizeof( VkSurfaceFormatKHR ) * supported_count, allocator ); vkGetPhysicalDeviceSurfaceFormatsKHR( vulkan_physical_device, vulkan_window_surface, &supported_count, supported_formats ); // Cache render pass output swapchain_output.reset(); //// Check for supported formats bool format_found = false; const uint32_t surface_format_count = ArraySize( surface_image_formats ); for ( int i = 0; i < surface_format_count; i++ ) { for ( uint32_t j = 0; j < supported_count; j++ ) { if ( supported_formats[ j ].format == surface_image_formats[ i ] && supported_formats[ j ].colorSpace == surface_color_space ) { vulkan_surface_format = supported_formats[ j ]; swapchain_output.color( swapchain_formats[ j ] ); format_found = true; break; } } if ( format_found ) break; } // Default to the first format supported. if ( !format_found ) { vulkan_surface_format = supported_formats[ 0 ]; hy_assert( false ); } hfree( supported_formats, allocator ); set_present_mode( present_mode ); //////// Create swapchain create_swapchain(); //////// Create VMA Allocator VmaAllocatorCreateInfo allocatorInfo = {}; allocatorInfo.physicalDevice = vulkan_physical_device; allocatorInfo.device = vulkan_device; allocatorInfo.instance = vulkan_instance; result = vmaCreateAllocator( &allocatorInfo, &vma_allocator ); check( result ); //////// Create pools VkDescriptorPoolSize pool_sizes[] = { { VK_DESCRIPTOR_TYPE_SAMPLER, 1000 }, { VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER, 1000 }, { VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE, 1000 }, { VK_DESCRIPTOR_TYPE_STORAGE_IMAGE, 1000 }, { VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER, 1000 }, { VK_DESCRIPTOR_TYPE_STORAGE_TEXEL_BUFFER, 1000 }, { VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER, 1000 }, { VK_DESCRIPTOR_TYPE_STORAGE_BUFFER, 1000 }, { VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC, 1000 }, { VK_DESCRIPTOR_TYPE_STORAGE_BUFFER_DYNAMIC, 1000 }, { VK_DESCRIPTOR_TYPE_INPUT_ATTACHMENT, 1000 } }; VkDescriptorPoolCreateInfo pool_info = {}; pool_info.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_POOL_CREATE_INFO; pool_info.flags = VK_DESCRIPTOR_POOL_CREATE_FREE_DESCRIPTOR_SET_BIT; pool_info.maxSets = 1000 * ArraySize( pool_sizes ); pool_info.poolSizeCount = ( uint32_t )ArraySize( pool_sizes ); pool_info.pPoolSizes = pool_sizes; result = vkCreateDescriptorPool( vulkan_device, &pool_info, vulkan_allocation_callbacks, &vulkan_descriptor_pool ); check( result ); // Create timestamp query pool used for GPU timings. VkQueryPoolCreateInfo vqpci{ VK_STRUCTURE_TYPE_QUERY_POOL_CREATE_INFO, nullptr, 0, VK_QUERY_TYPE_TIMESTAMP, creation.gpu_time_queries_per_frame * 2 * k_max_frames, 0 }; vkCreateQueryPool( vulkan_device, &vqpci, vulkan_allocation_callbacks, &vulkan_timestamp_query_pool ); #if defined (HYDRA_GRAPHICS_TEST) test_texture_creation( *this ); test_pool( *this ); test_command_buffer( *this ); #endif // HYDRA_GRAPHICS_TEST //// Init pools buffers.init( allocator, 128, sizeof( BufferVulkan ) ); textures.init( allocator, 128, sizeof( TextureVulkan ) ); render_passes.init( allocator, 256, sizeof( RenderPassVulkan ) ); resource_layouts.init( allocator, 128, sizeof( ResourceLayoutVulkan ) ); pipelines.init( allocator, 128, sizeof( PipelineVulkan ) ); shaders.init( allocator, 128, sizeof( ShaderStateVulkan ) ); resource_lists.init( allocator, 128, sizeof( ResourceListVulkan ) ); samplers.init( allocator, 32, sizeof( SamplerVulkan ) ); //command_buffers.init( allocator, 128, sizeof( CommandBuffer ) ); // Init render frame informations. This includes fences, semaphores, command buffers, ... // TODO: memory - allocate memory of all Device render frame stuff u8* memory = hallocam( sizeof(GPUTimestampManager) + sizeof(CommandBuffer*) * 128, allocator); VkSemaphoreCreateInfo semaphore_info{ VK_STRUCTURE_TYPE_SEMAPHORE_CREATE_INFO }; vkCreateSemaphore( vulkan_device, &semaphore_info, vulkan_allocation_callbacks, &vulkan_image_acquired_semaphore ); for ( size_t i = 0; i < k_max_swapchain_images; i++ ) { vkCreateSemaphore( vulkan_device, &semaphore_info, vulkan_allocation_callbacks, &vulkan_render_complete_semaphore[ i ] ); VkFenceCreateInfo fenceInfo{ VK_STRUCTURE_TYPE_FENCE_CREATE_INFO }; fenceInfo.flags = VK_FENCE_CREATE_SIGNALED_BIT; vkCreateFence( vulkan_device, &fenceInfo, vulkan_allocation_callbacks, &vulkan_command_buffer_executed_fence[i] ); } gpu_timestamp_manager = ( GPUTimestampManager* )( memory ); gpu_timestamp_manager->init( allocator, creation.gpu_time_queries_per_frame, k_max_frames ); command_buffer_ring.init( this ); // Allocate queued command buffers array queued_command_buffers = ( CommandBuffer** )( gpu_timestamp_manager + 1 ); CommandBuffer** correctly_allocated_buffer = ( CommandBuffer** )( memory + sizeof( GPUTimestampManager ) ); hy_assertm( queued_command_buffers == correctly_allocated_buffer, "Wrong calculations for queued command buffers arrays. Should be %p, but it is %p.", correctly_allocated_buffer, queued_command_buffers); // // Init primitive resources BufferCreation fullscreen_vb_creation = { BufferType::Vertex_mask, ResourceUsageType::Immutable, 0, nullptr, "Fullscreen_vb" }; fullscreen_vertex_buffer = create_buffer( fullscreen_vb_creation ); // Create depth image TextureCreation depth_texture_creation = { nullptr, swapchain_width, swapchain_height, 1, 1, 0, TextureFormat::D32_FLOAT, TextureType::Texture2D, "DepthImage_Texture" }; depth_texture = create_texture( depth_texture_creation ); // Cache depth texture format swapchain_output.depth( TextureFormat::D32_FLOAT ); RenderPassCreation swapchain_pass_creation = {}; swapchain_pass_creation.set_type( RenderPassType::Swapchain ).set_name( "Swapchain" ); swapchain_pass_creation.set_operations( RenderPassOperation::Clear, RenderPassOperation::Clear, RenderPassOperation::Clear ); swapchain_pass = create_render_pass( swapchain_pass_creation ); // Init Dummy resources TextureCreation dummy_texture_creation = { nullptr, 1, 1, 1, 1, 0, TextureFormat::R8_UINT, TextureType::Texture2D }; dummy_texture = create_texture( dummy_texture_creation ); SamplerCreation sc{}; sc.set_address_mode_uvw( TextureAddressMode::Repeat, TextureAddressMode::Repeat, TextureAddressMode::Repeat ) .set_min_mag_mip( TextureFilter::Linear, TextureFilter::Linear, TextureMipFilter::Linear ).set_name( "Sampler Default" ); default_sampler = create_sampler( sc ); BufferCreation dummy_constant_buffer_creation = { BufferType::Constant_mask, ResourceUsageType::Immutable, 16, nullptr, "Dummy_cb" }; dummy_constant_buffer = create_buffer( dummy_constant_buffer_creation ); vulkan_image_index = 0; current_frame = 1; previous_frame = 0; absolute_frame = 0; timestamps_enabled = false; num_deletion_queue = 0; num_update_queue = 0; // Get binaries path char* vulkan_env = string_buffer.reserve( 512 ); ExpandEnvironmentStringsA( "%VULKAN_SDK%", vulkan_env, 512 ); char* compiler_path = string_buffer.append_use_f( "%s\\Bin\\", vulkan_env ); strcpy( vulkan_binaries_path, compiler_path ); string_buffer.clear(); // Dynamic buffer handling // TODO: dynamic_per_frame_size = 1024 * 1024 * 10; BufferCreation bc; bc.set( (BufferType::Mask)(BufferType::Vertex_mask | BufferType::Index_mask | BufferType::Constant_mask), ResourceUsageType::Immutable, dynamic_per_frame_size * k_max_frames ).set_name( "Dynamic_Persistent_Buffer" ); dynamic_buffer = create_buffer( bc ); MapBufferParameters cb_map = { dynamic_buffer, 0, 0 }; dynamic_mapped_memory = ( u8* )map_buffer( cb_map ); // Init render pass cache render_pass_cache.init( allocator, 16 ); } void GpuDeviceVulkan::internal_shutdown() { vkDeviceWaitIdle( vulkan_device ); command_buffer_ring.shutdown(); for ( size_t i = 0; i < k_max_swapchain_images; i++ ) { vkDestroySemaphore( vulkan_device, vulkan_render_complete_semaphore[i], vulkan_allocation_callbacks ); vkDestroyFence( vulkan_device, vulkan_command_buffer_executed_fence[i], vulkan_allocation_callbacks ); } vkDestroySemaphore( vulkan_device, vulkan_image_acquired_semaphore, vulkan_allocation_callbacks ); gpu_timestamp_manager->shutdown(); MapBufferParameters cb_map = { dynamic_buffer, 0, 0 }; unmap_buffer( cb_map ); // Memory: this contains allocations for gpu timestamp memory, queued command buffers and render frames. hfree( gpu_timestamp_manager, allocator ); destroy_texture( depth_texture ); destroy_buffer( fullscreen_vertex_buffer ); destroy_buffer( dynamic_buffer ); destroy_render_pass( swapchain_pass ); destroy_texture( dummy_texture ); destroy_buffer( dummy_constant_buffer ); destroy_sampler( default_sampler ); // Destroy all pending resources. for ( size_t i = 0; i < num_deletion_queue; i++ ) { ResourceDeletion& resource_deletion = resource_deletion_queue[ i ]; // Skip just freed resources. if ( resource_deletion.current_frame == -1 ) continue; switch ( resource_deletion.type ) { case ResourceDeletionType::Buffer: { destroy_buffer_instant( resource_deletion.handle ); break; } case ResourceDeletionType::Pipeline: { destroy_pipeline_instant( resource_deletion.handle ); break; } case ResourceDeletionType::RenderPass: { destroy_render_pass_instant( resource_deletion.handle ); break; } case ResourceDeletionType::ResourceList: { destroy_resource_list_instant( resource_deletion.handle ); break; } case ResourceDeletionType::ResourceLayout: { destroy_resource_layout_instant( resource_deletion.handle ); break; } case ResourceDeletionType::Sampler: { destroy_sampler_instant( resource_deletion.handle ); break; } case ResourceDeletionType::ShaderState: { destroy_shader_state_instant( resource_deletion.handle ); break; } case ResourceDeletionType::Texture: { destroy_texture_instant( resource_deletion.handle ); break; } } } num_deletion_queue = 0; // Destroy render passes from the cache. FlatHashMapIterator it = render_pass_cache.iterator_begin(); while ( it.is_valid() ) { VkRenderPass vk_render_pass = render_pass_cache.get( it ); vkDestroyRenderPass( vulkan_device, vk_render_pass, vulkan_allocation_callbacks ); render_pass_cache.iterator_advance( it ); } render_pass_cache.shutdown(); // Destroy swapchain render pass, not present in the cache. RenderPassVulkan* vk_swapchain_pass = access_render_pass( swapchain_pass ); vkDestroyRenderPass( vulkan_device, vk_swapchain_pass->vk_render_pass, vulkan_allocation_callbacks ); // Destroy swapchain destroy_swapchain(); vkDestroySurfaceKHR( vulkan_instance, vulkan_window_surface, vulkan_allocation_callbacks ); vmaDestroyAllocator( vma_allocator ); //command_buffers.shutdown(); pipelines.shutdown(); buffers.shutdown(); shaders.shutdown(); textures.shutdown(); samplers.shutdown(); resource_layouts.shutdown(); resource_lists.shutdown(); render_passes.shutdown(); #ifdef VULKAN_DEBUG_REPORT // Remove the debug report callback //auto vkDestroyDebugReportCallbackEXT = (PFN_vkDestroyDebugReportCallbackEXT)vkGetInstanceProcAddr( vulkan_instance, "vkDestroyDebugReportCallbackEXT" ); //vkDestroyDebugReportCallbackEXT( vulkan_instance, vulkan_debug_callback, vulkan_allocation_callbacks ); auto vkDestroyDebugUtilsMessengerEXT = ( PFN_vkDestroyDebugUtilsMessengerEXT )vkGetInstanceProcAddr( vulkan_instance, "vkDestroyDebugUtilsMessengerEXT" ); vkDestroyDebugUtilsMessengerEXT( vulkan_instance, vulkan_debug_utils_messenger, vulkan_allocation_callbacks ); #endif // IMGUI_VULKAN_DEBUG_REPORT vkDestroyDescriptorPool( vulkan_device, vulkan_descriptor_pool, vulkan_allocation_callbacks ); vkDestroyQueryPool( vulkan_device, vulkan_timestamp_query_pool, vulkan_allocation_callbacks ); vkDestroyDevice( vulkan_device, vulkan_allocation_callbacks ); vkDestroyInstance( vulkan_instance, vulkan_allocation_callbacks ); } // GpuDeviceVulkan //////////////////////////////////////////////////////// static void transition_image_layout( VkCommandBuffer command_buffer, VkImage image, VkFormat format, VkImageLayout oldLayout, VkImageLayout newLayout, bool is_depth ) { VkImageMemoryBarrier barrier = {}; barrier.sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; barrier.oldLayout = oldLayout; barrier.newLayout = newLayout; barrier.srcQueueFamilyIndex = VK_QUEUE_FAMILY_IGNORED; barrier.dstQueueFamilyIndex = VK_QUEUE_FAMILY_IGNORED; barrier.image = image; barrier.subresourceRange.aspectMask = is_depth ? VK_IMAGE_ASPECT_DEPTH_BIT : VK_IMAGE_ASPECT_COLOR_BIT; barrier.subresourceRange.baseMipLevel = 0; barrier.subresourceRange.levelCount = 1; barrier.subresourceRange.baseArrayLayer = 0; barrier.subresourceRange.layerCount = 1; VkPipelineStageFlags sourceStage = VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT; VkPipelineStageFlags destinationStage = VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT; if ( oldLayout == VK_IMAGE_LAYOUT_UNDEFINED && newLayout == VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL ) { barrier.srcAccessMask = 0; barrier.dstAccessMask = VK_ACCESS_TRANSFER_WRITE_BIT; sourceStage = VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT; destinationStage = VK_PIPELINE_STAGE_TRANSFER_BIT; } else if ( oldLayout == VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL && newLayout == VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL ) { barrier.srcAccessMask = VK_ACCESS_TRANSFER_WRITE_BIT; barrier.dstAccessMask = VK_ACCESS_SHADER_READ_BIT; sourceStage = VK_PIPELINE_STAGE_TRANSFER_BIT; destinationStage = VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT; } else { //throw std::invalid_argument( "unsupported layout transition!" ); } vkCmdPipelineBarrier( command_buffer, sourceStage, destinationStage, 0, 0, nullptr, 0, nullptr, 1, &barrier ); } // Resource Creation //////////////////////////////////////////////////////////// static void vulkan_create_texture( GpuDeviceVulkan& gpu, const TextureCreation& creation, TextureHandle handle, TextureVulkan* texture ) { texture->width = creation.width; texture->height = creation.height; texture->depth = creation.depth; texture->mipmaps = creation.mipmaps; texture->format = creation.format; texture->type = creation.type; texture->render_target = creation.flags & TextureCreationFlags::RenderTarget_mask; texture->name = creation.name; texture->vk_format = to_vk_format( creation.format ); texture->sampler = nullptr; texture->flags = creation.flags; texture->handle = handle; //// Create the image VkImageCreateInfo image_info = { VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO }; image_info.format = texture->vk_format; image_info.flags = 0; image_info.imageType = to_vk_image_type( creation.type ); image_info.extent.width = creation.width; image_info.extent.height = creation.height; image_info.extent.depth = creation.depth; image_info.mipLevels = creation.mipmaps; image_info.arrayLayers = 1; image_info.samples = VK_SAMPLE_COUNT_1_BIT; image_info.tiling = VK_IMAGE_TILING_OPTIMAL; if ( TextureFormat::has_depth_or_stencil( creation.format ) ) { image_info.usage = VK_IMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT; image_info.usage |= ( texture->render_target ) ? VK_IMAGE_USAGE_SAMPLED_BIT : 0; image_info.usage |= ( creation.flags & TextureCreationFlags::ComputeOutput_mask ) ? VK_IMAGE_USAGE_STORAGE_BIT : 0; } else { image_info.usage = VK_IMAGE_USAGE_SAMPLED_BIT | VK_IMAGE_USAGE_TRANSFER_DST_BIT; // TODO image_info.usage |= ( texture->render_target ) ? VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT : 0; image_info.usage |= ( creation.flags & TextureCreationFlags::ComputeOutput_mask ) ? VK_IMAGE_USAGE_STORAGE_BIT : 0; } image_info.sharingMode = VK_SHARING_MODE_EXCLUSIVE; image_info.initialLayout = VK_IMAGE_LAYOUT_UNDEFINED; VmaAllocationCreateInfo memory_info{}; memory_info.usage = VMA_MEMORY_USAGE_GPU_ONLY; check( vmaCreateImage( gpu.vma_allocator, &image_info, &memory_info, &texture->vk_image, &texture->vma_allocation, nullptr ) ); gpu.set_resource_name( VK_OBJECT_TYPE_IMAGE, ( uint64_t )texture->vk_image, creation.name ); //// Create the image view VkImageViewCreateInfo info = { VK_STRUCTURE_TYPE_IMAGE_VIEW_CREATE_INFO }; info.image = texture->vk_image; info.viewType = to_vk_image_view_type( creation.type ); info.format = image_info.format; if ( TextureFormat::has_depth_or_stencil( creation.format ) ) { info.subresourceRange.aspectMask = TextureFormat::has_depth( creation.format ) ? VK_IMAGE_ASPECT_DEPTH_BIT : 0; // TODO:gs //info.subresourceRange.aspectMask |= TextureFormat::has_stencil( creation.format ) ? VK_IMAGE_ASPECT_STENCIL_BIT : 0; } else { info.subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; } info.subresourceRange.levelCount = 1; info.subresourceRange.layerCount = 1; check( vkCreateImageView( gpu.vulkan_device, &info, gpu.vulkan_allocation_callbacks, &texture->vk_image_view ) ); gpu.set_resource_name( VK_OBJECT_TYPE_IMAGE_VIEW, ( uint64_t )texture->vk_image_view, creation.name ); texture->vk_image_layout = VK_IMAGE_LAYOUT_UNDEFINED; } TextureHandle GpuDeviceVulkan::create_texture( const TextureCreation& creation ) { uint32_t resource_index = textures.obtain_resource(); TextureHandle handle = { resource_index }; if ( resource_index == k_invalid_index ) { return handle; } TextureVulkan* texture = access_texture( handle ); vulkan_create_texture( *this, creation, handle, texture ); //// Copy buffer_data if present if ( creation.initial_data ) { // Create stating buffer VkBufferCreateInfo buffer_info{ VK_STRUCTURE_TYPE_BUFFER_CREATE_INFO }; buffer_info.usage = VK_BUFFER_USAGE_TRANSFER_SRC_BIT; uint32_t image_size = creation.width * creation.height * 4; buffer_info.size = image_size; VmaAllocationCreateInfo memory_info{}; memory_info.flags = VMA_ALLOCATION_CREATE_STRATEGY_BEST_FIT_BIT; memory_info.usage = VMA_MEMORY_USAGE_CPU_TO_GPU; VmaAllocationInfo allocation_info{}; VkBuffer staging_buffer; VmaAllocation staging_allocation; check( vmaCreateBuffer( vma_allocator, &buffer_info, &memory_info, &staging_buffer, &staging_allocation, &allocation_info ) ); // Copy buffer_data void* destination_data; vmaMapMemory( vma_allocator, staging_allocation, &destination_data ); memcpy( destination_data, creation.initial_data, static_cast< size_t >( image_size ) ); vmaUnmapMemory( vma_allocator, staging_allocation ); // Execute command buffer VkCommandBufferBeginInfo beginInfo = { VK_STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFO }; beginInfo.flags = VK_COMMAND_BUFFER_USAGE_ONE_TIME_SUBMIT_BIT; CommandBuffer* command_buffer = get_instant_command_buffer(); vkBeginCommandBuffer( command_buffer->vk_command_buffer, &beginInfo ); VkBufferImageCopy region = {}; region.bufferOffset = 0; region.bufferRowLength = 0; region.bufferImageHeight = 0; region.imageSubresource.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; region.imageSubresource.mipLevel = 0; region.imageSubresource.baseArrayLayer = 0; region.imageSubresource.layerCount = 1; region.imageOffset = { 0, 0, 0 }; region.imageExtent = { creation.width, creation.height, creation.depth }; // Transition transition_image_layout( command_buffer->vk_command_buffer, texture->vk_image, texture->vk_format, VK_IMAGE_LAYOUT_UNDEFINED, VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL, false ); // Copy vkCmdCopyBufferToImage( command_buffer->vk_command_buffer, staging_buffer, texture->vk_image, VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL, 1, &region ); // Transition transition_image_layout( command_buffer->vk_command_buffer, texture->vk_image, texture->vk_format, VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL, VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL, false ); vkEndCommandBuffer( command_buffer->vk_command_buffer ); // Submit command buffer VkSubmitInfo submitInfo = { VK_STRUCTURE_TYPE_SUBMIT_INFO }; submitInfo.commandBufferCount = 1; submitInfo.pCommandBuffers = &command_buffer->vk_command_buffer; vkQueueSubmit( vulkan_queue, 1, &submitInfo, VK_NULL_HANDLE ); vkQueueWaitIdle( vulkan_queue ); vmaDestroyBuffer( vma_allocator, staging_buffer, staging_allocation ); // TODO: free command buffer vkResetCommandBuffer( command_buffer->vk_command_buffer, VK_COMMAND_BUFFER_RESET_RELEASE_RESOURCES_BIT ); texture->vk_image_layout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; } return handle; } static const char* s_shader_compiler_stage[ ShaderStage::Enum::Count ] = { "vert", "frag", "geom", "comp", "tesc", "tese" }; ShaderStateHandle GpuDeviceVulkan::create_shader_state( const ShaderStateCreation& creation ) { ShaderStateHandle handle = { k_invalid_index }; if ( creation.stages_count == 0 || creation.stages == nullptr ) { hprint( "Shader %s does not contain shader stages.\n", creation.name ); return handle; } handle.index = shaders.obtain_resource(); if ( handle.index == k_invalid_index ) { return handle; } // For each shader stage, compile them individually. uint32_t compiled_shaders = 0; ShaderStateVulkan* shader_state = access_shader_state( handle ); shader_state->graphics_pipeline = true; shader_state->active_shaders = 0; for ( compiled_shaders = 0; compiled_shaders < creation.stages_count; ++compiled_shaders ) { const ShaderStateCreation::Stage& stage = creation.stages[ compiled_shaders ]; // Gives priority to compute: if any is present (and it should not be) then it is not a graphics pipeline. if ( stage.type == ShaderStage::Compute ) { shader_state->graphics_pipeline = false; } VkShaderModuleCreateInfo createInfo = { VK_STRUCTURE_TYPE_SHADER_MODULE_CREATE_INFO }; bool compiled = false; if ( creation.spv_input ) { createInfo.codeSize = stage.code_size; createInfo.pCode = reinterpret_cast< const uint32_t* >( stage.code ); } else { // Compile from glsl to SpirV. // TODO: detect if input is HLSL. const char* temp_filename = "temp.shader"; // gstodo // Write current shader to file. FILE* temp_shader_file = fopen( temp_filename, "w" ); fwrite( stage.code, stage.code_size, 1, temp_shader_file ); fclose( temp_shader_file ); // Compile to SPV char* glsl_compiler_path = string_buffer.append_use_f( "%sglslangValidator.exe", vulkan_binaries_path ); char* final_shader_filename = string_buffer.append_use( "shader_final.spv" ); char* arguments = string_buffer.append_use_f( "glslangValidator.exe %s -V -o %s -S %s", temp_filename, final_shader_filename, s_shader_compiler_stage[ stage.type ] ); process_execute( ".", glsl_compiler_path, arguments, "" ); // Read back SPV file. createInfo.pCode = reinterpret_cast< const uint32_t* >( file_read_binary( final_shader_filename, allocator, &createInfo.codeSize ) ); // Temporary files cleanup file_delete( temp_filename ); file_delete( final_shader_filename ); compiled = true; } // Compile shader module VkPipelineShaderStageCreateInfo& shader_stage_info = shader_state->shader_stage_info[ compiled_shaders ]; memset( &shader_stage_info, 0, sizeof( VkPipelineShaderStageCreateInfo ) ); shader_stage_info.sType = VK_STRUCTURE_TYPE_PIPELINE_SHADER_STAGE_CREATE_INFO; shader_stage_info.pName = "main"; shader_stage_info.stage = to_vk_shader_stage( stage.type ); if ( vkCreateShaderModule( vulkan_device, &createInfo, nullptr, &shader_state->shader_stage_info[ compiled_shaders ].module ) != VK_SUCCESS ) { break; } if ( compiled ) { hfree( ( void* )createInfo.pCode, allocator ); } set_resource_name( VK_OBJECT_TYPE_SHADER_MODULE, ( uint64_t )shader_state->shader_stage_info[ compiled_shaders ].module, creation.name ); } bool creation_failed = compiled_shaders != creation.stages_count; if ( !creation_failed ) { shader_state->active_shaders = compiled_shaders; shader_state->name = creation.name; } if ( creation_failed ) { destroy_shader_state( handle ); handle.index = k_invalid_index; // Dump shader code hprint( "Error in creation of shader %s. Dumping all shader informations.\n", creation.name ); for ( compiled_shaders = 0; compiled_shaders < creation.stages_count; ++compiled_shaders ) { const ShaderStateCreation::Stage& stage = creation.stages[ compiled_shaders ]; hprint( "%s:\n%s\n", ShaderStage::ToString( stage.type ), stage.code ); } } return handle; } PipelineHandle GpuDeviceVulkan::create_pipeline( const PipelineCreation& creation ) { PipelineHandle handle = { pipelines.obtain_resource() }; if ( handle.index == k_invalid_index ) { return handle; } ShaderStateHandle shader_state = create_shader_state( creation.shaders ); if ( shader_state.index == k_invalid_index ) { // Shader did not compile. pipelines.release_resource( handle.index ); handle.index = k_invalid_index; return handle; } // Now that shaders have compiled we can create the pipeline. PipelineVulkan* pipeline = access_pipeline( handle ); ShaderStateVulkan* shader_state_data = access_shader_state( shader_state ); pipeline->shader_state = shader_state; VkDescriptorSetLayout vk_layouts[ k_max_resource_layouts ]; // Create VkPipelineLayout for ( uint32_t l = 0; l < creation.num_active_layouts; ++l ) { pipeline->resource_layout[ l ] = access_resource_layout( creation.resource_layout[ l ] ); pipeline->resource_layout_handle[ l ] = creation.resource_layout[ l ]; vk_layouts[ l ] = pipeline->resource_layout[ l ]->vk_descriptor_set_layout; } VkPipelineLayoutCreateInfo pipeline_layout_info = { VK_STRUCTURE_TYPE_PIPELINE_LAYOUT_CREATE_INFO }; pipeline_layout_info.pSetLayouts = vk_layouts; pipeline_layout_info.setLayoutCount = creation.num_active_layouts; VkPipelineLayout pipeline_layout; check( vkCreatePipelineLayout( vulkan_device, &pipeline_layout_info, vulkan_allocation_callbacks, &pipeline_layout ) ); // Cache pipeline layout pipeline->vk_pipeline_layout = pipeline_layout; pipeline->num_active_layouts = creation.num_active_layouts; // Create full pipeline if ( shader_state_data->graphics_pipeline ) { VkGraphicsPipelineCreateInfo pipeline_info = { VK_STRUCTURE_TYPE_GRAPHICS_PIPELINE_CREATE_INFO }; //// Shader stage pipeline_info.pStages = shader_state_data->shader_stage_info; pipeline_info.stageCount = shader_state_data->active_shaders; //// PipelineLayout pipeline_info.layout = pipeline_layout; //// Vertex input VkPipelineVertexInputStateCreateInfo vertex_input_info = { VK_STRUCTURE_TYPE_PIPELINE_VERTEX_INPUT_STATE_CREATE_INFO }; // Vertex attributes. VkVertexInputAttributeDescription vertex_attributes[ 8 ]; if ( creation.vertex_input.num_vertex_attributes ) { for ( uint32_t i = 0; i < creation.vertex_input.num_vertex_attributes; ++i ) { const VertexAttribute& vertex_attribute = creation.vertex_input.vertex_attributes[ i ]; vertex_attributes[ i ] = { vertex_attribute.location, vertex_attribute.binding, to_vk_vertex_format( vertex_attribute.format ), vertex_attribute.offset }; } vertex_input_info.vertexAttributeDescriptionCount = creation.vertex_input.num_vertex_attributes; vertex_input_info.pVertexAttributeDescriptions = vertex_attributes; } else { vertex_input_info.vertexAttributeDescriptionCount = 0; vertex_input_info.pVertexAttributeDescriptions = nullptr; } // Vertex bindings VkVertexInputBindingDescription vertex_bindings[ 8 ]; if ( creation.vertex_input.num_vertex_streams ) { vertex_input_info.vertexBindingDescriptionCount = creation.vertex_input.num_vertex_streams; for ( uint32_t i = 0; i < creation.vertex_input.num_vertex_streams; ++i ) { const VertexStream& vertex_stream = creation.vertex_input.vertex_streams[ i ]; VkVertexInputRate vertex_rate = vertex_stream.input_rate == VertexInputRate::PerVertex ? VkVertexInputRate::VK_VERTEX_INPUT_RATE_VERTEX : VkVertexInputRate::VK_VERTEX_INPUT_RATE_INSTANCE; vertex_bindings[ i ] = { vertex_stream.binding, vertex_stream.stride, vertex_rate }; } vertex_input_info.pVertexBindingDescriptions = vertex_bindings; } else { vertex_input_info.vertexBindingDescriptionCount = 0; vertex_input_info.pVertexBindingDescriptions = nullptr; } pipeline_info.pVertexInputState = &vertex_input_info; //// Input Assembly VkPipelineInputAssemblyStateCreateInfo input_assembly{ VK_STRUCTURE_TYPE_PIPELINE_INPUT_ASSEMBLY_STATE_CREATE_INFO }; input_assembly.topology = VK_PRIMITIVE_TOPOLOGY_TRIANGLE_LIST; input_assembly.primitiveRestartEnable = VK_FALSE; pipeline_info.pInputAssemblyState = &input_assembly; //// Color Blending VkPipelineColorBlendAttachmentState color_blend_attachment[ 8 ]; if ( creation.blend_state.active_states ) { for ( size_t i = 0; i < creation.blend_state.active_states; i++ ) { const BlendState& blend_state = creation.blend_state.blend_states[ i ]; color_blend_attachment[ i ].colorWriteMask = VK_COLOR_COMPONENT_R_BIT | VK_COLOR_COMPONENT_G_BIT | VK_COLOR_COMPONENT_B_BIT | VK_COLOR_COMPONENT_A_BIT; color_blend_attachment[ i ].blendEnable = blend_state.blend_enabled ? VK_TRUE : VK_FALSE; color_blend_attachment[ i ].srcColorBlendFactor = to_vk_blend_factor( blend_state.source_color ); color_blend_attachment[ i ].dstColorBlendFactor = to_vk_blend_factor( blend_state.destination_color ); color_blend_attachment[ i ].colorBlendOp = to_vk_blend_operation( blend_state.color_operation ); if ( blend_state.separate_blend ) { color_blend_attachment[ i ].srcAlphaBlendFactor = to_vk_blend_factor( blend_state.source_alpha ); color_blend_attachment[ i ].dstAlphaBlendFactor = to_vk_blend_factor( blend_state.destination_alpha ); color_blend_attachment[ i ].alphaBlendOp = to_vk_blend_operation( blend_state.alpha_operation ); } else { color_blend_attachment[ i ].srcAlphaBlendFactor = to_vk_blend_factor( blend_state.source_color ); color_blend_attachment[ i ].dstAlphaBlendFactor = to_vk_blend_factor( blend_state.destination_color ); color_blend_attachment[ i ].alphaBlendOp = to_vk_blend_operation( blend_state.color_operation ); } } } else { // Default non blended state color_blend_attachment[ 0 ] = {}; color_blend_attachment[ 0 ].blendEnable = VK_FALSE; color_blend_attachment[ 0 ].colorWriteMask = VK_COLOR_COMPONENT_R_BIT | VK_COLOR_COMPONENT_G_BIT | VK_COLOR_COMPONENT_B_BIT | VK_COLOR_COMPONENT_A_BIT; } VkPipelineColorBlendStateCreateInfo color_blending{ VK_STRUCTURE_TYPE_PIPELINE_COLOR_BLEND_STATE_CREATE_INFO }; color_blending.logicOpEnable = VK_FALSE; color_blending.logicOp = VK_LOGIC_OP_COPY; // Optional color_blending.attachmentCount = creation.blend_state.active_states ? creation.blend_state.active_states : 1; // Always have 1 blend defined. color_blending.pAttachments = color_blend_attachment; color_blending.blendConstants[ 0 ] = 0.0f; // Optional color_blending.blendConstants[ 1 ] = 0.0f; // Optional color_blending.blendConstants[ 2 ] = 0.0f; // Optional color_blending.blendConstants[ 3 ] = 0.0f; // Optional pipeline_info.pColorBlendState = &color_blending; //// Depth Stencil VkPipelineDepthStencilStateCreateInfo depth_stencil{ VK_STRUCTURE_TYPE_PIPELINE_DEPTH_STENCIL_STATE_CREATE_INFO }; depth_stencil.depthWriteEnable = creation.depth_stencil.depth_write_enable ? VK_TRUE : VK_FALSE; depth_stencil.stencilTestEnable = creation.depth_stencil.stencil_enable ? VK_TRUE : VK_FALSE; depth_stencil.depthTestEnable = creation.depth_stencil.depth_enable ? VK_TRUE : VK_FALSE; depth_stencil.depthCompareOp = to_vk_compare_operation( creation.depth_stencil.depth_comparison ); if ( creation.depth_stencil.stencil_enable ) { // TODO: add stencil hy_assert( false ); } pipeline_info.pDepthStencilState = &depth_stencil; //// Multisample VkPipelineMultisampleStateCreateInfo multisampling = {}; multisampling.sType = VK_STRUCTURE_TYPE_PIPELINE_MULTISAMPLE_STATE_CREATE_INFO; multisampling.sampleShadingEnable = VK_FALSE; multisampling.rasterizationSamples = VK_SAMPLE_COUNT_1_BIT; multisampling.minSampleShading = 1.0f; // Optional multisampling.pSampleMask = nullptr; // Optional multisampling.alphaToCoverageEnable = VK_FALSE; // Optional multisampling.alphaToOneEnable = VK_FALSE; // Optional pipeline_info.pMultisampleState = &multisampling; //// Rasterizer VkPipelineRasterizationStateCreateInfo rasterizer{ VK_STRUCTURE_TYPE_PIPELINE_RASTERIZATION_STATE_CREATE_INFO }; rasterizer.depthClampEnable = VK_FALSE; rasterizer.rasterizerDiscardEnable = VK_FALSE; rasterizer.polygonMode = VK_POLYGON_MODE_FILL; rasterizer.lineWidth = 1.0f; rasterizer.cullMode = to_vk_cull_mode( creation.rasterization.cull_mode ); rasterizer.frontFace = to_vk_front_face( creation.rasterization.front ); rasterizer.depthBiasEnable = VK_FALSE; rasterizer.depthBiasConstantFactor = 0.0f; // Optional rasterizer.depthBiasClamp = 0.0f; // Optional rasterizer.depthBiasSlopeFactor = 0.0f; // Optional pipeline_info.pRasterizationState = &rasterizer; //// Tessellation pipeline_info.pTessellationState; //// Viewport state VkViewport viewport = {}; viewport.x = 0.0f; viewport.y = 0.0f; viewport.width = ( float )swapchain_width; viewport.height = ( float )swapchain_height; viewport.minDepth = 0.0f; viewport.maxDepth = 1.0f; VkRect2D scissor = {}; scissor.offset = { 0, 0 }; scissor.extent = { swapchain_width, swapchain_height }; VkPipelineViewportStateCreateInfo viewport_state{ VK_STRUCTURE_TYPE_PIPELINE_VIEWPORT_STATE_CREATE_INFO }; viewport_state.viewportCount = 1; viewport_state.pViewports = &viewport; viewport_state.scissorCount = 1; viewport_state.pScissors = &scissor; pipeline_info.pViewportState = &viewport_state; //// Render Pass pipeline_info.renderPass = get_vulkan_render_pass( creation.render_pass, creation.name ); //// Dynamic states VkDynamicState dynamic_states[] = { VK_DYNAMIC_STATE_VIEWPORT, VK_DYNAMIC_STATE_SCISSOR }; VkPipelineDynamicStateCreateInfo dynamic_state{ VK_STRUCTURE_TYPE_PIPELINE_DYNAMIC_STATE_CREATE_INFO }; dynamic_state.dynamicStateCount = ArraySize( dynamic_states ); dynamic_state.pDynamicStates = dynamic_states; pipeline_info.pDynamicState = &dynamic_state; vkCreateGraphicsPipelines( vulkan_device, VK_NULL_HANDLE, 1, &pipeline_info, vulkan_allocation_callbacks, &pipeline->vk_pipeline ); pipeline->vk_bind_point = VkPipelineBindPoint::VK_PIPELINE_BIND_POINT_GRAPHICS; } else { VkComputePipelineCreateInfo pipeline_info{ VK_STRUCTURE_TYPE_COMPUTE_PIPELINE_CREATE_INFO }; pipeline_info.stage = shader_state_data->shader_stage_info[ 0 ]; pipeline_info.layout = pipeline_layout; vkCreateComputePipelines( vulkan_device, VK_NULL_HANDLE, 1, &pipeline_info, vulkan_allocation_callbacks, &pipeline->vk_pipeline ); pipeline->vk_bind_point = VkPipelineBindPoint::VK_PIPELINE_BIND_POINT_COMPUTE; } return handle; } BufferHandle GpuDeviceVulkan::create_buffer( const BufferCreation& creation ) { BufferHandle handle = { buffers.obtain_resource() }; if ( handle.index == k_invalid_index ) { return handle; } BufferVulkan* buffer = access_buffer( handle ); buffer->name = creation.name; buffer->size = creation.size; buffer->type = creation.type; buffer->usage = creation.usage; buffer->handle = handle; buffer->global_offset = 0; buffer->parent_buffer = creation.parent_buffer; // Cache and calculate if dynamic buffer can be used. static const u32 k_dynamic_buffer_mask = BufferType::Vertex_mask | BufferType::Index_mask | BufferType::Constant_mask; const bool use_global_buffer = ( creation.type & k_dynamic_buffer_mask ) != 0; if ( creation.usage == ResourceUsageType::Dynamic && use_global_buffer ) { buffer->parent_buffer = dynamic_buffer; return handle; } if ( creation.parent_buffer.index != k_invalid_buffer.index ) { return handle; } VkBufferUsageFlags buffer_usage = VK_BUFFER_USAGE_TRANSFER_DST_BIT; if ( ( creation.type & BufferType::Constant_mask ) == BufferType::Constant_mask ) { buffer_usage |= VK_BUFFER_USAGE_UNIFORM_BUFFER_BIT; } if ( ( creation.type & BufferType::Structured_mask ) == BufferType::Structured_mask ) { buffer_usage |= VK_BUFFER_USAGE_STORAGE_BUFFER_BIT; } if ( ( creation.type & BufferType::Indirect_mask ) == BufferType::Indirect_mask ) { buffer_usage |= VK_BUFFER_USAGE_INDIRECT_BUFFER_BIT; } if ( ( creation.type & BufferType::Vertex_mask ) == BufferType::Vertex_mask ) { buffer_usage |= VK_BUFFER_USAGE_VERTEX_BUFFER_BIT; } if ( ( creation.type & BufferType::Index_mask ) == BufferType::Index_mask ) { buffer_usage |= VK_BUFFER_USAGE_INDEX_BUFFER_BIT; } VkBufferCreateInfo buffer_info{ VK_STRUCTURE_TYPE_BUFFER_CREATE_INFO }; buffer_info.usage = buffer_usage; buffer_info.size = creation.size > 0 ? creation.size : 1; // 0 sized creations are not permitted. VmaAllocationCreateInfo memory_info{}; memory_info.flags = VMA_ALLOCATION_CREATE_STRATEGY_BEST_FIT_BIT; memory_info.usage = VMA_MEMORY_USAGE_CPU_TO_GPU; VmaAllocationInfo allocation_info{}; check( vmaCreateBuffer( vma_allocator, &buffer_info, &memory_info, &buffer->vk_buffer, &buffer->vma_allocation, &allocation_info ) ); set_resource_name( VK_OBJECT_TYPE_BUFFER, ( uint64_t )buffer->vk_buffer, creation.name ); buffer->vk_device_memory = allocation_info.deviceMemory; if ( creation.initial_data ) { void* data; vmaMapMemory( vma_allocator, buffer->vma_allocation, &data ); memcpy( data, creation.initial_data, ( size_t )creation.size ); vmaUnmapMemory( vma_allocator, buffer->vma_allocation ); } // TODO //if ( persistent ) //{ // mapped_data = static_cast<uint8_t *>(allocation_info.pMappedData); //} return handle; } SamplerHandle GpuDeviceVulkan::create_sampler( const SamplerCreation& creation ) { SamplerHandle handle = { samplers.obtain_resource() }; if ( handle.index == k_invalid_index ) { return handle; } SamplerVulkan* sampler = access_sampler( handle ); sampler->address_mode_u = creation.address_mode_u; sampler->address_mode_v = creation.address_mode_v; sampler->address_mode_w = creation.address_mode_w; sampler->min_filter = creation.min_filter; sampler->mag_filter = creation.mag_filter; sampler->mip_filter = creation.mip_filter; sampler->name = creation.name; VkSamplerCreateInfo create_info{ VK_STRUCTURE_TYPE_SAMPLER_CREATE_INFO }; create_info.addressModeU = to_vk_address_mode( creation.address_mode_u ); create_info.addressModeV = to_vk_address_mode( creation.address_mode_v ); create_info.addressModeW = to_vk_address_mode( creation.address_mode_w ); create_info.minFilter = to_vk_filter( creation.min_filter ); create_info.magFilter = to_vk_filter( creation.mag_filter ); create_info.mipmapMode = to_vk_mipmap( creation.mip_filter ); create_info.anisotropyEnable = 0; create_info.compareEnable = 0; create_info.unnormalizedCoordinates = 0; create_info.borderColor = VkBorderColor::VK_BORDER_COLOR_INT_OPAQUE_WHITE; // TODO: /*float mipLodBias; float maxAnisotropy; VkCompareOp compareOp; float minLod; float maxLod; VkBorderColor borderColor; VkBool32 unnormalizedCoordinates;*/ vkCreateSampler( vulkan_device, &create_info, vulkan_allocation_callbacks, &sampler->vk_sampler ); set_resource_name( VK_OBJECT_TYPE_SAMPLER, ( uint64_t )sampler->vk_sampler, creation.name ); return handle; } ResourceLayoutHandle GpuDeviceVulkan::create_resource_layout( const ResourceLayoutCreation& creation ) { ResourceLayoutHandle handle = { resource_layouts.obtain_resource() }; if ( handle.index == k_invalid_index ) { return handle; } ResourceLayoutVulkan* resource_layout = access_resource_layout( handle ); // TODO: add support for multiple sets. // Create flattened binding list resource_layout->num_bindings = creation.num_bindings; resource_layout->bindings = ( ResourceBindingVulkan* )halloca( sizeof( ResourceBindingVulkan ) * creation.num_bindings, allocator ); resource_layout->vk_binding = ( VkDescriptorSetLayoutBinding* )halloca( sizeof( VkDescriptorSetLayoutBinding ) * creation.num_bindings, allocator ); resource_layout->handle = handle; for ( uint32_t r = 0; r < creation.num_bindings; ++r ) { ResourceBindingVulkan& binding = resource_layout->bindings[ r ]; const ResourceLayoutCreation::Binding& input_binding = creation.bindings[ r ]; binding.start = input_binding.start == u16_max ? ( u16 )r : input_binding.start; binding.count = 1; binding.type = ( u16 )input_binding.type; binding.name = input_binding.name; VkDescriptorSetLayoutBinding& vk_binding = resource_layout->vk_binding[ r ]; vk_binding.binding = binding.start; vk_binding.descriptorType = to_vk_descriptor_type( input_binding.type ); #if defined (HYDRA_BINDLESS) vk_binding.descriptorCount = 12; #else vk_binding.descriptorCount = 1; // TODO: default to dynamic constants vk_binding.descriptorType = vk_binding.descriptorType == VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER ? VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC : vk_binding.descriptorType; #endif // HYDRA_BINDLESS // TODO: vk_binding.stageFlags = VK_SHADER_STAGE_ALL; vk_binding.pImmutableSamplers = nullptr; } // Create the descriptor set layout VkDescriptorSetLayoutCreateInfo layout_info = { VK_STRUCTURE_TYPE_DESCRIPTOR_SET_LAYOUT_CREATE_INFO }; layout_info.bindingCount = creation.num_bindings; layout_info.pBindings = resource_layout->vk_binding; #if defined (HYDRA_BINDLESS) VkDescriptorBindingFlags binding_flag[] = { VK_DESCRIPTOR_BINDING_PARTIALLY_BOUND_BIT_EXT, VK_DESCRIPTOR_BINDING_PARTIALLY_BOUND_BIT_EXT, VK_DESCRIPTOR_BINDING_PARTIALLY_BOUND_BIT_EXT, VK_DESCRIPTOR_BINDING_PARTIALLY_BOUND_BIT_EXT }; VkDescriptorSetLayoutBindingFlagsCreateInfoEXT extended_info{ VK_STRUCTURE_TYPE_DESCRIPTOR_SET_LAYOUT_BINDING_FLAGS_CREATE_INFO_EXT, nullptr }; extended_info.bindingCount = creation.num_bindings; extended_info.pBindingFlags = binding_flag; layout_info.pNext = &extended_info; #endif // HYDRA_BINDLESS vkCreateDescriptorSetLayout( vulkan_device, &layout_info, vulkan_allocation_callbacks, &resource_layout->vk_descriptor_set_layout ); return handle; } // // static void vulkan_fill_write_descriptor_sets( GpuDeviceVulkan& gpu, const ResourceLayoutVulkan* resource_layout, VkDescriptorSet vk_descriptor_set, VkWriteDescriptorSet* descriptor_write, VkDescriptorBufferInfo* buffer_info, VkDescriptorImageInfo* image_info, VkSampler vk_default_sampler, u32 num_resources, const ResourceHandle* resources, const SamplerHandle* samplers, const u16* bindings ) { for ( u32 r = 0; r < num_resources; r++ ) { u32 i = r; const ResourceBindingVulkan& binding = resource_layout->bindings[ i ]; descriptor_write[ i ] = { VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET }; descriptor_write[ i ].dstSet = vk_descriptor_set; // Use binding array to get final binding point. descriptor_write[ i ].dstBinding = bindings[ r ]; descriptor_write[ i ].dstArrayElement = 0; switch ( binding.type ) { case ResourceType::Texture: { descriptor_write[ i ].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; TextureHandle texture_handle = { resources[ r ] }; TextureVulkan* texture_data = gpu.access_texture( texture_handle ); // Find proper sampler. // TODO: improve. Remove the single texture interface ? image_info[ i ].sampler = vk_default_sampler; if ( texture_data->sampler ) { image_info[ i ].sampler = texture_data->sampler->vk_sampler; } // TODO: else ? if ( samplers[ r ].index != k_invalid_index ) { SamplerVulkan* sampler = gpu.access_sampler( { samplers[ r ] } ); image_info[ i ].sampler = sampler->vk_sampler; } image_info[ i ].imageLayout = TextureFormat::has_depth_or_stencil( texture_data->format ) ? VK_IMAGE_LAYOUT_DEPTH_STENCIL_READ_ONLY_OPTIMAL : VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; image_info[ i ].imageView = texture_data->vk_image_view; descriptor_write[ i ].pImageInfo = &image_info[ i ]; #if defined (HYDRA_BINDLESS) // gstodo: bindless descriptor_write[ i ].dstArrayElement = texture_handle.index; #endif // HYDRA_BINDLESS break; } case ResourceType::Image: { descriptor_write[ i ].descriptorType = VK_DESCRIPTOR_TYPE_STORAGE_IMAGE; TextureHandle texture_handle = { resources[ r ] }; TextureVulkan* texture_data = gpu.access_texture( texture_handle ); image_info[ i ].sampler = nullptr; image_info[ i ].imageLayout = VK_IMAGE_LAYOUT_GENERAL; image_info[ i ].imageView = texture_data->vk_image_view; descriptor_write[ i ].pImageInfo = &image_info[ i ]; break; } case ResourceType::ImageRW: { descriptor_write[ i ].descriptorType = VK_DESCRIPTOR_TYPE_STORAGE_IMAGE; TextureHandle texture_handle = { resources[ r ] }; TextureVulkan* texture_data = gpu.access_texture( texture_handle ); image_info[ i ].sampler = nullptr; image_info[ i ].imageLayout = VK_IMAGE_LAYOUT_GENERAL; image_info[ i ].imageView = texture_data->vk_image_view; descriptor_write[ i ].pImageInfo = &image_info[ i ]; break; } case ResourceType::Constants: { BufferHandle buffer_handle = { resources[ r ] }; BufferVulkan* buffer = gpu.access_buffer( buffer_handle ); descriptor_write[ i ].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER; // gsbindless #if !defined( HYDRA_BINDLESS ) descriptor_write[ i ].descriptorType = buffer->usage == ResourceUsageType::Dynamic ? VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC : VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER; #endif // HYDRA_BINDLESS // Bind parent buffer if present, used for dynamic resources. if ( buffer->parent_buffer.index != k_invalid_index ) { BufferVulkan* parent_buffer = gpu.access_buffer( buffer->parent_buffer ); buffer_info[ i ].buffer = parent_buffer->vk_buffer; } else { buffer_info[ i ].buffer = buffer->vk_buffer; } buffer_info[ i ].offset = 0; buffer_info[ i ].range = buffer->size; descriptor_write[ i ].pBufferInfo = &buffer_info[ i ]; break; } case ResourceType::StructuredBuffer: { BufferHandle buffer_handle = { resources[ r ] }; BufferVulkan* buffer = gpu.access_buffer( buffer_handle ); descriptor_write[ i ].descriptorType = VK_DESCRIPTOR_TYPE_STORAGE_BUFFER; // gsbindless #if !defined( HYDRA_BINDLESS ) //descriptor_write[ i ].descriptorType = buffer->usage == ResourceUsageType::Dynamic ? VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC : VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER; #endif // HYDRA_BINDLESS // Bind parent buffer if present, used for dynamic resources. if ( buffer->parent_buffer.index != k_invalid_index ) { BufferVulkan* parent_buffer = gpu.access_buffer( buffer->parent_buffer ); buffer_info[ i ].buffer = parent_buffer->vk_buffer; } else { buffer_info[ i ].buffer = buffer->vk_buffer; } buffer_info[ i ].offset = 0; buffer_info[ i ].range = buffer->size; descriptor_write[ i ].pBufferInfo = &buffer_info[ i ]; break; } default: { hy_assertm( false, "Resource type %d not supported in resource list creation!\n", binding.type ); break; } } descriptor_write[ i ].descriptorCount = 1; } } ResourceListHandle GpuDeviceVulkan::create_resource_list( const ResourceListCreation& creation ) { ResourceListHandle handle = { resource_lists.obtain_resource() }; if ( handle.index == k_invalid_index ) { return handle; } ResourceListVulkan* resource_list = access_resource_list( handle ); const ResourceLayoutVulkan* resource_list_layout = access_resource_layout( creation.layout ); // Allocate descriptor set VkDescriptorSetAllocateInfo allocInfo{ VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO }; allocInfo.descriptorPool = vulkan_descriptor_pool; allocInfo.descriptorSetCount = 1; allocInfo.pSetLayouts = &resource_list_layout->vk_descriptor_set_layout; vkAllocateDescriptorSets( vulkan_device, &allocInfo, &resource_list->vk_descriptor_set ); // Cache data resource_list->resources = ( ResourceHandle* )halloca( sizeof( ResourceHandle ) * creation.num_resources, allocator ); resource_list->samplers = ( SamplerHandle* )halloca( sizeof( SamplerHandle ) * creation.num_resources, allocator ); resource_list->bindings = ( u16* )halloca( sizeof( u16 ) * creation.num_resources, allocator ); resource_list->num_resources = creation.num_resources; resource_list->layout = resource_list_layout; // Update descriptor set VkWriteDescriptorSet descriptor_write[ 8 ]; VkDescriptorBufferInfo buffer_info[ 8 ]; VkDescriptorImageInfo image_info[ 8 ]; SamplerVulkan* vk_default_sampler = access_sampler( default_sampler ); vulkan_fill_write_descriptor_sets( *this, resource_list_layout, resource_list->vk_descriptor_set, descriptor_write, buffer_info, image_info, vk_default_sampler->vk_sampler, creation.num_resources, creation.resources, creation.samplers, creation.bindings ); // Cache resources for ( u32 r = 0; r < creation.num_resources; r++ ) { resource_list->resources[ r ] = creation.resources[ r ]; resource_list->samplers[ r ] = creation.samplers[ r ]; resource_list->bindings[ r ] = creation.bindings[ r ]; } vkUpdateDescriptorSets( vulkan_device, creation.num_resources, descriptor_write, 0, nullptr ); return handle; } static void vulkan_create_swapchain_pass( GpuDeviceVulkan& gpu, const RenderPassCreation& creation, RenderPassVulkan* render_pass ) { // Color attachment VkAttachmentDescription color_attachment = {}; color_attachment.format = gpu.vulkan_surface_format.format; color_attachment.samples = VK_SAMPLE_COUNT_1_BIT; color_attachment.loadOp = VK_ATTACHMENT_LOAD_OP_CLEAR; color_attachment.storeOp = VK_ATTACHMENT_STORE_OP_STORE; color_attachment.stencilLoadOp = VK_ATTACHMENT_LOAD_OP_DONT_CARE; color_attachment.stencilStoreOp = VK_ATTACHMENT_STORE_OP_DONT_CARE; color_attachment.initialLayout = VK_IMAGE_LAYOUT_UNDEFINED; color_attachment.finalLayout = VK_IMAGE_LAYOUT_PRESENT_SRC_KHR; VkAttachmentReference color_attachment_ref = {}; color_attachment_ref.attachment = 0; color_attachment_ref.layout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; // Depth attachment VkAttachmentDescription depth_attachment{}; TextureVulkan* depth_texture_vk = gpu.access_texture( gpu.depth_texture ); depth_attachment.format = to_vk_format( depth_texture_vk->format ); depth_attachment.samples = VK_SAMPLE_COUNT_1_BIT; depth_attachment.loadOp = VK_ATTACHMENT_LOAD_OP_CLEAR; depth_attachment.storeOp = VK_ATTACHMENT_STORE_OP_DONT_CARE; depth_attachment.stencilLoadOp = VK_ATTACHMENT_LOAD_OP_DONT_CARE; depth_attachment.stencilStoreOp = VK_ATTACHMENT_STORE_OP_DONT_CARE; depth_attachment.initialLayout = VK_IMAGE_LAYOUT_UNDEFINED; depth_attachment.finalLayout = VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL; VkAttachmentReference depth_attachment_ref{}; depth_attachment_ref.attachment = 1; depth_attachment_ref.layout = VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL; VkSubpassDescription subpass{}; subpass.pipelineBindPoint = VK_PIPELINE_BIND_POINT_GRAPHICS; subpass.colorAttachmentCount = 1; subpass.pColorAttachments = &color_attachment_ref; subpass.pDepthStencilAttachment = &depth_attachment_ref; VkAttachmentDescription attachments[] = { color_attachment, depth_attachment }; VkRenderPassCreateInfo render_pass_info = { VK_STRUCTURE_TYPE_RENDER_PASS_CREATE_INFO }; render_pass_info.attachmentCount = 2; render_pass_info.pAttachments = attachments; render_pass_info.subpassCount = 1; render_pass_info.pSubpasses = &subpass; check( vkCreateRenderPass( gpu.vulkan_device, &render_pass_info, nullptr, &render_pass->vk_render_pass ) ); gpu.set_resource_name( VK_OBJECT_TYPE_RENDER_PASS, ( uint64_t )render_pass->vk_render_pass, creation.name ); // Create framebuffer into the device. VkFramebufferCreateInfo framebuffer_info{ VK_STRUCTURE_TYPE_FRAMEBUFFER_CREATE_INFO }; framebuffer_info.renderPass = render_pass->vk_render_pass; framebuffer_info.attachmentCount = 2; framebuffer_info.width = gpu.swapchain_width; framebuffer_info.height = gpu.swapchain_height; framebuffer_info.layers = 1; VkImageView framebuffer_attachments[ 2 ]; framebuffer_attachments[ 1 ] = depth_texture_vk->vk_image_view; for ( size_t i = 0; i < gpu.vulkan_swapchain_image_count; i++ ) { framebuffer_attachments[ 0 ] = gpu.vulkan_swapchain_image_views[ i ]; framebuffer_info.pAttachments = framebuffer_attachments; vkCreateFramebuffer( gpu.vulkan_device, &framebuffer_info, nullptr, &gpu.vulkan_swapchain_framebuffers[ i ] ); gpu.set_resource_name( VK_OBJECT_TYPE_FRAMEBUFFER, ( uint64_t )gpu.vulkan_swapchain_framebuffers[ i ], creation.name ); } render_pass->width = gpu.swapchain_width; render_pass->height = gpu.swapchain_height; // Manually transition the texture VkCommandBufferBeginInfo beginInfo = { VK_STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFO }; beginInfo.flags = VK_COMMAND_BUFFER_USAGE_ONE_TIME_SUBMIT_BIT; CommandBuffer* command_buffer = gpu.get_instant_command_buffer(); vkBeginCommandBuffer( command_buffer->vk_command_buffer, &beginInfo ); VkBufferImageCopy region = {}; region.bufferOffset = 0; region.bufferRowLength = 0; region.bufferImageHeight = 0; region.imageSubresource.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; region.imageSubresource.mipLevel = 0; region.imageSubresource.baseArrayLayer = 0; region.imageSubresource.layerCount = 1; region.imageOffset = { 0, 0, 0 }; region.imageExtent = { gpu.swapchain_width, gpu.swapchain_height, 1 }; // Transition for ( size_t i = 0; i < gpu.vulkan_swapchain_image_count; i++ ) { transition_image_layout( command_buffer->vk_command_buffer, gpu.vulkan_swapchain_images[ i ], gpu.vulkan_surface_format.format, VK_IMAGE_LAYOUT_UNDEFINED, VK_IMAGE_LAYOUT_PRESENT_SRC_KHR, false ); } transition_image_layout( command_buffer->vk_command_buffer, depth_texture_vk->vk_image, depth_texture_vk->vk_format, VK_IMAGE_LAYOUT_UNDEFINED, VK_IMAGE_LAYOUT_PRESENT_SRC_KHR, true ); vkEndCommandBuffer( command_buffer->vk_command_buffer ); // Submit command buffer VkSubmitInfo submitInfo = { VK_STRUCTURE_TYPE_SUBMIT_INFO }; submitInfo.commandBufferCount = 1; submitInfo.pCommandBuffers = &command_buffer->vk_command_buffer; vkQueueSubmit( gpu.vulkan_queue, 1, &submitInfo, VK_NULL_HANDLE ); vkQueueWaitIdle( gpu.vulkan_queue ); } static void vulkan_create_framebuffer( GpuDeviceVulkan& gpu, RenderPassVulkan* render_pass, const TextureHandle* output_textures, u32 num_render_targets, TextureHandle depth_stencil_texture ) { // Create framebuffer VkFramebufferCreateInfo framebuffer_info{ VK_STRUCTURE_TYPE_FRAMEBUFFER_CREATE_INFO }; framebuffer_info.renderPass = render_pass->vk_render_pass; framebuffer_info.width = render_pass->width; framebuffer_info.height = render_pass->height; framebuffer_info.layers = 1; VkImageView framebuffer_attachments[ k_max_image_outputs + 1 ]{}; u32 active_attachments = 0; for ( ; active_attachments < num_render_targets; ++active_attachments ) { TextureVulkan* texture_vk = gpu.access_texture( output_textures[ active_attachments ] ); framebuffer_attachments[ active_attachments ] = texture_vk->vk_image_view; } if ( depth_stencil_texture.index != k_invalid_index ) { TextureVulkan* depth_texture_vk = gpu.access_texture( depth_stencil_texture ); framebuffer_attachments[ active_attachments++ ] = depth_texture_vk->vk_image_view; } framebuffer_info.pAttachments = framebuffer_attachments; framebuffer_info.attachmentCount = active_attachments; vkCreateFramebuffer( gpu.vulkan_device, &framebuffer_info, nullptr, &render_pass->vk_frame_buffer ); gpu.set_resource_name( VK_OBJECT_TYPE_FRAMEBUFFER, ( uint64_t )render_pass->vk_frame_buffer, render_pass->name ); } // // static VkRenderPass vulkan_create_render_pass( GpuDeviceVulkan& gpu, const RenderPassOutput& output, cstring name ) { VkAttachmentDescription color_attachments[ 8 ] = {}; VkAttachmentReference color_attachments_ref[ 8 ] = {}; VkAttachmentLoadOp color_op, depth_op, stencil_op; VkImageLayout color_initial, depth_initial; switch ( output.color_operation ) { case RenderPassOperation::Load: color_op = VK_ATTACHMENT_LOAD_OP_LOAD; color_initial = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; break; case RenderPassOperation::Clear: color_op = VK_ATTACHMENT_LOAD_OP_CLEAR; color_initial = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; break; default: color_op = VK_ATTACHMENT_LOAD_OP_DONT_CARE; color_initial = VK_IMAGE_LAYOUT_UNDEFINED; break; } switch ( output.depth_operation ) { case RenderPassOperation::Load: depth_op = VK_ATTACHMENT_LOAD_OP_LOAD; depth_initial = VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL; break; case RenderPassOperation::Clear: depth_op = VK_ATTACHMENT_LOAD_OP_CLEAR; depth_initial = VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL; break; default: depth_op = VK_ATTACHMENT_LOAD_OP_DONT_CARE; depth_initial = VK_IMAGE_LAYOUT_UNDEFINED; break; } switch ( output.stencil_operation ) { case RenderPassOperation::Load: stencil_op = VK_ATTACHMENT_LOAD_OP_LOAD; break; case RenderPassOperation::Clear: stencil_op = VK_ATTACHMENT_LOAD_OP_CLEAR; break; default: stencil_op = VK_ATTACHMENT_LOAD_OP_DONT_CARE; break; } // Color attachments uint32_t c = 0; for ( ; c < output.num_color_formats; ++c ) { TextureFormat::Enum format = output.color_formats[ c ]; VkAttachmentDescription& color_attachment = color_attachments[ c ]; color_attachment.format = to_vk_format( format ); color_attachment.samples = VK_SAMPLE_COUNT_1_BIT; color_attachment.loadOp = color_op; color_attachment.storeOp = VK_ATTACHMENT_STORE_OP_STORE; color_attachment.stencilLoadOp = stencil_op; color_attachment.stencilStoreOp = VK_ATTACHMENT_STORE_OP_DONT_CARE; color_attachment.initialLayout = color_initial; color_attachment.finalLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; VkAttachmentReference& color_attachment_ref = color_attachments_ref[ c ]; color_attachment_ref.attachment = c; color_attachment_ref.layout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; } // Depth attachment VkAttachmentDescription depth_attachment{}; VkAttachmentReference depth_attachment_ref{}; if ( output.depth_stencil_format != TextureFormat::UNKNOWN ) { depth_attachment.format = to_vk_format( output.depth_stencil_format ); depth_attachment.samples = VK_SAMPLE_COUNT_1_BIT; depth_attachment.loadOp = depth_op; depth_attachment.storeOp = VK_ATTACHMENT_STORE_OP_STORE; depth_attachment.stencilLoadOp = stencil_op; depth_attachment.stencilStoreOp = VK_ATTACHMENT_STORE_OP_DONT_CARE; depth_attachment.initialLayout = depth_initial; depth_attachment.finalLayout = VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL; depth_attachment_ref.attachment = c; depth_attachment_ref.layout = VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL; } // Create subpass. // TODO: for now is just a simple subpass, evolve API. VkSubpassDescription subpass = {}; subpass.pipelineBindPoint = VK_PIPELINE_BIND_POINT_GRAPHICS; // Calculate active attachments for the subpass VkAttachmentDescription attachments[ k_max_image_outputs + 1 ]{}; uint32_t active_attachments = 0; for ( ; active_attachments < output.num_color_formats; ++active_attachments ) { attachments[ active_attachments ] = color_attachments[ active_attachments ]; ++active_attachments; } subpass.colorAttachmentCount = active_attachments ? active_attachments - 1 : 0; subpass.pColorAttachments = color_attachments_ref; subpass.pDepthStencilAttachment = nullptr; uint32_t depth_stencil_count = 0; if ( output.depth_stencil_format != TextureFormat::UNKNOWN ) { attachments[ subpass.colorAttachmentCount ] = depth_attachment; subpass.pDepthStencilAttachment = &depth_attachment_ref; depth_stencil_count = 1; } VkRenderPassCreateInfo render_pass_info = { VK_STRUCTURE_TYPE_RENDER_PASS_CREATE_INFO }; render_pass_info.attachmentCount = ( active_attachments ? active_attachments - 1 : 0 ) + depth_stencil_count; render_pass_info.pAttachments = attachments; render_pass_info.subpassCount = 1; render_pass_info.pSubpasses = &subpass; VkRenderPass vk_render_pass; check( vkCreateRenderPass( gpu.vulkan_device, &render_pass_info, nullptr, &vk_render_pass ) ); gpu.set_resource_name( VK_OBJECT_TYPE_RENDER_PASS, ( uint64_t )vk_render_pass, name ); return vk_render_pass; } // // static RenderPassOutput fill_render_pass_output( GpuDeviceVulkan& gpu, const RenderPassCreation& creation ) { RenderPassOutput output; output.reset(); for ( u32 i = 0; i < creation.num_render_targets; ++i ) { TextureVulkan* texture_vk = gpu.access_texture( creation.output_textures[ i ] ); output.color( texture_vk->format ); } if ( creation.depth_stencil_texture.index != k_invalid_index ) { TextureVulkan* texture_vk = gpu.access_texture( creation.depth_stencil_texture ); output.depth( texture_vk->format ); } output.color_operation = creation.color_operation; output.depth_operation = creation.depth_operation; output.stencil_operation = creation.stencil_operation; return output; } RenderPassHandle GpuDeviceVulkan::create_render_pass( const RenderPassCreation& creation ) { RenderPassHandle handle = { render_passes.obtain_resource() }; if ( handle.index == k_invalid_index ) { return handle; } RenderPassVulkan* render_pass = access_render_pass( handle ); render_pass->type = creation.type; // Init the rest of the struct. render_pass->num_render_targets = ( u8 )creation.num_render_targets; render_pass->dispatch_x = 0; render_pass->dispatch_y = 0; render_pass->dispatch_z = 0; render_pass->name = creation.name; render_pass->vk_frame_buffer = nullptr; render_pass->vk_render_pass = nullptr; render_pass->scale_x = creation.scale_x; render_pass->scale_y = creation.scale_y; render_pass->resize = creation.resize; // Cache texture handles uint32_t c = 0; for ( ; c < creation.num_render_targets; ++c ) { TextureVulkan* texture_vk = access_texture( creation.output_textures[ c ] ); render_pass->width = texture_vk->width; render_pass->height = texture_vk->height; // Cache texture handles render_pass->output_textures[ c ] = creation.output_textures[ c ]; } render_pass->output_depth = creation.depth_stencil_texture; switch ( creation.type ) { case RenderPassType::Swapchain: { vulkan_create_swapchain_pass( *this, creation, render_pass ); break; } case RenderPassType::Compute: { break; } case RenderPassType::Standard: { render_pass->output = fill_render_pass_output( *this, creation ); render_pass->vk_render_pass = get_vulkan_render_pass( render_pass->output, creation.name ); vulkan_create_framebuffer( *this, render_pass, creation.output_textures, creation.num_render_targets, creation.depth_stencil_texture ); break; } } return handle; } // Resource Destruction ///////////////////////////////////////////////////////// void GpuDeviceVulkan::destroy_buffer( BufferHandle buffer ) { if ( buffer.index < buffers.pool_size ) { resource_deletion_queue[ num_deletion_queue++ ] = { ResourceDeletionType::Buffer, buffer.index, current_frame }; } else { hprint( "Graphics error: trying to free invalid Buffer %u\n", buffer.index ); } } void GpuDeviceVulkan::destroy_texture( TextureHandle texture ) { if ( texture.index < textures.pool_size ) { resource_deletion_queue[ num_deletion_queue++ ] = { ResourceDeletionType::Texture, texture.index, current_frame }; } else { hprint( "Graphics error: trying to free invalid Texture %u\n", texture.index ); } } void GpuDeviceVulkan::destroy_pipeline( PipelineHandle pipeline ) { if ( pipeline.index < pipelines.pool_size ) { resource_deletion_queue[ num_deletion_queue++ ] = { ResourceDeletionType::Pipeline, pipeline.index, current_frame }; // Shader state creation is handled internally when creating a pipeline, thus add this to track correctly. PipelineVulkan* v_pipeline = access_pipeline( pipeline ); destroy_shader_state( v_pipeline->shader_state ); } else { hprint( "Graphics error: trying to free invalid Pipeline %u\n", pipeline.index ); } } void GpuDeviceVulkan::destroy_sampler( SamplerHandle sampler ) { if ( sampler.index < samplers.pool_size ) { resource_deletion_queue[ num_deletion_queue++ ] = { ResourceDeletionType::Sampler, sampler.index, current_frame }; } else { hprint( "Graphics error: trying to free invalid Sampler %u\n", sampler.index ); } } void GpuDeviceVulkan::destroy_resource_layout( ResourceLayoutHandle resource_layout ) { if ( resource_layout.index < resource_layouts.pool_size ) { resource_deletion_queue[ num_deletion_queue++ ] = { ResourceDeletionType::ResourceLayout, resource_layout.index, current_frame }; } else { hprint( "Graphics error: trying to free invalid ResourceLayout %u\n", resource_layout.index ); } } void GpuDeviceVulkan::destroy_resource_list( ResourceListHandle resource_list ) { if ( resource_list.index < resource_lists.pool_size ) { resource_deletion_queue[ num_deletion_queue++ ] = { ResourceDeletionType::ResourceList, resource_list.index, current_frame }; } else { hprint( "Graphics error: trying to free invalid ResourceList %u\n", resource_list.index ); } } void GpuDeviceVulkan::destroy_render_pass( RenderPassHandle render_pass ) { if ( render_pass.index < render_passes.pool_size ) { resource_deletion_queue[ num_deletion_queue++ ] = { ResourceDeletionType::RenderPass, render_pass.index, current_frame }; } else { hprint( "Graphics error: trying to free invalid RenderPass %u\n", render_pass.index ); } } void GpuDeviceVulkan::destroy_shader_state( ShaderStateHandle shader ) { if ( shader.index < shaders.pool_size ) { resource_deletion_queue[ num_deletion_queue++ ] = { ResourceDeletionType::ShaderState, shader.index, current_frame }; } else { hprint( "Graphics error: trying to free invalid Shader %u\n", shader.index ); } } // Real destruction methods - the other enqueue only the resources. void GpuDeviceVulkan::destroy_buffer_instant( ResourceHandle buffer ) { BufferVulkan* v_buffer = ( BufferVulkan* )buffers.access_resource( buffer ); if ( v_buffer && v_buffer->parent_buffer.index == k_invalid_buffer.index ) { vmaDestroyBuffer( vma_allocator, v_buffer->vk_buffer, v_buffer->vma_allocation ); } buffers.release_resource( buffer ); } void GpuDeviceVulkan::destroy_texture_instant( ResourceHandle texture ) { TextureVulkan* v_texture = ( TextureVulkan* )textures.access_resource( texture ); if ( v_texture ) { vkDestroyImageView( vulkan_device, v_texture->vk_image_view, vulkan_allocation_callbacks ); vmaDestroyImage( vma_allocator, v_texture->vk_image, v_texture->vma_allocation ); } textures.release_resource( texture ); } void GpuDeviceVulkan::destroy_pipeline_instant( ResourceHandle pipeline ) { PipelineVulkan* v_pipeline = ( PipelineVulkan* )pipelines.access_resource( pipeline ); if ( v_pipeline ) { vkDestroyPipeline( vulkan_device, v_pipeline->vk_pipeline, vulkan_allocation_callbacks ); vkDestroyPipelineLayout( vulkan_device, v_pipeline->vk_pipeline_layout, vulkan_allocation_callbacks ); } pipelines.release_resource( pipeline ); } void GpuDeviceVulkan::destroy_sampler_instant( ResourceHandle sampler ) { SamplerVulkan* v_sampler = ( SamplerVulkan* )samplers.access_resource( sampler ); if ( v_sampler ) { vkDestroySampler( vulkan_device, v_sampler->vk_sampler, vulkan_allocation_callbacks ); } samplers.release_resource( sampler ); } void GpuDeviceVulkan::destroy_resource_layout_instant( ResourceHandle resource_layout ) { ResourceLayoutVulkan* v_resource_list_layout = ( ResourceLayoutVulkan* )resource_layouts.access_resource( resource_layout ); if ( v_resource_list_layout ) { vkDestroyDescriptorSetLayout( vulkan_device, v_resource_list_layout->vk_descriptor_set_layout, vulkan_allocation_callbacks ); hfree( v_resource_list_layout->bindings, allocator ); hfree( v_resource_list_layout->vk_binding, allocator ); } resource_layouts.release_resource( resource_layout ); } void GpuDeviceVulkan::destroy_resource_list_instant( ResourceHandle resource_list ) { ResourceListVulkan* v_resource_list = ( ResourceListVulkan* )resource_lists.access_resource( resource_list ); if ( v_resource_list ) { hfree( v_resource_list->resources, allocator ); hfree( v_resource_list->samplers, allocator ); hfree( v_resource_list->bindings, allocator ); // This is freed with the DescriptorSet pool. //vkFreeDescriptorSets } resource_lists.release_resource( resource_list ); } void GpuDeviceVulkan::destroy_render_pass_instant( ResourceHandle render_pass ) { RenderPassVulkan* v_render_pass = ( RenderPassVulkan* )render_passes.access_resource( render_pass ); if ( v_render_pass ) { if ( v_render_pass->num_render_targets ) vkDestroyFramebuffer( vulkan_device, v_render_pass->vk_frame_buffer, vulkan_allocation_callbacks ); // NOTE: this is now destroyed with the render pass cache, to avoid double deletes. //vkDestroyRenderPass( vulkan_device, v_render_pass->vk_render_pass, vulkan_allocation_callbacks ); } render_passes.release_resource( render_pass ); } void GpuDeviceVulkan::destroy_shader_state_instant( ResourceHandle shader ) { ShaderStateVulkan* v_shader_state = ( ShaderStateVulkan* )shaders.access_resource( shader ); if ( v_shader_state ) { for ( size_t i = 0; i < v_shader_state->active_shaders; i++ ) { vkDestroyShaderModule( vulkan_device, v_shader_state->shader_stage_info[ i ].module, vulkan_allocation_callbacks ); } } shaders.release_resource( shader ); } void GpuDeviceVulkan::set_resource_name( VkObjectType type, uint64_t handle, const char* name ) { if ( !debug_utils_extension_present ) { return; } VkDebugUtilsObjectNameInfoEXT name_info = { VK_STRUCTURE_TYPE_DEBUG_UTILS_OBJECT_NAME_INFO_EXT }; name_info.objectType = type; name_info.objectHandle = handle; name_info.pObjectName = name; pfnSetDebugUtilsObjectNameEXT( vulkan_device, &name_info ); } void GpuDeviceVulkan::push_marker( VkCommandBuffer command_buffer, cstring name ) { VkDebugUtilsLabelEXT label = { VK_STRUCTURE_TYPE_DEBUG_UTILS_LABEL_EXT }; label.pLabelName = name; label.color[ 0 ] = 1.0f; label.color[ 1 ] = 1.0f; label.color[ 2 ] = 1.0f; label.color[ 3 ] = 1.0f; pfnCmdBeginDebugUtilsLabelEXT( command_buffer, &label ); } void GpuDeviceVulkan::pop_marker( VkCommandBuffer command_buffer ) { pfnCmdEndDebugUtilsLabelEXT( command_buffer ); } // Swapchain ////////////////////////////////////////////////////////////// template<class T> constexpr const T& clamp( const T& v, const T& lo, const T& hi ) { hy_assert( !( hi < lo ) ); return ( v < lo ) ? lo : ( hi < v ) ? hi : v; } void GpuDeviceVulkan::create_swapchain() { //// Check if surface is supported // TODO: Windows only! VkBool32 surface_supported; vkGetPhysicalDeviceSurfaceSupportKHR( vulkan_physical_device, vulkan_queue_family, vulkan_window_surface, &surface_supported ); if ( surface_supported != VK_TRUE ) { hprint( "Error no WSI support on physical device 0\n" ); } VkSurfaceCapabilitiesKHR surface_capabilities; vkGetPhysicalDeviceSurfaceCapabilitiesKHR( vulkan_physical_device, vulkan_window_surface, &surface_capabilities ); VkExtent2D swapchain_extent = surface_capabilities.currentExtent; if ( swapchain_extent.width == UINT32_MAX ) { swapchain_extent.width = clamp( swapchain_extent.width, surface_capabilities.minImageExtent.width, surface_capabilities.maxImageExtent.width ); swapchain_extent.height = clamp( swapchain_extent.height, surface_capabilities.minImageExtent.height, surface_capabilities.maxImageExtent.height ); } hprint( "Create swapchain %u %u - saved %u %u, min image %u\n", swapchain_extent.width, swapchain_extent.height, swapchain_width, swapchain_height, surface_capabilities.minImageCount ); swapchain_width = (u16)swapchain_extent.width; swapchain_height = (u16)swapchain_extent.height; //vulkan_swapchain_image_count = surface_capabilities.minImageCount + 2; VkSwapchainCreateInfoKHR swapchain_create_info = {}; swapchain_create_info.sType = VK_STRUCTURE_TYPE_SWAPCHAIN_CREATE_INFO_KHR; swapchain_create_info.surface = vulkan_window_surface; swapchain_create_info.minImageCount = vulkan_swapchain_image_count; swapchain_create_info.imageFormat = vulkan_surface_format.format; swapchain_create_info.imageExtent = swapchain_extent; swapchain_create_info.clipped = VK_TRUE; swapchain_create_info.imageArrayLayers = 1; swapchain_create_info.imageUsage = VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT | VK_IMAGE_USAGE_TRANSFER_DST_BIT; swapchain_create_info.imageSharingMode = VK_SHARING_MODE_EXCLUSIVE; swapchain_create_info.preTransform = surface_capabilities.currentTransform; swapchain_create_info.compositeAlpha = VK_COMPOSITE_ALPHA_OPAQUE_BIT_KHR; swapchain_create_info.presentMode = vulkan_present_mode; VkResult result = vkCreateSwapchainKHR( vulkan_device, &swapchain_create_info, 0, &vulkan_swapchain ); check( result ); //// Cache swapchain images vkGetSwapchainImagesKHR( vulkan_device, vulkan_swapchain, &vulkan_swapchain_image_count, NULL ); vkGetSwapchainImagesKHR( vulkan_device, vulkan_swapchain, &vulkan_swapchain_image_count, vulkan_swapchain_images ); for ( size_t iv = 0; iv < vulkan_swapchain_image_count; iv++ ) { // Create an image view which we can render into. VkImageViewCreateInfo view_info{ VK_STRUCTURE_TYPE_IMAGE_VIEW_CREATE_INFO }; view_info.viewType = VK_IMAGE_VIEW_TYPE_2D; view_info.format = vulkan_surface_format.format; view_info.image = vulkan_swapchain_images[ iv ]; view_info.subresourceRange.levelCount = 1; view_info.subresourceRange.layerCount = 1; view_info.subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; view_info.components.r = VK_COMPONENT_SWIZZLE_R; view_info.components.g = VK_COMPONENT_SWIZZLE_G; view_info.components.b = VK_COMPONENT_SWIZZLE_B; view_info.components.a = VK_COMPONENT_SWIZZLE_A; check( vkCreateImageView( vulkan_device, &view_info, vulkan_allocation_callbacks, &vulkan_swapchain_image_views[ iv ] ) ); } } void GpuDeviceVulkan::destroy_swapchain() { for ( size_t iv = 0; iv < vulkan_swapchain_image_count; iv++ ) { vkDestroyImageView( vulkan_device, vulkan_swapchain_image_views[ iv ], vulkan_allocation_callbacks ); vkDestroyFramebuffer( vulkan_device, vulkan_swapchain_framebuffers[ iv ], vulkan_allocation_callbacks ); } vkDestroySwapchainKHR( vulkan_device, vulkan_swapchain, vulkan_allocation_callbacks ); } VkRenderPass GpuDeviceVulkan::get_vulkan_render_pass( const RenderPassOutput& output, cstring name ) { // Hash the memory output and find a compatible VkRenderPass. // In current form RenderPassOutput should track everything needed, including load operations. u64 hashed_memory = hydra::hash_bytes( (void*)&output, sizeof( RenderPassOutput ) ); VkRenderPass vulkan_render_pass = render_pass_cache.get( hashed_memory ); if ( vulkan_render_pass ) { return vulkan_render_pass; } vulkan_render_pass = vulkan_create_render_pass( *this, output, name ); render_pass_cache.insert( hashed_memory, vulkan_render_pass ); return vulkan_render_pass; } void GpuDeviceVulkan::resize_swapchain() { vkDeviceWaitIdle( vulkan_device ); VkSurfaceCapabilitiesKHR surface_capabilities; vkGetPhysicalDeviceSurfaceCapabilitiesKHR( vulkan_physical_device, vulkan_window_surface, &surface_capabilities ); VkExtent2D swapchain_extent = surface_capabilities.currentExtent; // Skip zero-sized swapchain //hprint( "Requested swapchain resize %u %u\n", swapchain_extent.width, swapchain_extent.height ); if ( swapchain_extent.width == 0 || swapchain_extent.height == 0 ) { //hprint( "Cannot create a zero-sized swapchain\n" ); return; } // Internal destroy of swapchain pass to retain the same handle. RenderPassVulkan* vk_swapchain_pass = access_render_pass( swapchain_pass ); vkDestroyRenderPass( vulkan_device, vk_swapchain_pass->vk_render_pass, vulkan_allocation_callbacks ); // Destroy depth texture destroy_texture( depth_texture ); // Destroy swapchain images and framebuffers destroy_swapchain(); vkDestroySurfaceKHR( vulkan_instance, vulkan_window_surface, vulkan_allocation_callbacks ); // Recreate window surface if ( SDL_Vulkan_CreateSurface( sdl_window, vulkan_instance, &vulkan_window_surface ) == SDL_FALSE ) { hprint( "Failed to create Vulkan surface.\n" ); } // Create swapchain create_swapchain(); TextureCreation depth_texture_creation = { nullptr, swapchain_width, swapchain_height, 1, 1, 0, TextureFormat::D32_FLOAT, TextureType::Texture2D }; depth_texture = create_texture( depth_texture_creation ); RenderPassCreation swapchain_pass_creation = {}; swapchain_pass_creation.set_type( RenderPassType::Swapchain ).set_name( "Swapchain" ); vulkan_create_swapchain_pass( *this, swapchain_pass_creation, vk_swapchain_pass ); vkDeviceWaitIdle( vulkan_device ); } // Resource list ////////////////////////////////////////////////////////// void GpuDeviceVulkan::update_resource_list( const ResourceListUpdate& update ) { if ( update.resource_list.index < resource_lists.pool_size ) { resource_list_update_queue[ num_update_queue ] = update; resource_list_update_queue[ num_update_queue ].frame_issued = current_frame; ++num_update_queue; } else { hprint( "Graphics error: trying to update invalid ResourceList %u\n", update.resource_list.index ); } } void GpuDeviceVulkan::update_resource_list_instant( const ResourceListUpdate& update ) { // Delete descriptor set. ResourceListHandle new_resouce_list_handle = { resource_lists.obtain_resource() }; ResourceListVulkan* new_resource_list = access_resource_list( new_resouce_list_handle ); ResourceListVulkan* resource_list = access_resource_list( update.resource_list ); const ResourceLayoutVulkan* resource_layout = resource_list->layout; new_resource_list->vk_descriptor_set = resource_list->vk_descriptor_set; new_resource_list->bindings = nullptr; new_resource_list->resources = nullptr; new_resource_list->samplers = nullptr; new_resource_list->num_resources = resource_list->num_resources; destroy_resource_list( new_resouce_list_handle ); VkWriteDescriptorSet descriptor_write[ 8 ]; VkDescriptorBufferInfo buffer_info[ 8 ]; VkDescriptorImageInfo image_info[ 8 ]; SamplerVulkan* vk_default_sampler = access_sampler( default_sampler ); VkDescriptorSetAllocateInfo allocInfo{ VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO }; allocInfo.descriptorPool = vulkan_descriptor_pool; allocInfo.descriptorSetCount = 1; allocInfo.pSetLayouts = &resource_list->layout->vk_descriptor_set_layout; vkAllocateDescriptorSets( vulkan_device, &allocInfo, &resource_list->vk_descriptor_set ); vulkan_fill_write_descriptor_sets( *this, resource_layout, resource_list->vk_descriptor_set, descriptor_write, buffer_info, image_info, vk_default_sampler->vk_sampler, resource_layout->num_bindings, resource_list->resources, resource_list->samplers, resource_list->bindings ); vkUpdateDescriptorSets( vulkan_device, resource_layout->num_bindings, descriptor_write, 0, nullptr ); } // // static void vulkan_resize_texture( GpuDeviceVulkan& gpu, TextureVulkan* v_texture, TextureVulkan* v_texture_to_delete, u16 width, u16 height, u16 depth ) { // Cache handles to be delayed destroyed v_texture_to_delete->vk_image_view = v_texture->vk_image_view; v_texture_to_delete->vk_image = v_texture->vk_image; v_texture_to_delete->vma_allocation = v_texture->vma_allocation; // Re-create image in place. TextureCreation tc; tc.set_flags( v_texture->mipmaps, v_texture->flags ).set_format_type( v_texture->format, v_texture->type ).set_name( v_texture->name ).set_size( width, height, depth ); vulkan_create_texture( gpu, tc, v_texture->handle, v_texture ); } // // void GpuDeviceVulkan::resize_output_textures( RenderPassHandle render_pass, u16 width, u16 height ) { // For each texture, create a temporary pooled texture and cache the handles to delete. // This is because we substitute just the Vulkan texture when resizing so that // external users don't need to update the handle. RenderPassVulkan* vk_render_pass = access_render_pass( render_pass ); if ( vk_render_pass ) { // No need to resize! if ( !vk_render_pass->resize ) { return; } // Calculate new width and height based on render pass sizing informations. u16 new_width = ( u16 )( width * vk_render_pass->scale_x ); u16 new_height = ( u16 )( height * vk_render_pass->scale_y ); // Resize textures const u32 rts = vk_render_pass->num_render_targets; for ( u32 i = 0; i < rts; ++i ) { TextureHandle texture = vk_render_pass->output_textures[ i ]; TextureVulkan* vk_texture = access_texture( texture ); // Queue deletion of texture by creating a temporary one TextureHandle texture_to_delete = { textures.obtain_resource() }; TextureVulkan* vk_texture_to_delete = access_texture( texture_to_delete ); vulkan_resize_texture( *this, vk_texture, vk_texture_to_delete, new_width, new_height, 1 ); destroy_texture( texture_to_delete ); } if ( vk_render_pass->output_depth.index != k_invalid_index ) { TextureVulkan* vk_texture = access_texture( vk_render_pass->output_depth ); // Queue deletion of texture by creating a temporary one TextureHandle texture_to_delete = { textures.obtain_resource() }; TextureVulkan* vk_texture_to_delete = access_texture( texture_to_delete ); vulkan_resize_texture( *this, vk_texture, vk_texture_to_delete, new_width, new_height, 1 ); destroy_texture( texture_to_delete ); } // Again: create temporary resource to use the standard deferred deletion mechanism. RenderPassHandle render_pass_to_destroy = { render_passes.obtain_resource() }; RenderPassVulkan* vk_render_pass_to_destroy = access_render_pass( render_pass_to_destroy ); vk_render_pass_to_destroy->vk_frame_buffer = vk_render_pass->vk_frame_buffer; // This is checked in the destroy method to proceed with frame buffer destruction. vk_render_pass_to_destroy->num_render_targets = 1; // Set this to 0 so deletion won't be performed. vk_render_pass_to_destroy->vk_render_pass = 0; destroy_render_pass( render_pass_to_destroy ); // Recreate framebuffer vk_render_pass->width = new_width; vk_render_pass->height = new_height; vulkan_create_framebuffer( *this, vk_render_pass, vk_render_pass->output_textures, vk_render_pass->num_render_targets, vk_render_pass->output_depth ); } } // // void GpuDeviceVulkan::fill_barrier( RenderPassHandle render_pass, ExecutionBarrier& out_barrier ) { RenderPassVulkan* vk_render_pass = access_render_pass( render_pass ); out_barrier.num_image_barriers = 0; if ( vk_render_pass ) { const u32 rts = vk_render_pass->num_render_targets; for ( u32 i = 0; i < rts; ++i ) { out_barrier.image_barriers[ out_barrier.num_image_barriers++ ].texture = vk_render_pass->output_textures[ i ]; } if ( vk_render_pass->output_depth.index != k_invalid_index ) { out_barrier.image_barriers[ out_barrier.num_image_barriers++ ].texture = vk_render_pass->output_depth; } } } void GpuDeviceVulkan::new_frame() { // Fence wait and reset VkFence* render_complete_fence = &vulkan_command_buffer_executed_fence[ current_frame ]; if ( vkGetFenceStatus( vulkan_device, *render_complete_fence ) != VK_SUCCESS ) { vkWaitForFences( vulkan_device, 1, render_complete_fence, VK_TRUE, UINT64_MAX ); } vkResetFences( vulkan_device, 1, render_complete_fence ); // Command pool reset command_buffer_ring.reset_pools( current_frame ); // Dynamic memory update const u32 used_size = dynamic_allocated_size - ( dynamic_per_frame_size * previous_frame ); dynamic_max_per_frame_size = max( used_size, dynamic_max_per_frame_size ); dynamic_allocated_size = dynamic_per_frame_size * current_frame; } void GpuDeviceVulkan::present() { VkResult result = vkAcquireNextImageKHR( vulkan_device, vulkan_swapchain, UINT64_MAX, vulkan_image_acquired_semaphore, VK_NULL_HANDLE, &vulkan_image_index ); if ( result == VK_ERROR_OUT_OF_DATE_KHR ) { resize_swapchain(); // Advance frame counters that are skipped during this frame. frame_counters_advance(); return; } VkFence* render_complete_fence = &vulkan_command_buffer_executed_fence[ current_frame ]; VkSemaphore* render_complete_semaphore = &vulkan_render_complete_semaphore[ current_frame ]; // Copy all commands VkCommandBuffer enqueued_command_buffers[ 4 ]; for ( uint32_t c = 0; c < num_queued_command_buffers; c++ ) { CommandBuffer* command_buffer = queued_command_buffers[ c ]; enqueued_command_buffers[ c ] = command_buffer->vk_command_buffer; // NOTE: why it was needing current_pipeline to be setup ? if ( command_buffer->is_recording && command_buffer->current_render_pass && ( command_buffer->current_render_pass->type != RenderPassType::Compute ) ) vkCmdEndRenderPass( command_buffer->vk_command_buffer ); vkEndCommandBuffer( command_buffer->vk_command_buffer ); } // Submit command buffers VkSemaphore wait_semaphores[] = { vulkan_image_acquired_semaphore }; VkPipelineStageFlags wait_stages[] = { VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT }; VkSubmitInfo submit_info = { VK_STRUCTURE_TYPE_SUBMIT_INFO }; submit_info.waitSemaphoreCount = 1; submit_info.pWaitSemaphores = wait_semaphores; submit_info.pWaitDstStageMask = wait_stages; submit_info.commandBufferCount = num_queued_command_buffers; submit_info.pCommandBuffers = enqueued_command_buffers; submit_info.signalSemaphoreCount = 1; submit_info.pSignalSemaphores = render_complete_semaphore; vkQueueSubmit( vulkan_queue, 1, &submit_info, *render_complete_fence ); VkPresentInfoKHR present_info{ VK_STRUCTURE_TYPE_PRESENT_INFO_KHR }; present_info.waitSemaphoreCount = 1; present_info.pWaitSemaphores = render_complete_semaphore; VkSwapchainKHR swap_chains[] = { vulkan_swapchain }; present_info.swapchainCount = 1; present_info.pSwapchains = swap_chains; present_info.pImageIndices = &vulkan_image_index; present_info.pResults = nullptr; // Optional result = vkQueuePresentKHR( vulkan_queue, &present_info ); num_queued_command_buffers = 0; // // GPU Timestamp resolve if ( timestamps_enabled ) { if ( gpu_timestamp_manager->current_query ) { // Query GPU for all timestamps. const u32 query_offset = ( current_frame * gpu_timestamp_manager->queries_per_frame ) * 2; const u32 query_count = gpu_timestamp_manager->current_query * 2; vkGetQueryPoolResults( vulkan_device, vulkan_timestamp_query_pool, query_offset, query_count, sizeof( uint64_t ) * query_count * 2, &gpu_timestamp_manager->timestamps_data[ query_offset ], sizeof( gpu_timestamp_manager->timestamps_data[ 0 ] ), VK_QUERY_RESULT_64_BIT | VK_QUERY_RESULT_WAIT_BIT ); // Calculate and cache the elapsed time for ( u32 i = 0; i < gpu_timestamp_manager->current_query; i++ ) { uint32_t index = ( current_frame * gpu_timestamp_manager->queries_per_frame ) + i; GPUTimestamp& timestamp = gpu_timestamp_manager->timestamps[ index ]; double start = ( double )gpu_timestamp_manager->timestamps_data[ ( index * 2 ) ]; double end = ( double )gpu_timestamp_manager->timestamps_data[ ( index * 2 ) + 1 ]; double range = end - start; double elapsed_time = range * gpu_timestamp_frequency; timestamp.elapsed_ms = elapsed_time; timestamp.frame_index = absolute_frame; //print_format( "%s: %2.3f d(%u) - ", timestamp.name, elapsed_time, timestamp.depth ); } //print_format( "\n" ); } gpu_timestamp_manager->reset(); gpu_timestamp_reset = true; } else { gpu_timestamp_reset = false; } if ( result == VK_ERROR_OUT_OF_DATE_KHR || result == VK_SUBOPTIMAL_KHR || resized ) { resized = false; resize_swapchain(); // Advance frame counters that are skipped during this frame. frame_counters_advance(); return; } //hydra::print_format( "Index %u, %u, %u\n", current_frame, previous_frame, vulkan_image_index ); // This is called inside resize_swapchain as well to correctly work. frame_counters_advance(); // Resource deletion using reverse iteration and swap with last element. if ( num_deletion_queue > 0 ) { for ( i32 i = num_deletion_queue - 1; i >= 0; i-- ) { ResourceDeletion& resource_deletion = resource_deletion_queue[ i ]; if ( resource_deletion.current_frame == current_frame ) { switch ( resource_deletion.type ) { case ResourceDeletionType::Buffer: { destroy_buffer_instant( resource_deletion.handle ); break; } case ResourceDeletionType::Pipeline: { destroy_pipeline_instant( resource_deletion.handle ); break; } case ResourceDeletionType::RenderPass: { destroy_render_pass_instant( resource_deletion.handle ); break; } case ResourceDeletionType::ResourceList: { destroy_resource_list_instant( resource_deletion.handle ); break; } case ResourceDeletionType::ResourceLayout: { destroy_resource_layout_instant( resource_deletion.handle ); break; } case ResourceDeletionType::Sampler: { destroy_sampler_instant( resource_deletion.handle ); break; } case ResourceDeletionType::ShaderState: { destroy_shader_state_instant( resource_deletion.handle ); break; } case ResourceDeletionType::Texture: { destroy_texture_instant( resource_deletion.handle ); break; } } // Mark resource as free resource_deletion.current_frame = u32_max; // Swap element resource_deletion_queue[ i ] = resource_deletion_queue[ --num_deletion_queue ]; } } } // Resource List Updates if ( num_update_queue ) { for ( i32 i = num_update_queue - 1; i >= 0; i-- ) { ResourceListUpdate& update = resource_list_update_queue[ i ]; if ( update.frame_issued == current_frame ) { update_resource_list_instant( update ); update.frame_issued = u32_max; resource_list_update_queue[ i ] = resource_list_update_queue[ num_update_queue-- ]; } } } } static VkPresentModeKHR to_vk_present_mode( PresentMode::Enum mode ) { switch ( mode ) { case PresentMode::VSyncFast: return VK_PRESENT_MODE_MAILBOX_KHR; case PresentMode::VSyncRelaxed: return VK_PRESENT_MODE_FIFO_RELAXED_KHR; case PresentMode::Immediate: return VK_PRESENT_MODE_IMMEDIATE_KHR; case PresentMode::VSync: default: return VK_PRESENT_MODE_FIFO_KHR; } } void GpuDeviceVulkan::set_present_mode( PresentMode::Enum mode ) { // Request a certain mode and confirm that it is available. If not use VK_PRESENT_MODE_FIFO_KHR which is mandatory u32 supported_count = 0; static VkPresentModeKHR supported_mode_allocated[ 8 ]; vkGetPhysicalDeviceSurfacePresentModesKHR( vulkan_physical_device, vulkan_window_surface, &supported_count, NULL ); hy_assert( supported_count < 8 ); vkGetPhysicalDeviceSurfacePresentModesKHR( vulkan_physical_device, vulkan_window_surface, &supported_count, supported_mode_allocated ); bool mode_found = false; VkPresentModeKHR requested_mode = to_vk_present_mode( mode ); for ( u32 j = 0; j < supported_count; j++ ) { if ( requested_mode == supported_mode_allocated[ j ] ) { mode_found = true; break; } } // Default to VK_PRESENT_MODE_FIFO_KHR that is guaranteed to always be supported vulkan_present_mode = mode_found ? requested_mode : VK_PRESENT_MODE_FIFO_KHR; // Use 4 for immediate ? vulkan_swapchain_image_count = 3;// vulkan_present_mode == VK_PRESENT_MODE_IMMEDIATE_KHR ? 2 : 3; present_mode = mode_found ? mode : PresentMode::VSync; } void GpuDeviceVulkan::link_texture_sampler( TextureHandle texture, SamplerHandle sampler ) { TextureVulkan* texture_vk = access_texture( texture ); SamplerVulkan* sampler_vk = access_sampler( sampler ); texture_vk->sampler = sampler_vk; } void GpuDeviceVulkan::frame_counters_advance() { previous_frame = current_frame; current_frame = ( current_frame + 1 ) % vulkan_swapchain_image_count; ++absolute_frame; } // // void GpuDeviceVulkan::queue_command_buffer( CommandBuffer* command_buffer ) { queued_command_buffers[ num_queued_command_buffers++ ] = command_buffer; } // // CommandBuffer* GpuDeviceVulkan::get_command_buffer( QueueType::Enum type, bool begin ) { CommandBuffer* cb = command_buffer_ring.get_command_buffer( current_frame, begin ); // The first commandbuffer issued in the frame is used to reset the timestamp queries used. if ( gpu_timestamp_reset && begin ) { // These are currently indices! vkCmdResetQueryPool( cb->vk_command_buffer, vulkan_timestamp_query_pool, current_frame * gpu_timestamp_manager->queries_per_frame * 2, gpu_timestamp_manager->queries_per_frame ); gpu_timestamp_reset = false; } return cb; } // // CommandBuffer* GpuDeviceVulkan::get_instant_command_buffer() { CommandBuffer* cb = command_buffer_ring.get_command_buffer_instant( current_frame, false ); return cb; } // Resource Description Query /////////////////////////////////////////////////// void Device::query_buffer( BufferHandle buffer, BufferDescription& out_description ) { if ( buffer.index != k_invalid_index ) { const BufferVulkan* buffer_data = access_buffer( buffer ); out_description.name = buffer_data->name; out_description.size = buffer_data->size; out_description.type = buffer_data->type; out_description.usage = buffer_data->usage; out_description.parent_handle = buffer_data->parent_buffer; out_description.native_handle = (void*)&buffer_data->vk_buffer; } } void Device::query_texture( TextureHandle texture, TextureDescription& out_description ) { if ( texture.index != k_invalid_index ) { const TextureVulkan* texture_data = access_texture( texture ); out_description.width = texture_data->width; out_description.height = texture_data->height; out_description.depth = texture_data->depth; out_description.format = texture_data->format; out_description.mipmaps = texture_data->mipmaps; out_description.type = texture_data->type; out_description.render_target = texture_data->render_target; out_description.native_handle = (void*)&texture_data->vk_image; out_description.name = texture_data->name; } } void Device::query_pipeline( PipelineHandle pipeline, PipelineDescription& out_description ) { if ( pipeline.index != k_invalid_index ) { const PipelineVulkan* pipeline_data = access_pipeline( pipeline ); out_description.shader = pipeline_data->shader_state; } } void Device::query_sampler( SamplerHandle sampler, SamplerDescription& out_description ) { if ( sampler.index != k_invalid_index ) { //const SamplerVulkan* sampler_data = access_sampler( sampler ); } } void Device::query_resource_layout( ResourceLayoutHandle resource_list_layout, ResourceLayoutDescription& out_description ) { if ( resource_list_layout.index != k_invalid_index ) { const ResourceLayoutVulkan* resource_list_layout_data = access_resource_layout( resource_list_layout ); const uint32_t num_bindings = resource_list_layout_data->num_bindings; for ( size_t i = 0; i < num_bindings; i++ ) { out_description.bindings[i].name = resource_list_layout_data->bindings[i].name; out_description.bindings[i].type = resource_list_layout_data->bindings[i].type; } out_description.num_active_bindings = resource_list_layout_data->num_bindings; } } void Device::query_resource_list( ResourceListHandle resource_list, ResourceListDescription& out_description ) { if ( resource_list.index != k_invalid_index ) { const ResourceListVulkan* resource_list_data = access_resource_list( resource_list ); out_description.num_active_resources = resource_list_data->num_resources; for ( u32 i = 0; i < out_description.num_active_resources; ++i ) { //out_description.resources[ i ].data = resource_list_data->resources[ i ].data; } } } const RenderPassOutput& Device::get_render_pass_output( RenderPassHandle render_pass ) const { const RenderPassVulkan* vulkan_render_pass = access_render_pass( render_pass ); return vulkan_render_pass->output; } // Resource Map/Unmap /////////////////////////////////////////////////////////// void* GpuDeviceVulkan::map_buffer( const MapBufferParameters& parameters ) { if ( parameters.buffer.index == k_invalid_index ) return nullptr; BufferVulkan* buffer = access_buffer( parameters.buffer ); if ( buffer->parent_buffer.index == dynamic_buffer.index ) { buffer->global_offset = dynamic_allocated_size; return dynamic_allocate( parameters.size == 0 ? buffer->size : parameters.size ); } void* data; vmaMapMemory( vma_allocator, buffer->vma_allocation, &data ); return data; } void GpuDeviceVulkan::unmap_buffer( const MapBufferParameters& parameters ) { if ( parameters.buffer.index == k_invalid_index ) return; BufferVulkan* buffer = access_buffer( parameters.buffer ); if ( buffer->parent_buffer.index == dynamic_buffer.index ) return; vmaUnmapMemory( vma_allocator, buffer->vma_allocation ); } void GpuDeviceVulkan::set_buffer_global_offset( BufferHandle buffer, u32 offset ) { if ( buffer.index == k_invalid_index ) return; BufferVulkan* vulkan_buffer = access_buffer( buffer ); vulkan_buffer->global_offset = offset; } u32 GpuDeviceVulkan::get_gpu_timestamps( GPUTimestamp* out_timestamps ) { return gpu_timestamp_manager->resolve( previous_frame, out_timestamps ); } void GpuDeviceVulkan::push_gpu_timestamp( CommandBuffer* command_buffer, const char* name ) { if ( !timestamps_enabled ) return; u32 query_index = gpu_timestamp_manager->push( current_frame, name ); vkCmdWriteTimestamp( command_buffer->vk_command_buffer, VK_PIPELINE_STAGE_ALL_COMMANDS_BIT, vulkan_timestamp_query_pool, query_index ); } void GpuDeviceVulkan::pop_gpu_timestamp( CommandBuffer* command_buffer ) { if ( !timestamps_enabled ) return; u32 query_index = gpu_timestamp_manager->pop( current_frame ); vkCmdWriteTimestamp( command_buffer->vk_command_buffer, VK_PIPELINE_STAGE_ALL_COMMANDS_BIT, vulkan_timestamp_query_pool, query_index ); } // Utility methods ////////////////////////////////////////////////////////////// void check( VkResult result ) { if ( result == VK_SUCCESS ) { return; } hprint( "Vulkan error: code(%u)", result ); if ( result < 0 ) { hy_assertm( false, "Vulkan error: aborting." ); } } } // namespace gfx } // namespace hydra #endif // HYDRA_VULKAN
[ "gsassone7@gmail.com" ]
gsassone7@gmail.com