text stringlengths 1 1.05M |
|---|
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved.
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree. An additional grant
// of patent rights can be found in the PATENTS file in the same directory.
//
// The following only applies to changes made to this file as part of YugaByte development.
//
// Portions Copyright (c) YugaByte, Inc.
//
// 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 <string>
#include <vector>
#include <algorithm>
#include <utility>
#include "yb/rocksdb/db/db_iter.h"
#include "yb/rocksdb/db/dbformat.h"
#include "yb/rocksdb/db/db_test_util.h"
#include "yb/rocksdb/comparator.h"
#include "yb/rocksdb/options.h"
#include "yb/rocksdb/perf_context.h"
#include "yb/util/slice.h"
#include "yb/rocksdb/statistics.h"
#include "yb/rocksdb/table/iterator_wrapper.h"
#include "yb/rocksdb/table/merger.h"
#include "yb/rocksdb/util/string_util.h"
#include "yb/rocksdb/util/sync_point.h"
#include "yb/rocksdb/util/testharness.h"
#include "yb/rocksdb/utilities/merge_operators.h"
namespace rocksdb {
class TestIterator : public InternalIterator {
public:
explicit TestIterator(const Comparator* comparator)
: initialized_(false),
valid_(false),
sequence_number_(0),
iter_(0),
cmp(comparator) {}
void AddPut(std::string argkey, std::string argvalue) {
Add(argkey, kTypeValue, argvalue);
}
void AddDeletion(std::string argkey) {
Add(argkey, kTypeDeletion, std::string());
}
void AddSingleDeletion(std::string argkey) {
Add(argkey, kTypeSingleDeletion, std::string());
}
void AddMerge(std::string argkey, std::string argvalue) {
Add(argkey, kTypeMerge, argvalue);
}
void Add(std::string argkey, ValueType type, std::string argvalue) {
Add(argkey, type, argvalue, sequence_number_++);
}
void Add(std::string argkey, ValueType type, std::string argvalue,
size_t seq_num, bool update_iter = false) {
valid_ = true;
ParsedInternalKey internal_key(argkey, seq_num, type);
data_.push_back(
std::pair<std::string, std::string>(std::string(), argvalue));
AppendInternalKey(&data_.back().first, internal_key);
if (update_iter && valid_ && cmp.Compare(data_.back().first, key()) < 0) {
// insert a key smaller than current key
Finish();
// data_[iter_] is not anymore the current element of the iterator.
// Increment it to reposition it to the right position.
iter_++;
}
}
// should be called before operations with iterator
void Finish() {
initialized_ = true;
std::sort(data_.begin(), data_.end(),
[this](std::pair<std::string, std::string> a,
std::pair<std::string, std::string> b) {
return (cmp.Compare(a.first, b.first) < 0);
});
}
bool Valid() const override {
assert(initialized_);
return valid_;
}
void SeekToFirst() override {
assert(initialized_);
valid_ = (data_.size() > 0);
iter_ = 0;
}
void SeekToLast() override {
assert(initialized_);
valid_ = (data_.size() > 0);
iter_ = data_.size() - 1;
}
void Seek(const Slice& target) override {
assert(initialized_);
SeekToFirst();
if (!valid_) {
return;
}
while (iter_ < data_.size() &&
(cmp.Compare(data_[iter_].first, target) < 0)) {
++iter_;
}
if (iter_ == data_.size()) {
valid_ = false;
}
}
void Next() override {
assert(initialized_);
if (data_.empty() || (iter_ == data_.size() - 1)) {
valid_ = false;
} else {
++iter_;
}
}
void Prev() override {
assert(initialized_);
if (iter_ == 0) {
valid_ = false;
} else {
--iter_;
}
}
Slice key() const override {
assert(initialized_);
return data_[iter_].first;
}
Slice value() const override {
assert(initialized_);
return data_[iter_].second;
}
Status status() const override {
assert(initialized_);
return Status::OK();
}
private:
bool initialized_;
bool valid_;
size_t sequence_number_;
size_t iter_;
InternalKeyComparator cmp;
std::vector<std::pair<std::string, std::string>> data_;
};
class DBIteratorTest : public testing::Test {
public:
Env* env_;
DBIteratorTest() : env_(Env::Default()) {}
};
TEST_F(DBIteratorTest, DBIteratorPrevNext) {
Options options;
{
TestIterator* internal_iter = new TestIterator(BytewiseComparator());
internal_iter->AddDeletion("a");
internal_iter->AddDeletion("a");
internal_iter->AddDeletion("a");
internal_iter->AddDeletion("a");
internal_iter->AddPut("a", "val_a");
internal_iter->AddPut("b", "val_b");
internal_iter->Finish();
std::unique_ptr<Iterator> db_iter(NewDBIterator(
env_, ImmutableCFOptions(options), BytewiseComparator(), internal_iter,
10, options.max_sequential_skip_in_iterations, 0));
db_iter->SeekToLast();
ASSERT_TRUE(db_iter->Valid());
ASSERT_EQ(db_iter->key().ToString(), "b");
ASSERT_EQ(db_iter->value().ToString(), "val_b");
db_iter->Prev();
ASSERT_TRUE(db_iter->Valid());
ASSERT_EQ(db_iter->key().ToString(), "a");
ASSERT_EQ(db_iter->value().ToString(), "val_a");
db_iter->Next();
ASSERT_TRUE(db_iter->Valid());
ASSERT_EQ(db_iter->key().ToString(), "b");
ASSERT_EQ(db_iter->value().ToString(), "val_b");
db_iter->Next();
ASSERT_TRUE(!db_iter->Valid());
}
// Test to check the SeekToLast() with iterate_upper_bound not set
{
TestIterator* internal_iter = new TestIterator(BytewiseComparator());
internal_iter->AddPut("a", "val_a");
internal_iter->AddPut("b", "val_b");
internal_iter->AddPut("b", "val_b");
internal_iter->AddPut("c", "val_c");
internal_iter->Finish();
std::unique_ptr<Iterator> db_iter(NewDBIterator(
env_, ImmutableCFOptions(options), BytewiseComparator(), internal_iter,
10, options.max_sequential_skip_in_iterations, 0));
db_iter->SeekToLast();
ASSERT_TRUE(db_iter->Valid());
ASSERT_EQ(db_iter->key().ToString(), "c");
}
// Test to check the SeekToLast() with iterate_upper_bound set
{
TestIterator* internal_iter = new TestIterator(BytewiseComparator());
internal_iter->AddPut("a", "val_a");
internal_iter->AddPut("b", "val_b");
internal_iter->AddPut("c", "val_c");
internal_iter->AddPut("d", "val_d");
internal_iter->AddPut("e", "val_e");
internal_iter->AddPut("f", "val_f");
internal_iter->Finish();
Slice prefix("d");
ReadOptions ro;
ro.iterate_upper_bound = &prefix;
std::unique_ptr<Iterator> db_iter(NewDBIterator(
env_, ImmutableCFOptions(options), BytewiseComparator(), internal_iter,
10, options.max_sequential_skip_in_iterations, 0,
ro.iterate_upper_bound));
db_iter->SeekToLast();
ASSERT_TRUE(db_iter->Valid());
ASSERT_EQ(db_iter->key().ToString(), "c");
db_iter->Next();
ASSERT_TRUE(!db_iter->Valid());
db_iter->SeekToLast();
ASSERT_TRUE(db_iter->Valid());
ASSERT_EQ(db_iter->key().ToString(), "c");
}
// Test to check the SeekToLast() iterate_upper_bound set to a key that
// is not Put yet
{
TestIterator* internal_iter = new TestIterator(BytewiseComparator());
internal_iter->AddPut("a", "val_a");
internal_iter->AddPut("a", "val_a");
internal_iter->AddPut("b", "val_b");
internal_iter->AddPut("c", "val_c");
internal_iter->AddPut("d", "val_d");
internal_iter->Finish();
Slice prefix("z");
ReadOptions ro;
ro.iterate_upper_bound = &prefix;
std::unique_ptr<Iterator> db_iter(NewDBIterator(
env_, ImmutableCFOptions(options), BytewiseComparator(), internal_iter,
10, options.max_sequential_skip_in_iterations, 0,
ro.iterate_upper_bound));
db_iter->SeekToLast();
ASSERT_TRUE(db_iter->Valid());
ASSERT_EQ(db_iter->key().ToString(), "d");
db_iter->Next();
ASSERT_TRUE(!db_iter->Valid());
db_iter->SeekToLast();
ASSERT_TRUE(db_iter->Valid());
ASSERT_EQ(db_iter->key().ToString(), "d");
db_iter->Prev();
ASSERT_TRUE(db_iter->Valid());
ASSERT_EQ(db_iter->key().ToString(), "c");
}
// Test to check the SeekToLast() with iterate_upper_bound set to the
// first key
{
TestIterator* internal_iter = new TestIterator(BytewiseComparator());
internal_iter->AddPut("a", "val_a");
internal_iter->AddPut("a", "val_a");
internal_iter->AddPut("a", "val_a");
internal_iter->AddPut("b", "val_b");
internal_iter->AddPut("b", "val_b");
internal_iter->Finish();
Slice prefix("a");
ReadOptions ro;
ro.iterate_upper_bound = &prefix;
std::unique_ptr<Iterator> db_iter(NewDBIterator(
env_, ImmutableCFOptions(options), BytewiseComparator(), internal_iter,
10, options.max_sequential_skip_in_iterations, 0,
ro.iterate_upper_bound));
db_iter->SeekToLast();
ASSERT_TRUE(!db_iter->Valid());
}
// Test case to check SeekToLast with iterate_upper_bound set
// (same key put may times - SeekToLast should start with the
// maximum sequence id of the upper bound)
{
TestIterator* internal_iter = new TestIterator(BytewiseComparator());
internal_iter->AddPut("a", "val_a");
internal_iter->AddPut("b", "val_b");
internal_iter->AddPut("c", "val_c");
internal_iter->AddPut("c", "val_c");
internal_iter->AddPut("c", "val_c");
internal_iter->AddPut("c", "val_c");
internal_iter->AddPut("c", "val_c");
internal_iter->AddPut("c", "val_c");
internal_iter->AddPut("c", "val_c");
internal_iter->Finish();
Slice prefix("c");
ReadOptions ro;
ro.iterate_upper_bound = &prefix;
std::unique_ptr<Iterator> db_iter(NewDBIterator(
env_, ImmutableCFOptions(options), BytewiseComparator(), internal_iter,
7, options.max_sequential_skip_in_iterations, 0,
ro.iterate_upper_bound));
SetPerfLevel(kEnableCount);
ASSERT_TRUE(GetPerfLevel() == kEnableCount);
perf_context.Reset();
db_iter->SeekToLast();
ASSERT_TRUE(db_iter->Valid());
ASSERT_EQ(static_cast<int>(perf_context.internal_key_skipped_count), 1);
ASSERT_EQ(db_iter->key().ToString(), "b");
SetPerfLevel(kDisable);
}
// Test to check the SeekToLast() with the iterate_upper_bound set
// (Checking the value of the key which has sequence ids greater than
// and less that the iterator's sequence id)
{
TestIterator* internal_iter = new TestIterator(BytewiseComparator());
internal_iter->AddPut("a", "val_a1");
internal_iter->AddPut("a", "val_a2");
internal_iter->AddPut("b", "val_b1");
internal_iter->AddPut("c", "val_c1");
internal_iter->AddPut("c", "val_c2");
internal_iter->AddPut("c", "val_c3");
internal_iter->AddPut("b", "val_b2");
internal_iter->AddPut("d", "val_d1");
internal_iter->Finish();
Slice prefix("c");
ReadOptions ro;
ro.iterate_upper_bound = &prefix;
std::unique_ptr<Iterator> db_iter(NewDBIterator(
env_, ImmutableCFOptions(options), BytewiseComparator(), internal_iter,
4, options.max_sequential_skip_in_iterations, 0,
ro.iterate_upper_bound));
db_iter->SeekToLast();
ASSERT_TRUE(db_iter->Valid());
ASSERT_EQ(db_iter->key().ToString(), "b");
ASSERT_EQ(db_iter->value().ToString(), "val_b1");
}
// Test to check the SeekToLast() with the iterate_upper_bound set to the
// key that is deleted
{
TestIterator* internal_iter = new TestIterator(BytewiseComparator());
internal_iter->AddPut("a", "val_a");
internal_iter->AddDeletion("a");
internal_iter->AddPut("b", "val_b");
internal_iter->AddPut("c", "val_c");
internal_iter->Finish();
Slice prefix("a");
ReadOptions ro;
ro.iterate_upper_bound = &prefix;
std::unique_ptr<Iterator> db_iter(NewDBIterator(
env_, ImmutableCFOptions(options), BytewiseComparator(), internal_iter,
10, options.max_sequential_skip_in_iterations, 0,
ro.iterate_upper_bound));
db_iter->SeekToLast();
ASSERT_TRUE(!db_iter->Valid());
}
// Test to check the SeekToLast() with the iterate_upper_bound set
// (Deletion cases)
{
TestIterator* internal_iter = new TestIterator(BytewiseComparator());
internal_iter->AddPut("a", "val_a");
internal_iter->AddPut("b", "val_b");
internal_iter->AddDeletion("b");
internal_iter->AddPut("c", "val_c");
internal_iter->Finish();
Slice prefix("c");
ReadOptions ro;
ro.iterate_upper_bound = &prefix;
std::unique_ptr<Iterator> db_iter(NewDBIterator(
env_, ImmutableCFOptions(options), BytewiseComparator(), internal_iter,
10, options.max_sequential_skip_in_iterations, 0,
ro.iterate_upper_bound));
db_iter->SeekToLast();
ASSERT_TRUE(db_iter->Valid());
ASSERT_EQ(db_iter->key().ToString(), "a");
db_iter->Next();
ASSERT_TRUE(!db_iter->Valid());
db_iter->SeekToLast();
ASSERT_TRUE(db_iter->Valid());
ASSERT_EQ(db_iter->key().ToString(), "a");
}
// Test to check the SeekToLast() with iterate_upper_bound set
// (Deletion cases - Lot of internal keys after the upper_bound
// is deleted)
{
TestIterator* internal_iter = new TestIterator(BytewiseComparator());
internal_iter->AddPut("a", "val_a");
internal_iter->AddPut("b", "val_b");
internal_iter->AddDeletion("c");
internal_iter->AddDeletion("d");
internal_iter->AddDeletion("e");
internal_iter->AddDeletion("f");
internal_iter->AddDeletion("g");
internal_iter->AddDeletion("h");
internal_iter->Finish();
Slice prefix("c");
ReadOptions ro;
ro.iterate_upper_bound = &prefix;
std::unique_ptr<Iterator> db_iter(NewDBIterator(
env_, ImmutableCFOptions(options), BytewiseComparator(), internal_iter,
7, options.max_sequential_skip_in_iterations, 0,
ro.iterate_upper_bound));
SetPerfLevel(kEnableCount);
ASSERT_TRUE(GetPerfLevel() == kEnableCount);
perf_context.Reset();
db_iter->SeekToLast();
ASSERT_TRUE(db_iter->Valid());
ASSERT_EQ(static_cast<int>(perf_context.internal_delete_skipped_count), 0);
ASSERT_EQ(db_iter->key().ToString(), "b");
SetPerfLevel(kDisable);
}
{
TestIterator* internal_iter = new TestIterator(BytewiseComparator());
internal_iter->AddDeletion("a");
internal_iter->AddDeletion("a");
internal_iter->AddDeletion("a");
internal_iter->AddDeletion("a");
internal_iter->AddPut("a", "val_a");
internal_iter->AddPut("b", "val_b");
internal_iter->Finish();
std::unique_ptr<Iterator> db_iter(NewDBIterator(
env_, ImmutableCFOptions(options), BytewiseComparator(), internal_iter,
10, options.max_sequential_skip_in_iterations, 0));
db_iter->SeekToFirst();
ASSERT_TRUE(db_iter->Valid());
ASSERT_EQ(db_iter->key().ToString(), "a");
ASSERT_EQ(db_iter->value().ToString(), "val_a");
db_iter->Next();
ASSERT_TRUE(db_iter->Valid());
ASSERT_EQ(db_iter->key().ToString(), "b");
ASSERT_EQ(db_iter->value().ToString(), "val_b");
db_iter->Prev();
ASSERT_TRUE(db_iter->Valid());
ASSERT_EQ(db_iter->key().ToString(), "a");
ASSERT_EQ(db_iter->value().ToString(), "val_a");
db_iter->Prev();
ASSERT_TRUE(!db_iter->Valid());
}
{
TestIterator* internal_iter = new TestIterator(BytewiseComparator());
internal_iter->AddPut("a", "val_a");
internal_iter->AddPut("b", "val_b");
internal_iter->AddPut("a", "val_a");
internal_iter->AddPut("b", "val_b");
internal_iter->AddPut("a", "val_a");
internal_iter->AddPut("b", "val_b");
internal_iter->AddPut("a", "val_a");
internal_iter->AddPut("b", "val_b");
internal_iter->AddPut("a", "val_a");
internal_iter->AddPut("b", "val_b");
internal_iter->Finish();
std::unique_ptr<Iterator> db_iter(NewDBIterator(
env_, ImmutableCFOptions(options), BytewiseComparator(), internal_iter,
2, options.max_sequential_skip_in_iterations, 0));
db_iter->SeekToLast();
ASSERT_TRUE(db_iter->Valid());
ASSERT_EQ(db_iter->key().ToString(), "b");
ASSERT_EQ(db_iter->value().ToString(), "val_b");
db_iter->Next();
ASSERT_TRUE(!db_iter->Valid());
db_iter->SeekToLast();
ASSERT_TRUE(db_iter->Valid());
ASSERT_EQ(db_iter->key().ToString(), "b");
ASSERT_EQ(db_iter->value().ToString(), "val_b");
}
{
TestIterator* internal_iter = new TestIterator(BytewiseComparator());
internal_iter->AddPut("a", "val_a");
internal_iter->AddPut("a", "val_a");
internal_iter->AddPut("a", "val_a");
internal_iter->AddPut("a", "val_a");
internal_iter->AddPut("a", "val_a");
internal_iter->AddPut("b", "val_b");
internal_iter->AddPut("c", "val_c");
internal_iter->Finish();
std::unique_ptr<Iterator> db_iter(NewDBIterator(
env_, ImmutableCFOptions(options), BytewiseComparator(), internal_iter,
10, options.max_sequential_skip_in_iterations, 0));
db_iter->SeekToLast();
ASSERT_TRUE(db_iter->Valid());
ASSERT_EQ(db_iter->key().ToString(), "c");
ASSERT_EQ(db_iter->value().ToString(), "val_c");
db_iter->Prev();
ASSERT_TRUE(db_iter->Valid());
ASSERT_EQ(db_iter->key().ToString(), "b");
ASSERT_EQ(db_iter->value().ToString(), "val_b");
db_iter->Next();
ASSERT_TRUE(db_iter->Valid());
ASSERT_EQ(db_iter->key().ToString(), "c");
ASSERT_EQ(db_iter->value().ToString(), "val_c");
}
}
TEST_F(DBIteratorTest, DBIteratorEmpty) {
Options options;
{
TestIterator* internal_iter = new TestIterator(BytewiseComparator());
internal_iter->Finish();
std::unique_ptr<Iterator> db_iter(NewDBIterator(
env_, ImmutableCFOptions(options), BytewiseComparator(), internal_iter,
0, options.max_sequential_skip_in_iterations, 0));
db_iter->SeekToLast();
ASSERT_TRUE(!db_iter->Valid());
}
{
TestIterator* internal_iter = new TestIterator(BytewiseComparator());
internal_iter->Finish();
std::unique_ptr<Iterator> db_iter(NewDBIterator(
env_, ImmutableCFOptions(options), BytewiseComparator(), internal_iter,
0, options.max_sequential_skip_in_iterations, 0));
db_iter->SeekToFirst();
ASSERT_TRUE(!db_iter->Valid());
}
}
TEST_F(DBIteratorTest, DBIteratorUseSkipCountSkips) {
Options options;
options.statistics = rocksdb::CreateDBStatistics();
options.merge_operator = MergeOperators::CreateFromStringId("stringappend");
TestIterator* internal_iter = new TestIterator(BytewiseComparator());
for (size_t i = 0; i < 200; ++i) {
internal_iter->AddPut("a", "a");
internal_iter->AddPut("b", "b");
internal_iter->AddPut("c", "c");
}
internal_iter->Finish();
std::unique_ptr<Iterator> db_iter(NewDBIterator(
env_, ImmutableCFOptions(options), BytewiseComparator(), internal_iter, 2,
options.max_sequential_skip_in_iterations, 0));
db_iter->SeekToLast();
ASSERT_TRUE(db_iter->Valid());
ASSERT_EQ(db_iter->key().ToString(), "c");
ASSERT_EQ(db_iter->value().ToString(), "c");
ASSERT_EQ(TestGetTickerCount(options, NUMBER_OF_RESEEKS_IN_ITERATION), 1u);
db_iter->Prev();
ASSERT_TRUE(db_iter->Valid());
ASSERT_EQ(db_iter->key().ToString(), "b");
ASSERT_EQ(db_iter->value().ToString(), "b");
ASSERT_EQ(TestGetTickerCount(options, NUMBER_OF_RESEEKS_IN_ITERATION), 2u);
db_iter->Prev();
ASSERT_TRUE(db_iter->Valid());
ASSERT_EQ(db_iter->key().ToString(), "a");
ASSERT_EQ(db_iter->value().ToString(), "a");
ASSERT_EQ(TestGetTickerCount(options, NUMBER_OF_RESEEKS_IN_ITERATION), 3u);
db_iter->Prev();
ASSERT_TRUE(!db_iter->Valid());
ASSERT_EQ(TestGetTickerCount(options, NUMBER_OF_RESEEKS_IN_ITERATION), 3u);
}
TEST_F(DBIteratorTest, DBIteratorUseSkip) {
Options options;
options.merge_operator = MergeOperators::CreateFromStringId("stringappend");
{
for (size_t i = 0; i < 200; ++i) {
TestIterator* internal_iter = new TestIterator(BytewiseComparator());
internal_iter->AddMerge("b", "merge_1");
internal_iter->AddMerge("a", "merge_2");
for (size_t k = 0; k < 200; ++k) {
internal_iter->AddPut("c", ToString(k));
}
internal_iter->Finish();
options.statistics = rocksdb::CreateDBStatistics();
std::unique_ptr<Iterator> db_iter(NewDBIterator(
env_, ImmutableCFOptions(options), BytewiseComparator(),
internal_iter, i + 2, options.max_sequential_skip_in_iterations, 0));
db_iter->SeekToLast();
ASSERT_TRUE(db_iter->Valid());
ASSERT_EQ(db_iter->key().ToString(), "c");
ASSERT_EQ(db_iter->value().ToString(), ToString(i));
db_iter->Prev();
ASSERT_TRUE(db_iter->Valid());
ASSERT_EQ(db_iter->key().ToString(), "b");
ASSERT_EQ(db_iter->value().ToString(), "merge_1");
db_iter->Prev();
ASSERT_TRUE(db_iter->Valid());
ASSERT_EQ(db_iter->key().ToString(), "a");
ASSERT_EQ(db_iter->value().ToString(), "merge_2");
db_iter->Prev();
ASSERT_TRUE(!db_iter->Valid());
}
}
{
for (size_t i = 0; i < 200; ++i) {
TestIterator* internal_iter = new TestIterator(BytewiseComparator());
internal_iter->AddMerge("b", "merge_1");
internal_iter->AddMerge("a", "merge_2");
for (size_t k = 0; k < 200; ++k) {
internal_iter->AddDeletion("c");
}
internal_iter->AddPut("c", "200");
internal_iter->Finish();
std::unique_ptr<Iterator> db_iter(NewDBIterator(
env_, ImmutableCFOptions(options), BytewiseComparator(),
internal_iter, i + 2, options.max_sequential_skip_in_iterations, 0));
db_iter->SeekToLast();
ASSERT_TRUE(db_iter->Valid());
ASSERT_EQ(db_iter->key().ToString(), "b");
ASSERT_EQ(db_iter->value().ToString(), "merge_1");
db_iter->Prev();
ASSERT_TRUE(db_iter->Valid());
ASSERT_EQ(db_iter->key().ToString(), "a");
ASSERT_EQ(db_iter->value().ToString(), "merge_2");
db_iter->Prev();
ASSERT_TRUE(!db_iter->Valid());
}
{
TestIterator* internal_iter = new TestIterator(BytewiseComparator());
internal_iter->AddMerge("b", "merge_1");
internal_iter->AddMerge("a", "merge_2");
for (size_t i = 0; i < 200; ++i) {
internal_iter->AddDeletion("c");
}
internal_iter->AddPut("c", "200");
internal_iter->Finish();
std::unique_ptr<Iterator> db_iter(NewDBIterator(
env_, ImmutableCFOptions(options), BytewiseComparator(),
internal_iter, 202, options.max_sequential_skip_in_iterations, 0));
db_iter->SeekToLast();
ASSERT_TRUE(db_iter->Valid());
ASSERT_EQ(db_iter->key().ToString(), "c");
ASSERT_EQ(db_iter->value().ToString(), "200");
db_iter->Prev();
ASSERT_TRUE(db_iter->Valid());
ASSERT_EQ(db_iter->key().ToString(), "b");
ASSERT_EQ(db_iter->value().ToString(), "merge_1");
db_iter->Prev();
ASSERT_TRUE(db_iter->Valid());
ASSERT_EQ(db_iter->key().ToString(), "a");
ASSERT_EQ(db_iter->value().ToString(), "merge_2");
db_iter->Prev();
ASSERT_TRUE(!db_iter->Valid());
}
}
{
for (size_t i = 0; i < 200; ++i) {
TestIterator* internal_iter = new TestIterator(BytewiseComparator());
for (size_t k = 0; k < 200; ++k) {
internal_iter->AddDeletion("c");
}
internal_iter->AddPut("c", "200");
internal_iter->Finish();
std::unique_ptr<Iterator> db_iter(NewDBIterator(
env_, ImmutableCFOptions(options), BytewiseComparator(),
internal_iter, i, options.max_sequential_skip_in_iterations, 0));
db_iter->SeekToLast();
ASSERT_TRUE(!db_iter->Valid());
db_iter->SeekToFirst();
ASSERT_TRUE(!db_iter->Valid());
}
TestIterator* internal_iter = new TestIterator(BytewiseComparator());
for (size_t i = 0; i < 200; ++i) {
internal_iter->AddDeletion("c");
}
internal_iter->AddPut("c", "200");
internal_iter->Finish();
std::unique_ptr<Iterator> db_iter(NewDBIterator(
env_, ImmutableCFOptions(options), BytewiseComparator(), internal_iter,
200, options.max_sequential_skip_in_iterations, 0));
db_iter->SeekToLast();
ASSERT_TRUE(db_iter->Valid());
ASSERT_EQ(db_iter->key().ToString(), "c");
ASSERT_EQ(db_iter->value().ToString(), "200");
db_iter->Prev();
ASSERT_TRUE(!db_iter->Valid());
db_iter->SeekToFirst();
ASSERT_TRUE(db_iter->Valid());
ASSERT_EQ(db_iter->key().ToString(), "c");
ASSERT_EQ(db_iter->value().ToString(), "200");
db_iter->Next();
ASSERT_TRUE(!db_iter->Valid());
}
{
for (size_t i = 0; i < 200; ++i) {
TestIterator* internal_iter = new TestIterator(BytewiseComparator());
internal_iter->AddMerge("b", "merge_1");
internal_iter->AddMerge("a", "merge_2");
for (size_t k = 0; k < 200; ++k) {
internal_iter->AddPut("d", ToString(k));
}
for (size_t k = 0; k < 200; ++k) {
internal_iter->AddPut("c", ToString(k));
}
internal_iter->Finish();
std::unique_ptr<Iterator> db_iter(NewDBIterator(
env_, ImmutableCFOptions(options), BytewiseComparator(),
internal_iter, i + 2, options.max_sequential_skip_in_iterations, 0));
db_iter->SeekToLast();
ASSERT_TRUE(db_iter->Valid());
ASSERT_EQ(db_iter->key().ToString(), "d");
ASSERT_EQ(db_iter->value().ToString(), ToString(i));
db_iter->Prev();
ASSERT_TRUE(db_iter->Valid());
ASSERT_EQ(db_iter->key().ToString(), "b");
ASSERT_EQ(db_iter->value().ToString(), "merge_1");
db_iter->Prev();
ASSERT_TRUE(db_iter->Valid());
ASSERT_EQ(db_iter->key().ToString(), "a");
ASSERT_EQ(db_iter->value().ToString(), "merge_2");
db_iter->Prev();
ASSERT_TRUE(!db_iter->Valid());
}
}
{
for (size_t i = 0; i < 200; ++i) {
TestIterator* internal_iter = new TestIterator(BytewiseComparator());
internal_iter->AddMerge("b", "b");
internal_iter->AddMerge("a", "a");
for (size_t k = 0; k < 200; ++k) {
internal_iter->AddMerge("c", ToString(k));
}
internal_iter->Finish();
std::unique_ptr<Iterator> db_iter(NewDBIterator(
env_, ImmutableCFOptions(options), BytewiseComparator(),
internal_iter, i + 2, options.max_sequential_skip_in_iterations, 0));
db_iter->SeekToLast();
ASSERT_TRUE(db_iter->Valid());
ASSERT_EQ(db_iter->key().ToString(), "c");
std::string merge_result = "0";
for (size_t j = 1; j <= i; ++j) {
merge_result += "," + ToString(j);
}
ASSERT_EQ(db_iter->value().ToString(), merge_result);
db_iter->Prev();
ASSERT_TRUE(db_iter->Valid());
ASSERT_EQ(db_iter->key().ToString(), "b");
ASSERT_EQ(db_iter->value().ToString(), "b");
db_iter->Prev();
ASSERT_TRUE(db_iter->Valid());
ASSERT_EQ(db_iter->key().ToString(), "a");
ASSERT_EQ(db_iter->value().ToString(), "a");
db_iter->Prev();
ASSERT_TRUE(!db_iter->Valid());
}
}
}
TEST_F(DBIteratorTest, DBIterator1) {
Options options;
options.merge_operator = MergeOperators::CreateFromStringId("stringappend");
TestIterator* internal_iter = new TestIterator(BytewiseComparator());
internal_iter->AddPut("a", "0");
internal_iter->AddPut("b", "0");
internal_iter->AddDeletion("b");
internal_iter->AddMerge("a", "1");
internal_iter->AddMerge("b", "2");
internal_iter->Finish();
std::unique_ptr<Iterator> db_iter(NewDBIterator(
env_, ImmutableCFOptions(options), BytewiseComparator(), internal_iter, 1,
options.max_sequential_skip_in_iterations, 0));
db_iter->SeekToFirst();
ASSERT_TRUE(db_iter->Valid());
ASSERT_EQ(db_iter->key().ToString(), "a");
ASSERT_EQ(db_iter->value().ToString(), "0");
db_iter->Next();
ASSERT_TRUE(db_iter->Valid());
ASSERT_EQ(db_iter->key().ToString(), "b");
db_iter->Next();
ASSERT_FALSE(db_iter->Valid());
}
TEST_F(DBIteratorTest, DBIterator2) {
Options options;
options.merge_operator = MergeOperators::CreateFromStringId("stringappend");
TestIterator* internal_iter = new TestIterator(BytewiseComparator());
internal_iter->AddPut("a", "0");
internal_iter->AddPut("b", "0");
internal_iter->AddDeletion("b");
internal_iter->AddMerge("a", "1");
internal_iter->AddMerge("b", "2");
internal_iter->Finish();
std::unique_ptr<Iterator> db_iter(NewDBIterator(
env_, ImmutableCFOptions(options), BytewiseComparator(), internal_iter, 0,
options.max_sequential_skip_in_iterations, 0));
db_iter->SeekToFirst();
ASSERT_TRUE(db_iter->Valid());
ASSERT_EQ(db_iter->key().ToString(), "a");
ASSERT_EQ(db_iter->value().ToString(), "0");
db_iter->Next();
ASSERT_TRUE(!db_iter->Valid());
}
TEST_F(DBIteratorTest, DBIterator3) {
Options options;
options.merge_operator = MergeOperators::CreateFromStringId("stringappend");
TestIterator* internal_iter = new TestIterator(BytewiseComparator());
internal_iter->AddPut("a", "0");
internal_iter->AddPut("b", "0");
internal_iter->AddDeletion("b");
internal_iter->AddMerge("a", "1");
internal_iter->AddMerge("b", "2");
internal_iter->Finish();
std::unique_ptr<Iterator> db_iter(NewDBIterator(
env_, ImmutableCFOptions(options), BytewiseComparator(), internal_iter, 2,
options.max_sequential_skip_in_iterations, 0));
db_iter->SeekToFirst();
ASSERT_TRUE(db_iter->Valid());
ASSERT_EQ(db_iter->key().ToString(), "a");
ASSERT_EQ(db_iter->value().ToString(), "0");
db_iter->Next();
ASSERT_TRUE(!db_iter->Valid());
}
TEST_F(DBIteratorTest, DBIterator4) {
Options options;
options.merge_operator = MergeOperators::CreateFromStringId("stringappend");
TestIterator* internal_iter = new TestIterator(BytewiseComparator());
internal_iter->AddPut("a", "0");
internal_iter->AddPut("b", "0");
internal_iter->AddDeletion("b");
internal_iter->AddMerge("a", "1");
internal_iter->AddMerge("b", "2");
internal_iter->Finish();
std::unique_ptr<Iterator> db_iter(NewDBIterator(
env_, ImmutableCFOptions(options), BytewiseComparator(), internal_iter, 4,
options.max_sequential_skip_in_iterations, 0));
db_iter->SeekToFirst();
ASSERT_TRUE(db_iter->Valid());
ASSERT_EQ(db_iter->key().ToString(), "a");
ASSERT_EQ(db_iter->value().ToString(), "0,1");
db_iter->Next();
ASSERT_TRUE(db_iter->Valid());
ASSERT_EQ(db_iter->key().ToString(), "b");
ASSERT_EQ(db_iter->value().ToString(), "2");
db_iter->Next();
ASSERT_TRUE(!db_iter->Valid());
}
TEST_F(DBIteratorTest, DBIterator5) {
Options options;
options.merge_operator = MergeOperators::CreateFromStringId("stringappend");
{
TestIterator* internal_iter = new TestIterator(BytewiseComparator());
internal_iter->AddMerge("a", "merge_1");
internal_iter->AddMerge("a", "merge_2");
internal_iter->AddMerge("a", "merge_3");
internal_iter->AddPut("a", "put_1");
internal_iter->AddMerge("a", "merge_4");
internal_iter->AddMerge("a", "merge_5");
internal_iter->AddMerge("a", "merge_6");
internal_iter->Finish();
std::unique_ptr<Iterator> db_iter(NewDBIterator(
env_, ImmutableCFOptions(options), BytewiseComparator(), internal_iter,
0, options.max_sequential_skip_in_iterations, 0));
db_iter->SeekToLast();
ASSERT_TRUE(db_iter->Valid());
ASSERT_EQ(db_iter->key().ToString(), "a");
ASSERT_EQ(db_iter->value().ToString(), "merge_1");
db_iter->Prev();
ASSERT_TRUE(!db_iter->Valid());
}
{
TestIterator* internal_iter = new TestIterator(BytewiseComparator());
internal_iter->AddMerge("a", "merge_1");
internal_iter->AddMerge("a", "merge_2");
internal_iter->AddMerge("a", "merge_3");
internal_iter->AddPut("a", "put_1");
internal_iter->AddMerge("a", "merge_4");
internal_iter->AddMerge("a", "merge_5");
internal_iter->AddMerge("a", "merge_6");
internal_iter->Finish();
std::unique_ptr<Iterator> db_iter(NewDBIterator(
env_, ImmutableCFOptions(options), BytewiseComparator(), internal_iter,
1, options.max_sequential_skip_in_iterations, 0));
db_iter->SeekToLast();
ASSERT_TRUE(db_iter->Valid());
ASSERT_EQ(db_iter->key().ToString(), "a");
ASSERT_EQ(db_iter->value().ToString(), "merge_1,merge_2");
db_iter->Prev();
ASSERT_TRUE(!db_iter->Valid());
}
{
TestIterator* internal_iter = new TestIterator(BytewiseComparator());
internal_iter->AddMerge("a", "merge_1");
internal_iter->AddMerge("a", "merge_2");
internal_iter->AddMerge("a", "merge_3");
internal_iter->AddPut("a", "put_1");
internal_iter->AddMerge("a", "merge_4");
internal_iter->AddMerge("a", "merge_5");
internal_iter->AddMerge("a", "merge_6");
internal_iter->Finish();
std::unique_ptr<Iterator> db_iter(NewDBIterator(
env_, ImmutableCFOptions(options), BytewiseComparator(), internal_iter,
2, options.max_sequential_skip_in_iterations, 0));
db_iter->SeekToLast();
ASSERT_TRUE(db_iter->Valid());
ASSERT_EQ(db_iter->key().ToString(), "a");
ASSERT_EQ(db_iter->value().ToString(), "merge_1,merge_2,merge_3");
db_iter->Prev();
ASSERT_TRUE(!db_iter->Valid());
}
{
TestIterator* internal_iter = new TestIterator(BytewiseComparator());
internal_iter->AddMerge("a", "merge_1");
internal_iter->AddMerge("a", "merge_2");
internal_iter->AddMerge("a", "merge_3");
internal_iter->AddPut("a", "put_1");
internal_iter->AddMerge("a", "merge_4");
internal_iter->AddMerge("a", "merge_5");
internal_iter->AddMerge("a", "merge_6");
internal_iter->Finish();
std::unique_ptr<Iterator> db_iter(NewDBIterator(
env_, ImmutableCFOptions(options), BytewiseComparator(), internal_iter,
3, options.max_sequential_skip_in_iterations, 0));
db_iter->SeekToLast();
ASSERT_TRUE(db_iter->Valid());
ASSERT_EQ(db_iter->key().ToString(), "a");
ASSERT_EQ(db_iter->value().ToString(), "put_1");
db_iter->Prev();
ASSERT_TRUE(!db_iter->Valid());
}
{
TestIterator* internal_iter = new TestIterator(BytewiseComparator());
internal_iter->AddMerge("a", "merge_1");
internal_iter->AddMerge("a", "merge_2");
internal_iter->AddMerge("a", "merge_3");
internal_iter->AddPut("a", "put_1");
internal_iter->AddMerge("a", "merge_4");
internal_iter->AddMerge("a", "merge_5");
internal_iter->AddMerge("a", "merge_6");
internal_iter->Finish();
std::unique_ptr<Iterator> db_iter(NewDBIterator(
env_, ImmutableCFOptions(options), BytewiseComparator(), internal_iter,
4, options.max_sequential_skip_in_iterations, 0));
db_iter->SeekToLast();
ASSERT_TRUE(db_iter->Valid());
ASSERT_EQ(db_iter->key().ToString(), "a");
ASSERT_EQ(db_iter->value().ToString(), "put_1,merge_4");
db_iter->Prev();
ASSERT_TRUE(!db_iter->Valid());
}
{
TestIterator* internal_iter = new TestIterator(BytewiseComparator());
internal_iter->AddMerge("a", "merge_1");
internal_iter->AddMerge("a", "merge_2");
internal_iter->AddMerge("a", "merge_3");
internal_iter->AddPut("a", "put_1");
internal_iter->AddMerge("a", "merge_4");
internal_iter->AddMerge("a", "merge_5");
internal_iter->AddMerge("a", "merge_6");
internal_iter->Finish();
std::unique_ptr<Iterator> db_iter(NewDBIterator(
env_, ImmutableCFOptions(options), BytewiseComparator(), internal_iter,
5, options.max_sequential_skip_in_iterations, 0));
db_iter->SeekToLast();
ASSERT_TRUE(db_iter->Valid());
ASSERT_EQ(db_iter->key().ToString(), "a");
ASSERT_EQ(db_iter->value().ToString(), "put_1,merge_4,merge_5");
db_iter->Prev();
ASSERT_TRUE(!db_iter->Valid());
}
{
TestIterator* internal_iter = new TestIterator(BytewiseComparator());
internal_iter->AddMerge("a", "merge_1");
internal_iter->AddMerge("a", "merge_2");
internal_iter->AddMerge("a", "merge_3");
internal_iter->AddPut("a", "put_1");
internal_iter->AddMerge("a", "merge_4");
internal_iter->AddMerge("a", "merge_5");
internal_iter->AddMerge("a", "merge_6");
internal_iter->Finish();
std::unique_ptr<Iterator> db_iter(NewDBIterator(
env_, ImmutableCFOptions(options), BytewiseComparator(), internal_iter,
6, options.max_sequential_skip_in_iterations, 0));
db_iter->SeekToLast();
ASSERT_TRUE(db_iter->Valid());
ASSERT_EQ(db_iter->key().ToString(), "a");
ASSERT_EQ(db_iter->value().ToString(), "put_1,merge_4,merge_5,merge_6");
db_iter->Prev();
ASSERT_TRUE(!db_iter->Valid());
}
}
TEST_F(DBIteratorTest, DBIterator6) {
Options options;
options.merge_operator = MergeOperators::CreateFromStringId("stringappend");
{
TestIterator* internal_iter = new TestIterator(BytewiseComparator());
internal_iter->AddMerge("a", "merge_1");
internal_iter->AddMerge("a", "merge_2");
internal_iter->AddMerge("a", "merge_3");
internal_iter->AddDeletion("a");
internal_iter->AddMerge("a", "merge_4");
internal_iter->AddMerge("a", "merge_5");
internal_iter->AddMerge("a", "merge_6");
internal_iter->Finish();
std::unique_ptr<Iterator> db_iter(NewDBIterator(
env_, ImmutableCFOptions(options), BytewiseComparator(), internal_iter,
0, options.max_sequential_skip_in_iterations, 0));
db_iter->SeekToLast();
ASSERT_TRUE(db_iter->Valid());
ASSERT_EQ(db_iter->key().ToString(), "a");
ASSERT_EQ(db_iter->value().ToString(), "merge_1");
db_iter->Prev();
ASSERT_TRUE(!db_iter->Valid());
}
{
TestIterator* internal_iter = new TestIterator(BytewiseComparator());
internal_iter->AddMerge("a", "merge_1");
internal_iter->AddMerge("a", "merge_2");
internal_iter->AddMerge("a", "merge_3");
internal_iter->AddDeletion("a");
internal_iter->AddMerge("a", "merge_4");
internal_iter->AddMerge("a", "merge_5");
internal_iter->AddMerge("a", "merge_6");
internal_iter->Finish();
std::unique_ptr<Iterator> db_iter(NewDBIterator(
env_, ImmutableCFOptions(options), BytewiseComparator(), internal_iter,
1, options.max_sequential_skip_in_iterations, 0));
db_iter->SeekToLast();
ASSERT_TRUE(db_iter->Valid());
ASSERT_EQ(db_iter->key().ToString(), "a");
ASSERT_EQ(db_iter->value().ToString(), "merge_1,merge_2");
db_iter->Prev();
ASSERT_TRUE(!db_iter->Valid());
}
{
TestIterator* internal_iter = new TestIterator(BytewiseComparator());
internal_iter->AddMerge("a", "merge_1");
internal_iter->AddMerge("a", "merge_2");
internal_iter->AddMerge("a", "merge_3");
internal_iter->AddDeletion("a");
internal_iter->AddMerge("a", "merge_4");
internal_iter->AddMerge("a", "merge_5");
internal_iter->AddMerge("a", "merge_6");
internal_iter->Finish();
std::unique_ptr<Iterator> db_iter(NewDBIterator(
env_, ImmutableCFOptions(options), BytewiseComparator(), internal_iter,
2, options.max_sequential_skip_in_iterations, 0));
db_iter->SeekToLast();
ASSERT_TRUE(db_iter->Valid());
ASSERT_EQ(db_iter->key().ToString(), "a");
ASSERT_EQ(db_iter->value().ToString(), "merge_1,merge_2,merge_3");
db_iter->Prev();
ASSERT_TRUE(!db_iter->Valid());
}
{
TestIterator* internal_iter = new TestIterator(BytewiseComparator());
internal_iter->AddMerge("a", "merge_1");
internal_iter->AddMerge("a", "merge_2");
internal_iter->AddMerge("a", "merge_3");
internal_iter->AddDeletion("a");
internal_iter->AddMerge("a", "merge_4");
internal_iter->AddMerge("a", "merge_5");
internal_iter->AddMerge("a", "merge_6");
internal_iter->Finish();
std::unique_ptr<Iterator> db_iter(NewDBIterator(
env_, ImmutableCFOptions(options), BytewiseComparator(), internal_iter,
3, options.max_sequential_skip_in_iterations, 0));
db_iter->SeekToLast();
ASSERT_TRUE(!db_iter->Valid());
}
{
TestIterator* internal_iter = new TestIterator(BytewiseComparator());
internal_iter->AddMerge("a", "merge_1");
internal_iter->AddMerge("a", "merge_2");
internal_iter->AddMerge("a", "merge_3");
internal_iter->AddDeletion("a");
internal_iter->AddMerge("a", "merge_4");
internal_iter->AddMerge("a", "merge_5");
internal_iter->AddMerge("a", "merge_6");
internal_iter->Finish();
std::unique_ptr<Iterator> db_iter(NewDBIterator(
env_, ImmutableCFOptions(options), BytewiseComparator(), internal_iter,
4, options.max_sequential_skip_in_iterations, 0));
db_iter->SeekToLast();
ASSERT_TRUE(db_iter->Valid());
ASSERT_EQ(db_iter->key().ToString(), "a");
ASSERT_EQ(db_iter->value().ToString(), "merge_4");
db_iter->Prev();
ASSERT_TRUE(!db_iter->Valid());
}
{
TestIterator* internal_iter = new TestIterator(BytewiseComparator());
internal_iter->AddMerge("a", "merge_1");
internal_iter->AddMerge("a", "merge_2");
internal_iter->AddMerge("a", "merge_3");
internal_iter->AddDeletion("a");
internal_iter->AddMerge("a", "merge_4");
internal_iter->AddMerge("a", "merge_5");
internal_iter->AddMerge("a", "merge_6");
internal_iter->Finish();
std::unique_ptr<Iterator> db_iter(NewDBIterator(
env_, ImmutableCFOptions(options), BytewiseComparator(), internal_iter,
5, options.max_sequential_skip_in_iterations, 0));
db_iter->SeekToLast();
ASSERT_TRUE(db_iter->Valid());
ASSERT_EQ(db_iter->key().ToString(), "a");
ASSERT_EQ(db_iter->value().ToString(), "merge_4,merge_5");
db_iter->Prev();
ASSERT_TRUE(!db_iter->Valid());
}
{
TestIterator* internal_iter = new TestIterator(BytewiseComparator());
internal_iter->AddMerge("a", "merge_1");
internal_iter->AddMerge("a", "merge_2");
internal_iter->AddMerge("a", "merge_3");
internal_iter->AddDeletion("a");
internal_iter->AddMerge("a", "merge_4");
internal_iter->AddMerge("a", "merge_5");
internal_iter->AddMerge("a", "merge_6");
internal_iter->Finish();
std::unique_ptr<Iterator> db_iter(NewDBIterator(
env_, ImmutableCFOptions(options), BytewiseComparator(), internal_iter,
6, options.max_sequential_skip_in_iterations, 0));
db_iter->SeekToLast();
ASSERT_TRUE(db_iter->Valid());
ASSERT_EQ(db_iter->key().ToString(), "a");
ASSERT_EQ(db_iter->value().ToString(), "merge_4,merge_5,merge_6");
db_iter->Prev();
ASSERT_TRUE(!db_iter->Valid());
}
}
TEST_F(DBIteratorTest, DBIterator7) {
Options options;
options.merge_operator = MergeOperators::CreateFromStringId("stringappend");
{
TestIterator* internal_iter = new TestIterator(BytewiseComparator());
internal_iter->AddMerge("a", "merge_1");
internal_iter->AddPut("b", "val");
internal_iter->AddMerge("b", "merge_2");
internal_iter->AddDeletion("b");
internal_iter->AddMerge("b", "merge_3");
internal_iter->AddMerge("c", "merge_4");
internal_iter->AddMerge("c", "merge_5");
internal_iter->AddDeletion("b");
internal_iter->AddMerge("b", "merge_6");
internal_iter->AddMerge("b", "merge_7");
internal_iter->AddMerge("b", "merge_8");
internal_iter->AddMerge("b", "merge_9");
internal_iter->AddMerge("b", "merge_10");
internal_iter->AddMerge("b", "merge_11");
internal_iter->AddDeletion("c");
internal_iter->Finish();
std::unique_ptr<Iterator> db_iter(NewDBIterator(
env_, ImmutableCFOptions(options), BytewiseComparator(), internal_iter,
0, options.max_sequential_skip_in_iterations, 0));
db_iter->SeekToLast();
ASSERT_TRUE(db_iter->Valid());
ASSERT_EQ(db_iter->key().ToString(), "a");
ASSERT_EQ(db_iter->value().ToString(), "merge_1");
db_iter->Prev();
ASSERT_TRUE(!db_iter->Valid());
}
{
TestIterator* internal_iter = new TestIterator(BytewiseComparator());
internal_iter->AddMerge("a", "merge_1");
internal_iter->AddPut("b", "val");
internal_iter->AddMerge("b", "merge_2");
internal_iter->AddDeletion("b");
internal_iter->AddMerge("b", "merge_3");
internal_iter->AddMerge("c", "merge_4");
internal_iter->AddMerge("c", "merge_5");
internal_iter->AddDeletion("b");
internal_iter->AddMerge("b", "merge_6");
internal_iter->AddMerge("b", "merge_7");
internal_iter->AddMerge("b", "merge_8");
internal_iter->AddMerge("b", "merge_9");
internal_iter->AddMerge("b", "merge_10");
internal_iter->AddMerge("b", "merge_11");
internal_iter->AddDeletion("c");
internal_iter->Finish();
std::unique_ptr<Iterator> db_iter(NewDBIterator(
env_, ImmutableCFOptions(options), BytewiseComparator(), internal_iter,
2, options.max_sequential_skip_in_iterations, 0));
db_iter->SeekToLast();
ASSERT_TRUE(db_iter->Valid());
ASSERT_EQ(db_iter->key().ToString(), "b");
ASSERT_EQ(db_iter->value().ToString(), "val,merge_2");
db_iter->Prev();
ASSERT_TRUE(db_iter->Valid());
ASSERT_EQ(db_iter->key().ToString(), "a");
ASSERT_EQ(db_iter->value().ToString(), "merge_1");
db_iter->Prev();
ASSERT_TRUE(!db_iter->Valid());
}
{
TestIterator* internal_iter = new TestIterator(BytewiseComparator());
internal_iter->AddMerge("a", "merge_1");
internal_iter->AddPut("b", "val");
internal_iter->AddMerge("b", "merge_2");
internal_iter->AddDeletion("b");
internal_iter->AddMerge("b", "merge_3");
internal_iter->AddMerge("c", "merge_4");
internal_iter->AddMerge("c", "merge_5");
internal_iter->AddDeletion("b");
internal_iter->AddMerge("b", "merge_6");
internal_iter->AddMerge("b", "merge_7");
internal_iter->AddMerge("b", "merge_8");
internal_iter->AddMerge("b", "merge_9");
internal_iter->AddMerge("b", "merge_10");
internal_iter->AddMerge("b", "merge_11");
internal_iter->AddDeletion("c");
internal_iter->Finish();
std::unique_ptr<Iterator> db_iter(NewDBIterator(
env_, ImmutableCFOptions(options), BytewiseComparator(), internal_iter,
4, options.max_sequential_skip_in_iterations, 0));
db_iter->SeekToLast();
ASSERT_TRUE(db_iter->Valid());
ASSERT_EQ(db_iter->key().ToString(), "b");
ASSERT_EQ(db_iter->value().ToString(), "merge_3");
db_iter->Prev();
ASSERT_TRUE(db_iter->Valid());
ASSERT_EQ(db_iter->key().ToString(), "a");
ASSERT_EQ(db_iter->value().ToString(), "merge_1");
db_iter->Prev();
ASSERT_TRUE(!db_iter->Valid());
}
{
TestIterator* internal_iter = new TestIterator(BytewiseComparator());
internal_iter->AddMerge("a", "merge_1");
internal_iter->AddPut("b", "val");
internal_iter->AddMerge("b", "merge_2");
internal_iter->AddDeletion("b");
internal_iter->AddMerge("b", "merge_3");
internal_iter->AddMerge("c", "merge_4");
internal_iter->AddMerge("c", "merge_5");
internal_iter->AddDeletion("b");
internal_iter->AddMerge("b", "merge_6");
internal_iter->AddMerge("b", "merge_7");
internal_iter->AddMerge("b", "merge_8");
internal_iter->AddMerge("b", "merge_9");
internal_iter->AddMerge("b", "merge_10");
internal_iter->AddMerge("b", "merge_11");
internal_iter->AddDeletion("c");
internal_iter->Finish();
std::unique_ptr<Iterator> db_iter(NewDBIterator(
env_, ImmutableCFOptions(options), BytewiseComparator(), internal_iter,
5, options.max_sequential_skip_in_iterations, 0));
db_iter->SeekToLast();
ASSERT_TRUE(db_iter->Valid());
ASSERT_EQ(db_iter->key().ToString(), "c");
ASSERT_EQ(db_iter->value().ToString(), "merge_4");
db_iter->Prev();
ASSERT_TRUE(db_iter->Valid());
ASSERT_EQ(db_iter->key().ToString(), "b");
ASSERT_EQ(db_iter->value().ToString(), "merge_3");
db_iter->Prev();
ASSERT_TRUE(db_iter->Valid());
ASSERT_EQ(db_iter->key().ToString(), "a");
ASSERT_EQ(db_iter->value().ToString(), "merge_1");
db_iter->Prev();
ASSERT_TRUE(!db_iter->Valid());
}
{
TestIterator* internal_iter = new TestIterator(BytewiseComparator());
internal_iter->AddMerge("a", "merge_1");
internal_iter->AddPut("b", "val");
internal_iter->AddMerge("b", "merge_2");
internal_iter->AddDeletion("b");
internal_iter->AddMerge("b", "merge_3");
internal_iter->AddMerge("c", "merge_4");
internal_iter->AddMerge("c", "merge_5");
internal_iter->AddDeletion("b");
internal_iter->AddMerge("b", "merge_6");
internal_iter->AddMerge("b", "merge_7");
internal_iter->AddMerge("b", "merge_8");
internal_iter->AddMerge("b", "merge_9");
internal_iter->AddMerge("b", "merge_10");
internal_iter->AddMerge("b", "merge_11");
internal_iter->AddDeletion("c");
internal_iter->Finish();
std::unique_ptr<Iterator> db_iter(NewDBIterator(
env_, ImmutableCFOptions(options), BytewiseComparator(), internal_iter,
6, options.max_sequential_skip_in_iterations, 0));
db_iter->SeekToLast();
ASSERT_TRUE(db_iter->Valid());
ASSERT_EQ(db_iter->key().ToString(), "c");
ASSERT_EQ(db_iter->value().ToString(), "merge_4,merge_5");
db_iter->Prev();
ASSERT_TRUE(db_iter->Valid());
ASSERT_TRUE(db_iter->Valid());
ASSERT_EQ(db_iter->key().ToString(), "b");
ASSERT_EQ(db_iter->value().ToString(), "merge_3");
db_iter->Prev();
ASSERT_TRUE(db_iter->Valid());
ASSERT_EQ(db_iter->key().ToString(), "a");
ASSERT_EQ(db_iter->value().ToString(), "merge_1");
db_iter->Prev();
ASSERT_TRUE(!db_iter->Valid());
}
{
TestIterator* internal_iter = new TestIterator(BytewiseComparator());
internal_iter->AddMerge("a", "merge_1");
internal_iter->AddPut("b", "val");
internal_iter->AddMerge("b", "merge_2");
internal_iter->AddDeletion("b");
internal_iter->AddMerge("b", "merge_3");
internal_iter->AddMerge("c", "merge_4");
internal_iter->AddMerge("c", "merge_5");
internal_iter->AddDeletion("b");
internal_iter->AddMerge("b", "merge_6");
internal_iter->AddMerge("b", "merge_7");
internal_iter->AddMerge("b", "merge_8");
internal_iter->AddMerge("b", "merge_9");
internal_iter->AddMerge("b", "merge_10");
internal_iter->AddMerge("b", "merge_11");
internal_iter->AddDeletion("c");
internal_iter->Finish();
std::unique_ptr<Iterator> db_iter(NewDBIterator(
env_, ImmutableCFOptions(options), BytewiseComparator(), internal_iter,
7, options.max_sequential_skip_in_iterations, 0));
db_iter->SeekToLast();
ASSERT_TRUE(db_iter->Valid());
ASSERT_EQ(db_iter->key().ToString(), "c");
ASSERT_EQ(db_iter->value().ToString(), "merge_4,merge_5");
db_iter->Prev();
ASSERT_TRUE(db_iter->Valid());
ASSERT_EQ(db_iter->key().ToString(), "a");
ASSERT_EQ(db_iter->value().ToString(), "merge_1");
db_iter->Prev();
ASSERT_TRUE(!db_iter->Valid());
}
{
TestIterator* internal_iter = new TestIterator(BytewiseComparator());
internal_iter->AddMerge("a", "merge_1");
internal_iter->AddPut("b", "val");
internal_iter->AddMerge("b", "merge_2");
internal_iter->AddDeletion("b");
internal_iter->AddMerge("b", "merge_3");
internal_iter->AddMerge("c", "merge_4");
internal_iter->AddMerge("c", "merge_5");
internal_iter->AddDeletion("b");
internal_iter->AddMerge("b", "merge_6");
internal_iter->AddMerge("b", "merge_7");
internal_iter->AddMerge("b", "merge_8");
internal_iter->AddMerge("b", "merge_9");
internal_iter->AddMerge("b", "merge_10");
internal_iter->AddMerge("b", "merge_11");
internal_iter->AddDeletion("c");
internal_iter->Finish();
std::unique_ptr<Iterator> db_iter(NewDBIterator(
env_, ImmutableCFOptions(options), BytewiseComparator(), internal_iter,
9, options.max_sequential_skip_in_iterations, 0));
db_iter->SeekToLast();
ASSERT_TRUE(db_iter->Valid());
ASSERT_EQ(db_iter->key().ToString(), "c");
ASSERT_EQ(db_iter->value().ToString(), "merge_4,merge_5");
db_iter->Prev();
ASSERT_TRUE(db_iter->Valid());
ASSERT_TRUE(db_iter->Valid());
ASSERT_EQ(db_iter->key().ToString(), "b");
ASSERT_EQ(db_iter->value().ToString(), "merge_6,merge_7");
db_iter->Prev();
ASSERT_TRUE(db_iter->Valid());
ASSERT_EQ(db_iter->key().ToString(), "a");
ASSERT_EQ(db_iter->value().ToString(), "merge_1");
db_iter->Prev();
ASSERT_TRUE(!db_iter->Valid());
}
{
TestIterator* internal_iter = new TestIterator(BytewiseComparator());
internal_iter->AddMerge("a", "merge_1");
internal_iter->AddPut("b", "val");
internal_iter->AddMerge("b", "merge_2");
internal_iter->AddDeletion("b");
internal_iter->AddMerge("b", "merge_3");
internal_iter->AddMerge("c", "merge_4");
internal_iter->AddMerge("c", "merge_5");
internal_iter->AddDeletion("b");
internal_iter->AddMerge("b", "merge_6");
internal_iter->AddMerge("b", "merge_7");
internal_iter->AddMerge("b", "merge_8");
internal_iter->AddMerge("b", "merge_9");
internal_iter->AddMerge("b", "merge_10");
internal_iter->AddMerge("b", "merge_11");
internal_iter->AddDeletion("c");
internal_iter->Finish();
std::unique_ptr<Iterator> db_iter(NewDBIterator(
env_, ImmutableCFOptions(options), BytewiseComparator(), internal_iter,
13, options.max_sequential_skip_in_iterations, 0));
db_iter->SeekToLast();
ASSERT_TRUE(db_iter->Valid());
ASSERT_EQ(db_iter->key().ToString(), "c");
ASSERT_EQ(db_iter->value().ToString(), "merge_4,merge_5");
db_iter->Prev();
ASSERT_TRUE(db_iter->Valid());
ASSERT_TRUE(db_iter->Valid());
ASSERT_EQ(db_iter->key().ToString(), "b");
ASSERT_EQ(db_iter->value().ToString(),
"merge_6,merge_7,merge_8,merge_9,merge_10,merge_11");
db_iter->Prev();
ASSERT_TRUE(db_iter->Valid());
ASSERT_EQ(db_iter->key().ToString(), "a");
ASSERT_EQ(db_iter->value().ToString(), "merge_1");
db_iter->Prev();
ASSERT_TRUE(!db_iter->Valid());
}
{
TestIterator* internal_iter = new TestIterator(BytewiseComparator());
internal_iter->AddMerge("a", "merge_1");
internal_iter->AddPut("b", "val");
internal_iter->AddMerge("b", "merge_2");
internal_iter->AddDeletion("b");
internal_iter->AddMerge("b", "merge_3");
internal_iter->AddMerge("c", "merge_4");
internal_iter->AddMerge("c", "merge_5");
internal_iter->AddDeletion("b");
internal_iter->AddMerge("b", "merge_6");
internal_iter->AddMerge("b", "merge_7");
internal_iter->AddMerge("b", "merge_8");
internal_iter->AddMerge("b", "merge_9");
internal_iter->AddMerge("b", "merge_10");
internal_iter->AddMerge("b", "merge_11");
internal_iter->AddDeletion("c");
internal_iter->Finish();
std::unique_ptr<Iterator> db_iter(NewDBIterator(
env_, ImmutableCFOptions(options), BytewiseComparator(), internal_iter,
14, options.max_sequential_skip_in_iterations, 0));
db_iter->SeekToLast();
ASSERT_TRUE(db_iter->Valid());
ASSERT_EQ(db_iter->key().ToString(), "b");
ASSERT_EQ(db_iter->value().ToString(),
"merge_6,merge_7,merge_8,merge_9,merge_10,merge_11");
db_iter->Prev();
ASSERT_TRUE(db_iter->Valid());
ASSERT_EQ(db_iter->key().ToString(), "a");
ASSERT_EQ(db_iter->value().ToString(), "merge_1");
db_iter->Prev();
ASSERT_TRUE(!db_iter->Valid());
}
}
TEST_F(DBIteratorTest, DBIterator8) {
Options options;
options.merge_operator = MergeOperators::CreateFromStringId("stringappend");
TestIterator* internal_iter = new TestIterator(BytewiseComparator());
internal_iter->AddDeletion("a");
internal_iter->AddPut("a", "0");
internal_iter->AddPut("b", "0");
internal_iter->Finish();
std::unique_ptr<Iterator> db_iter(NewDBIterator(
env_, ImmutableCFOptions(options), BytewiseComparator(), internal_iter,
10, options.max_sequential_skip_in_iterations, 0));
db_iter->SeekToLast();
ASSERT_TRUE(db_iter->Valid());
ASSERT_EQ(db_iter->key().ToString(), "b");
ASSERT_EQ(db_iter->value().ToString(), "0");
db_iter->Prev();
ASSERT_TRUE(db_iter->Valid());
ASSERT_EQ(db_iter->key().ToString(), "a");
ASSERT_EQ(db_iter->value().ToString(), "0");
}
// TODO(3.13): fix the issue of Seek() then Prev() which might not necessary
// return the biggest element smaller than the seek key.
TEST_F(DBIteratorTest, DBIterator9) {
Options options;
options.merge_operator = MergeOperators::CreateFromStringId("stringappend");
{
TestIterator* internal_iter = new TestIterator(BytewiseComparator());
internal_iter->AddMerge("a", "merge_1");
internal_iter->AddMerge("a", "merge_2");
internal_iter->AddMerge("b", "merge_3");
internal_iter->AddMerge("b", "merge_4");
internal_iter->AddMerge("d", "merge_5");
internal_iter->AddMerge("d", "merge_6");
internal_iter->Finish();
std::unique_ptr<Iterator> db_iter(NewDBIterator(
env_, ImmutableCFOptions(options), BytewiseComparator(), internal_iter,
10, options.max_sequential_skip_in_iterations, 0));
db_iter->SeekToLast();
ASSERT_TRUE(db_iter->Valid());
db_iter->Prev();
ASSERT_TRUE(db_iter->Valid());
ASSERT_EQ(db_iter->key().ToString(), "b");
ASSERT_EQ(db_iter->value().ToString(), "merge_3,merge_4");
db_iter->Next();
ASSERT_TRUE(db_iter->Valid());
ASSERT_EQ(db_iter->key().ToString(), "d");
ASSERT_EQ(db_iter->value().ToString(), "merge_5,merge_6");
db_iter->Seek("b");
ASSERT_TRUE(db_iter->Valid());
ASSERT_EQ(db_iter->key().ToString(), "b");
ASSERT_EQ(db_iter->value().ToString(), "merge_3,merge_4");
db_iter->Prev();
ASSERT_TRUE(db_iter->Valid());
ASSERT_EQ(db_iter->key().ToString(), "a");
ASSERT_EQ(db_iter->value().ToString(), "merge_1,merge_2");
db_iter->Seek("c");
ASSERT_TRUE(db_iter->Valid());
ASSERT_EQ(db_iter->key().ToString(), "d");
ASSERT_EQ(db_iter->value().ToString(), "merge_5,merge_6");
db_iter->Prev();
ASSERT_TRUE(db_iter->Valid());
ASSERT_EQ(db_iter->key().ToString(), "b");
ASSERT_EQ(db_iter->value().ToString(), "merge_3,merge_4");
}
}
// TODO(3.13): fix the issue of Seek() then Prev() which might not necessary
// return the biggest element smaller than the seek key.
TEST_F(DBIteratorTest, DBIterator10) {
Options options;
TestIterator* internal_iter = new TestIterator(BytewiseComparator());
internal_iter->AddPut("a", "1");
internal_iter->AddPut("b", "2");
internal_iter->AddPut("c", "3");
internal_iter->AddPut("d", "4");
internal_iter->Finish();
std::unique_ptr<Iterator> db_iter(NewDBIterator(
env_, ImmutableCFOptions(options), BytewiseComparator(), internal_iter,
10, options.max_sequential_skip_in_iterations, 0));
db_iter->Seek("c");
ASSERT_TRUE(db_iter->Valid());
db_iter->Prev();
ASSERT_TRUE(db_iter->Valid());
ASSERT_EQ(db_iter->key().ToString(), "b");
ASSERT_EQ(db_iter->value().ToString(), "2");
db_iter->Next();
ASSERT_TRUE(db_iter->Valid());
ASSERT_EQ(db_iter->key().ToString(), "c");
ASSERT_EQ(db_iter->value().ToString(), "3");
}
TEST_F(DBIteratorTest, SeekToLastOccurrenceSeq0) {
Options options;
options.merge_operator = nullptr;
TestIterator* internal_iter = new TestIterator(BytewiseComparator());
internal_iter->AddPut("a", "1");
internal_iter->AddPut("b", "2");
internal_iter->Finish();
std::unique_ptr<Iterator> db_iter(
NewDBIterator(env_, ImmutableCFOptions(options), BytewiseComparator(),
internal_iter, 10, 0 /* force seek */, 0));
db_iter->SeekToFirst();
ASSERT_TRUE(db_iter->Valid());
ASSERT_EQ(db_iter->key().ToString(), "a");
ASSERT_EQ(db_iter->value().ToString(), "1");
db_iter->Next();
ASSERT_TRUE(db_iter->Valid());
ASSERT_EQ(db_iter->key().ToString(), "b");
ASSERT_EQ(db_iter->value().ToString(), "2");
db_iter->Next();
ASSERT_FALSE(db_iter->Valid());
}
TEST_F(DBIteratorTest, DBIterator11) {
Options options;
options.merge_operator = MergeOperators::CreateFromStringId("stringappend");
TestIterator* internal_iter = new TestIterator(BytewiseComparator());
internal_iter->AddPut("a", "0");
internal_iter->AddPut("b", "0");
internal_iter->AddSingleDeletion("b");
internal_iter->AddMerge("a", "1");
internal_iter->AddMerge("b", "2");
internal_iter->Finish();
std::unique_ptr<Iterator> db_iter(NewDBIterator(
env_, ImmutableCFOptions(options), BytewiseComparator(), internal_iter, 1,
options.max_sequential_skip_in_iterations, 0));
db_iter->SeekToFirst();
ASSERT_TRUE(db_iter->Valid());
ASSERT_EQ(db_iter->key().ToString(), "a");
ASSERT_EQ(db_iter->value().ToString(), "0");
db_iter->Next();
ASSERT_TRUE(db_iter->Valid());
ASSERT_EQ(db_iter->key().ToString(), "b");
db_iter->Next();
ASSERT_FALSE(db_iter->Valid());
}
TEST_F(DBIteratorTest, DBIterator12) {
Options options;
options.merge_operator = nullptr;
TestIterator* internal_iter = new TestIterator(BytewiseComparator());
internal_iter->AddPut("a", "1");
internal_iter->AddPut("b", "2");
internal_iter->AddPut("c", "3");
internal_iter->AddSingleDeletion("b");
internal_iter->Finish();
std::unique_ptr<Iterator> db_iter(
NewDBIterator(env_, ImmutableCFOptions(options), BytewiseComparator(),
internal_iter, 10, 0, 0));
db_iter->SeekToLast();
ASSERT_TRUE(db_iter->Valid());
ASSERT_EQ(db_iter->key().ToString(), "c");
ASSERT_EQ(db_iter->value().ToString(), "3");
db_iter->Prev();
ASSERT_TRUE(db_iter->Valid());
ASSERT_EQ(db_iter->key().ToString(), "a");
ASSERT_EQ(db_iter->value().ToString(), "1");
db_iter->Prev();
ASSERT_FALSE(db_iter->Valid());
}
class DBIterWithMergeIterTest : public testing::Test {
public:
DBIterWithMergeIterTest()
: env_(Env::Default()), icomp_(BytewiseComparator()) {
options_.merge_operator = nullptr;
internal_iter1_ = new TestIterator(BytewiseComparator());
internal_iter1_->Add("a", kTypeValue, "1", 3u);
internal_iter1_->Add("f", kTypeValue, "2", 5u);
internal_iter1_->Add("g", kTypeValue, "3", 7u);
internal_iter1_->Finish();
internal_iter2_ = new TestIterator(BytewiseComparator());
internal_iter2_->Add("a", kTypeValue, "4", 6u);
internal_iter2_->Add("b", kTypeValue, "5", 1u);
internal_iter2_->Add("c", kTypeValue, "6", 2u);
internal_iter2_->Add("d", kTypeValue, "7", 3u);
internal_iter2_->Finish();
std::vector<InternalIterator*> child_iters;
child_iters.push_back(internal_iter1_);
child_iters.push_back(internal_iter2_);
InternalKeyComparator icomp(BytewiseComparator());
InternalIterator* merge_iter =
NewMergingIterator(&icomp_, &child_iters[0], 2u);
db_iter_.reset(NewDBIterator(env_, ImmutableCFOptions(options_),
BytewiseComparator(), merge_iter,
8 /* read data earlier than seqId 8 */,
3 /* max iterators before reseek */, 0));
}
Env* env_;
Options options_;
TestIterator* internal_iter1_;
TestIterator* internal_iter2_;
InternalKeyComparator icomp_;
Iterator* merge_iter_;
std::unique_ptr<Iterator> db_iter_;
};
TEST_F(DBIterWithMergeIterTest, InnerMergeIterator1) {
db_iter_->SeekToFirst();
ASSERT_TRUE(db_iter_->Valid());
ASSERT_EQ(db_iter_->key().ToString(), "a");
ASSERT_EQ(db_iter_->value().ToString(), "4");
db_iter_->Next();
ASSERT_TRUE(db_iter_->Valid());
ASSERT_EQ(db_iter_->key().ToString(), "b");
ASSERT_EQ(db_iter_->value().ToString(), "5");
db_iter_->Next();
ASSERT_TRUE(db_iter_->Valid());
ASSERT_EQ(db_iter_->key().ToString(), "c");
ASSERT_EQ(db_iter_->value().ToString(), "6");
db_iter_->Next();
ASSERT_TRUE(db_iter_->Valid());
ASSERT_EQ(db_iter_->key().ToString(), "d");
ASSERT_EQ(db_iter_->value().ToString(), "7");
db_iter_->Next();
ASSERT_TRUE(db_iter_->Valid());
ASSERT_EQ(db_iter_->key().ToString(), "f");
ASSERT_EQ(db_iter_->value().ToString(), "2");
db_iter_->Next();
ASSERT_TRUE(db_iter_->Valid());
ASSERT_EQ(db_iter_->key().ToString(), "g");
ASSERT_EQ(db_iter_->value().ToString(), "3");
db_iter_->Next();
ASSERT_FALSE(db_iter_->Valid());
}
TEST_F(DBIterWithMergeIterTest, InnerMergeIterator2) {
// Test Prev() when one child iterator is at its end.
db_iter_->Seek("g");
ASSERT_TRUE(db_iter_->Valid());
ASSERT_EQ(db_iter_->key().ToString(), "g");
ASSERT_EQ(db_iter_->value().ToString(), "3");
db_iter_->Prev();
ASSERT_TRUE(db_iter_->Valid());
ASSERT_EQ(db_iter_->key().ToString(), "f");
ASSERT_EQ(db_iter_->value().ToString(), "2");
db_iter_->Prev();
ASSERT_TRUE(db_iter_->Valid());
ASSERT_EQ(db_iter_->key().ToString(), "d");
ASSERT_EQ(db_iter_->value().ToString(), "7");
db_iter_->Prev();
ASSERT_TRUE(db_iter_->Valid());
ASSERT_EQ(db_iter_->key().ToString(), "c");
ASSERT_EQ(db_iter_->value().ToString(), "6");
db_iter_->Prev();
ASSERT_TRUE(db_iter_->Valid());
ASSERT_EQ(db_iter_->key().ToString(), "b");
ASSERT_EQ(db_iter_->value().ToString(), "5");
db_iter_->Prev();
ASSERT_TRUE(db_iter_->Valid());
ASSERT_EQ(db_iter_->key().ToString(), "a");
ASSERT_EQ(db_iter_->value().ToString(), "4");
}
TEST_F(DBIterWithMergeIterTest, InnerMergeIteratorDataRace1) {
// Test Prev() when one child iterator is at its end but more rows
// are added.
db_iter_->Seek("f");
ASSERT_TRUE(db_iter_->Valid());
ASSERT_EQ(db_iter_->key().ToString(), "f");
ASSERT_EQ(db_iter_->value().ToString(), "2");
// Test call back inserts a key in the end of the mem table after
// MergeIterator::Prev() realized the mem table iterator is at its end
// and before an SeekToLast() is called.
rocksdb::SyncPoint::GetInstance()->SetCallBack(
"MergeIterator::Prev:BeforeSeekToLast",
[&](void* arg) { internal_iter2_->Add("z", kTypeValue, "7", 12u); });
rocksdb::SyncPoint::GetInstance()->EnableProcessing();
db_iter_->Prev();
ASSERT_TRUE(db_iter_->Valid());
ASSERT_EQ(db_iter_->key().ToString(), "d");
ASSERT_EQ(db_iter_->value().ToString(), "7");
db_iter_->Prev();
ASSERT_TRUE(db_iter_->Valid());
ASSERT_EQ(db_iter_->key().ToString(), "c");
ASSERT_EQ(db_iter_->value().ToString(), "6");
db_iter_->Prev();
ASSERT_TRUE(db_iter_->Valid());
ASSERT_EQ(db_iter_->key().ToString(), "b");
ASSERT_EQ(db_iter_->value().ToString(), "5");
db_iter_->Prev();
ASSERT_TRUE(db_iter_->Valid());
ASSERT_EQ(db_iter_->key().ToString(), "a");
ASSERT_EQ(db_iter_->value().ToString(), "4");
rocksdb::SyncPoint::GetInstance()->DisableProcessing();
}
TEST_F(DBIterWithMergeIterTest, InnerMergeIteratorDataRace2) {
// Test Prev() when one child iterator is at its end but more rows
// are added.
db_iter_->Seek("f");
ASSERT_TRUE(db_iter_->Valid());
ASSERT_EQ(db_iter_->key().ToString(), "f");
ASSERT_EQ(db_iter_->value().ToString(), "2");
// Test call back inserts entries for update a key in the end of the
// mem table after MergeIterator::Prev() realized the mem tableiterator is at
// its end and before an SeekToLast() is called.
rocksdb::SyncPoint::GetInstance()->SetCallBack(
"MergeIterator::Prev:BeforeSeekToLast", [&](void* arg) {
internal_iter2_->Add("z", kTypeValue, "7", 12u);
internal_iter2_->Add("z", kTypeValue, "7", 11u);
});
rocksdb::SyncPoint::GetInstance()->EnableProcessing();
db_iter_->Prev();
ASSERT_TRUE(db_iter_->Valid());
ASSERT_EQ(db_iter_->key().ToString(), "d");
ASSERT_EQ(db_iter_->value().ToString(), "7");
db_iter_->Prev();
ASSERT_TRUE(db_iter_->Valid());
ASSERT_EQ(db_iter_->key().ToString(), "c");
ASSERT_EQ(db_iter_->value().ToString(), "6");
db_iter_->Prev();
ASSERT_TRUE(db_iter_->Valid());
ASSERT_EQ(db_iter_->key().ToString(), "b");
ASSERT_EQ(db_iter_->value().ToString(), "5");
db_iter_->Prev();
ASSERT_TRUE(db_iter_->Valid());
ASSERT_EQ(db_iter_->key().ToString(), "a");
ASSERT_EQ(db_iter_->value().ToString(), "4");
rocksdb::SyncPoint::GetInstance()->DisableProcessing();
}
TEST_F(DBIterWithMergeIterTest, InnerMergeIteratorDataRace3) {
// Test Prev() when one child iterator is at its end but more rows
// are added and max_skipped is triggered.
db_iter_->Seek("f");
ASSERT_TRUE(db_iter_->Valid());
ASSERT_EQ(db_iter_->key().ToString(), "f");
ASSERT_EQ(db_iter_->value().ToString(), "2");
// Test call back inserts entries for update a key in the end of the
// mem table after MergeIterator::Prev() realized the mem table iterator is at
// its end and before an SeekToLast() is called.
rocksdb::SyncPoint::GetInstance()->SetCallBack(
"MergeIterator::Prev:BeforeSeekToLast", [&](void* arg) {
internal_iter2_->Add("z", kTypeValue, "7", 16u, true);
internal_iter2_->Add("z", kTypeValue, "7", 15u, true);
internal_iter2_->Add("z", kTypeValue, "7", 14u, true);
internal_iter2_->Add("z", kTypeValue, "7", 13u, true);
internal_iter2_->Add("z", kTypeValue, "7", 12u, true);
internal_iter2_->Add("z", kTypeValue, "7", 11u, true);
});
rocksdb::SyncPoint::GetInstance()->EnableProcessing();
db_iter_->Prev();
ASSERT_TRUE(db_iter_->Valid());
ASSERT_EQ(db_iter_->key().ToString(), "d");
ASSERT_EQ(db_iter_->value().ToString(), "7");
db_iter_->Prev();
ASSERT_TRUE(db_iter_->Valid());
ASSERT_EQ(db_iter_->key().ToString(), "c");
ASSERT_EQ(db_iter_->value().ToString(), "6");
db_iter_->Prev();
ASSERT_TRUE(db_iter_->Valid());
ASSERT_EQ(db_iter_->key().ToString(), "b");
ASSERT_EQ(db_iter_->value().ToString(), "5");
db_iter_->Prev();
ASSERT_TRUE(db_iter_->Valid());
ASSERT_EQ(db_iter_->key().ToString(), "a");
ASSERT_EQ(db_iter_->value().ToString(), "4");
rocksdb::SyncPoint::GetInstance()->DisableProcessing();
}
TEST_F(DBIterWithMergeIterTest, InnerMergeIteratorDataRace4) {
// Test Prev() when one child iterator has more rows inserted
// between Seek() and Prev() when changing directions.
internal_iter2_->Add("z", kTypeValue, "9", 4u);
db_iter_->Seek("g");
ASSERT_TRUE(db_iter_->Valid());
ASSERT_EQ(db_iter_->key().ToString(), "g");
ASSERT_EQ(db_iter_->value().ToString(), "3");
// Test call back inserts entries for update a key before "z" in
// mem table after MergeIterator::Prev() calls mem table iterator's
// Seek() and before calling Prev()
rocksdb::SyncPoint::GetInstance()->SetCallBack(
"MergeIterator::Prev:BeforePrev", [&](void* arg) {
IteratorWrapper* it = reinterpret_cast<IteratorWrapper*>(arg);
if (it->key().starts_with("z")) {
internal_iter2_->Add("x", kTypeValue, "7", 16u, true);
internal_iter2_->Add("x", kTypeValue, "7", 15u, true);
internal_iter2_->Add("x", kTypeValue, "7", 14u, true);
internal_iter2_->Add("x", kTypeValue, "7", 13u, true);
internal_iter2_->Add("x", kTypeValue, "7", 12u, true);
internal_iter2_->Add("x", kTypeValue, "7", 11u, true);
}
});
rocksdb::SyncPoint::GetInstance()->EnableProcessing();
db_iter_->Prev();
ASSERT_TRUE(db_iter_->Valid());
ASSERT_EQ(db_iter_->key().ToString(), "f");
ASSERT_EQ(db_iter_->value().ToString(), "2");
db_iter_->Prev();
ASSERT_TRUE(db_iter_->Valid());
ASSERT_EQ(db_iter_->key().ToString(), "d");
ASSERT_EQ(db_iter_->value().ToString(), "7");
db_iter_->Prev();
ASSERT_TRUE(db_iter_->Valid());
ASSERT_EQ(db_iter_->key().ToString(), "c");
ASSERT_EQ(db_iter_->value().ToString(), "6");
db_iter_->Prev();
ASSERT_TRUE(db_iter_->Valid());
ASSERT_EQ(db_iter_->key().ToString(), "b");
ASSERT_EQ(db_iter_->value().ToString(), "5");
db_iter_->Prev();
ASSERT_TRUE(db_iter_->Valid());
ASSERT_EQ(db_iter_->key().ToString(), "a");
ASSERT_EQ(db_iter_->value().ToString(), "4");
rocksdb::SyncPoint::GetInstance()->DisableProcessing();
}
TEST_F(DBIterWithMergeIterTest, InnerMergeIteratorDataRace5) {
internal_iter2_->Add("z", kTypeValue, "9", 4u);
// Test Prev() when one child iterator has more rows inserted
// between Seek() and Prev() when changing directions.
db_iter_->Seek("g");
ASSERT_TRUE(db_iter_->Valid());
ASSERT_EQ(db_iter_->key().ToString(), "g");
ASSERT_EQ(db_iter_->value().ToString(), "3");
// Test call back inserts entries for update a key before "z" in
// mem table after MergeIterator::Prev() calls mem table iterator's
// Seek() and before calling Prev()
rocksdb::SyncPoint::GetInstance()->SetCallBack(
"MergeIterator::Prev:BeforePrev", [&](void* arg) {
IteratorWrapper* it = reinterpret_cast<IteratorWrapper*>(arg);
if (it->key().starts_with("z")) {
internal_iter2_->Add("x", kTypeValue, "7", 16u, true);
internal_iter2_->Add("x", kTypeValue, "7", 15u, true);
}
});
rocksdb::SyncPoint::GetInstance()->EnableProcessing();
db_iter_->Prev();
ASSERT_TRUE(db_iter_->Valid());
ASSERT_EQ(db_iter_->key().ToString(), "f");
ASSERT_EQ(db_iter_->value().ToString(), "2");
db_iter_->Prev();
ASSERT_TRUE(db_iter_->Valid());
ASSERT_EQ(db_iter_->key().ToString(), "d");
ASSERT_EQ(db_iter_->value().ToString(), "7");
db_iter_->Prev();
ASSERT_TRUE(db_iter_->Valid());
ASSERT_EQ(db_iter_->key().ToString(), "c");
ASSERT_EQ(db_iter_->value().ToString(), "6");
db_iter_->Prev();
ASSERT_TRUE(db_iter_->Valid());
ASSERT_EQ(db_iter_->key().ToString(), "b");
ASSERT_EQ(db_iter_->value().ToString(), "5");
db_iter_->Prev();
ASSERT_TRUE(db_iter_->Valid());
ASSERT_EQ(db_iter_->key().ToString(), "a");
ASSERT_EQ(db_iter_->value().ToString(), "4");
rocksdb::SyncPoint::GetInstance()->DisableProcessing();
}
TEST_F(DBIterWithMergeIterTest, InnerMergeIteratorDataRace6) {
internal_iter2_->Add("z", kTypeValue, "9", 4u);
// Test Prev() when one child iterator has more rows inserted
// between Seek() and Prev() when changing directions.
db_iter_->Seek("g");
ASSERT_TRUE(db_iter_->Valid());
ASSERT_EQ(db_iter_->key().ToString(), "g");
ASSERT_EQ(db_iter_->value().ToString(), "3");
// Test call back inserts an entry for update a key before "z" in
// mem table after MergeIterator::Prev() calls mem table iterator's
// Seek() and before calling Prev()
rocksdb::SyncPoint::GetInstance()->SetCallBack(
"MergeIterator::Prev:BeforePrev", [&](void* arg) {
IteratorWrapper* it = reinterpret_cast<IteratorWrapper*>(arg);
if (it->key().starts_with("z")) {
internal_iter2_->Add("x", kTypeValue, "7", 16u, true);
}
});
rocksdb::SyncPoint::GetInstance()->EnableProcessing();
db_iter_->Prev();
ASSERT_TRUE(db_iter_->Valid());
ASSERT_EQ(db_iter_->key().ToString(), "f");
ASSERT_EQ(db_iter_->value().ToString(), "2");
db_iter_->Prev();
ASSERT_TRUE(db_iter_->Valid());
ASSERT_EQ(db_iter_->key().ToString(), "d");
ASSERT_EQ(db_iter_->value().ToString(), "7");
db_iter_->Prev();
ASSERT_TRUE(db_iter_->Valid());
ASSERT_EQ(db_iter_->key().ToString(), "c");
ASSERT_EQ(db_iter_->value().ToString(), "6");
db_iter_->Prev();
ASSERT_TRUE(db_iter_->Valid());
ASSERT_EQ(db_iter_->key().ToString(), "b");
ASSERT_EQ(db_iter_->value().ToString(), "5");
db_iter_->Prev();
ASSERT_TRUE(db_iter_->Valid());
ASSERT_EQ(db_iter_->key().ToString(), "a");
ASSERT_EQ(db_iter_->value().ToString(), "4");
rocksdb::SyncPoint::GetInstance()->DisableProcessing();
}
TEST_F(DBIterWithMergeIterTest, InnerMergeIteratorDataRace7) {
internal_iter1_->Add("u", kTypeValue, "10", 4u);
internal_iter1_->Add("v", kTypeValue, "11", 4u);
internal_iter1_->Add("w", kTypeValue, "12", 4u);
internal_iter2_->Add("z", kTypeValue, "9", 4u);
// Test Prev() when one child iterator has more rows inserted
// between Seek() and Prev() when changing directions.
db_iter_->Seek("g");
ASSERT_TRUE(db_iter_->Valid());
ASSERT_EQ(db_iter_->key().ToString(), "g");
ASSERT_EQ(db_iter_->value().ToString(), "3");
// Test call back inserts entries for update a key before "z" in
// mem table after MergeIterator::Prev() calls mem table iterator's
// Seek() and before calling Prev()
rocksdb::SyncPoint::GetInstance()->SetCallBack(
"MergeIterator::Prev:BeforePrev", [&](void* arg) {
IteratorWrapper* it = reinterpret_cast<IteratorWrapper*>(arg);
if (it->key().starts_with("z")) {
internal_iter2_->Add("x", kTypeValue, "7", 16u, true);
internal_iter2_->Add("x", kTypeValue, "7", 15u, true);
internal_iter2_->Add("x", kTypeValue, "7", 14u, true);
internal_iter2_->Add("x", kTypeValue, "7", 13u, true);
internal_iter2_->Add("x", kTypeValue, "7", 12u, true);
internal_iter2_->Add("x", kTypeValue, "7", 11u, true);
}
});
rocksdb::SyncPoint::GetInstance()->EnableProcessing();
db_iter_->Prev();
ASSERT_TRUE(db_iter_->Valid());
ASSERT_EQ(db_iter_->key().ToString(), "f");
ASSERT_EQ(db_iter_->value().ToString(), "2");
db_iter_->Prev();
ASSERT_TRUE(db_iter_->Valid());
ASSERT_EQ(db_iter_->key().ToString(), "d");
ASSERT_EQ(db_iter_->value().ToString(), "7");
db_iter_->Prev();
ASSERT_TRUE(db_iter_->Valid());
ASSERT_EQ(db_iter_->key().ToString(), "c");
ASSERT_EQ(db_iter_->value().ToString(), "6");
db_iter_->Prev();
ASSERT_TRUE(db_iter_->Valid());
ASSERT_EQ(db_iter_->key().ToString(), "b");
ASSERT_EQ(db_iter_->value().ToString(), "5");
db_iter_->Prev();
ASSERT_TRUE(db_iter_->Valid());
ASSERT_EQ(db_iter_->key().ToString(), "a");
ASSERT_EQ(db_iter_->value().ToString(), "4");
rocksdb::SyncPoint::GetInstance()->DisableProcessing();
}
TEST_F(DBIterWithMergeIterTest, InnerMergeIteratorDataRace8) {
// internal_iter1_: a, f, g
// internal_iter2_: a, b, c, d, adding (z)
internal_iter2_->Add("z", kTypeValue, "9", 4u);
// Test Prev() when one child iterator has more rows inserted
// between Seek() and Prev() when changing directions.
db_iter_->Seek("g");
ASSERT_TRUE(db_iter_->Valid());
ASSERT_EQ(db_iter_->key().ToString(), "g");
ASSERT_EQ(db_iter_->value().ToString(), "3");
// Test call back inserts two keys before "z" in mem table after
// MergeIterator::Prev() calls mem table iterator's Seek() and
// before calling Prev()
rocksdb::SyncPoint::GetInstance()->SetCallBack(
"MergeIterator::Prev:BeforePrev", [&](void* arg) {
IteratorWrapper* it = reinterpret_cast<IteratorWrapper*>(arg);
if (it->key().starts_with("z")) {
internal_iter2_->Add("x", kTypeValue, "7", 16u, true);
internal_iter2_->Add("y", kTypeValue, "7", 17u, true);
}
});
rocksdb::SyncPoint::GetInstance()->EnableProcessing();
db_iter_->Prev();
ASSERT_TRUE(db_iter_->Valid());
ASSERT_EQ(db_iter_->key().ToString(), "f");
ASSERT_EQ(db_iter_->value().ToString(), "2");
db_iter_->Prev();
ASSERT_TRUE(db_iter_->Valid());
ASSERT_EQ(db_iter_->key().ToString(), "d");
ASSERT_EQ(db_iter_->value().ToString(), "7");
rocksdb::SyncPoint::GetInstance()->DisableProcessing();
}
} // namespace rocksdb
int main(int argc, char** argv) {
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
|
; @Author: Piyush Mehta
assume cs:code,ds:data
data segment
pa equ 20a0h
pb equ 20a1h
pc equ 20a2h
cr equ 20a3h
data ends
code segment
start:
mov ax,data
mov ds,ax
mov al,82h
mov dx,cr
out dx,al
mov dx,pa
mov al,00h
out dx,al
mov al,0f0h
out dx,al
mov dx,pb
scan_agn: in al,dx
and al,0fh
cmp al,0fh
je scan_agn
mov cl,01
rot_agn: ror al,1
jc next
jmp start_mov
next: add cl,03h
jmp rot_agn
start_mov: mov dx,pa
mov al,0f0h
next_led: out dx,al
call delay
inc al
dec cl
jnz next_led
call delay
call delay
dec al
and al,0fh
come_down: out dx,al
call delay
dec al
cmp al,00h
jge come_down
mov ah,4ch
int 21h
delay proc
mov bx,02fffh
l2: mov di,0ffffh
l1: dec di
jnz l1
dec bx
jnz l2
ret
delay endp
code ends
end start |
; VBXE Set XDL
.proc @setxdl(.byte a) .reg
asl @
sta idx
fxs FX_MEMS #$80+MAIN.SYSTEM.VBXE_XDLADR/$1000
ldy #0
idx equ *-1
lda MAIN.SYSTEM.VBXE_WINDOW+s@xdl.xdlc
and msk,y
ora val,y
sta MAIN.SYSTEM.VBXE_WINDOW+s@xdl.xdlc
lda MAIN.SYSTEM.VBXE_WINDOW+s@xdl.xdlc+1
and msk+1,y
ora val+1,y
sta MAIN.SYSTEM.VBXE_WINDOW+s@xdl.xdlc+1
fxs FX_MEMS #0
rts
msk .array [6] .word
[e@xdl.mapon] = [XDLC_MAPON|XDLC_MAPOFF]^$FFFF
[e@xdl.mapoff] = [XDLC_MAPON|XDLC_MAPOFF]^$FFFF
[e@xdl.ovron] = [XDLC_GMON|XDLC_OVOFF|XDLC_LR|XDLC_HR]^$FFFF
[e@xdl.ovroff] = [XDLC_GMON|XDLC_OVOFF|XDLC_LR|XDLC_HR]^$FFFF
[e@xdl.hr] = [XDLC_GMON|XDLC_OVOFF|XDLC_LR|XDLC_HR]^$FFFF
[e@xdl.lr] = [XDLC_GMON|XDLC_OVOFF|XDLC_LR|XDLC_HR]^$FFFF
.enda
val .array [6] .word
[e@xdl.mapon] = XDLC_MAPON
[e@xdl.mapoff] = XDLC_MAPOFF
[e@xdl.ovron] = XDLC_GMON
[e@xdl.ovroff] = XDLC_OVOFF
[e@xdl.hr] = XDLC_GMON|XDLC_HR
[e@xdl.lr] = XDLC_GMON|XDLC_LR
.enda
.endp
|
; A060693: Triangle (0 <= k <= n) read by rows: T(n, k) is the number of Schröder paths from (0,0) to (2n,0) having k peaks.
; Submitted by Christian Krause
; 1,1,1,2,3,1,5,10,6,1,14,35,30,10,1,42,126,140,70,15,1,132,462,630,420,140,21,1,429,1716,2772,2310,1050,252,28,1,1430,6435,12012,12012,6930,2310,420,36,1,4862,24310,51480,60060,42042,18018,4620,660,45,1,16796,92378,218790,291720,240240,126126,42042,8580,990,55,1,58786,352716,923780,1385670,1312740,816816,336336,90090,15015,1430,66,1,208012,1352078,3879876,6466460,6928350,4988412,2450448,816816,180180,25025,2002,78,1,742900,5200300,16224936,29745716,35565530,29099070,16628040,6651216,1837836
lpb $0
add $1,1
sub $0,$1
mov $2,$1
sub $2,$0
lpe
add $1,$2
bin $1,$0
mov $0,2
mul $0,$2
bin $0,$2
add $2,1
div $0,$2
mul $1,$0
mov $0,$1
|
; int vfprintf_unlocked(FILE *stream, const char *format, void *arg)
SECTION code_clib
SECTION code_stdio
PUBLIC _vfprintf_unlocked
EXTERN asm_vfprintf_unlocked
_vfprintf_unlocked:
pop af
pop ix
pop de
pop bc
push bc
push de
push hl
push af
jp asm_vfprintf_unlocked
|
; A300290: Period 6: repeat [0, 1, 2, 2, 3, 3].
; 0,1,2,2,3,3,0,1,2,2,3,3,0,1,2,2,3,3,0,1,2,2,3,3,0,1,2,2,3,3,0,1,2,2,3,3,0,1,2,2,3,3,0,1,2,2,3,3,0,1,2,2,3,3,0,1,2,2,3,3,0,1,2,2,3,3,0,1,2,2,3,3,0,1,2,2,3,3,0,1,2,2,3,3,0,1,2,2,3,3
mod $0,6
lpb $0
div $0,2
add $0,$2
add $0,1
mov $2,11
lpe
|
; A275973: A binary sequence due to Harold Jeffreys.
; 1,0,1,1,0,0,0,0,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,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,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
mov $1,2
lpb $0
mov $1,$0
div $0,4
lpe
div $1,2
mov $0,$1
|
#include <catch.hpp>
#include <oqs/system/dissipative.h>
namespace oqs
{
namespace Test
{
TEST_CASE("can create dissipative part", "[system][init][dissipative]")
{
const int num_dissipators = 1;
const std::vector<Eigen::MatrixXcd> dissipators{Eigen::MatrixXcd::Zero(3, 3)};
DissipativePart dp(num_dissipators, dissipators);
REQUIRE(1);
}
} // namespace Test
} // namespace oqs
|
/****************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the QtCore module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** GNU Lesser General Public License Usage
** Alternatively, this file may be used under the terms of the GNU Lesser
** General Public License version 3 as published by the Free Software
** Foundation and appearing in the file LICENSE.LGPL3 included in the
** packaging of this file. Please review the following information to
** ensure the GNU Lesser General Public License version 3 requirements
** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 2.0 or (at your option) the GNU General
** Public license version 3 or any later version approved by the KDE Free
** Qt Foundation. The licenses are as published by the Free Software
** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
** included in the packaging of this file. Please review the following
** information to ensure the GNU General Public License requirements will
** be met: https://www.gnu.org/licenses/gpl-2.0.html and
** https://www.gnu.org/licenses/gpl-3.0.html.
**
** $QT_END_LICENSE$
**
****************************************************************************/
#include "qwineventnotifier.h"
#ifdef Q_OS_WINRT
#include "qeventdispatcher_winrt_p.h"
#else
#include "qeventdispatcher_win_p.h"
#endif
#include "qcoreapplication.h"
#include <private/qthread_p.h>
QT_BEGIN_NAMESPACE
class QWinEventNotifierPrivate : public QObjectPrivate
{
Q_DECLARE_PUBLIC(QWinEventNotifier)
public:
QWinEventNotifierPrivate()
: handleToEvent(0), enabled(false) {}
QWinEventNotifierPrivate(HANDLE h, bool e)
: handleToEvent(h), enabled(e) {}
HANDLE handleToEvent;
bool enabled;
};
/*!
\class QWinEventNotifier
\inmodule QtCore
\since 5.0
\brief The QWinEventNotifier class provides support for the Windows Wait functions.
The QWinEventNotifier class makes it possible to use the wait
functions on windows in a asynchronous manner. With this class,
you can register a HANDLE to an event and get notification when
that event becomes signalled. The state of the event is not modified
in the process so if it is a manual reset event you will need to
reset it after the notification.
Once you have created a event object using Windows API such as
CreateEvent() or OpenEvent(), you can create an event notifier to
monitor the event handle. If the event notifier is enabled, it will
emit the activated() signal whenever the corresponding event object
is signalled.
The setEnabled() function allows you to disable as well as enable the
event notifier. It is generally advisable to explicitly enable or
disable the event notifier. A disabled notifier does nothing when the
event object is signalled (the same effect as not creating the
event notifier). Use the isEnabled() function to determine the
notifier's current status.
Finally, you can use the setHandle() function to register a new event
object, and the handle() function to retrieve the event handle.
\b{Further information:}
Although the class is called QWinEventNotifier, it can be used for
certain other objects which are so-called synchronization
objects, such as Processes, Threads, Waitable timers.
\warning This class is only available on Windows.
*/
/*!
\fn void QWinEventNotifier::activated(HANDLE hEvent)
This signal is emitted whenever the event notifier is enabled and
the corresponding HANDLE is signalled.
The state of the event is not modified in the process, so if it is a
manual reset event, you will need to reset it after the notification.
The object is passed in the \a hEvent parameter.
\sa handle()
*/
/*!
Constructs an event notifier with the given \a parent.
*/
QWinEventNotifier::QWinEventNotifier(QObject *parent)
: QObject(*new QWinEventNotifierPrivate, parent)
{}
/*!
Constructs an event notifier with the given \a parent. It enables
the notifier, and watches for the event \a hEvent.
The notifier is enabled by default, i.e. it emits the activated() signal
whenever the corresponding event is signalled. However, it is generally
advisable to explicitly enable or disable the event notifier.
\sa setEnabled(), isEnabled()
*/
QWinEventNotifier::QWinEventNotifier(HANDLE hEvent, QObject *parent)
: QObject(*new QWinEventNotifierPrivate(hEvent, false), parent)
{
Q_D(QWinEventNotifier);
QAbstractEventDispatcher *eventDispatcher = d->threadData->eventDispatcher.load();
if (Q_UNLIKELY(!eventDispatcher)) {
qWarning("QWinEventNotifier: Can only be used with threads started with QThread");
return;
}
eventDispatcher->registerEventNotifier(this);
d->enabled = true;
}
/*!
Destroys this notifier.
*/
QWinEventNotifier::~QWinEventNotifier()
{
setEnabled(false);
}
/*!
Register the HANDLE \a hEvent. The old HANDLE will be automatically
unregistered.
\b Note: The notifier will be disabled as a side effect and needs
to be re-enabled.
\sa handle(), setEnabled()
*/
void QWinEventNotifier::setHandle(HANDLE hEvent)
{
Q_D(QWinEventNotifier);
setEnabled(false);
d->handleToEvent = hEvent;
}
/*!
Returns the HANDLE that has been registered in the notifier.
\sa setHandle()
*/
HANDLE QWinEventNotifier::handle() const
{
Q_D(const QWinEventNotifier);
return d->handleToEvent;
}
/*!
Returns \c true if the notifier is enabled; otherwise returns \c false.
\sa setEnabled()
*/
bool QWinEventNotifier::isEnabled() const
{
Q_D(const QWinEventNotifier);
return d->enabled;
}
/*!
If \a enable is true, the notifier is enabled; otherwise the notifier
is disabled.
\sa isEnabled(), activated()
*/
void QWinEventNotifier::setEnabled(bool enable)
{
Q_D(QWinEventNotifier);
if (d->enabled == enable) // no change
return;
d->enabled = enable;
QAbstractEventDispatcher *eventDispatcher = d->threadData->eventDispatcher.load();
if (!eventDispatcher) // perhaps application is shutting down
return;
if (Q_UNLIKELY(thread() != QThread::currentThread())) {
qWarning("QWinEventNotifier: Event notifiers cannot be enabled or disabled from another thread");
return;
}
if (enable)
eventDispatcher->registerEventNotifier(this);
else
eventDispatcher->unregisterEventNotifier(this);
}
/*!
\reimp
*/
bool QWinEventNotifier::event(QEvent * e)
{
Q_D(QWinEventNotifier);
if (e->type() == QEvent::ThreadChange) {
if (d->enabled) {
QMetaObject::invokeMethod(this, "setEnabled", Qt::QueuedConnection,
Q_ARG(bool, true));
setEnabled(false);
}
}
QObject::event(e); // will activate filters
if (e->type() == QEvent::WinEventAct) {
emit activated(d->handleToEvent, QPrivateSignal());
return true;
}
return false;
}
QT_END_NAMESPACE
|
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r13
push %rax
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_normal_ht+0x1d5b1, %rsi
lea addresses_UC_ht+0x4484, %rdi
clflush (%rdi)
nop
nop
nop
nop
nop
xor $51037, %rbx
mov $24, %rcx
rep movsq
nop
nop
inc %r13
lea addresses_WC_ht+0x1c184, %rsi
lea addresses_WC_ht+0xa0dc, %rdi
clflush (%rsi)
nop
sub $62238, %rax
mov $61, %rcx
rep movsb
nop
nop
nop
and %rcx, %rcx
lea addresses_A_ht+0x1c1c4, %rax
nop
sub $29111, %r12
and $0xffffffffffffffc0, %rax
vmovntdqa (%rax), %ymm2
vextracti128 $1, %ymm2, %xmm2
vpextrq $0, %xmm2, %rsi
nop
nop
nop
and $43968, %rbx
lea addresses_WT_ht+0xa484, %r13
add $4574, %rsi
movb $0x61, (%r13)
add $51710, %rdi
lea addresses_UC_ht+0x10956, %rsi
lea addresses_A_ht+0x13684, %rdi
xor %rax, %rax
mov $107, %rcx
rep movsl
nop
nop
nop
nop
add $48070, %rbx
lea addresses_UC_ht+0x6844, %rsi
lea addresses_A_ht+0xbba4, %rdi
nop
cmp $1294, %rdx
mov $31, %rcx
rep movsq
nop
nop
nop
dec %r12
lea addresses_WT_ht+0x18c84, %rbx
nop
sub %rdx, %rdx
movb (%rbx), %al
nop
nop
nop
dec %r13
lea addresses_A_ht+0x4abc, %rsi
lea addresses_normal_ht+0x4c84, %rdi
nop
nop
xor $5513, %rbx
mov $22, %rcx
rep movsq
add $19432, %rdi
lea addresses_UC_ht+0x129c4, %rsi
lea addresses_WT_ht+0x6dfc, %rdi
nop
nop
and $26792, %r13
mov $25, %rcx
rep movsq
cmp %rcx, %rcx
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbx
pop %rax
pop %r13
pop %r12
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r13
push %r8
push %r9
push %rax
push %rdx
push %rsi
// Store
lea addresses_WT+0x6220, %rax
nop
nop
add %r11, %r11
movl $0x51525354, (%rax)
xor $20985, %rsi
// Store
mov $0xdfad60000000c84, %rax
nop
nop
nop
nop
nop
inc %r11
mov $0x5152535455565758, %r13
movq %r13, (%rax)
// Exception!!!
nop
nop
nop
mov (0), %r13
nop
nop
nop
add %rax, %rax
// Faulty Load
lea addresses_US+0x1ec84, %r11
clflush (%r11)
sub %r9, %r9
vmovups (%r11), %ymm6
vextracti128 $0, %ymm6, %xmm6
vpextrq $0, %xmm6, %r8
lea oracles, %rsi
and $0xff, %r8
shlq $12, %r8
mov (%rsi,%r8,1), %r8
pop %rsi
pop %rdx
pop %rax
pop %r9
pop %r8
pop %r13
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'src': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_US', 'AVXalign': False, 'size': 16}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_WT', 'AVXalign': False, 'size': 4}}
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 8, 'type': 'addresses_NC', 'AVXalign': False, 'size': 8}}
[Faulty Load]
{'src': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_US', 'AVXalign': False, 'size': 32}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'same': False, 'congruent': 0, 'type': 'addresses_normal_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 11, 'type': 'addresses_UC_ht'}}
{'src': {'same': False, 'congruent': 8, 'type': 'addresses_WC_ht'}, 'OP': 'REPM', 'dst': {'same': True, 'congruent': 3, 'type': 'addresses_WC_ht'}}
{'src': {'NT': True, 'same': False, 'congruent': 4, 'type': 'addresses_A_ht', 'AVXalign': False, 'size': 32}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 9, 'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 1}}
{'src': {'same': False, 'congruent': 0, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 9, 'type': 'addresses_A_ht'}}
{'src': {'same': False, 'congruent': 6, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'dst': {'same': True, 'congruent': 3, 'type': 'addresses_A_ht'}}
{'src': {'NT': False, 'same': False, 'congruent': 11, 'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 1}, 'OP': 'LOAD'}
{'src': {'same': False, 'congruent': 3, 'type': 'addresses_A_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 11, 'type': 'addresses_normal_ht'}}
{'src': {'same': False, 'congruent': 5, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 3, 'type': 'addresses_WT_ht'}}
{'58': 21829}
58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58
*/
|
; Sprite dropping code V1.02 1985 Tony Tebby
;
; 1.01 Removed references to MOVEP for Q60/Q40 (FD)
; 2005-03-27 1.02 Extension for empty (solid) mask (MK)
;
; d0 c s byte offset / green composite
; d1 c s row offset / red composite
; d2 s green sprite
; d3 s red sprite
; d4 s sprite mask
; d5 c s sprite word counter / horizontal mask (high word)
; d6 c s row counter
; d7 c p right shift (low word) / 16-shift (high word)
;
; a0 s
; a3 c s new pointer to screen
; a4 s pointer to sprite pattern
; a5 c s pointer to sprite pointers / pointer to sprite mask
; a6 c p address increment of screen
;
section driver
;
xdef sp_drop
xdef sp_dropi
;
sp_drop
move.l a5,a4 set pointer to sprite pattern
add.l (a5)+,a4
move.l a5,d3
move.l (a5),a5
move.l a5,d4
beq.s spd_nomask ; ... sprite mask ptr is 0
add.l d3,a5 ; absolute sprite mask ptr
add.w d0,a5 ; offset to start
spd_nomask
add.w d0,a4 ; offset to start
;
sp_dropi
;
move.l d5,-(sp) save sprite word counter
move.l a5,d0 ; any mask?
beq sp_nomask
;
sp_line
move.l (sp),d5 set counter
;
moveq #0,d2 clear the sprite registers
moveq #0,d3
moveq #0,d4
;
long_word
; movep.w 0(a4),d2 set sprite - green / flash
move.b (a4),d2
lsl.w #8,d2
move.b 2(a4),d2
; movep.w 1(a4),d3 - red / blue
move.b 1(a4),d3
lsl.w #8,d3
move.b 3(a4),d3
; movep.w 0(a5),d4 - mask
move.b (a5),d4
lsl.w #8,d4
move.b 2(a5),d4
addq.l #4,a4
addq.l #4,a5
;
last_word
ror.l d7,d2 and move into position
ror.l d7,d3
ror.l d7,d4
;
swap d5 check if this word to be dropped in
lsl.w #1,d5
bcs.s next_word
;
; movep.w 0(a3),d0 get current background from screen
move.b (a3),d0
lsl.w #8,d0
move.b 2(a3),d0
; movep.w 1(a3),d1
move.b 1(a3),d1
lsl.w #8,d1
move.b 3(a3),d1
not.w d4
and.w d4,d0 mask out bit where sprite is to go
and.w d4,d1
not.w d4
eor.w d2,d0 eor in the sprite
eor.w d3,d1
; movep.w d0,0(a3) put it back into the screen
move.b d0,2(a3)
lsr.w #8,d0
move.b d0,(a3)
; movep.w d1,1(a3)
move.b d1,3(a3)
lsr.w #8,d1
move.b d1,1(a3)
addq.l #4,a3 move screen address on
next_word
swap d7
lsr.l d7,d2 prepare registers for next go
lsr.l d7,d3
lsr.l d7,d4
swap d7
;
swap d5
subq.w #1,d5 next long word
bgt.s long_word ... there is another one
blt.s next_line ... all gone
clr.w d2 ... no more sprite definition
clr.w d3
clr.w d4
bra.s last_word
;
next_line
add.w a6,a3 move address to next line
dbra d6,sp_line next line
exit
addq.l #4,sp remove line counter
rts
sp_nomask
move.l (sp),d5 set counter
;
moveq #0,d2 clear the sprite registers
moveq #0,d3
moveq #0,d4
;
snm_long_word
; movep.w 0(a4),d2 set sprite - green / flash
move.b (a4),d2
lsl.w #8,d2
move.b 2(a4),d2
; movep.w 1(a4),d3 - red / blue
move.b 1(a4),d3
lsl.w #8,d3
move.b 3(a4),d3
move.w #$ffff,d4
addq.l #4,a4
;
snm_last_word
ror.l d7,d2 and move into position
ror.l d7,d3
ror.l d7,d4
;
swap d5 check if this word to be dropped in
lsl.w #1,d5
bcs.s snm_next_word
;
; movep.w 0(a3),d0 get current background from screen
move.b (a3),d0
lsl.w #8,d0
move.b 2(a3),d0
; movep.w 1(a3),d1
move.b 1(a3),d1
lsl.w #8,d1
move.b 3(a3),d1
not.w d4
and.w d4,d0 mask out bit where sprite is to go
and.w d4,d1
not.w d4
eor.w d2,d0 eor in the sprite
eor.w d3,d1
; movep.w d0,0(a3) put it back into the screen
move.b d0,2(a3)
lsr.w #8,d0
move.b d0,(a3)
; movep.w d1,1(a3)
move.b d1,3(a3)
lsr.w #8,d1
move.b d1,1(a3)
addq.l #4,a3 move screen address on
snm_next_word
swap d7
lsr.l d7,d2 prepare registers for next go
lsr.l d7,d3
lsr.l d7,d4
swap d7
;
swap d5
subq.w #1,d5 next long word
bgt.s snm_long_word ... there is another one
blt.s snm_next_line ... all gone
clr.w d2 ... no more sprite definition
clr.w d3
clr.w d4
bra.s snm_last_word
;
snm_next_line
add.w a6,a3 move address to next line
dbra d6,sp_nomask next line
addq.l #4,sp remove line counter
rts
end
|
#include <iostream>
#include <math.h>
using namespace std;
const int SIZE = 1000;
int main()
{
int i,j,cnt,sum,maxI;
int arr[SIZE];
cout << "Enter power of 2: ";
cin >> maxI;
cout << "\n";
for (i = 0; i < SIZE; i++)
arr[i] = 0;
arr[SIZE-1] = 1;
cnt = 1;
sum = 0;
for (i = 1; i <= maxI; i++)
{
for (j = 0; j < cnt; j++)
arr[SIZE-1-j] = arr[SIZE-1-j] * 2;
for (j = 0; j < cnt; j++)
{
arr[SIZE-1-j-1] += arr[SIZE-1-j] / 10;
if (arr[SIZE-1-j-1] > 0) cnt = max(cnt,j+2);
arr[SIZE-1-j] = arr[SIZE-1-j] % 10;
}
}
for (i = 0; i <= cnt; i++)
{
cout << arr[SIZE-1-cnt+i];
sum += arr[SIZE-1-cnt+i];
}
cout << "\nSUM: " << sum << "\n";
return 0;
}
|
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r8
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WT_ht+0x1e670, %rsi
lea addresses_WT_ht+0x670, %rdi
nop
nop
nop
inc %r8
mov $35, %rcx
rep movsw
nop
cmp %rdi, %rdi
lea addresses_D_ht+0xb770, %r12
nop
nop
nop
nop
add $44623, %rbp
mov $0x6162636465666768, %r8
movq %r8, %xmm1
and $0xffffffffffffffc0, %r12
movntdq %xmm1, (%r12)
nop
nop
nop
nop
nop
and %r8, %r8
lea addresses_WC_ht+0x18670, %rsi
nop
nop
add $27825, %r12
mov (%rsi), %ecx
cmp %rbp, %rbp
lea addresses_normal_ht+0x1ce70, %rcx
clflush (%rcx)
add %r10, %r10
vmovups (%rcx), %ymm5
vextracti128 $0, %ymm5, %xmm5
vpextrq $1, %xmm5, %r12
cmp $3057, %r12
lea addresses_WT_ht+0xc99e, %r10
nop
nop
nop
nop
xor $61022, %r12
mov (%r10), %r8
nop
nop
nop
nop
nop
dec %rdi
lea addresses_normal_ht+0x21f0, %rsi
clflush (%rsi)
nop
add %rdi, %rdi
mov $0x6162636465666768, %rbp
movq %rbp, (%rsi)
nop
nop
and $31159, %rdi
lea addresses_UC_ht+0x17a70, %rdi
nop
nop
nop
and %rcx, %rcx
movl $0x61626364, (%rdi)
nop
nop
add $7872, %rsi
lea addresses_WC_ht+0x3470, %rsi
lea addresses_UC_ht+0x12bf0, %rdi
clflush (%rsi)
nop
nop
nop
nop
and $42634, %rdx
mov $68, %rcx
rep movsb
and $30723, %rdx
lea addresses_WT_ht+0x5670, %r12
clflush (%r12)
nop
nop
nop
nop
cmp $36369, %rdx
mov (%r12), %ebp
nop
sub %rdi, %rdi
lea addresses_WC_ht+0xf0b0, %r8
nop
nop
nop
sub $55079, %r12
movups (%r8), %xmm6
vpextrq $0, %xmm6, %rdi
nop
and %rcx, %rcx
lea addresses_UC_ht+0xce70, %rsi
lea addresses_WT_ht+0x16a68, %rdi
cmp %rdx, %rdx
mov $121, %rcx
rep movsw
nop
nop
nop
xor %rsi, %rsi
lea addresses_D_ht+0xb970, %r10
cmp $60352, %rbp
movb $0x61, (%r10)
nop
add $56804, %rcx
lea addresses_normal_ht+0xfef8, %rcx
nop
sub $9456, %r10
mov $0x6162636465666768, %r8
movq %r8, %xmm6
movups %xmm6, (%rcx)
nop
nop
nop
nop
add $4058, %rbp
lea addresses_A_ht+0x19470, %rbp
xor $4220, %r8
and $0xffffffffffffffc0, %rbp
movntdqa (%rbp), %xmm5
vpextrq $1, %xmm5, %r10
nop
nop
and %r12, %r12
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbp
pop %r8
pop %r12
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r11
push %r12
push %r14
push %r15
push %rax
push %rbx
// Load
lea addresses_US+0x19c18, %r12
cmp %rbx, %rbx
mov (%r12), %rax
nop
nop
cmp $32381, %r10
// Store
mov $0x582d260000000cf0, %r14
nop
nop
nop
nop
cmp $45023, %r15
movl $0x51525354, (%r14)
cmp %r15, %r15
// Store
lea addresses_D+0x18c70, %r11
nop
nop
nop
nop
and %rbx, %rbx
movl $0x51525354, (%r11)
nop
sub $32308, %r11
// Store
lea addresses_WT+0x13e70, %r15
nop
nop
nop
nop
nop
inc %r11
mov $0x5152535455565758, %rbx
movq %rbx, %xmm4
movups %xmm4, (%r15)
nop
nop
nop
nop
nop
xor $55241, %r12
// Store
lea addresses_A+0xbe70, %r12
nop
nop
nop
and $20119, %r14
movw $0x5152, (%r12)
nop
nop
nop
nop
nop
sub $46374, %rax
// Faulty Load
lea addresses_UC+0x5e70, %r15
and $5982, %r11
movups (%r15), %xmm4
vpextrq $0, %xmm4, %r14
lea oracles, %r10
and $0xff, %r14
shlq $12, %r14
mov (%r10,%r14,1), %r14
pop %rbx
pop %rax
pop %r15
pop %r14
pop %r12
pop %r11
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'size': 4, 'NT': False, 'type': 'addresses_UC', 'same': True, 'AVXalign': False, 'congruent': 0}}
{'OP': 'LOAD', 'src': {'size': 8, 'NT': True, 'type': 'addresses_US', 'same': False, 'AVXalign': False, 'congruent': 3}}
{'OP': 'STOR', 'dst': {'size': 4, 'NT': False, 'type': 'addresses_NC', 'same': False, 'AVXalign': False, 'congruent': 7}}
{'OP': 'STOR', 'dst': {'size': 4, 'NT': False, 'type': 'addresses_D', 'same': False, 'AVXalign': False, 'congruent': 7}}
{'OP': 'STOR', 'dst': {'size': 16, 'NT': False, 'type': 'addresses_WT', 'same': False, 'AVXalign': False, 'congruent': 10}}
{'OP': 'STOR', 'dst': {'size': 2, 'NT': False, 'type': 'addresses_A', 'same': False, 'AVXalign': False, 'congruent': 9}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'size': 16, 'NT': False, 'type': 'addresses_UC', 'same': True, 'AVXalign': False, 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_WT_ht', 'congruent': 11}, 'dst': {'same': False, 'type': 'addresses_WT_ht', 'congruent': 9}}
{'OP': 'STOR', 'dst': {'size': 16, 'NT': True, 'type': 'addresses_D_ht', 'same': False, 'AVXalign': False, 'congruent': 8}}
{'OP': 'LOAD', 'src': {'size': 4, 'NT': False, 'type': 'addresses_WC_ht', 'same': False, 'AVXalign': False, 'congruent': 11}}
{'OP': 'LOAD', 'src': {'size': 32, 'NT': False, 'type': 'addresses_normal_ht', 'same': False, 'AVXalign': False, 'congruent': 11}}
{'OP': 'LOAD', 'src': {'size': 8, 'NT': False, 'type': 'addresses_WT_ht', 'same': False, 'AVXalign': True, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'size': 8, 'NT': False, 'type': 'addresses_normal_ht', 'same': True, 'AVXalign': False, 'congruent': 7}}
{'OP': 'STOR', 'dst': {'size': 4, 'NT': False, 'type': 'addresses_UC_ht', 'same': False, 'AVXalign': True, 'congruent': 10}}
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_WC_ht', 'congruent': 9}, 'dst': {'same': False, 'type': 'addresses_UC_ht', 'congruent': 7}}
{'OP': 'LOAD', 'src': {'size': 4, 'NT': False, 'type': 'addresses_WT_ht', 'same': False, 'AVXalign': False, 'congruent': 11}}
{'OP': 'LOAD', 'src': {'size': 16, 'NT': False, 'type': 'addresses_WC_ht', 'same': False, 'AVXalign': False, 'congruent': 5}}
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_UC_ht', 'congruent': 9}, 'dst': {'same': False, 'type': 'addresses_WT_ht', 'congruent': 3}}
{'OP': 'STOR', 'dst': {'size': 1, 'NT': False, 'type': 'addresses_D_ht', 'same': True, 'AVXalign': False, 'congruent': 7}}
{'OP': 'STOR', 'dst': {'size': 16, 'NT': False, 'type': 'addresses_normal_ht', 'same': False, 'AVXalign': False, 'congruent': 3}}
{'OP': 'LOAD', 'src': {'size': 16, 'NT': True, 'type': 'addresses_A_ht', 'same': False, 'AVXalign': False, 'congruent': 8}}
{'52': 21829}
52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52
*/
|
#include <gtest/gtest.h>
#include "pressio/expressions.hpp"
TEST(expressions_eigen, span_traits)
{
using T = Eigen::VectorXd;
T o(10);
using expr_t = decltype(pressio::span(o, 0, 1));
static_assert(pressio::Traits<expr_t>::is_static, "");
const T o1(10);
using expr1_t = decltype(pressio::span(o1, 0, 1));
static_assert(pressio::Traits<expr1_t>::is_static, "");
}
TEST(expressions_eigen, subspan_traits)
{
using T = Eigen::MatrixXd;
T o(10,10);
using pair_t = std::pair<int,int>;
using expr_t = decltype(pressio::subspan(o, pair_t{0, 1}, pair_t{0,1}));
static_assert(pressio::Traits<expr_t>::is_static, "");
const T o1(10,10);
using expr1_t = decltype(pressio::subspan(o1, pair_t{0, 1}, pair_t{0,1}));
static_assert(pressio::Traits<expr1_t>::is_static, "");
}
TEST(expressions_eigen, diag_traits)
{
using T = Eigen::MatrixXd;
T o(10,10);
using expr_t = decltype(pressio::diag(o));
static_assert(pressio::Traits<expr_t>::is_static, "");
const T o1(10,10);
using expr1_t = decltype(pressio::diag(o1));
static_assert(pressio::Traits<expr1_t>::is_static, "");
}
TEST(expressions_eigen, asDiagMatrix_traits)
{
using T = Eigen::VectorXd;
T o(10);
using expr_t = decltype(pressio::as_diagonal_matrix(o));
static_assert(pressio::Traits<expr_t>::is_static, "");
const T o1(10);
using expr1_t = decltype(pressio::as_diagonal_matrix(o1));
static_assert(pressio::Traits<expr1_t>::is_static, "");
}
|
kernel: formato del fichero elf32-i386
Desensamblado de la sección .text:
80100000 <multiboot_header>:
80100000: 02 b0 ad 1b 00 00 add 0x1bad(%eax),%dh
80100006: 00 00 add %al,(%eax)
80100008: fe 4f 52 decb 0x52(%edi)
8010000b: e4 .byte 0xe4
8010000c <entry>:
# Entering xv6 on boot processor, with paging off.
.globl entry
entry:
# Turn on page size extension for 4Mbyte pages
movl %cr4, %eax
8010000c: 0f 20 e0 mov %cr4,%eax
orl $(CR4_PSE), %eax
8010000f: 83 c8 10 or $0x10,%eax
movl %eax, %cr4
80100012: 0f 22 e0 mov %eax,%cr4
# Set page directory
movl $(V2P_WO(entrypgdir)), %eax
80100015: b8 00 90 10 00 mov $0x109000,%eax
movl %eax, %cr3
8010001a: 0f 22 d8 mov %eax,%cr3
# Turn on paging.
movl %cr0, %eax
8010001d: 0f 20 c0 mov %cr0,%eax
orl $(CR0_PG|CR0_WP), %eax
80100020: 0d 00 00 01 80 or $0x80010000,%eax
movl %eax, %cr0
80100025: 0f 22 c0 mov %eax,%cr0
# Set up the stack pointer.
movl $(stack + KSTACKSIZE), %esp
80100028: bc d0 b5 10 80 mov $0x8010b5d0,%esp
# Jump to main(), and switch to executing at
# high addresses. The indirect call is needed because
# the assembler produces a PC-relative instruction
# for a direct jump.
mov $main, %eax
8010002d: b8 b0 2e 10 80 mov $0x80102eb0,%eax
jmp *%eax
80100032: ff e0 jmp *%eax
80100034: 66 90 xchg %ax,%ax
80100036: 66 90 xchg %ax,%ax
80100038: 66 90 xchg %ax,%ax
8010003a: 66 90 xchg %ax,%ax
8010003c: 66 90 xchg %ax,%ax
8010003e: 66 90 xchg %ax,%ax
80100040 <binit>:
struct buf head;
} bcache;
void
binit(void)
{
80100040: 55 push %ebp
80100041: 89 e5 mov %esp,%ebp
80100043: 53 push %ebx
//PAGEBREAK!
// Create linked list of buffers
bcache.head.prev = &bcache.head;
bcache.head.next = &bcache.head;
for(b = bcache.buf; b < bcache.buf+NBUF; b++){
80100044: bb 14 b6 10 80 mov $0x8010b614,%ebx
{
80100049: 83 ec 0c sub $0xc,%esp
initlock(&bcache.lock, "bcache");
8010004c: 68 60 70 10 80 push $0x80107060
80100051: 68 e0 b5 10 80 push $0x8010b5e0
80100056: e8 c5 42 00 00 call 80104320 <initlock>
bcache.head.prev = &bcache.head;
8010005b: c7 05 2c fd 10 80 dc movl $0x8010fcdc,0x8010fd2c
80100062: fc 10 80
bcache.head.next = &bcache.head;
80100065: c7 05 30 fd 10 80 dc movl $0x8010fcdc,0x8010fd30
8010006c: fc 10 80
8010006f: 83 c4 10 add $0x10,%esp
80100072: ba dc fc 10 80 mov $0x8010fcdc,%edx
80100077: eb 09 jmp 80100082 <binit+0x42>
80100079: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
80100080: 89 c3 mov %eax,%ebx
b->next = bcache.head.next;
b->prev = &bcache.head;
initsleeplock(&b->lock, "buffer");
80100082: 8d 43 0c lea 0xc(%ebx),%eax
80100085: 83 ec 08 sub $0x8,%esp
b->next = bcache.head.next;
80100088: 89 53 54 mov %edx,0x54(%ebx)
b->prev = &bcache.head;
8010008b: c7 43 50 dc fc 10 80 movl $0x8010fcdc,0x50(%ebx)
initsleeplock(&b->lock, "buffer");
80100092: 68 67 70 10 80 push $0x80107067
80100097: 50 push %eax
80100098: e8 73 41 00 00 call 80104210 <initsleeplock>
bcache.head.next->prev = b;
8010009d: a1 30 fd 10 80 mov 0x8010fd30,%eax
for(b = bcache.buf; b < bcache.buf+NBUF; b++){
801000a2: 83 c4 10 add $0x10,%esp
801000a5: 89 da mov %ebx,%edx
bcache.head.next->prev = b;
801000a7: 89 58 50 mov %ebx,0x50(%eax)
for(b = bcache.buf; b < bcache.buf+NBUF; b++){
801000aa: 8d 83 5c 02 00 00 lea 0x25c(%ebx),%eax
bcache.head.next = b;
801000b0: 89 1d 30 fd 10 80 mov %ebx,0x8010fd30
for(b = bcache.buf; b < bcache.buf+NBUF; b++){
801000b6: 3d dc fc 10 80 cmp $0x8010fcdc,%eax
801000bb: 72 c3 jb 80100080 <binit+0x40>
}
}
801000bd: 8b 5d fc mov -0x4(%ebp),%ebx
801000c0: c9 leave
801000c1: c3 ret
801000c2: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
801000c9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
801000d0 <bread>:
}
// Return a locked buf with the contents of the indicated block.
struct buf*
bread(uint dev, uint blockno)
{
801000d0: 55 push %ebp
801000d1: 89 e5 mov %esp,%ebp
801000d3: 57 push %edi
801000d4: 56 push %esi
801000d5: 53 push %ebx
801000d6: 83 ec 18 sub $0x18,%esp
801000d9: 8b 75 08 mov 0x8(%ebp),%esi
801000dc: 8b 7d 0c mov 0xc(%ebp),%edi
acquire(&bcache.lock);
801000df: 68 e0 b5 10 80 push $0x8010b5e0
801000e4: e8 27 43 00 00 call 80104410 <acquire>
for(b = bcache.head.next; b != &bcache.head; b = b->next){
801000e9: 8b 1d 30 fd 10 80 mov 0x8010fd30,%ebx
801000ef: 83 c4 10 add $0x10,%esp
801000f2: 81 fb dc fc 10 80 cmp $0x8010fcdc,%ebx
801000f8: 75 11 jne 8010010b <bread+0x3b>
801000fa: eb 24 jmp 80100120 <bread+0x50>
801000fc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80100100: 8b 5b 54 mov 0x54(%ebx),%ebx
80100103: 81 fb dc fc 10 80 cmp $0x8010fcdc,%ebx
80100109: 74 15 je 80100120 <bread+0x50>
if(b->dev == dev && b->blockno == blockno){
8010010b: 3b 73 04 cmp 0x4(%ebx),%esi
8010010e: 75 f0 jne 80100100 <bread+0x30>
80100110: 3b 7b 08 cmp 0x8(%ebx),%edi
80100113: 75 eb jne 80100100 <bread+0x30>
b->refcnt++;
80100115: 83 43 4c 01 addl $0x1,0x4c(%ebx)
80100119: eb 3f jmp 8010015a <bread+0x8a>
8010011b: 90 nop
8010011c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
for(b = bcache.head.prev; b != &bcache.head; b = b->prev){
80100120: 8b 1d 2c fd 10 80 mov 0x8010fd2c,%ebx
80100126: 81 fb dc fc 10 80 cmp $0x8010fcdc,%ebx
8010012c: 75 0d jne 8010013b <bread+0x6b>
8010012e: eb 60 jmp 80100190 <bread+0xc0>
80100130: 8b 5b 50 mov 0x50(%ebx),%ebx
80100133: 81 fb dc fc 10 80 cmp $0x8010fcdc,%ebx
80100139: 74 55 je 80100190 <bread+0xc0>
if(b->refcnt == 0 && (b->flags & B_DIRTY) == 0) {
8010013b: 8b 43 4c mov 0x4c(%ebx),%eax
8010013e: 85 c0 test %eax,%eax
80100140: 75 ee jne 80100130 <bread+0x60>
80100142: f6 03 04 testb $0x4,(%ebx)
80100145: 75 e9 jne 80100130 <bread+0x60>
b->dev = dev;
80100147: 89 73 04 mov %esi,0x4(%ebx)
b->blockno = blockno;
8010014a: 89 7b 08 mov %edi,0x8(%ebx)
b->flags = 0;
8010014d: c7 03 00 00 00 00 movl $0x0,(%ebx)
b->refcnt = 1;
80100153: c7 43 4c 01 00 00 00 movl $0x1,0x4c(%ebx)
release(&bcache.lock);
8010015a: 83 ec 0c sub $0xc,%esp
8010015d: 68 e0 b5 10 80 push $0x8010b5e0
80100162: e8 c9 43 00 00 call 80104530 <release>
acquiresleep(&b->lock);
80100167: 8d 43 0c lea 0xc(%ebx),%eax
8010016a: 89 04 24 mov %eax,(%esp)
8010016d: e8 de 40 00 00 call 80104250 <acquiresleep>
80100172: 83 c4 10 add $0x10,%esp
struct buf *b;
b = bget(dev, blockno);
if((b->flags & B_VALID) == 0) {
80100175: f6 03 02 testb $0x2,(%ebx)
80100178: 75 0c jne 80100186 <bread+0xb6>
iderw(b);
8010017a: 83 ec 0c sub $0xc,%esp
8010017d: 53 push %ebx
8010017e: e8 ad 1f 00 00 call 80102130 <iderw>
80100183: 83 c4 10 add $0x10,%esp
}
return b;
}
80100186: 8d 65 f4 lea -0xc(%ebp),%esp
80100189: 89 d8 mov %ebx,%eax
8010018b: 5b pop %ebx
8010018c: 5e pop %esi
8010018d: 5f pop %edi
8010018e: 5d pop %ebp
8010018f: c3 ret
panic("bget: no buffers");
80100190: 83 ec 0c sub $0xc,%esp
80100193: 68 6e 70 10 80 push $0x8010706e
80100198: e8 f3 01 00 00 call 80100390 <panic>
8010019d: 8d 76 00 lea 0x0(%esi),%esi
801001a0 <bwrite>:
// Write b's contents to disk. Must be locked.
void
bwrite(struct buf *b)
{
801001a0: 55 push %ebp
801001a1: 89 e5 mov %esp,%ebp
801001a3: 53 push %ebx
801001a4: 83 ec 10 sub $0x10,%esp
801001a7: 8b 5d 08 mov 0x8(%ebp),%ebx
if(!holdingsleep(&b->lock))
801001aa: 8d 43 0c lea 0xc(%ebx),%eax
801001ad: 50 push %eax
801001ae: e8 3d 41 00 00 call 801042f0 <holdingsleep>
801001b3: 83 c4 10 add $0x10,%esp
801001b6: 85 c0 test %eax,%eax
801001b8: 74 0f je 801001c9 <bwrite+0x29>
panic("bwrite");
b->flags |= B_DIRTY;
801001ba: 83 0b 04 orl $0x4,(%ebx)
iderw(b);
801001bd: 89 5d 08 mov %ebx,0x8(%ebp)
}
801001c0: 8b 5d fc mov -0x4(%ebp),%ebx
801001c3: c9 leave
iderw(b);
801001c4: e9 67 1f 00 00 jmp 80102130 <iderw>
panic("bwrite");
801001c9: 83 ec 0c sub $0xc,%esp
801001cc: 68 7f 70 10 80 push $0x8010707f
801001d1: e8 ba 01 00 00 call 80100390 <panic>
801001d6: 8d 76 00 lea 0x0(%esi),%esi
801001d9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
801001e0 <brelse>:
// Release a locked buffer.
// Move to the head of the MRU list.
void
brelse(struct buf *b)
{
801001e0: 55 push %ebp
801001e1: 89 e5 mov %esp,%ebp
801001e3: 56 push %esi
801001e4: 53 push %ebx
801001e5: 8b 5d 08 mov 0x8(%ebp),%ebx
if(!holdingsleep(&b->lock))
801001e8: 83 ec 0c sub $0xc,%esp
801001eb: 8d 73 0c lea 0xc(%ebx),%esi
801001ee: 56 push %esi
801001ef: e8 fc 40 00 00 call 801042f0 <holdingsleep>
801001f4: 83 c4 10 add $0x10,%esp
801001f7: 85 c0 test %eax,%eax
801001f9: 74 66 je 80100261 <brelse+0x81>
panic("brelse");
releasesleep(&b->lock);
801001fb: 83 ec 0c sub $0xc,%esp
801001fe: 56 push %esi
801001ff: e8 ac 40 00 00 call 801042b0 <releasesleep>
acquire(&bcache.lock);
80100204: c7 04 24 e0 b5 10 80 movl $0x8010b5e0,(%esp)
8010020b: e8 00 42 00 00 call 80104410 <acquire>
b->refcnt--;
80100210: 8b 43 4c mov 0x4c(%ebx),%eax
if (b->refcnt == 0) {
80100213: 83 c4 10 add $0x10,%esp
b->refcnt--;
80100216: 83 e8 01 sub $0x1,%eax
if (b->refcnt == 0) {
80100219: 85 c0 test %eax,%eax
b->refcnt--;
8010021b: 89 43 4c mov %eax,0x4c(%ebx)
if (b->refcnt == 0) {
8010021e: 75 2f jne 8010024f <brelse+0x6f>
// no one is waiting for it.
b->next->prev = b->prev;
80100220: 8b 43 54 mov 0x54(%ebx),%eax
80100223: 8b 53 50 mov 0x50(%ebx),%edx
80100226: 89 50 50 mov %edx,0x50(%eax)
b->prev->next = b->next;
80100229: 8b 43 50 mov 0x50(%ebx),%eax
8010022c: 8b 53 54 mov 0x54(%ebx),%edx
8010022f: 89 50 54 mov %edx,0x54(%eax)
b->next = bcache.head.next;
80100232: a1 30 fd 10 80 mov 0x8010fd30,%eax
b->prev = &bcache.head;
80100237: c7 43 50 dc fc 10 80 movl $0x8010fcdc,0x50(%ebx)
b->next = bcache.head.next;
8010023e: 89 43 54 mov %eax,0x54(%ebx)
bcache.head.next->prev = b;
80100241: a1 30 fd 10 80 mov 0x8010fd30,%eax
80100246: 89 58 50 mov %ebx,0x50(%eax)
bcache.head.next = b;
80100249: 89 1d 30 fd 10 80 mov %ebx,0x8010fd30
}
release(&bcache.lock);
8010024f: c7 45 08 e0 b5 10 80 movl $0x8010b5e0,0x8(%ebp)
}
80100256: 8d 65 f8 lea -0x8(%ebp),%esp
80100259: 5b pop %ebx
8010025a: 5e pop %esi
8010025b: 5d pop %ebp
release(&bcache.lock);
8010025c: e9 cf 42 00 00 jmp 80104530 <release>
panic("brelse");
80100261: 83 ec 0c sub $0xc,%esp
80100264: 68 86 70 10 80 push $0x80107086
80100269: e8 22 01 00 00 call 80100390 <panic>
8010026e: 66 90 xchg %ax,%ax
80100270 <consoleread>:
}
}
int
consoleread(struct inode *ip, char *dst, int n)
{
80100270: 55 push %ebp
80100271: 89 e5 mov %esp,%ebp
80100273: 57 push %edi
80100274: 56 push %esi
80100275: 53 push %ebx
80100276: 83 ec 28 sub $0x28,%esp
80100279: 8b 7d 08 mov 0x8(%ebp),%edi
8010027c: 8b 75 0c mov 0xc(%ebp),%esi
uint target;
int c;
iunlock(ip);
8010027f: 57 push %edi
80100280: e8 eb 14 00 00 call 80101770 <iunlock>
target = n;
acquire(&cons.lock);
80100285: c7 04 24 20 a5 10 80 movl $0x8010a520,(%esp)
8010028c: e8 7f 41 00 00 call 80104410 <acquire>
while(n > 0){
80100291: 8b 5d 10 mov 0x10(%ebp),%ebx
80100294: 83 c4 10 add $0x10,%esp
80100297: 31 c0 xor %eax,%eax
80100299: 85 db test %ebx,%ebx
8010029b: 0f 8e a1 00 00 00 jle 80100342 <consoleread+0xd2>
while(input.r == input.w){
801002a1: 8b 15 c0 ff 10 80 mov 0x8010ffc0,%edx
801002a7: 39 15 c4 ff 10 80 cmp %edx,0x8010ffc4
801002ad: 74 2c je 801002db <consoleread+0x6b>
801002af: eb 5f jmp 80100310 <consoleread+0xa0>
801002b1: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
if(myproc()->killed){
release(&cons.lock);
ilock(ip);
return -1;
}
sleep(&input.r, &cons.lock);
801002b8: 83 ec 08 sub $0x8,%esp
801002bb: 68 20 a5 10 80 push $0x8010a520
801002c0: 68 c0 ff 10 80 push $0x8010ffc0
801002c5: e8 d6 3a 00 00 call 80103da0 <sleep>
while(input.r == input.w){
801002ca: 8b 15 c0 ff 10 80 mov 0x8010ffc0,%edx
801002d0: 83 c4 10 add $0x10,%esp
801002d3: 3b 15 c4 ff 10 80 cmp 0x8010ffc4,%edx
801002d9: 75 35 jne 80100310 <consoleread+0xa0>
if(myproc()->killed){
801002db: e8 00 35 00 00 call 801037e0 <myproc>
801002e0: 8b 40 28 mov 0x28(%eax),%eax
801002e3: 85 c0 test %eax,%eax
801002e5: 74 d1 je 801002b8 <consoleread+0x48>
release(&cons.lock);
801002e7: 83 ec 0c sub $0xc,%esp
801002ea: 68 20 a5 10 80 push $0x8010a520
801002ef: e8 3c 42 00 00 call 80104530 <release>
ilock(ip);
801002f4: 89 3c 24 mov %edi,(%esp)
801002f7: e8 94 13 00 00 call 80101690 <ilock>
return -1;
801002fc: 83 c4 10 add $0x10,%esp
}
release(&cons.lock);
ilock(ip);
return target - n;
}
801002ff: 8d 65 f4 lea -0xc(%ebp),%esp
return -1;
80100302: b8 ff ff ff ff mov $0xffffffff,%eax
}
80100307: 5b pop %ebx
80100308: 5e pop %esi
80100309: 5f pop %edi
8010030a: 5d pop %ebp
8010030b: c3 ret
8010030c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
c = input.buf[input.r++ % INPUT_BUF];
80100310: 8d 42 01 lea 0x1(%edx),%eax
80100313: a3 c0 ff 10 80 mov %eax,0x8010ffc0
80100318: 89 d0 mov %edx,%eax
8010031a: 83 e0 7f and $0x7f,%eax
8010031d: 0f be 80 40 ff 10 80 movsbl -0x7fef00c0(%eax),%eax
if(c == C('D')){ // EOF
80100324: 83 f8 04 cmp $0x4,%eax
80100327: 74 3f je 80100368 <consoleread+0xf8>
*dst++ = c;
80100329: 83 c6 01 add $0x1,%esi
--n;
8010032c: 83 eb 01 sub $0x1,%ebx
if(c == '\n')
8010032f: 83 f8 0a cmp $0xa,%eax
*dst++ = c;
80100332: 88 46 ff mov %al,-0x1(%esi)
if(c == '\n')
80100335: 74 43 je 8010037a <consoleread+0x10a>
while(n > 0){
80100337: 85 db test %ebx,%ebx
80100339: 0f 85 62 ff ff ff jne 801002a1 <consoleread+0x31>
8010033f: 8b 45 10 mov 0x10(%ebp),%eax
release(&cons.lock);
80100342: 83 ec 0c sub $0xc,%esp
80100345: 89 45 e4 mov %eax,-0x1c(%ebp)
80100348: 68 20 a5 10 80 push $0x8010a520
8010034d: e8 de 41 00 00 call 80104530 <release>
ilock(ip);
80100352: 89 3c 24 mov %edi,(%esp)
80100355: e8 36 13 00 00 call 80101690 <ilock>
return target - n;
8010035a: 8b 45 e4 mov -0x1c(%ebp),%eax
8010035d: 83 c4 10 add $0x10,%esp
}
80100360: 8d 65 f4 lea -0xc(%ebp),%esp
80100363: 5b pop %ebx
80100364: 5e pop %esi
80100365: 5f pop %edi
80100366: 5d pop %ebp
80100367: c3 ret
80100368: 8b 45 10 mov 0x10(%ebp),%eax
8010036b: 29 d8 sub %ebx,%eax
if(n < target){
8010036d: 3b 5d 10 cmp 0x10(%ebp),%ebx
80100370: 73 d0 jae 80100342 <consoleread+0xd2>
input.r--;
80100372: 89 15 c0 ff 10 80 mov %edx,0x8010ffc0
80100378: eb c8 jmp 80100342 <consoleread+0xd2>
8010037a: 8b 45 10 mov 0x10(%ebp),%eax
8010037d: 29 d8 sub %ebx,%eax
8010037f: eb c1 jmp 80100342 <consoleread+0xd2>
80100381: eb 0d jmp 80100390 <panic>
80100383: 90 nop
80100384: 90 nop
80100385: 90 nop
80100386: 90 nop
80100387: 90 nop
80100388: 90 nop
80100389: 90 nop
8010038a: 90 nop
8010038b: 90 nop
8010038c: 90 nop
8010038d: 90 nop
8010038e: 90 nop
8010038f: 90 nop
80100390 <panic>:
{
80100390: 55 push %ebp
80100391: 89 e5 mov %esp,%ebp
80100393: 56 push %esi
80100394: 53 push %ebx
80100395: 83 ec 30 sub $0x30,%esp
}
static inline void
cli(void)
{
asm volatile("cli");
80100398: fa cli
cons.locking = 0;
80100399: c7 05 54 a5 10 80 00 movl $0x0,0x8010a554
801003a0: 00 00 00
getcallerpcs(&s, pcs);
801003a3: 8d 5d d0 lea -0x30(%ebp),%ebx
801003a6: 8d 75 f8 lea -0x8(%ebp),%esi
cprintf("lapicid %d: panic: ", lapicid());
801003a9: e8 92 23 00 00 call 80102740 <lapicid>
801003ae: 83 ec 08 sub $0x8,%esp
801003b1: 50 push %eax
801003b2: 68 8d 70 10 80 push $0x8010708d
801003b7: e8 a4 02 00 00 call 80100660 <cprintf>
cprintf(s);
801003bc: 58 pop %eax
801003bd: ff 75 08 pushl 0x8(%ebp)
801003c0: e8 9b 02 00 00 call 80100660 <cprintf>
cprintf("\n");
801003c5: c7 04 24 a3 7a 10 80 movl $0x80107aa3,(%esp)
801003cc: e8 8f 02 00 00 call 80100660 <cprintf>
getcallerpcs(&s, pcs);
801003d1: 5a pop %edx
801003d2: 8d 45 08 lea 0x8(%ebp),%eax
801003d5: 59 pop %ecx
801003d6: 53 push %ebx
801003d7: 50 push %eax
801003d8: e8 63 3f 00 00 call 80104340 <getcallerpcs>
801003dd: 83 c4 10 add $0x10,%esp
cprintf(" %p", pcs[i]);
801003e0: 83 ec 08 sub $0x8,%esp
801003e3: ff 33 pushl (%ebx)
801003e5: 83 c3 04 add $0x4,%ebx
801003e8: 68 a1 70 10 80 push $0x801070a1
801003ed: e8 6e 02 00 00 call 80100660 <cprintf>
for(i=0; i<10; i++)
801003f2: 83 c4 10 add $0x10,%esp
801003f5: 39 f3 cmp %esi,%ebx
801003f7: 75 e7 jne 801003e0 <panic+0x50>
panicked = 1; // freeze other CPU
801003f9: c7 05 58 a5 10 80 01 movl $0x1,0x8010a558
80100400: 00 00 00
80100403: eb fe jmp 80100403 <panic+0x73>
80100405: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80100409: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80100410 <consputc>:
if(panicked){
80100410: 8b 0d 58 a5 10 80 mov 0x8010a558,%ecx
80100416: 85 c9 test %ecx,%ecx
80100418: 74 06 je 80100420 <consputc+0x10>
8010041a: fa cli
8010041b: eb fe jmp 8010041b <consputc+0xb>
8010041d: 8d 76 00 lea 0x0(%esi),%esi
{
80100420: 55 push %ebp
80100421: 89 e5 mov %esp,%ebp
80100423: 57 push %edi
80100424: 56 push %esi
80100425: 53 push %ebx
80100426: 89 c6 mov %eax,%esi
80100428: 83 ec 0c sub $0xc,%esp
if(c == BACKSPACE){
8010042b: 3d 00 01 00 00 cmp $0x100,%eax
80100430: 0f 84 b1 00 00 00 je 801004e7 <consputc+0xd7>
uartputc(c);
80100436: 83 ec 0c sub $0xc,%esp
80100439: 50 push %eax
8010043a: e8 41 58 00 00 call 80105c80 <uartputc>
8010043f: 83 c4 10 add $0x10,%esp
asm volatile("out %0,%1" : : "a" (data), "d" (port));
80100442: bb d4 03 00 00 mov $0x3d4,%ebx
80100447: b8 0e 00 00 00 mov $0xe,%eax
8010044c: 89 da mov %ebx,%edx
8010044e: ee out %al,(%dx)
asm volatile("in %1,%0" : "=a" (data) : "d" (port));
8010044f: b9 d5 03 00 00 mov $0x3d5,%ecx
80100454: 89 ca mov %ecx,%edx
80100456: ec in (%dx),%al
pos = inb(CRTPORT+1) << 8;
80100457: 0f b6 c0 movzbl %al,%eax
asm volatile("out %0,%1" : : "a" (data), "d" (port));
8010045a: 89 da mov %ebx,%edx
8010045c: c1 e0 08 shl $0x8,%eax
8010045f: 89 c7 mov %eax,%edi
80100461: b8 0f 00 00 00 mov $0xf,%eax
80100466: ee out %al,(%dx)
asm volatile("in %1,%0" : "=a" (data) : "d" (port));
80100467: 89 ca mov %ecx,%edx
80100469: ec in (%dx),%al
8010046a: 0f b6 d8 movzbl %al,%ebx
pos |= inb(CRTPORT+1);
8010046d: 09 fb or %edi,%ebx
if(c == '\n')
8010046f: 83 fe 0a cmp $0xa,%esi
80100472: 0f 84 f3 00 00 00 je 8010056b <consputc+0x15b>
else if(c == BACKSPACE){
80100478: 81 fe 00 01 00 00 cmp $0x100,%esi
8010047e: 0f 84 d7 00 00 00 je 8010055b <consputc+0x14b>
crt[pos++] = (c&0xff) | 0x0700; // black on white
80100484: 89 f0 mov %esi,%eax
80100486: 0f b6 c0 movzbl %al,%eax
80100489: 80 cc 07 or $0x7,%ah
8010048c: 66 89 84 1b 00 80 0b mov %ax,-0x7ff48000(%ebx,%ebx,1)
80100493: 80
80100494: 83 c3 01 add $0x1,%ebx
if(pos < 0 || pos > 25*80)
80100497: 81 fb d0 07 00 00 cmp $0x7d0,%ebx
8010049d: 0f 8f ab 00 00 00 jg 8010054e <consputc+0x13e>
if((pos/80) >= 24){ // Scroll up.
801004a3: 81 fb 7f 07 00 00 cmp $0x77f,%ebx
801004a9: 7f 66 jg 80100511 <consputc+0x101>
asm volatile("out %0,%1" : : "a" (data), "d" (port));
801004ab: be d4 03 00 00 mov $0x3d4,%esi
801004b0: b8 0e 00 00 00 mov $0xe,%eax
801004b5: 89 f2 mov %esi,%edx
801004b7: ee out %al,(%dx)
801004b8: b9 d5 03 00 00 mov $0x3d5,%ecx
outb(CRTPORT+1, pos>>8);
801004bd: 89 d8 mov %ebx,%eax
801004bf: c1 f8 08 sar $0x8,%eax
801004c2: 89 ca mov %ecx,%edx
801004c4: ee out %al,(%dx)
801004c5: b8 0f 00 00 00 mov $0xf,%eax
801004ca: 89 f2 mov %esi,%edx
801004cc: ee out %al,(%dx)
801004cd: 89 d8 mov %ebx,%eax
801004cf: 89 ca mov %ecx,%edx
801004d1: ee out %al,(%dx)
crt[pos] = ' ' | 0x0700;
801004d2: b8 20 07 00 00 mov $0x720,%eax
801004d7: 66 89 84 1b 00 80 0b mov %ax,-0x7ff48000(%ebx,%ebx,1)
801004de: 80
}
801004df: 8d 65 f4 lea -0xc(%ebp),%esp
801004e2: 5b pop %ebx
801004e3: 5e pop %esi
801004e4: 5f pop %edi
801004e5: 5d pop %ebp
801004e6: c3 ret
uartputc('\b'); uartputc(' '); uartputc('\b');
801004e7: 83 ec 0c sub $0xc,%esp
801004ea: 6a 08 push $0x8
801004ec: e8 8f 57 00 00 call 80105c80 <uartputc>
801004f1: c7 04 24 20 00 00 00 movl $0x20,(%esp)
801004f8: e8 83 57 00 00 call 80105c80 <uartputc>
801004fd: c7 04 24 08 00 00 00 movl $0x8,(%esp)
80100504: e8 77 57 00 00 call 80105c80 <uartputc>
80100509: 83 c4 10 add $0x10,%esp
8010050c: e9 31 ff ff ff jmp 80100442 <consputc+0x32>
memmove(crt, crt+80, sizeof(crt[0])*23*80);
80100511: 52 push %edx
80100512: 68 60 0e 00 00 push $0xe60
pos -= 80;
80100517: 83 eb 50 sub $0x50,%ebx
memmove(crt, crt+80, sizeof(crt[0])*23*80);
8010051a: 68 a0 80 0b 80 push $0x800b80a0
8010051f: 68 00 80 0b 80 push $0x800b8000
80100524: e8 17 41 00 00 call 80104640 <memmove>
memset(crt+pos, 0, sizeof(crt[0])*(24*80 - pos));
80100529: b8 80 07 00 00 mov $0x780,%eax
8010052e: 83 c4 0c add $0xc,%esp
80100531: 29 d8 sub %ebx,%eax
80100533: 01 c0 add %eax,%eax
80100535: 50 push %eax
80100536: 8d 04 1b lea (%ebx,%ebx,1),%eax
80100539: 6a 00 push $0x0
8010053b: 2d 00 80 f4 7f sub $0x7ff48000,%eax
80100540: 50 push %eax
80100541: e8 4a 40 00 00 call 80104590 <memset>
80100546: 83 c4 10 add $0x10,%esp
80100549: e9 5d ff ff ff jmp 801004ab <consputc+0x9b>
panic("pos under/overflow");
8010054e: 83 ec 0c sub $0xc,%esp
80100551: 68 a5 70 10 80 push $0x801070a5
80100556: e8 35 fe ff ff call 80100390 <panic>
if(pos > 0) --pos;
8010055b: 85 db test %ebx,%ebx
8010055d: 0f 84 48 ff ff ff je 801004ab <consputc+0x9b>
80100563: 83 eb 01 sub $0x1,%ebx
80100566: e9 2c ff ff ff jmp 80100497 <consputc+0x87>
pos += 80 - pos%80;
8010056b: 89 d8 mov %ebx,%eax
8010056d: b9 50 00 00 00 mov $0x50,%ecx
80100572: 99 cltd
80100573: f7 f9 idiv %ecx
80100575: 29 d1 sub %edx,%ecx
80100577: 01 cb add %ecx,%ebx
80100579: e9 19 ff ff ff jmp 80100497 <consputc+0x87>
8010057e: 66 90 xchg %ax,%ax
80100580 <printint>:
{
80100580: 55 push %ebp
80100581: 89 e5 mov %esp,%ebp
80100583: 57 push %edi
80100584: 56 push %esi
80100585: 53 push %ebx
80100586: 89 d3 mov %edx,%ebx
80100588: 83 ec 2c sub $0x2c,%esp
if(sign && (sign = xx < 0))
8010058b: 85 c9 test %ecx,%ecx
{
8010058d: 89 4d d4 mov %ecx,-0x2c(%ebp)
if(sign && (sign = xx < 0))
80100590: 74 04 je 80100596 <printint+0x16>
80100592: 85 c0 test %eax,%eax
80100594: 78 5a js 801005f0 <printint+0x70>
x = xx;
80100596: c7 45 d4 00 00 00 00 movl $0x0,-0x2c(%ebp)
i = 0;
8010059d: 31 c9 xor %ecx,%ecx
8010059f: 8d 75 d7 lea -0x29(%ebp),%esi
801005a2: eb 06 jmp 801005aa <printint+0x2a>
801005a4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
buf[i++] = digits[x % base];
801005a8: 89 f9 mov %edi,%ecx
801005aa: 31 d2 xor %edx,%edx
801005ac: 8d 79 01 lea 0x1(%ecx),%edi
801005af: f7 f3 div %ebx
801005b1: 0f b6 92 d0 70 10 80 movzbl -0x7fef8f30(%edx),%edx
}while((x /= base) != 0);
801005b8: 85 c0 test %eax,%eax
buf[i++] = digits[x % base];
801005ba: 88 14 3e mov %dl,(%esi,%edi,1)
}while((x /= base) != 0);
801005bd: 75 e9 jne 801005a8 <printint+0x28>
if(sign)
801005bf: 8b 45 d4 mov -0x2c(%ebp),%eax
801005c2: 85 c0 test %eax,%eax
801005c4: 74 08 je 801005ce <printint+0x4e>
buf[i++] = '-';
801005c6: c6 44 3d d8 2d movb $0x2d,-0x28(%ebp,%edi,1)
801005cb: 8d 79 02 lea 0x2(%ecx),%edi
801005ce: 8d 5c 3d d7 lea -0x29(%ebp,%edi,1),%ebx
801005d2: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
consputc(buf[i]);
801005d8: 0f be 03 movsbl (%ebx),%eax
801005db: 83 eb 01 sub $0x1,%ebx
801005de: e8 2d fe ff ff call 80100410 <consputc>
while(--i >= 0)
801005e3: 39 f3 cmp %esi,%ebx
801005e5: 75 f1 jne 801005d8 <printint+0x58>
}
801005e7: 83 c4 2c add $0x2c,%esp
801005ea: 5b pop %ebx
801005eb: 5e pop %esi
801005ec: 5f pop %edi
801005ed: 5d pop %ebp
801005ee: c3 ret
801005ef: 90 nop
x = -xx;
801005f0: f7 d8 neg %eax
801005f2: eb a9 jmp 8010059d <printint+0x1d>
801005f4: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
801005fa: 8d bf 00 00 00 00 lea 0x0(%edi),%edi
80100600 <consolewrite>:
int
consolewrite(struct inode *ip, char *buf, int n)
{
80100600: 55 push %ebp
80100601: 89 e5 mov %esp,%ebp
80100603: 57 push %edi
80100604: 56 push %esi
80100605: 53 push %ebx
80100606: 83 ec 18 sub $0x18,%esp
80100609: 8b 75 10 mov 0x10(%ebp),%esi
int i;
iunlock(ip);
8010060c: ff 75 08 pushl 0x8(%ebp)
8010060f: e8 5c 11 00 00 call 80101770 <iunlock>
acquire(&cons.lock);
80100614: c7 04 24 20 a5 10 80 movl $0x8010a520,(%esp)
8010061b: e8 f0 3d 00 00 call 80104410 <acquire>
for(i = 0; i < n; i++)
80100620: 83 c4 10 add $0x10,%esp
80100623: 85 f6 test %esi,%esi
80100625: 7e 18 jle 8010063f <consolewrite+0x3f>
80100627: 8b 7d 0c mov 0xc(%ebp),%edi
8010062a: 8d 1c 37 lea (%edi,%esi,1),%ebx
8010062d: 8d 76 00 lea 0x0(%esi),%esi
consputc(buf[i] & 0xff);
80100630: 0f b6 07 movzbl (%edi),%eax
80100633: 83 c7 01 add $0x1,%edi
80100636: e8 d5 fd ff ff call 80100410 <consputc>
for(i = 0; i < n; i++)
8010063b: 39 fb cmp %edi,%ebx
8010063d: 75 f1 jne 80100630 <consolewrite+0x30>
release(&cons.lock);
8010063f: 83 ec 0c sub $0xc,%esp
80100642: 68 20 a5 10 80 push $0x8010a520
80100647: e8 e4 3e 00 00 call 80104530 <release>
ilock(ip);
8010064c: 58 pop %eax
8010064d: ff 75 08 pushl 0x8(%ebp)
80100650: e8 3b 10 00 00 call 80101690 <ilock>
return n;
}
80100655: 8d 65 f4 lea -0xc(%ebp),%esp
80100658: 89 f0 mov %esi,%eax
8010065a: 5b pop %ebx
8010065b: 5e pop %esi
8010065c: 5f pop %edi
8010065d: 5d pop %ebp
8010065e: c3 ret
8010065f: 90 nop
80100660 <cprintf>:
{
80100660: 55 push %ebp
80100661: 89 e5 mov %esp,%ebp
80100663: 57 push %edi
80100664: 56 push %esi
80100665: 53 push %ebx
80100666: 83 ec 1c sub $0x1c,%esp
locking = cons.locking;
80100669: a1 54 a5 10 80 mov 0x8010a554,%eax
if(locking)
8010066e: 85 c0 test %eax,%eax
locking = cons.locking;
80100670: 89 45 dc mov %eax,-0x24(%ebp)
if(locking)
80100673: 0f 85 6f 01 00 00 jne 801007e8 <cprintf+0x188>
if (fmt == 0)
80100679: 8b 45 08 mov 0x8(%ebp),%eax
8010067c: 85 c0 test %eax,%eax
8010067e: 89 c7 mov %eax,%edi
80100680: 0f 84 77 01 00 00 je 801007fd <cprintf+0x19d>
for(i = 0; (c = fmt[i] & 0xff) != 0; i++){
80100686: 0f b6 00 movzbl (%eax),%eax
argp = (uint*)(void*)(&fmt + 1);
80100689: 8d 4d 0c lea 0xc(%ebp),%ecx
for(i = 0; (c = fmt[i] & 0xff) != 0; i++){
8010068c: 31 db xor %ebx,%ebx
argp = (uint*)(void*)(&fmt + 1);
8010068e: 89 4d e4 mov %ecx,-0x1c(%ebp)
for(i = 0; (c = fmt[i] & 0xff) != 0; i++){
80100691: 85 c0 test %eax,%eax
80100693: 75 56 jne 801006eb <cprintf+0x8b>
80100695: eb 79 jmp 80100710 <cprintf+0xb0>
80100697: 89 f6 mov %esi,%esi
80100699: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
c = fmt[++i] & 0xff;
801006a0: 0f b6 16 movzbl (%esi),%edx
if(c == 0)
801006a3: 85 d2 test %edx,%edx
801006a5: 74 69 je 80100710 <cprintf+0xb0>
801006a7: 83 c3 02 add $0x2,%ebx
switch(c){
801006aa: 83 fa 70 cmp $0x70,%edx
801006ad: 8d 34 1f lea (%edi,%ebx,1),%esi
801006b0: 0f 84 84 00 00 00 je 8010073a <cprintf+0xda>
801006b6: 7f 78 jg 80100730 <cprintf+0xd0>
801006b8: 83 fa 25 cmp $0x25,%edx
801006bb: 0f 84 ff 00 00 00 je 801007c0 <cprintf+0x160>
801006c1: 83 fa 64 cmp $0x64,%edx
801006c4: 0f 85 8e 00 00 00 jne 80100758 <cprintf+0xf8>
printint(*argp++, 10, 1);
801006ca: 8b 45 e4 mov -0x1c(%ebp),%eax
801006cd: ba 0a 00 00 00 mov $0xa,%edx
801006d2: 8d 48 04 lea 0x4(%eax),%ecx
801006d5: 8b 00 mov (%eax),%eax
801006d7: 89 4d e4 mov %ecx,-0x1c(%ebp)
801006da: b9 01 00 00 00 mov $0x1,%ecx
801006df: e8 9c fe ff ff call 80100580 <printint>
for(i = 0; (c = fmt[i] & 0xff) != 0; i++){
801006e4: 0f b6 06 movzbl (%esi),%eax
801006e7: 85 c0 test %eax,%eax
801006e9: 74 25 je 80100710 <cprintf+0xb0>
801006eb: 8d 53 01 lea 0x1(%ebx),%edx
if(c != '%'){
801006ee: 83 f8 25 cmp $0x25,%eax
801006f1: 8d 34 17 lea (%edi,%edx,1),%esi
801006f4: 74 aa je 801006a0 <cprintf+0x40>
801006f6: 89 55 e0 mov %edx,-0x20(%ebp)
consputc(c);
801006f9: e8 12 fd ff ff call 80100410 <consputc>
for(i = 0; (c = fmt[i] & 0xff) != 0; i++){
801006fe: 0f b6 06 movzbl (%esi),%eax
continue;
80100701: 8b 55 e0 mov -0x20(%ebp),%edx
80100704: 89 d3 mov %edx,%ebx
for(i = 0; (c = fmt[i] & 0xff) != 0; i++){
80100706: 85 c0 test %eax,%eax
80100708: 75 e1 jne 801006eb <cprintf+0x8b>
8010070a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
if(locking)
80100710: 8b 45 dc mov -0x24(%ebp),%eax
80100713: 85 c0 test %eax,%eax
80100715: 74 10 je 80100727 <cprintf+0xc7>
release(&cons.lock);
80100717: 83 ec 0c sub $0xc,%esp
8010071a: 68 20 a5 10 80 push $0x8010a520
8010071f: e8 0c 3e 00 00 call 80104530 <release>
80100724: 83 c4 10 add $0x10,%esp
}
80100727: 8d 65 f4 lea -0xc(%ebp),%esp
8010072a: 5b pop %ebx
8010072b: 5e pop %esi
8010072c: 5f pop %edi
8010072d: 5d pop %ebp
8010072e: c3 ret
8010072f: 90 nop
switch(c){
80100730: 83 fa 73 cmp $0x73,%edx
80100733: 74 43 je 80100778 <cprintf+0x118>
80100735: 83 fa 78 cmp $0x78,%edx
80100738: 75 1e jne 80100758 <cprintf+0xf8>
printint(*argp++, 16, 0);
8010073a: 8b 45 e4 mov -0x1c(%ebp),%eax
8010073d: ba 10 00 00 00 mov $0x10,%edx
80100742: 8d 48 04 lea 0x4(%eax),%ecx
80100745: 8b 00 mov (%eax),%eax
80100747: 89 4d e4 mov %ecx,-0x1c(%ebp)
8010074a: 31 c9 xor %ecx,%ecx
8010074c: e8 2f fe ff ff call 80100580 <printint>
break;
80100751: eb 91 jmp 801006e4 <cprintf+0x84>
80100753: 90 nop
80100754: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
consputc('%');
80100758: b8 25 00 00 00 mov $0x25,%eax
8010075d: 89 55 e0 mov %edx,-0x20(%ebp)
80100760: e8 ab fc ff ff call 80100410 <consputc>
consputc(c);
80100765: 8b 55 e0 mov -0x20(%ebp),%edx
80100768: 89 d0 mov %edx,%eax
8010076a: e8 a1 fc ff ff call 80100410 <consputc>
break;
8010076f: e9 70 ff ff ff jmp 801006e4 <cprintf+0x84>
80100774: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
if((s = (char*)*argp++) == 0)
80100778: 8b 45 e4 mov -0x1c(%ebp),%eax
8010077b: 8b 10 mov (%eax),%edx
8010077d: 8d 48 04 lea 0x4(%eax),%ecx
80100780: 89 4d e0 mov %ecx,-0x20(%ebp)
80100783: 85 d2 test %edx,%edx
80100785: 74 49 je 801007d0 <cprintf+0x170>
for(; *s; s++)
80100787: 0f be 02 movsbl (%edx),%eax
if((s = (char*)*argp++) == 0)
8010078a: 89 4d e4 mov %ecx,-0x1c(%ebp)
for(; *s; s++)
8010078d: 84 c0 test %al,%al
8010078f: 0f 84 4f ff ff ff je 801006e4 <cprintf+0x84>
80100795: 89 5d e4 mov %ebx,-0x1c(%ebp)
80100798: 89 d3 mov %edx,%ebx
8010079a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
801007a0: 83 c3 01 add $0x1,%ebx
consputc(*s);
801007a3: e8 68 fc ff ff call 80100410 <consputc>
for(; *s; s++)
801007a8: 0f be 03 movsbl (%ebx),%eax
801007ab: 84 c0 test %al,%al
801007ad: 75 f1 jne 801007a0 <cprintf+0x140>
if((s = (char*)*argp++) == 0)
801007af: 8b 45 e0 mov -0x20(%ebp),%eax
801007b2: 8b 5d e4 mov -0x1c(%ebp),%ebx
801007b5: 89 45 e4 mov %eax,-0x1c(%ebp)
801007b8: e9 27 ff ff ff jmp 801006e4 <cprintf+0x84>
801007bd: 8d 76 00 lea 0x0(%esi),%esi
consputc('%');
801007c0: b8 25 00 00 00 mov $0x25,%eax
801007c5: e8 46 fc ff ff call 80100410 <consputc>
break;
801007ca: e9 15 ff ff ff jmp 801006e4 <cprintf+0x84>
801007cf: 90 nop
s = "(null)";
801007d0: ba b8 70 10 80 mov $0x801070b8,%edx
for(; *s; s++)
801007d5: 89 5d e4 mov %ebx,-0x1c(%ebp)
801007d8: b8 28 00 00 00 mov $0x28,%eax
801007dd: 89 d3 mov %edx,%ebx
801007df: eb bf jmp 801007a0 <cprintf+0x140>
801007e1: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
acquire(&cons.lock);
801007e8: 83 ec 0c sub $0xc,%esp
801007eb: 68 20 a5 10 80 push $0x8010a520
801007f0: e8 1b 3c 00 00 call 80104410 <acquire>
801007f5: 83 c4 10 add $0x10,%esp
801007f8: e9 7c fe ff ff jmp 80100679 <cprintf+0x19>
panic("null fmt");
801007fd: 83 ec 0c sub $0xc,%esp
80100800: 68 bf 70 10 80 push $0x801070bf
80100805: e8 86 fb ff ff call 80100390 <panic>
8010080a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
80100810 <consoleintr>:
{
80100810: 55 push %ebp
80100811: 89 e5 mov %esp,%ebp
80100813: 57 push %edi
80100814: 56 push %esi
80100815: 53 push %ebx
int c, doprocdump = 0;
80100816: 31 f6 xor %esi,%esi
{
80100818: 83 ec 18 sub $0x18,%esp
8010081b: 8b 5d 08 mov 0x8(%ebp),%ebx
acquire(&cons.lock);
8010081e: 68 20 a5 10 80 push $0x8010a520
80100823: e8 e8 3b 00 00 call 80104410 <acquire>
while((c = getc()) >= 0){
80100828: 83 c4 10 add $0x10,%esp
8010082b: 90 nop
8010082c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80100830: ff d3 call *%ebx
80100832: 85 c0 test %eax,%eax
80100834: 89 c7 mov %eax,%edi
80100836: 78 48 js 80100880 <consoleintr+0x70>
switch(c){
80100838: 83 ff 10 cmp $0x10,%edi
8010083b: 0f 84 e7 00 00 00 je 80100928 <consoleintr+0x118>
80100841: 7e 5d jle 801008a0 <consoleintr+0x90>
80100843: 83 ff 15 cmp $0x15,%edi
80100846: 0f 84 ec 00 00 00 je 80100938 <consoleintr+0x128>
8010084c: 83 ff 7f cmp $0x7f,%edi
8010084f: 75 54 jne 801008a5 <consoleintr+0x95>
if(input.e != input.w){
80100851: a1 c8 ff 10 80 mov 0x8010ffc8,%eax
80100856: 3b 05 c4 ff 10 80 cmp 0x8010ffc4,%eax
8010085c: 74 d2 je 80100830 <consoleintr+0x20>
input.e--;
8010085e: 83 e8 01 sub $0x1,%eax
80100861: a3 c8 ff 10 80 mov %eax,0x8010ffc8
consputc(BACKSPACE);
80100866: b8 00 01 00 00 mov $0x100,%eax
8010086b: e8 a0 fb ff ff call 80100410 <consputc>
while((c = getc()) >= 0){
80100870: ff d3 call *%ebx
80100872: 85 c0 test %eax,%eax
80100874: 89 c7 mov %eax,%edi
80100876: 79 c0 jns 80100838 <consoleintr+0x28>
80100878: 90 nop
80100879: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
release(&cons.lock);
80100880: 83 ec 0c sub $0xc,%esp
80100883: 68 20 a5 10 80 push $0x8010a520
80100888: e8 a3 3c 00 00 call 80104530 <release>
if(doprocdump) {
8010088d: 83 c4 10 add $0x10,%esp
80100890: 85 f6 test %esi,%esi
80100892: 0f 85 f8 00 00 00 jne 80100990 <consoleintr+0x180>
}
80100898: 8d 65 f4 lea -0xc(%ebp),%esp
8010089b: 5b pop %ebx
8010089c: 5e pop %esi
8010089d: 5f pop %edi
8010089e: 5d pop %ebp
8010089f: c3 ret
switch(c){
801008a0: 83 ff 08 cmp $0x8,%edi
801008a3: 74 ac je 80100851 <consoleintr+0x41>
if(c != 0 && input.e-input.r < INPUT_BUF){
801008a5: 85 ff test %edi,%edi
801008a7: 74 87 je 80100830 <consoleintr+0x20>
801008a9: a1 c8 ff 10 80 mov 0x8010ffc8,%eax
801008ae: 89 c2 mov %eax,%edx
801008b0: 2b 15 c0 ff 10 80 sub 0x8010ffc0,%edx
801008b6: 83 fa 7f cmp $0x7f,%edx
801008b9: 0f 87 71 ff ff ff ja 80100830 <consoleintr+0x20>
801008bf: 8d 50 01 lea 0x1(%eax),%edx
801008c2: 83 e0 7f and $0x7f,%eax
c = (c == '\r') ? '\n' : c;
801008c5: 83 ff 0d cmp $0xd,%edi
input.buf[input.e++ % INPUT_BUF] = c;
801008c8: 89 15 c8 ff 10 80 mov %edx,0x8010ffc8
c = (c == '\r') ? '\n' : c;
801008ce: 0f 84 cc 00 00 00 je 801009a0 <consoleintr+0x190>
input.buf[input.e++ % INPUT_BUF] = c;
801008d4: 89 f9 mov %edi,%ecx
801008d6: 88 88 40 ff 10 80 mov %cl,-0x7fef00c0(%eax)
consputc(c);
801008dc: 89 f8 mov %edi,%eax
801008de: e8 2d fb ff ff call 80100410 <consputc>
if(c == '\n' || c == C('D') || input.e == input.r+INPUT_BUF){
801008e3: 83 ff 0a cmp $0xa,%edi
801008e6: 0f 84 c5 00 00 00 je 801009b1 <consoleintr+0x1a1>
801008ec: 83 ff 04 cmp $0x4,%edi
801008ef: 0f 84 bc 00 00 00 je 801009b1 <consoleintr+0x1a1>
801008f5: a1 c0 ff 10 80 mov 0x8010ffc0,%eax
801008fa: 83 e8 80 sub $0xffffff80,%eax
801008fd: 39 05 c8 ff 10 80 cmp %eax,0x8010ffc8
80100903: 0f 85 27 ff ff ff jne 80100830 <consoleintr+0x20>
wakeup(&input.r);
80100909: 83 ec 0c sub $0xc,%esp
input.w = input.e;
8010090c: a3 c4 ff 10 80 mov %eax,0x8010ffc4
wakeup(&input.r);
80100911: 68 c0 ff 10 80 push $0x8010ffc0
80100916: e8 35 36 00 00 call 80103f50 <wakeup>
8010091b: 83 c4 10 add $0x10,%esp
8010091e: e9 0d ff ff ff jmp 80100830 <consoleintr+0x20>
80100923: 90 nop
80100924: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
doprocdump = 1;
80100928: be 01 00 00 00 mov $0x1,%esi
8010092d: e9 fe fe ff ff jmp 80100830 <consoleintr+0x20>
80100932: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
while(input.e != input.w &&
80100938: a1 c8 ff 10 80 mov 0x8010ffc8,%eax
8010093d: 39 05 c4 ff 10 80 cmp %eax,0x8010ffc4
80100943: 75 2b jne 80100970 <consoleintr+0x160>
80100945: e9 e6 fe ff ff jmp 80100830 <consoleintr+0x20>
8010094a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
input.e--;
80100950: a3 c8 ff 10 80 mov %eax,0x8010ffc8
consputc(BACKSPACE);
80100955: b8 00 01 00 00 mov $0x100,%eax
8010095a: e8 b1 fa ff ff call 80100410 <consputc>
while(input.e != input.w &&
8010095f: a1 c8 ff 10 80 mov 0x8010ffc8,%eax
80100964: 3b 05 c4 ff 10 80 cmp 0x8010ffc4,%eax
8010096a: 0f 84 c0 fe ff ff je 80100830 <consoleintr+0x20>
input.buf[(input.e-1) % INPUT_BUF] != '\n'){
80100970: 83 e8 01 sub $0x1,%eax
80100973: 89 c2 mov %eax,%edx
80100975: 83 e2 7f and $0x7f,%edx
while(input.e != input.w &&
80100978: 80 ba 40 ff 10 80 0a cmpb $0xa,-0x7fef00c0(%edx)
8010097f: 75 cf jne 80100950 <consoleintr+0x140>
80100981: e9 aa fe ff ff jmp 80100830 <consoleintr+0x20>
80100986: 8d 76 00 lea 0x0(%esi),%esi
80100989: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
}
80100990: 8d 65 f4 lea -0xc(%ebp),%esp
80100993: 5b pop %ebx
80100994: 5e pop %esi
80100995: 5f pop %edi
80100996: 5d pop %ebp
procdump(); // now call procdump() wo. cons.lock held
80100997: e9 94 36 00 00 jmp 80104030 <procdump>
8010099c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
input.buf[input.e++ % INPUT_BUF] = c;
801009a0: c6 80 40 ff 10 80 0a movb $0xa,-0x7fef00c0(%eax)
consputc(c);
801009a7: b8 0a 00 00 00 mov $0xa,%eax
801009ac: e8 5f fa ff ff call 80100410 <consputc>
801009b1: a1 c8 ff 10 80 mov 0x8010ffc8,%eax
801009b6: e9 4e ff ff ff jmp 80100909 <consoleintr+0xf9>
801009bb: 90 nop
801009bc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
801009c0 <consoleinit>:
void
consoleinit(void)
{
801009c0: 55 push %ebp
801009c1: 89 e5 mov %esp,%ebp
801009c3: 83 ec 10 sub $0x10,%esp
initlock(&cons.lock, "console");
801009c6: 68 c8 70 10 80 push $0x801070c8
801009cb: 68 20 a5 10 80 push $0x8010a520
801009d0: e8 4b 39 00 00 call 80104320 <initlock>
devsw[CONSOLE].write = consolewrite;
devsw[CONSOLE].read = consoleread;
cons.locking = 1;
ioapicenable(IRQ_KBD, 0);
801009d5: 58 pop %eax
801009d6: 5a pop %edx
801009d7: 6a 00 push $0x0
801009d9: 6a 01 push $0x1
devsw[CONSOLE].write = consolewrite;
801009db: c7 05 8c 09 11 80 00 movl $0x80100600,0x8011098c
801009e2: 06 10 80
devsw[CONSOLE].read = consoleread;
801009e5: c7 05 88 09 11 80 70 movl $0x80100270,0x80110988
801009ec: 02 10 80
cons.locking = 1;
801009ef: c7 05 54 a5 10 80 01 movl $0x1,0x8010a554
801009f6: 00 00 00
ioapicenable(IRQ_KBD, 0);
801009f9: e8 e2 18 00 00 call 801022e0 <ioapicenable>
}
801009fe: 83 c4 10 add $0x10,%esp
80100a01: c9 leave
80100a02: c3 ret
80100a03: 66 90 xchg %ax,%ax
80100a05: 66 90 xchg %ax,%ax
80100a07: 66 90 xchg %ax,%ax
80100a09: 66 90 xchg %ax,%ax
80100a0b: 66 90 xchg %ax,%ax
80100a0d: 66 90 xchg %ax,%ax
80100a0f: 90 nop
80100a10 <exec>:
#include "x86.h"
#include "elf.h"
int
exec(char *path, char **argv)
{
80100a10: 55 push %ebp
80100a11: 89 e5 mov %esp,%ebp
80100a13: 57 push %edi
80100a14: 56 push %esi
80100a15: 53 push %ebx
80100a16: 81 ec 0c 01 00 00 sub $0x10c,%esp
uint argc, sz, sp, ustack[3+MAXARG+1];
struct elfhdr elf;
struct inode *ip;
struct proghdr ph;
pde_t *pgdir, *oldpgdir;
struct proc *curproc = myproc();
80100a1c: e8 bf 2d 00 00 call 801037e0 <myproc>
80100a21: 89 85 f4 fe ff ff mov %eax,-0x10c(%ebp)
begin_op();
80100a27: e8 84 21 00 00 call 80102bb0 <begin_op>
if((ip = namei(path)) == 0){
80100a2c: 83 ec 0c sub $0xc,%esp
80100a2f: ff 75 08 pushl 0x8(%ebp)
80100a32: e8 b9 14 00 00 call 80101ef0 <namei>
80100a37: 83 c4 10 add $0x10,%esp
80100a3a: 85 c0 test %eax,%eax
80100a3c: 0f 84 91 01 00 00 je 80100bd3 <exec+0x1c3>
end_op();
cprintf("exec: fail\n");
return -1;
}
ilock(ip);
80100a42: 83 ec 0c sub $0xc,%esp
80100a45: 89 c3 mov %eax,%ebx
80100a47: 50 push %eax
80100a48: e8 43 0c 00 00 call 80101690 <ilock>
pgdir = 0;
// Check ELF header
if(readi(ip, (char*)&elf, 0, sizeof(elf)) != sizeof(elf))
80100a4d: 8d 85 24 ff ff ff lea -0xdc(%ebp),%eax
80100a53: 6a 34 push $0x34
80100a55: 6a 00 push $0x0
80100a57: 50 push %eax
80100a58: 53 push %ebx
80100a59: e8 12 0f 00 00 call 80101970 <readi>
80100a5e: 83 c4 20 add $0x20,%esp
80100a61: 83 f8 34 cmp $0x34,%eax
80100a64: 74 22 je 80100a88 <exec+0x78>
bad:
if(pgdir)
freevm(pgdir);
if(ip){
iunlockput(ip);
80100a66: 83 ec 0c sub $0xc,%esp
80100a69: 53 push %ebx
80100a6a: e8 b1 0e 00 00 call 80101920 <iunlockput>
end_op();
80100a6f: e8 ac 21 00 00 call 80102c20 <end_op>
80100a74: 83 c4 10 add $0x10,%esp
}
return -1;
80100a77: b8 ff ff ff ff mov $0xffffffff,%eax
}
80100a7c: 8d 65 f4 lea -0xc(%ebp),%esp
80100a7f: 5b pop %ebx
80100a80: 5e pop %esi
80100a81: 5f pop %edi
80100a82: 5d pop %ebp
80100a83: c3 ret
80100a84: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
if(elf.magic != ELF_MAGIC)
80100a88: 81 bd 24 ff ff ff 7f cmpl $0x464c457f,-0xdc(%ebp)
80100a8f: 45 4c 46
80100a92: 75 d2 jne 80100a66 <exec+0x56>
if((pgdir = setupkvm()) == 0)
80100a94: e8 37 63 00 00 call 80106dd0 <setupkvm>
80100a99: 85 c0 test %eax,%eax
80100a9b: 89 85 f0 fe ff ff mov %eax,-0x110(%ebp)
80100aa1: 74 c3 je 80100a66 <exec+0x56>
sz = 0;
80100aa3: 31 ff xor %edi,%edi
for(i=0, off=elf.phoff; i<elf.phnum; i++, off+=sizeof(ph)){
80100aa5: 66 83 bd 50 ff ff ff cmpw $0x0,-0xb0(%ebp)
80100aac: 00
80100aad: 8b 85 40 ff ff ff mov -0xc0(%ebp),%eax
80100ab3: 89 85 ec fe ff ff mov %eax,-0x114(%ebp)
80100ab9: 0f 84 93 02 00 00 je 80100d52 <exec+0x342>
80100abf: 31 f6 xor %esi,%esi
80100ac1: eb 7f jmp 80100b42 <exec+0x132>
80100ac3: 90 nop
80100ac4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
if(ph.type != ELF_PROG_LOAD)
80100ac8: 83 bd 04 ff ff ff 01 cmpl $0x1,-0xfc(%ebp)
80100acf: 75 63 jne 80100b34 <exec+0x124>
if(ph.memsz < ph.filesz)
80100ad1: 8b 85 18 ff ff ff mov -0xe8(%ebp),%eax
80100ad7: 3b 85 14 ff ff ff cmp -0xec(%ebp),%eax
80100add: 0f 82 86 00 00 00 jb 80100b69 <exec+0x159>
80100ae3: 03 85 0c ff ff ff add -0xf4(%ebp),%eax
80100ae9: 72 7e jb 80100b69 <exec+0x159>
if((sz = allocuvm(pgdir, sz, ph.vaddr + ph.memsz)) == 0)
80100aeb: 83 ec 04 sub $0x4,%esp
80100aee: 50 push %eax
80100aef: 57 push %edi
80100af0: ff b5 f0 fe ff ff pushl -0x110(%ebp)
80100af6: e8 f5 60 00 00 call 80106bf0 <allocuvm>
80100afb: 83 c4 10 add $0x10,%esp
80100afe: 85 c0 test %eax,%eax
80100b00: 89 c7 mov %eax,%edi
80100b02: 74 65 je 80100b69 <exec+0x159>
if(ph.vaddr % PGSIZE != 0)
80100b04: 8b 85 0c ff ff ff mov -0xf4(%ebp),%eax
80100b0a: a9 ff 0f 00 00 test $0xfff,%eax
80100b0f: 75 58 jne 80100b69 <exec+0x159>
if(loaduvm(pgdir, (char*)ph.vaddr, ip, ph.off, ph.filesz) < 0)
80100b11: 83 ec 0c sub $0xc,%esp
80100b14: ff b5 14 ff ff ff pushl -0xec(%ebp)
80100b1a: ff b5 08 ff ff ff pushl -0xf8(%ebp)
80100b20: 53 push %ebx
80100b21: 50 push %eax
80100b22: ff b5 f0 fe ff ff pushl -0x110(%ebp)
80100b28: e8 03 60 00 00 call 80106b30 <loaduvm>
80100b2d: 83 c4 20 add $0x20,%esp
80100b30: 85 c0 test %eax,%eax
80100b32: 78 35 js 80100b69 <exec+0x159>
for(i=0, off=elf.phoff; i<elf.phnum; i++, off+=sizeof(ph)){
80100b34: 0f b7 85 50 ff ff ff movzwl -0xb0(%ebp),%eax
80100b3b: 83 c6 01 add $0x1,%esi
80100b3e: 39 f0 cmp %esi,%eax
80100b40: 7e 3d jle 80100b7f <exec+0x16f>
if(readi(ip, (char*)&ph, off, sizeof(ph)) != sizeof(ph))
80100b42: 89 f0 mov %esi,%eax
80100b44: 6a 20 push $0x20
80100b46: c1 e0 05 shl $0x5,%eax
80100b49: 03 85 ec fe ff ff add -0x114(%ebp),%eax
80100b4f: 50 push %eax
80100b50: 8d 85 04 ff ff ff lea -0xfc(%ebp),%eax
80100b56: 50 push %eax
80100b57: 53 push %ebx
80100b58: e8 13 0e 00 00 call 80101970 <readi>
80100b5d: 83 c4 10 add $0x10,%esp
80100b60: 83 f8 20 cmp $0x20,%eax
80100b63: 0f 84 5f ff ff ff je 80100ac8 <exec+0xb8>
freevm(pgdir);
80100b69: 83 ec 0c sub $0xc,%esp
80100b6c: ff b5 f0 fe ff ff pushl -0x110(%ebp)
80100b72: e8 d9 61 00 00 call 80106d50 <freevm>
80100b77: 83 c4 10 add $0x10,%esp
80100b7a: e9 e7 fe ff ff jmp 80100a66 <exec+0x56>
80100b7f: 81 c7 ff 0f 00 00 add $0xfff,%edi
80100b85: 81 e7 00 f0 ff ff and $0xfffff000,%edi
80100b8b: 8d b7 00 20 00 00 lea 0x2000(%edi),%esi
iunlockput(ip);
80100b91: 83 ec 0c sub $0xc,%esp
80100b94: 53 push %ebx
80100b95: e8 86 0d 00 00 call 80101920 <iunlockput>
end_op();
80100b9a: e8 81 20 00 00 call 80102c20 <end_op>
if((sz = allocuvm(pgdir, sz, sz + 2*PGSIZE)) == 0)
80100b9f: 83 c4 0c add $0xc,%esp
80100ba2: 56 push %esi
80100ba3: 57 push %edi
80100ba4: ff b5 f0 fe ff ff pushl -0x110(%ebp)
80100baa: e8 41 60 00 00 call 80106bf0 <allocuvm>
80100baf: 83 c4 10 add $0x10,%esp
80100bb2: 85 c0 test %eax,%eax
80100bb4: 89 c6 mov %eax,%esi
80100bb6: 75 3a jne 80100bf2 <exec+0x1e2>
freevm(pgdir);
80100bb8: 83 ec 0c sub $0xc,%esp
80100bbb: ff b5 f0 fe ff ff pushl -0x110(%ebp)
80100bc1: e8 8a 61 00 00 call 80106d50 <freevm>
80100bc6: 83 c4 10 add $0x10,%esp
return -1;
80100bc9: b8 ff ff ff ff mov $0xffffffff,%eax
80100bce: e9 a9 fe ff ff jmp 80100a7c <exec+0x6c>
end_op();
80100bd3: e8 48 20 00 00 call 80102c20 <end_op>
cprintf("exec: fail\n");
80100bd8: 83 ec 0c sub $0xc,%esp
80100bdb: 68 e1 70 10 80 push $0x801070e1
80100be0: e8 7b fa ff ff call 80100660 <cprintf>
return -1;
80100be5: 83 c4 10 add $0x10,%esp
80100be8: b8 ff ff ff ff mov $0xffffffff,%eax
80100bed: e9 8a fe ff ff jmp 80100a7c <exec+0x6c>
clearpteu(pgdir, (char*)(sz - 2*PGSIZE));
80100bf2: 8d 80 00 e0 ff ff lea -0x2000(%eax),%eax
80100bf8: 83 ec 08 sub $0x8,%esp
for(argc = 0; argv[argc]; argc++) {
80100bfb: 31 ff xor %edi,%edi
80100bfd: 89 f3 mov %esi,%ebx
clearpteu(pgdir, (char*)(sz - 2*PGSIZE));
80100bff: 50 push %eax
80100c00: ff b5 f0 fe ff ff pushl -0x110(%ebp)
80100c06: e8 65 62 00 00 call 80106e70 <clearpteu>
for(argc = 0; argv[argc]; argc++) {
80100c0b: 8b 45 0c mov 0xc(%ebp),%eax
80100c0e: 83 c4 10 add $0x10,%esp
80100c11: 8d 95 58 ff ff ff lea -0xa8(%ebp),%edx
80100c17: 8b 00 mov (%eax),%eax
80100c19: 85 c0 test %eax,%eax
80100c1b: 74 70 je 80100c8d <exec+0x27d>
80100c1d: 89 b5 ec fe ff ff mov %esi,-0x114(%ebp)
80100c23: 8b b5 f0 fe ff ff mov -0x110(%ebp),%esi
80100c29: eb 0a jmp 80100c35 <exec+0x225>
80100c2b: 90 nop
80100c2c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
if(argc >= MAXARG)
80100c30: 83 ff 20 cmp $0x20,%edi
80100c33: 74 83 je 80100bb8 <exec+0x1a8>
sp = (sp - (strlen(argv[argc]) + 1)) & ~3;
80100c35: 83 ec 0c sub $0xc,%esp
80100c38: 50 push %eax
80100c39: e8 72 3b 00 00 call 801047b0 <strlen>
80100c3e: f7 d0 not %eax
80100c40: 01 c3 add %eax,%ebx
if(copyout(pgdir, sp, argv[argc], strlen(argv[argc]) + 1) < 0)
80100c42: 8b 45 0c mov 0xc(%ebp),%eax
80100c45: 5a pop %edx
sp = (sp - (strlen(argv[argc]) + 1)) & ~3;
80100c46: 83 e3 fc and $0xfffffffc,%ebx
if(copyout(pgdir, sp, argv[argc], strlen(argv[argc]) + 1) < 0)
80100c49: ff 34 b8 pushl (%eax,%edi,4)
80100c4c: e8 5f 3b 00 00 call 801047b0 <strlen>
80100c51: 83 c0 01 add $0x1,%eax
80100c54: 50 push %eax
80100c55: 8b 45 0c mov 0xc(%ebp),%eax
80100c58: ff 34 b8 pushl (%eax,%edi,4)
80100c5b: 53 push %ebx
80100c5c: 56 push %esi
80100c5d: e8 5e 63 00 00 call 80106fc0 <copyout>
80100c62: 83 c4 20 add $0x20,%esp
80100c65: 85 c0 test %eax,%eax
80100c67: 0f 88 4b ff ff ff js 80100bb8 <exec+0x1a8>
for(argc = 0; argv[argc]; argc++) {
80100c6d: 8b 45 0c mov 0xc(%ebp),%eax
ustack[3+argc] = sp;
80100c70: 89 9c bd 64 ff ff ff mov %ebx,-0x9c(%ebp,%edi,4)
for(argc = 0; argv[argc]; argc++) {
80100c77: 83 c7 01 add $0x1,%edi
ustack[3+argc] = sp;
80100c7a: 8d 95 58 ff ff ff lea -0xa8(%ebp),%edx
for(argc = 0; argv[argc]; argc++) {
80100c80: 8b 04 b8 mov (%eax,%edi,4),%eax
80100c83: 85 c0 test %eax,%eax
80100c85: 75 a9 jne 80100c30 <exec+0x220>
80100c87: 8b b5 ec fe ff ff mov -0x114(%ebp),%esi
ustack[2] = sp - (argc+1)*4; // argv pointer
80100c8d: 8d 04 bd 04 00 00 00 lea 0x4(,%edi,4),%eax
80100c94: 89 d9 mov %ebx,%ecx
ustack[3+argc] = 0;
80100c96: c7 84 bd 64 ff ff ff movl $0x0,-0x9c(%ebp,%edi,4)
80100c9d: 00 00 00 00
ustack[0] = 0xffffffff; // fake return PC
80100ca1: c7 85 58 ff ff ff ff movl $0xffffffff,-0xa8(%ebp)
80100ca8: ff ff ff
ustack[1] = argc;
80100cab: 89 bd 5c ff ff ff mov %edi,-0xa4(%ebp)
ustack[2] = sp - (argc+1)*4; // argv pointer
80100cb1: 29 c1 sub %eax,%ecx
sp -= (3+argc+1) * 4;
80100cb3: 83 c0 0c add $0xc,%eax
80100cb6: 29 c3 sub %eax,%ebx
if(copyout(pgdir, sp, ustack, (3+argc+1)*4) < 0)
80100cb8: 50 push %eax
80100cb9: 52 push %edx
80100cba: 53 push %ebx
80100cbb: ff b5 f0 fe ff ff pushl -0x110(%ebp)
ustack[2] = sp - (argc+1)*4; // argv pointer
80100cc1: 89 8d 60 ff ff ff mov %ecx,-0xa0(%ebp)
if(copyout(pgdir, sp, ustack, (3+argc+1)*4) < 0)
80100cc7: e8 f4 62 00 00 call 80106fc0 <copyout>
80100ccc: 83 c4 10 add $0x10,%esp
80100ccf: 85 c0 test %eax,%eax
80100cd1: 0f 88 e1 fe ff ff js 80100bb8 <exec+0x1a8>
for(last=s=path; *s; s++)
80100cd7: 8b 45 08 mov 0x8(%ebp),%eax
80100cda: 0f b6 00 movzbl (%eax),%eax
80100cdd: 84 c0 test %al,%al
80100cdf: 74 17 je 80100cf8 <exec+0x2e8>
80100ce1: 8b 55 08 mov 0x8(%ebp),%edx
80100ce4: 89 d1 mov %edx,%ecx
80100ce6: 83 c1 01 add $0x1,%ecx
80100ce9: 3c 2f cmp $0x2f,%al
80100ceb: 0f b6 01 movzbl (%ecx),%eax
80100cee: 0f 44 d1 cmove %ecx,%edx
80100cf1: 84 c0 test %al,%al
80100cf3: 75 f1 jne 80100ce6 <exec+0x2d6>
80100cf5: 89 55 08 mov %edx,0x8(%ebp)
safestrcpy(curproc->name, last, sizeof(curproc->name));
80100cf8: 8b bd f4 fe ff ff mov -0x10c(%ebp),%edi
80100cfe: 50 push %eax
80100cff: 6a 10 push $0x10
80100d01: ff 75 08 pushl 0x8(%ebp)
80100d04: 89 f8 mov %edi,%eax
80100d06: 83 c0 70 add $0x70,%eax
80100d09: 50 push %eax
80100d0a: e8 61 3a 00 00 call 80104770 <safestrcpy>
curproc->pgdir = pgdir;
80100d0f: 8b 95 f0 fe ff ff mov -0x110(%ebp),%edx
oldpgdir = curproc->pgdir;
80100d15: 89 f9 mov %edi,%ecx
80100d17: 8b 7f 08 mov 0x8(%edi),%edi
curproc->tf->eip = elf.entry; // main
80100d1a: 8b 41 1c mov 0x1c(%ecx),%eax
curproc->sz = sz;
80100d1d: 89 71 04 mov %esi,0x4(%ecx)
curproc->pgdir = pgdir;
80100d20: 89 51 08 mov %edx,0x8(%ecx)
curproc->tf->eip = elf.entry; // main
80100d23: 8b 95 3c ff ff ff mov -0xc4(%ebp),%edx
80100d29: 89 50 38 mov %edx,0x38(%eax)
curproc->tf->esp = sp;
80100d2c: 8b 41 1c mov 0x1c(%ecx),%eax
curproc->priority = 3;
80100d2f: c7 01 03 00 00 00 movl $0x3,(%ecx)
curproc->tf->esp = sp;
80100d35: 89 58 44 mov %ebx,0x44(%eax)
switchuvm(curproc);
80100d38: 89 0c 24 mov %ecx,(%esp)
80100d3b: e8 60 5c 00 00 call 801069a0 <switchuvm>
freevm(oldpgdir);
80100d40: 89 3c 24 mov %edi,(%esp)
80100d43: e8 08 60 00 00 call 80106d50 <freevm>
return 0;
80100d48: 83 c4 10 add $0x10,%esp
80100d4b: 31 c0 xor %eax,%eax
80100d4d: e9 2a fd ff ff jmp 80100a7c <exec+0x6c>
for(i=0, off=elf.phoff; i<elf.phnum; i++, off+=sizeof(ph)){
80100d52: be 00 20 00 00 mov $0x2000,%esi
80100d57: e9 35 fe ff ff jmp 80100b91 <exec+0x181>
80100d5c: 66 90 xchg %ax,%ax
80100d5e: 66 90 xchg %ax,%ax
80100d60 <fileinit>:
struct file file[NFILE];
} ftable;
void
fileinit(void)
{
80100d60: 55 push %ebp
80100d61: 89 e5 mov %esp,%ebp
80100d63: 83 ec 10 sub $0x10,%esp
initlock(&ftable.lock, "ftable");
80100d66: 68 ed 70 10 80 push $0x801070ed
80100d6b: 68 e0 ff 10 80 push $0x8010ffe0
80100d70: e8 ab 35 00 00 call 80104320 <initlock>
}
80100d75: 83 c4 10 add $0x10,%esp
80100d78: c9 leave
80100d79: c3 ret
80100d7a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
80100d80 <filealloc>:
// Allocate a file structure.
struct file*
filealloc(void)
{
80100d80: 55 push %ebp
80100d81: 89 e5 mov %esp,%ebp
80100d83: 53 push %ebx
struct file *f;
acquire(&ftable.lock);
for(f = ftable.file; f < ftable.file + NFILE; f++){
80100d84: bb 14 00 11 80 mov $0x80110014,%ebx
{
80100d89: 83 ec 10 sub $0x10,%esp
acquire(&ftable.lock);
80100d8c: 68 e0 ff 10 80 push $0x8010ffe0
80100d91: e8 7a 36 00 00 call 80104410 <acquire>
80100d96: 83 c4 10 add $0x10,%esp
80100d99: eb 10 jmp 80100dab <filealloc+0x2b>
80100d9b: 90 nop
80100d9c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
for(f = ftable.file; f < ftable.file + NFILE; f++){
80100da0: 83 c3 18 add $0x18,%ebx
80100da3: 81 fb 74 09 11 80 cmp $0x80110974,%ebx
80100da9: 73 25 jae 80100dd0 <filealloc+0x50>
if(f->ref == 0){
80100dab: 8b 43 04 mov 0x4(%ebx),%eax
80100dae: 85 c0 test %eax,%eax
80100db0: 75 ee jne 80100da0 <filealloc+0x20>
f->ref = 1;
release(&ftable.lock);
80100db2: 83 ec 0c sub $0xc,%esp
f->ref = 1;
80100db5: c7 43 04 01 00 00 00 movl $0x1,0x4(%ebx)
release(&ftable.lock);
80100dbc: 68 e0 ff 10 80 push $0x8010ffe0
80100dc1: e8 6a 37 00 00 call 80104530 <release>
return f;
}
}
release(&ftable.lock);
return 0;
}
80100dc6: 89 d8 mov %ebx,%eax
return f;
80100dc8: 83 c4 10 add $0x10,%esp
}
80100dcb: 8b 5d fc mov -0x4(%ebp),%ebx
80100dce: c9 leave
80100dcf: c3 ret
release(&ftable.lock);
80100dd0: 83 ec 0c sub $0xc,%esp
return 0;
80100dd3: 31 db xor %ebx,%ebx
release(&ftable.lock);
80100dd5: 68 e0 ff 10 80 push $0x8010ffe0
80100dda: e8 51 37 00 00 call 80104530 <release>
}
80100ddf: 89 d8 mov %ebx,%eax
return 0;
80100de1: 83 c4 10 add $0x10,%esp
}
80100de4: 8b 5d fc mov -0x4(%ebp),%ebx
80100de7: c9 leave
80100de8: c3 ret
80100de9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
80100df0 <filedup>:
// Increment ref count for file f.
struct file*
filedup(struct file *f)
{
80100df0: 55 push %ebp
80100df1: 89 e5 mov %esp,%ebp
80100df3: 53 push %ebx
80100df4: 83 ec 10 sub $0x10,%esp
80100df7: 8b 5d 08 mov 0x8(%ebp),%ebx
acquire(&ftable.lock);
80100dfa: 68 e0 ff 10 80 push $0x8010ffe0
80100dff: e8 0c 36 00 00 call 80104410 <acquire>
if(f->ref < 1)
80100e04: 8b 43 04 mov 0x4(%ebx),%eax
80100e07: 83 c4 10 add $0x10,%esp
80100e0a: 85 c0 test %eax,%eax
80100e0c: 7e 1a jle 80100e28 <filedup+0x38>
panic("filedup");
f->ref++;
80100e0e: 83 c0 01 add $0x1,%eax
release(&ftable.lock);
80100e11: 83 ec 0c sub $0xc,%esp
f->ref++;
80100e14: 89 43 04 mov %eax,0x4(%ebx)
release(&ftable.lock);
80100e17: 68 e0 ff 10 80 push $0x8010ffe0
80100e1c: e8 0f 37 00 00 call 80104530 <release>
return f;
}
80100e21: 89 d8 mov %ebx,%eax
80100e23: 8b 5d fc mov -0x4(%ebp),%ebx
80100e26: c9 leave
80100e27: c3 ret
panic("filedup");
80100e28: 83 ec 0c sub $0xc,%esp
80100e2b: 68 f4 70 10 80 push $0x801070f4
80100e30: e8 5b f5 ff ff call 80100390 <panic>
80100e35: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80100e39: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80100e40 <fileclose>:
// Close file f. (Decrement ref count, close when reaches 0.)
void
fileclose(struct file *f)
{
80100e40: 55 push %ebp
80100e41: 89 e5 mov %esp,%ebp
80100e43: 57 push %edi
80100e44: 56 push %esi
80100e45: 53 push %ebx
80100e46: 83 ec 28 sub $0x28,%esp
80100e49: 8b 5d 08 mov 0x8(%ebp),%ebx
struct file ff;
acquire(&ftable.lock);
80100e4c: 68 e0 ff 10 80 push $0x8010ffe0
80100e51: e8 ba 35 00 00 call 80104410 <acquire>
if(f->ref < 1)
80100e56: 8b 43 04 mov 0x4(%ebx),%eax
80100e59: 83 c4 10 add $0x10,%esp
80100e5c: 85 c0 test %eax,%eax
80100e5e: 0f 8e 9b 00 00 00 jle 80100eff <fileclose+0xbf>
panic("fileclose");
if(--f->ref > 0){
80100e64: 83 e8 01 sub $0x1,%eax
80100e67: 85 c0 test %eax,%eax
80100e69: 89 43 04 mov %eax,0x4(%ebx)
80100e6c: 74 1a je 80100e88 <fileclose+0x48>
release(&ftable.lock);
80100e6e: c7 45 08 e0 ff 10 80 movl $0x8010ffe0,0x8(%ebp)
else if(ff.type == FD_INODE){
begin_op();
iput(ff.ip);
end_op();
}
}
80100e75: 8d 65 f4 lea -0xc(%ebp),%esp
80100e78: 5b pop %ebx
80100e79: 5e pop %esi
80100e7a: 5f pop %edi
80100e7b: 5d pop %ebp
release(&ftable.lock);
80100e7c: e9 af 36 00 00 jmp 80104530 <release>
80100e81: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
ff = *f;
80100e88: 0f b6 43 09 movzbl 0x9(%ebx),%eax
80100e8c: 8b 3b mov (%ebx),%edi
release(&ftable.lock);
80100e8e: 83 ec 0c sub $0xc,%esp
ff = *f;
80100e91: 8b 73 0c mov 0xc(%ebx),%esi
f->type = FD_NONE;
80100e94: c7 03 00 00 00 00 movl $0x0,(%ebx)
ff = *f;
80100e9a: 88 45 e7 mov %al,-0x19(%ebp)
80100e9d: 8b 43 10 mov 0x10(%ebx),%eax
release(&ftable.lock);
80100ea0: 68 e0 ff 10 80 push $0x8010ffe0
ff = *f;
80100ea5: 89 45 e0 mov %eax,-0x20(%ebp)
release(&ftable.lock);
80100ea8: e8 83 36 00 00 call 80104530 <release>
if(ff.type == FD_PIPE)
80100ead: 83 c4 10 add $0x10,%esp
80100eb0: 83 ff 01 cmp $0x1,%edi
80100eb3: 74 13 je 80100ec8 <fileclose+0x88>
else if(ff.type == FD_INODE){
80100eb5: 83 ff 02 cmp $0x2,%edi
80100eb8: 74 26 je 80100ee0 <fileclose+0xa0>
}
80100eba: 8d 65 f4 lea -0xc(%ebp),%esp
80100ebd: 5b pop %ebx
80100ebe: 5e pop %esi
80100ebf: 5f pop %edi
80100ec0: 5d pop %ebp
80100ec1: c3 ret
80100ec2: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
pipeclose(ff.pipe, ff.writable);
80100ec8: 0f be 5d e7 movsbl -0x19(%ebp),%ebx
80100ecc: 83 ec 08 sub $0x8,%esp
80100ecf: 53 push %ebx
80100ed0: 56 push %esi
80100ed1: e8 8a 24 00 00 call 80103360 <pipeclose>
80100ed6: 83 c4 10 add $0x10,%esp
80100ed9: eb df jmp 80100eba <fileclose+0x7a>
80100edb: 90 nop
80100edc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
begin_op();
80100ee0: e8 cb 1c 00 00 call 80102bb0 <begin_op>
iput(ff.ip);
80100ee5: 83 ec 0c sub $0xc,%esp
80100ee8: ff 75 e0 pushl -0x20(%ebp)
80100eeb: e8 d0 08 00 00 call 801017c0 <iput>
end_op();
80100ef0: 83 c4 10 add $0x10,%esp
}
80100ef3: 8d 65 f4 lea -0xc(%ebp),%esp
80100ef6: 5b pop %ebx
80100ef7: 5e pop %esi
80100ef8: 5f pop %edi
80100ef9: 5d pop %ebp
end_op();
80100efa: e9 21 1d 00 00 jmp 80102c20 <end_op>
panic("fileclose");
80100eff: 83 ec 0c sub $0xc,%esp
80100f02: 68 fc 70 10 80 push $0x801070fc
80100f07: e8 84 f4 ff ff call 80100390 <panic>
80100f0c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80100f10 <filestat>:
// Get metadata about file f.
int
filestat(struct file *f, struct stat *st)
{
80100f10: 55 push %ebp
80100f11: 89 e5 mov %esp,%ebp
80100f13: 53 push %ebx
80100f14: 83 ec 04 sub $0x4,%esp
80100f17: 8b 5d 08 mov 0x8(%ebp),%ebx
if(f->type == FD_INODE){
80100f1a: 83 3b 02 cmpl $0x2,(%ebx)
80100f1d: 75 31 jne 80100f50 <filestat+0x40>
ilock(f->ip);
80100f1f: 83 ec 0c sub $0xc,%esp
80100f22: ff 73 10 pushl 0x10(%ebx)
80100f25: e8 66 07 00 00 call 80101690 <ilock>
stati(f->ip, st);
80100f2a: 58 pop %eax
80100f2b: 5a pop %edx
80100f2c: ff 75 0c pushl 0xc(%ebp)
80100f2f: ff 73 10 pushl 0x10(%ebx)
80100f32: e8 09 0a 00 00 call 80101940 <stati>
iunlock(f->ip);
80100f37: 59 pop %ecx
80100f38: ff 73 10 pushl 0x10(%ebx)
80100f3b: e8 30 08 00 00 call 80101770 <iunlock>
return 0;
80100f40: 83 c4 10 add $0x10,%esp
80100f43: 31 c0 xor %eax,%eax
}
return -1;
}
80100f45: 8b 5d fc mov -0x4(%ebp),%ebx
80100f48: c9 leave
80100f49: c3 ret
80100f4a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
return -1;
80100f50: b8 ff ff ff ff mov $0xffffffff,%eax
80100f55: eb ee jmp 80100f45 <filestat+0x35>
80100f57: 89 f6 mov %esi,%esi
80100f59: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80100f60 <fileread>:
// Read from file f.
int
fileread(struct file *f, char *addr, int n)
{
80100f60: 55 push %ebp
80100f61: 89 e5 mov %esp,%ebp
80100f63: 57 push %edi
80100f64: 56 push %esi
80100f65: 53 push %ebx
80100f66: 83 ec 0c sub $0xc,%esp
80100f69: 8b 5d 08 mov 0x8(%ebp),%ebx
80100f6c: 8b 75 0c mov 0xc(%ebp),%esi
80100f6f: 8b 7d 10 mov 0x10(%ebp),%edi
int r;
if(f->readable == 0)
80100f72: 80 7b 08 00 cmpb $0x0,0x8(%ebx)
80100f76: 74 60 je 80100fd8 <fileread+0x78>
return -1;
if(f->type == FD_PIPE)
80100f78: 8b 03 mov (%ebx),%eax
80100f7a: 83 f8 01 cmp $0x1,%eax
80100f7d: 74 41 je 80100fc0 <fileread+0x60>
return piperead(f->pipe, addr, n);
if(f->type == FD_INODE){
80100f7f: 83 f8 02 cmp $0x2,%eax
80100f82: 75 5b jne 80100fdf <fileread+0x7f>
ilock(f->ip);
80100f84: 83 ec 0c sub $0xc,%esp
80100f87: ff 73 10 pushl 0x10(%ebx)
80100f8a: e8 01 07 00 00 call 80101690 <ilock>
if((r = readi(f->ip, addr, f->off, n)) > 0)
80100f8f: 57 push %edi
80100f90: ff 73 14 pushl 0x14(%ebx)
80100f93: 56 push %esi
80100f94: ff 73 10 pushl 0x10(%ebx)
80100f97: e8 d4 09 00 00 call 80101970 <readi>
80100f9c: 83 c4 20 add $0x20,%esp
80100f9f: 85 c0 test %eax,%eax
80100fa1: 89 c6 mov %eax,%esi
80100fa3: 7e 03 jle 80100fa8 <fileread+0x48>
f->off += r;
80100fa5: 01 43 14 add %eax,0x14(%ebx)
iunlock(f->ip);
80100fa8: 83 ec 0c sub $0xc,%esp
80100fab: ff 73 10 pushl 0x10(%ebx)
80100fae: e8 bd 07 00 00 call 80101770 <iunlock>
return r;
80100fb3: 83 c4 10 add $0x10,%esp
}
panic("fileread");
}
80100fb6: 8d 65 f4 lea -0xc(%ebp),%esp
80100fb9: 89 f0 mov %esi,%eax
80100fbb: 5b pop %ebx
80100fbc: 5e pop %esi
80100fbd: 5f pop %edi
80100fbe: 5d pop %ebp
80100fbf: c3 ret
return piperead(f->pipe, addr, n);
80100fc0: 8b 43 0c mov 0xc(%ebx),%eax
80100fc3: 89 45 08 mov %eax,0x8(%ebp)
}
80100fc6: 8d 65 f4 lea -0xc(%ebp),%esp
80100fc9: 5b pop %ebx
80100fca: 5e pop %esi
80100fcb: 5f pop %edi
80100fcc: 5d pop %ebp
return piperead(f->pipe, addr, n);
80100fcd: e9 3e 25 00 00 jmp 80103510 <piperead>
80100fd2: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
return -1;
80100fd8: be ff ff ff ff mov $0xffffffff,%esi
80100fdd: eb d7 jmp 80100fb6 <fileread+0x56>
panic("fileread");
80100fdf: 83 ec 0c sub $0xc,%esp
80100fe2: 68 06 71 10 80 push $0x80107106
80100fe7: e8 a4 f3 ff ff call 80100390 <panic>
80100fec: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80100ff0 <filewrite>:
//PAGEBREAK!
// Write to file f.
int
filewrite(struct file *f, char *addr, int n)
{
80100ff0: 55 push %ebp
80100ff1: 89 e5 mov %esp,%ebp
80100ff3: 57 push %edi
80100ff4: 56 push %esi
80100ff5: 53 push %ebx
80100ff6: 83 ec 1c sub $0x1c,%esp
80100ff9: 8b 75 08 mov 0x8(%ebp),%esi
80100ffc: 8b 45 0c mov 0xc(%ebp),%eax
int r;
if(f->writable == 0)
80100fff: 80 7e 09 00 cmpb $0x0,0x9(%esi)
{
80101003: 89 45 dc mov %eax,-0x24(%ebp)
80101006: 8b 45 10 mov 0x10(%ebp),%eax
80101009: 89 45 e4 mov %eax,-0x1c(%ebp)
if(f->writable == 0)
8010100c: 0f 84 aa 00 00 00 je 801010bc <filewrite+0xcc>
return -1;
if(f->type == FD_PIPE)
80101012: 8b 06 mov (%esi),%eax
80101014: 83 f8 01 cmp $0x1,%eax
80101017: 0f 84 c3 00 00 00 je 801010e0 <filewrite+0xf0>
return pipewrite(f->pipe, addr, n);
if(f->type == FD_INODE){
8010101d: 83 f8 02 cmp $0x2,%eax
80101020: 0f 85 d9 00 00 00 jne 801010ff <filewrite+0x10f>
// and 2 blocks of slop for non-aligned writes.
// this really belongs lower down, since writei()
// might be writing a device like the console.
int max = ((MAXOPBLOCKS-1-1-2) / 2) * 512;
int i = 0;
while(i < n){
80101026: 8b 45 e4 mov -0x1c(%ebp),%eax
int i = 0;
80101029: 31 ff xor %edi,%edi
while(i < n){
8010102b: 85 c0 test %eax,%eax
8010102d: 7f 34 jg 80101063 <filewrite+0x73>
8010102f: e9 9c 00 00 00 jmp 801010d0 <filewrite+0xe0>
80101034: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
n1 = max;
begin_op();
ilock(f->ip);
if ((r = writei(f->ip, addr + i, f->off, n1)) > 0)
f->off += r;
80101038: 01 46 14 add %eax,0x14(%esi)
iunlock(f->ip);
8010103b: 83 ec 0c sub $0xc,%esp
8010103e: ff 76 10 pushl 0x10(%esi)
f->off += r;
80101041: 89 45 e0 mov %eax,-0x20(%ebp)
iunlock(f->ip);
80101044: e8 27 07 00 00 call 80101770 <iunlock>
end_op();
80101049: e8 d2 1b 00 00 call 80102c20 <end_op>
8010104e: 8b 45 e0 mov -0x20(%ebp),%eax
80101051: 83 c4 10 add $0x10,%esp
if(r < 0)
break;
if(r != n1)
80101054: 39 c3 cmp %eax,%ebx
80101056: 0f 85 96 00 00 00 jne 801010f2 <filewrite+0x102>
panic("short filewrite");
i += r;
8010105c: 01 df add %ebx,%edi
while(i < n){
8010105e: 39 7d e4 cmp %edi,-0x1c(%ebp)
80101061: 7e 6d jle 801010d0 <filewrite+0xe0>
int n1 = n - i;
80101063: 8b 5d e4 mov -0x1c(%ebp),%ebx
80101066: b8 00 06 00 00 mov $0x600,%eax
8010106b: 29 fb sub %edi,%ebx
8010106d: 81 fb 00 06 00 00 cmp $0x600,%ebx
80101073: 0f 4f d8 cmovg %eax,%ebx
begin_op();
80101076: e8 35 1b 00 00 call 80102bb0 <begin_op>
ilock(f->ip);
8010107b: 83 ec 0c sub $0xc,%esp
8010107e: ff 76 10 pushl 0x10(%esi)
80101081: e8 0a 06 00 00 call 80101690 <ilock>
if ((r = writei(f->ip, addr + i, f->off, n1)) > 0)
80101086: 8b 45 dc mov -0x24(%ebp),%eax
80101089: 53 push %ebx
8010108a: ff 76 14 pushl 0x14(%esi)
8010108d: 01 f8 add %edi,%eax
8010108f: 50 push %eax
80101090: ff 76 10 pushl 0x10(%esi)
80101093: e8 d8 09 00 00 call 80101a70 <writei>
80101098: 83 c4 20 add $0x20,%esp
8010109b: 85 c0 test %eax,%eax
8010109d: 7f 99 jg 80101038 <filewrite+0x48>
iunlock(f->ip);
8010109f: 83 ec 0c sub $0xc,%esp
801010a2: ff 76 10 pushl 0x10(%esi)
801010a5: 89 45 e0 mov %eax,-0x20(%ebp)
801010a8: e8 c3 06 00 00 call 80101770 <iunlock>
end_op();
801010ad: e8 6e 1b 00 00 call 80102c20 <end_op>
if(r < 0)
801010b2: 8b 45 e0 mov -0x20(%ebp),%eax
801010b5: 83 c4 10 add $0x10,%esp
801010b8: 85 c0 test %eax,%eax
801010ba: 74 98 je 80101054 <filewrite+0x64>
}
return i == n ? n : -1;
}
panic("filewrite");
}
801010bc: 8d 65 f4 lea -0xc(%ebp),%esp
return -1;
801010bf: bf ff ff ff ff mov $0xffffffff,%edi
}
801010c4: 89 f8 mov %edi,%eax
801010c6: 5b pop %ebx
801010c7: 5e pop %esi
801010c8: 5f pop %edi
801010c9: 5d pop %ebp
801010ca: c3 ret
801010cb: 90 nop
801010cc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
return i == n ? n : -1;
801010d0: 39 7d e4 cmp %edi,-0x1c(%ebp)
801010d3: 75 e7 jne 801010bc <filewrite+0xcc>
}
801010d5: 8d 65 f4 lea -0xc(%ebp),%esp
801010d8: 89 f8 mov %edi,%eax
801010da: 5b pop %ebx
801010db: 5e pop %esi
801010dc: 5f pop %edi
801010dd: 5d pop %ebp
801010de: c3 ret
801010df: 90 nop
return pipewrite(f->pipe, addr, n);
801010e0: 8b 46 0c mov 0xc(%esi),%eax
801010e3: 89 45 08 mov %eax,0x8(%ebp)
}
801010e6: 8d 65 f4 lea -0xc(%ebp),%esp
801010e9: 5b pop %ebx
801010ea: 5e pop %esi
801010eb: 5f pop %edi
801010ec: 5d pop %ebp
return pipewrite(f->pipe, addr, n);
801010ed: e9 0e 23 00 00 jmp 80103400 <pipewrite>
panic("short filewrite");
801010f2: 83 ec 0c sub $0xc,%esp
801010f5: 68 0f 71 10 80 push $0x8010710f
801010fa: e8 91 f2 ff ff call 80100390 <panic>
panic("filewrite");
801010ff: 83 ec 0c sub $0xc,%esp
80101102: 68 15 71 10 80 push $0x80107115
80101107: e8 84 f2 ff ff call 80100390 <panic>
8010110c: 66 90 xchg %ax,%ax
8010110e: 66 90 xchg %ax,%ax
80101110 <balloc>:
// Blocks.
// Allocate a zeroed disk block.
static uint
balloc(uint dev)
{
80101110: 55 push %ebp
80101111: 89 e5 mov %esp,%ebp
80101113: 57 push %edi
80101114: 56 push %esi
80101115: 53 push %ebx
80101116: 83 ec 1c sub $0x1c,%esp
int b, bi, m;
struct buf *bp;
bp = 0;
for(b = 0; b < sb.size; b += BPB){
80101119: 8b 0d e0 09 11 80 mov 0x801109e0,%ecx
{
8010111f: 89 45 d8 mov %eax,-0x28(%ebp)
for(b = 0; b < sb.size; b += BPB){
80101122: 85 c9 test %ecx,%ecx
80101124: 0f 84 87 00 00 00 je 801011b1 <balloc+0xa1>
8010112a: c7 45 dc 00 00 00 00 movl $0x0,-0x24(%ebp)
bp = bread(dev, BBLOCK(b, sb));
80101131: 8b 75 dc mov -0x24(%ebp),%esi
80101134: 83 ec 08 sub $0x8,%esp
80101137: 89 f0 mov %esi,%eax
80101139: c1 f8 0c sar $0xc,%eax
8010113c: 03 05 f8 09 11 80 add 0x801109f8,%eax
80101142: 50 push %eax
80101143: ff 75 d8 pushl -0x28(%ebp)
80101146: e8 85 ef ff ff call 801000d0 <bread>
8010114b: 89 45 e4 mov %eax,-0x1c(%ebp)
for(bi = 0; bi < BPB && b + bi < sb.size; bi++){
8010114e: a1 e0 09 11 80 mov 0x801109e0,%eax
80101153: 83 c4 10 add $0x10,%esp
80101156: 89 45 e0 mov %eax,-0x20(%ebp)
80101159: 31 c0 xor %eax,%eax
8010115b: eb 2f jmp 8010118c <balloc+0x7c>
8010115d: 8d 76 00 lea 0x0(%esi),%esi
m = 1 << (bi % 8);
80101160: 89 c1 mov %eax,%ecx
if((bp->data[bi/8] & m) == 0){ // Is block free?
80101162: 8b 55 e4 mov -0x1c(%ebp),%edx
m = 1 << (bi % 8);
80101165: bb 01 00 00 00 mov $0x1,%ebx
8010116a: 83 e1 07 and $0x7,%ecx
8010116d: d3 e3 shl %cl,%ebx
if((bp->data[bi/8] & m) == 0){ // Is block free?
8010116f: 89 c1 mov %eax,%ecx
80101171: c1 f9 03 sar $0x3,%ecx
80101174: 0f b6 7c 0a 5c movzbl 0x5c(%edx,%ecx,1),%edi
80101179: 85 df test %ebx,%edi
8010117b: 89 fa mov %edi,%edx
8010117d: 74 41 je 801011c0 <balloc+0xb0>
for(bi = 0; bi < BPB && b + bi < sb.size; bi++){
8010117f: 83 c0 01 add $0x1,%eax
80101182: 83 c6 01 add $0x1,%esi
80101185: 3d 00 10 00 00 cmp $0x1000,%eax
8010118a: 74 05 je 80101191 <balloc+0x81>
8010118c: 39 75 e0 cmp %esi,-0x20(%ebp)
8010118f: 77 cf ja 80101160 <balloc+0x50>
brelse(bp);
bzero(dev, b + bi);
return b + bi;
}
}
brelse(bp);
80101191: 83 ec 0c sub $0xc,%esp
80101194: ff 75 e4 pushl -0x1c(%ebp)
80101197: e8 44 f0 ff ff call 801001e0 <brelse>
for(b = 0; b < sb.size; b += BPB){
8010119c: 81 45 dc 00 10 00 00 addl $0x1000,-0x24(%ebp)
801011a3: 83 c4 10 add $0x10,%esp
801011a6: 8b 45 dc mov -0x24(%ebp),%eax
801011a9: 39 05 e0 09 11 80 cmp %eax,0x801109e0
801011af: 77 80 ja 80101131 <balloc+0x21>
}
panic("balloc: out of blocks");
801011b1: 83 ec 0c sub $0xc,%esp
801011b4: 68 1f 71 10 80 push $0x8010711f
801011b9: e8 d2 f1 ff ff call 80100390 <panic>
801011be: 66 90 xchg %ax,%ax
bp->data[bi/8] |= m; // Mark block in use.
801011c0: 8b 7d e4 mov -0x1c(%ebp),%edi
log_write(bp);
801011c3: 83 ec 0c sub $0xc,%esp
bp->data[bi/8] |= m; // Mark block in use.
801011c6: 09 da or %ebx,%edx
801011c8: 88 54 0f 5c mov %dl,0x5c(%edi,%ecx,1)
log_write(bp);
801011cc: 57 push %edi
801011cd: e8 ae 1b 00 00 call 80102d80 <log_write>
brelse(bp);
801011d2: 89 3c 24 mov %edi,(%esp)
801011d5: e8 06 f0 ff ff call 801001e0 <brelse>
bp = bread(dev, bno);
801011da: 58 pop %eax
801011db: 5a pop %edx
801011dc: 56 push %esi
801011dd: ff 75 d8 pushl -0x28(%ebp)
801011e0: e8 eb ee ff ff call 801000d0 <bread>
801011e5: 89 c3 mov %eax,%ebx
memset(bp->data, 0, BSIZE);
801011e7: 8d 40 5c lea 0x5c(%eax),%eax
801011ea: 83 c4 0c add $0xc,%esp
801011ed: 68 00 02 00 00 push $0x200
801011f2: 6a 00 push $0x0
801011f4: 50 push %eax
801011f5: e8 96 33 00 00 call 80104590 <memset>
log_write(bp);
801011fa: 89 1c 24 mov %ebx,(%esp)
801011fd: e8 7e 1b 00 00 call 80102d80 <log_write>
brelse(bp);
80101202: 89 1c 24 mov %ebx,(%esp)
80101205: e8 d6 ef ff ff call 801001e0 <brelse>
}
8010120a: 8d 65 f4 lea -0xc(%ebp),%esp
8010120d: 89 f0 mov %esi,%eax
8010120f: 5b pop %ebx
80101210: 5e pop %esi
80101211: 5f pop %edi
80101212: 5d pop %ebp
80101213: c3 ret
80101214: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
8010121a: 8d bf 00 00 00 00 lea 0x0(%edi),%edi
80101220 <iget>:
// Find the inode with number inum on device dev
// and return the in-memory copy. Does not lock
// the inode and does not read it from disk.
static struct inode*
iget(uint dev, uint inum)
{
80101220: 55 push %ebp
80101221: 89 e5 mov %esp,%ebp
80101223: 57 push %edi
80101224: 56 push %esi
80101225: 53 push %ebx
80101226: 89 c7 mov %eax,%edi
struct inode *ip, *empty;
acquire(&icache.lock);
// Is the inode already cached?
empty = 0;
80101228: 31 f6 xor %esi,%esi
for(ip = &icache.inode[0]; ip < &icache.inode[NINODE]; ip++){
8010122a: bb 34 0a 11 80 mov $0x80110a34,%ebx
{
8010122f: 83 ec 28 sub $0x28,%esp
80101232: 89 55 e4 mov %edx,-0x1c(%ebp)
acquire(&icache.lock);
80101235: 68 00 0a 11 80 push $0x80110a00
8010123a: e8 d1 31 00 00 call 80104410 <acquire>
8010123f: 83 c4 10 add $0x10,%esp
for(ip = &icache.inode[0]; ip < &icache.inode[NINODE]; ip++){
80101242: 8b 55 e4 mov -0x1c(%ebp),%edx
80101245: eb 17 jmp 8010125e <iget+0x3e>
80101247: 89 f6 mov %esi,%esi
80101249: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80101250: 81 c3 90 00 00 00 add $0x90,%ebx
80101256: 81 fb 54 26 11 80 cmp $0x80112654,%ebx
8010125c: 73 22 jae 80101280 <iget+0x60>
if(ip->ref > 0 && ip->dev == dev && ip->inum == inum){
8010125e: 8b 4b 08 mov 0x8(%ebx),%ecx
80101261: 85 c9 test %ecx,%ecx
80101263: 7e 04 jle 80101269 <iget+0x49>
80101265: 39 3b cmp %edi,(%ebx)
80101267: 74 4f je 801012b8 <iget+0x98>
ip->ref++;
release(&icache.lock);
return ip;
}
if(empty == 0 && ip->ref == 0) // Remember empty slot.
80101269: 85 f6 test %esi,%esi
8010126b: 75 e3 jne 80101250 <iget+0x30>
8010126d: 85 c9 test %ecx,%ecx
8010126f: 0f 44 f3 cmove %ebx,%esi
for(ip = &icache.inode[0]; ip < &icache.inode[NINODE]; ip++){
80101272: 81 c3 90 00 00 00 add $0x90,%ebx
80101278: 81 fb 54 26 11 80 cmp $0x80112654,%ebx
8010127e: 72 de jb 8010125e <iget+0x3e>
empty = ip;
}
// Recycle an inode cache entry.
if(empty == 0)
80101280: 85 f6 test %esi,%esi
80101282: 74 5b je 801012df <iget+0xbf>
ip = empty;
ip->dev = dev;
ip->inum = inum;
ip->ref = 1;
ip->valid = 0;
release(&icache.lock);
80101284: 83 ec 0c sub $0xc,%esp
ip->dev = dev;
80101287: 89 3e mov %edi,(%esi)
ip->inum = inum;
80101289: 89 56 04 mov %edx,0x4(%esi)
ip->ref = 1;
8010128c: c7 46 08 01 00 00 00 movl $0x1,0x8(%esi)
ip->valid = 0;
80101293: c7 46 4c 00 00 00 00 movl $0x0,0x4c(%esi)
release(&icache.lock);
8010129a: 68 00 0a 11 80 push $0x80110a00
8010129f: e8 8c 32 00 00 call 80104530 <release>
return ip;
801012a4: 83 c4 10 add $0x10,%esp
}
801012a7: 8d 65 f4 lea -0xc(%ebp),%esp
801012aa: 89 f0 mov %esi,%eax
801012ac: 5b pop %ebx
801012ad: 5e pop %esi
801012ae: 5f pop %edi
801012af: 5d pop %ebp
801012b0: c3 ret
801012b1: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
if(ip->ref > 0 && ip->dev == dev && ip->inum == inum){
801012b8: 39 53 04 cmp %edx,0x4(%ebx)
801012bb: 75 ac jne 80101269 <iget+0x49>
release(&icache.lock);
801012bd: 83 ec 0c sub $0xc,%esp
ip->ref++;
801012c0: 83 c1 01 add $0x1,%ecx
return ip;
801012c3: 89 de mov %ebx,%esi
release(&icache.lock);
801012c5: 68 00 0a 11 80 push $0x80110a00
ip->ref++;
801012ca: 89 4b 08 mov %ecx,0x8(%ebx)
release(&icache.lock);
801012cd: e8 5e 32 00 00 call 80104530 <release>
return ip;
801012d2: 83 c4 10 add $0x10,%esp
}
801012d5: 8d 65 f4 lea -0xc(%ebp),%esp
801012d8: 89 f0 mov %esi,%eax
801012da: 5b pop %ebx
801012db: 5e pop %esi
801012dc: 5f pop %edi
801012dd: 5d pop %ebp
801012de: c3 ret
panic("iget: no inodes");
801012df: 83 ec 0c sub $0xc,%esp
801012e2: 68 35 71 10 80 push $0x80107135
801012e7: e8 a4 f0 ff ff call 80100390 <panic>
801012ec: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
801012f0 <bmap>:
// Return the disk block address of the nth block in inode ip.
// If there is no such block, bmap allocates one.
static uint
bmap(struct inode *ip, uint bn)
{
801012f0: 55 push %ebp
801012f1: 89 e5 mov %esp,%ebp
801012f3: 57 push %edi
801012f4: 56 push %esi
801012f5: 53 push %ebx
801012f6: 89 c6 mov %eax,%esi
801012f8: 83 ec 1c sub $0x1c,%esp
uint addr, *a;
struct buf *bp;
if(bn < NDIRECT){
801012fb: 83 fa 0b cmp $0xb,%edx
801012fe: 77 18 ja 80101318 <bmap+0x28>
80101300: 8d 3c 90 lea (%eax,%edx,4),%edi
if((addr = ip->addrs[bn]) == 0)
80101303: 8b 5f 5c mov 0x5c(%edi),%ebx
80101306: 85 db test %ebx,%ebx
80101308: 74 76 je 80101380 <bmap+0x90>
brelse(bp);
return addr;
}
panic("bmap: out of range");
}
8010130a: 8d 65 f4 lea -0xc(%ebp),%esp
8010130d: 89 d8 mov %ebx,%eax
8010130f: 5b pop %ebx
80101310: 5e pop %esi
80101311: 5f pop %edi
80101312: 5d pop %ebp
80101313: c3 ret
80101314: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
bn -= NDIRECT;
80101318: 8d 5a f4 lea -0xc(%edx),%ebx
if(bn < NINDIRECT){
8010131b: 83 fb 7f cmp $0x7f,%ebx
8010131e: 0f 87 90 00 00 00 ja 801013b4 <bmap+0xc4>
if((addr = ip->addrs[NDIRECT]) == 0)
80101324: 8b 90 8c 00 00 00 mov 0x8c(%eax),%edx
8010132a: 8b 00 mov (%eax),%eax
8010132c: 85 d2 test %edx,%edx
8010132e: 74 70 je 801013a0 <bmap+0xb0>
bp = bread(ip->dev, addr);
80101330: 83 ec 08 sub $0x8,%esp
80101333: 52 push %edx
80101334: 50 push %eax
80101335: e8 96 ed ff ff call 801000d0 <bread>
if((addr = a[bn]) == 0){
8010133a: 8d 54 98 5c lea 0x5c(%eax,%ebx,4),%edx
8010133e: 83 c4 10 add $0x10,%esp
bp = bread(ip->dev, addr);
80101341: 89 c7 mov %eax,%edi
if((addr = a[bn]) == 0){
80101343: 8b 1a mov (%edx),%ebx
80101345: 85 db test %ebx,%ebx
80101347: 75 1d jne 80101366 <bmap+0x76>
a[bn] = addr = balloc(ip->dev);
80101349: 8b 06 mov (%esi),%eax
8010134b: 89 55 e4 mov %edx,-0x1c(%ebp)
8010134e: e8 bd fd ff ff call 80101110 <balloc>
80101353: 8b 55 e4 mov -0x1c(%ebp),%edx
log_write(bp);
80101356: 83 ec 0c sub $0xc,%esp
a[bn] = addr = balloc(ip->dev);
80101359: 89 c3 mov %eax,%ebx
8010135b: 89 02 mov %eax,(%edx)
log_write(bp);
8010135d: 57 push %edi
8010135e: e8 1d 1a 00 00 call 80102d80 <log_write>
80101363: 83 c4 10 add $0x10,%esp
brelse(bp);
80101366: 83 ec 0c sub $0xc,%esp
80101369: 57 push %edi
8010136a: e8 71 ee ff ff call 801001e0 <brelse>
8010136f: 83 c4 10 add $0x10,%esp
}
80101372: 8d 65 f4 lea -0xc(%ebp),%esp
80101375: 89 d8 mov %ebx,%eax
80101377: 5b pop %ebx
80101378: 5e pop %esi
80101379: 5f pop %edi
8010137a: 5d pop %ebp
8010137b: c3 ret
8010137c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
ip->addrs[bn] = addr = balloc(ip->dev);
80101380: 8b 00 mov (%eax),%eax
80101382: e8 89 fd ff ff call 80101110 <balloc>
80101387: 89 47 5c mov %eax,0x5c(%edi)
}
8010138a: 8d 65 f4 lea -0xc(%ebp),%esp
ip->addrs[bn] = addr = balloc(ip->dev);
8010138d: 89 c3 mov %eax,%ebx
}
8010138f: 89 d8 mov %ebx,%eax
80101391: 5b pop %ebx
80101392: 5e pop %esi
80101393: 5f pop %edi
80101394: 5d pop %ebp
80101395: c3 ret
80101396: 8d 76 00 lea 0x0(%esi),%esi
80101399: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
ip->addrs[NDIRECT] = addr = balloc(ip->dev);
801013a0: e8 6b fd ff ff call 80101110 <balloc>
801013a5: 89 c2 mov %eax,%edx
801013a7: 89 86 8c 00 00 00 mov %eax,0x8c(%esi)
801013ad: 8b 06 mov (%esi),%eax
801013af: e9 7c ff ff ff jmp 80101330 <bmap+0x40>
panic("bmap: out of range");
801013b4: 83 ec 0c sub $0xc,%esp
801013b7: 68 45 71 10 80 push $0x80107145
801013bc: e8 cf ef ff ff call 80100390 <panic>
801013c1: eb 0d jmp 801013d0 <readsb>
801013c3: 90 nop
801013c4: 90 nop
801013c5: 90 nop
801013c6: 90 nop
801013c7: 90 nop
801013c8: 90 nop
801013c9: 90 nop
801013ca: 90 nop
801013cb: 90 nop
801013cc: 90 nop
801013cd: 90 nop
801013ce: 90 nop
801013cf: 90 nop
801013d0 <readsb>:
{
801013d0: 55 push %ebp
801013d1: 89 e5 mov %esp,%ebp
801013d3: 56 push %esi
801013d4: 53 push %ebx
801013d5: 8b 75 0c mov 0xc(%ebp),%esi
bp = bread(dev, 1);
801013d8: 83 ec 08 sub $0x8,%esp
801013db: 6a 01 push $0x1
801013dd: ff 75 08 pushl 0x8(%ebp)
801013e0: e8 eb ec ff ff call 801000d0 <bread>
801013e5: 89 c3 mov %eax,%ebx
memmove(sb, bp->data, sizeof(*sb));
801013e7: 8d 40 5c lea 0x5c(%eax),%eax
801013ea: 83 c4 0c add $0xc,%esp
801013ed: 6a 1c push $0x1c
801013ef: 50 push %eax
801013f0: 56 push %esi
801013f1: e8 4a 32 00 00 call 80104640 <memmove>
brelse(bp);
801013f6: 89 5d 08 mov %ebx,0x8(%ebp)
801013f9: 83 c4 10 add $0x10,%esp
}
801013fc: 8d 65 f8 lea -0x8(%ebp),%esp
801013ff: 5b pop %ebx
80101400: 5e pop %esi
80101401: 5d pop %ebp
brelse(bp);
80101402: e9 d9 ed ff ff jmp 801001e0 <brelse>
80101407: 89 f6 mov %esi,%esi
80101409: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80101410 <bfree>:
{
80101410: 55 push %ebp
80101411: 89 e5 mov %esp,%ebp
80101413: 56 push %esi
80101414: 53 push %ebx
80101415: 89 d3 mov %edx,%ebx
80101417: 89 c6 mov %eax,%esi
readsb(dev, &sb);
80101419: 83 ec 08 sub $0x8,%esp
8010141c: 68 e0 09 11 80 push $0x801109e0
80101421: 50 push %eax
80101422: e8 a9 ff ff ff call 801013d0 <readsb>
bp = bread(dev, BBLOCK(b, sb));
80101427: 58 pop %eax
80101428: 5a pop %edx
80101429: 89 da mov %ebx,%edx
8010142b: c1 ea 0c shr $0xc,%edx
8010142e: 03 15 f8 09 11 80 add 0x801109f8,%edx
80101434: 52 push %edx
80101435: 56 push %esi
80101436: e8 95 ec ff ff call 801000d0 <bread>
m = 1 << (bi % 8);
8010143b: 89 d9 mov %ebx,%ecx
if((bp->data[bi/8] & m) == 0)
8010143d: c1 fb 03 sar $0x3,%ebx
m = 1 << (bi % 8);
80101440: ba 01 00 00 00 mov $0x1,%edx
80101445: 83 e1 07 and $0x7,%ecx
if((bp->data[bi/8] & m) == 0)
80101448: 81 e3 ff 01 00 00 and $0x1ff,%ebx
8010144e: 83 c4 10 add $0x10,%esp
m = 1 << (bi % 8);
80101451: d3 e2 shl %cl,%edx
if((bp->data[bi/8] & m) == 0)
80101453: 0f b6 4c 18 5c movzbl 0x5c(%eax,%ebx,1),%ecx
80101458: 85 d1 test %edx,%ecx
8010145a: 74 25 je 80101481 <bfree+0x71>
bp->data[bi/8] &= ~m;
8010145c: f7 d2 not %edx
8010145e: 89 c6 mov %eax,%esi
log_write(bp);
80101460: 83 ec 0c sub $0xc,%esp
bp->data[bi/8] &= ~m;
80101463: 21 ca and %ecx,%edx
80101465: 88 54 1e 5c mov %dl,0x5c(%esi,%ebx,1)
log_write(bp);
80101469: 56 push %esi
8010146a: e8 11 19 00 00 call 80102d80 <log_write>
brelse(bp);
8010146f: 89 34 24 mov %esi,(%esp)
80101472: e8 69 ed ff ff call 801001e0 <brelse>
}
80101477: 83 c4 10 add $0x10,%esp
8010147a: 8d 65 f8 lea -0x8(%ebp),%esp
8010147d: 5b pop %ebx
8010147e: 5e pop %esi
8010147f: 5d pop %ebp
80101480: c3 ret
panic("freeing free block");
80101481: 83 ec 0c sub $0xc,%esp
80101484: 68 58 71 10 80 push $0x80107158
80101489: e8 02 ef ff ff call 80100390 <panic>
8010148e: 66 90 xchg %ax,%ax
80101490 <iinit>:
{
80101490: 55 push %ebp
80101491: 89 e5 mov %esp,%ebp
80101493: 53 push %ebx
80101494: bb 40 0a 11 80 mov $0x80110a40,%ebx
80101499: 83 ec 0c sub $0xc,%esp
initlock(&icache.lock, "icache");
8010149c: 68 6b 71 10 80 push $0x8010716b
801014a1: 68 00 0a 11 80 push $0x80110a00
801014a6: e8 75 2e 00 00 call 80104320 <initlock>
801014ab: 83 c4 10 add $0x10,%esp
801014ae: 66 90 xchg %ax,%ax
initsleeplock(&icache.inode[i].lock, "inode");
801014b0: 83 ec 08 sub $0x8,%esp
801014b3: 68 72 71 10 80 push $0x80107172
801014b8: 53 push %ebx
801014b9: 81 c3 90 00 00 00 add $0x90,%ebx
801014bf: e8 4c 2d 00 00 call 80104210 <initsleeplock>
for(i = 0; i < NINODE; i++) {
801014c4: 83 c4 10 add $0x10,%esp
801014c7: 81 fb 60 26 11 80 cmp $0x80112660,%ebx
801014cd: 75 e1 jne 801014b0 <iinit+0x20>
readsb(dev, &sb);
801014cf: 83 ec 08 sub $0x8,%esp
801014d2: 68 e0 09 11 80 push $0x801109e0
801014d7: ff 75 08 pushl 0x8(%ebp)
801014da: e8 f1 fe ff ff call 801013d0 <readsb>
cprintf("sb: size %d nblocks %d ninodes %d nlog %d logstart %d\
801014df: ff 35 f8 09 11 80 pushl 0x801109f8
801014e5: ff 35 f4 09 11 80 pushl 0x801109f4
801014eb: ff 35 f0 09 11 80 pushl 0x801109f0
801014f1: ff 35 ec 09 11 80 pushl 0x801109ec
801014f7: ff 35 e8 09 11 80 pushl 0x801109e8
801014fd: ff 35 e4 09 11 80 pushl 0x801109e4
80101503: ff 35 e0 09 11 80 pushl 0x801109e0
80101509: 68 d8 71 10 80 push $0x801071d8
8010150e: e8 4d f1 ff ff call 80100660 <cprintf>
}
80101513: 83 c4 30 add $0x30,%esp
80101516: 8b 5d fc mov -0x4(%ebp),%ebx
80101519: c9 leave
8010151a: c3 ret
8010151b: 90 nop
8010151c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80101520 <ialloc>:
{
80101520: 55 push %ebp
80101521: 89 e5 mov %esp,%ebp
80101523: 57 push %edi
80101524: 56 push %esi
80101525: 53 push %ebx
80101526: 83 ec 1c sub $0x1c,%esp
for(inum = 1; inum < sb.ninodes; inum++){
80101529: 83 3d e8 09 11 80 01 cmpl $0x1,0x801109e8
{
80101530: 8b 45 0c mov 0xc(%ebp),%eax
80101533: 8b 75 08 mov 0x8(%ebp),%esi
80101536: 89 45 e4 mov %eax,-0x1c(%ebp)
for(inum = 1; inum < sb.ninodes; inum++){
80101539: 0f 86 91 00 00 00 jbe 801015d0 <ialloc+0xb0>
8010153f: bb 01 00 00 00 mov $0x1,%ebx
80101544: eb 21 jmp 80101567 <ialloc+0x47>
80101546: 8d 76 00 lea 0x0(%esi),%esi
80101549: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
brelse(bp);
80101550: 83 ec 0c sub $0xc,%esp
for(inum = 1; inum < sb.ninodes; inum++){
80101553: 83 c3 01 add $0x1,%ebx
brelse(bp);
80101556: 57 push %edi
80101557: e8 84 ec ff ff call 801001e0 <brelse>
for(inum = 1; inum < sb.ninodes; inum++){
8010155c: 83 c4 10 add $0x10,%esp
8010155f: 39 1d e8 09 11 80 cmp %ebx,0x801109e8
80101565: 76 69 jbe 801015d0 <ialloc+0xb0>
bp = bread(dev, IBLOCK(inum, sb));
80101567: 89 d8 mov %ebx,%eax
80101569: 83 ec 08 sub $0x8,%esp
8010156c: c1 e8 03 shr $0x3,%eax
8010156f: 03 05 f4 09 11 80 add 0x801109f4,%eax
80101575: 50 push %eax
80101576: 56 push %esi
80101577: e8 54 eb ff ff call 801000d0 <bread>
8010157c: 89 c7 mov %eax,%edi
dip = (struct dinode*)bp->data + inum%IPB;
8010157e: 89 d8 mov %ebx,%eax
if(dip->type == 0){ // a free inode
80101580: 83 c4 10 add $0x10,%esp
dip = (struct dinode*)bp->data + inum%IPB;
80101583: 83 e0 07 and $0x7,%eax
80101586: c1 e0 06 shl $0x6,%eax
80101589: 8d 4c 07 5c lea 0x5c(%edi,%eax,1),%ecx
if(dip->type == 0){ // a free inode
8010158d: 66 83 39 00 cmpw $0x0,(%ecx)
80101591: 75 bd jne 80101550 <ialloc+0x30>
memset(dip, 0, sizeof(*dip));
80101593: 83 ec 04 sub $0x4,%esp
80101596: 89 4d e0 mov %ecx,-0x20(%ebp)
80101599: 6a 40 push $0x40
8010159b: 6a 00 push $0x0
8010159d: 51 push %ecx
8010159e: e8 ed 2f 00 00 call 80104590 <memset>
dip->type = type;
801015a3: 0f b7 45 e4 movzwl -0x1c(%ebp),%eax
801015a7: 8b 4d e0 mov -0x20(%ebp),%ecx
801015aa: 66 89 01 mov %ax,(%ecx)
log_write(bp); // mark it allocated on the disk
801015ad: 89 3c 24 mov %edi,(%esp)
801015b0: e8 cb 17 00 00 call 80102d80 <log_write>
brelse(bp);
801015b5: 89 3c 24 mov %edi,(%esp)
801015b8: e8 23 ec ff ff call 801001e0 <brelse>
return iget(dev, inum);
801015bd: 83 c4 10 add $0x10,%esp
}
801015c0: 8d 65 f4 lea -0xc(%ebp),%esp
return iget(dev, inum);
801015c3: 89 da mov %ebx,%edx
801015c5: 89 f0 mov %esi,%eax
}
801015c7: 5b pop %ebx
801015c8: 5e pop %esi
801015c9: 5f pop %edi
801015ca: 5d pop %ebp
return iget(dev, inum);
801015cb: e9 50 fc ff ff jmp 80101220 <iget>
panic("ialloc: no inodes");
801015d0: 83 ec 0c sub $0xc,%esp
801015d3: 68 78 71 10 80 push $0x80107178
801015d8: e8 b3 ed ff ff call 80100390 <panic>
801015dd: 8d 76 00 lea 0x0(%esi),%esi
801015e0 <iupdate>:
{
801015e0: 55 push %ebp
801015e1: 89 e5 mov %esp,%ebp
801015e3: 56 push %esi
801015e4: 53 push %ebx
801015e5: 8b 5d 08 mov 0x8(%ebp),%ebx
bp = bread(ip->dev, IBLOCK(ip->inum, sb));
801015e8: 83 ec 08 sub $0x8,%esp
801015eb: 8b 43 04 mov 0x4(%ebx),%eax
memmove(dip->addrs, ip->addrs, sizeof(ip->addrs));
801015ee: 83 c3 5c add $0x5c,%ebx
bp = bread(ip->dev, IBLOCK(ip->inum, sb));
801015f1: c1 e8 03 shr $0x3,%eax
801015f4: 03 05 f4 09 11 80 add 0x801109f4,%eax
801015fa: 50 push %eax
801015fb: ff 73 a4 pushl -0x5c(%ebx)
801015fe: e8 cd ea ff ff call 801000d0 <bread>
80101603: 89 c6 mov %eax,%esi
dip = (struct dinode*)bp->data + ip->inum%IPB;
80101605: 8b 43 a8 mov -0x58(%ebx),%eax
dip->type = ip->type;
80101608: 0f b7 53 f4 movzwl -0xc(%ebx),%edx
memmove(dip->addrs, ip->addrs, sizeof(ip->addrs));
8010160c: 83 c4 0c add $0xc,%esp
dip = (struct dinode*)bp->data + ip->inum%IPB;
8010160f: 83 e0 07 and $0x7,%eax
80101612: c1 e0 06 shl $0x6,%eax
80101615: 8d 44 06 5c lea 0x5c(%esi,%eax,1),%eax
dip->type = ip->type;
80101619: 66 89 10 mov %dx,(%eax)
dip->major = ip->major;
8010161c: 0f b7 53 f6 movzwl -0xa(%ebx),%edx
memmove(dip->addrs, ip->addrs, sizeof(ip->addrs));
80101620: 83 c0 0c add $0xc,%eax
dip->major = ip->major;
80101623: 66 89 50 f6 mov %dx,-0xa(%eax)
dip->minor = ip->minor;
80101627: 0f b7 53 f8 movzwl -0x8(%ebx),%edx
8010162b: 66 89 50 f8 mov %dx,-0x8(%eax)
dip->nlink = ip->nlink;
8010162f: 0f b7 53 fa movzwl -0x6(%ebx),%edx
80101633: 66 89 50 fa mov %dx,-0x6(%eax)
dip->size = ip->size;
80101637: 8b 53 fc mov -0x4(%ebx),%edx
8010163a: 89 50 fc mov %edx,-0x4(%eax)
memmove(dip->addrs, ip->addrs, sizeof(ip->addrs));
8010163d: 6a 34 push $0x34
8010163f: 53 push %ebx
80101640: 50 push %eax
80101641: e8 fa 2f 00 00 call 80104640 <memmove>
log_write(bp);
80101646: 89 34 24 mov %esi,(%esp)
80101649: e8 32 17 00 00 call 80102d80 <log_write>
brelse(bp);
8010164e: 89 75 08 mov %esi,0x8(%ebp)
80101651: 83 c4 10 add $0x10,%esp
}
80101654: 8d 65 f8 lea -0x8(%ebp),%esp
80101657: 5b pop %ebx
80101658: 5e pop %esi
80101659: 5d pop %ebp
brelse(bp);
8010165a: e9 81 eb ff ff jmp 801001e0 <brelse>
8010165f: 90 nop
80101660 <idup>:
{
80101660: 55 push %ebp
80101661: 89 e5 mov %esp,%ebp
80101663: 53 push %ebx
80101664: 83 ec 10 sub $0x10,%esp
80101667: 8b 5d 08 mov 0x8(%ebp),%ebx
acquire(&icache.lock);
8010166a: 68 00 0a 11 80 push $0x80110a00
8010166f: e8 9c 2d 00 00 call 80104410 <acquire>
ip->ref++;
80101674: 83 43 08 01 addl $0x1,0x8(%ebx)
release(&icache.lock);
80101678: c7 04 24 00 0a 11 80 movl $0x80110a00,(%esp)
8010167f: e8 ac 2e 00 00 call 80104530 <release>
}
80101684: 89 d8 mov %ebx,%eax
80101686: 8b 5d fc mov -0x4(%ebp),%ebx
80101689: c9 leave
8010168a: c3 ret
8010168b: 90 nop
8010168c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80101690 <ilock>:
{
80101690: 55 push %ebp
80101691: 89 e5 mov %esp,%ebp
80101693: 56 push %esi
80101694: 53 push %ebx
80101695: 8b 5d 08 mov 0x8(%ebp),%ebx
if(ip == 0 || ip->ref < 1)
80101698: 85 db test %ebx,%ebx
8010169a: 0f 84 b7 00 00 00 je 80101757 <ilock+0xc7>
801016a0: 8b 53 08 mov 0x8(%ebx),%edx
801016a3: 85 d2 test %edx,%edx
801016a5: 0f 8e ac 00 00 00 jle 80101757 <ilock+0xc7>
acquiresleep(&ip->lock);
801016ab: 8d 43 0c lea 0xc(%ebx),%eax
801016ae: 83 ec 0c sub $0xc,%esp
801016b1: 50 push %eax
801016b2: e8 99 2b 00 00 call 80104250 <acquiresleep>
if(ip->valid == 0){
801016b7: 8b 43 4c mov 0x4c(%ebx),%eax
801016ba: 83 c4 10 add $0x10,%esp
801016bd: 85 c0 test %eax,%eax
801016bf: 74 0f je 801016d0 <ilock+0x40>
}
801016c1: 8d 65 f8 lea -0x8(%ebp),%esp
801016c4: 5b pop %ebx
801016c5: 5e pop %esi
801016c6: 5d pop %ebp
801016c7: c3 ret
801016c8: 90 nop
801016c9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
bp = bread(ip->dev, IBLOCK(ip->inum, sb));
801016d0: 8b 43 04 mov 0x4(%ebx),%eax
801016d3: 83 ec 08 sub $0x8,%esp
801016d6: c1 e8 03 shr $0x3,%eax
801016d9: 03 05 f4 09 11 80 add 0x801109f4,%eax
801016df: 50 push %eax
801016e0: ff 33 pushl (%ebx)
801016e2: e8 e9 e9 ff ff call 801000d0 <bread>
801016e7: 89 c6 mov %eax,%esi
dip = (struct dinode*)bp->data + ip->inum%IPB;
801016e9: 8b 43 04 mov 0x4(%ebx),%eax
memmove(ip->addrs, dip->addrs, sizeof(ip->addrs));
801016ec: 83 c4 0c add $0xc,%esp
dip = (struct dinode*)bp->data + ip->inum%IPB;
801016ef: 83 e0 07 and $0x7,%eax
801016f2: c1 e0 06 shl $0x6,%eax
801016f5: 8d 44 06 5c lea 0x5c(%esi,%eax,1),%eax
ip->type = dip->type;
801016f9: 0f b7 10 movzwl (%eax),%edx
memmove(ip->addrs, dip->addrs, sizeof(ip->addrs));
801016fc: 83 c0 0c add $0xc,%eax
ip->type = dip->type;
801016ff: 66 89 53 50 mov %dx,0x50(%ebx)
ip->major = dip->major;
80101703: 0f b7 50 f6 movzwl -0xa(%eax),%edx
80101707: 66 89 53 52 mov %dx,0x52(%ebx)
ip->minor = dip->minor;
8010170b: 0f b7 50 f8 movzwl -0x8(%eax),%edx
8010170f: 66 89 53 54 mov %dx,0x54(%ebx)
ip->nlink = dip->nlink;
80101713: 0f b7 50 fa movzwl -0x6(%eax),%edx
80101717: 66 89 53 56 mov %dx,0x56(%ebx)
ip->size = dip->size;
8010171b: 8b 50 fc mov -0x4(%eax),%edx
8010171e: 89 53 58 mov %edx,0x58(%ebx)
memmove(ip->addrs, dip->addrs, sizeof(ip->addrs));
80101721: 6a 34 push $0x34
80101723: 50 push %eax
80101724: 8d 43 5c lea 0x5c(%ebx),%eax
80101727: 50 push %eax
80101728: e8 13 2f 00 00 call 80104640 <memmove>
brelse(bp);
8010172d: 89 34 24 mov %esi,(%esp)
80101730: e8 ab ea ff ff call 801001e0 <brelse>
if(ip->type == 0)
80101735: 83 c4 10 add $0x10,%esp
80101738: 66 83 7b 50 00 cmpw $0x0,0x50(%ebx)
ip->valid = 1;
8010173d: c7 43 4c 01 00 00 00 movl $0x1,0x4c(%ebx)
if(ip->type == 0)
80101744: 0f 85 77 ff ff ff jne 801016c1 <ilock+0x31>
panic("ilock: no type");
8010174a: 83 ec 0c sub $0xc,%esp
8010174d: 68 90 71 10 80 push $0x80107190
80101752: e8 39 ec ff ff call 80100390 <panic>
panic("ilock");
80101757: 83 ec 0c sub $0xc,%esp
8010175a: 68 8a 71 10 80 push $0x8010718a
8010175f: e8 2c ec ff ff call 80100390 <panic>
80101764: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
8010176a: 8d bf 00 00 00 00 lea 0x0(%edi),%edi
80101770 <iunlock>:
{
80101770: 55 push %ebp
80101771: 89 e5 mov %esp,%ebp
80101773: 56 push %esi
80101774: 53 push %ebx
80101775: 8b 5d 08 mov 0x8(%ebp),%ebx
if(ip == 0 || !holdingsleep(&ip->lock) || ip->ref < 1)
80101778: 85 db test %ebx,%ebx
8010177a: 74 28 je 801017a4 <iunlock+0x34>
8010177c: 8d 73 0c lea 0xc(%ebx),%esi
8010177f: 83 ec 0c sub $0xc,%esp
80101782: 56 push %esi
80101783: e8 68 2b 00 00 call 801042f0 <holdingsleep>
80101788: 83 c4 10 add $0x10,%esp
8010178b: 85 c0 test %eax,%eax
8010178d: 74 15 je 801017a4 <iunlock+0x34>
8010178f: 8b 43 08 mov 0x8(%ebx),%eax
80101792: 85 c0 test %eax,%eax
80101794: 7e 0e jle 801017a4 <iunlock+0x34>
releasesleep(&ip->lock);
80101796: 89 75 08 mov %esi,0x8(%ebp)
}
80101799: 8d 65 f8 lea -0x8(%ebp),%esp
8010179c: 5b pop %ebx
8010179d: 5e pop %esi
8010179e: 5d pop %ebp
releasesleep(&ip->lock);
8010179f: e9 0c 2b 00 00 jmp 801042b0 <releasesleep>
panic("iunlock");
801017a4: 83 ec 0c sub $0xc,%esp
801017a7: 68 9f 71 10 80 push $0x8010719f
801017ac: e8 df eb ff ff call 80100390 <panic>
801017b1: eb 0d jmp 801017c0 <iput>
801017b3: 90 nop
801017b4: 90 nop
801017b5: 90 nop
801017b6: 90 nop
801017b7: 90 nop
801017b8: 90 nop
801017b9: 90 nop
801017ba: 90 nop
801017bb: 90 nop
801017bc: 90 nop
801017bd: 90 nop
801017be: 90 nop
801017bf: 90 nop
801017c0 <iput>:
{
801017c0: 55 push %ebp
801017c1: 89 e5 mov %esp,%ebp
801017c3: 57 push %edi
801017c4: 56 push %esi
801017c5: 53 push %ebx
801017c6: 83 ec 28 sub $0x28,%esp
801017c9: 8b 5d 08 mov 0x8(%ebp),%ebx
acquiresleep(&ip->lock);
801017cc: 8d 7b 0c lea 0xc(%ebx),%edi
801017cf: 57 push %edi
801017d0: e8 7b 2a 00 00 call 80104250 <acquiresleep>
if(ip->valid && ip->nlink == 0){
801017d5: 8b 53 4c mov 0x4c(%ebx),%edx
801017d8: 83 c4 10 add $0x10,%esp
801017db: 85 d2 test %edx,%edx
801017dd: 74 07 je 801017e6 <iput+0x26>
801017df: 66 83 7b 56 00 cmpw $0x0,0x56(%ebx)
801017e4: 74 32 je 80101818 <iput+0x58>
releasesleep(&ip->lock);
801017e6: 83 ec 0c sub $0xc,%esp
801017e9: 57 push %edi
801017ea: e8 c1 2a 00 00 call 801042b0 <releasesleep>
acquire(&icache.lock);
801017ef: c7 04 24 00 0a 11 80 movl $0x80110a00,(%esp)
801017f6: e8 15 2c 00 00 call 80104410 <acquire>
ip->ref--;
801017fb: 83 6b 08 01 subl $0x1,0x8(%ebx)
release(&icache.lock);
801017ff: 83 c4 10 add $0x10,%esp
80101802: c7 45 08 00 0a 11 80 movl $0x80110a00,0x8(%ebp)
}
80101809: 8d 65 f4 lea -0xc(%ebp),%esp
8010180c: 5b pop %ebx
8010180d: 5e pop %esi
8010180e: 5f pop %edi
8010180f: 5d pop %ebp
release(&icache.lock);
80101810: e9 1b 2d 00 00 jmp 80104530 <release>
80101815: 8d 76 00 lea 0x0(%esi),%esi
acquire(&icache.lock);
80101818: 83 ec 0c sub $0xc,%esp
8010181b: 68 00 0a 11 80 push $0x80110a00
80101820: e8 eb 2b 00 00 call 80104410 <acquire>
int r = ip->ref;
80101825: 8b 73 08 mov 0x8(%ebx),%esi
release(&icache.lock);
80101828: c7 04 24 00 0a 11 80 movl $0x80110a00,(%esp)
8010182f: e8 fc 2c 00 00 call 80104530 <release>
if(r == 1){
80101834: 83 c4 10 add $0x10,%esp
80101837: 83 fe 01 cmp $0x1,%esi
8010183a: 75 aa jne 801017e6 <iput+0x26>
8010183c: 8d 8b 8c 00 00 00 lea 0x8c(%ebx),%ecx
80101842: 89 7d e4 mov %edi,-0x1c(%ebp)
80101845: 8d 73 5c lea 0x5c(%ebx),%esi
80101848: 89 cf mov %ecx,%edi
8010184a: eb 0b jmp 80101857 <iput+0x97>
8010184c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80101850: 83 c6 04 add $0x4,%esi
{
int i, j;
struct buf *bp;
uint *a;
for(i = 0; i < NDIRECT; i++){
80101853: 39 fe cmp %edi,%esi
80101855: 74 19 je 80101870 <iput+0xb0>
if(ip->addrs[i]){
80101857: 8b 16 mov (%esi),%edx
80101859: 85 d2 test %edx,%edx
8010185b: 74 f3 je 80101850 <iput+0x90>
bfree(ip->dev, ip->addrs[i]);
8010185d: 8b 03 mov (%ebx),%eax
8010185f: e8 ac fb ff ff call 80101410 <bfree>
ip->addrs[i] = 0;
80101864: c7 06 00 00 00 00 movl $0x0,(%esi)
8010186a: eb e4 jmp 80101850 <iput+0x90>
8010186c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
}
}
if(ip->addrs[NDIRECT]){
80101870: 8b 83 8c 00 00 00 mov 0x8c(%ebx),%eax
80101876: 8b 7d e4 mov -0x1c(%ebp),%edi
80101879: 85 c0 test %eax,%eax
8010187b: 75 33 jne 801018b0 <iput+0xf0>
bfree(ip->dev, ip->addrs[NDIRECT]);
ip->addrs[NDIRECT] = 0;
}
ip->size = 0;
iupdate(ip);
8010187d: 83 ec 0c sub $0xc,%esp
ip->size = 0;
80101880: c7 43 58 00 00 00 00 movl $0x0,0x58(%ebx)
iupdate(ip);
80101887: 53 push %ebx
80101888: e8 53 fd ff ff call 801015e0 <iupdate>
ip->type = 0;
8010188d: 31 c0 xor %eax,%eax
8010188f: 66 89 43 50 mov %ax,0x50(%ebx)
iupdate(ip);
80101893: 89 1c 24 mov %ebx,(%esp)
80101896: e8 45 fd ff ff call 801015e0 <iupdate>
ip->valid = 0;
8010189b: c7 43 4c 00 00 00 00 movl $0x0,0x4c(%ebx)
801018a2: 83 c4 10 add $0x10,%esp
801018a5: e9 3c ff ff ff jmp 801017e6 <iput+0x26>
801018aa: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
bp = bread(ip->dev, ip->addrs[NDIRECT]);
801018b0: 83 ec 08 sub $0x8,%esp
801018b3: 50 push %eax
801018b4: ff 33 pushl (%ebx)
801018b6: e8 15 e8 ff ff call 801000d0 <bread>
801018bb: 8d 88 5c 02 00 00 lea 0x25c(%eax),%ecx
801018c1: 89 7d e0 mov %edi,-0x20(%ebp)
801018c4: 89 45 e4 mov %eax,-0x1c(%ebp)
a = (uint*)bp->data;
801018c7: 8d 70 5c lea 0x5c(%eax),%esi
801018ca: 83 c4 10 add $0x10,%esp
801018cd: 89 cf mov %ecx,%edi
801018cf: eb 0e jmp 801018df <iput+0x11f>
801018d1: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
801018d8: 83 c6 04 add $0x4,%esi
for(j = 0; j < NINDIRECT; j++){
801018db: 39 fe cmp %edi,%esi
801018dd: 74 0f je 801018ee <iput+0x12e>
if(a[j])
801018df: 8b 16 mov (%esi),%edx
801018e1: 85 d2 test %edx,%edx
801018e3: 74 f3 je 801018d8 <iput+0x118>
bfree(ip->dev, a[j]);
801018e5: 8b 03 mov (%ebx),%eax
801018e7: e8 24 fb ff ff call 80101410 <bfree>
801018ec: eb ea jmp 801018d8 <iput+0x118>
brelse(bp);
801018ee: 83 ec 0c sub $0xc,%esp
801018f1: ff 75 e4 pushl -0x1c(%ebp)
801018f4: 8b 7d e0 mov -0x20(%ebp),%edi
801018f7: e8 e4 e8 ff ff call 801001e0 <brelse>
bfree(ip->dev, ip->addrs[NDIRECT]);
801018fc: 8b 93 8c 00 00 00 mov 0x8c(%ebx),%edx
80101902: 8b 03 mov (%ebx),%eax
80101904: e8 07 fb ff ff call 80101410 <bfree>
ip->addrs[NDIRECT] = 0;
80101909: c7 83 8c 00 00 00 00 movl $0x0,0x8c(%ebx)
80101910: 00 00 00
80101913: 83 c4 10 add $0x10,%esp
80101916: e9 62 ff ff ff jmp 8010187d <iput+0xbd>
8010191b: 90 nop
8010191c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80101920 <iunlockput>:
{
80101920: 55 push %ebp
80101921: 89 e5 mov %esp,%ebp
80101923: 53 push %ebx
80101924: 83 ec 10 sub $0x10,%esp
80101927: 8b 5d 08 mov 0x8(%ebp),%ebx
iunlock(ip);
8010192a: 53 push %ebx
8010192b: e8 40 fe ff ff call 80101770 <iunlock>
iput(ip);
80101930: 89 5d 08 mov %ebx,0x8(%ebp)
80101933: 83 c4 10 add $0x10,%esp
}
80101936: 8b 5d fc mov -0x4(%ebp),%ebx
80101939: c9 leave
iput(ip);
8010193a: e9 81 fe ff ff jmp 801017c0 <iput>
8010193f: 90 nop
80101940 <stati>:
// Copy stat information from inode.
// Caller must hold ip->lock.
void
stati(struct inode *ip, struct stat *st)
{
80101940: 55 push %ebp
80101941: 89 e5 mov %esp,%ebp
80101943: 8b 55 08 mov 0x8(%ebp),%edx
80101946: 8b 45 0c mov 0xc(%ebp),%eax
st->dev = ip->dev;
80101949: 8b 0a mov (%edx),%ecx
8010194b: 89 48 04 mov %ecx,0x4(%eax)
st->ino = ip->inum;
8010194e: 8b 4a 04 mov 0x4(%edx),%ecx
80101951: 89 48 08 mov %ecx,0x8(%eax)
st->type = ip->type;
80101954: 0f b7 4a 50 movzwl 0x50(%edx),%ecx
80101958: 66 89 08 mov %cx,(%eax)
st->nlink = ip->nlink;
8010195b: 0f b7 4a 56 movzwl 0x56(%edx),%ecx
8010195f: 66 89 48 0c mov %cx,0xc(%eax)
st->size = ip->size;
80101963: 8b 52 58 mov 0x58(%edx),%edx
80101966: 89 50 10 mov %edx,0x10(%eax)
}
80101969: 5d pop %ebp
8010196a: c3 ret
8010196b: 90 nop
8010196c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80101970 <readi>:
//PAGEBREAK!
// Read data from inode.
// Caller must hold ip->lock.
int
readi(struct inode *ip, char *dst, uint off, uint n)
{
80101970: 55 push %ebp
80101971: 89 e5 mov %esp,%ebp
80101973: 57 push %edi
80101974: 56 push %esi
80101975: 53 push %ebx
80101976: 83 ec 1c sub $0x1c,%esp
80101979: 8b 45 08 mov 0x8(%ebp),%eax
8010197c: 8b 75 0c mov 0xc(%ebp),%esi
8010197f: 8b 7d 14 mov 0x14(%ebp),%edi
uint tot, m;
struct buf *bp;
if(ip->type == T_DEV){
80101982: 66 83 78 50 03 cmpw $0x3,0x50(%eax)
{
80101987: 89 75 e0 mov %esi,-0x20(%ebp)
8010198a: 89 45 d8 mov %eax,-0x28(%ebp)
8010198d: 8b 75 10 mov 0x10(%ebp),%esi
80101990: 89 7d e4 mov %edi,-0x1c(%ebp)
if(ip->type == T_DEV){
80101993: 0f 84 a7 00 00 00 je 80101a40 <readi+0xd0>
if(ip->major < 0 || ip->major >= NDEV || !devsw[ip->major].read)
return -1;
return devsw[ip->major].read(ip, dst, n);
}
if(off > ip->size || off + n < off)
80101999: 8b 45 d8 mov -0x28(%ebp),%eax
8010199c: 8b 40 58 mov 0x58(%eax),%eax
8010199f: 39 c6 cmp %eax,%esi
801019a1: 0f 87 ba 00 00 00 ja 80101a61 <readi+0xf1>
801019a7: 8b 7d e4 mov -0x1c(%ebp),%edi
801019aa: 89 f9 mov %edi,%ecx
801019ac: 01 f1 add %esi,%ecx
801019ae: 0f 82 ad 00 00 00 jb 80101a61 <readi+0xf1>
return -1;
if(off + n > ip->size)
n = ip->size - off;
801019b4: 89 c2 mov %eax,%edx
801019b6: 29 f2 sub %esi,%edx
801019b8: 39 c8 cmp %ecx,%eax
801019ba: 0f 43 d7 cmovae %edi,%edx
for(tot=0; tot<n; tot+=m, off+=m, dst+=m){
801019bd: 31 ff xor %edi,%edi
801019bf: 85 d2 test %edx,%edx
n = ip->size - off;
801019c1: 89 55 e4 mov %edx,-0x1c(%ebp)
for(tot=0; tot<n; tot+=m, off+=m, dst+=m){
801019c4: 74 6c je 80101a32 <readi+0xc2>
801019c6: 8d 76 00 lea 0x0(%esi),%esi
801019c9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
bp = bread(ip->dev, bmap(ip, off/BSIZE));
801019d0: 8b 5d d8 mov -0x28(%ebp),%ebx
801019d3: 89 f2 mov %esi,%edx
801019d5: c1 ea 09 shr $0x9,%edx
801019d8: 89 d8 mov %ebx,%eax
801019da: e8 11 f9 ff ff call 801012f0 <bmap>
801019df: 83 ec 08 sub $0x8,%esp
801019e2: 50 push %eax
801019e3: ff 33 pushl (%ebx)
801019e5: e8 e6 e6 ff ff call 801000d0 <bread>
m = min(n - tot, BSIZE - off%BSIZE);
801019ea: 8b 5d e4 mov -0x1c(%ebp),%ebx
bp = bread(ip->dev, bmap(ip, off/BSIZE));
801019ed: 89 c2 mov %eax,%edx
m = min(n - tot, BSIZE - off%BSIZE);
801019ef: 89 f0 mov %esi,%eax
801019f1: 25 ff 01 00 00 and $0x1ff,%eax
801019f6: b9 00 02 00 00 mov $0x200,%ecx
801019fb: 83 c4 0c add $0xc,%esp
801019fe: 29 c1 sub %eax,%ecx
memmove(dst, bp->data + off%BSIZE, m);
80101a00: 8d 44 02 5c lea 0x5c(%edx,%eax,1),%eax
80101a04: 89 55 dc mov %edx,-0x24(%ebp)
m = min(n - tot, BSIZE - off%BSIZE);
80101a07: 29 fb sub %edi,%ebx
80101a09: 39 d9 cmp %ebx,%ecx
80101a0b: 0f 46 d9 cmovbe %ecx,%ebx
memmove(dst, bp->data + off%BSIZE, m);
80101a0e: 53 push %ebx
80101a0f: 50 push %eax
for(tot=0; tot<n; tot+=m, off+=m, dst+=m){
80101a10: 01 df add %ebx,%edi
memmove(dst, bp->data + off%BSIZE, m);
80101a12: ff 75 e0 pushl -0x20(%ebp)
for(tot=0; tot<n; tot+=m, off+=m, dst+=m){
80101a15: 01 de add %ebx,%esi
memmove(dst, bp->data + off%BSIZE, m);
80101a17: e8 24 2c 00 00 call 80104640 <memmove>
brelse(bp);
80101a1c: 8b 55 dc mov -0x24(%ebp),%edx
80101a1f: 89 14 24 mov %edx,(%esp)
80101a22: e8 b9 e7 ff ff call 801001e0 <brelse>
for(tot=0; tot<n; tot+=m, off+=m, dst+=m){
80101a27: 01 5d e0 add %ebx,-0x20(%ebp)
80101a2a: 83 c4 10 add $0x10,%esp
80101a2d: 39 7d e4 cmp %edi,-0x1c(%ebp)
80101a30: 77 9e ja 801019d0 <readi+0x60>
}
return n;
80101a32: 8b 45 e4 mov -0x1c(%ebp),%eax
}
80101a35: 8d 65 f4 lea -0xc(%ebp),%esp
80101a38: 5b pop %ebx
80101a39: 5e pop %esi
80101a3a: 5f pop %edi
80101a3b: 5d pop %ebp
80101a3c: c3 ret
80101a3d: 8d 76 00 lea 0x0(%esi),%esi
if(ip->major < 0 || ip->major >= NDEV || !devsw[ip->major].read)
80101a40: 0f bf 40 52 movswl 0x52(%eax),%eax
80101a44: 66 83 f8 09 cmp $0x9,%ax
80101a48: 77 17 ja 80101a61 <readi+0xf1>
80101a4a: 8b 04 c5 80 09 11 80 mov -0x7feef680(,%eax,8),%eax
80101a51: 85 c0 test %eax,%eax
80101a53: 74 0c je 80101a61 <readi+0xf1>
return devsw[ip->major].read(ip, dst, n);
80101a55: 89 7d 10 mov %edi,0x10(%ebp)
}
80101a58: 8d 65 f4 lea -0xc(%ebp),%esp
80101a5b: 5b pop %ebx
80101a5c: 5e pop %esi
80101a5d: 5f pop %edi
80101a5e: 5d pop %ebp
return devsw[ip->major].read(ip, dst, n);
80101a5f: ff e0 jmp *%eax
return -1;
80101a61: b8 ff ff ff ff mov $0xffffffff,%eax
80101a66: eb cd jmp 80101a35 <readi+0xc5>
80101a68: 90 nop
80101a69: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
80101a70 <writei>:
// PAGEBREAK!
// Write data to inode.
// Caller must hold ip->lock.
int
writei(struct inode *ip, char *src, uint off, uint n)
{
80101a70: 55 push %ebp
80101a71: 89 e5 mov %esp,%ebp
80101a73: 57 push %edi
80101a74: 56 push %esi
80101a75: 53 push %ebx
80101a76: 83 ec 1c sub $0x1c,%esp
80101a79: 8b 45 08 mov 0x8(%ebp),%eax
80101a7c: 8b 75 0c mov 0xc(%ebp),%esi
80101a7f: 8b 7d 14 mov 0x14(%ebp),%edi
uint tot, m;
struct buf *bp;
if(ip->type == T_DEV){
80101a82: 66 83 78 50 03 cmpw $0x3,0x50(%eax)
{
80101a87: 89 75 dc mov %esi,-0x24(%ebp)
80101a8a: 89 45 d8 mov %eax,-0x28(%ebp)
80101a8d: 8b 75 10 mov 0x10(%ebp),%esi
80101a90: 89 7d e0 mov %edi,-0x20(%ebp)
if(ip->type == T_DEV){
80101a93: 0f 84 b7 00 00 00 je 80101b50 <writei+0xe0>
if(ip->major < 0 || ip->major >= NDEV || !devsw[ip->major].write)
return -1;
return devsw[ip->major].write(ip, src, n);
}
if(off > ip->size || off + n < off)
80101a99: 8b 45 d8 mov -0x28(%ebp),%eax
80101a9c: 39 70 58 cmp %esi,0x58(%eax)
80101a9f: 0f 82 eb 00 00 00 jb 80101b90 <writei+0x120>
80101aa5: 8b 7d e0 mov -0x20(%ebp),%edi
80101aa8: 31 d2 xor %edx,%edx
80101aaa: 89 f8 mov %edi,%eax
80101aac: 01 f0 add %esi,%eax
80101aae: 0f 92 c2 setb %dl
return -1;
if(off + n > MAXFILE*BSIZE)
80101ab1: 3d 00 18 01 00 cmp $0x11800,%eax
80101ab6: 0f 87 d4 00 00 00 ja 80101b90 <writei+0x120>
80101abc: 85 d2 test %edx,%edx
80101abe: 0f 85 cc 00 00 00 jne 80101b90 <writei+0x120>
return -1;
for(tot=0; tot<n; tot+=m, off+=m, src+=m){
80101ac4: 85 ff test %edi,%edi
80101ac6: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp)
80101acd: 74 72 je 80101b41 <writei+0xd1>
80101acf: 90 nop
bp = bread(ip->dev, bmap(ip, off/BSIZE));
80101ad0: 8b 7d d8 mov -0x28(%ebp),%edi
80101ad3: 89 f2 mov %esi,%edx
80101ad5: c1 ea 09 shr $0x9,%edx
80101ad8: 89 f8 mov %edi,%eax
80101ada: e8 11 f8 ff ff call 801012f0 <bmap>
80101adf: 83 ec 08 sub $0x8,%esp
80101ae2: 50 push %eax
80101ae3: ff 37 pushl (%edi)
80101ae5: e8 e6 e5 ff ff call 801000d0 <bread>
m = min(n - tot, BSIZE - off%BSIZE);
80101aea: 8b 5d e0 mov -0x20(%ebp),%ebx
80101aed: 2b 5d e4 sub -0x1c(%ebp),%ebx
bp = bread(ip->dev, bmap(ip, off/BSIZE));
80101af0: 89 c7 mov %eax,%edi
m = min(n - tot, BSIZE - off%BSIZE);
80101af2: 89 f0 mov %esi,%eax
80101af4: b9 00 02 00 00 mov $0x200,%ecx
80101af9: 83 c4 0c add $0xc,%esp
80101afc: 25 ff 01 00 00 and $0x1ff,%eax
80101b01: 29 c1 sub %eax,%ecx
memmove(bp->data + off%BSIZE, src, m);
80101b03: 8d 44 07 5c lea 0x5c(%edi,%eax,1),%eax
m = min(n - tot, BSIZE - off%BSIZE);
80101b07: 39 d9 cmp %ebx,%ecx
80101b09: 0f 46 d9 cmovbe %ecx,%ebx
memmove(bp->data + off%BSIZE, src, m);
80101b0c: 53 push %ebx
80101b0d: ff 75 dc pushl -0x24(%ebp)
for(tot=0; tot<n; tot+=m, off+=m, src+=m){
80101b10: 01 de add %ebx,%esi
memmove(bp->data + off%BSIZE, src, m);
80101b12: 50 push %eax
80101b13: e8 28 2b 00 00 call 80104640 <memmove>
log_write(bp);
80101b18: 89 3c 24 mov %edi,(%esp)
80101b1b: e8 60 12 00 00 call 80102d80 <log_write>
brelse(bp);
80101b20: 89 3c 24 mov %edi,(%esp)
80101b23: e8 b8 e6 ff ff call 801001e0 <brelse>
for(tot=0; tot<n; tot+=m, off+=m, src+=m){
80101b28: 01 5d e4 add %ebx,-0x1c(%ebp)
80101b2b: 01 5d dc add %ebx,-0x24(%ebp)
80101b2e: 83 c4 10 add $0x10,%esp
80101b31: 8b 45 e4 mov -0x1c(%ebp),%eax
80101b34: 39 45 e0 cmp %eax,-0x20(%ebp)
80101b37: 77 97 ja 80101ad0 <writei+0x60>
}
if(n > 0 && off > ip->size){
80101b39: 8b 45 d8 mov -0x28(%ebp),%eax
80101b3c: 3b 70 58 cmp 0x58(%eax),%esi
80101b3f: 77 37 ja 80101b78 <writei+0x108>
ip->size = off;
iupdate(ip);
}
return n;
80101b41: 8b 45 e0 mov -0x20(%ebp),%eax
}
80101b44: 8d 65 f4 lea -0xc(%ebp),%esp
80101b47: 5b pop %ebx
80101b48: 5e pop %esi
80101b49: 5f pop %edi
80101b4a: 5d pop %ebp
80101b4b: c3 ret
80101b4c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
if(ip->major < 0 || ip->major >= NDEV || !devsw[ip->major].write)
80101b50: 0f bf 40 52 movswl 0x52(%eax),%eax
80101b54: 66 83 f8 09 cmp $0x9,%ax
80101b58: 77 36 ja 80101b90 <writei+0x120>
80101b5a: 8b 04 c5 84 09 11 80 mov -0x7feef67c(,%eax,8),%eax
80101b61: 85 c0 test %eax,%eax
80101b63: 74 2b je 80101b90 <writei+0x120>
return devsw[ip->major].write(ip, src, n);
80101b65: 89 7d 10 mov %edi,0x10(%ebp)
}
80101b68: 8d 65 f4 lea -0xc(%ebp),%esp
80101b6b: 5b pop %ebx
80101b6c: 5e pop %esi
80101b6d: 5f pop %edi
80101b6e: 5d pop %ebp
return devsw[ip->major].write(ip, src, n);
80101b6f: ff e0 jmp *%eax
80101b71: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
ip->size = off;
80101b78: 8b 45 d8 mov -0x28(%ebp),%eax
iupdate(ip);
80101b7b: 83 ec 0c sub $0xc,%esp
ip->size = off;
80101b7e: 89 70 58 mov %esi,0x58(%eax)
iupdate(ip);
80101b81: 50 push %eax
80101b82: e8 59 fa ff ff call 801015e0 <iupdate>
80101b87: 83 c4 10 add $0x10,%esp
80101b8a: eb b5 jmp 80101b41 <writei+0xd1>
80101b8c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
return -1;
80101b90: b8 ff ff ff ff mov $0xffffffff,%eax
80101b95: eb ad jmp 80101b44 <writei+0xd4>
80101b97: 89 f6 mov %esi,%esi
80101b99: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80101ba0 <namecmp>:
//PAGEBREAK!
// Directories
int
namecmp(const char *s, const char *t)
{
80101ba0: 55 push %ebp
80101ba1: 89 e5 mov %esp,%ebp
80101ba3: 83 ec 0c sub $0xc,%esp
return strncmp(s, t, DIRSIZ);
80101ba6: 6a 0e push $0xe
80101ba8: ff 75 0c pushl 0xc(%ebp)
80101bab: ff 75 08 pushl 0x8(%ebp)
80101bae: e8 fd 2a 00 00 call 801046b0 <strncmp>
}
80101bb3: c9 leave
80101bb4: c3 ret
80101bb5: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80101bb9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80101bc0 <dirlookup>:
// Look for a directory entry in a directory.
// If found, set *poff to byte offset of entry.
struct inode*
dirlookup(struct inode *dp, char *name, uint *poff)
{
80101bc0: 55 push %ebp
80101bc1: 89 e5 mov %esp,%ebp
80101bc3: 57 push %edi
80101bc4: 56 push %esi
80101bc5: 53 push %ebx
80101bc6: 83 ec 1c sub $0x1c,%esp
80101bc9: 8b 5d 08 mov 0x8(%ebp),%ebx
uint off, inum;
struct dirent de;
if(dp->type != T_DIR)
80101bcc: 66 83 7b 50 01 cmpw $0x1,0x50(%ebx)
80101bd1: 0f 85 85 00 00 00 jne 80101c5c <dirlookup+0x9c>
panic("dirlookup not DIR");
for(off = 0; off < dp->size; off += sizeof(de)){
80101bd7: 8b 53 58 mov 0x58(%ebx),%edx
80101bda: 31 ff xor %edi,%edi
80101bdc: 8d 75 d8 lea -0x28(%ebp),%esi
80101bdf: 85 d2 test %edx,%edx
80101be1: 74 3e je 80101c21 <dirlookup+0x61>
80101be3: 90 nop
80101be4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
if(readi(dp, (char*)&de, off, sizeof(de)) != sizeof(de))
80101be8: 6a 10 push $0x10
80101bea: 57 push %edi
80101beb: 56 push %esi
80101bec: 53 push %ebx
80101bed: e8 7e fd ff ff call 80101970 <readi>
80101bf2: 83 c4 10 add $0x10,%esp
80101bf5: 83 f8 10 cmp $0x10,%eax
80101bf8: 75 55 jne 80101c4f <dirlookup+0x8f>
panic("dirlookup read");
if(de.inum == 0)
80101bfa: 66 83 7d d8 00 cmpw $0x0,-0x28(%ebp)
80101bff: 74 18 je 80101c19 <dirlookup+0x59>
return strncmp(s, t, DIRSIZ);
80101c01: 8d 45 da lea -0x26(%ebp),%eax
80101c04: 83 ec 04 sub $0x4,%esp
80101c07: 6a 0e push $0xe
80101c09: 50 push %eax
80101c0a: ff 75 0c pushl 0xc(%ebp)
80101c0d: e8 9e 2a 00 00 call 801046b0 <strncmp>
continue;
if(namecmp(name, de.name) == 0){
80101c12: 83 c4 10 add $0x10,%esp
80101c15: 85 c0 test %eax,%eax
80101c17: 74 17 je 80101c30 <dirlookup+0x70>
for(off = 0; off < dp->size; off += sizeof(de)){
80101c19: 83 c7 10 add $0x10,%edi
80101c1c: 3b 7b 58 cmp 0x58(%ebx),%edi
80101c1f: 72 c7 jb 80101be8 <dirlookup+0x28>
return iget(dp->dev, inum);
}
}
return 0;
}
80101c21: 8d 65 f4 lea -0xc(%ebp),%esp
return 0;
80101c24: 31 c0 xor %eax,%eax
}
80101c26: 5b pop %ebx
80101c27: 5e pop %esi
80101c28: 5f pop %edi
80101c29: 5d pop %ebp
80101c2a: c3 ret
80101c2b: 90 nop
80101c2c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
if(poff)
80101c30: 8b 45 10 mov 0x10(%ebp),%eax
80101c33: 85 c0 test %eax,%eax
80101c35: 74 05 je 80101c3c <dirlookup+0x7c>
*poff = off;
80101c37: 8b 45 10 mov 0x10(%ebp),%eax
80101c3a: 89 38 mov %edi,(%eax)
inum = de.inum;
80101c3c: 0f b7 55 d8 movzwl -0x28(%ebp),%edx
return iget(dp->dev, inum);
80101c40: 8b 03 mov (%ebx),%eax
80101c42: e8 d9 f5 ff ff call 80101220 <iget>
}
80101c47: 8d 65 f4 lea -0xc(%ebp),%esp
80101c4a: 5b pop %ebx
80101c4b: 5e pop %esi
80101c4c: 5f pop %edi
80101c4d: 5d pop %ebp
80101c4e: c3 ret
panic("dirlookup read");
80101c4f: 83 ec 0c sub $0xc,%esp
80101c52: 68 b9 71 10 80 push $0x801071b9
80101c57: e8 34 e7 ff ff call 80100390 <panic>
panic("dirlookup not DIR");
80101c5c: 83 ec 0c sub $0xc,%esp
80101c5f: 68 a7 71 10 80 push $0x801071a7
80101c64: e8 27 e7 ff ff call 80100390 <panic>
80101c69: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
80101c70 <namex>:
// If parent != 0, return the inode for the parent and copy the final
// path element into name, which must have room for DIRSIZ bytes.
// Must be called inside a transaction since it calls iput().
static struct inode*
namex(char *path, int nameiparent, char *name)
{
80101c70: 55 push %ebp
80101c71: 89 e5 mov %esp,%ebp
80101c73: 57 push %edi
80101c74: 56 push %esi
80101c75: 53 push %ebx
80101c76: 89 cf mov %ecx,%edi
80101c78: 89 c3 mov %eax,%ebx
80101c7a: 83 ec 1c sub $0x1c,%esp
struct inode *ip, *next;
if(*path == '/')
80101c7d: 80 38 2f cmpb $0x2f,(%eax)
{
80101c80: 89 55 e0 mov %edx,-0x20(%ebp)
if(*path == '/')
80101c83: 0f 84 67 01 00 00 je 80101df0 <namex+0x180>
ip = iget(ROOTDEV, ROOTINO);
else
ip = idup(myproc()->cwd);
80101c89: e8 52 1b 00 00 call 801037e0 <myproc>
acquire(&icache.lock);
80101c8e: 83 ec 0c sub $0xc,%esp
ip = idup(myproc()->cwd);
80101c91: 8b 70 6c mov 0x6c(%eax),%esi
acquire(&icache.lock);
80101c94: 68 00 0a 11 80 push $0x80110a00
80101c99: e8 72 27 00 00 call 80104410 <acquire>
ip->ref++;
80101c9e: 83 46 08 01 addl $0x1,0x8(%esi)
release(&icache.lock);
80101ca2: c7 04 24 00 0a 11 80 movl $0x80110a00,(%esp)
80101ca9: e8 82 28 00 00 call 80104530 <release>
80101cae: 83 c4 10 add $0x10,%esp
80101cb1: eb 08 jmp 80101cbb <namex+0x4b>
80101cb3: 90 nop
80101cb4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
path++;
80101cb8: 83 c3 01 add $0x1,%ebx
while(*path == '/')
80101cbb: 0f b6 03 movzbl (%ebx),%eax
80101cbe: 3c 2f cmp $0x2f,%al
80101cc0: 74 f6 je 80101cb8 <namex+0x48>
if(*path == 0)
80101cc2: 84 c0 test %al,%al
80101cc4: 0f 84 ee 00 00 00 je 80101db8 <namex+0x148>
while(*path != '/' && *path != 0)
80101cca: 0f b6 03 movzbl (%ebx),%eax
80101ccd: 3c 2f cmp $0x2f,%al
80101ccf: 0f 84 b3 00 00 00 je 80101d88 <namex+0x118>
80101cd5: 84 c0 test %al,%al
80101cd7: 89 da mov %ebx,%edx
80101cd9: 75 09 jne 80101ce4 <namex+0x74>
80101cdb: e9 a8 00 00 00 jmp 80101d88 <namex+0x118>
80101ce0: 84 c0 test %al,%al
80101ce2: 74 0a je 80101cee <namex+0x7e>
path++;
80101ce4: 83 c2 01 add $0x1,%edx
while(*path != '/' && *path != 0)
80101ce7: 0f b6 02 movzbl (%edx),%eax
80101cea: 3c 2f cmp $0x2f,%al
80101cec: 75 f2 jne 80101ce0 <namex+0x70>
80101cee: 89 d1 mov %edx,%ecx
80101cf0: 29 d9 sub %ebx,%ecx
if(len >= DIRSIZ)
80101cf2: 83 f9 0d cmp $0xd,%ecx
80101cf5: 0f 8e 91 00 00 00 jle 80101d8c <namex+0x11c>
memmove(name, s, DIRSIZ);
80101cfb: 83 ec 04 sub $0x4,%esp
80101cfe: 89 55 e4 mov %edx,-0x1c(%ebp)
80101d01: 6a 0e push $0xe
80101d03: 53 push %ebx
80101d04: 57 push %edi
80101d05: e8 36 29 00 00 call 80104640 <memmove>
path++;
80101d0a: 8b 55 e4 mov -0x1c(%ebp),%edx
memmove(name, s, DIRSIZ);
80101d0d: 83 c4 10 add $0x10,%esp
path++;
80101d10: 89 d3 mov %edx,%ebx
while(*path == '/')
80101d12: 80 3a 2f cmpb $0x2f,(%edx)
80101d15: 75 11 jne 80101d28 <namex+0xb8>
80101d17: 89 f6 mov %esi,%esi
80101d19: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
path++;
80101d20: 83 c3 01 add $0x1,%ebx
while(*path == '/')
80101d23: 80 3b 2f cmpb $0x2f,(%ebx)
80101d26: 74 f8 je 80101d20 <namex+0xb0>
while((path = skipelem(path, name)) != 0){
ilock(ip);
80101d28: 83 ec 0c sub $0xc,%esp
80101d2b: 56 push %esi
80101d2c: e8 5f f9 ff ff call 80101690 <ilock>
if(ip->type != T_DIR){
80101d31: 83 c4 10 add $0x10,%esp
80101d34: 66 83 7e 50 01 cmpw $0x1,0x50(%esi)
80101d39: 0f 85 91 00 00 00 jne 80101dd0 <namex+0x160>
iunlockput(ip);
return 0;
}
if(nameiparent && *path == '\0'){
80101d3f: 8b 55 e0 mov -0x20(%ebp),%edx
80101d42: 85 d2 test %edx,%edx
80101d44: 74 09 je 80101d4f <namex+0xdf>
80101d46: 80 3b 00 cmpb $0x0,(%ebx)
80101d49: 0f 84 b7 00 00 00 je 80101e06 <namex+0x196>
// Stop one level early.
iunlock(ip);
return ip;
}
if((next = dirlookup(ip, name, 0)) == 0){
80101d4f: 83 ec 04 sub $0x4,%esp
80101d52: 6a 00 push $0x0
80101d54: 57 push %edi
80101d55: 56 push %esi
80101d56: e8 65 fe ff ff call 80101bc0 <dirlookup>
80101d5b: 83 c4 10 add $0x10,%esp
80101d5e: 85 c0 test %eax,%eax
80101d60: 74 6e je 80101dd0 <namex+0x160>
iunlock(ip);
80101d62: 83 ec 0c sub $0xc,%esp
80101d65: 89 45 e4 mov %eax,-0x1c(%ebp)
80101d68: 56 push %esi
80101d69: e8 02 fa ff ff call 80101770 <iunlock>
iput(ip);
80101d6e: 89 34 24 mov %esi,(%esp)
80101d71: e8 4a fa ff ff call 801017c0 <iput>
80101d76: 8b 45 e4 mov -0x1c(%ebp),%eax
80101d79: 83 c4 10 add $0x10,%esp
80101d7c: 89 c6 mov %eax,%esi
80101d7e: e9 38 ff ff ff jmp 80101cbb <namex+0x4b>
80101d83: 90 nop
80101d84: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
while(*path != '/' && *path != 0)
80101d88: 89 da mov %ebx,%edx
80101d8a: 31 c9 xor %ecx,%ecx
memmove(name, s, len);
80101d8c: 83 ec 04 sub $0x4,%esp
80101d8f: 89 55 dc mov %edx,-0x24(%ebp)
80101d92: 89 4d e4 mov %ecx,-0x1c(%ebp)
80101d95: 51 push %ecx
80101d96: 53 push %ebx
80101d97: 57 push %edi
80101d98: e8 a3 28 00 00 call 80104640 <memmove>
name[len] = 0;
80101d9d: 8b 4d e4 mov -0x1c(%ebp),%ecx
80101da0: 8b 55 dc mov -0x24(%ebp),%edx
80101da3: 83 c4 10 add $0x10,%esp
80101da6: c6 04 0f 00 movb $0x0,(%edi,%ecx,1)
80101daa: 89 d3 mov %edx,%ebx
80101dac: e9 61 ff ff ff jmp 80101d12 <namex+0xa2>
80101db1: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
return 0;
}
iunlockput(ip);
ip = next;
}
if(nameiparent){
80101db8: 8b 45 e0 mov -0x20(%ebp),%eax
80101dbb: 85 c0 test %eax,%eax
80101dbd: 75 5d jne 80101e1c <namex+0x1ac>
iput(ip);
return 0;
}
return ip;
}
80101dbf: 8d 65 f4 lea -0xc(%ebp),%esp
80101dc2: 89 f0 mov %esi,%eax
80101dc4: 5b pop %ebx
80101dc5: 5e pop %esi
80101dc6: 5f pop %edi
80101dc7: 5d pop %ebp
80101dc8: c3 ret
80101dc9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
iunlock(ip);
80101dd0: 83 ec 0c sub $0xc,%esp
80101dd3: 56 push %esi
80101dd4: e8 97 f9 ff ff call 80101770 <iunlock>
iput(ip);
80101dd9: 89 34 24 mov %esi,(%esp)
return 0;
80101ddc: 31 f6 xor %esi,%esi
iput(ip);
80101dde: e8 dd f9 ff ff call 801017c0 <iput>
return 0;
80101de3: 83 c4 10 add $0x10,%esp
}
80101de6: 8d 65 f4 lea -0xc(%ebp),%esp
80101de9: 89 f0 mov %esi,%eax
80101deb: 5b pop %ebx
80101dec: 5e pop %esi
80101ded: 5f pop %edi
80101dee: 5d pop %ebp
80101def: c3 ret
ip = iget(ROOTDEV, ROOTINO);
80101df0: ba 01 00 00 00 mov $0x1,%edx
80101df5: b8 01 00 00 00 mov $0x1,%eax
80101dfa: e8 21 f4 ff ff call 80101220 <iget>
80101dff: 89 c6 mov %eax,%esi
80101e01: e9 b5 fe ff ff jmp 80101cbb <namex+0x4b>
iunlock(ip);
80101e06: 83 ec 0c sub $0xc,%esp
80101e09: 56 push %esi
80101e0a: e8 61 f9 ff ff call 80101770 <iunlock>
return ip;
80101e0f: 83 c4 10 add $0x10,%esp
}
80101e12: 8d 65 f4 lea -0xc(%ebp),%esp
80101e15: 89 f0 mov %esi,%eax
80101e17: 5b pop %ebx
80101e18: 5e pop %esi
80101e19: 5f pop %edi
80101e1a: 5d pop %ebp
80101e1b: c3 ret
iput(ip);
80101e1c: 83 ec 0c sub $0xc,%esp
80101e1f: 56 push %esi
return 0;
80101e20: 31 f6 xor %esi,%esi
iput(ip);
80101e22: e8 99 f9 ff ff call 801017c0 <iput>
return 0;
80101e27: 83 c4 10 add $0x10,%esp
80101e2a: eb 93 jmp 80101dbf <namex+0x14f>
80101e2c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80101e30 <dirlink>:
{
80101e30: 55 push %ebp
80101e31: 89 e5 mov %esp,%ebp
80101e33: 57 push %edi
80101e34: 56 push %esi
80101e35: 53 push %ebx
80101e36: 83 ec 20 sub $0x20,%esp
80101e39: 8b 5d 08 mov 0x8(%ebp),%ebx
if((ip = dirlookup(dp, name, 0)) != 0){
80101e3c: 6a 00 push $0x0
80101e3e: ff 75 0c pushl 0xc(%ebp)
80101e41: 53 push %ebx
80101e42: e8 79 fd ff ff call 80101bc0 <dirlookup>
80101e47: 83 c4 10 add $0x10,%esp
80101e4a: 85 c0 test %eax,%eax
80101e4c: 75 67 jne 80101eb5 <dirlink+0x85>
for(off = 0; off < dp->size; off += sizeof(de)){
80101e4e: 8b 7b 58 mov 0x58(%ebx),%edi
80101e51: 8d 75 d8 lea -0x28(%ebp),%esi
80101e54: 85 ff test %edi,%edi
80101e56: 74 29 je 80101e81 <dirlink+0x51>
80101e58: 31 ff xor %edi,%edi
80101e5a: 8d 75 d8 lea -0x28(%ebp),%esi
80101e5d: eb 09 jmp 80101e68 <dirlink+0x38>
80101e5f: 90 nop
80101e60: 83 c7 10 add $0x10,%edi
80101e63: 3b 7b 58 cmp 0x58(%ebx),%edi
80101e66: 73 19 jae 80101e81 <dirlink+0x51>
if(readi(dp, (char*)&de, off, sizeof(de)) != sizeof(de))
80101e68: 6a 10 push $0x10
80101e6a: 57 push %edi
80101e6b: 56 push %esi
80101e6c: 53 push %ebx
80101e6d: e8 fe fa ff ff call 80101970 <readi>
80101e72: 83 c4 10 add $0x10,%esp
80101e75: 83 f8 10 cmp $0x10,%eax
80101e78: 75 4e jne 80101ec8 <dirlink+0x98>
if(de.inum == 0)
80101e7a: 66 83 7d d8 00 cmpw $0x0,-0x28(%ebp)
80101e7f: 75 df jne 80101e60 <dirlink+0x30>
strncpy(de.name, name, DIRSIZ);
80101e81: 8d 45 da lea -0x26(%ebp),%eax
80101e84: 83 ec 04 sub $0x4,%esp
80101e87: 6a 0e push $0xe
80101e89: ff 75 0c pushl 0xc(%ebp)
80101e8c: 50 push %eax
80101e8d: e8 7e 28 00 00 call 80104710 <strncpy>
de.inum = inum;
80101e92: 8b 45 10 mov 0x10(%ebp),%eax
if(writei(dp, (char*)&de, off, sizeof(de)) != sizeof(de))
80101e95: 6a 10 push $0x10
80101e97: 57 push %edi
80101e98: 56 push %esi
80101e99: 53 push %ebx
de.inum = inum;
80101e9a: 66 89 45 d8 mov %ax,-0x28(%ebp)
if(writei(dp, (char*)&de, off, sizeof(de)) != sizeof(de))
80101e9e: e8 cd fb ff ff call 80101a70 <writei>
80101ea3: 83 c4 20 add $0x20,%esp
80101ea6: 83 f8 10 cmp $0x10,%eax
80101ea9: 75 2a jne 80101ed5 <dirlink+0xa5>
return 0;
80101eab: 31 c0 xor %eax,%eax
}
80101ead: 8d 65 f4 lea -0xc(%ebp),%esp
80101eb0: 5b pop %ebx
80101eb1: 5e pop %esi
80101eb2: 5f pop %edi
80101eb3: 5d pop %ebp
80101eb4: c3 ret
iput(ip);
80101eb5: 83 ec 0c sub $0xc,%esp
80101eb8: 50 push %eax
80101eb9: e8 02 f9 ff ff call 801017c0 <iput>
return -1;
80101ebe: 83 c4 10 add $0x10,%esp
80101ec1: b8 ff ff ff ff mov $0xffffffff,%eax
80101ec6: eb e5 jmp 80101ead <dirlink+0x7d>
panic("dirlink read");
80101ec8: 83 ec 0c sub $0xc,%esp
80101ecb: 68 c8 71 10 80 push $0x801071c8
80101ed0: e8 bb e4 ff ff call 80100390 <panic>
panic("dirlink");
80101ed5: 83 ec 0c sub $0xc,%esp
80101ed8: 68 8a 78 10 80 push $0x8010788a
80101edd: e8 ae e4 ff ff call 80100390 <panic>
80101ee2: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
80101ee9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80101ef0 <namei>:
struct inode*
namei(char *path)
{
80101ef0: 55 push %ebp
char name[DIRSIZ];
return namex(path, 0, name);
80101ef1: 31 d2 xor %edx,%edx
{
80101ef3: 89 e5 mov %esp,%ebp
80101ef5: 83 ec 18 sub $0x18,%esp
return namex(path, 0, name);
80101ef8: 8b 45 08 mov 0x8(%ebp),%eax
80101efb: 8d 4d ea lea -0x16(%ebp),%ecx
80101efe: e8 6d fd ff ff call 80101c70 <namex>
}
80101f03: c9 leave
80101f04: c3 ret
80101f05: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80101f09: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80101f10 <nameiparent>:
struct inode*
nameiparent(char *path, char *name)
{
80101f10: 55 push %ebp
return namex(path, 1, name);
80101f11: ba 01 00 00 00 mov $0x1,%edx
{
80101f16: 89 e5 mov %esp,%ebp
return namex(path, 1, name);
80101f18: 8b 4d 0c mov 0xc(%ebp),%ecx
80101f1b: 8b 45 08 mov 0x8(%ebp),%eax
}
80101f1e: 5d pop %ebp
return namex(path, 1, name);
80101f1f: e9 4c fd ff ff jmp 80101c70 <namex>
80101f24: 66 90 xchg %ax,%ax
80101f26: 66 90 xchg %ax,%ax
80101f28: 66 90 xchg %ax,%ax
80101f2a: 66 90 xchg %ax,%ax
80101f2c: 66 90 xchg %ax,%ax
80101f2e: 66 90 xchg %ax,%ax
80101f30 <idestart>:
}
// Start the request for b. Caller must hold idelock.
static void
idestart(struct buf *b)
{
80101f30: 55 push %ebp
80101f31: 89 e5 mov %esp,%ebp
80101f33: 57 push %edi
80101f34: 56 push %esi
80101f35: 53 push %ebx
80101f36: 83 ec 0c sub $0xc,%esp
if(b == 0)
80101f39: 85 c0 test %eax,%eax
80101f3b: 0f 84 b4 00 00 00 je 80101ff5 <idestart+0xc5>
panic("idestart");
if(b->blockno >= FSSIZE)
80101f41: 8b 58 08 mov 0x8(%eax),%ebx
80101f44: 89 c6 mov %eax,%esi
80101f46: 81 fb e7 03 00 00 cmp $0x3e7,%ebx
80101f4c: 0f 87 96 00 00 00 ja 80101fe8 <idestart+0xb8>
asm volatile("in %1,%0" : "=a" (data) : "d" (port));
80101f52: b9 f7 01 00 00 mov $0x1f7,%ecx
80101f57: 89 f6 mov %esi,%esi
80101f59: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80101f60: 89 ca mov %ecx,%edx
80101f62: ec in (%dx),%al
while(((r = inb(0x1f7)) & (IDE_BSY|IDE_DRDY)) != IDE_DRDY)
80101f63: 83 e0 c0 and $0xffffffc0,%eax
80101f66: 3c 40 cmp $0x40,%al
80101f68: 75 f6 jne 80101f60 <idestart+0x30>
asm volatile("out %0,%1" : : "a" (data), "d" (port));
80101f6a: 31 ff xor %edi,%edi
80101f6c: ba f6 03 00 00 mov $0x3f6,%edx
80101f71: 89 f8 mov %edi,%eax
80101f73: ee out %al,(%dx)
80101f74: b8 01 00 00 00 mov $0x1,%eax
80101f79: ba f2 01 00 00 mov $0x1f2,%edx
80101f7e: ee out %al,(%dx)
80101f7f: ba f3 01 00 00 mov $0x1f3,%edx
80101f84: 89 d8 mov %ebx,%eax
80101f86: ee out %al,(%dx)
idewait(0);
outb(0x3f6, 0); // generate interrupt
outb(0x1f2, sector_per_block); // number of sectors
outb(0x1f3, sector & 0xff);
outb(0x1f4, (sector >> 8) & 0xff);
80101f87: 89 d8 mov %ebx,%eax
80101f89: ba f4 01 00 00 mov $0x1f4,%edx
80101f8e: c1 f8 08 sar $0x8,%eax
80101f91: ee out %al,(%dx)
80101f92: ba f5 01 00 00 mov $0x1f5,%edx
80101f97: 89 f8 mov %edi,%eax
80101f99: ee out %al,(%dx)
outb(0x1f5, (sector >> 16) & 0xff);
outb(0x1f6, 0xe0 | ((b->dev&1)<<4) | ((sector>>24)&0x0f));
80101f9a: 0f b6 46 04 movzbl 0x4(%esi),%eax
80101f9e: ba f6 01 00 00 mov $0x1f6,%edx
80101fa3: c1 e0 04 shl $0x4,%eax
80101fa6: 83 e0 10 and $0x10,%eax
80101fa9: 83 c8 e0 or $0xffffffe0,%eax
80101fac: ee out %al,(%dx)
if(b->flags & B_DIRTY){
80101fad: f6 06 04 testb $0x4,(%esi)
80101fb0: 75 16 jne 80101fc8 <idestart+0x98>
80101fb2: b8 20 00 00 00 mov $0x20,%eax
80101fb7: 89 ca mov %ecx,%edx
80101fb9: ee out %al,(%dx)
outb(0x1f7, write_cmd);
outsl(0x1f0, b->data, BSIZE/4);
} else {
outb(0x1f7, read_cmd);
}
}
80101fba: 8d 65 f4 lea -0xc(%ebp),%esp
80101fbd: 5b pop %ebx
80101fbe: 5e pop %esi
80101fbf: 5f pop %edi
80101fc0: 5d pop %ebp
80101fc1: c3 ret
80101fc2: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
80101fc8: b8 30 00 00 00 mov $0x30,%eax
80101fcd: 89 ca mov %ecx,%edx
80101fcf: ee out %al,(%dx)
asm volatile("cld; rep outsl" :
80101fd0: b9 80 00 00 00 mov $0x80,%ecx
outsl(0x1f0, b->data, BSIZE/4);
80101fd5: 83 c6 5c add $0x5c,%esi
80101fd8: ba f0 01 00 00 mov $0x1f0,%edx
80101fdd: fc cld
80101fde: f3 6f rep outsl %ds:(%esi),(%dx)
}
80101fe0: 8d 65 f4 lea -0xc(%ebp),%esp
80101fe3: 5b pop %ebx
80101fe4: 5e pop %esi
80101fe5: 5f pop %edi
80101fe6: 5d pop %ebp
80101fe7: c3 ret
panic("incorrect blockno");
80101fe8: 83 ec 0c sub $0xc,%esp
80101feb: 68 34 72 10 80 push $0x80107234
80101ff0: e8 9b e3 ff ff call 80100390 <panic>
panic("idestart");
80101ff5: 83 ec 0c sub $0xc,%esp
80101ff8: 68 2b 72 10 80 push $0x8010722b
80101ffd: e8 8e e3 ff ff call 80100390 <panic>
80102002: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
80102009: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80102010 <ideinit>:
{
80102010: 55 push %ebp
80102011: 89 e5 mov %esp,%ebp
80102013: 83 ec 10 sub $0x10,%esp
initlock(&idelock, "ide");
80102016: 68 46 72 10 80 push $0x80107246
8010201b: 68 80 a5 10 80 push $0x8010a580
80102020: e8 fb 22 00 00 call 80104320 <initlock>
ioapicenable(IRQ_IDE, ncpu - 1);
80102025: 58 pop %eax
80102026: a1 00 29 11 80 mov 0x80112900,%eax
8010202b: 5a pop %edx
8010202c: 83 e8 01 sub $0x1,%eax
8010202f: 50 push %eax
80102030: 6a 0e push $0xe
80102032: e8 a9 02 00 00 call 801022e0 <ioapicenable>
80102037: 83 c4 10 add $0x10,%esp
asm volatile("in %1,%0" : "=a" (data) : "d" (port));
8010203a: ba f7 01 00 00 mov $0x1f7,%edx
8010203f: 90 nop
80102040: ec in (%dx),%al
while(((r = inb(0x1f7)) & (IDE_BSY|IDE_DRDY)) != IDE_DRDY)
80102041: 83 e0 c0 and $0xffffffc0,%eax
80102044: 3c 40 cmp $0x40,%al
80102046: 75 f8 jne 80102040 <ideinit+0x30>
asm volatile("out %0,%1" : : "a" (data), "d" (port));
80102048: b8 f0 ff ff ff mov $0xfffffff0,%eax
8010204d: ba f6 01 00 00 mov $0x1f6,%edx
80102052: ee out %al,(%dx)
80102053: b9 e8 03 00 00 mov $0x3e8,%ecx
asm volatile("in %1,%0" : "=a" (data) : "d" (port));
80102058: ba f7 01 00 00 mov $0x1f7,%edx
8010205d: eb 06 jmp 80102065 <ideinit+0x55>
8010205f: 90 nop
for(i=0; i<1000; i++){
80102060: 83 e9 01 sub $0x1,%ecx
80102063: 74 0f je 80102074 <ideinit+0x64>
80102065: ec in (%dx),%al
if(inb(0x1f7) != 0){
80102066: 84 c0 test %al,%al
80102068: 74 f6 je 80102060 <ideinit+0x50>
havedisk1 = 1;
8010206a: c7 05 60 a5 10 80 01 movl $0x1,0x8010a560
80102071: 00 00 00
asm volatile("out %0,%1" : : "a" (data), "d" (port));
80102074: b8 e0 ff ff ff mov $0xffffffe0,%eax
80102079: ba f6 01 00 00 mov $0x1f6,%edx
8010207e: ee out %al,(%dx)
}
8010207f: c9 leave
80102080: c3 ret
80102081: eb 0d jmp 80102090 <ideintr>
80102083: 90 nop
80102084: 90 nop
80102085: 90 nop
80102086: 90 nop
80102087: 90 nop
80102088: 90 nop
80102089: 90 nop
8010208a: 90 nop
8010208b: 90 nop
8010208c: 90 nop
8010208d: 90 nop
8010208e: 90 nop
8010208f: 90 nop
80102090 <ideintr>:
// Interrupt handler.
void
ideintr(void)
{
80102090: 55 push %ebp
80102091: 89 e5 mov %esp,%ebp
80102093: 57 push %edi
80102094: 56 push %esi
80102095: 53 push %ebx
80102096: 83 ec 18 sub $0x18,%esp
struct buf *b;
// First queued buffer is the active request.
acquire(&idelock);
80102099: 68 80 a5 10 80 push $0x8010a580
8010209e: e8 6d 23 00 00 call 80104410 <acquire>
if((b = idequeue) == 0){
801020a3: 8b 1d 64 a5 10 80 mov 0x8010a564,%ebx
801020a9: 83 c4 10 add $0x10,%esp
801020ac: 85 db test %ebx,%ebx
801020ae: 74 67 je 80102117 <ideintr+0x87>
release(&idelock);
return;
}
idequeue = b->qnext;
801020b0: 8b 43 58 mov 0x58(%ebx),%eax
801020b3: a3 64 a5 10 80 mov %eax,0x8010a564
// Read data if needed.
if(!(b->flags & B_DIRTY) && idewait(1) >= 0)
801020b8: 8b 3b mov (%ebx),%edi
801020ba: f7 c7 04 00 00 00 test $0x4,%edi
801020c0: 75 31 jne 801020f3 <ideintr+0x63>
asm volatile("in %1,%0" : "=a" (data) : "d" (port));
801020c2: ba f7 01 00 00 mov $0x1f7,%edx
801020c7: 89 f6 mov %esi,%esi
801020c9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
801020d0: ec in (%dx),%al
while(((r = inb(0x1f7)) & (IDE_BSY|IDE_DRDY)) != IDE_DRDY)
801020d1: 89 c6 mov %eax,%esi
801020d3: 83 e6 c0 and $0xffffffc0,%esi
801020d6: 89 f1 mov %esi,%ecx
801020d8: 80 f9 40 cmp $0x40,%cl
801020db: 75 f3 jne 801020d0 <ideintr+0x40>
if(checkerr && (r & (IDE_DF|IDE_ERR)) != 0)
801020dd: a8 21 test $0x21,%al
801020df: 75 12 jne 801020f3 <ideintr+0x63>
insl(0x1f0, b->data, BSIZE/4);
801020e1: 8d 7b 5c lea 0x5c(%ebx),%edi
asm volatile("cld; rep insl" :
801020e4: b9 80 00 00 00 mov $0x80,%ecx
801020e9: ba f0 01 00 00 mov $0x1f0,%edx
801020ee: fc cld
801020ef: f3 6d rep insl (%dx),%es:(%edi)
801020f1: 8b 3b mov (%ebx),%edi
// Wake process waiting for this buf.
b->flags |= B_VALID;
b->flags &= ~B_DIRTY;
801020f3: 83 e7 fb and $0xfffffffb,%edi
wakeup(b);
801020f6: 83 ec 0c sub $0xc,%esp
b->flags &= ~B_DIRTY;
801020f9: 89 f9 mov %edi,%ecx
801020fb: 83 c9 02 or $0x2,%ecx
801020fe: 89 0b mov %ecx,(%ebx)
wakeup(b);
80102100: 53 push %ebx
80102101: e8 4a 1e 00 00 call 80103f50 <wakeup>
// Start disk on next buf in queue.
if(idequeue != 0)
80102106: a1 64 a5 10 80 mov 0x8010a564,%eax
8010210b: 83 c4 10 add $0x10,%esp
8010210e: 85 c0 test %eax,%eax
80102110: 74 05 je 80102117 <ideintr+0x87>
idestart(idequeue);
80102112: e8 19 fe ff ff call 80101f30 <idestart>
release(&idelock);
80102117: 83 ec 0c sub $0xc,%esp
8010211a: 68 80 a5 10 80 push $0x8010a580
8010211f: e8 0c 24 00 00 call 80104530 <release>
release(&idelock);
}
80102124: 8d 65 f4 lea -0xc(%ebp),%esp
80102127: 5b pop %ebx
80102128: 5e pop %esi
80102129: 5f pop %edi
8010212a: 5d pop %ebp
8010212b: c3 ret
8010212c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80102130 <iderw>:
// Sync buf with disk.
// If B_DIRTY is set, write buf to disk, clear B_DIRTY, set B_VALID.
// Else if B_VALID is not set, read buf from disk, set B_VALID.
void
iderw(struct buf *b)
{
80102130: 55 push %ebp
80102131: 89 e5 mov %esp,%ebp
80102133: 53 push %ebx
80102134: 83 ec 10 sub $0x10,%esp
80102137: 8b 5d 08 mov 0x8(%ebp),%ebx
struct buf **pp;
if(!holdingsleep(&b->lock))
8010213a: 8d 43 0c lea 0xc(%ebx),%eax
8010213d: 50 push %eax
8010213e: e8 ad 21 00 00 call 801042f0 <holdingsleep>
80102143: 83 c4 10 add $0x10,%esp
80102146: 85 c0 test %eax,%eax
80102148: 0f 84 c6 00 00 00 je 80102214 <iderw+0xe4>
panic("iderw: buf not locked");
if((b->flags & (B_VALID|B_DIRTY)) == B_VALID)
8010214e: 8b 03 mov (%ebx),%eax
80102150: 83 e0 06 and $0x6,%eax
80102153: 83 f8 02 cmp $0x2,%eax
80102156: 0f 84 ab 00 00 00 je 80102207 <iderw+0xd7>
panic("iderw: nothing to do");
if(b->dev != 0 && !havedisk1)
8010215c: 8b 53 04 mov 0x4(%ebx),%edx
8010215f: 85 d2 test %edx,%edx
80102161: 74 0d je 80102170 <iderw+0x40>
80102163: a1 60 a5 10 80 mov 0x8010a560,%eax
80102168: 85 c0 test %eax,%eax
8010216a: 0f 84 b1 00 00 00 je 80102221 <iderw+0xf1>
panic("iderw: ide disk 1 not present");
acquire(&idelock); //DOC:acquire-lock
80102170: 83 ec 0c sub $0xc,%esp
80102173: 68 80 a5 10 80 push $0x8010a580
80102178: e8 93 22 00 00 call 80104410 <acquire>
// Append b to idequeue.
b->qnext = 0;
for(pp=&idequeue; *pp; pp=&(*pp)->qnext) //DOC:insert-queue
8010217d: 8b 15 64 a5 10 80 mov 0x8010a564,%edx
80102183: 83 c4 10 add $0x10,%esp
b->qnext = 0;
80102186: c7 43 58 00 00 00 00 movl $0x0,0x58(%ebx)
for(pp=&idequeue; *pp; pp=&(*pp)->qnext) //DOC:insert-queue
8010218d: 85 d2 test %edx,%edx
8010218f: 75 09 jne 8010219a <iderw+0x6a>
80102191: eb 6d jmp 80102200 <iderw+0xd0>
80102193: 90 nop
80102194: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80102198: 89 c2 mov %eax,%edx
8010219a: 8b 42 58 mov 0x58(%edx),%eax
8010219d: 85 c0 test %eax,%eax
8010219f: 75 f7 jne 80102198 <iderw+0x68>
801021a1: 83 c2 58 add $0x58,%edx
;
*pp = b;
801021a4: 89 1a mov %ebx,(%edx)
// Start disk if necessary.
if(idequeue == b)
801021a6: 39 1d 64 a5 10 80 cmp %ebx,0x8010a564
801021ac: 74 42 je 801021f0 <iderw+0xc0>
idestart(b);
// Wait for request to finish.
while((b->flags & (B_VALID|B_DIRTY)) != B_VALID){
801021ae: 8b 03 mov (%ebx),%eax
801021b0: 83 e0 06 and $0x6,%eax
801021b3: 83 f8 02 cmp $0x2,%eax
801021b6: 74 23 je 801021db <iderw+0xab>
801021b8: 90 nop
801021b9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
sleep(b, &idelock);
801021c0: 83 ec 08 sub $0x8,%esp
801021c3: 68 80 a5 10 80 push $0x8010a580
801021c8: 53 push %ebx
801021c9: e8 d2 1b 00 00 call 80103da0 <sleep>
while((b->flags & (B_VALID|B_DIRTY)) != B_VALID){
801021ce: 8b 03 mov (%ebx),%eax
801021d0: 83 c4 10 add $0x10,%esp
801021d3: 83 e0 06 and $0x6,%eax
801021d6: 83 f8 02 cmp $0x2,%eax
801021d9: 75 e5 jne 801021c0 <iderw+0x90>
}
release(&idelock);
801021db: c7 45 08 80 a5 10 80 movl $0x8010a580,0x8(%ebp)
}
801021e2: 8b 5d fc mov -0x4(%ebp),%ebx
801021e5: c9 leave
release(&idelock);
801021e6: e9 45 23 00 00 jmp 80104530 <release>
801021eb: 90 nop
801021ec: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
idestart(b);
801021f0: 89 d8 mov %ebx,%eax
801021f2: e8 39 fd ff ff call 80101f30 <idestart>
801021f7: eb b5 jmp 801021ae <iderw+0x7e>
801021f9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
for(pp=&idequeue; *pp; pp=&(*pp)->qnext) //DOC:insert-queue
80102200: ba 64 a5 10 80 mov $0x8010a564,%edx
80102205: eb 9d jmp 801021a4 <iderw+0x74>
panic("iderw: nothing to do");
80102207: 83 ec 0c sub $0xc,%esp
8010220a: 68 60 72 10 80 push $0x80107260
8010220f: e8 7c e1 ff ff call 80100390 <panic>
panic("iderw: buf not locked");
80102214: 83 ec 0c sub $0xc,%esp
80102217: 68 4a 72 10 80 push $0x8010724a
8010221c: e8 6f e1 ff ff call 80100390 <panic>
panic("iderw: ide disk 1 not present");
80102221: 83 ec 0c sub $0xc,%esp
80102224: 68 75 72 10 80 push $0x80107275
80102229: e8 62 e1 ff ff call 80100390 <panic>
8010222e: 66 90 xchg %ax,%ax
80102230 <ioapicinit>:
ioapic->data = data;
}
void
ioapicinit(void)
{
80102230: 55 push %ebp
int i, id, maxintr;
ioapic = (volatile struct ioapic*)IOAPIC;
80102231: c7 05 54 26 11 80 00 movl $0xfec00000,0x80112654
80102238: 00 c0 fe
{
8010223b: 89 e5 mov %esp,%ebp
8010223d: 56 push %esi
8010223e: 53 push %ebx
ioapic->reg = reg;
8010223f: c7 05 00 00 c0 fe 01 movl $0x1,0xfec00000
80102246: 00 00 00
return ioapic->data;
80102249: a1 54 26 11 80 mov 0x80112654,%eax
8010224e: 8b 58 10 mov 0x10(%eax),%ebx
ioapic->reg = reg;
80102251: c7 00 00 00 00 00 movl $0x0,(%eax)
return ioapic->data;
80102257: 8b 0d 54 26 11 80 mov 0x80112654,%ecx
maxintr = (ioapicread(REG_VER) >> 16) & 0xFF;
id = ioapicread(REG_ID) >> 24;
if(id != ioapicid)
8010225d: 0f b6 15 80 27 11 80 movzbl 0x80112780,%edx
maxintr = (ioapicread(REG_VER) >> 16) & 0xFF;
80102264: c1 eb 10 shr $0x10,%ebx
return ioapic->data;
80102267: 8b 41 10 mov 0x10(%ecx),%eax
maxintr = (ioapicread(REG_VER) >> 16) & 0xFF;
8010226a: 0f b6 db movzbl %bl,%ebx
id = ioapicread(REG_ID) >> 24;
8010226d: c1 e8 18 shr $0x18,%eax
if(id != ioapicid)
80102270: 39 c2 cmp %eax,%edx
80102272: 74 16 je 8010228a <ioapicinit+0x5a>
cprintf("ioapicinit: id isn't equal to ioapicid; not a MP\n");
80102274: 83 ec 0c sub $0xc,%esp
80102277: 68 94 72 10 80 push $0x80107294
8010227c: e8 df e3 ff ff call 80100660 <cprintf>
80102281: 8b 0d 54 26 11 80 mov 0x80112654,%ecx
80102287: 83 c4 10 add $0x10,%esp
8010228a: 83 c3 21 add $0x21,%ebx
{
8010228d: ba 10 00 00 00 mov $0x10,%edx
80102292: b8 20 00 00 00 mov $0x20,%eax
80102297: 89 f6 mov %esi,%esi
80102299: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
ioapic->reg = reg;
801022a0: 89 11 mov %edx,(%ecx)
ioapic->data = data;
801022a2: 8b 0d 54 26 11 80 mov 0x80112654,%ecx
// Mark all interrupts edge-triggered, active high, disabled,
// and not routed to any CPUs.
for(i = 0; i <= maxintr; i++){
ioapicwrite(REG_TABLE+2*i, INT_DISABLED | (T_IRQ0 + i));
801022a8: 89 c6 mov %eax,%esi
801022aa: 81 ce 00 00 01 00 or $0x10000,%esi
801022b0: 83 c0 01 add $0x1,%eax
ioapic->data = data;
801022b3: 89 71 10 mov %esi,0x10(%ecx)
801022b6: 8d 72 01 lea 0x1(%edx),%esi
801022b9: 83 c2 02 add $0x2,%edx
for(i = 0; i <= maxintr; i++){
801022bc: 39 d8 cmp %ebx,%eax
ioapic->reg = reg;
801022be: 89 31 mov %esi,(%ecx)
ioapic->data = data;
801022c0: 8b 0d 54 26 11 80 mov 0x80112654,%ecx
801022c6: c7 41 10 00 00 00 00 movl $0x0,0x10(%ecx)
for(i = 0; i <= maxintr; i++){
801022cd: 75 d1 jne 801022a0 <ioapicinit+0x70>
ioapicwrite(REG_TABLE+2*i+1, 0);
}
}
801022cf: 8d 65 f8 lea -0x8(%ebp),%esp
801022d2: 5b pop %ebx
801022d3: 5e pop %esi
801022d4: 5d pop %ebp
801022d5: c3 ret
801022d6: 8d 76 00 lea 0x0(%esi),%esi
801022d9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
801022e0 <ioapicenable>:
void
ioapicenable(int irq, int cpunum)
{
801022e0: 55 push %ebp
ioapic->reg = reg;
801022e1: 8b 0d 54 26 11 80 mov 0x80112654,%ecx
{
801022e7: 89 e5 mov %esp,%ebp
801022e9: 8b 45 08 mov 0x8(%ebp),%eax
// Mark interrupt edge-triggered, active high,
// enabled, and routed to the given cpunum,
// which happens to be that cpu's APIC ID.
ioapicwrite(REG_TABLE+2*irq, T_IRQ0 + irq);
801022ec: 8d 50 20 lea 0x20(%eax),%edx
801022ef: 8d 44 00 10 lea 0x10(%eax,%eax,1),%eax
ioapic->reg = reg;
801022f3: 89 01 mov %eax,(%ecx)
ioapic->data = data;
801022f5: 8b 0d 54 26 11 80 mov 0x80112654,%ecx
ioapicwrite(REG_TABLE+2*irq+1, cpunum << 24);
801022fb: 83 c0 01 add $0x1,%eax
ioapic->data = data;
801022fe: 89 51 10 mov %edx,0x10(%ecx)
ioapicwrite(REG_TABLE+2*irq+1, cpunum << 24);
80102301: 8b 55 0c mov 0xc(%ebp),%edx
ioapic->reg = reg;
80102304: 89 01 mov %eax,(%ecx)
ioapic->data = data;
80102306: a1 54 26 11 80 mov 0x80112654,%eax
ioapicwrite(REG_TABLE+2*irq+1, cpunum << 24);
8010230b: c1 e2 18 shl $0x18,%edx
ioapic->data = data;
8010230e: 89 50 10 mov %edx,0x10(%eax)
}
80102311: 5d pop %ebp
80102312: c3 ret
80102313: 66 90 xchg %ax,%ax
80102315: 66 90 xchg %ax,%ax
80102317: 66 90 xchg %ax,%ax
80102319: 66 90 xchg %ax,%ax
8010231b: 66 90 xchg %ax,%ax
8010231d: 66 90 xchg %ax,%ax
8010231f: 90 nop
80102320 <kfree>:
// which normally should have been returned by a
// call to kalloc(). (The exception is when
// initializing the allocator; see kinit above.)
void
kfree(char *v)
{
80102320: 55 push %ebp
80102321: 89 e5 mov %esp,%ebp
80102323: 53 push %ebx
80102324: 83 ec 04 sub $0x4,%esp
80102327: 8b 5d 08 mov 0x8(%ebp),%ebx
struct run *r;
if((uint)v % PGSIZE || v < end || V2P(v) >= PHYSTOP)
8010232a: f7 c3 ff 0f 00 00 test $0xfff,%ebx
80102330: 75 70 jne 801023a2 <kfree+0x82>
80102332: 81 fb a8 51 11 80 cmp $0x801151a8,%ebx
80102338: 72 68 jb 801023a2 <kfree+0x82>
8010233a: 8d 83 00 00 00 80 lea -0x80000000(%ebx),%eax
80102340: 3d ff ff ff 0d cmp $0xdffffff,%eax
80102345: 77 5b ja 801023a2 <kfree+0x82>
panic("kfree");
// Fill with junk to catch dangling refs.
memset(v, 1, PGSIZE);
80102347: 83 ec 04 sub $0x4,%esp
8010234a: 68 00 10 00 00 push $0x1000
8010234f: 6a 01 push $0x1
80102351: 53 push %ebx
80102352: e8 39 22 00 00 call 80104590 <memset>
if(kmem.use_lock)
80102357: 8b 15 94 26 11 80 mov 0x80112694,%edx
8010235d: 83 c4 10 add $0x10,%esp
80102360: 85 d2 test %edx,%edx
80102362: 75 2c jne 80102390 <kfree+0x70>
acquire(&kmem.lock);
r = (struct run*)v;
r->next = kmem.freelist;
80102364: a1 98 26 11 80 mov 0x80112698,%eax
80102369: 89 03 mov %eax,(%ebx)
kmem.freelist = r;
if(kmem.use_lock)
8010236b: a1 94 26 11 80 mov 0x80112694,%eax
kmem.freelist = r;
80102370: 89 1d 98 26 11 80 mov %ebx,0x80112698
if(kmem.use_lock)
80102376: 85 c0 test %eax,%eax
80102378: 75 06 jne 80102380 <kfree+0x60>
release(&kmem.lock);
}
8010237a: 8b 5d fc mov -0x4(%ebp),%ebx
8010237d: c9 leave
8010237e: c3 ret
8010237f: 90 nop
release(&kmem.lock);
80102380: c7 45 08 60 26 11 80 movl $0x80112660,0x8(%ebp)
}
80102387: 8b 5d fc mov -0x4(%ebp),%ebx
8010238a: c9 leave
release(&kmem.lock);
8010238b: e9 a0 21 00 00 jmp 80104530 <release>
acquire(&kmem.lock);
80102390: 83 ec 0c sub $0xc,%esp
80102393: 68 60 26 11 80 push $0x80112660
80102398: e8 73 20 00 00 call 80104410 <acquire>
8010239d: 83 c4 10 add $0x10,%esp
801023a0: eb c2 jmp 80102364 <kfree+0x44>
panic("kfree");
801023a2: 83 ec 0c sub $0xc,%esp
801023a5: 68 c6 72 10 80 push $0x801072c6
801023aa: e8 e1 df ff ff call 80100390 <panic>
801023af: 90 nop
801023b0 <freerange>:
{
801023b0: 55 push %ebp
801023b1: 89 e5 mov %esp,%ebp
801023b3: 56 push %esi
801023b4: 53 push %ebx
p = (char*)PGROUNDUP((uint)vstart);
801023b5: 8b 45 08 mov 0x8(%ebp),%eax
{
801023b8: 8b 75 0c mov 0xc(%ebp),%esi
p = (char*)PGROUNDUP((uint)vstart);
801023bb: 8d 98 ff 0f 00 00 lea 0xfff(%eax),%ebx
801023c1: 81 e3 00 f0 ff ff and $0xfffff000,%ebx
for(; p + PGSIZE <= (char*)vend; p += PGSIZE)
801023c7: 81 c3 00 10 00 00 add $0x1000,%ebx
801023cd: 39 de cmp %ebx,%esi
801023cf: 72 23 jb 801023f4 <freerange+0x44>
801023d1: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
kfree(p);
801023d8: 8d 83 00 f0 ff ff lea -0x1000(%ebx),%eax
801023de: 83 ec 0c sub $0xc,%esp
for(; p + PGSIZE <= (char*)vend; p += PGSIZE)
801023e1: 81 c3 00 10 00 00 add $0x1000,%ebx
kfree(p);
801023e7: 50 push %eax
801023e8: e8 33 ff ff ff call 80102320 <kfree>
for(; p + PGSIZE <= (char*)vend; p += PGSIZE)
801023ed: 83 c4 10 add $0x10,%esp
801023f0: 39 f3 cmp %esi,%ebx
801023f2: 76 e4 jbe 801023d8 <freerange+0x28>
}
801023f4: 8d 65 f8 lea -0x8(%ebp),%esp
801023f7: 5b pop %ebx
801023f8: 5e pop %esi
801023f9: 5d pop %ebp
801023fa: c3 ret
801023fb: 90 nop
801023fc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80102400 <kinit1>:
{
80102400: 55 push %ebp
80102401: 89 e5 mov %esp,%ebp
80102403: 56 push %esi
80102404: 53 push %ebx
80102405: 8b 75 0c mov 0xc(%ebp),%esi
initlock(&kmem.lock, "kmem");
80102408: 83 ec 08 sub $0x8,%esp
8010240b: 68 cc 72 10 80 push $0x801072cc
80102410: 68 60 26 11 80 push $0x80112660
80102415: e8 06 1f 00 00 call 80104320 <initlock>
p = (char*)PGROUNDUP((uint)vstart);
8010241a: 8b 45 08 mov 0x8(%ebp),%eax
for(; p + PGSIZE <= (char*)vend; p += PGSIZE)
8010241d: 83 c4 10 add $0x10,%esp
kmem.use_lock = 0;
80102420: c7 05 94 26 11 80 00 movl $0x0,0x80112694
80102427: 00 00 00
p = (char*)PGROUNDUP((uint)vstart);
8010242a: 8d 98 ff 0f 00 00 lea 0xfff(%eax),%ebx
80102430: 81 e3 00 f0 ff ff and $0xfffff000,%ebx
for(; p + PGSIZE <= (char*)vend; p += PGSIZE)
80102436: 81 c3 00 10 00 00 add $0x1000,%ebx
8010243c: 39 de cmp %ebx,%esi
8010243e: 72 1c jb 8010245c <kinit1+0x5c>
kfree(p);
80102440: 8d 83 00 f0 ff ff lea -0x1000(%ebx),%eax
80102446: 83 ec 0c sub $0xc,%esp
for(; p + PGSIZE <= (char*)vend; p += PGSIZE)
80102449: 81 c3 00 10 00 00 add $0x1000,%ebx
kfree(p);
8010244f: 50 push %eax
80102450: e8 cb fe ff ff call 80102320 <kfree>
for(; p + PGSIZE <= (char*)vend; p += PGSIZE)
80102455: 83 c4 10 add $0x10,%esp
80102458: 39 de cmp %ebx,%esi
8010245a: 73 e4 jae 80102440 <kinit1+0x40>
}
8010245c: 8d 65 f8 lea -0x8(%ebp),%esp
8010245f: 5b pop %ebx
80102460: 5e pop %esi
80102461: 5d pop %ebp
80102462: c3 ret
80102463: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
80102469: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80102470 <kinit2>:
{
80102470: 55 push %ebp
80102471: 89 e5 mov %esp,%ebp
80102473: 56 push %esi
80102474: 53 push %ebx
p = (char*)PGROUNDUP((uint)vstart);
80102475: 8b 45 08 mov 0x8(%ebp),%eax
{
80102478: 8b 75 0c mov 0xc(%ebp),%esi
p = (char*)PGROUNDUP((uint)vstart);
8010247b: 8d 98 ff 0f 00 00 lea 0xfff(%eax),%ebx
80102481: 81 e3 00 f0 ff ff and $0xfffff000,%ebx
for(; p + PGSIZE <= (char*)vend; p += PGSIZE)
80102487: 81 c3 00 10 00 00 add $0x1000,%ebx
8010248d: 39 de cmp %ebx,%esi
8010248f: 72 23 jb 801024b4 <kinit2+0x44>
80102491: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
kfree(p);
80102498: 8d 83 00 f0 ff ff lea -0x1000(%ebx),%eax
8010249e: 83 ec 0c sub $0xc,%esp
for(; p + PGSIZE <= (char*)vend; p += PGSIZE)
801024a1: 81 c3 00 10 00 00 add $0x1000,%ebx
kfree(p);
801024a7: 50 push %eax
801024a8: e8 73 fe ff ff call 80102320 <kfree>
for(; p + PGSIZE <= (char*)vend; p += PGSIZE)
801024ad: 83 c4 10 add $0x10,%esp
801024b0: 39 de cmp %ebx,%esi
801024b2: 73 e4 jae 80102498 <kinit2+0x28>
kmem.use_lock = 1;
801024b4: c7 05 94 26 11 80 01 movl $0x1,0x80112694
801024bb: 00 00 00
}
801024be: 8d 65 f8 lea -0x8(%ebp),%esp
801024c1: 5b pop %ebx
801024c2: 5e pop %esi
801024c3: 5d pop %ebp
801024c4: c3 ret
801024c5: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
801024c9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
801024d0 <kalloc>:
char*
kalloc(void)
{
struct run *r;
if(kmem.use_lock)
801024d0: a1 94 26 11 80 mov 0x80112694,%eax
801024d5: 85 c0 test %eax,%eax
801024d7: 75 1f jne 801024f8 <kalloc+0x28>
acquire(&kmem.lock);
r = kmem.freelist;
801024d9: a1 98 26 11 80 mov 0x80112698,%eax
if(r)
801024de: 85 c0 test %eax,%eax
801024e0: 74 0e je 801024f0 <kalloc+0x20>
kmem.freelist = r->next;
801024e2: 8b 10 mov (%eax),%edx
801024e4: 89 15 98 26 11 80 mov %edx,0x80112698
801024ea: c3 ret
801024eb: 90 nop
801024ec: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
if(kmem.use_lock)
release(&kmem.lock);
return (char*)r;
}
801024f0: f3 c3 repz ret
801024f2: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
{
801024f8: 55 push %ebp
801024f9: 89 e5 mov %esp,%ebp
801024fb: 83 ec 24 sub $0x24,%esp
acquire(&kmem.lock);
801024fe: 68 60 26 11 80 push $0x80112660
80102503: e8 08 1f 00 00 call 80104410 <acquire>
r = kmem.freelist;
80102508: a1 98 26 11 80 mov 0x80112698,%eax
if(r)
8010250d: 83 c4 10 add $0x10,%esp
80102510: 8b 15 94 26 11 80 mov 0x80112694,%edx
80102516: 85 c0 test %eax,%eax
80102518: 74 08 je 80102522 <kalloc+0x52>
kmem.freelist = r->next;
8010251a: 8b 08 mov (%eax),%ecx
8010251c: 89 0d 98 26 11 80 mov %ecx,0x80112698
if(kmem.use_lock)
80102522: 85 d2 test %edx,%edx
80102524: 74 16 je 8010253c <kalloc+0x6c>
release(&kmem.lock);
80102526: 83 ec 0c sub $0xc,%esp
80102529: 89 45 f4 mov %eax,-0xc(%ebp)
8010252c: 68 60 26 11 80 push $0x80112660
80102531: e8 fa 1f 00 00 call 80104530 <release>
return (char*)r;
80102536: 8b 45 f4 mov -0xc(%ebp),%eax
release(&kmem.lock);
80102539: 83 c4 10 add $0x10,%esp
}
8010253c: c9 leave
8010253d: c3 ret
8010253e: 66 90 xchg %ax,%ax
80102540 <kbdgetc>:
asm volatile("in %1,%0" : "=a" (data) : "d" (port));
80102540: ba 64 00 00 00 mov $0x64,%edx
80102545: ec in (%dx),%al
normalmap, shiftmap, ctlmap, ctlmap
};
uint st, data, c;
st = inb(KBSTATP);
if((st & KBS_DIB) == 0)
80102546: a8 01 test $0x1,%al
80102548: 0f 84 c2 00 00 00 je 80102610 <kbdgetc+0xd0>
8010254e: ba 60 00 00 00 mov $0x60,%edx
80102553: ec in (%dx),%al
return -1;
data = inb(KBDATAP);
80102554: 0f b6 d0 movzbl %al,%edx
80102557: 8b 0d b4 a5 10 80 mov 0x8010a5b4,%ecx
if(data == 0xE0){
8010255d: 81 fa e0 00 00 00 cmp $0xe0,%edx
80102563: 0f 84 7f 00 00 00 je 801025e8 <kbdgetc+0xa8>
{
80102569: 55 push %ebp
8010256a: 89 e5 mov %esp,%ebp
8010256c: 53 push %ebx
8010256d: 89 cb mov %ecx,%ebx
8010256f: 83 e3 40 and $0x40,%ebx
shift |= E0ESC;
return 0;
} else if(data & 0x80){
80102572: 84 c0 test %al,%al
80102574: 78 4a js 801025c0 <kbdgetc+0x80>
// Key released
data = (shift & E0ESC ? data : data & 0x7F);
shift &= ~(shiftcode[data] | E0ESC);
return 0;
} else if(shift & E0ESC){
80102576: 85 db test %ebx,%ebx
80102578: 74 09 je 80102583 <kbdgetc+0x43>
// Last character was an E0 escape; or with 0x80
data |= 0x80;
8010257a: 83 c8 80 or $0xffffff80,%eax
shift &= ~E0ESC;
8010257d: 83 e1 bf and $0xffffffbf,%ecx
data |= 0x80;
80102580: 0f b6 d0 movzbl %al,%edx
}
shift |= shiftcode[data];
80102583: 0f b6 82 00 74 10 80 movzbl -0x7fef8c00(%edx),%eax
8010258a: 09 c1 or %eax,%ecx
shift ^= togglecode[data];
8010258c: 0f b6 82 00 73 10 80 movzbl -0x7fef8d00(%edx),%eax
80102593: 31 c1 xor %eax,%ecx
c = charcode[shift & (CTL | SHIFT)][data];
80102595: 89 c8 mov %ecx,%eax
shift ^= togglecode[data];
80102597: 89 0d b4 a5 10 80 mov %ecx,0x8010a5b4
c = charcode[shift & (CTL | SHIFT)][data];
8010259d: 83 e0 03 and $0x3,%eax
if(shift & CAPSLOCK){
801025a0: 83 e1 08 and $0x8,%ecx
c = charcode[shift & (CTL | SHIFT)][data];
801025a3: 8b 04 85 e0 72 10 80 mov -0x7fef8d20(,%eax,4),%eax
801025aa: 0f b6 04 10 movzbl (%eax,%edx,1),%eax
if(shift & CAPSLOCK){
801025ae: 74 31 je 801025e1 <kbdgetc+0xa1>
if('a' <= c && c <= 'z')
801025b0: 8d 50 9f lea -0x61(%eax),%edx
801025b3: 83 fa 19 cmp $0x19,%edx
801025b6: 77 40 ja 801025f8 <kbdgetc+0xb8>
c += 'A' - 'a';
801025b8: 83 e8 20 sub $0x20,%eax
else if('A' <= c && c <= 'Z')
c += 'a' - 'A';
}
return c;
}
801025bb: 5b pop %ebx
801025bc: 5d pop %ebp
801025bd: c3 ret
801025be: 66 90 xchg %ax,%ax
data = (shift & E0ESC ? data : data & 0x7F);
801025c0: 83 e0 7f and $0x7f,%eax
801025c3: 85 db test %ebx,%ebx
801025c5: 0f 44 d0 cmove %eax,%edx
shift &= ~(shiftcode[data] | E0ESC);
801025c8: 0f b6 82 00 74 10 80 movzbl -0x7fef8c00(%edx),%eax
801025cf: 83 c8 40 or $0x40,%eax
801025d2: 0f b6 c0 movzbl %al,%eax
801025d5: f7 d0 not %eax
801025d7: 21 c1 and %eax,%ecx
return 0;
801025d9: 31 c0 xor %eax,%eax
shift &= ~(shiftcode[data] | E0ESC);
801025db: 89 0d b4 a5 10 80 mov %ecx,0x8010a5b4
}
801025e1: 5b pop %ebx
801025e2: 5d pop %ebp
801025e3: c3 ret
801025e4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
shift |= E0ESC;
801025e8: 83 c9 40 or $0x40,%ecx
return 0;
801025eb: 31 c0 xor %eax,%eax
shift |= E0ESC;
801025ed: 89 0d b4 a5 10 80 mov %ecx,0x8010a5b4
return 0;
801025f3: c3 ret
801025f4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
else if('A' <= c && c <= 'Z')
801025f8: 8d 48 bf lea -0x41(%eax),%ecx
c += 'a' - 'A';
801025fb: 8d 50 20 lea 0x20(%eax),%edx
}
801025fe: 5b pop %ebx
c += 'a' - 'A';
801025ff: 83 f9 1a cmp $0x1a,%ecx
80102602: 0f 42 c2 cmovb %edx,%eax
}
80102605: 5d pop %ebp
80102606: c3 ret
80102607: 89 f6 mov %esi,%esi
80102609: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
return -1;
80102610: b8 ff ff ff ff mov $0xffffffff,%eax
}
80102615: c3 ret
80102616: 8d 76 00 lea 0x0(%esi),%esi
80102619: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80102620 <kbdintr>:
void
kbdintr(void)
{
80102620: 55 push %ebp
80102621: 89 e5 mov %esp,%ebp
80102623: 83 ec 14 sub $0x14,%esp
consoleintr(kbdgetc);
80102626: 68 40 25 10 80 push $0x80102540
8010262b: e8 e0 e1 ff ff call 80100810 <consoleintr>
}
80102630: 83 c4 10 add $0x10,%esp
80102633: c9 leave
80102634: c3 ret
80102635: 66 90 xchg %ax,%ax
80102637: 66 90 xchg %ax,%ax
80102639: 66 90 xchg %ax,%ax
8010263b: 66 90 xchg %ax,%ax
8010263d: 66 90 xchg %ax,%ax
8010263f: 90 nop
80102640 <lapicinit>:
}
void
lapicinit(void)
{
if(!lapic)
80102640: a1 9c 26 11 80 mov 0x8011269c,%eax
{
80102645: 55 push %ebp
80102646: 89 e5 mov %esp,%ebp
if(!lapic)
80102648: 85 c0 test %eax,%eax
8010264a: 0f 84 c8 00 00 00 je 80102718 <lapicinit+0xd8>
lapic[index] = value;
80102650: c7 80 f0 00 00 00 3f movl $0x13f,0xf0(%eax)
80102657: 01 00 00
lapic[ID]; // wait for write to finish, by reading
8010265a: 8b 50 20 mov 0x20(%eax),%edx
lapic[index] = value;
8010265d: c7 80 e0 03 00 00 0b movl $0xb,0x3e0(%eax)
80102664: 00 00 00
lapic[ID]; // wait for write to finish, by reading
80102667: 8b 50 20 mov 0x20(%eax),%edx
lapic[index] = value;
8010266a: c7 80 20 03 00 00 20 movl $0x20020,0x320(%eax)
80102671: 00 02 00
lapic[ID]; // wait for write to finish, by reading
80102674: 8b 50 20 mov 0x20(%eax),%edx
lapic[index] = value;
80102677: c7 80 80 03 00 00 80 movl $0x989680,0x380(%eax)
8010267e: 96 98 00
lapic[ID]; // wait for write to finish, by reading
80102681: 8b 50 20 mov 0x20(%eax),%edx
lapic[index] = value;
80102684: c7 80 50 03 00 00 00 movl $0x10000,0x350(%eax)
8010268b: 00 01 00
lapic[ID]; // wait for write to finish, by reading
8010268e: 8b 50 20 mov 0x20(%eax),%edx
lapic[index] = value;
80102691: c7 80 60 03 00 00 00 movl $0x10000,0x360(%eax)
80102698: 00 01 00
lapic[ID]; // wait for write to finish, by reading
8010269b: 8b 50 20 mov 0x20(%eax),%edx
lapicw(LINT0, MASKED);
lapicw(LINT1, MASKED);
// Disable performance counter overflow interrupts
// on machines that provide that interrupt entry.
if(((lapic[VER]>>16) & 0xFF) >= 4)
8010269e: 8b 50 30 mov 0x30(%eax),%edx
801026a1: c1 ea 10 shr $0x10,%edx
801026a4: 80 fa 03 cmp $0x3,%dl
801026a7: 77 77 ja 80102720 <lapicinit+0xe0>
lapic[index] = value;
801026a9: c7 80 70 03 00 00 33 movl $0x33,0x370(%eax)
801026b0: 00 00 00
lapic[ID]; // wait for write to finish, by reading
801026b3: 8b 50 20 mov 0x20(%eax),%edx
lapic[index] = value;
801026b6: c7 80 80 02 00 00 00 movl $0x0,0x280(%eax)
801026bd: 00 00 00
lapic[ID]; // wait for write to finish, by reading
801026c0: 8b 50 20 mov 0x20(%eax),%edx
lapic[index] = value;
801026c3: c7 80 80 02 00 00 00 movl $0x0,0x280(%eax)
801026ca: 00 00 00
lapic[ID]; // wait for write to finish, by reading
801026cd: 8b 50 20 mov 0x20(%eax),%edx
lapic[index] = value;
801026d0: c7 80 b0 00 00 00 00 movl $0x0,0xb0(%eax)
801026d7: 00 00 00
lapic[ID]; // wait for write to finish, by reading
801026da: 8b 50 20 mov 0x20(%eax),%edx
lapic[index] = value;
801026dd: c7 80 10 03 00 00 00 movl $0x0,0x310(%eax)
801026e4: 00 00 00
lapic[ID]; // wait for write to finish, by reading
801026e7: 8b 50 20 mov 0x20(%eax),%edx
lapic[index] = value;
801026ea: c7 80 00 03 00 00 00 movl $0x88500,0x300(%eax)
801026f1: 85 08 00
lapic[ID]; // wait for write to finish, by reading
801026f4: 8b 50 20 mov 0x20(%eax),%edx
801026f7: 89 f6 mov %esi,%esi
801026f9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
lapicw(EOI, 0);
// Send an Init Level De-Assert to synchronise arbitration ID's.
lapicw(ICRHI, 0);
lapicw(ICRLO, BCAST | INIT | LEVEL);
while(lapic[ICRLO] & DELIVS)
80102700: 8b 90 00 03 00 00 mov 0x300(%eax),%edx
80102706: 80 e6 10 and $0x10,%dh
80102709: 75 f5 jne 80102700 <lapicinit+0xc0>
lapic[index] = value;
8010270b: c7 80 80 00 00 00 00 movl $0x0,0x80(%eax)
80102712: 00 00 00
lapic[ID]; // wait for write to finish, by reading
80102715: 8b 40 20 mov 0x20(%eax),%eax
;
// Enable interrupts on the APIC (but not on the processor).
lapicw(TPR, 0);
}
80102718: 5d pop %ebp
80102719: c3 ret
8010271a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
lapic[index] = value;
80102720: c7 80 40 03 00 00 00 movl $0x10000,0x340(%eax)
80102727: 00 01 00
lapic[ID]; // wait for write to finish, by reading
8010272a: 8b 50 20 mov 0x20(%eax),%edx
8010272d: e9 77 ff ff ff jmp 801026a9 <lapicinit+0x69>
80102732: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
80102739: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80102740 <lapicid>:
int
lapicid(void)
{
if (!lapic)
80102740: 8b 15 9c 26 11 80 mov 0x8011269c,%edx
{
80102746: 55 push %ebp
80102747: 31 c0 xor %eax,%eax
80102749: 89 e5 mov %esp,%ebp
if (!lapic)
8010274b: 85 d2 test %edx,%edx
8010274d: 74 06 je 80102755 <lapicid+0x15>
return 0;
return lapic[ID] >> 24;
8010274f: 8b 42 20 mov 0x20(%edx),%eax
80102752: c1 e8 18 shr $0x18,%eax
}
80102755: 5d pop %ebp
80102756: c3 ret
80102757: 89 f6 mov %esi,%esi
80102759: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80102760 <lapiceoi>:
// Acknowledge interrupt.
void
lapiceoi(void)
{
if(lapic)
80102760: a1 9c 26 11 80 mov 0x8011269c,%eax
{
80102765: 55 push %ebp
80102766: 89 e5 mov %esp,%ebp
if(lapic)
80102768: 85 c0 test %eax,%eax
8010276a: 74 0d je 80102779 <lapiceoi+0x19>
lapic[index] = value;
8010276c: c7 80 b0 00 00 00 00 movl $0x0,0xb0(%eax)
80102773: 00 00 00
lapic[ID]; // wait for write to finish, by reading
80102776: 8b 40 20 mov 0x20(%eax),%eax
lapicw(EOI, 0);
}
80102779: 5d pop %ebp
8010277a: c3 ret
8010277b: 90 nop
8010277c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80102780 <microdelay>:
// Spin for a given number of microseconds.
// On real hardware would want to tune this dynamically.
void
microdelay(int us)
{
80102780: 55 push %ebp
80102781: 89 e5 mov %esp,%ebp
}
80102783: 5d pop %ebp
80102784: c3 ret
80102785: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80102789: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80102790 <lapicstartap>:
// Start additional processor running entry code at addr.
// See Appendix B of MultiProcessor Specification.
void
lapicstartap(uchar apicid, uint addr)
{
80102790: 55 push %ebp
asm volatile("out %0,%1" : : "a" (data), "d" (port));
80102791: b8 0f 00 00 00 mov $0xf,%eax
80102796: ba 70 00 00 00 mov $0x70,%edx
8010279b: 89 e5 mov %esp,%ebp
8010279d: 53 push %ebx
8010279e: 8b 4d 0c mov 0xc(%ebp),%ecx
801027a1: 8b 5d 08 mov 0x8(%ebp),%ebx
801027a4: ee out %al,(%dx)
801027a5: b8 0a 00 00 00 mov $0xa,%eax
801027aa: ba 71 00 00 00 mov $0x71,%edx
801027af: ee out %al,(%dx)
// and the warm reset vector (DWORD based at 40:67) to point at
// the AP startup code prior to the [universal startup algorithm]."
outb(CMOS_PORT, 0xF); // offset 0xF is shutdown code
outb(CMOS_PORT+1, 0x0A);
wrv = (ushort*)P2V((0x40<<4 | 0x67)); // Warm reset vector
wrv[0] = 0;
801027b0: 31 c0 xor %eax,%eax
wrv[1] = addr >> 4;
// "Universal startup algorithm."
// Send INIT (level-triggered) interrupt to reset other CPU.
lapicw(ICRHI, apicid<<24);
801027b2: c1 e3 18 shl $0x18,%ebx
wrv[0] = 0;
801027b5: 66 a3 67 04 00 80 mov %ax,0x80000467
wrv[1] = addr >> 4;
801027bb: 89 c8 mov %ecx,%eax
// when it is in the halted state due to an INIT. So the second
// should be ignored, but it is part of the official Intel algorithm.
// Bochs complains about the second one. Too bad for Bochs.
for(i = 0; i < 2; i++){
lapicw(ICRHI, apicid<<24);
lapicw(ICRLO, STARTUP | (addr>>12));
801027bd: c1 e9 0c shr $0xc,%ecx
wrv[1] = addr >> 4;
801027c0: c1 e8 04 shr $0x4,%eax
lapicw(ICRHI, apicid<<24);
801027c3: 89 da mov %ebx,%edx
lapicw(ICRLO, STARTUP | (addr>>12));
801027c5: 80 cd 06 or $0x6,%ch
wrv[1] = addr >> 4;
801027c8: 66 a3 69 04 00 80 mov %ax,0x80000469
lapic[index] = value;
801027ce: a1 9c 26 11 80 mov 0x8011269c,%eax
801027d3: 89 98 10 03 00 00 mov %ebx,0x310(%eax)
lapic[ID]; // wait for write to finish, by reading
801027d9: 8b 58 20 mov 0x20(%eax),%ebx
lapic[index] = value;
801027dc: c7 80 00 03 00 00 00 movl $0xc500,0x300(%eax)
801027e3: c5 00 00
lapic[ID]; // wait for write to finish, by reading
801027e6: 8b 58 20 mov 0x20(%eax),%ebx
lapic[index] = value;
801027e9: c7 80 00 03 00 00 00 movl $0x8500,0x300(%eax)
801027f0: 85 00 00
lapic[ID]; // wait for write to finish, by reading
801027f3: 8b 58 20 mov 0x20(%eax),%ebx
lapic[index] = value;
801027f6: 89 90 10 03 00 00 mov %edx,0x310(%eax)
lapic[ID]; // wait for write to finish, by reading
801027fc: 8b 58 20 mov 0x20(%eax),%ebx
lapic[index] = value;
801027ff: 89 88 00 03 00 00 mov %ecx,0x300(%eax)
lapic[ID]; // wait for write to finish, by reading
80102805: 8b 58 20 mov 0x20(%eax),%ebx
lapic[index] = value;
80102808: 89 90 10 03 00 00 mov %edx,0x310(%eax)
lapic[ID]; // wait for write to finish, by reading
8010280e: 8b 50 20 mov 0x20(%eax),%edx
lapic[index] = value;
80102811: 89 88 00 03 00 00 mov %ecx,0x300(%eax)
lapic[ID]; // wait for write to finish, by reading
80102817: 8b 40 20 mov 0x20(%eax),%eax
microdelay(200);
}
}
8010281a: 5b pop %ebx
8010281b: 5d pop %ebp
8010281c: c3 ret
8010281d: 8d 76 00 lea 0x0(%esi),%esi
80102820 <cmostime>:
r->year = cmos_read(YEAR);
}
// qemu seems to use 24-hour GWT and the values are BCD encoded
void cmostime(struct rtcdate *r)
{
80102820: 55 push %ebp
80102821: b8 0b 00 00 00 mov $0xb,%eax
80102826: ba 70 00 00 00 mov $0x70,%edx
8010282b: 89 e5 mov %esp,%ebp
8010282d: 57 push %edi
8010282e: 56 push %esi
8010282f: 53 push %ebx
80102830: 83 ec 4c sub $0x4c,%esp
80102833: ee out %al,(%dx)
asm volatile("in %1,%0" : "=a" (data) : "d" (port));
80102834: ba 71 00 00 00 mov $0x71,%edx
80102839: ec in (%dx),%al
8010283a: 83 e0 04 and $0x4,%eax
asm volatile("out %0,%1" : : "a" (data), "d" (port));
8010283d: bb 70 00 00 00 mov $0x70,%ebx
80102842: 88 45 b3 mov %al,-0x4d(%ebp)
80102845: 8d 76 00 lea 0x0(%esi),%esi
80102848: 31 c0 xor %eax,%eax
8010284a: 89 da mov %ebx,%edx
8010284c: ee out %al,(%dx)
asm volatile("in %1,%0" : "=a" (data) : "d" (port));
8010284d: b9 71 00 00 00 mov $0x71,%ecx
80102852: 89 ca mov %ecx,%edx
80102854: ec in (%dx),%al
80102855: 88 45 b7 mov %al,-0x49(%ebp)
asm volatile("out %0,%1" : : "a" (data), "d" (port));
80102858: 89 da mov %ebx,%edx
8010285a: b8 02 00 00 00 mov $0x2,%eax
8010285f: ee out %al,(%dx)
asm volatile("in %1,%0" : "=a" (data) : "d" (port));
80102860: 89 ca mov %ecx,%edx
80102862: ec in (%dx),%al
80102863: 88 45 b6 mov %al,-0x4a(%ebp)
asm volatile("out %0,%1" : : "a" (data), "d" (port));
80102866: 89 da mov %ebx,%edx
80102868: b8 04 00 00 00 mov $0x4,%eax
8010286d: ee out %al,(%dx)
asm volatile("in %1,%0" : "=a" (data) : "d" (port));
8010286e: 89 ca mov %ecx,%edx
80102870: ec in (%dx),%al
80102871: 88 45 b5 mov %al,-0x4b(%ebp)
asm volatile("out %0,%1" : : "a" (data), "d" (port));
80102874: 89 da mov %ebx,%edx
80102876: b8 07 00 00 00 mov $0x7,%eax
8010287b: ee out %al,(%dx)
asm volatile("in %1,%0" : "=a" (data) : "d" (port));
8010287c: 89 ca mov %ecx,%edx
8010287e: ec in (%dx),%al
8010287f: 88 45 b4 mov %al,-0x4c(%ebp)
asm volatile("out %0,%1" : : "a" (data), "d" (port));
80102882: 89 da mov %ebx,%edx
80102884: b8 08 00 00 00 mov $0x8,%eax
80102889: ee out %al,(%dx)
asm volatile("in %1,%0" : "=a" (data) : "d" (port));
8010288a: 89 ca mov %ecx,%edx
8010288c: ec in (%dx),%al
8010288d: 89 c7 mov %eax,%edi
asm volatile("out %0,%1" : : "a" (data), "d" (port));
8010288f: 89 da mov %ebx,%edx
80102891: b8 09 00 00 00 mov $0x9,%eax
80102896: ee out %al,(%dx)
asm volatile("in %1,%0" : "=a" (data) : "d" (port));
80102897: 89 ca mov %ecx,%edx
80102899: ec in (%dx),%al
8010289a: 89 c6 mov %eax,%esi
asm volatile("out %0,%1" : : "a" (data), "d" (port));
8010289c: 89 da mov %ebx,%edx
8010289e: b8 0a 00 00 00 mov $0xa,%eax
801028a3: ee out %al,(%dx)
asm volatile("in %1,%0" : "=a" (data) : "d" (port));
801028a4: 89 ca mov %ecx,%edx
801028a6: ec in (%dx),%al
bcd = (sb & (1 << 2)) == 0;
// make sure CMOS doesn't modify time while we read it
for(;;) {
fill_rtcdate(&t1);
if(cmos_read(CMOS_STATA) & CMOS_UIP)
801028a7: 84 c0 test %al,%al
801028a9: 78 9d js 80102848 <cmostime+0x28>
return inb(CMOS_RETURN);
801028ab: 0f b6 45 b7 movzbl -0x49(%ebp),%eax
801028af: 89 fa mov %edi,%edx
801028b1: 0f b6 fa movzbl %dl,%edi
801028b4: 89 f2 mov %esi,%edx
801028b6: 0f b6 f2 movzbl %dl,%esi
801028b9: 89 7d c8 mov %edi,-0x38(%ebp)
asm volatile("out %0,%1" : : "a" (data), "d" (port));
801028bc: 89 da mov %ebx,%edx
801028be: 89 75 cc mov %esi,-0x34(%ebp)
801028c1: 89 45 b8 mov %eax,-0x48(%ebp)
801028c4: 0f b6 45 b6 movzbl -0x4a(%ebp),%eax
801028c8: 89 45 bc mov %eax,-0x44(%ebp)
801028cb: 0f b6 45 b5 movzbl -0x4b(%ebp),%eax
801028cf: 89 45 c0 mov %eax,-0x40(%ebp)
801028d2: 0f b6 45 b4 movzbl -0x4c(%ebp),%eax
801028d6: 89 45 c4 mov %eax,-0x3c(%ebp)
801028d9: 31 c0 xor %eax,%eax
801028db: ee out %al,(%dx)
asm volatile("in %1,%0" : "=a" (data) : "d" (port));
801028dc: 89 ca mov %ecx,%edx
801028de: ec in (%dx),%al
801028df: 0f b6 c0 movzbl %al,%eax
asm volatile("out %0,%1" : : "a" (data), "d" (port));
801028e2: 89 da mov %ebx,%edx
801028e4: 89 45 d0 mov %eax,-0x30(%ebp)
801028e7: b8 02 00 00 00 mov $0x2,%eax
801028ec: ee out %al,(%dx)
asm volatile("in %1,%0" : "=a" (data) : "d" (port));
801028ed: 89 ca mov %ecx,%edx
801028ef: ec in (%dx),%al
801028f0: 0f b6 c0 movzbl %al,%eax
asm volatile("out %0,%1" : : "a" (data), "d" (port));
801028f3: 89 da mov %ebx,%edx
801028f5: 89 45 d4 mov %eax,-0x2c(%ebp)
801028f8: b8 04 00 00 00 mov $0x4,%eax
801028fd: ee out %al,(%dx)
asm volatile("in %1,%0" : "=a" (data) : "d" (port));
801028fe: 89 ca mov %ecx,%edx
80102900: ec in (%dx),%al
80102901: 0f b6 c0 movzbl %al,%eax
asm volatile("out %0,%1" : : "a" (data), "d" (port));
80102904: 89 da mov %ebx,%edx
80102906: 89 45 d8 mov %eax,-0x28(%ebp)
80102909: b8 07 00 00 00 mov $0x7,%eax
8010290e: ee out %al,(%dx)
asm volatile("in %1,%0" : "=a" (data) : "d" (port));
8010290f: 89 ca mov %ecx,%edx
80102911: ec in (%dx),%al
80102912: 0f b6 c0 movzbl %al,%eax
asm volatile("out %0,%1" : : "a" (data), "d" (port));
80102915: 89 da mov %ebx,%edx
80102917: 89 45 dc mov %eax,-0x24(%ebp)
8010291a: b8 08 00 00 00 mov $0x8,%eax
8010291f: ee out %al,(%dx)
asm volatile("in %1,%0" : "=a" (data) : "d" (port));
80102920: 89 ca mov %ecx,%edx
80102922: ec in (%dx),%al
80102923: 0f b6 c0 movzbl %al,%eax
asm volatile("out %0,%1" : : "a" (data), "d" (port));
80102926: 89 da mov %ebx,%edx
80102928: 89 45 e0 mov %eax,-0x20(%ebp)
8010292b: b8 09 00 00 00 mov $0x9,%eax
80102930: ee out %al,(%dx)
asm volatile("in %1,%0" : "=a" (data) : "d" (port));
80102931: 89 ca mov %ecx,%edx
80102933: ec in (%dx),%al
80102934: 0f b6 c0 movzbl %al,%eax
continue;
fill_rtcdate(&t2);
if(memcmp(&t1, &t2, sizeof(t1)) == 0)
80102937: 83 ec 04 sub $0x4,%esp
return inb(CMOS_RETURN);
8010293a: 89 45 e4 mov %eax,-0x1c(%ebp)
if(memcmp(&t1, &t2, sizeof(t1)) == 0)
8010293d: 8d 45 d0 lea -0x30(%ebp),%eax
80102940: 6a 18 push $0x18
80102942: 50 push %eax
80102943: 8d 45 b8 lea -0x48(%ebp),%eax
80102946: 50 push %eax
80102947: e8 94 1c 00 00 call 801045e0 <memcmp>
8010294c: 83 c4 10 add $0x10,%esp
8010294f: 85 c0 test %eax,%eax
80102951: 0f 85 f1 fe ff ff jne 80102848 <cmostime+0x28>
break;
}
// convert
if(bcd) {
80102957: 80 7d b3 00 cmpb $0x0,-0x4d(%ebp)
8010295b: 75 78 jne 801029d5 <cmostime+0x1b5>
#define CONV(x) (t1.x = ((t1.x >> 4) * 10) + (t1.x & 0xf))
CONV(second);
8010295d: 8b 45 b8 mov -0x48(%ebp),%eax
80102960: 89 c2 mov %eax,%edx
80102962: 83 e0 0f and $0xf,%eax
80102965: c1 ea 04 shr $0x4,%edx
80102968: 8d 14 92 lea (%edx,%edx,4),%edx
8010296b: 8d 04 50 lea (%eax,%edx,2),%eax
8010296e: 89 45 b8 mov %eax,-0x48(%ebp)
CONV(minute);
80102971: 8b 45 bc mov -0x44(%ebp),%eax
80102974: 89 c2 mov %eax,%edx
80102976: 83 e0 0f and $0xf,%eax
80102979: c1 ea 04 shr $0x4,%edx
8010297c: 8d 14 92 lea (%edx,%edx,4),%edx
8010297f: 8d 04 50 lea (%eax,%edx,2),%eax
80102982: 89 45 bc mov %eax,-0x44(%ebp)
CONV(hour );
80102985: 8b 45 c0 mov -0x40(%ebp),%eax
80102988: 89 c2 mov %eax,%edx
8010298a: 83 e0 0f and $0xf,%eax
8010298d: c1 ea 04 shr $0x4,%edx
80102990: 8d 14 92 lea (%edx,%edx,4),%edx
80102993: 8d 04 50 lea (%eax,%edx,2),%eax
80102996: 89 45 c0 mov %eax,-0x40(%ebp)
CONV(day );
80102999: 8b 45 c4 mov -0x3c(%ebp),%eax
8010299c: 89 c2 mov %eax,%edx
8010299e: 83 e0 0f and $0xf,%eax
801029a1: c1 ea 04 shr $0x4,%edx
801029a4: 8d 14 92 lea (%edx,%edx,4),%edx
801029a7: 8d 04 50 lea (%eax,%edx,2),%eax
801029aa: 89 45 c4 mov %eax,-0x3c(%ebp)
CONV(month );
801029ad: 8b 45 c8 mov -0x38(%ebp),%eax
801029b0: 89 c2 mov %eax,%edx
801029b2: 83 e0 0f and $0xf,%eax
801029b5: c1 ea 04 shr $0x4,%edx
801029b8: 8d 14 92 lea (%edx,%edx,4),%edx
801029bb: 8d 04 50 lea (%eax,%edx,2),%eax
801029be: 89 45 c8 mov %eax,-0x38(%ebp)
CONV(year );
801029c1: 8b 45 cc mov -0x34(%ebp),%eax
801029c4: 89 c2 mov %eax,%edx
801029c6: 83 e0 0f and $0xf,%eax
801029c9: c1 ea 04 shr $0x4,%edx
801029cc: 8d 14 92 lea (%edx,%edx,4),%edx
801029cf: 8d 04 50 lea (%eax,%edx,2),%eax
801029d2: 89 45 cc mov %eax,-0x34(%ebp)
#undef CONV
}
*r = t1;
801029d5: 8b 75 08 mov 0x8(%ebp),%esi
801029d8: 8b 45 b8 mov -0x48(%ebp),%eax
801029db: 89 06 mov %eax,(%esi)
801029dd: 8b 45 bc mov -0x44(%ebp),%eax
801029e0: 89 46 04 mov %eax,0x4(%esi)
801029e3: 8b 45 c0 mov -0x40(%ebp),%eax
801029e6: 89 46 08 mov %eax,0x8(%esi)
801029e9: 8b 45 c4 mov -0x3c(%ebp),%eax
801029ec: 89 46 0c mov %eax,0xc(%esi)
801029ef: 8b 45 c8 mov -0x38(%ebp),%eax
801029f2: 89 46 10 mov %eax,0x10(%esi)
801029f5: 8b 45 cc mov -0x34(%ebp),%eax
801029f8: 89 46 14 mov %eax,0x14(%esi)
r->year += 2000;
801029fb: 81 46 14 d0 07 00 00 addl $0x7d0,0x14(%esi)
}
80102a02: 8d 65 f4 lea -0xc(%ebp),%esp
80102a05: 5b pop %ebx
80102a06: 5e pop %esi
80102a07: 5f pop %edi
80102a08: 5d pop %ebp
80102a09: c3 ret
80102a0a: 66 90 xchg %ax,%ax
80102a0c: 66 90 xchg %ax,%ax
80102a0e: 66 90 xchg %ax,%ax
80102a10 <install_trans>:
static void
install_trans(void)
{
int tail;
for (tail = 0; tail < log.lh.n; tail++) {
80102a10: 8b 0d e8 26 11 80 mov 0x801126e8,%ecx
80102a16: 85 c9 test %ecx,%ecx
80102a18: 0f 8e 8a 00 00 00 jle 80102aa8 <install_trans+0x98>
{
80102a1e: 55 push %ebp
80102a1f: 89 e5 mov %esp,%ebp
80102a21: 57 push %edi
80102a22: 56 push %esi
80102a23: 53 push %ebx
for (tail = 0; tail < log.lh.n; tail++) {
80102a24: 31 db xor %ebx,%ebx
{
80102a26: 83 ec 0c sub $0xc,%esp
80102a29: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
struct buf *lbuf = bread(log.dev, log.start+tail+1); // read log block
80102a30: a1 d4 26 11 80 mov 0x801126d4,%eax
80102a35: 83 ec 08 sub $0x8,%esp
80102a38: 01 d8 add %ebx,%eax
80102a3a: 83 c0 01 add $0x1,%eax
80102a3d: 50 push %eax
80102a3e: ff 35 e4 26 11 80 pushl 0x801126e4
80102a44: e8 87 d6 ff ff call 801000d0 <bread>
80102a49: 89 c7 mov %eax,%edi
struct buf *dbuf = bread(log.dev, log.lh.block[tail]); // read dst
80102a4b: 58 pop %eax
80102a4c: 5a pop %edx
80102a4d: ff 34 9d ec 26 11 80 pushl -0x7feed914(,%ebx,4)
80102a54: ff 35 e4 26 11 80 pushl 0x801126e4
for (tail = 0; tail < log.lh.n; tail++) {
80102a5a: 83 c3 01 add $0x1,%ebx
struct buf *dbuf = bread(log.dev, log.lh.block[tail]); // read dst
80102a5d: e8 6e d6 ff ff call 801000d0 <bread>
80102a62: 89 c6 mov %eax,%esi
memmove(dbuf->data, lbuf->data, BSIZE); // copy block to dst
80102a64: 8d 47 5c lea 0x5c(%edi),%eax
80102a67: 83 c4 0c add $0xc,%esp
80102a6a: 68 00 02 00 00 push $0x200
80102a6f: 50 push %eax
80102a70: 8d 46 5c lea 0x5c(%esi),%eax
80102a73: 50 push %eax
80102a74: e8 c7 1b 00 00 call 80104640 <memmove>
bwrite(dbuf); // write dst to disk
80102a79: 89 34 24 mov %esi,(%esp)
80102a7c: e8 1f d7 ff ff call 801001a0 <bwrite>
brelse(lbuf);
80102a81: 89 3c 24 mov %edi,(%esp)
80102a84: e8 57 d7 ff ff call 801001e0 <brelse>
brelse(dbuf);
80102a89: 89 34 24 mov %esi,(%esp)
80102a8c: e8 4f d7 ff ff call 801001e0 <brelse>
for (tail = 0; tail < log.lh.n; tail++) {
80102a91: 83 c4 10 add $0x10,%esp
80102a94: 39 1d e8 26 11 80 cmp %ebx,0x801126e8
80102a9a: 7f 94 jg 80102a30 <install_trans+0x20>
}
}
80102a9c: 8d 65 f4 lea -0xc(%ebp),%esp
80102a9f: 5b pop %ebx
80102aa0: 5e pop %esi
80102aa1: 5f pop %edi
80102aa2: 5d pop %ebp
80102aa3: c3 ret
80102aa4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80102aa8: f3 c3 repz ret
80102aaa: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
80102ab0 <write_head>:
// Write in-memory log header to disk.
// This is the true point at which the
// current transaction commits.
static void
write_head(void)
{
80102ab0: 55 push %ebp
80102ab1: 89 e5 mov %esp,%ebp
80102ab3: 56 push %esi
80102ab4: 53 push %ebx
struct buf *buf = bread(log.dev, log.start);
80102ab5: 83 ec 08 sub $0x8,%esp
80102ab8: ff 35 d4 26 11 80 pushl 0x801126d4
80102abe: ff 35 e4 26 11 80 pushl 0x801126e4
80102ac4: e8 07 d6 ff ff call 801000d0 <bread>
struct logheader *hb = (struct logheader *) (buf->data);
int i;
hb->n = log.lh.n;
80102ac9: 8b 1d e8 26 11 80 mov 0x801126e8,%ebx
for (i = 0; i < log.lh.n; i++) {
80102acf: 83 c4 10 add $0x10,%esp
struct buf *buf = bread(log.dev, log.start);
80102ad2: 89 c6 mov %eax,%esi
for (i = 0; i < log.lh.n; i++) {
80102ad4: 85 db test %ebx,%ebx
hb->n = log.lh.n;
80102ad6: 89 58 5c mov %ebx,0x5c(%eax)
for (i = 0; i < log.lh.n; i++) {
80102ad9: 7e 16 jle 80102af1 <write_head+0x41>
80102adb: c1 e3 02 shl $0x2,%ebx
80102ade: 31 d2 xor %edx,%edx
hb->block[i] = log.lh.block[i];
80102ae0: 8b 8a ec 26 11 80 mov -0x7feed914(%edx),%ecx
80102ae6: 89 4c 16 60 mov %ecx,0x60(%esi,%edx,1)
80102aea: 83 c2 04 add $0x4,%edx
for (i = 0; i < log.lh.n; i++) {
80102aed: 39 da cmp %ebx,%edx
80102aef: 75 ef jne 80102ae0 <write_head+0x30>
}
bwrite(buf);
80102af1: 83 ec 0c sub $0xc,%esp
80102af4: 56 push %esi
80102af5: e8 a6 d6 ff ff call 801001a0 <bwrite>
brelse(buf);
80102afa: 89 34 24 mov %esi,(%esp)
80102afd: e8 de d6 ff ff call 801001e0 <brelse>
}
80102b02: 83 c4 10 add $0x10,%esp
80102b05: 8d 65 f8 lea -0x8(%ebp),%esp
80102b08: 5b pop %ebx
80102b09: 5e pop %esi
80102b0a: 5d pop %ebp
80102b0b: c3 ret
80102b0c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80102b10 <initlog>:
{
80102b10: 55 push %ebp
80102b11: 89 e5 mov %esp,%ebp
80102b13: 53 push %ebx
80102b14: 83 ec 2c sub $0x2c,%esp
80102b17: 8b 5d 08 mov 0x8(%ebp),%ebx
initlock(&log.lock, "log");
80102b1a: 68 00 75 10 80 push $0x80107500
80102b1f: 68 a0 26 11 80 push $0x801126a0
80102b24: e8 f7 17 00 00 call 80104320 <initlock>
readsb(dev, &sb);
80102b29: 58 pop %eax
80102b2a: 8d 45 dc lea -0x24(%ebp),%eax
80102b2d: 5a pop %edx
80102b2e: 50 push %eax
80102b2f: 53 push %ebx
80102b30: e8 9b e8 ff ff call 801013d0 <readsb>
log.size = sb.nlog;
80102b35: 8b 55 e8 mov -0x18(%ebp),%edx
log.start = sb.logstart;
80102b38: 8b 45 ec mov -0x14(%ebp),%eax
struct buf *buf = bread(log.dev, log.start);
80102b3b: 59 pop %ecx
log.dev = dev;
80102b3c: 89 1d e4 26 11 80 mov %ebx,0x801126e4
log.size = sb.nlog;
80102b42: 89 15 d8 26 11 80 mov %edx,0x801126d8
log.start = sb.logstart;
80102b48: a3 d4 26 11 80 mov %eax,0x801126d4
struct buf *buf = bread(log.dev, log.start);
80102b4d: 5a pop %edx
80102b4e: 50 push %eax
80102b4f: 53 push %ebx
80102b50: e8 7b d5 ff ff call 801000d0 <bread>
log.lh.n = lh->n;
80102b55: 8b 58 5c mov 0x5c(%eax),%ebx
for (i = 0; i < log.lh.n; i++) {
80102b58: 83 c4 10 add $0x10,%esp
80102b5b: 85 db test %ebx,%ebx
log.lh.n = lh->n;
80102b5d: 89 1d e8 26 11 80 mov %ebx,0x801126e8
for (i = 0; i < log.lh.n; i++) {
80102b63: 7e 1c jle 80102b81 <initlog+0x71>
80102b65: c1 e3 02 shl $0x2,%ebx
80102b68: 31 d2 xor %edx,%edx
80102b6a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
log.lh.block[i] = lh->block[i];
80102b70: 8b 4c 10 60 mov 0x60(%eax,%edx,1),%ecx
80102b74: 83 c2 04 add $0x4,%edx
80102b77: 89 8a e8 26 11 80 mov %ecx,-0x7feed918(%edx)
for (i = 0; i < log.lh.n; i++) {
80102b7d: 39 d3 cmp %edx,%ebx
80102b7f: 75 ef jne 80102b70 <initlog+0x60>
brelse(buf);
80102b81: 83 ec 0c sub $0xc,%esp
80102b84: 50 push %eax
80102b85: e8 56 d6 ff ff call 801001e0 <brelse>
static void
recover_from_log(void)
{
read_head();
install_trans(); // if committed, copy from log to disk
80102b8a: e8 81 fe ff ff call 80102a10 <install_trans>
log.lh.n = 0;
80102b8f: c7 05 e8 26 11 80 00 movl $0x0,0x801126e8
80102b96: 00 00 00
write_head(); // clear the log
80102b99: e8 12 ff ff ff call 80102ab0 <write_head>
}
80102b9e: 83 c4 10 add $0x10,%esp
80102ba1: 8b 5d fc mov -0x4(%ebp),%ebx
80102ba4: c9 leave
80102ba5: c3 ret
80102ba6: 8d 76 00 lea 0x0(%esi),%esi
80102ba9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80102bb0 <begin_op>:
}
// called at the start of each FS system call.
void
begin_op(void)
{
80102bb0: 55 push %ebp
80102bb1: 89 e5 mov %esp,%ebp
80102bb3: 83 ec 14 sub $0x14,%esp
acquire(&log.lock);
80102bb6: 68 a0 26 11 80 push $0x801126a0
80102bbb: e8 50 18 00 00 call 80104410 <acquire>
80102bc0: 83 c4 10 add $0x10,%esp
80102bc3: eb 18 jmp 80102bdd <begin_op+0x2d>
80102bc5: 8d 76 00 lea 0x0(%esi),%esi
while(1){
if(log.committing){
sleep(&log, &log.lock);
80102bc8: 83 ec 08 sub $0x8,%esp
80102bcb: 68 a0 26 11 80 push $0x801126a0
80102bd0: 68 a0 26 11 80 push $0x801126a0
80102bd5: e8 c6 11 00 00 call 80103da0 <sleep>
80102bda: 83 c4 10 add $0x10,%esp
if(log.committing){
80102bdd: a1 e0 26 11 80 mov 0x801126e0,%eax
80102be2: 85 c0 test %eax,%eax
80102be4: 75 e2 jne 80102bc8 <begin_op+0x18>
} else if(log.lh.n + (log.outstanding+1)*MAXOPBLOCKS > LOGSIZE){
80102be6: a1 dc 26 11 80 mov 0x801126dc,%eax
80102beb: 8b 15 e8 26 11 80 mov 0x801126e8,%edx
80102bf1: 83 c0 01 add $0x1,%eax
80102bf4: 8d 0c 80 lea (%eax,%eax,4),%ecx
80102bf7: 8d 14 4a lea (%edx,%ecx,2),%edx
80102bfa: 83 fa 1e cmp $0x1e,%edx
80102bfd: 7f c9 jg 80102bc8 <begin_op+0x18>
// this op might exhaust log space; wait for commit.
sleep(&log, &log.lock);
} else {
log.outstanding += 1;
release(&log.lock);
80102bff: 83 ec 0c sub $0xc,%esp
log.outstanding += 1;
80102c02: a3 dc 26 11 80 mov %eax,0x801126dc
release(&log.lock);
80102c07: 68 a0 26 11 80 push $0x801126a0
80102c0c: e8 1f 19 00 00 call 80104530 <release>
break;
}
}
}
80102c11: 83 c4 10 add $0x10,%esp
80102c14: c9 leave
80102c15: c3 ret
80102c16: 8d 76 00 lea 0x0(%esi),%esi
80102c19: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80102c20 <end_op>:
// called at the end of each FS system call.
// commits if this was the last outstanding operation.
void
end_op(void)
{
80102c20: 55 push %ebp
80102c21: 89 e5 mov %esp,%ebp
80102c23: 57 push %edi
80102c24: 56 push %esi
80102c25: 53 push %ebx
80102c26: 83 ec 18 sub $0x18,%esp
int do_commit = 0;
acquire(&log.lock);
80102c29: 68 a0 26 11 80 push $0x801126a0
80102c2e: e8 dd 17 00 00 call 80104410 <acquire>
log.outstanding -= 1;
80102c33: a1 dc 26 11 80 mov 0x801126dc,%eax
if(log.committing)
80102c38: 8b 35 e0 26 11 80 mov 0x801126e0,%esi
80102c3e: 83 c4 10 add $0x10,%esp
log.outstanding -= 1;
80102c41: 8d 58 ff lea -0x1(%eax),%ebx
if(log.committing)
80102c44: 85 f6 test %esi,%esi
log.outstanding -= 1;
80102c46: 89 1d dc 26 11 80 mov %ebx,0x801126dc
if(log.committing)
80102c4c: 0f 85 1a 01 00 00 jne 80102d6c <end_op+0x14c>
panic("log.committing");
if(log.outstanding == 0){
80102c52: 85 db test %ebx,%ebx
80102c54: 0f 85 ee 00 00 00 jne 80102d48 <end_op+0x128>
// begin_op() may be waiting for log space,
// and decrementing log.outstanding has decreased
// the amount of reserved space.
wakeup(&log);
}
release(&log.lock);
80102c5a: 83 ec 0c sub $0xc,%esp
log.committing = 1;
80102c5d: c7 05 e0 26 11 80 01 movl $0x1,0x801126e0
80102c64: 00 00 00
release(&log.lock);
80102c67: 68 a0 26 11 80 push $0x801126a0
80102c6c: e8 bf 18 00 00 call 80104530 <release>
}
static void
commit()
{
if (log.lh.n > 0) {
80102c71: 8b 0d e8 26 11 80 mov 0x801126e8,%ecx
80102c77: 83 c4 10 add $0x10,%esp
80102c7a: 85 c9 test %ecx,%ecx
80102c7c: 0f 8e 85 00 00 00 jle 80102d07 <end_op+0xe7>
struct buf *to = bread(log.dev, log.start+tail+1); // log block
80102c82: a1 d4 26 11 80 mov 0x801126d4,%eax
80102c87: 83 ec 08 sub $0x8,%esp
80102c8a: 01 d8 add %ebx,%eax
80102c8c: 83 c0 01 add $0x1,%eax
80102c8f: 50 push %eax
80102c90: ff 35 e4 26 11 80 pushl 0x801126e4
80102c96: e8 35 d4 ff ff call 801000d0 <bread>
80102c9b: 89 c6 mov %eax,%esi
struct buf *from = bread(log.dev, log.lh.block[tail]); // cache block
80102c9d: 58 pop %eax
80102c9e: 5a pop %edx
80102c9f: ff 34 9d ec 26 11 80 pushl -0x7feed914(,%ebx,4)
80102ca6: ff 35 e4 26 11 80 pushl 0x801126e4
for (tail = 0; tail < log.lh.n; tail++) {
80102cac: 83 c3 01 add $0x1,%ebx
struct buf *from = bread(log.dev, log.lh.block[tail]); // cache block
80102caf: e8 1c d4 ff ff call 801000d0 <bread>
80102cb4: 89 c7 mov %eax,%edi
memmove(to->data, from->data, BSIZE);
80102cb6: 8d 40 5c lea 0x5c(%eax),%eax
80102cb9: 83 c4 0c add $0xc,%esp
80102cbc: 68 00 02 00 00 push $0x200
80102cc1: 50 push %eax
80102cc2: 8d 46 5c lea 0x5c(%esi),%eax
80102cc5: 50 push %eax
80102cc6: e8 75 19 00 00 call 80104640 <memmove>
bwrite(to); // write the log
80102ccb: 89 34 24 mov %esi,(%esp)
80102cce: e8 cd d4 ff ff call 801001a0 <bwrite>
brelse(from);
80102cd3: 89 3c 24 mov %edi,(%esp)
80102cd6: e8 05 d5 ff ff call 801001e0 <brelse>
brelse(to);
80102cdb: 89 34 24 mov %esi,(%esp)
80102cde: e8 fd d4 ff ff call 801001e0 <brelse>
for (tail = 0; tail < log.lh.n; tail++) {
80102ce3: 83 c4 10 add $0x10,%esp
80102ce6: 3b 1d e8 26 11 80 cmp 0x801126e8,%ebx
80102cec: 7c 94 jl 80102c82 <end_op+0x62>
write_log(); // Write modified blocks from cache to log
write_head(); // Write header to disk -- the real commit
80102cee: e8 bd fd ff ff call 80102ab0 <write_head>
install_trans(); // Now install writes to home locations
80102cf3: e8 18 fd ff ff call 80102a10 <install_trans>
log.lh.n = 0;
80102cf8: c7 05 e8 26 11 80 00 movl $0x0,0x801126e8
80102cff: 00 00 00
write_head(); // Erase the transaction from the log
80102d02: e8 a9 fd ff ff call 80102ab0 <write_head>
acquire(&log.lock);
80102d07: 83 ec 0c sub $0xc,%esp
80102d0a: 68 a0 26 11 80 push $0x801126a0
80102d0f: e8 fc 16 00 00 call 80104410 <acquire>
wakeup(&log);
80102d14: c7 04 24 a0 26 11 80 movl $0x801126a0,(%esp)
log.committing = 0;
80102d1b: c7 05 e0 26 11 80 00 movl $0x0,0x801126e0
80102d22: 00 00 00
wakeup(&log);
80102d25: e8 26 12 00 00 call 80103f50 <wakeup>
release(&log.lock);
80102d2a: c7 04 24 a0 26 11 80 movl $0x801126a0,(%esp)
80102d31: e8 fa 17 00 00 call 80104530 <release>
80102d36: 83 c4 10 add $0x10,%esp
}
80102d39: 8d 65 f4 lea -0xc(%ebp),%esp
80102d3c: 5b pop %ebx
80102d3d: 5e pop %esi
80102d3e: 5f pop %edi
80102d3f: 5d pop %ebp
80102d40: c3 ret
80102d41: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
wakeup(&log);
80102d48: 83 ec 0c sub $0xc,%esp
80102d4b: 68 a0 26 11 80 push $0x801126a0
80102d50: e8 fb 11 00 00 call 80103f50 <wakeup>
release(&log.lock);
80102d55: c7 04 24 a0 26 11 80 movl $0x801126a0,(%esp)
80102d5c: e8 cf 17 00 00 call 80104530 <release>
80102d61: 83 c4 10 add $0x10,%esp
}
80102d64: 8d 65 f4 lea -0xc(%ebp),%esp
80102d67: 5b pop %ebx
80102d68: 5e pop %esi
80102d69: 5f pop %edi
80102d6a: 5d pop %ebp
80102d6b: c3 ret
panic("log.committing");
80102d6c: 83 ec 0c sub $0xc,%esp
80102d6f: 68 04 75 10 80 push $0x80107504
80102d74: e8 17 d6 ff ff call 80100390 <panic>
80102d79: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
80102d80 <log_write>:
// modify bp->data[]
// log_write(bp)
// brelse(bp)
void
log_write(struct buf *b)
{
80102d80: 55 push %ebp
80102d81: 89 e5 mov %esp,%ebp
80102d83: 53 push %ebx
80102d84: 83 ec 04 sub $0x4,%esp
int i;
if (log.lh.n >= LOGSIZE || log.lh.n >= log.size - 1)
80102d87: 8b 15 e8 26 11 80 mov 0x801126e8,%edx
{
80102d8d: 8b 5d 08 mov 0x8(%ebp),%ebx
if (log.lh.n >= LOGSIZE || log.lh.n >= log.size - 1)
80102d90: 83 fa 1d cmp $0x1d,%edx
80102d93: 0f 8f 9d 00 00 00 jg 80102e36 <log_write+0xb6>
80102d99: a1 d8 26 11 80 mov 0x801126d8,%eax
80102d9e: 83 e8 01 sub $0x1,%eax
80102da1: 39 c2 cmp %eax,%edx
80102da3: 0f 8d 8d 00 00 00 jge 80102e36 <log_write+0xb6>
panic("too big a transaction");
if (log.outstanding < 1)
80102da9: a1 dc 26 11 80 mov 0x801126dc,%eax
80102dae: 85 c0 test %eax,%eax
80102db0: 0f 8e 8d 00 00 00 jle 80102e43 <log_write+0xc3>
panic("log_write outside of trans");
acquire(&log.lock);
80102db6: 83 ec 0c sub $0xc,%esp
80102db9: 68 a0 26 11 80 push $0x801126a0
80102dbe: e8 4d 16 00 00 call 80104410 <acquire>
for (i = 0; i < log.lh.n; i++) {
80102dc3: 8b 0d e8 26 11 80 mov 0x801126e8,%ecx
80102dc9: 83 c4 10 add $0x10,%esp
80102dcc: 83 f9 00 cmp $0x0,%ecx
80102dcf: 7e 57 jle 80102e28 <log_write+0xa8>
if (log.lh.block[i] == b->blockno) // log absorbtion
80102dd1: 8b 53 08 mov 0x8(%ebx),%edx
for (i = 0; i < log.lh.n; i++) {
80102dd4: 31 c0 xor %eax,%eax
if (log.lh.block[i] == b->blockno) // log absorbtion
80102dd6: 3b 15 ec 26 11 80 cmp 0x801126ec,%edx
80102ddc: 75 0b jne 80102de9 <log_write+0x69>
80102dde: eb 38 jmp 80102e18 <log_write+0x98>
80102de0: 39 14 85 ec 26 11 80 cmp %edx,-0x7feed914(,%eax,4)
80102de7: 74 2f je 80102e18 <log_write+0x98>
for (i = 0; i < log.lh.n; i++) {
80102de9: 83 c0 01 add $0x1,%eax
80102dec: 39 c1 cmp %eax,%ecx
80102dee: 75 f0 jne 80102de0 <log_write+0x60>
break;
}
log.lh.block[i] = b->blockno;
80102df0: 89 14 85 ec 26 11 80 mov %edx,-0x7feed914(,%eax,4)
if (i == log.lh.n)
log.lh.n++;
80102df7: 83 c0 01 add $0x1,%eax
80102dfa: a3 e8 26 11 80 mov %eax,0x801126e8
b->flags |= B_DIRTY; // prevent eviction
80102dff: 83 0b 04 orl $0x4,(%ebx)
release(&log.lock);
80102e02: c7 45 08 a0 26 11 80 movl $0x801126a0,0x8(%ebp)
}
80102e09: 8b 5d fc mov -0x4(%ebp),%ebx
80102e0c: c9 leave
release(&log.lock);
80102e0d: e9 1e 17 00 00 jmp 80104530 <release>
80102e12: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
log.lh.block[i] = b->blockno;
80102e18: 89 14 85 ec 26 11 80 mov %edx,-0x7feed914(,%eax,4)
80102e1f: eb de jmp 80102dff <log_write+0x7f>
80102e21: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
80102e28: 8b 43 08 mov 0x8(%ebx),%eax
80102e2b: a3 ec 26 11 80 mov %eax,0x801126ec
if (i == log.lh.n)
80102e30: 75 cd jne 80102dff <log_write+0x7f>
80102e32: 31 c0 xor %eax,%eax
80102e34: eb c1 jmp 80102df7 <log_write+0x77>
panic("too big a transaction");
80102e36: 83 ec 0c sub $0xc,%esp
80102e39: 68 13 75 10 80 push $0x80107513
80102e3e: e8 4d d5 ff ff call 80100390 <panic>
panic("log_write outside of trans");
80102e43: 83 ec 0c sub $0xc,%esp
80102e46: 68 29 75 10 80 push $0x80107529
80102e4b: e8 40 d5 ff ff call 80100390 <panic>
80102e50 <mpmain>:
}
// Common CPU setup code.
static void
mpmain(void)
{
80102e50: 55 push %ebp
80102e51: 89 e5 mov %esp,%ebp
80102e53: 53 push %ebx
80102e54: 83 ec 04 sub $0x4,%esp
cprintf("cpu%d: starting %d\n", cpuid(), cpuid());
80102e57: e8 64 09 00 00 call 801037c0 <cpuid>
80102e5c: 89 c3 mov %eax,%ebx
80102e5e: e8 5d 09 00 00 call 801037c0 <cpuid>
80102e63: 83 ec 04 sub $0x4,%esp
80102e66: 53 push %ebx
80102e67: 50 push %eax
80102e68: 68 44 75 10 80 push $0x80107544
80102e6d: e8 ee d7 ff ff call 80100660 <cprintf>
idtinit(); // load idt register
80102e72: e8 19 2a 00 00 call 80105890 <idtinit>
xchg(&(mycpu()->started), 1); // tell startothers() we're up
80102e77: e8 d4 08 00 00 call 80103750 <mycpu>
80102e7c: 89 c2 mov %eax,%edx
xchg(volatile uint *addr, uint newval)
{
uint result;
// The + in "+m" denotes a read-modify-write operand.
asm volatile("lock; xchgl %0, %1" :
80102e7e: b8 01 00 00 00 mov $0x1,%eax
80102e83: f0 87 82 a0 00 00 00 lock xchg %eax,0xa0(%edx)
scheduler(); // start running processes
80102e8a: e8 11 0c 00 00 call 80103aa0 <scheduler>
80102e8f: 90 nop
80102e90 <mpenter>:
{
80102e90: 55 push %ebp
80102e91: 89 e5 mov %esp,%ebp
80102e93: 83 ec 08 sub $0x8,%esp
switchkvm();
80102e96: e8 e5 3a 00 00 call 80106980 <switchkvm>
seginit();
80102e9b: e8 50 3a 00 00 call 801068f0 <seginit>
lapicinit();
80102ea0: e8 9b f7 ff ff call 80102640 <lapicinit>
mpmain();
80102ea5: e8 a6 ff ff ff call 80102e50 <mpmain>
80102eaa: 66 90 xchg %ax,%ax
80102eac: 66 90 xchg %ax,%ax
80102eae: 66 90 xchg %ax,%ax
80102eb0 <main>:
{
80102eb0: 8d 4c 24 04 lea 0x4(%esp),%ecx
80102eb4: 83 e4 f0 and $0xfffffff0,%esp
80102eb7: ff 71 fc pushl -0x4(%ecx)
80102eba: 55 push %ebp
80102ebb: 89 e5 mov %esp,%ebp
80102ebd: 53 push %ebx
80102ebe: 51 push %ecx
kinit1(end, P2V(4*1024*1024)); // phys page allocator
80102ebf: 83 ec 08 sub $0x8,%esp
80102ec2: 68 00 00 40 80 push $0x80400000
80102ec7: 68 a8 51 11 80 push $0x801151a8
80102ecc: e8 2f f5 ff ff call 80102400 <kinit1>
kvmalloc(); // kernel page table
80102ed1: e8 7a 3f 00 00 call 80106e50 <kvmalloc>
mpinit(); // detect other processors
80102ed6: e8 75 01 00 00 call 80103050 <mpinit>
lapicinit(); // interrupt controller
80102edb: e8 60 f7 ff ff call 80102640 <lapicinit>
seginit(); // segment descriptors
80102ee0: e8 0b 3a 00 00 call 801068f0 <seginit>
picinit(); // disable pic
80102ee5: e8 46 03 00 00 call 80103230 <picinit>
ioapicinit(); // another interrupt controller
80102eea: e8 41 f3 ff ff call 80102230 <ioapicinit>
consoleinit(); // console hardware
80102eef: e8 cc da ff ff call 801009c0 <consoleinit>
uartinit(); // serial port
80102ef4: e8 c7 2c 00 00 call 80105bc0 <uartinit>
pinit(); // process table
80102ef9: e8 32 08 00 00 call 80103730 <pinit>
tvinit(); // trap vectors
80102efe: e8 0d 29 00 00 call 80105810 <tvinit>
binit(); // buffer cache
80102f03: e8 38 d1 ff ff call 80100040 <binit>
fileinit(); // file table
80102f08: e8 53 de ff ff call 80100d60 <fileinit>
ideinit(); // disk
80102f0d: e8 fe f0 ff ff call 80102010 <ideinit>
// Write entry code to unused memory at 0x7000.
// The linker has placed the image of entryother.S in
// _binary_entryother_start.
code = P2V(0x7000);
memmove(code, _binary_entryother_start, (uint)_binary_entryother_size);
80102f12: 83 c4 0c add $0xc,%esp
80102f15: 68 8a 00 00 00 push $0x8a
80102f1a: 68 8c a4 10 80 push $0x8010a48c
80102f1f: 68 00 70 00 80 push $0x80007000
80102f24: e8 17 17 00 00 call 80104640 <memmove>
for(c = cpus; c < cpus+ncpu; c++){
80102f29: 69 05 00 29 11 80 b0 imul $0xb0,0x80112900,%eax
80102f30: 00 00 00
80102f33: 83 c4 10 add $0x10,%esp
80102f36: 05 a0 27 11 80 add $0x801127a0,%eax
80102f3b: 3d a0 27 11 80 cmp $0x801127a0,%eax
80102f40: 76 71 jbe 80102fb3 <main+0x103>
80102f42: bb a0 27 11 80 mov $0x801127a0,%ebx
80102f47: 89 f6 mov %esi,%esi
80102f49: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
if(c == mycpu()) // We've started already.
80102f50: e8 fb 07 00 00 call 80103750 <mycpu>
80102f55: 39 d8 cmp %ebx,%eax
80102f57: 74 41 je 80102f9a <main+0xea>
continue;
// Tell entryother.S what stack to use, where to enter, and what
// pgdir to use. We cannot use kpgdir yet, because the AP processor
// is running in low memory, so we use entrypgdir for the APs too.
stack = kalloc();
80102f59: e8 72 f5 ff ff call 801024d0 <kalloc>
*(void**)(code-4) = stack + KSTACKSIZE;
80102f5e: 05 00 10 00 00 add $0x1000,%eax
*(void**)(code-8) = mpenter;
80102f63: c7 05 f8 6f 00 80 90 movl $0x80102e90,0x80006ff8
80102f6a: 2e 10 80
*(int**)(code-12) = (void *) V2P(entrypgdir);
80102f6d: c7 05 f4 6f 00 80 00 movl $0x109000,0x80006ff4
80102f74: 90 10 00
*(void**)(code-4) = stack + KSTACKSIZE;
80102f77: a3 fc 6f 00 80 mov %eax,0x80006ffc
lapicstartap(c->apicid, V2P(code));
80102f7c: 0f b6 03 movzbl (%ebx),%eax
80102f7f: 83 ec 08 sub $0x8,%esp
80102f82: 68 00 70 00 00 push $0x7000
80102f87: 50 push %eax
80102f88: e8 03 f8 ff ff call 80102790 <lapicstartap>
80102f8d: 83 c4 10 add $0x10,%esp
// wait for cpu to finish mpmain()
while(c->started == 0)
80102f90: 8b 83 a0 00 00 00 mov 0xa0(%ebx),%eax
80102f96: 85 c0 test %eax,%eax
80102f98: 74 f6 je 80102f90 <main+0xe0>
for(c = cpus; c < cpus+ncpu; c++){
80102f9a: 69 05 00 29 11 80 b0 imul $0xb0,0x80112900,%eax
80102fa1: 00 00 00
80102fa4: 81 c3 b0 00 00 00 add $0xb0,%ebx
80102faa: 05 a0 27 11 80 add $0x801127a0,%eax
80102faf: 39 c3 cmp %eax,%ebx
80102fb1: 72 9d jb 80102f50 <main+0xa0>
kinit2(P2V(4*1024*1024), P2V(PHYSTOP)); // must come after startothers()
80102fb3: 83 ec 08 sub $0x8,%esp
80102fb6: 68 00 00 00 8e push $0x8e000000
80102fbb: 68 00 00 40 80 push $0x80400000
80102fc0: e8 ab f4 ff ff call 80102470 <kinit2>
userinit(); // first user process
80102fc5: e8 46 08 00 00 call 80103810 <userinit>
mpmain(); // finish this processor's setup
80102fca: e8 81 fe ff ff call 80102e50 <mpmain>
80102fcf: 90 nop
80102fd0 <mpsearch1>:
}
// Look for an MP structure in the len bytes at addr.
static struct mp*
mpsearch1(uint a, int len)
{
80102fd0: 55 push %ebp
80102fd1: 89 e5 mov %esp,%ebp
80102fd3: 57 push %edi
80102fd4: 56 push %esi
uchar *e, *p, *addr;
addr = P2V(a);
80102fd5: 8d b0 00 00 00 80 lea -0x80000000(%eax),%esi
{
80102fdb: 53 push %ebx
e = addr+len;
80102fdc: 8d 1c 16 lea (%esi,%edx,1),%ebx
{
80102fdf: 83 ec 0c sub $0xc,%esp
for(p = addr; p < e; p += sizeof(struct mp))
80102fe2: 39 de cmp %ebx,%esi
80102fe4: 72 10 jb 80102ff6 <mpsearch1+0x26>
80102fe6: eb 50 jmp 80103038 <mpsearch1+0x68>
80102fe8: 90 nop
80102fe9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
80102ff0: 39 fb cmp %edi,%ebx
80102ff2: 89 fe mov %edi,%esi
80102ff4: 76 42 jbe 80103038 <mpsearch1+0x68>
if(memcmp(p, "_MP_", 4) == 0 && sum(p, sizeof(struct mp)) == 0)
80102ff6: 83 ec 04 sub $0x4,%esp
80102ff9: 8d 7e 10 lea 0x10(%esi),%edi
80102ffc: 6a 04 push $0x4
80102ffe: 68 58 75 10 80 push $0x80107558
80103003: 56 push %esi
80103004: e8 d7 15 00 00 call 801045e0 <memcmp>
80103009: 83 c4 10 add $0x10,%esp
8010300c: 85 c0 test %eax,%eax
8010300e: 75 e0 jne 80102ff0 <mpsearch1+0x20>
80103010: 89 f1 mov %esi,%ecx
80103012: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
sum += addr[i];
80103018: 0f b6 11 movzbl (%ecx),%edx
8010301b: 83 c1 01 add $0x1,%ecx
8010301e: 01 d0 add %edx,%eax
for(i=0; i<len; i++)
80103020: 39 f9 cmp %edi,%ecx
80103022: 75 f4 jne 80103018 <mpsearch1+0x48>
if(memcmp(p, "_MP_", 4) == 0 && sum(p, sizeof(struct mp)) == 0)
80103024: 84 c0 test %al,%al
80103026: 75 c8 jne 80102ff0 <mpsearch1+0x20>
return (struct mp*)p;
return 0;
}
80103028: 8d 65 f4 lea -0xc(%ebp),%esp
8010302b: 89 f0 mov %esi,%eax
8010302d: 5b pop %ebx
8010302e: 5e pop %esi
8010302f: 5f pop %edi
80103030: 5d pop %ebp
80103031: c3 ret
80103032: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
80103038: 8d 65 f4 lea -0xc(%ebp),%esp
return 0;
8010303b: 31 f6 xor %esi,%esi
}
8010303d: 89 f0 mov %esi,%eax
8010303f: 5b pop %ebx
80103040: 5e pop %esi
80103041: 5f pop %edi
80103042: 5d pop %ebp
80103043: c3 ret
80103044: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
8010304a: 8d bf 00 00 00 00 lea 0x0(%edi),%edi
80103050 <mpinit>:
return conf;
}
void
mpinit(void)
{
80103050: 55 push %ebp
80103051: 89 e5 mov %esp,%ebp
80103053: 57 push %edi
80103054: 56 push %esi
80103055: 53 push %ebx
80103056: 83 ec 1c sub $0x1c,%esp
if((p = ((bda[0x0F]<<8)| bda[0x0E]) << 4)){
80103059: 0f b6 05 0f 04 00 80 movzbl 0x8000040f,%eax
80103060: 0f b6 15 0e 04 00 80 movzbl 0x8000040e,%edx
80103067: c1 e0 08 shl $0x8,%eax
8010306a: 09 d0 or %edx,%eax
8010306c: c1 e0 04 shl $0x4,%eax
8010306f: 85 c0 test %eax,%eax
80103071: 75 1b jne 8010308e <mpinit+0x3e>
p = ((bda[0x14]<<8)|bda[0x13])*1024;
80103073: 0f b6 05 14 04 00 80 movzbl 0x80000414,%eax
8010307a: 0f b6 15 13 04 00 80 movzbl 0x80000413,%edx
80103081: c1 e0 08 shl $0x8,%eax
80103084: 09 d0 or %edx,%eax
80103086: c1 e0 0a shl $0xa,%eax
if((mp = mpsearch1(p-1024, 1024)))
80103089: 2d 00 04 00 00 sub $0x400,%eax
if((mp = mpsearch1(p, 1024)))
8010308e: ba 00 04 00 00 mov $0x400,%edx
80103093: e8 38 ff ff ff call 80102fd0 <mpsearch1>
80103098: 85 c0 test %eax,%eax
8010309a: 89 45 e4 mov %eax,-0x1c(%ebp)
8010309d: 0f 84 3d 01 00 00 je 801031e0 <mpinit+0x190>
if((mp = mpsearch()) == 0 || mp->physaddr == 0)
801030a3: 8b 45 e4 mov -0x1c(%ebp),%eax
801030a6: 8b 58 04 mov 0x4(%eax),%ebx
801030a9: 85 db test %ebx,%ebx
801030ab: 0f 84 4f 01 00 00 je 80103200 <mpinit+0x1b0>
conf = (struct mpconf*) P2V((uint) mp->physaddr);
801030b1: 8d b3 00 00 00 80 lea -0x80000000(%ebx),%esi
if(memcmp(conf, "PCMP", 4) != 0)
801030b7: 83 ec 04 sub $0x4,%esp
801030ba: 6a 04 push $0x4
801030bc: 68 75 75 10 80 push $0x80107575
801030c1: 56 push %esi
801030c2: e8 19 15 00 00 call 801045e0 <memcmp>
801030c7: 83 c4 10 add $0x10,%esp
801030ca: 85 c0 test %eax,%eax
801030cc: 0f 85 2e 01 00 00 jne 80103200 <mpinit+0x1b0>
if(conf->version != 1 && conf->version != 4)
801030d2: 0f b6 83 06 00 00 80 movzbl -0x7ffffffa(%ebx),%eax
801030d9: 3c 01 cmp $0x1,%al
801030db: 0f 95 c2 setne %dl
801030de: 3c 04 cmp $0x4,%al
801030e0: 0f 95 c0 setne %al
801030e3: 20 c2 and %al,%dl
801030e5: 0f 85 15 01 00 00 jne 80103200 <mpinit+0x1b0>
if(sum((uchar*)conf, conf->length) != 0)
801030eb: 0f b7 bb 04 00 00 80 movzwl -0x7ffffffc(%ebx),%edi
for(i=0; i<len; i++)
801030f2: 66 85 ff test %di,%di
801030f5: 74 1a je 80103111 <mpinit+0xc1>
801030f7: 89 f0 mov %esi,%eax
801030f9: 01 f7 add %esi,%edi
sum = 0;
801030fb: 31 d2 xor %edx,%edx
801030fd: 8d 76 00 lea 0x0(%esi),%esi
sum += addr[i];
80103100: 0f b6 08 movzbl (%eax),%ecx
80103103: 83 c0 01 add $0x1,%eax
80103106: 01 ca add %ecx,%edx
for(i=0; i<len; i++)
80103108: 39 c7 cmp %eax,%edi
8010310a: 75 f4 jne 80103100 <mpinit+0xb0>
8010310c: 84 d2 test %dl,%dl
8010310e: 0f 95 c2 setne %dl
struct mp *mp;
struct mpconf *conf;
struct mpproc *proc;
struct mpioapic *ioapic;
if((conf = mpconfig(&mp)) == 0)
80103111: 85 f6 test %esi,%esi
80103113: 0f 84 e7 00 00 00 je 80103200 <mpinit+0x1b0>
80103119: 84 d2 test %dl,%dl
8010311b: 0f 85 df 00 00 00 jne 80103200 <mpinit+0x1b0>
panic("Expect to run on an SMP");
ismp = 1;
lapic = (uint*)conf->lapicaddr;
80103121: 8b 83 24 00 00 80 mov -0x7fffffdc(%ebx),%eax
80103127: a3 9c 26 11 80 mov %eax,0x8011269c
for(p=(uchar*)(conf+1), e=(uchar*)conf+conf->length; p<e; ){
8010312c: 0f b7 93 04 00 00 80 movzwl -0x7ffffffc(%ebx),%edx
80103133: 8d 83 2c 00 00 80 lea -0x7fffffd4(%ebx),%eax
ismp = 1;
80103139: bb 01 00 00 00 mov $0x1,%ebx
for(p=(uchar*)(conf+1), e=(uchar*)conf+conf->length; p<e; ){
8010313e: 01 d6 add %edx,%esi
80103140: 39 c6 cmp %eax,%esi
80103142: 76 23 jbe 80103167 <mpinit+0x117>
switch(*p){
80103144: 0f b6 10 movzbl (%eax),%edx
80103147: 80 fa 04 cmp $0x4,%dl
8010314a: 0f 87 ca 00 00 00 ja 8010321a <mpinit+0x1ca>
80103150: ff 24 95 9c 75 10 80 jmp *-0x7fef8a64(,%edx,4)
80103157: 89 f6 mov %esi,%esi
80103159: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
p += sizeof(struct mpioapic);
continue;
case MPBUS:
case MPIOINTR:
case MPLINTR:
p += 8;
80103160: 83 c0 08 add $0x8,%eax
for(p=(uchar*)(conf+1), e=(uchar*)conf+conf->length; p<e; ){
80103163: 39 c6 cmp %eax,%esi
80103165: 77 dd ja 80103144 <mpinit+0xf4>
default:
ismp = 0;
break;
}
}
if(!ismp)
80103167: 85 db test %ebx,%ebx
80103169: 0f 84 9e 00 00 00 je 8010320d <mpinit+0x1bd>
panic("Didn't find a suitable machine");
if(mp->imcrp){
8010316f: 8b 45 e4 mov -0x1c(%ebp),%eax
80103172: 80 78 0c 00 cmpb $0x0,0xc(%eax)
80103176: 74 15 je 8010318d <mpinit+0x13d>
asm volatile("out %0,%1" : : "a" (data), "d" (port));
80103178: b8 70 00 00 00 mov $0x70,%eax
8010317d: ba 22 00 00 00 mov $0x22,%edx
80103182: ee out %al,(%dx)
asm volatile("in %1,%0" : "=a" (data) : "d" (port));
80103183: ba 23 00 00 00 mov $0x23,%edx
80103188: ec in (%dx),%al
// Bochs doesn't support IMCR, so this doesn't run on Bochs.
// But it would on real hardware.
outb(0x22, 0x70); // Select IMCR
outb(0x23, inb(0x23) | 1); // Mask external interrupts.
80103189: 83 c8 01 or $0x1,%eax
asm volatile("out %0,%1" : : "a" (data), "d" (port));
8010318c: ee out %al,(%dx)
}
}
8010318d: 8d 65 f4 lea -0xc(%ebp),%esp
80103190: 5b pop %ebx
80103191: 5e pop %esi
80103192: 5f pop %edi
80103193: 5d pop %ebp
80103194: c3 ret
80103195: 8d 76 00 lea 0x0(%esi),%esi
if(ncpu < NCPU) {
80103198: 8b 0d 00 29 11 80 mov 0x80112900,%ecx
8010319e: 83 f9 01 cmp $0x1,%ecx
801031a1: 7f 19 jg 801031bc <mpinit+0x16c>
cpus[ncpu].apicid = proc->apicid; // apicid may differ from ncpu
801031a3: 0f b6 50 01 movzbl 0x1(%eax),%edx
801031a7: 69 f9 b0 00 00 00 imul $0xb0,%ecx,%edi
ncpu++;
801031ad: 83 c1 01 add $0x1,%ecx
801031b0: 89 0d 00 29 11 80 mov %ecx,0x80112900
cpus[ncpu].apicid = proc->apicid; // apicid may differ from ncpu
801031b6: 88 97 a0 27 11 80 mov %dl,-0x7feed860(%edi)
p += sizeof(struct mpproc);
801031bc: 83 c0 14 add $0x14,%eax
continue;
801031bf: e9 7c ff ff ff jmp 80103140 <mpinit+0xf0>
801031c4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
ioapicid = ioapic->apicno;
801031c8: 0f b6 50 01 movzbl 0x1(%eax),%edx
p += sizeof(struct mpioapic);
801031cc: 83 c0 08 add $0x8,%eax
ioapicid = ioapic->apicno;
801031cf: 88 15 80 27 11 80 mov %dl,0x80112780
continue;
801031d5: e9 66 ff ff ff jmp 80103140 <mpinit+0xf0>
801031da: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
return mpsearch1(0xF0000, 0x10000);
801031e0: ba 00 00 01 00 mov $0x10000,%edx
801031e5: b8 00 00 0f 00 mov $0xf0000,%eax
801031ea: e8 e1 fd ff ff call 80102fd0 <mpsearch1>
if((mp = mpsearch()) == 0 || mp->physaddr == 0)
801031ef: 85 c0 test %eax,%eax
return mpsearch1(0xF0000, 0x10000);
801031f1: 89 45 e4 mov %eax,-0x1c(%ebp)
if((mp = mpsearch()) == 0 || mp->physaddr == 0)
801031f4: 0f 85 a9 fe ff ff jne 801030a3 <mpinit+0x53>
801031fa: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
panic("Expect to run on an SMP");
80103200: 83 ec 0c sub $0xc,%esp
80103203: 68 5d 75 10 80 push $0x8010755d
80103208: e8 83 d1 ff ff call 80100390 <panic>
panic("Didn't find a suitable machine");
8010320d: 83 ec 0c sub $0xc,%esp
80103210: 68 7c 75 10 80 push $0x8010757c
80103215: e8 76 d1 ff ff call 80100390 <panic>
ismp = 0;
8010321a: 31 db xor %ebx,%ebx
8010321c: e9 26 ff ff ff jmp 80103147 <mpinit+0xf7>
80103221: 66 90 xchg %ax,%ax
80103223: 66 90 xchg %ax,%ax
80103225: 66 90 xchg %ax,%ax
80103227: 66 90 xchg %ax,%ax
80103229: 66 90 xchg %ax,%ax
8010322b: 66 90 xchg %ax,%ax
8010322d: 66 90 xchg %ax,%ax
8010322f: 90 nop
80103230 <picinit>:
#define IO_PIC2 0xA0 // Slave (IRQs 8-15)
// Don't use the 8259A interrupt controllers. Xv6 assumes SMP hardware.
void
picinit(void)
{
80103230: 55 push %ebp
80103231: b8 ff ff ff ff mov $0xffffffff,%eax
80103236: ba 21 00 00 00 mov $0x21,%edx
8010323b: 89 e5 mov %esp,%ebp
8010323d: ee out %al,(%dx)
8010323e: ba a1 00 00 00 mov $0xa1,%edx
80103243: ee out %al,(%dx)
// mask all interrupts
outb(IO_PIC1+1, 0xFF);
outb(IO_PIC2+1, 0xFF);
}
80103244: 5d pop %ebp
80103245: c3 ret
80103246: 66 90 xchg %ax,%ax
80103248: 66 90 xchg %ax,%ax
8010324a: 66 90 xchg %ax,%ax
8010324c: 66 90 xchg %ax,%ax
8010324e: 66 90 xchg %ax,%ax
80103250 <pipealloc>:
int writeopen; // write fd is still open
};
int
pipealloc(struct file **f0, struct file **f1)
{
80103250: 55 push %ebp
80103251: 89 e5 mov %esp,%ebp
80103253: 57 push %edi
80103254: 56 push %esi
80103255: 53 push %ebx
80103256: 83 ec 0c sub $0xc,%esp
80103259: 8b 5d 08 mov 0x8(%ebp),%ebx
8010325c: 8b 75 0c mov 0xc(%ebp),%esi
struct pipe *p;
p = 0;
*f0 = *f1 = 0;
8010325f: c7 06 00 00 00 00 movl $0x0,(%esi)
80103265: c7 03 00 00 00 00 movl $0x0,(%ebx)
if((*f0 = filealloc()) == 0 || (*f1 = filealloc()) == 0)
8010326b: e8 10 db ff ff call 80100d80 <filealloc>
80103270: 85 c0 test %eax,%eax
80103272: 89 03 mov %eax,(%ebx)
80103274: 74 22 je 80103298 <pipealloc+0x48>
80103276: e8 05 db ff ff call 80100d80 <filealloc>
8010327b: 85 c0 test %eax,%eax
8010327d: 89 06 mov %eax,(%esi)
8010327f: 74 3f je 801032c0 <pipealloc+0x70>
goto bad;
if((p = (struct pipe*)kalloc()) == 0)
80103281: e8 4a f2 ff ff call 801024d0 <kalloc>
80103286: 85 c0 test %eax,%eax
80103288: 89 c7 mov %eax,%edi
8010328a: 75 54 jne 801032e0 <pipealloc+0x90>
//PAGEBREAK: 20
bad:
if(p)
kfree((char*)p);
if(*f0)
8010328c: 8b 03 mov (%ebx),%eax
8010328e: 85 c0 test %eax,%eax
80103290: 75 34 jne 801032c6 <pipealloc+0x76>
80103292: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
fileclose(*f0);
if(*f1)
80103298: 8b 06 mov (%esi),%eax
8010329a: 85 c0 test %eax,%eax
8010329c: 74 0c je 801032aa <pipealloc+0x5a>
fileclose(*f1);
8010329e: 83 ec 0c sub $0xc,%esp
801032a1: 50 push %eax
801032a2: e8 99 db ff ff call 80100e40 <fileclose>
801032a7: 83 c4 10 add $0x10,%esp
return -1;
}
801032aa: 8d 65 f4 lea -0xc(%ebp),%esp
return -1;
801032ad: b8 ff ff ff ff mov $0xffffffff,%eax
}
801032b2: 5b pop %ebx
801032b3: 5e pop %esi
801032b4: 5f pop %edi
801032b5: 5d pop %ebp
801032b6: c3 ret
801032b7: 89 f6 mov %esi,%esi
801032b9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
if(*f0)
801032c0: 8b 03 mov (%ebx),%eax
801032c2: 85 c0 test %eax,%eax
801032c4: 74 e4 je 801032aa <pipealloc+0x5a>
fileclose(*f0);
801032c6: 83 ec 0c sub $0xc,%esp
801032c9: 50 push %eax
801032ca: e8 71 db ff ff call 80100e40 <fileclose>
if(*f1)
801032cf: 8b 06 mov (%esi),%eax
fileclose(*f0);
801032d1: 83 c4 10 add $0x10,%esp
if(*f1)
801032d4: 85 c0 test %eax,%eax
801032d6: 75 c6 jne 8010329e <pipealloc+0x4e>
801032d8: eb d0 jmp 801032aa <pipealloc+0x5a>
801032da: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
initlock(&p->lock, "pipe");
801032e0: 83 ec 08 sub $0x8,%esp
p->readopen = 1;
801032e3: c7 80 3c 02 00 00 01 movl $0x1,0x23c(%eax)
801032ea: 00 00 00
p->writeopen = 1;
801032ed: c7 80 40 02 00 00 01 movl $0x1,0x240(%eax)
801032f4: 00 00 00
p->nwrite = 0;
801032f7: c7 80 38 02 00 00 00 movl $0x0,0x238(%eax)
801032fe: 00 00 00
p->nread = 0;
80103301: c7 80 34 02 00 00 00 movl $0x0,0x234(%eax)
80103308: 00 00 00
initlock(&p->lock, "pipe");
8010330b: 68 b0 75 10 80 push $0x801075b0
80103310: 50 push %eax
80103311: e8 0a 10 00 00 call 80104320 <initlock>
(*f0)->type = FD_PIPE;
80103316: 8b 03 mov (%ebx),%eax
return 0;
80103318: 83 c4 10 add $0x10,%esp
(*f0)->type = FD_PIPE;
8010331b: c7 00 01 00 00 00 movl $0x1,(%eax)
(*f0)->readable = 1;
80103321: 8b 03 mov (%ebx),%eax
80103323: c6 40 08 01 movb $0x1,0x8(%eax)
(*f0)->writable = 0;
80103327: 8b 03 mov (%ebx),%eax
80103329: c6 40 09 00 movb $0x0,0x9(%eax)
(*f0)->pipe = p;
8010332d: 8b 03 mov (%ebx),%eax
8010332f: 89 78 0c mov %edi,0xc(%eax)
(*f1)->type = FD_PIPE;
80103332: 8b 06 mov (%esi),%eax
80103334: c7 00 01 00 00 00 movl $0x1,(%eax)
(*f1)->readable = 0;
8010333a: 8b 06 mov (%esi),%eax
8010333c: c6 40 08 00 movb $0x0,0x8(%eax)
(*f1)->writable = 1;
80103340: 8b 06 mov (%esi),%eax
80103342: c6 40 09 01 movb $0x1,0x9(%eax)
(*f1)->pipe = p;
80103346: 8b 06 mov (%esi),%eax
80103348: 89 78 0c mov %edi,0xc(%eax)
}
8010334b: 8d 65 f4 lea -0xc(%ebp),%esp
return 0;
8010334e: 31 c0 xor %eax,%eax
}
80103350: 5b pop %ebx
80103351: 5e pop %esi
80103352: 5f pop %edi
80103353: 5d pop %ebp
80103354: c3 ret
80103355: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80103359: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80103360 <pipeclose>:
void
pipeclose(struct pipe *p, int writable)
{
80103360: 55 push %ebp
80103361: 89 e5 mov %esp,%ebp
80103363: 56 push %esi
80103364: 53 push %ebx
80103365: 8b 5d 08 mov 0x8(%ebp),%ebx
80103368: 8b 75 0c mov 0xc(%ebp),%esi
acquire(&p->lock);
8010336b: 83 ec 0c sub $0xc,%esp
8010336e: 53 push %ebx
8010336f: e8 9c 10 00 00 call 80104410 <acquire>
if(writable){
80103374: 83 c4 10 add $0x10,%esp
80103377: 85 f6 test %esi,%esi
80103379: 74 45 je 801033c0 <pipeclose+0x60>
p->writeopen = 0;
wakeup(&p->nread);
8010337b: 8d 83 34 02 00 00 lea 0x234(%ebx),%eax
80103381: 83 ec 0c sub $0xc,%esp
p->writeopen = 0;
80103384: c7 83 40 02 00 00 00 movl $0x0,0x240(%ebx)
8010338b: 00 00 00
wakeup(&p->nread);
8010338e: 50 push %eax
8010338f: e8 bc 0b 00 00 call 80103f50 <wakeup>
80103394: 83 c4 10 add $0x10,%esp
} else {
p->readopen = 0;
wakeup(&p->nwrite);
}
if(p->readopen == 0 && p->writeopen == 0){
80103397: 8b 93 3c 02 00 00 mov 0x23c(%ebx),%edx
8010339d: 85 d2 test %edx,%edx
8010339f: 75 0a jne 801033ab <pipeclose+0x4b>
801033a1: 8b 83 40 02 00 00 mov 0x240(%ebx),%eax
801033a7: 85 c0 test %eax,%eax
801033a9: 74 35 je 801033e0 <pipeclose+0x80>
release(&p->lock);
kfree((char*)p);
} else
release(&p->lock);
801033ab: 89 5d 08 mov %ebx,0x8(%ebp)
}
801033ae: 8d 65 f8 lea -0x8(%ebp),%esp
801033b1: 5b pop %ebx
801033b2: 5e pop %esi
801033b3: 5d pop %ebp
release(&p->lock);
801033b4: e9 77 11 00 00 jmp 80104530 <release>
801033b9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
wakeup(&p->nwrite);
801033c0: 8d 83 38 02 00 00 lea 0x238(%ebx),%eax
801033c6: 83 ec 0c sub $0xc,%esp
p->readopen = 0;
801033c9: c7 83 3c 02 00 00 00 movl $0x0,0x23c(%ebx)
801033d0: 00 00 00
wakeup(&p->nwrite);
801033d3: 50 push %eax
801033d4: e8 77 0b 00 00 call 80103f50 <wakeup>
801033d9: 83 c4 10 add $0x10,%esp
801033dc: eb b9 jmp 80103397 <pipeclose+0x37>
801033de: 66 90 xchg %ax,%ax
release(&p->lock);
801033e0: 83 ec 0c sub $0xc,%esp
801033e3: 53 push %ebx
801033e4: e8 47 11 00 00 call 80104530 <release>
kfree((char*)p);
801033e9: 89 5d 08 mov %ebx,0x8(%ebp)
801033ec: 83 c4 10 add $0x10,%esp
}
801033ef: 8d 65 f8 lea -0x8(%ebp),%esp
801033f2: 5b pop %ebx
801033f3: 5e pop %esi
801033f4: 5d pop %ebp
kfree((char*)p);
801033f5: e9 26 ef ff ff jmp 80102320 <kfree>
801033fa: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
80103400 <pipewrite>:
//PAGEBREAK: 40
int
pipewrite(struct pipe *p, char *addr, int n)
{
80103400: 55 push %ebp
80103401: 89 e5 mov %esp,%ebp
80103403: 57 push %edi
80103404: 56 push %esi
80103405: 53 push %ebx
80103406: 83 ec 28 sub $0x28,%esp
80103409: 8b 5d 08 mov 0x8(%ebp),%ebx
int i;
acquire(&p->lock);
8010340c: 53 push %ebx
8010340d: e8 fe 0f 00 00 call 80104410 <acquire>
for(i = 0; i < n; i++){
80103412: 8b 45 10 mov 0x10(%ebp),%eax
80103415: 83 c4 10 add $0x10,%esp
80103418: 85 c0 test %eax,%eax
8010341a: 0f 8e c9 00 00 00 jle 801034e9 <pipewrite+0xe9>
80103420: 8b 4d 0c mov 0xc(%ebp),%ecx
80103423: 8b 83 38 02 00 00 mov 0x238(%ebx),%eax
while(p->nwrite == p->nread + PIPESIZE){ //DOC: pipewrite-full
if(p->readopen == 0 || myproc()->killed){
release(&p->lock);
return -1;
}
wakeup(&p->nread);
80103429: 8d bb 34 02 00 00 lea 0x234(%ebx),%edi
8010342f: 89 4d e4 mov %ecx,-0x1c(%ebp)
80103432: 03 4d 10 add 0x10(%ebp),%ecx
80103435: 89 4d e0 mov %ecx,-0x20(%ebp)
while(p->nwrite == p->nread + PIPESIZE){ //DOC: pipewrite-full
80103438: 8b 8b 34 02 00 00 mov 0x234(%ebx),%ecx
8010343e: 8d 91 00 02 00 00 lea 0x200(%ecx),%edx
80103444: 39 d0 cmp %edx,%eax
80103446: 75 71 jne 801034b9 <pipewrite+0xb9>
if(p->readopen == 0 || myproc()->killed){
80103448: 8b 83 3c 02 00 00 mov 0x23c(%ebx),%eax
8010344e: 85 c0 test %eax,%eax
80103450: 74 4e je 801034a0 <pipewrite+0xa0>
sleep(&p->nwrite, &p->lock); //DOC: pipewrite-sleep
80103452: 8d b3 38 02 00 00 lea 0x238(%ebx),%esi
80103458: eb 3a jmp 80103494 <pipewrite+0x94>
8010345a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
wakeup(&p->nread);
80103460: 83 ec 0c sub $0xc,%esp
80103463: 57 push %edi
80103464: e8 e7 0a 00 00 call 80103f50 <wakeup>
sleep(&p->nwrite, &p->lock); //DOC: pipewrite-sleep
80103469: 5a pop %edx
8010346a: 59 pop %ecx
8010346b: 53 push %ebx
8010346c: 56 push %esi
8010346d: e8 2e 09 00 00 call 80103da0 <sleep>
while(p->nwrite == p->nread + PIPESIZE){ //DOC: pipewrite-full
80103472: 8b 83 34 02 00 00 mov 0x234(%ebx),%eax
80103478: 8b 93 38 02 00 00 mov 0x238(%ebx),%edx
8010347e: 83 c4 10 add $0x10,%esp
80103481: 05 00 02 00 00 add $0x200,%eax
80103486: 39 c2 cmp %eax,%edx
80103488: 75 36 jne 801034c0 <pipewrite+0xc0>
if(p->readopen == 0 || myproc()->killed){
8010348a: 8b 83 3c 02 00 00 mov 0x23c(%ebx),%eax
80103490: 85 c0 test %eax,%eax
80103492: 74 0c je 801034a0 <pipewrite+0xa0>
80103494: e8 47 03 00 00 call 801037e0 <myproc>
80103499: 8b 40 28 mov 0x28(%eax),%eax
8010349c: 85 c0 test %eax,%eax
8010349e: 74 c0 je 80103460 <pipewrite+0x60>
release(&p->lock);
801034a0: 83 ec 0c sub $0xc,%esp
801034a3: 53 push %ebx
801034a4: e8 87 10 00 00 call 80104530 <release>
return -1;
801034a9: 83 c4 10 add $0x10,%esp
801034ac: b8 ff ff ff ff mov $0xffffffff,%eax
p->data[p->nwrite++ % PIPESIZE] = addr[i];
}
wakeup(&p->nread); //DOC: pipewrite-wakeup1
release(&p->lock);
return n;
}
801034b1: 8d 65 f4 lea -0xc(%ebp),%esp
801034b4: 5b pop %ebx
801034b5: 5e pop %esi
801034b6: 5f pop %edi
801034b7: 5d pop %ebp
801034b8: c3 ret
while(p->nwrite == p->nread + PIPESIZE){ //DOC: pipewrite-full
801034b9: 89 c2 mov %eax,%edx
801034bb: 90 nop
801034bc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
p->data[p->nwrite++ % PIPESIZE] = addr[i];
801034c0: 8b 75 e4 mov -0x1c(%ebp),%esi
801034c3: 8d 42 01 lea 0x1(%edx),%eax
801034c6: 81 e2 ff 01 00 00 and $0x1ff,%edx
801034cc: 89 83 38 02 00 00 mov %eax,0x238(%ebx)
801034d2: 83 c6 01 add $0x1,%esi
801034d5: 0f b6 4e ff movzbl -0x1(%esi),%ecx
for(i = 0; i < n; i++){
801034d9: 3b 75 e0 cmp -0x20(%ebp),%esi
801034dc: 89 75 e4 mov %esi,-0x1c(%ebp)
p->data[p->nwrite++ % PIPESIZE] = addr[i];
801034df: 88 4c 13 34 mov %cl,0x34(%ebx,%edx,1)
for(i = 0; i < n; i++){
801034e3: 0f 85 4f ff ff ff jne 80103438 <pipewrite+0x38>
wakeup(&p->nread); //DOC: pipewrite-wakeup1
801034e9: 8d 83 34 02 00 00 lea 0x234(%ebx),%eax
801034ef: 83 ec 0c sub $0xc,%esp
801034f2: 50 push %eax
801034f3: e8 58 0a 00 00 call 80103f50 <wakeup>
release(&p->lock);
801034f8: 89 1c 24 mov %ebx,(%esp)
801034fb: e8 30 10 00 00 call 80104530 <release>
return n;
80103500: 83 c4 10 add $0x10,%esp
80103503: 8b 45 10 mov 0x10(%ebp),%eax
80103506: eb a9 jmp 801034b1 <pipewrite+0xb1>
80103508: 90 nop
80103509: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
80103510 <piperead>:
int
piperead(struct pipe *p, char *addr, int n)
{
80103510: 55 push %ebp
80103511: 89 e5 mov %esp,%ebp
80103513: 57 push %edi
80103514: 56 push %esi
80103515: 53 push %ebx
80103516: 83 ec 18 sub $0x18,%esp
80103519: 8b 75 08 mov 0x8(%ebp),%esi
8010351c: 8b 7d 0c mov 0xc(%ebp),%edi
int i;
acquire(&p->lock);
8010351f: 56 push %esi
80103520: e8 eb 0e 00 00 call 80104410 <acquire>
while(p->nread == p->nwrite && p->writeopen){ //DOC: pipe-empty
80103525: 83 c4 10 add $0x10,%esp
80103528: 8b 8e 34 02 00 00 mov 0x234(%esi),%ecx
8010352e: 3b 8e 38 02 00 00 cmp 0x238(%esi),%ecx
80103534: 75 6a jne 801035a0 <piperead+0x90>
80103536: 8b 9e 40 02 00 00 mov 0x240(%esi),%ebx
8010353c: 85 db test %ebx,%ebx
8010353e: 0f 84 c4 00 00 00 je 80103608 <piperead+0xf8>
if(myproc()->killed){
release(&p->lock);
return -1;
}
sleep(&p->nread, &p->lock); //DOC: piperead-sleep
80103544: 8d 9e 34 02 00 00 lea 0x234(%esi),%ebx
8010354a: eb 2d jmp 80103579 <piperead+0x69>
8010354c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80103550: 83 ec 08 sub $0x8,%esp
80103553: 56 push %esi
80103554: 53 push %ebx
80103555: e8 46 08 00 00 call 80103da0 <sleep>
while(p->nread == p->nwrite && p->writeopen){ //DOC: pipe-empty
8010355a: 83 c4 10 add $0x10,%esp
8010355d: 8b 8e 34 02 00 00 mov 0x234(%esi),%ecx
80103563: 3b 8e 38 02 00 00 cmp 0x238(%esi),%ecx
80103569: 75 35 jne 801035a0 <piperead+0x90>
8010356b: 8b 96 40 02 00 00 mov 0x240(%esi),%edx
80103571: 85 d2 test %edx,%edx
80103573: 0f 84 8f 00 00 00 je 80103608 <piperead+0xf8>
if(myproc()->killed){
80103579: e8 62 02 00 00 call 801037e0 <myproc>
8010357e: 8b 48 28 mov 0x28(%eax),%ecx
80103581: 85 c9 test %ecx,%ecx
80103583: 74 cb je 80103550 <piperead+0x40>
release(&p->lock);
80103585: 83 ec 0c sub $0xc,%esp
return -1;
80103588: bb ff ff ff ff mov $0xffffffff,%ebx
release(&p->lock);
8010358d: 56 push %esi
8010358e: e8 9d 0f 00 00 call 80104530 <release>
return -1;
80103593: 83 c4 10 add $0x10,%esp
addr[i] = p->data[p->nread++ % PIPESIZE];
}
wakeup(&p->nwrite); //DOC: piperead-wakeup
release(&p->lock);
return i;
}
80103596: 8d 65 f4 lea -0xc(%ebp),%esp
80103599: 89 d8 mov %ebx,%eax
8010359b: 5b pop %ebx
8010359c: 5e pop %esi
8010359d: 5f pop %edi
8010359e: 5d pop %ebp
8010359f: c3 ret
for(i = 0; i < n; i++){ //DOC: piperead-copy
801035a0: 8b 45 10 mov 0x10(%ebp),%eax
801035a3: 85 c0 test %eax,%eax
801035a5: 7e 61 jle 80103608 <piperead+0xf8>
if(p->nread == p->nwrite)
801035a7: 31 db xor %ebx,%ebx
801035a9: eb 13 jmp 801035be <piperead+0xae>
801035ab: 90 nop
801035ac: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
801035b0: 8b 8e 34 02 00 00 mov 0x234(%esi),%ecx
801035b6: 3b 8e 38 02 00 00 cmp 0x238(%esi),%ecx
801035bc: 74 1f je 801035dd <piperead+0xcd>
addr[i] = p->data[p->nread++ % PIPESIZE];
801035be: 8d 41 01 lea 0x1(%ecx),%eax
801035c1: 81 e1 ff 01 00 00 and $0x1ff,%ecx
801035c7: 89 86 34 02 00 00 mov %eax,0x234(%esi)
801035cd: 0f b6 44 0e 34 movzbl 0x34(%esi,%ecx,1),%eax
801035d2: 88 04 1f mov %al,(%edi,%ebx,1)
for(i = 0; i < n; i++){ //DOC: piperead-copy
801035d5: 83 c3 01 add $0x1,%ebx
801035d8: 39 5d 10 cmp %ebx,0x10(%ebp)
801035db: 75 d3 jne 801035b0 <piperead+0xa0>
wakeup(&p->nwrite); //DOC: piperead-wakeup
801035dd: 8d 86 38 02 00 00 lea 0x238(%esi),%eax
801035e3: 83 ec 0c sub $0xc,%esp
801035e6: 50 push %eax
801035e7: e8 64 09 00 00 call 80103f50 <wakeup>
release(&p->lock);
801035ec: 89 34 24 mov %esi,(%esp)
801035ef: e8 3c 0f 00 00 call 80104530 <release>
return i;
801035f4: 83 c4 10 add $0x10,%esp
}
801035f7: 8d 65 f4 lea -0xc(%ebp),%esp
801035fa: 89 d8 mov %ebx,%eax
801035fc: 5b pop %ebx
801035fd: 5e pop %esi
801035fe: 5f pop %edi
801035ff: 5d pop %ebp
80103600: c3 ret
80103601: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
80103608: 31 db xor %ebx,%ebx
8010360a: eb d1 jmp 801035dd <piperead+0xcd>
8010360c: 66 90 xchg %ax,%ax
8010360e: 66 90 xchg %ax,%ax
80103610 <allocproc>:
// If found, change state to EMBRYO and initialize
// state required to run in the kernel.
// Otherwise return 0.
static struct proc*
allocproc(void)
{
80103610: 55 push %ebp
80103611: 89 e5 mov %esp,%ebp
80103613: 53 push %ebx
struct proc *p;
char *sp;
acquire(&ptable.lock);
for(p = ptable.proc; p < &ptable.proc[NPROC]; p++)
80103614: bb 54 29 11 80 mov $0x80112954,%ebx
{
80103619: 83 ec 10 sub $0x10,%esp
acquire(&ptable.lock);
8010361c: 68 20 29 11 80 push $0x80112920
80103621: e8 ea 0d 00 00 call 80104410 <acquire>
80103626: 83 c4 10 add $0x10,%esp
80103629: eb 10 jmp 8010363b <allocproc+0x2b>
8010362b: 90 nop
8010362c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
for(p = ptable.proc; p < &ptable.proc[NPROC]; p++)
80103630: 83 eb 80 sub $0xffffff80,%ebx
80103633: 81 fb 54 49 11 80 cmp $0x80114954,%ebx
80103639: 73 7d jae 801036b8 <allocproc+0xa8>
if(p->state == UNUSED)
8010363b: 8b 43 10 mov 0x10(%ebx),%eax
8010363e: 85 c0 test %eax,%eax
80103640: 75 ee jne 80103630 <allocproc+0x20>
release(&ptable.lock);
return 0;
found:
p->state = EMBRYO;
p->pid = nextpid++;
80103642: a1 04 a0 10 80 mov 0x8010a004,%eax
p->priority = 10;
release(&ptable.lock);
80103647: 83 ec 0c sub $0xc,%esp
p->state = EMBRYO;
8010364a: c7 43 10 01 00 00 00 movl $0x1,0x10(%ebx)
p->priority = 10;
80103651: c7 03 0a 00 00 00 movl $0xa,(%ebx)
p->pid = nextpid++;
80103657: 8d 50 01 lea 0x1(%eax),%edx
8010365a: 89 43 14 mov %eax,0x14(%ebx)
release(&ptable.lock);
8010365d: 68 20 29 11 80 push $0x80112920
p->pid = nextpid++;
80103662: 89 15 04 a0 10 80 mov %edx,0x8010a004
release(&ptable.lock);
80103668: e8 c3 0e 00 00 call 80104530 <release>
// Allocate kernel stack.
if((p->kstack = kalloc()) == 0){
8010366d: e8 5e ee ff ff call 801024d0 <kalloc>
80103672: 83 c4 10 add $0x10,%esp
80103675: 85 c0 test %eax,%eax
80103677: 89 43 0c mov %eax,0xc(%ebx)
8010367a: 74 55 je 801036d1 <allocproc+0xc1>
return 0;
}
sp = p->kstack + KSTACKSIZE;
// Leave room for trap frame.
sp -= sizeof *p->tf;
8010367c: 8d 90 b4 0f 00 00 lea 0xfb4(%eax),%edx
sp -= 4;
*(uint*)sp = (uint)trapret;
sp -= sizeof *p->context;
p->context = (struct context*)sp;
memset(p->context, 0, sizeof *p->context);
80103682: 83 ec 04 sub $0x4,%esp
sp -= sizeof *p->context;
80103685: 05 9c 0f 00 00 add $0xf9c,%eax
sp -= sizeof *p->tf;
8010368a: 89 53 1c mov %edx,0x1c(%ebx)
*(uint*)sp = (uint)trapret;
8010368d: c7 40 14 ff 57 10 80 movl $0x801057ff,0x14(%eax)
p->context = (struct context*)sp;
80103694: 89 43 20 mov %eax,0x20(%ebx)
memset(p->context, 0, sizeof *p->context);
80103697: 6a 14 push $0x14
80103699: 6a 00 push $0x0
8010369b: 50 push %eax
8010369c: e8 ef 0e 00 00 call 80104590 <memset>
p->context->eip = (uint)forkret;
801036a1: 8b 43 20 mov 0x20(%ebx),%eax
return p;
801036a4: 83 c4 10 add $0x10,%esp
p->context->eip = (uint)forkret;
801036a7: c7 40 10 e0 36 10 80 movl $0x801036e0,0x10(%eax)
}
801036ae: 89 d8 mov %ebx,%eax
801036b0: 8b 5d fc mov -0x4(%ebp),%ebx
801036b3: c9 leave
801036b4: c3 ret
801036b5: 8d 76 00 lea 0x0(%esi),%esi
release(&ptable.lock);
801036b8: 83 ec 0c sub $0xc,%esp
return 0;
801036bb: 31 db xor %ebx,%ebx
release(&ptable.lock);
801036bd: 68 20 29 11 80 push $0x80112920
801036c2: e8 69 0e 00 00 call 80104530 <release>
}
801036c7: 89 d8 mov %ebx,%eax
return 0;
801036c9: 83 c4 10 add $0x10,%esp
}
801036cc: 8b 5d fc mov -0x4(%ebp),%ebx
801036cf: c9 leave
801036d0: c3 ret
p->state = UNUSED;
801036d1: c7 43 10 00 00 00 00 movl $0x0,0x10(%ebx)
return 0;
801036d8: 31 db xor %ebx,%ebx
801036da: eb d2 jmp 801036ae <allocproc+0x9e>
801036dc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
801036e0 <forkret>:
// A fork child's very first scheduling by scheduler()
// will swtch here. "Return" to user space.
void
forkret(void)
{
801036e0: 55 push %ebp
801036e1: 89 e5 mov %esp,%ebp
801036e3: 83 ec 14 sub $0x14,%esp
static int first = 1;
// Still holding ptable.lock from scheduler.
release(&ptable.lock);
801036e6: 68 20 29 11 80 push $0x80112920
801036eb: e8 40 0e 00 00 call 80104530 <release>
if (first) {
801036f0: a1 00 a0 10 80 mov 0x8010a000,%eax
801036f5: 83 c4 10 add $0x10,%esp
801036f8: 85 c0 test %eax,%eax
801036fa: 75 04 jne 80103700 <forkret+0x20>
iinit(ROOTDEV);
initlog(ROOTDEV);
}
// Return to "caller", actually trapret (see allocproc).
}
801036fc: c9 leave
801036fd: c3 ret
801036fe: 66 90 xchg %ax,%ax
iinit(ROOTDEV);
80103700: 83 ec 0c sub $0xc,%esp
first = 0;
80103703: c7 05 00 a0 10 80 00 movl $0x0,0x8010a000
8010370a: 00 00 00
iinit(ROOTDEV);
8010370d: 6a 01 push $0x1
8010370f: e8 7c dd ff ff call 80101490 <iinit>
initlog(ROOTDEV);
80103714: c7 04 24 01 00 00 00 movl $0x1,(%esp)
8010371b: e8 f0 f3 ff ff call 80102b10 <initlog>
80103720: 83 c4 10 add $0x10,%esp
}
80103723: c9 leave
80103724: c3 ret
80103725: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80103729: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80103730 <pinit>:
{
80103730: 55 push %ebp
80103731: 89 e5 mov %esp,%ebp
80103733: 83 ec 10 sub $0x10,%esp
initlock(&ptable.lock, "ptable");
80103736: 68 b5 75 10 80 push $0x801075b5
8010373b: 68 20 29 11 80 push $0x80112920
80103740: e8 db 0b 00 00 call 80104320 <initlock>
}
80103745: 83 c4 10 add $0x10,%esp
80103748: c9 leave
80103749: c3 ret
8010374a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
80103750 <mycpu>:
{
80103750: 55 push %ebp
80103751: 89 e5 mov %esp,%ebp
80103753: 83 ec 08 sub $0x8,%esp
asm volatile("pushfl; popl %0" : "=r" (eflags));
80103756: 9c pushf
80103757: 58 pop %eax
if(readeflags()&FL_IF)
80103758: f6 c4 02 test $0x2,%ah
8010375b: 75 4a jne 801037a7 <mycpu+0x57>
apicid = lapicid();
8010375d: e8 de ef ff ff call 80102740 <lapicid>
for (i = 0; i < ncpu; ++i) {
80103762: 8b 15 00 29 11 80 mov 0x80112900,%edx
80103768: 85 d2 test %edx,%edx
8010376a: 7e 1b jle 80103787 <mycpu+0x37>
if (cpus[i].apicid == apicid)
8010376c: 0f b6 0d a0 27 11 80 movzbl 0x801127a0,%ecx
80103773: 39 c8 cmp %ecx,%eax
80103775: 74 21 je 80103798 <mycpu+0x48>
for (i = 0; i < ncpu; ++i) {
80103777: 83 fa 01 cmp $0x1,%edx
8010377a: 74 0b je 80103787 <mycpu+0x37>
if (cpus[i].apicid == apicid)
8010377c: 0f b6 15 50 28 11 80 movzbl 0x80112850,%edx
80103783: 39 d0 cmp %edx,%eax
80103785: 74 19 je 801037a0 <mycpu+0x50>
panic("unknown apicid\n");
80103787: 83 ec 0c sub $0xc,%esp
8010378a: 68 bc 75 10 80 push $0x801075bc
8010378f: e8 fc cb ff ff call 80100390 <panic>
80103794: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
if (cpus[i].apicid == apicid)
80103798: b8 a0 27 11 80 mov $0x801127a0,%eax
}
8010379d: c9 leave
8010379e: c3 ret
8010379f: 90 nop
if (cpus[i].apicid == apicid)
801037a0: b8 50 28 11 80 mov $0x80112850,%eax
}
801037a5: c9 leave
801037a6: c3 ret
panic("mycpu called with interrupts enabled\n");
801037a7: 83 ec 0c sub $0xc,%esp
801037aa: 68 98 76 10 80 push $0x80107698
801037af: e8 dc cb ff ff call 80100390 <panic>
801037b4: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
801037ba: 8d bf 00 00 00 00 lea 0x0(%edi),%edi
801037c0 <cpuid>:
cpuid() {
801037c0: 55 push %ebp
801037c1: 89 e5 mov %esp,%ebp
801037c3: 83 ec 08 sub $0x8,%esp
return mycpu()-cpus;
801037c6: e8 85 ff ff ff call 80103750 <mycpu>
801037cb: 2d a0 27 11 80 sub $0x801127a0,%eax
}
801037d0: c9 leave
return mycpu()-cpus;
801037d1: c1 f8 04 sar $0x4,%eax
801037d4: 69 c0 a3 8b 2e ba imul $0xba2e8ba3,%eax,%eax
}
801037da: c3 ret
801037db: 90 nop
801037dc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
801037e0 <myproc>:
myproc(void) {
801037e0: 55 push %ebp
801037e1: 89 e5 mov %esp,%ebp
801037e3: 53 push %ebx
801037e4: 83 ec 04 sub $0x4,%esp
pushcli();
801037e7: e8 e4 0b 00 00 call 801043d0 <pushcli>
c = mycpu();
801037ec: e8 5f ff ff ff call 80103750 <mycpu>
p = c->proc;
801037f1: 8b 98 ac 00 00 00 mov 0xac(%eax),%ebx
popcli();
801037f7: e8 d4 0c 00 00 call 801044d0 <popcli>
}
801037fc: 83 c4 04 add $0x4,%esp
801037ff: 89 d8 mov %ebx,%eax
80103801: 5b pop %ebx
80103802: 5d pop %ebp
80103803: c3 ret
80103804: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
8010380a: 8d bf 00 00 00 00 lea 0x0(%edi),%edi
80103810 <userinit>:
{
80103810: 55 push %ebp
80103811: 89 e5 mov %esp,%ebp
80103813: 53 push %ebx
80103814: 83 ec 04 sub $0x4,%esp
p = allocproc();
80103817: e8 f4 fd ff ff call 80103610 <allocproc>
8010381c: 89 c3 mov %eax,%ebx
initproc = p;
8010381e: a3 bc a5 10 80 mov %eax,0x8010a5bc
if((p->pgdir = setupkvm()) == 0)
80103823: e8 a8 35 00 00 call 80106dd0 <setupkvm>
80103828: 85 c0 test %eax,%eax
8010382a: 89 43 08 mov %eax,0x8(%ebx)
8010382d: 0f 84 be 00 00 00 je 801038f1 <userinit+0xe1>
inituvm(p->pgdir, _binary_initcode_start, (int)_binary_initcode_size);
80103833: 83 ec 04 sub $0x4,%esp
80103836: 68 2c 00 00 00 push $0x2c
8010383b: 68 60 a4 10 80 push $0x8010a460
80103840: 50 push %eax
80103841: e8 6a 32 00 00 call 80106ab0 <inituvm>
memset(p->tf, 0, sizeof(*p->tf));
80103846: 83 c4 0c add $0xc,%esp
p->sz = PGSIZE;
80103849: c7 43 04 00 10 00 00 movl $0x1000,0x4(%ebx)
memset(p->tf, 0, sizeof(*p->tf));
80103850: 6a 4c push $0x4c
80103852: 6a 00 push $0x0
80103854: ff 73 1c pushl 0x1c(%ebx)
80103857: e8 34 0d 00 00 call 80104590 <memset>
p->tf->cs = (SEG_UCODE << 3) | DPL_USER;
8010385c: 8b 43 1c mov 0x1c(%ebx),%eax
8010385f: ba 1b 00 00 00 mov $0x1b,%edx
p->tf->ds = (SEG_UDATA << 3) | DPL_USER;
80103864: b9 23 00 00 00 mov $0x23,%ecx
safestrcpy(p->name, "initcode", sizeof(p->name));
80103869: 83 c4 0c add $0xc,%esp
p->tf->cs = (SEG_UCODE << 3) | DPL_USER;
8010386c: 66 89 50 3c mov %dx,0x3c(%eax)
p->tf->ds = (SEG_UDATA << 3) | DPL_USER;
80103870: 8b 43 1c mov 0x1c(%ebx),%eax
80103873: 66 89 48 2c mov %cx,0x2c(%eax)
p->tf->es = p->tf->ds;
80103877: 8b 43 1c mov 0x1c(%ebx),%eax
8010387a: 0f b7 50 2c movzwl 0x2c(%eax),%edx
8010387e: 66 89 50 28 mov %dx,0x28(%eax)
p->tf->ss = p->tf->ds;
80103882: 8b 43 1c mov 0x1c(%ebx),%eax
80103885: 0f b7 50 2c movzwl 0x2c(%eax),%edx
80103889: 66 89 50 48 mov %dx,0x48(%eax)
p->tf->eflags = FL_IF;
8010388d: 8b 43 1c mov 0x1c(%ebx),%eax
80103890: c7 40 40 00 02 00 00 movl $0x200,0x40(%eax)
p->tf->esp = PGSIZE;
80103897: 8b 43 1c mov 0x1c(%ebx),%eax
8010389a: c7 40 44 00 10 00 00 movl $0x1000,0x44(%eax)
p->tf->eip = 0; // beginning of initcode.S
801038a1: 8b 43 1c mov 0x1c(%ebx),%eax
801038a4: c7 40 38 00 00 00 00 movl $0x0,0x38(%eax)
safestrcpy(p->name, "initcode", sizeof(p->name));
801038ab: 8d 43 70 lea 0x70(%ebx),%eax
801038ae: 6a 10 push $0x10
801038b0: 68 e5 75 10 80 push $0x801075e5
801038b5: 50 push %eax
801038b6: e8 b5 0e 00 00 call 80104770 <safestrcpy>
p->cwd = namei("/");
801038bb: c7 04 24 ee 75 10 80 movl $0x801075ee,(%esp)
801038c2: e8 29 e6 ff ff call 80101ef0 <namei>
801038c7: 89 43 6c mov %eax,0x6c(%ebx)
acquire(&ptable.lock);
801038ca: c7 04 24 20 29 11 80 movl $0x80112920,(%esp)
801038d1: e8 3a 0b 00 00 call 80104410 <acquire>
p->state = RUNNABLE;
801038d6: c7 43 10 03 00 00 00 movl $0x3,0x10(%ebx)
release(&ptable.lock);
801038dd: c7 04 24 20 29 11 80 movl $0x80112920,(%esp)
801038e4: e8 47 0c 00 00 call 80104530 <release>
}
801038e9: 83 c4 10 add $0x10,%esp
801038ec: 8b 5d fc mov -0x4(%ebp),%ebx
801038ef: c9 leave
801038f0: c3 ret
panic("userinit: out of memory?");
801038f1: 83 ec 0c sub $0xc,%esp
801038f4: 68 cc 75 10 80 push $0x801075cc
801038f9: e8 92 ca ff ff call 80100390 <panic>
801038fe: 66 90 xchg %ax,%ax
80103900 <growproc>:
{
80103900: 55 push %ebp
80103901: 89 e5 mov %esp,%ebp
80103903: 56 push %esi
80103904: 53 push %ebx
80103905: 8b 75 08 mov 0x8(%ebp),%esi
pushcli();
80103908: e8 c3 0a 00 00 call 801043d0 <pushcli>
c = mycpu();
8010390d: e8 3e fe ff ff call 80103750 <mycpu>
p = c->proc;
80103912: 8b 98 ac 00 00 00 mov 0xac(%eax),%ebx
popcli();
80103918: e8 b3 0b 00 00 call 801044d0 <popcli>
if(n > 0){
8010391d: 83 fe 00 cmp $0x0,%esi
sz = curproc->sz;
80103920: 8b 43 04 mov 0x4(%ebx),%eax
if(n > 0){
80103923: 7f 1b jg 80103940 <growproc+0x40>
} else if(n < 0){
80103925: 75 39 jne 80103960 <growproc+0x60>
switchuvm(curproc);
80103927: 83 ec 0c sub $0xc,%esp
curproc->sz = sz;
8010392a: 89 43 04 mov %eax,0x4(%ebx)
switchuvm(curproc);
8010392d: 53 push %ebx
8010392e: e8 6d 30 00 00 call 801069a0 <switchuvm>
return 0;
80103933: 83 c4 10 add $0x10,%esp
80103936: 31 c0 xor %eax,%eax
}
80103938: 8d 65 f8 lea -0x8(%ebp),%esp
8010393b: 5b pop %ebx
8010393c: 5e pop %esi
8010393d: 5d pop %ebp
8010393e: c3 ret
8010393f: 90 nop
if((sz = allocuvm(curproc->pgdir, sz, sz + n)) == 0)
80103940: 83 ec 04 sub $0x4,%esp
80103943: 01 c6 add %eax,%esi
80103945: 56 push %esi
80103946: 50 push %eax
80103947: ff 73 08 pushl 0x8(%ebx)
8010394a: e8 a1 32 00 00 call 80106bf0 <allocuvm>
8010394f: 83 c4 10 add $0x10,%esp
80103952: 85 c0 test %eax,%eax
80103954: 75 d1 jne 80103927 <growproc+0x27>
return -1;
80103956: b8 ff ff ff ff mov $0xffffffff,%eax
8010395b: eb db jmp 80103938 <growproc+0x38>
8010395d: 8d 76 00 lea 0x0(%esi),%esi
if((sz = deallocuvm(curproc->pgdir, sz, sz + n)) == 0)
80103960: 83 ec 04 sub $0x4,%esp
80103963: 01 c6 add %eax,%esi
80103965: 56 push %esi
80103966: 50 push %eax
80103967: ff 73 08 pushl 0x8(%ebx)
8010396a: e8 b1 33 00 00 call 80106d20 <deallocuvm>
8010396f: 83 c4 10 add $0x10,%esp
80103972: 85 c0 test %eax,%eax
80103974: 75 b1 jne 80103927 <growproc+0x27>
80103976: eb de jmp 80103956 <growproc+0x56>
80103978: 90 nop
80103979: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
80103980 <fork>:
{
80103980: 55 push %ebp
80103981: 89 e5 mov %esp,%ebp
80103983: 57 push %edi
80103984: 56 push %esi
80103985: 53 push %ebx
80103986: 83 ec 1c sub $0x1c,%esp
pushcli();
80103989: e8 42 0a 00 00 call 801043d0 <pushcli>
c = mycpu();
8010398e: e8 bd fd ff ff call 80103750 <mycpu>
p = c->proc;
80103993: 8b 98 ac 00 00 00 mov 0xac(%eax),%ebx
popcli();
80103999: e8 32 0b 00 00 call 801044d0 <popcli>
if((np = allocproc()) == 0){
8010399e: e8 6d fc ff ff call 80103610 <allocproc>
801039a3: 85 c0 test %eax,%eax
801039a5: 89 45 e4 mov %eax,-0x1c(%ebp)
801039a8: 0f 84 bf 00 00 00 je 80103a6d <fork+0xed>
if((np->pgdir = copyuvm(curproc->pgdir, curproc->sz)) == 0){
801039ae: 83 ec 08 sub $0x8,%esp
801039b1: ff 73 04 pushl 0x4(%ebx)
801039b4: ff 73 08 pushl 0x8(%ebx)
801039b7: 89 c7 mov %eax,%edi
801039b9: e8 e2 34 00 00 call 80106ea0 <copyuvm>
801039be: 83 c4 10 add $0x10,%esp
801039c1: 85 c0 test %eax,%eax
801039c3: 89 47 08 mov %eax,0x8(%edi)
801039c6: 0f 84 a8 00 00 00 je 80103a74 <fork+0xf4>
np->sz = curproc->sz;
801039cc: 8b 43 04 mov 0x4(%ebx),%eax
801039cf: 8b 4d e4 mov -0x1c(%ebp),%ecx
801039d2: 89 41 04 mov %eax,0x4(%ecx)
np->parent = curproc;
801039d5: 89 59 18 mov %ebx,0x18(%ecx)
801039d8: 89 c8 mov %ecx,%eax
*np->tf = *curproc->tf;
801039da: 8b 79 1c mov 0x1c(%ecx),%edi
801039dd: 8b 73 1c mov 0x1c(%ebx),%esi
801039e0: b9 13 00 00 00 mov $0x13,%ecx
801039e5: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
for(i = 0; i < NOFILE; i++)
801039e7: 31 f6 xor %esi,%esi
np->tf->eax = 0;
801039e9: 8b 40 1c mov 0x1c(%eax),%eax
801039ec: c7 40 1c 00 00 00 00 movl $0x0,0x1c(%eax)
801039f3: 90 nop
801039f4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
if(curproc->ofile[i])
801039f8: 8b 44 b3 2c mov 0x2c(%ebx,%esi,4),%eax
801039fc: 85 c0 test %eax,%eax
801039fe: 74 13 je 80103a13 <fork+0x93>
np->ofile[i] = filedup(curproc->ofile[i]);
80103a00: 83 ec 0c sub $0xc,%esp
80103a03: 50 push %eax
80103a04: e8 e7 d3 ff ff call 80100df0 <filedup>
80103a09: 8b 55 e4 mov -0x1c(%ebp),%edx
80103a0c: 83 c4 10 add $0x10,%esp
80103a0f: 89 44 b2 2c mov %eax,0x2c(%edx,%esi,4)
for(i = 0; i < NOFILE; i++)
80103a13: 83 c6 01 add $0x1,%esi
80103a16: 83 fe 10 cmp $0x10,%esi
80103a19: 75 dd jne 801039f8 <fork+0x78>
np->cwd = idup(curproc->cwd);
80103a1b: 83 ec 0c sub $0xc,%esp
80103a1e: ff 73 6c pushl 0x6c(%ebx)
safestrcpy(np->name, curproc->name, sizeof(curproc->name));
80103a21: 83 c3 70 add $0x70,%ebx
np->cwd = idup(curproc->cwd);
80103a24: e8 37 dc ff ff call 80101660 <idup>
80103a29: 8b 7d e4 mov -0x1c(%ebp),%edi
safestrcpy(np->name, curproc->name, sizeof(curproc->name));
80103a2c: 83 c4 0c add $0xc,%esp
np->cwd = idup(curproc->cwd);
80103a2f: 89 47 6c mov %eax,0x6c(%edi)
safestrcpy(np->name, curproc->name, sizeof(curproc->name));
80103a32: 8d 47 70 lea 0x70(%edi),%eax
80103a35: 6a 10 push $0x10
80103a37: 53 push %ebx
80103a38: 50 push %eax
80103a39: e8 32 0d 00 00 call 80104770 <safestrcpy>
pid = np->pid;
80103a3e: 8b 5f 14 mov 0x14(%edi),%ebx
acquire(&ptable.lock);
80103a41: c7 04 24 20 29 11 80 movl $0x80112920,(%esp)
80103a48: e8 c3 09 00 00 call 80104410 <acquire>
np->state = RUNNABLE;
80103a4d: c7 47 10 03 00 00 00 movl $0x3,0x10(%edi)
release(&ptable.lock);
80103a54: c7 04 24 20 29 11 80 movl $0x80112920,(%esp)
80103a5b: e8 d0 0a 00 00 call 80104530 <release>
return pid;
80103a60: 83 c4 10 add $0x10,%esp
}
80103a63: 8d 65 f4 lea -0xc(%ebp),%esp
80103a66: 89 d8 mov %ebx,%eax
80103a68: 5b pop %ebx
80103a69: 5e pop %esi
80103a6a: 5f pop %edi
80103a6b: 5d pop %ebp
80103a6c: c3 ret
return -1;
80103a6d: bb ff ff ff ff mov $0xffffffff,%ebx
80103a72: eb ef jmp 80103a63 <fork+0xe3>
kfree(np->kstack);
80103a74: 8b 5d e4 mov -0x1c(%ebp),%ebx
80103a77: 83 ec 0c sub $0xc,%esp
80103a7a: ff 73 0c pushl 0xc(%ebx)
80103a7d: e8 9e e8 ff ff call 80102320 <kfree>
np->kstack = 0;
80103a82: c7 43 0c 00 00 00 00 movl $0x0,0xc(%ebx)
np->state = UNUSED;
80103a89: c7 43 10 00 00 00 00 movl $0x0,0x10(%ebx)
return -1;
80103a90: 83 c4 10 add $0x10,%esp
80103a93: bb ff ff ff ff mov $0xffffffff,%ebx
80103a98: eb c9 jmp 80103a63 <fork+0xe3>
80103a9a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
80103aa0 <scheduler>:
{
80103aa0: 55 push %ebp
80103aa1: 89 e5 mov %esp,%ebp
80103aa3: 57 push %edi
80103aa4: 56 push %esi
80103aa5: 53 push %ebx
80103aa6: 83 ec 0c sub $0xc,%esp
struct cpu *c = mycpu();
80103aa9: e8 a2 fc ff ff call 80103750 <mycpu>
80103aae: 8d 70 04 lea 0x4(%eax),%esi
80103ab1: 89 c3 mov %eax,%ebx
c->proc = 0;
80103ab3: c7 80 ac 00 00 00 00 movl $0x0,0xac(%eax)
80103aba: 00 00 00
asm volatile("sti");
80103abd: fb sti
acquire(&ptable.lock);
80103abe: 83 ec 0c sub $0xc,%esp
for(p = ptable.proc; p < &ptable.proc[NPROC]; p++)
80103ac1: bf 54 29 11 80 mov $0x80112954,%edi
acquire(&ptable.lock);
80103ac6: 68 20 29 11 80 push $0x80112920
80103acb: e8 40 09 00 00 call 80104410 <acquire>
80103ad0: 83 c4 10 add $0x10,%esp
80103ad3: eb 0e jmp 80103ae3 <scheduler+0x43>
80103ad5: 8d 76 00 lea 0x0(%esi),%esi
for(p = ptable.proc; p < &ptable.proc[NPROC]; p++)
80103ad8: 83 ef 80 sub $0xffffff80,%edi
80103adb: 81 ff 54 49 11 80 cmp $0x80114954,%edi
80103ae1: 73 62 jae 80103b45 <scheduler+0xa5>
if(p->state != RUNNABLE)
80103ae3: 83 7f 10 03 cmpl $0x3,0x10(%edi)
80103ae7: 75 ef jne 80103ad8 <scheduler+0x38>
for(p1 = ptable.proc; p1 < &ptable.proc[NPROC]; p1++){
80103ae9: b8 54 29 11 80 mov $0x80112954,%eax
80103aee: 66 90 xchg %ax,%ax
if((p1->state == RUNNABLE) && (highP->priority > p1->priority))
80103af0: 83 78 10 03 cmpl $0x3,0x10(%eax)
80103af4: 75 07 jne 80103afd <scheduler+0x5d>
80103af6: 8b 10 mov (%eax),%edx
80103af8: 39 17 cmp %edx,(%edi)
80103afa: 0f 4f f8 cmovg %eax,%edi
for(p1 = ptable.proc; p1 < &ptable.proc[NPROC]; p1++){
80103afd: 83 e8 80 sub $0xffffff80,%eax
80103b00: 3d 54 49 11 80 cmp $0x80114954,%eax
80103b05: 72 e9 jb 80103af0 <scheduler+0x50>
switchuvm(p);
80103b07: 83 ec 0c sub $0xc,%esp
c->proc = p;
80103b0a: 89 bb ac 00 00 00 mov %edi,0xac(%ebx)
switchuvm(p);
80103b10: 57 push %edi
for(p = ptable.proc; p < &ptable.proc[NPROC]; p++)
80103b11: 83 ef 80 sub $0xffffff80,%edi
switchuvm(p);
80103b14: e8 87 2e 00 00 call 801069a0 <switchuvm>
p->state = RUNNING;
80103b19: c7 47 90 04 00 00 00 movl $0x4,-0x70(%edi)
swtch(&(c->scheduler), p->context);
80103b20: 58 pop %eax
80103b21: 5a pop %edx
80103b22: ff 77 a0 pushl -0x60(%edi)
80103b25: 56 push %esi
80103b26: e8 a0 0c 00 00 call 801047cb <swtch>
switchkvm();
80103b2b: e8 50 2e 00 00 call 80106980 <switchkvm>
c->proc = 0;
80103b30: 83 c4 10 add $0x10,%esp
for(p = ptable.proc; p < &ptable.proc[NPROC]; p++)
80103b33: 81 ff 54 49 11 80 cmp $0x80114954,%edi
c->proc = 0;
80103b39: c7 83 ac 00 00 00 00 movl $0x0,0xac(%ebx)
80103b40: 00 00 00
for(p = ptable.proc; p < &ptable.proc[NPROC]; p++)
80103b43: 72 9e jb 80103ae3 <scheduler+0x43>
release(&ptable.lock);
80103b45: 83 ec 0c sub $0xc,%esp
80103b48: 68 20 29 11 80 push $0x80112920
80103b4d: e8 de 09 00 00 call 80104530 <release>
sti();
80103b52: 83 c4 10 add $0x10,%esp
80103b55: e9 63 ff ff ff jmp 80103abd <scheduler+0x1d>
80103b5a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
80103b60 <sched>:
{
80103b60: 55 push %ebp
80103b61: 89 e5 mov %esp,%ebp
80103b63: 56 push %esi
80103b64: 53 push %ebx
pushcli();
80103b65: e8 66 08 00 00 call 801043d0 <pushcli>
c = mycpu();
80103b6a: e8 e1 fb ff ff call 80103750 <mycpu>
p = c->proc;
80103b6f: 8b 98 ac 00 00 00 mov 0xac(%eax),%ebx
popcli();
80103b75: e8 56 09 00 00 call 801044d0 <popcli>
if(!holding(&ptable.lock))
80103b7a: 83 ec 0c sub $0xc,%esp
80103b7d: 68 20 29 11 80 push $0x80112920
80103b82: e8 09 08 00 00 call 80104390 <holding>
80103b87: 83 c4 10 add $0x10,%esp
80103b8a: 85 c0 test %eax,%eax
80103b8c: 74 4f je 80103bdd <sched+0x7d>
if(mycpu()->ncli != 1)
80103b8e: e8 bd fb ff ff call 80103750 <mycpu>
80103b93: 83 b8 a4 00 00 00 01 cmpl $0x1,0xa4(%eax)
80103b9a: 75 68 jne 80103c04 <sched+0xa4>
if(p->state == RUNNING)
80103b9c: 83 7b 10 04 cmpl $0x4,0x10(%ebx)
80103ba0: 74 55 je 80103bf7 <sched+0x97>
asm volatile("pushfl; popl %0" : "=r" (eflags));
80103ba2: 9c pushf
80103ba3: 58 pop %eax
if(readeflags()&FL_IF)
80103ba4: f6 c4 02 test $0x2,%ah
80103ba7: 75 41 jne 80103bea <sched+0x8a>
intena = mycpu()->intena;
80103ba9: e8 a2 fb ff ff call 80103750 <mycpu>
swtch(&p->context, mycpu()->scheduler);
80103bae: 83 c3 20 add $0x20,%ebx
intena = mycpu()->intena;
80103bb1: 8b b0 a8 00 00 00 mov 0xa8(%eax),%esi
swtch(&p->context, mycpu()->scheduler);
80103bb7: e8 94 fb ff ff call 80103750 <mycpu>
80103bbc: 83 ec 08 sub $0x8,%esp
80103bbf: ff 70 04 pushl 0x4(%eax)
80103bc2: 53 push %ebx
80103bc3: e8 03 0c 00 00 call 801047cb <swtch>
mycpu()->intena = intena;
80103bc8: e8 83 fb ff ff call 80103750 <mycpu>
}
80103bcd: 83 c4 10 add $0x10,%esp
mycpu()->intena = intena;
80103bd0: 89 b0 a8 00 00 00 mov %esi,0xa8(%eax)
}
80103bd6: 8d 65 f8 lea -0x8(%ebp),%esp
80103bd9: 5b pop %ebx
80103bda: 5e pop %esi
80103bdb: 5d pop %ebp
80103bdc: c3 ret
panic("sched ptable.lock");
80103bdd: 83 ec 0c sub $0xc,%esp
80103be0: 68 f0 75 10 80 push $0x801075f0
80103be5: e8 a6 c7 ff ff call 80100390 <panic>
panic("sched interruptible");
80103bea: 83 ec 0c sub $0xc,%esp
80103bed: 68 1c 76 10 80 push $0x8010761c
80103bf2: e8 99 c7 ff ff call 80100390 <panic>
panic("sched running");
80103bf7: 83 ec 0c sub $0xc,%esp
80103bfa: 68 0e 76 10 80 push $0x8010760e
80103bff: e8 8c c7 ff ff call 80100390 <panic>
panic("sched locks");
80103c04: 83 ec 0c sub $0xc,%esp
80103c07: 68 02 76 10 80 push $0x80107602
80103c0c: e8 7f c7 ff ff call 80100390 <panic>
80103c11: eb 0d jmp 80103c20 <exit>
80103c13: 90 nop
80103c14: 90 nop
80103c15: 90 nop
80103c16: 90 nop
80103c17: 90 nop
80103c18: 90 nop
80103c19: 90 nop
80103c1a: 90 nop
80103c1b: 90 nop
80103c1c: 90 nop
80103c1d: 90 nop
80103c1e: 90 nop
80103c1f: 90 nop
80103c20 <exit>:
{
80103c20: 55 push %ebp
80103c21: 89 e5 mov %esp,%ebp
80103c23: 57 push %edi
80103c24: 56 push %esi
80103c25: 53 push %ebx
80103c26: 83 ec 0c sub $0xc,%esp
pushcli();
80103c29: e8 a2 07 00 00 call 801043d0 <pushcli>
c = mycpu();
80103c2e: e8 1d fb ff ff call 80103750 <mycpu>
p = c->proc;
80103c33: 8b b0 ac 00 00 00 mov 0xac(%eax),%esi
popcli();
80103c39: e8 92 08 00 00 call 801044d0 <popcli>
if(curproc == initproc)
80103c3e: 39 35 bc a5 10 80 cmp %esi,0x8010a5bc
80103c44: 8d 5e 2c lea 0x2c(%esi),%ebx
80103c47: 8d 7e 6c lea 0x6c(%esi),%edi
80103c4a: 0f 84 e7 00 00 00 je 80103d37 <exit+0x117>
if(curproc->ofile[fd]){
80103c50: 8b 03 mov (%ebx),%eax
80103c52: 85 c0 test %eax,%eax
80103c54: 74 12 je 80103c68 <exit+0x48>
fileclose(curproc->ofile[fd]);
80103c56: 83 ec 0c sub $0xc,%esp
80103c59: 50 push %eax
80103c5a: e8 e1 d1 ff ff call 80100e40 <fileclose>
curproc->ofile[fd] = 0;
80103c5f: c7 03 00 00 00 00 movl $0x0,(%ebx)
80103c65: 83 c4 10 add $0x10,%esp
80103c68: 83 c3 04 add $0x4,%ebx
for(fd = 0; fd < NOFILE; fd++){
80103c6b: 39 fb cmp %edi,%ebx
80103c6d: 75 e1 jne 80103c50 <exit+0x30>
begin_op();
80103c6f: e8 3c ef ff ff call 80102bb0 <begin_op>
iput(curproc->cwd);
80103c74: 83 ec 0c sub $0xc,%esp
80103c77: ff 76 6c pushl 0x6c(%esi)
80103c7a: e8 41 db ff ff call 801017c0 <iput>
end_op();
80103c7f: e8 9c ef ff ff call 80102c20 <end_op>
curproc->cwd = 0;
80103c84: c7 46 6c 00 00 00 00 movl $0x0,0x6c(%esi)
acquire(&ptable.lock);
80103c8b: c7 04 24 20 29 11 80 movl $0x80112920,(%esp)
80103c92: e8 79 07 00 00 call 80104410 <acquire>
wakeup1(curproc->parent);
80103c97: 8b 56 18 mov 0x18(%esi),%edx
80103c9a: 83 c4 10 add $0x10,%esp
static void
wakeup1(void *chan)
{
struct proc *p;
for(p = ptable.proc; p < &ptable.proc[NPROC]; p++)
80103c9d: b8 54 29 11 80 mov $0x80112954,%eax
80103ca2: eb 0e jmp 80103cb2 <exit+0x92>
80103ca4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80103ca8: 83 e8 80 sub $0xffffff80,%eax
80103cab: 3d 54 49 11 80 cmp $0x80114954,%eax
80103cb0: 73 1c jae 80103cce <exit+0xae>
if(p->state == SLEEPING && p->chan == chan)
80103cb2: 83 78 10 02 cmpl $0x2,0x10(%eax)
80103cb6: 75 f0 jne 80103ca8 <exit+0x88>
80103cb8: 3b 50 24 cmp 0x24(%eax),%edx
80103cbb: 75 eb jne 80103ca8 <exit+0x88>
p->state = RUNNABLE;
80103cbd: c7 40 10 03 00 00 00 movl $0x3,0x10(%eax)
for(p = ptable.proc; p < &ptable.proc[NPROC]; p++)
80103cc4: 83 e8 80 sub $0xffffff80,%eax
80103cc7: 3d 54 49 11 80 cmp $0x80114954,%eax
80103ccc: 72 e4 jb 80103cb2 <exit+0x92>
p->parent = initproc;
80103cce: 8b 0d bc a5 10 80 mov 0x8010a5bc,%ecx
for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){
80103cd4: ba 54 29 11 80 mov $0x80112954,%edx
80103cd9: eb 10 jmp 80103ceb <exit+0xcb>
80103cdb: 90 nop
80103cdc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80103ce0: 83 ea 80 sub $0xffffff80,%edx
80103ce3: 81 fa 54 49 11 80 cmp $0x80114954,%edx
80103ce9: 73 33 jae 80103d1e <exit+0xfe>
if(p->parent == curproc){
80103ceb: 39 72 18 cmp %esi,0x18(%edx)
80103cee: 75 f0 jne 80103ce0 <exit+0xc0>
if(p->state == ZOMBIE)
80103cf0: 83 7a 10 05 cmpl $0x5,0x10(%edx)
p->parent = initproc;
80103cf4: 89 4a 18 mov %ecx,0x18(%edx)
if(p->state == ZOMBIE)
80103cf7: 75 e7 jne 80103ce0 <exit+0xc0>
for(p = ptable.proc; p < &ptable.proc[NPROC]; p++)
80103cf9: b8 54 29 11 80 mov $0x80112954,%eax
80103cfe: eb 0a jmp 80103d0a <exit+0xea>
80103d00: 83 e8 80 sub $0xffffff80,%eax
80103d03: 3d 54 49 11 80 cmp $0x80114954,%eax
80103d08: 73 d6 jae 80103ce0 <exit+0xc0>
if(p->state == SLEEPING && p->chan == chan)
80103d0a: 83 78 10 02 cmpl $0x2,0x10(%eax)
80103d0e: 75 f0 jne 80103d00 <exit+0xe0>
80103d10: 3b 48 24 cmp 0x24(%eax),%ecx
80103d13: 75 eb jne 80103d00 <exit+0xe0>
p->state = RUNNABLE;
80103d15: c7 40 10 03 00 00 00 movl $0x3,0x10(%eax)
80103d1c: eb e2 jmp 80103d00 <exit+0xe0>
curproc->state = ZOMBIE;
80103d1e: c7 46 10 05 00 00 00 movl $0x5,0x10(%esi)
sched();
80103d25: e8 36 fe ff ff call 80103b60 <sched>
panic("zombie exit");
80103d2a: 83 ec 0c sub $0xc,%esp
80103d2d: 68 3d 76 10 80 push $0x8010763d
80103d32: e8 59 c6 ff ff call 80100390 <panic>
panic("init exiting");
80103d37: 83 ec 0c sub $0xc,%esp
80103d3a: 68 30 76 10 80 push $0x80107630
80103d3f: e8 4c c6 ff ff call 80100390 <panic>
80103d44: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
80103d4a: 8d bf 00 00 00 00 lea 0x0(%edi),%edi
80103d50 <yield>:
{
80103d50: 55 push %ebp
80103d51: 89 e5 mov %esp,%ebp
80103d53: 53 push %ebx
80103d54: 83 ec 10 sub $0x10,%esp
acquire(&ptable.lock); //DOC: yieldlock
80103d57: 68 20 29 11 80 push $0x80112920
80103d5c: e8 af 06 00 00 call 80104410 <acquire>
pushcli();
80103d61: e8 6a 06 00 00 call 801043d0 <pushcli>
c = mycpu();
80103d66: e8 e5 f9 ff ff call 80103750 <mycpu>
p = c->proc;
80103d6b: 8b 98 ac 00 00 00 mov 0xac(%eax),%ebx
popcli();
80103d71: e8 5a 07 00 00 call 801044d0 <popcli>
myproc()->state = RUNNABLE;
80103d76: c7 43 10 03 00 00 00 movl $0x3,0x10(%ebx)
sched();
80103d7d: e8 de fd ff ff call 80103b60 <sched>
release(&ptable.lock);
80103d82: c7 04 24 20 29 11 80 movl $0x80112920,(%esp)
80103d89: e8 a2 07 00 00 call 80104530 <release>
}
80103d8e: 83 c4 10 add $0x10,%esp
80103d91: 8b 5d fc mov -0x4(%ebp),%ebx
80103d94: c9 leave
80103d95: c3 ret
80103d96: 8d 76 00 lea 0x0(%esi),%esi
80103d99: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80103da0 <sleep>:
{
80103da0: 55 push %ebp
80103da1: 89 e5 mov %esp,%ebp
80103da3: 57 push %edi
80103da4: 56 push %esi
80103da5: 53 push %ebx
80103da6: 83 ec 0c sub $0xc,%esp
80103da9: 8b 7d 08 mov 0x8(%ebp),%edi
80103dac: 8b 75 0c mov 0xc(%ebp),%esi
pushcli();
80103daf: e8 1c 06 00 00 call 801043d0 <pushcli>
c = mycpu();
80103db4: e8 97 f9 ff ff call 80103750 <mycpu>
p = c->proc;
80103db9: 8b 98 ac 00 00 00 mov 0xac(%eax),%ebx
popcli();
80103dbf: e8 0c 07 00 00 call 801044d0 <popcli>
if(p == 0)
80103dc4: 85 db test %ebx,%ebx
80103dc6: 0f 84 87 00 00 00 je 80103e53 <sleep+0xb3>
if(lk == 0)
80103dcc: 85 f6 test %esi,%esi
80103dce: 74 76 je 80103e46 <sleep+0xa6>
if(lk != &ptable.lock){ //DOC: sleeplock0
80103dd0: 81 fe 20 29 11 80 cmp $0x80112920,%esi
80103dd6: 74 50 je 80103e28 <sleep+0x88>
acquire(&ptable.lock); //DOC: sleeplock1
80103dd8: 83 ec 0c sub $0xc,%esp
80103ddb: 68 20 29 11 80 push $0x80112920
80103de0: e8 2b 06 00 00 call 80104410 <acquire>
release(lk);
80103de5: 89 34 24 mov %esi,(%esp)
80103de8: e8 43 07 00 00 call 80104530 <release>
p->chan = chan;
80103ded: 89 7b 24 mov %edi,0x24(%ebx)
p->state = SLEEPING;
80103df0: c7 43 10 02 00 00 00 movl $0x2,0x10(%ebx)
sched();
80103df7: e8 64 fd ff ff call 80103b60 <sched>
p->chan = 0;
80103dfc: c7 43 24 00 00 00 00 movl $0x0,0x24(%ebx)
release(&ptable.lock);
80103e03: c7 04 24 20 29 11 80 movl $0x80112920,(%esp)
80103e0a: e8 21 07 00 00 call 80104530 <release>
acquire(lk);
80103e0f: 89 75 08 mov %esi,0x8(%ebp)
80103e12: 83 c4 10 add $0x10,%esp
}
80103e15: 8d 65 f4 lea -0xc(%ebp),%esp
80103e18: 5b pop %ebx
80103e19: 5e pop %esi
80103e1a: 5f pop %edi
80103e1b: 5d pop %ebp
acquire(lk);
80103e1c: e9 ef 05 00 00 jmp 80104410 <acquire>
80103e21: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
p->chan = chan;
80103e28: 89 7b 24 mov %edi,0x24(%ebx)
p->state = SLEEPING;
80103e2b: c7 43 10 02 00 00 00 movl $0x2,0x10(%ebx)
sched();
80103e32: e8 29 fd ff ff call 80103b60 <sched>
p->chan = 0;
80103e37: c7 43 24 00 00 00 00 movl $0x0,0x24(%ebx)
}
80103e3e: 8d 65 f4 lea -0xc(%ebp),%esp
80103e41: 5b pop %ebx
80103e42: 5e pop %esi
80103e43: 5f pop %edi
80103e44: 5d pop %ebp
80103e45: c3 ret
panic("sleep without lk");
80103e46: 83 ec 0c sub $0xc,%esp
80103e49: 68 4f 76 10 80 push $0x8010764f
80103e4e: e8 3d c5 ff ff call 80100390 <panic>
panic("sleep");
80103e53: 83 ec 0c sub $0xc,%esp
80103e56: 68 49 76 10 80 push $0x80107649
80103e5b: e8 30 c5 ff ff call 80100390 <panic>
80103e60 <wait>:
{
80103e60: 55 push %ebp
80103e61: 89 e5 mov %esp,%ebp
80103e63: 56 push %esi
80103e64: 53 push %ebx
pushcli();
80103e65: e8 66 05 00 00 call 801043d0 <pushcli>
c = mycpu();
80103e6a: e8 e1 f8 ff ff call 80103750 <mycpu>
p = c->proc;
80103e6f: 8b b0 ac 00 00 00 mov 0xac(%eax),%esi
popcli();
80103e75: e8 56 06 00 00 call 801044d0 <popcli>
acquire(&ptable.lock);
80103e7a: 83 ec 0c sub $0xc,%esp
80103e7d: 68 20 29 11 80 push $0x80112920
80103e82: e8 89 05 00 00 call 80104410 <acquire>
80103e87: 83 c4 10 add $0x10,%esp
havekids = 0;
80103e8a: 31 c0 xor %eax,%eax
for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){
80103e8c: bb 54 29 11 80 mov $0x80112954,%ebx
80103e91: eb 10 jmp 80103ea3 <wait+0x43>
80103e93: 90 nop
80103e94: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80103e98: 83 eb 80 sub $0xffffff80,%ebx
80103e9b: 81 fb 54 49 11 80 cmp $0x80114954,%ebx
80103ea1: 73 1b jae 80103ebe <wait+0x5e>
if(p->parent != curproc)
80103ea3: 39 73 18 cmp %esi,0x18(%ebx)
80103ea6: 75 f0 jne 80103e98 <wait+0x38>
if(p->state == ZOMBIE){
80103ea8: 83 7b 10 05 cmpl $0x5,0x10(%ebx)
80103eac: 74 32 je 80103ee0 <wait+0x80>
for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){
80103eae: 83 eb 80 sub $0xffffff80,%ebx
havekids = 1;
80103eb1: b8 01 00 00 00 mov $0x1,%eax
for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){
80103eb6: 81 fb 54 49 11 80 cmp $0x80114954,%ebx
80103ebc: 72 e5 jb 80103ea3 <wait+0x43>
if(!havekids || curproc->killed){
80103ebe: 85 c0 test %eax,%eax
80103ec0: 74 74 je 80103f36 <wait+0xd6>
80103ec2: 8b 46 28 mov 0x28(%esi),%eax
80103ec5: 85 c0 test %eax,%eax
80103ec7: 75 6d jne 80103f36 <wait+0xd6>
sleep(curproc, &ptable.lock); //DOC: wait-sleep
80103ec9: 83 ec 08 sub $0x8,%esp
80103ecc: 68 20 29 11 80 push $0x80112920
80103ed1: 56 push %esi
80103ed2: e8 c9 fe ff ff call 80103da0 <sleep>
havekids = 0;
80103ed7: 83 c4 10 add $0x10,%esp
80103eda: eb ae jmp 80103e8a <wait+0x2a>
80103edc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
kfree(p->kstack);
80103ee0: 83 ec 0c sub $0xc,%esp
80103ee3: ff 73 0c pushl 0xc(%ebx)
pid = p->pid;
80103ee6: 8b 73 14 mov 0x14(%ebx),%esi
kfree(p->kstack);
80103ee9: e8 32 e4 ff ff call 80102320 <kfree>
freevm(p->pgdir);
80103eee: 5a pop %edx
80103eef: ff 73 08 pushl 0x8(%ebx)
p->kstack = 0;
80103ef2: c7 43 0c 00 00 00 00 movl $0x0,0xc(%ebx)
freevm(p->pgdir);
80103ef9: e8 52 2e 00 00 call 80106d50 <freevm>
release(&ptable.lock);
80103efe: c7 04 24 20 29 11 80 movl $0x80112920,(%esp)
p->pid = 0;
80103f05: c7 43 14 00 00 00 00 movl $0x0,0x14(%ebx)
p->parent = 0;
80103f0c: c7 43 18 00 00 00 00 movl $0x0,0x18(%ebx)
p->name[0] = 0;
80103f13: c6 43 70 00 movb $0x0,0x70(%ebx)
p->killed = 0;
80103f17: c7 43 28 00 00 00 00 movl $0x0,0x28(%ebx)
p->state = UNUSED;
80103f1e: c7 43 10 00 00 00 00 movl $0x0,0x10(%ebx)
release(&ptable.lock);
80103f25: e8 06 06 00 00 call 80104530 <release>
return pid;
80103f2a: 83 c4 10 add $0x10,%esp
}
80103f2d: 8d 65 f8 lea -0x8(%ebp),%esp
80103f30: 89 f0 mov %esi,%eax
80103f32: 5b pop %ebx
80103f33: 5e pop %esi
80103f34: 5d pop %ebp
80103f35: c3 ret
release(&ptable.lock);
80103f36: 83 ec 0c sub $0xc,%esp
return -1;
80103f39: be ff ff ff ff mov $0xffffffff,%esi
release(&ptable.lock);
80103f3e: 68 20 29 11 80 push $0x80112920
80103f43: e8 e8 05 00 00 call 80104530 <release>
return -1;
80103f48: 83 c4 10 add $0x10,%esp
80103f4b: eb e0 jmp 80103f2d <wait+0xcd>
80103f4d: 8d 76 00 lea 0x0(%esi),%esi
80103f50 <wakeup>:
}
// Wake up all processes sleeping on chan.
void
wakeup(void *chan)
{
80103f50: 55 push %ebp
80103f51: 89 e5 mov %esp,%ebp
80103f53: 53 push %ebx
80103f54: 83 ec 10 sub $0x10,%esp
80103f57: 8b 5d 08 mov 0x8(%ebp),%ebx
acquire(&ptable.lock);
80103f5a: 68 20 29 11 80 push $0x80112920
80103f5f: e8 ac 04 00 00 call 80104410 <acquire>
80103f64: 83 c4 10 add $0x10,%esp
for(p = ptable.proc; p < &ptable.proc[NPROC]; p++)
80103f67: b8 54 29 11 80 mov $0x80112954,%eax
80103f6c: eb 0c jmp 80103f7a <wakeup+0x2a>
80103f6e: 66 90 xchg %ax,%ax
80103f70: 83 e8 80 sub $0xffffff80,%eax
80103f73: 3d 54 49 11 80 cmp $0x80114954,%eax
80103f78: 73 1c jae 80103f96 <wakeup+0x46>
if(p->state == SLEEPING && p->chan == chan)
80103f7a: 83 78 10 02 cmpl $0x2,0x10(%eax)
80103f7e: 75 f0 jne 80103f70 <wakeup+0x20>
80103f80: 3b 58 24 cmp 0x24(%eax),%ebx
80103f83: 75 eb jne 80103f70 <wakeup+0x20>
p->state = RUNNABLE;
80103f85: c7 40 10 03 00 00 00 movl $0x3,0x10(%eax)
for(p = ptable.proc; p < &ptable.proc[NPROC]; p++)
80103f8c: 83 e8 80 sub $0xffffff80,%eax
80103f8f: 3d 54 49 11 80 cmp $0x80114954,%eax
80103f94: 72 e4 jb 80103f7a <wakeup+0x2a>
wakeup1(chan);
release(&ptable.lock);
80103f96: c7 45 08 20 29 11 80 movl $0x80112920,0x8(%ebp)
}
80103f9d: 8b 5d fc mov -0x4(%ebp),%ebx
80103fa0: c9 leave
release(&ptable.lock);
80103fa1: e9 8a 05 00 00 jmp 80104530 <release>
80103fa6: 8d 76 00 lea 0x0(%esi),%esi
80103fa9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80103fb0 <kill>:
// Kill the process with the given pid.
// Process won't exit until it returns
// to user space (see trap in trap.c).
int
kill(int pid)
{
80103fb0: 55 push %ebp
80103fb1: 89 e5 mov %esp,%ebp
80103fb3: 53 push %ebx
80103fb4: 83 ec 10 sub $0x10,%esp
80103fb7: 8b 5d 08 mov 0x8(%ebp),%ebx
struct proc *p;
acquire(&ptable.lock);
80103fba: 68 20 29 11 80 push $0x80112920
80103fbf: e8 4c 04 00 00 call 80104410 <acquire>
80103fc4: 83 c4 10 add $0x10,%esp
for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){
80103fc7: b8 54 29 11 80 mov $0x80112954,%eax
80103fcc: eb 0c jmp 80103fda <kill+0x2a>
80103fce: 66 90 xchg %ax,%ax
80103fd0: 83 e8 80 sub $0xffffff80,%eax
80103fd3: 3d 54 49 11 80 cmp $0x80114954,%eax
80103fd8: 73 36 jae 80104010 <kill+0x60>
if(p->pid == pid){
80103fda: 39 58 14 cmp %ebx,0x14(%eax)
80103fdd: 75 f1 jne 80103fd0 <kill+0x20>
p->killed = 1;
// Wake process from sleep if necessary.
if(p->state == SLEEPING)
80103fdf: 83 78 10 02 cmpl $0x2,0x10(%eax)
p->killed = 1;
80103fe3: c7 40 28 01 00 00 00 movl $0x1,0x28(%eax)
if(p->state == SLEEPING)
80103fea: 75 07 jne 80103ff3 <kill+0x43>
p->state = RUNNABLE;
80103fec: c7 40 10 03 00 00 00 movl $0x3,0x10(%eax)
release(&ptable.lock);
80103ff3: 83 ec 0c sub $0xc,%esp
80103ff6: 68 20 29 11 80 push $0x80112920
80103ffb: e8 30 05 00 00 call 80104530 <release>
return 0;
80104000: 83 c4 10 add $0x10,%esp
80104003: 31 c0 xor %eax,%eax
}
}
release(&ptable.lock);
return -1;
}
80104005: 8b 5d fc mov -0x4(%ebp),%ebx
80104008: c9 leave
80104009: c3 ret
8010400a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
release(&ptable.lock);
80104010: 83 ec 0c sub $0xc,%esp
80104013: 68 20 29 11 80 push $0x80112920
80104018: e8 13 05 00 00 call 80104530 <release>
return -1;
8010401d: 83 c4 10 add $0x10,%esp
80104020: b8 ff ff ff ff mov $0xffffffff,%eax
}
80104025: 8b 5d fc mov -0x4(%ebp),%ebx
80104028: c9 leave
80104029: c3 ret
8010402a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
80104030 <procdump>:
// Print a process listing to console. For debugging.
// Runs when user types ^P on console.
// No lock to avoid wedging a stuck machine further.
void
procdump(void)
{
80104030: 55 push %ebp
80104031: 89 e5 mov %esp,%ebp
80104033: 57 push %edi
80104034: 56 push %esi
80104035: 53 push %ebx
80104036: 8d 75 e8 lea -0x18(%ebp),%esi
int i;
struct proc *p;
char *state;
uint pc[10];
for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){
80104039: bb 54 29 11 80 mov $0x80112954,%ebx
{
8010403e: 83 ec 3c sub $0x3c,%esp
80104041: eb 24 jmp 80104067 <procdump+0x37>
80104043: 90 nop
80104044: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
if(p->state == SLEEPING){
getcallerpcs((uint*)p->context->ebp+2, pc);
for(i=0; i<10 && pc[i] != 0; i++)
cprintf(" %p", pc[i]);
}
cprintf("\n");
80104048: 83 ec 0c sub $0xc,%esp
8010404b: 68 a3 7a 10 80 push $0x80107aa3
80104050: e8 0b c6 ff ff call 80100660 <cprintf>
80104055: 83 c4 10 add $0x10,%esp
for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){
80104058: 83 eb 80 sub $0xffffff80,%ebx
8010405b: 81 fb 54 49 11 80 cmp $0x80114954,%ebx
80104061: 0f 83 81 00 00 00 jae 801040e8 <procdump+0xb8>
if(p->state == UNUSED)
80104067: 8b 43 10 mov 0x10(%ebx),%eax
8010406a: 85 c0 test %eax,%eax
8010406c: 74 ea je 80104058 <procdump+0x28>
if(p->state >= 0 && p->state < NELEM(states) && states[p->state])
8010406e: 83 f8 05 cmp $0x5,%eax
state = "???";
80104071: ba 60 76 10 80 mov $0x80107660,%edx
if(p->state >= 0 && p->state < NELEM(states) && states[p->state])
80104076: 77 11 ja 80104089 <procdump+0x59>
80104078: 8b 14 85 88 77 10 80 mov -0x7fef8878(,%eax,4),%edx
state = "???";
8010407f: b8 60 76 10 80 mov $0x80107660,%eax
80104084: 85 d2 test %edx,%edx
80104086: 0f 44 d0 cmove %eax,%edx
cprintf("%d %s %s", p->pid, state, p->name);
80104089: 8d 43 70 lea 0x70(%ebx),%eax
8010408c: 50 push %eax
8010408d: 52 push %edx
8010408e: ff 73 14 pushl 0x14(%ebx)
80104091: 68 64 76 10 80 push $0x80107664
80104096: e8 c5 c5 ff ff call 80100660 <cprintf>
if(p->state == SLEEPING){
8010409b: 83 c4 10 add $0x10,%esp
8010409e: 83 7b 10 02 cmpl $0x2,0x10(%ebx)
801040a2: 75 a4 jne 80104048 <procdump+0x18>
getcallerpcs((uint*)p->context->ebp+2, pc);
801040a4: 8d 45 c0 lea -0x40(%ebp),%eax
801040a7: 83 ec 08 sub $0x8,%esp
801040aa: 8d 7d c0 lea -0x40(%ebp),%edi
801040ad: 50 push %eax
801040ae: 8b 43 20 mov 0x20(%ebx),%eax
801040b1: 8b 40 0c mov 0xc(%eax),%eax
801040b4: 83 c0 08 add $0x8,%eax
801040b7: 50 push %eax
801040b8: e8 83 02 00 00 call 80104340 <getcallerpcs>
801040bd: 83 c4 10 add $0x10,%esp
for(i=0; i<10 && pc[i] != 0; i++)
801040c0: 8b 17 mov (%edi),%edx
801040c2: 85 d2 test %edx,%edx
801040c4: 74 82 je 80104048 <procdump+0x18>
cprintf(" %p", pc[i]);
801040c6: 83 ec 08 sub $0x8,%esp
801040c9: 83 c7 04 add $0x4,%edi
801040cc: 52 push %edx
801040cd: 68 a1 70 10 80 push $0x801070a1
801040d2: e8 89 c5 ff ff call 80100660 <cprintf>
for(i=0; i<10 && pc[i] != 0; i++)
801040d7: 83 c4 10 add $0x10,%esp
801040da: 39 fe cmp %edi,%esi
801040dc: 75 e2 jne 801040c0 <procdump+0x90>
801040de: e9 65 ff ff ff jmp 80104048 <procdump+0x18>
801040e3: 90 nop
801040e4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
}
}
801040e8: 8d 65 f4 lea -0xc(%ebp),%esp
801040eb: 5b pop %ebx
801040ec: 5e pop %esi
801040ed: 5f pop %edi
801040ee: 5d pop %ebp
801040ef: c3 ret
801040f0 <csc>:
int
csc()
{
801040f0: 55 push %ebp
801040f1: 89 e5 mov %esp,%ebp
801040f3: 83 ec 10 sub $0x10,%esp
cprintf("Se han realizado %d llamadas al sistema\n", numSysCalls);
801040f6: ff 35 b8 a5 10 80 pushl 0x8010a5b8
801040fc: 68 c0 76 10 80 push $0x801076c0
80104101: e8 5a c5 ff ff call 80100660 <cprintf>
return 22;
}
80104106: b8 16 00 00 00 mov $0x16,%eax
8010410b: c9 leave
8010410c: c3 ret
8010410d: 8d 76 00 lea 0x0(%esi),%esi
80104110 <cps>:
int
cps()
{
80104110: 55 push %ebp
80104111: 89 e5 mov %esp,%ebp
80104113: 53 push %ebx
80104114: 83 ec 10 sub $0x10,%esp
asm volatile("sti");
80104117: fb sti
struct proc *p;
sti();
acquire(&ptable.lock);
80104118: 68 20 29 11 80 push $0x80112920
for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){
8010411d: bb 54 29 11 80 mov $0x80112954,%ebx
acquire(&ptable.lock);
80104122: e8 e9 02 00 00 call 80104410 <acquire>
80104127: 83 c4 10 add $0x10,%esp
8010412a: eb 19 jmp 80104145 <cps+0x35>
8010412c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
if (p->state == SLEEPING )
cprintf("\nname: %s, pid: %d, state: SLEEPING, priority: %d\n ", p->name, p->pid, p->priority);
else if (p->state == RUNNING )
80104130: 83 f8 04 cmp $0x4,%eax
80104133: 74 53 je 80104188 <cps+0x78>
cprintf("\nname: %s, pid: %d, state: RUNNING, priority: %d\n ", p->name, p->pid, p->priority);
else if (p->state == RUNNABLE )
80104135: 83 f8 03 cmp $0x3,%eax
80104138: 74 66 je 801041a0 <cps+0x90>
for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){
8010413a: 83 eb 80 sub $0xffffff80,%ebx
8010413d: 81 fb 54 49 11 80 cmp $0x80114954,%ebx
80104143: 73 29 jae 8010416e <cps+0x5e>
if (p->state == SLEEPING )
80104145: 8b 43 10 mov 0x10(%ebx),%eax
80104148: 83 f8 02 cmp $0x2,%eax
8010414b: 75 e3 jne 80104130 <cps+0x20>
cprintf("\nname: %s, pid: %d, state: SLEEPING, priority: %d\n ", p->name, p->pid, p->priority);
8010414d: 8d 43 70 lea 0x70(%ebx),%eax
80104150: ff 33 pushl (%ebx)
80104152: ff 73 14 pushl 0x14(%ebx)
for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){
80104155: 83 eb 80 sub $0xffffff80,%ebx
cprintf("\nname: %s, pid: %d, state: SLEEPING, priority: %d\n ", p->name, p->pid, p->priority);
80104158: 50 push %eax
80104159: 68 ec 76 10 80 push $0x801076ec
8010415e: e8 fd c4 ff ff call 80100660 <cprintf>
80104163: 83 c4 10 add $0x10,%esp
for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){
80104166: 81 fb 54 49 11 80 cmp $0x80114954,%ebx
8010416c: 72 d7 jb 80104145 <cps+0x35>
cprintf("\nname: %s, pid: %d, state: RUNNABLE, priority: %d\n ", p->name, p->pid, p->priority);
}
release(&ptable.lock);
8010416e: 83 ec 0c sub $0xc,%esp
80104171: 68 20 29 11 80 push $0x80112920
80104176: e8 b5 03 00 00 call 80104530 <release>
return 23;
}
8010417b: b8 17 00 00 00 mov $0x17,%eax
80104180: 8b 5d fc mov -0x4(%ebp),%ebx
80104183: c9 leave
80104184: c3 ret
80104185: 8d 76 00 lea 0x0(%esi),%esi
cprintf("\nname: %s, pid: %d, state: RUNNING, priority: %d\n ", p->name, p->pid, p->priority);
80104188: 8d 43 70 lea 0x70(%ebx),%eax
8010418b: ff 33 pushl (%ebx)
8010418d: ff 73 14 pushl 0x14(%ebx)
80104190: 50 push %eax
80104191: 68 20 77 10 80 push $0x80107720
80104196: e8 c5 c4 ff ff call 80100660 <cprintf>
8010419b: 83 c4 10 add $0x10,%esp
8010419e: eb 9a jmp 8010413a <cps+0x2a>
cprintf("\nname: %s, pid: %d, state: RUNNABLE, priority: %d\n ", p->name, p->pid, p->priority);
801041a0: 8d 43 70 lea 0x70(%ebx),%eax
801041a3: ff 33 pushl (%ebx)
801041a5: ff 73 14 pushl 0x14(%ebx)
801041a8: 50 push %eax
801041a9: 68 54 77 10 80 push $0x80107754
801041ae: e8 ad c4 ff ff call 80100660 <cprintf>
801041b3: 83 c4 10 add $0x10,%esp
801041b6: eb 82 jmp 8010413a <cps+0x2a>
801041b8: 90 nop
801041b9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
801041c0 <chpr>:
int
chpr(int pid, int priority)
{
801041c0: 55 push %ebp
801041c1: 89 e5 mov %esp,%ebp
801041c3: 53 push %ebx
801041c4: 83 ec 10 sub $0x10,%esp
801041c7: 8b 5d 08 mov 0x8(%ebp),%ebx
struct proc *p;
acquire(&ptable.lock);
801041ca: 68 20 29 11 80 push $0x80112920
801041cf: e8 3c 02 00 00 call 80104410 <acquire>
801041d4: 83 c4 10 add $0x10,%esp
for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){
801041d7: ba 54 29 11 80 mov $0x80112954,%edx
801041dc: eb 0d jmp 801041eb <chpr+0x2b>
801041de: 66 90 xchg %ax,%ax
801041e0: 83 ea 80 sub $0xffffff80,%edx
801041e3: 81 fa 54 49 11 80 cmp $0x80114954,%edx
801041e9: 73 0a jae 801041f5 <chpr+0x35>
if(p->pid==pid){
801041eb: 39 5a 14 cmp %ebx,0x14(%edx)
801041ee: 75 f0 jne 801041e0 <chpr+0x20>
p->priority = priority;
801041f0: 8b 45 0c mov 0xc(%ebp),%eax
801041f3: 89 02 mov %eax,(%edx)
break;
}
}
release(&ptable.lock);
801041f5: 83 ec 0c sub $0xc,%esp
801041f8: 68 20 29 11 80 push $0x80112920
801041fd: e8 2e 03 00 00 call 80104530 <release>
return pid;
}
80104202: 89 d8 mov %ebx,%eax
80104204: 8b 5d fc mov -0x4(%ebp),%ebx
80104207: c9 leave
80104208: c3 ret
80104209: 66 90 xchg %ax,%ax
8010420b: 66 90 xchg %ax,%ax
8010420d: 66 90 xchg %ax,%ax
8010420f: 90 nop
80104210 <initsleeplock>:
#include "spinlock.h"
#include "sleeplock.h"
void
initsleeplock(struct sleeplock *lk, char *name)
{
80104210: 55 push %ebp
80104211: 89 e5 mov %esp,%ebp
80104213: 53 push %ebx
80104214: 83 ec 0c sub $0xc,%esp
80104217: 8b 5d 08 mov 0x8(%ebp),%ebx
initlock(&lk->lk, "sleep lock");
8010421a: 68 a0 77 10 80 push $0x801077a0
8010421f: 8d 43 04 lea 0x4(%ebx),%eax
80104222: 50 push %eax
80104223: e8 f8 00 00 00 call 80104320 <initlock>
lk->name = name;
80104228: 8b 45 0c mov 0xc(%ebp),%eax
lk->locked = 0;
8010422b: c7 03 00 00 00 00 movl $0x0,(%ebx)
lk->pid = 0;
}
80104231: 83 c4 10 add $0x10,%esp
lk->pid = 0;
80104234: c7 43 3c 00 00 00 00 movl $0x0,0x3c(%ebx)
lk->name = name;
8010423b: 89 43 38 mov %eax,0x38(%ebx)
}
8010423e: 8b 5d fc mov -0x4(%ebp),%ebx
80104241: c9 leave
80104242: c3 ret
80104243: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
80104249: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80104250 <acquiresleep>:
void
acquiresleep(struct sleeplock *lk)
{
80104250: 55 push %ebp
80104251: 89 e5 mov %esp,%ebp
80104253: 56 push %esi
80104254: 53 push %ebx
80104255: 8b 5d 08 mov 0x8(%ebp),%ebx
acquire(&lk->lk);
80104258: 83 ec 0c sub $0xc,%esp
8010425b: 8d 73 04 lea 0x4(%ebx),%esi
8010425e: 56 push %esi
8010425f: e8 ac 01 00 00 call 80104410 <acquire>
while (lk->locked) {
80104264: 8b 13 mov (%ebx),%edx
80104266: 83 c4 10 add $0x10,%esp
80104269: 85 d2 test %edx,%edx
8010426b: 74 16 je 80104283 <acquiresleep+0x33>
8010426d: 8d 76 00 lea 0x0(%esi),%esi
sleep(lk, &lk->lk);
80104270: 83 ec 08 sub $0x8,%esp
80104273: 56 push %esi
80104274: 53 push %ebx
80104275: e8 26 fb ff ff call 80103da0 <sleep>
while (lk->locked) {
8010427a: 8b 03 mov (%ebx),%eax
8010427c: 83 c4 10 add $0x10,%esp
8010427f: 85 c0 test %eax,%eax
80104281: 75 ed jne 80104270 <acquiresleep+0x20>
}
lk->locked = 1;
80104283: c7 03 01 00 00 00 movl $0x1,(%ebx)
lk->pid = myproc()->pid;
80104289: e8 52 f5 ff ff call 801037e0 <myproc>
8010428e: 8b 40 14 mov 0x14(%eax),%eax
80104291: 89 43 3c mov %eax,0x3c(%ebx)
release(&lk->lk);
80104294: 89 75 08 mov %esi,0x8(%ebp)
}
80104297: 8d 65 f8 lea -0x8(%ebp),%esp
8010429a: 5b pop %ebx
8010429b: 5e pop %esi
8010429c: 5d pop %ebp
release(&lk->lk);
8010429d: e9 8e 02 00 00 jmp 80104530 <release>
801042a2: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
801042a9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
801042b0 <releasesleep>:
void
releasesleep(struct sleeplock *lk)
{
801042b0: 55 push %ebp
801042b1: 89 e5 mov %esp,%ebp
801042b3: 56 push %esi
801042b4: 53 push %ebx
801042b5: 8b 5d 08 mov 0x8(%ebp),%ebx
acquire(&lk->lk);
801042b8: 83 ec 0c sub $0xc,%esp
801042bb: 8d 73 04 lea 0x4(%ebx),%esi
801042be: 56 push %esi
801042bf: e8 4c 01 00 00 call 80104410 <acquire>
lk->locked = 0;
801042c4: c7 03 00 00 00 00 movl $0x0,(%ebx)
lk->pid = 0;
801042ca: c7 43 3c 00 00 00 00 movl $0x0,0x3c(%ebx)
wakeup(lk);
801042d1: 89 1c 24 mov %ebx,(%esp)
801042d4: e8 77 fc ff ff call 80103f50 <wakeup>
release(&lk->lk);
801042d9: 89 75 08 mov %esi,0x8(%ebp)
801042dc: 83 c4 10 add $0x10,%esp
}
801042df: 8d 65 f8 lea -0x8(%ebp),%esp
801042e2: 5b pop %ebx
801042e3: 5e pop %esi
801042e4: 5d pop %ebp
release(&lk->lk);
801042e5: e9 46 02 00 00 jmp 80104530 <release>
801042ea: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
801042f0 <holdingsleep>:
int
holdingsleep(struct sleeplock *lk)
{
801042f0: 55 push %ebp
801042f1: 89 e5 mov %esp,%ebp
801042f3: 56 push %esi
801042f4: 53 push %ebx
801042f5: 8b 75 08 mov 0x8(%ebp),%esi
int r;
acquire(&lk->lk);
801042f8: 83 ec 0c sub $0xc,%esp
801042fb: 8d 5e 04 lea 0x4(%esi),%ebx
801042fe: 53 push %ebx
801042ff: e8 0c 01 00 00 call 80104410 <acquire>
r = lk->locked;
80104304: 8b 36 mov (%esi),%esi
release(&lk->lk);
80104306: 89 1c 24 mov %ebx,(%esp)
80104309: e8 22 02 00 00 call 80104530 <release>
return r;
}
8010430e: 8d 65 f8 lea -0x8(%ebp),%esp
80104311: 89 f0 mov %esi,%eax
80104313: 5b pop %ebx
80104314: 5e pop %esi
80104315: 5d pop %ebp
80104316: c3 ret
80104317: 66 90 xchg %ax,%ax
80104319: 66 90 xchg %ax,%ax
8010431b: 66 90 xchg %ax,%ax
8010431d: 66 90 xchg %ax,%ax
8010431f: 90 nop
80104320 <initlock>:
#include "proc.h"
#include "spinlock.h"
void
initlock(struct spinlock *lk, char *name)
{
80104320: 55 push %ebp
80104321: 89 e5 mov %esp,%ebp
80104323: 8b 45 08 mov 0x8(%ebp),%eax
lk->name = name;
80104326: 8b 55 0c mov 0xc(%ebp),%edx
lk->locked = 0;
80104329: c7 00 00 00 00 00 movl $0x0,(%eax)
lk->name = name;
8010432f: 89 50 04 mov %edx,0x4(%eax)
lk->cpu = 0;
80104332: c7 40 08 00 00 00 00 movl $0x0,0x8(%eax)
}
80104339: 5d pop %ebp
8010433a: c3 ret
8010433b: 90 nop
8010433c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80104340 <getcallerpcs>:
}
// Record the current call stack in pcs[] by following the %ebp chain.
void
getcallerpcs(void *v, uint pcs[])
{
80104340: 55 push %ebp
uint *ebp;
int i;
ebp = (uint*)v - 2;
for(i = 0; i < 10; i++){
80104341: 31 d2 xor %edx,%edx
{
80104343: 89 e5 mov %esp,%ebp
80104345: 53 push %ebx
ebp = (uint*)v - 2;
80104346: 8b 45 08 mov 0x8(%ebp),%eax
{
80104349: 8b 4d 0c mov 0xc(%ebp),%ecx
ebp = (uint*)v - 2;
8010434c: 83 e8 08 sub $0x8,%eax
8010434f: 90 nop
if(ebp == 0 || ebp < (uint*)KERNBASE || ebp == (uint*)0xffffffff)
80104350: 8d 98 00 00 00 80 lea -0x80000000(%eax),%ebx
80104356: 81 fb fe ff ff 7f cmp $0x7ffffffe,%ebx
8010435c: 77 1a ja 80104378 <getcallerpcs+0x38>
break;
pcs[i] = ebp[1]; // saved %eip
8010435e: 8b 58 04 mov 0x4(%eax),%ebx
80104361: 89 1c 91 mov %ebx,(%ecx,%edx,4)
for(i = 0; i < 10; i++){
80104364: 83 c2 01 add $0x1,%edx
ebp = (uint*)ebp[0]; // saved %ebp
80104367: 8b 00 mov (%eax),%eax
for(i = 0; i < 10; i++){
80104369: 83 fa 0a cmp $0xa,%edx
8010436c: 75 e2 jne 80104350 <getcallerpcs+0x10>
}
for(; i < 10; i++)
pcs[i] = 0;
}
8010436e: 5b pop %ebx
8010436f: 5d pop %ebp
80104370: c3 ret
80104371: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
80104378: 8d 04 91 lea (%ecx,%edx,4),%eax
8010437b: 83 c1 28 add $0x28,%ecx
8010437e: 66 90 xchg %ax,%ax
pcs[i] = 0;
80104380: c7 00 00 00 00 00 movl $0x0,(%eax)
80104386: 83 c0 04 add $0x4,%eax
for(; i < 10; i++)
80104389: 39 c1 cmp %eax,%ecx
8010438b: 75 f3 jne 80104380 <getcallerpcs+0x40>
}
8010438d: 5b pop %ebx
8010438e: 5d pop %ebp
8010438f: c3 ret
80104390 <holding>:
// Check whether this cpu is holding the lock.
int
holding(struct spinlock *lock)
{
80104390: 55 push %ebp
80104391: 89 e5 mov %esp,%ebp
80104393: 53 push %ebx
80104394: 83 ec 04 sub $0x4,%esp
80104397: 8b 55 08 mov 0x8(%ebp),%edx
return lock->locked && lock->cpu == mycpu();
8010439a: 8b 02 mov (%edx),%eax
8010439c: 85 c0 test %eax,%eax
8010439e: 75 10 jne 801043b0 <holding+0x20>
}
801043a0: 83 c4 04 add $0x4,%esp
801043a3: 31 c0 xor %eax,%eax
801043a5: 5b pop %ebx
801043a6: 5d pop %ebp
801043a7: c3 ret
801043a8: 90 nop
801043a9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
return lock->locked && lock->cpu == mycpu();
801043b0: 8b 5a 08 mov 0x8(%edx),%ebx
801043b3: e8 98 f3 ff ff call 80103750 <mycpu>
801043b8: 39 c3 cmp %eax,%ebx
801043ba: 0f 94 c0 sete %al
}
801043bd: 83 c4 04 add $0x4,%esp
return lock->locked && lock->cpu == mycpu();
801043c0: 0f b6 c0 movzbl %al,%eax
}
801043c3: 5b pop %ebx
801043c4: 5d pop %ebp
801043c5: c3 ret
801043c6: 8d 76 00 lea 0x0(%esi),%esi
801043c9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
801043d0 <pushcli>:
// it takes two popcli to undo two pushcli. Also, if interrupts
// are off, then pushcli, popcli leaves them off.
void
pushcli(void)
{
801043d0: 55 push %ebp
801043d1: 89 e5 mov %esp,%ebp
801043d3: 53 push %ebx
801043d4: 83 ec 04 sub $0x4,%esp
asm volatile("pushfl; popl %0" : "=r" (eflags));
801043d7: 9c pushf
801043d8: 5b pop %ebx
asm volatile("cli");
801043d9: fa cli
int eflags;
eflags = readeflags();
cli();
if(mycpu()->ncli == 0)
801043da: e8 71 f3 ff ff call 80103750 <mycpu>
801043df: 8b 80 a4 00 00 00 mov 0xa4(%eax),%eax
801043e5: 85 c0 test %eax,%eax
801043e7: 75 11 jne 801043fa <pushcli+0x2a>
mycpu()->intena = eflags & FL_IF;
801043e9: 81 e3 00 02 00 00 and $0x200,%ebx
801043ef: e8 5c f3 ff ff call 80103750 <mycpu>
801043f4: 89 98 a8 00 00 00 mov %ebx,0xa8(%eax)
mycpu()->ncli += 1;
801043fa: e8 51 f3 ff ff call 80103750 <mycpu>
801043ff: 83 80 a4 00 00 00 01 addl $0x1,0xa4(%eax)
}
80104406: 83 c4 04 add $0x4,%esp
80104409: 5b pop %ebx
8010440a: 5d pop %ebp
8010440b: c3 ret
8010440c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80104410 <acquire>:
{
80104410: 55 push %ebp
80104411: 89 e5 mov %esp,%ebp
80104413: 56 push %esi
80104414: 53 push %ebx
pushcli(); // disable interrupts to avoid deadlock.
80104415: e8 b6 ff ff ff call 801043d0 <pushcli>
if(holding(lk))
8010441a: 8b 5d 08 mov 0x8(%ebp),%ebx
return lock->locked && lock->cpu == mycpu();
8010441d: 8b 03 mov (%ebx),%eax
8010441f: 85 c0 test %eax,%eax
80104421: 0f 85 81 00 00 00 jne 801044a8 <acquire+0x98>
asm volatile("lock; xchgl %0, %1" :
80104427: ba 01 00 00 00 mov $0x1,%edx
8010442c: eb 05 jmp 80104433 <acquire+0x23>
8010442e: 66 90 xchg %ax,%ax
80104430: 8b 5d 08 mov 0x8(%ebp),%ebx
80104433: 89 d0 mov %edx,%eax
80104435: f0 87 03 lock xchg %eax,(%ebx)
while(xchg(&lk->locked, 1) != 0)
80104438: 85 c0 test %eax,%eax
8010443a: 75 f4 jne 80104430 <acquire+0x20>
__sync_synchronize();
8010443c: f0 83 0c 24 00 lock orl $0x0,(%esp)
lk->cpu = mycpu();
80104441: 8b 5d 08 mov 0x8(%ebp),%ebx
80104444: e8 07 f3 ff ff call 80103750 <mycpu>
for(i = 0; i < 10; i++){
80104449: 31 d2 xor %edx,%edx
getcallerpcs(&lk, lk->pcs);
8010444b: 8d 4b 0c lea 0xc(%ebx),%ecx
lk->cpu = mycpu();
8010444e: 89 43 08 mov %eax,0x8(%ebx)
ebp = (uint*)v - 2;
80104451: 89 e8 mov %ebp,%eax
80104453: 90 nop
80104454: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
if(ebp == 0 || ebp < (uint*)KERNBASE || ebp == (uint*)0xffffffff)
80104458: 8d 98 00 00 00 80 lea -0x80000000(%eax),%ebx
8010445e: 81 fb fe ff ff 7f cmp $0x7ffffffe,%ebx
80104464: 77 1a ja 80104480 <acquire+0x70>
pcs[i] = ebp[1]; // saved %eip
80104466: 8b 58 04 mov 0x4(%eax),%ebx
80104469: 89 1c 91 mov %ebx,(%ecx,%edx,4)
for(i = 0; i < 10; i++){
8010446c: 83 c2 01 add $0x1,%edx
ebp = (uint*)ebp[0]; // saved %ebp
8010446f: 8b 00 mov (%eax),%eax
for(i = 0; i < 10; i++){
80104471: 83 fa 0a cmp $0xa,%edx
80104474: 75 e2 jne 80104458 <acquire+0x48>
}
80104476: 8d 65 f8 lea -0x8(%ebp),%esp
80104479: 5b pop %ebx
8010447a: 5e pop %esi
8010447b: 5d pop %ebp
8010447c: c3 ret
8010447d: 8d 76 00 lea 0x0(%esi),%esi
80104480: 8d 04 91 lea (%ecx,%edx,4),%eax
80104483: 83 c1 28 add $0x28,%ecx
80104486: 8d 76 00 lea 0x0(%esi),%esi
80104489: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
pcs[i] = 0;
80104490: c7 00 00 00 00 00 movl $0x0,(%eax)
80104496: 83 c0 04 add $0x4,%eax
for(; i < 10; i++)
80104499: 39 c8 cmp %ecx,%eax
8010449b: 75 f3 jne 80104490 <acquire+0x80>
}
8010449d: 8d 65 f8 lea -0x8(%ebp),%esp
801044a0: 5b pop %ebx
801044a1: 5e pop %esi
801044a2: 5d pop %ebp
801044a3: c3 ret
801044a4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
return lock->locked && lock->cpu == mycpu();
801044a8: 8b 73 08 mov 0x8(%ebx),%esi
801044ab: e8 a0 f2 ff ff call 80103750 <mycpu>
801044b0: 39 c6 cmp %eax,%esi
801044b2: 0f 85 6f ff ff ff jne 80104427 <acquire+0x17>
panic("acquire");
801044b8: 83 ec 0c sub $0xc,%esp
801044bb: 68 ab 77 10 80 push $0x801077ab
801044c0: e8 cb be ff ff call 80100390 <panic>
801044c5: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
801044c9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
801044d0 <popcli>:
void
popcli(void)
{
801044d0: 55 push %ebp
801044d1: 89 e5 mov %esp,%ebp
801044d3: 83 ec 08 sub $0x8,%esp
asm volatile("pushfl; popl %0" : "=r" (eflags));
801044d6: 9c pushf
801044d7: 58 pop %eax
if(readeflags()&FL_IF)
801044d8: f6 c4 02 test $0x2,%ah
801044db: 75 35 jne 80104512 <popcli+0x42>
panic("popcli - interruptible");
if(--mycpu()->ncli < 0)
801044dd: e8 6e f2 ff ff call 80103750 <mycpu>
801044e2: 83 a8 a4 00 00 00 01 subl $0x1,0xa4(%eax)
801044e9: 78 34 js 8010451f <popcli+0x4f>
panic("popcli");
if(mycpu()->ncli == 0 && mycpu()->intena)
801044eb: e8 60 f2 ff ff call 80103750 <mycpu>
801044f0: 8b 90 a4 00 00 00 mov 0xa4(%eax),%edx
801044f6: 85 d2 test %edx,%edx
801044f8: 74 06 je 80104500 <popcli+0x30>
sti();
}
801044fa: c9 leave
801044fb: c3 ret
801044fc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
if(mycpu()->ncli == 0 && mycpu()->intena)
80104500: e8 4b f2 ff ff call 80103750 <mycpu>
80104505: 8b 80 a8 00 00 00 mov 0xa8(%eax),%eax
8010450b: 85 c0 test %eax,%eax
8010450d: 74 eb je 801044fa <popcli+0x2a>
asm volatile("sti");
8010450f: fb sti
}
80104510: c9 leave
80104511: c3 ret
panic("popcli - interruptible");
80104512: 83 ec 0c sub $0xc,%esp
80104515: 68 b3 77 10 80 push $0x801077b3
8010451a: e8 71 be ff ff call 80100390 <panic>
panic("popcli");
8010451f: 83 ec 0c sub $0xc,%esp
80104522: 68 ca 77 10 80 push $0x801077ca
80104527: e8 64 be ff ff call 80100390 <panic>
8010452c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80104530 <release>:
{
80104530: 55 push %ebp
80104531: 89 e5 mov %esp,%ebp
80104533: 56 push %esi
80104534: 53 push %ebx
80104535: 8b 5d 08 mov 0x8(%ebp),%ebx
return lock->locked && lock->cpu == mycpu();
80104538: 8b 03 mov (%ebx),%eax
8010453a: 85 c0 test %eax,%eax
8010453c: 74 0c je 8010454a <release+0x1a>
8010453e: 8b 73 08 mov 0x8(%ebx),%esi
80104541: e8 0a f2 ff ff call 80103750 <mycpu>
80104546: 39 c6 cmp %eax,%esi
80104548: 74 16 je 80104560 <release+0x30>
panic("release");
8010454a: 83 ec 0c sub $0xc,%esp
8010454d: 68 d1 77 10 80 push $0x801077d1
80104552: e8 39 be ff ff call 80100390 <panic>
80104557: 89 f6 mov %esi,%esi
80104559: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
lk->pcs[0] = 0;
80104560: c7 43 0c 00 00 00 00 movl $0x0,0xc(%ebx)
lk->cpu = 0;
80104567: c7 43 08 00 00 00 00 movl $0x0,0x8(%ebx)
__sync_synchronize();
8010456e: f0 83 0c 24 00 lock orl $0x0,(%esp)
asm volatile("movl $0, %0" : "+m" (lk->locked) : );
80104573: c7 03 00 00 00 00 movl $0x0,(%ebx)
}
80104579: 8d 65 f8 lea -0x8(%ebp),%esp
8010457c: 5b pop %ebx
8010457d: 5e pop %esi
8010457e: 5d pop %ebp
popcli();
8010457f: e9 4c ff ff ff jmp 801044d0 <popcli>
80104584: 66 90 xchg %ax,%ax
80104586: 66 90 xchg %ax,%ax
80104588: 66 90 xchg %ax,%ax
8010458a: 66 90 xchg %ax,%ax
8010458c: 66 90 xchg %ax,%ax
8010458e: 66 90 xchg %ax,%ax
80104590 <memset>:
#include "types.h"
#include "x86.h"
void*
memset(void *dst, int c, uint n)
{
80104590: 55 push %ebp
80104591: 89 e5 mov %esp,%ebp
80104593: 57 push %edi
80104594: 53 push %ebx
80104595: 8b 55 08 mov 0x8(%ebp),%edx
80104598: 8b 4d 10 mov 0x10(%ebp),%ecx
if ((int)dst%4 == 0 && n%4 == 0){
8010459b: f6 c2 03 test $0x3,%dl
8010459e: 75 05 jne 801045a5 <memset+0x15>
801045a0: f6 c1 03 test $0x3,%cl
801045a3: 74 13 je 801045b8 <memset+0x28>
asm volatile("cld; rep stosb" :
801045a5: 89 d7 mov %edx,%edi
801045a7: 8b 45 0c mov 0xc(%ebp),%eax
801045aa: fc cld
801045ab: f3 aa rep stos %al,%es:(%edi)
c &= 0xFF;
stosl(dst, (c<<24)|(c<<16)|(c<<8)|c, n/4);
} else
stosb(dst, c, n);
return dst;
}
801045ad: 5b pop %ebx
801045ae: 89 d0 mov %edx,%eax
801045b0: 5f pop %edi
801045b1: 5d pop %ebp
801045b2: c3 ret
801045b3: 90 nop
801045b4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
c &= 0xFF;
801045b8: 0f b6 7d 0c movzbl 0xc(%ebp),%edi
stosl(dst, (c<<24)|(c<<16)|(c<<8)|c, n/4);
801045bc: c1 e9 02 shr $0x2,%ecx
801045bf: 89 f8 mov %edi,%eax
801045c1: 89 fb mov %edi,%ebx
801045c3: c1 e0 18 shl $0x18,%eax
801045c6: c1 e3 10 shl $0x10,%ebx
801045c9: 09 d8 or %ebx,%eax
801045cb: 09 f8 or %edi,%eax
801045cd: c1 e7 08 shl $0x8,%edi
801045d0: 09 f8 or %edi,%eax
asm volatile("cld; rep stosl" :
801045d2: 89 d7 mov %edx,%edi
801045d4: fc cld
801045d5: f3 ab rep stos %eax,%es:(%edi)
}
801045d7: 5b pop %ebx
801045d8: 89 d0 mov %edx,%eax
801045da: 5f pop %edi
801045db: 5d pop %ebp
801045dc: c3 ret
801045dd: 8d 76 00 lea 0x0(%esi),%esi
801045e0 <memcmp>:
int
memcmp(const void *v1, const void *v2, uint n)
{
801045e0: 55 push %ebp
801045e1: 89 e5 mov %esp,%ebp
801045e3: 57 push %edi
801045e4: 56 push %esi
801045e5: 53 push %ebx
801045e6: 8b 5d 10 mov 0x10(%ebp),%ebx
801045e9: 8b 75 08 mov 0x8(%ebp),%esi
801045ec: 8b 7d 0c mov 0xc(%ebp),%edi
const uchar *s1, *s2;
s1 = v1;
s2 = v2;
while(n-- > 0){
801045ef: 85 db test %ebx,%ebx
801045f1: 74 29 je 8010461c <memcmp+0x3c>
if(*s1 != *s2)
801045f3: 0f b6 16 movzbl (%esi),%edx
801045f6: 0f b6 0f movzbl (%edi),%ecx
801045f9: 38 d1 cmp %dl,%cl
801045fb: 75 2b jne 80104628 <memcmp+0x48>
801045fd: b8 01 00 00 00 mov $0x1,%eax
80104602: eb 14 jmp 80104618 <memcmp+0x38>
80104604: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80104608: 0f b6 14 06 movzbl (%esi,%eax,1),%edx
8010460c: 83 c0 01 add $0x1,%eax
8010460f: 0f b6 4c 07 ff movzbl -0x1(%edi,%eax,1),%ecx
80104614: 38 ca cmp %cl,%dl
80104616: 75 10 jne 80104628 <memcmp+0x48>
while(n-- > 0){
80104618: 39 d8 cmp %ebx,%eax
8010461a: 75 ec jne 80104608 <memcmp+0x28>
return *s1 - *s2;
s1++, s2++;
}
return 0;
}
8010461c: 5b pop %ebx
return 0;
8010461d: 31 c0 xor %eax,%eax
}
8010461f: 5e pop %esi
80104620: 5f pop %edi
80104621: 5d pop %ebp
80104622: c3 ret
80104623: 90 nop
80104624: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
return *s1 - *s2;
80104628: 0f b6 c2 movzbl %dl,%eax
}
8010462b: 5b pop %ebx
return *s1 - *s2;
8010462c: 29 c8 sub %ecx,%eax
}
8010462e: 5e pop %esi
8010462f: 5f pop %edi
80104630: 5d pop %ebp
80104631: c3 ret
80104632: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
80104639: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80104640 <memmove>:
void*
memmove(void *dst, const void *src, uint n)
{
80104640: 55 push %ebp
80104641: 89 e5 mov %esp,%ebp
80104643: 56 push %esi
80104644: 53 push %ebx
80104645: 8b 45 08 mov 0x8(%ebp),%eax
80104648: 8b 5d 0c mov 0xc(%ebp),%ebx
8010464b: 8b 75 10 mov 0x10(%ebp),%esi
const char *s;
char *d;
s = src;
d = dst;
if(s < d && s + n > d){
8010464e: 39 c3 cmp %eax,%ebx
80104650: 73 26 jae 80104678 <memmove+0x38>
80104652: 8d 0c 33 lea (%ebx,%esi,1),%ecx
80104655: 39 c8 cmp %ecx,%eax
80104657: 73 1f jae 80104678 <memmove+0x38>
s += n;
d += n;
while(n-- > 0)
80104659: 85 f6 test %esi,%esi
8010465b: 8d 56 ff lea -0x1(%esi),%edx
8010465e: 74 0f je 8010466f <memmove+0x2f>
*--d = *--s;
80104660: 0f b6 0c 13 movzbl (%ebx,%edx,1),%ecx
80104664: 88 0c 10 mov %cl,(%eax,%edx,1)
while(n-- > 0)
80104667: 83 ea 01 sub $0x1,%edx
8010466a: 83 fa ff cmp $0xffffffff,%edx
8010466d: 75 f1 jne 80104660 <memmove+0x20>
} else
while(n-- > 0)
*d++ = *s++;
return dst;
}
8010466f: 5b pop %ebx
80104670: 5e pop %esi
80104671: 5d pop %ebp
80104672: c3 ret
80104673: 90 nop
80104674: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
while(n-- > 0)
80104678: 31 d2 xor %edx,%edx
8010467a: 85 f6 test %esi,%esi
8010467c: 74 f1 je 8010466f <memmove+0x2f>
8010467e: 66 90 xchg %ax,%ax
*d++ = *s++;
80104680: 0f b6 0c 13 movzbl (%ebx,%edx,1),%ecx
80104684: 88 0c 10 mov %cl,(%eax,%edx,1)
80104687: 83 c2 01 add $0x1,%edx
while(n-- > 0)
8010468a: 39 d6 cmp %edx,%esi
8010468c: 75 f2 jne 80104680 <memmove+0x40>
}
8010468e: 5b pop %ebx
8010468f: 5e pop %esi
80104690: 5d pop %ebp
80104691: c3 ret
80104692: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
80104699: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
801046a0 <memcpy>:
// memcpy exists to placate GCC. Use memmove.
void*
memcpy(void *dst, const void *src, uint n)
{
801046a0: 55 push %ebp
801046a1: 89 e5 mov %esp,%ebp
return memmove(dst, src, n);
}
801046a3: 5d pop %ebp
return memmove(dst, src, n);
801046a4: eb 9a jmp 80104640 <memmove>
801046a6: 8d 76 00 lea 0x0(%esi),%esi
801046a9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
801046b0 <strncmp>:
int
strncmp(const char *p, const char *q, uint n)
{
801046b0: 55 push %ebp
801046b1: 89 e5 mov %esp,%ebp
801046b3: 57 push %edi
801046b4: 56 push %esi
801046b5: 8b 7d 10 mov 0x10(%ebp),%edi
801046b8: 53 push %ebx
801046b9: 8b 4d 08 mov 0x8(%ebp),%ecx
801046bc: 8b 75 0c mov 0xc(%ebp),%esi
while(n > 0 && *p && *p == *q)
801046bf: 85 ff test %edi,%edi
801046c1: 74 2f je 801046f2 <strncmp+0x42>
801046c3: 0f b6 01 movzbl (%ecx),%eax
801046c6: 0f b6 1e movzbl (%esi),%ebx
801046c9: 84 c0 test %al,%al
801046cb: 74 37 je 80104704 <strncmp+0x54>
801046cd: 38 c3 cmp %al,%bl
801046cf: 75 33 jne 80104704 <strncmp+0x54>
801046d1: 01 f7 add %esi,%edi
801046d3: eb 13 jmp 801046e8 <strncmp+0x38>
801046d5: 8d 76 00 lea 0x0(%esi),%esi
801046d8: 0f b6 01 movzbl (%ecx),%eax
801046db: 84 c0 test %al,%al
801046dd: 74 21 je 80104700 <strncmp+0x50>
801046df: 0f b6 1a movzbl (%edx),%ebx
801046e2: 89 d6 mov %edx,%esi
801046e4: 38 d8 cmp %bl,%al
801046e6: 75 1c jne 80104704 <strncmp+0x54>
n--, p++, q++;
801046e8: 8d 56 01 lea 0x1(%esi),%edx
801046eb: 83 c1 01 add $0x1,%ecx
while(n > 0 && *p && *p == *q)
801046ee: 39 fa cmp %edi,%edx
801046f0: 75 e6 jne 801046d8 <strncmp+0x28>
if(n == 0)
return 0;
return (uchar)*p - (uchar)*q;
}
801046f2: 5b pop %ebx
return 0;
801046f3: 31 c0 xor %eax,%eax
}
801046f5: 5e pop %esi
801046f6: 5f pop %edi
801046f7: 5d pop %ebp
801046f8: c3 ret
801046f9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
80104700: 0f b6 5e 01 movzbl 0x1(%esi),%ebx
return (uchar)*p - (uchar)*q;
80104704: 29 d8 sub %ebx,%eax
}
80104706: 5b pop %ebx
80104707: 5e pop %esi
80104708: 5f pop %edi
80104709: 5d pop %ebp
8010470a: c3 ret
8010470b: 90 nop
8010470c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80104710 <strncpy>:
char*
strncpy(char *s, const char *t, int n)
{
80104710: 55 push %ebp
80104711: 89 e5 mov %esp,%ebp
80104713: 56 push %esi
80104714: 53 push %ebx
80104715: 8b 45 08 mov 0x8(%ebp),%eax
80104718: 8b 5d 0c mov 0xc(%ebp),%ebx
8010471b: 8b 4d 10 mov 0x10(%ebp),%ecx
char *os;
os = s;
while(n-- > 0 && (*s++ = *t++) != 0)
8010471e: 89 c2 mov %eax,%edx
80104720: eb 19 jmp 8010473b <strncpy+0x2b>
80104722: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
80104728: 83 c3 01 add $0x1,%ebx
8010472b: 0f b6 4b ff movzbl -0x1(%ebx),%ecx
8010472f: 83 c2 01 add $0x1,%edx
80104732: 84 c9 test %cl,%cl
80104734: 88 4a ff mov %cl,-0x1(%edx)
80104737: 74 09 je 80104742 <strncpy+0x32>
80104739: 89 f1 mov %esi,%ecx
8010473b: 85 c9 test %ecx,%ecx
8010473d: 8d 71 ff lea -0x1(%ecx),%esi
80104740: 7f e6 jg 80104728 <strncpy+0x18>
;
while(n-- > 0)
80104742: 31 c9 xor %ecx,%ecx
80104744: 85 f6 test %esi,%esi
80104746: 7e 17 jle 8010475f <strncpy+0x4f>
80104748: 90 nop
80104749: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
*s++ = 0;
80104750: c6 04 0a 00 movb $0x0,(%edx,%ecx,1)
80104754: 89 f3 mov %esi,%ebx
80104756: 83 c1 01 add $0x1,%ecx
80104759: 29 cb sub %ecx,%ebx
while(n-- > 0)
8010475b: 85 db test %ebx,%ebx
8010475d: 7f f1 jg 80104750 <strncpy+0x40>
return os;
}
8010475f: 5b pop %ebx
80104760: 5e pop %esi
80104761: 5d pop %ebp
80104762: c3 ret
80104763: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
80104769: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80104770 <safestrcpy>:
// Like strncpy but guaranteed to NUL-terminate.
char*
safestrcpy(char *s, const char *t, int n)
{
80104770: 55 push %ebp
80104771: 89 e5 mov %esp,%ebp
80104773: 56 push %esi
80104774: 53 push %ebx
80104775: 8b 4d 10 mov 0x10(%ebp),%ecx
80104778: 8b 45 08 mov 0x8(%ebp),%eax
8010477b: 8b 55 0c mov 0xc(%ebp),%edx
char *os;
os = s;
if(n <= 0)
8010477e: 85 c9 test %ecx,%ecx
80104780: 7e 26 jle 801047a8 <safestrcpy+0x38>
80104782: 8d 74 0a ff lea -0x1(%edx,%ecx,1),%esi
80104786: 89 c1 mov %eax,%ecx
80104788: eb 17 jmp 801047a1 <safestrcpy+0x31>
8010478a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
return os;
while(--n > 0 && (*s++ = *t++) != 0)
80104790: 83 c2 01 add $0x1,%edx
80104793: 0f b6 5a ff movzbl -0x1(%edx),%ebx
80104797: 83 c1 01 add $0x1,%ecx
8010479a: 84 db test %bl,%bl
8010479c: 88 59 ff mov %bl,-0x1(%ecx)
8010479f: 74 04 je 801047a5 <safestrcpy+0x35>
801047a1: 39 f2 cmp %esi,%edx
801047a3: 75 eb jne 80104790 <safestrcpy+0x20>
;
*s = 0;
801047a5: c6 01 00 movb $0x0,(%ecx)
return os;
}
801047a8: 5b pop %ebx
801047a9: 5e pop %esi
801047aa: 5d pop %ebp
801047ab: c3 ret
801047ac: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
801047b0 <strlen>:
int
strlen(const char *s)
{
801047b0: 55 push %ebp
int n;
for(n = 0; s[n]; n++)
801047b1: 31 c0 xor %eax,%eax
{
801047b3: 89 e5 mov %esp,%ebp
801047b5: 8b 55 08 mov 0x8(%ebp),%edx
for(n = 0; s[n]; n++)
801047b8: 80 3a 00 cmpb $0x0,(%edx)
801047bb: 74 0c je 801047c9 <strlen+0x19>
801047bd: 8d 76 00 lea 0x0(%esi),%esi
801047c0: 83 c0 01 add $0x1,%eax
801047c3: 80 3c 02 00 cmpb $0x0,(%edx,%eax,1)
801047c7: 75 f7 jne 801047c0 <strlen+0x10>
;
return n;
}
801047c9: 5d pop %ebp
801047ca: c3 ret
801047cb <swtch>:
# a struct context, and save its address in *old.
# Switch stacks to new and pop previously-saved registers.
.globl swtch
swtch:
movl 4(%esp), %eax
801047cb: 8b 44 24 04 mov 0x4(%esp),%eax
movl 8(%esp), %edx
801047cf: 8b 54 24 08 mov 0x8(%esp),%edx
# Save old callee-save registers
pushl %ebp
801047d3: 55 push %ebp
pushl %ebx
801047d4: 53 push %ebx
pushl %esi
801047d5: 56 push %esi
pushl %edi
801047d6: 57 push %edi
# Switch stacks
movl %esp, (%eax)
801047d7: 89 20 mov %esp,(%eax)
movl %edx, %esp
801047d9: 89 d4 mov %edx,%esp
# Load new callee-save registers
popl %edi
801047db: 5f pop %edi
popl %esi
801047dc: 5e pop %esi
popl %ebx
801047dd: 5b pop %ebx
popl %ebp
801047de: 5d pop %ebp
ret
801047df: c3 ret
801047e0 <fetchint>:
// to a saved program counter, and then the first argument.
// Fetch the int at addr from the current process.
int
fetchint(uint addr, int *ip)
{
801047e0: 55 push %ebp
801047e1: 89 e5 mov %esp,%ebp
801047e3: 53 push %ebx
801047e4: 83 ec 04 sub $0x4,%esp
801047e7: 8b 5d 08 mov 0x8(%ebp),%ebx
struct proc *curproc = myproc();
801047ea: e8 f1 ef ff ff call 801037e0 <myproc>
if(addr >= curproc->sz || addr+4 > curproc->sz)
801047ef: 8b 40 04 mov 0x4(%eax),%eax
801047f2: 39 d8 cmp %ebx,%eax
801047f4: 76 1a jbe 80104810 <fetchint+0x30>
801047f6: 8d 53 04 lea 0x4(%ebx),%edx
801047f9: 39 d0 cmp %edx,%eax
801047fb: 72 13 jb 80104810 <fetchint+0x30>
return -1;
*ip = *(int*)(addr);
801047fd: 8b 45 0c mov 0xc(%ebp),%eax
80104800: 8b 13 mov (%ebx),%edx
80104802: 89 10 mov %edx,(%eax)
return 0;
80104804: 31 c0 xor %eax,%eax
}
80104806: 83 c4 04 add $0x4,%esp
80104809: 5b pop %ebx
8010480a: 5d pop %ebp
8010480b: c3 ret
8010480c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
return -1;
80104810: b8 ff ff ff ff mov $0xffffffff,%eax
80104815: eb ef jmp 80104806 <fetchint+0x26>
80104817: 89 f6 mov %esi,%esi
80104819: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80104820 <fetchstr>:
// Fetch the nul-terminated string at addr from the current process.
// Doesn't actually copy the string - just sets *pp to point at it.
// Returns length of string, not including nul.
int
fetchstr(uint addr, char **pp)
{
80104820: 55 push %ebp
80104821: 89 e5 mov %esp,%ebp
80104823: 53 push %ebx
80104824: 83 ec 04 sub $0x4,%esp
80104827: 8b 5d 08 mov 0x8(%ebp),%ebx
char *s, *ep;
struct proc *curproc = myproc();
8010482a: e8 b1 ef ff ff call 801037e0 <myproc>
if(addr >= curproc->sz)
8010482f: 39 58 04 cmp %ebx,0x4(%eax)
80104832: 76 28 jbe 8010485c <fetchstr+0x3c>
return -1;
*pp = (char*)addr;
80104834: 8b 4d 0c mov 0xc(%ebp),%ecx
80104837: 89 da mov %ebx,%edx
80104839: 89 19 mov %ebx,(%ecx)
ep = (char*)curproc->sz;
8010483b: 8b 40 04 mov 0x4(%eax),%eax
for(s = *pp; s < ep; s++){
8010483e: 39 c3 cmp %eax,%ebx
80104840: 73 1a jae 8010485c <fetchstr+0x3c>
if(*s == 0)
80104842: 80 3b 00 cmpb $0x0,(%ebx)
80104845: 75 0e jne 80104855 <fetchstr+0x35>
80104847: eb 37 jmp 80104880 <fetchstr+0x60>
80104849: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
80104850: 80 3a 00 cmpb $0x0,(%edx)
80104853: 74 1b je 80104870 <fetchstr+0x50>
for(s = *pp; s < ep; s++){
80104855: 83 c2 01 add $0x1,%edx
80104858: 39 d0 cmp %edx,%eax
8010485a: 77 f4 ja 80104850 <fetchstr+0x30>
return -1;
8010485c: b8 ff ff ff ff mov $0xffffffff,%eax
return s - *pp;
}
return -1;
}
80104861: 83 c4 04 add $0x4,%esp
80104864: 5b pop %ebx
80104865: 5d pop %ebp
80104866: c3 ret
80104867: 89 f6 mov %esi,%esi
80104869: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80104870: 83 c4 04 add $0x4,%esp
80104873: 89 d0 mov %edx,%eax
80104875: 29 d8 sub %ebx,%eax
80104877: 5b pop %ebx
80104878: 5d pop %ebp
80104879: c3 ret
8010487a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
if(*s == 0)
80104880: 31 c0 xor %eax,%eax
return s - *pp;
80104882: eb dd jmp 80104861 <fetchstr+0x41>
80104884: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
8010488a: 8d bf 00 00 00 00 lea 0x0(%edi),%edi
80104890 <argint>:
// Fetch the nth 32-bit system call argument.
int
argint(int n, int *ip)
{
80104890: 55 push %ebp
80104891: 89 e5 mov %esp,%ebp
80104893: 56 push %esi
80104894: 53 push %ebx
return fetchint((myproc()->tf->esp) + 4 + 4*n, ip);
80104895: e8 46 ef ff ff call 801037e0 <myproc>
8010489a: 8b 40 1c mov 0x1c(%eax),%eax
8010489d: 8b 55 08 mov 0x8(%ebp),%edx
801048a0: 8b 40 44 mov 0x44(%eax),%eax
801048a3: 8d 1c 90 lea (%eax,%edx,4),%ebx
struct proc *curproc = myproc();
801048a6: e8 35 ef ff ff call 801037e0 <myproc>
if(addr >= curproc->sz || addr+4 > curproc->sz)
801048ab: 8b 40 04 mov 0x4(%eax),%eax
return fetchint((myproc()->tf->esp) + 4 + 4*n, ip);
801048ae: 8d 73 04 lea 0x4(%ebx),%esi
if(addr >= curproc->sz || addr+4 > curproc->sz)
801048b1: 39 c6 cmp %eax,%esi
801048b3: 73 1b jae 801048d0 <argint+0x40>
801048b5: 8d 53 08 lea 0x8(%ebx),%edx
801048b8: 39 d0 cmp %edx,%eax
801048ba: 72 14 jb 801048d0 <argint+0x40>
*ip = *(int*)(addr);
801048bc: 8b 45 0c mov 0xc(%ebp),%eax
801048bf: 8b 53 04 mov 0x4(%ebx),%edx
801048c2: 89 10 mov %edx,(%eax)
return 0;
801048c4: 31 c0 xor %eax,%eax
}
801048c6: 5b pop %ebx
801048c7: 5e pop %esi
801048c8: 5d pop %ebp
801048c9: c3 ret
801048ca: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
return -1;
801048d0: b8 ff ff ff ff mov $0xffffffff,%eax
return fetchint((myproc()->tf->esp) + 4 + 4*n, ip);
801048d5: eb ef jmp 801048c6 <argint+0x36>
801048d7: 89 f6 mov %esi,%esi
801048d9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
801048e0 <argptr>:
// Fetch the nth word-sized system call argument as a pointer
// to a block of memory of size bytes. Check that the pointer
// lies within the process address space.
int
argptr(int n, char **pp, int size)
{
801048e0: 55 push %ebp
801048e1: 89 e5 mov %esp,%ebp
801048e3: 56 push %esi
801048e4: 53 push %ebx
801048e5: 83 ec 10 sub $0x10,%esp
801048e8: 8b 5d 10 mov 0x10(%ebp),%ebx
int i;
struct proc *curproc = myproc();
801048eb: e8 f0 ee ff ff call 801037e0 <myproc>
801048f0: 89 c6 mov %eax,%esi
if(argint(n, &i) < 0)
801048f2: 8d 45 f4 lea -0xc(%ebp),%eax
801048f5: 83 ec 08 sub $0x8,%esp
801048f8: 50 push %eax
801048f9: ff 75 08 pushl 0x8(%ebp)
801048fc: e8 8f ff ff ff call 80104890 <argint>
return -1;
if(size < 0 || (uint)i >= curproc->sz || (uint)i+size > curproc->sz)
80104901: 83 c4 10 add $0x10,%esp
80104904: 85 c0 test %eax,%eax
80104906: 78 28 js 80104930 <argptr+0x50>
80104908: 85 db test %ebx,%ebx
8010490a: 78 24 js 80104930 <argptr+0x50>
8010490c: 8b 56 04 mov 0x4(%esi),%edx
8010490f: 8b 45 f4 mov -0xc(%ebp),%eax
80104912: 39 c2 cmp %eax,%edx
80104914: 76 1a jbe 80104930 <argptr+0x50>
80104916: 01 c3 add %eax,%ebx
80104918: 39 da cmp %ebx,%edx
8010491a: 72 14 jb 80104930 <argptr+0x50>
return -1;
*pp = (char*)i;
8010491c: 8b 55 0c mov 0xc(%ebp),%edx
8010491f: 89 02 mov %eax,(%edx)
return 0;
80104921: 31 c0 xor %eax,%eax
}
80104923: 8d 65 f8 lea -0x8(%ebp),%esp
80104926: 5b pop %ebx
80104927: 5e pop %esi
80104928: 5d pop %ebp
80104929: c3 ret
8010492a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
return -1;
80104930: b8 ff ff ff ff mov $0xffffffff,%eax
80104935: eb ec jmp 80104923 <argptr+0x43>
80104937: 89 f6 mov %esi,%esi
80104939: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80104940 <argstr>:
// Check that the pointer is valid and the string is nul-terminated.
// (There is no shared writable memory, so the string can't change
// between this check and being used by the kernel.)
int
argstr(int n, char **pp)
{
80104940: 55 push %ebp
80104941: 89 e5 mov %esp,%ebp
80104943: 83 ec 20 sub $0x20,%esp
int addr;
if(argint(n, &addr) < 0)
80104946: 8d 45 f4 lea -0xc(%ebp),%eax
80104949: 50 push %eax
8010494a: ff 75 08 pushl 0x8(%ebp)
8010494d: e8 3e ff ff ff call 80104890 <argint>
80104952: 83 c4 10 add $0x10,%esp
80104955: 85 c0 test %eax,%eax
80104957: 78 17 js 80104970 <argstr+0x30>
return -1;
return fetchstr(addr, pp);
80104959: 83 ec 08 sub $0x8,%esp
8010495c: ff 75 0c pushl 0xc(%ebp)
8010495f: ff 75 f4 pushl -0xc(%ebp)
80104962: e8 b9 fe ff ff call 80104820 <fetchstr>
80104967: 83 c4 10 add $0x10,%esp
}
8010496a: c9 leave
8010496b: c3 ret
8010496c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
return -1;
80104970: b8 ff ff ff ff mov $0xffffffff,%eax
}
80104975: c9 leave
80104976: c3 ret
80104977: 89 f6 mov %esi,%esi
80104979: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80104980 <syscall>:
[SYS_chpr] sys_chpr,
};
void
syscall(void)
{
80104980: 55 push %ebp
80104981: 89 e5 mov %esp,%ebp
80104983: 53 push %ebx
80104984: 83 ec 04 sub $0x4,%esp
int num;
numSysCalls++;
80104987: 83 05 b8 a5 10 80 01 addl $0x1,0x8010a5b8
struct proc *curproc = myproc();
8010498e: e8 4d ee ff ff call 801037e0 <myproc>
80104993: 89 c3 mov %eax,%ebx
num = curproc->tf->eax;
80104995: 8b 40 1c mov 0x1c(%eax),%eax
80104998: 8b 40 1c mov 0x1c(%eax),%eax
if(num > 0 && num < NELEM(syscalls) && syscalls[num]) {
8010499b: 8d 50 ff lea -0x1(%eax),%edx
8010499e: 83 fa 17 cmp $0x17,%edx
801049a1: 77 1d ja 801049c0 <syscall+0x40>
801049a3: 8b 14 85 00 78 10 80 mov -0x7fef8800(,%eax,4),%edx
801049aa: 85 d2 test %edx,%edx
801049ac: 74 12 je 801049c0 <syscall+0x40>
curproc->tf->eax = syscalls[num]();
801049ae: ff d2 call *%edx
801049b0: 8b 53 1c mov 0x1c(%ebx),%edx
801049b3: 89 42 1c mov %eax,0x1c(%edx)
} else {
cprintf("%d %s: unknown sys call %d\n",
curproc->pid, curproc->name, num);
curproc->tf->eax = -1;
}
}
801049b6: 8b 5d fc mov -0x4(%ebp),%ebx
801049b9: c9 leave
801049ba: c3 ret
801049bb: 90 nop
801049bc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
cprintf("%d %s: unknown sys call %d\n",
801049c0: 50 push %eax
curproc->pid, curproc->name, num);
801049c1: 8d 43 70 lea 0x70(%ebx),%eax
cprintf("%d %s: unknown sys call %d\n",
801049c4: 50 push %eax
801049c5: ff 73 14 pushl 0x14(%ebx)
801049c8: 68 d9 77 10 80 push $0x801077d9
801049cd: e8 8e bc ff ff call 80100660 <cprintf>
curproc->tf->eax = -1;
801049d2: 8b 43 1c mov 0x1c(%ebx),%eax
801049d5: 83 c4 10 add $0x10,%esp
801049d8: c7 40 1c ff ff ff ff movl $0xffffffff,0x1c(%eax)
}
801049df: 8b 5d fc mov -0x4(%ebp),%ebx
801049e2: c9 leave
801049e3: c3 ret
801049e4: 66 90 xchg %ax,%ax
801049e6: 66 90 xchg %ax,%ax
801049e8: 66 90 xchg %ax,%ax
801049ea: 66 90 xchg %ax,%ax
801049ec: 66 90 xchg %ax,%ax
801049ee: 66 90 xchg %ax,%ax
801049f0 <create>:
return -1;
}
static struct inode*
create(char *path, short type, short major, short minor)
{
801049f0: 55 push %ebp
801049f1: 89 e5 mov %esp,%ebp
801049f3: 57 push %edi
801049f4: 56 push %esi
801049f5: 53 push %ebx
uint off;
struct inode *ip, *dp;
char name[DIRSIZ];
if((dp = nameiparent(path, name)) == 0)
801049f6: 8d 75 da lea -0x26(%ebp),%esi
{
801049f9: 83 ec 44 sub $0x44,%esp
801049fc: 89 4d c0 mov %ecx,-0x40(%ebp)
801049ff: 8b 4d 08 mov 0x8(%ebp),%ecx
if((dp = nameiparent(path, name)) == 0)
80104a02: 56 push %esi
80104a03: 50 push %eax
{
80104a04: 89 55 c4 mov %edx,-0x3c(%ebp)
80104a07: 89 4d bc mov %ecx,-0x44(%ebp)
if((dp = nameiparent(path, name)) == 0)
80104a0a: e8 01 d5 ff ff call 80101f10 <nameiparent>
80104a0f: 83 c4 10 add $0x10,%esp
80104a12: 85 c0 test %eax,%eax
80104a14: 0f 84 46 01 00 00 je 80104b60 <create+0x170>
return 0;
ilock(dp);
80104a1a: 83 ec 0c sub $0xc,%esp
80104a1d: 89 c3 mov %eax,%ebx
80104a1f: 50 push %eax
80104a20: e8 6b cc ff ff call 80101690 <ilock>
if((ip = dirlookup(dp, name, &off)) != 0){
80104a25: 8d 45 d4 lea -0x2c(%ebp),%eax
80104a28: 83 c4 0c add $0xc,%esp
80104a2b: 50 push %eax
80104a2c: 56 push %esi
80104a2d: 53 push %ebx
80104a2e: e8 8d d1 ff ff call 80101bc0 <dirlookup>
80104a33: 83 c4 10 add $0x10,%esp
80104a36: 85 c0 test %eax,%eax
80104a38: 89 c7 mov %eax,%edi
80104a3a: 74 34 je 80104a70 <create+0x80>
iunlockput(dp);
80104a3c: 83 ec 0c sub $0xc,%esp
80104a3f: 53 push %ebx
80104a40: e8 db ce ff ff call 80101920 <iunlockput>
ilock(ip);
80104a45: 89 3c 24 mov %edi,(%esp)
80104a48: e8 43 cc ff ff call 80101690 <ilock>
if(type == T_FILE && ip->type == T_FILE)
80104a4d: 83 c4 10 add $0x10,%esp
80104a50: 66 83 7d c4 02 cmpw $0x2,-0x3c(%ebp)
80104a55: 0f 85 95 00 00 00 jne 80104af0 <create+0x100>
80104a5b: 66 83 7f 50 02 cmpw $0x2,0x50(%edi)
80104a60: 0f 85 8a 00 00 00 jne 80104af0 <create+0x100>
panic("create: dirlink");
iunlockput(dp);
return ip;
}
80104a66: 8d 65 f4 lea -0xc(%ebp),%esp
80104a69: 89 f8 mov %edi,%eax
80104a6b: 5b pop %ebx
80104a6c: 5e pop %esi
80104a6d: 5f pop %edi
80104a6e: 5d pop %ebp
80104a6f: c3 ret
if((ip = ialloc(dp->dev, type)) == 0)
80104a70: 0f bf 45 c4 movswl -0x3c(%ebp),%eax
80104a74: 83 ec 08 sub $0x8,%esp
80104a77: 50 push %eax
80104a78: ff 33 pushl (%ebx)
80104a7a: e8 a1 ca ff ff call 80101520 <ialloc>
80104a7f: 83 c4 10 add $0x10,%esp
80104a82: 85 c0 test %eax,%eax
80104a84: 89 c7 mov %eax,%edi
80104a86: 0f 84 e8 00 00 00 je 80104b74 <create+0x184>
ilock(ip);
80104a8c: 83 ec 0c sub $0xc,%esp
80104a8f: 50 push %eax
80104a90: e8 fb cb ff ff call 80101690 <ilock>
ip->major = major;
80104a95: 0f b7 45 c0 movzwl -0x40(%ebp),%eax
80104a99: 66 89 47 52 mov %ax,0x52(%edi)
ip->minor = minor;
80104a9d: 0f b7 45 bc movzwl -0x44(%ebp),%eax
80104aa1: 66 89 47 54 mov %ax,0x54(%edi)
ip->nlink = 1;
80104aa5: b8 01 00 00 00 mov $0x1,%eax
80104aaa: 66 89 47 56 mov %ax,0x56(%edi)
iupdate(ip);
80104aae: 89 3c 24 mov %edi,(%esp)
80104ab1: e8 2a cb ff ff call 801015e0 <iupdate>
if(type == T_DIR){ // Create . and .. entries.
80104ab6: 83 c4 10 add $0x10,%esp
80104ab9: 66 83 7d c4 01 cmpw $0x1,-0x3c(%ebp)
80104abe: 74 50 je 80104b10 <create+0x120>
if(dirlink(dp, name, ip->inum) < 0)
80104ac0: 83 ec 04 sub $0x4,%esp
80104ac3: ff 77 04 pushl 0x4(%edi)
80104ac6: 56 push %esi
80104ac7: 53 push %ebx
80104ac8: e8 63 d3 ff ff call 80101e30 <dirlink>
80104acd: 83 c4 10 add $0x10,%esp
80104ad0: 85 c0 test %eax,%eax
80104ad2: 0f 88 8f 00 00 00 js 80104b67 <create+0x177>
iunlockput(dp);
80104ad8: 83 ec 0c sub $0xc,%esp
80104adb: 53 push %ebx
80104adc: e8 3f ce ff ff call 80101920 <iunlockput>
return ip;
80104ae1: 83 c4 10 add $0x10,%esp
}
80104ae4: 8d 65 f4 lea -0xc(%ebp),%esp
80104ae7: 89 f8 mov %edi,%eax
80104ae9: 5b pop %ebx
80104aea: 5e pop %esi
80104aeb: 5f pop %edi
80104aec: 5d pop %ebp
80104aed: c3 ret
80104aee: 66 90 xchg %ax,%ax
iunlockput(ip);
80104af0: 83 ec 0c sub $0xc,%esp
80104af3: 57 push %edi
return 0;
80104af4: 31 ff xor %edi,%edi
iunlockput(ip);
80104af6: e8 25 ce ff ff call 80101920 <iunlockput>
return 0;
80104afb: 83 c4 10 add $0x10,%esp
}
80104afe: 8d 65 f4 lea -0xc(%ebp),%esp
80104b01: 89 f8 mov %edi,%eax
80104b03: 5b pop %ebx
80104b04: 5e pop %esi
80104b05: 5f pop %edi
80104b06: 5d pop %ebp
80104b07: c3 ret
80104b08: 90 nop
80104b09: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
dp->nlink++; // for ".."
80104b10: 66 83 43 56 01 addw $0x1,0x56(%ebx)
iupdate(dp);
80104b15: 83 ec 0c sub $0xc,%esp
80104b18: 53 push %ebx
80104b19: e8 c2 ca ff ff call 801015e0 <iupdate>
if(dirlink(ip, ".", ip->inum) < 0 || dirlink(ip, "..", dp->inum) < 0)
80104b1e: 83 c4 0c add $0xc,%esp
80104b21: ff 77 04 pushl 0x4(%edi)
80104b24: 68 80 78 10 80 push $0x80107880
80104b29: 57 push %edi
80104b2a: e8 01 d3 ff ff call 80101e30 <dirlink>
80104b2f: 83 c4 10 add $0x10,%esp
80104b32: 85 c0 test %eax,%eax
80104b34: 78 1c js 80104b52 <create+0x162>
80104b36: 83 ec 04 sub $0x4,%esp
80104b39: ff 73 04 pushl 0x4(%ebx)
80104b3c: 68 7f 78 10 80 push $0x8010787f
80104b41: 57 push %edi
80104b42: e8 e9 d2 ff ff call 80101e30 <dirlink>
80104b47: 83 c4 10 add $0x10,%esp
80104b4a: 85 c0 test %eax,%eax
80104b4c: 0f 89 6e ff ff ff jns 80104ac0 <create+0xd0>
panic("create dots");
80104b52: 83 ec 0c sub $0xc,%esp
80104b55: 68 73 78 10 80 push $0x80107873
80104b5a: e8 31 b8 ff ff call 80100390 <panic>
80104b5f: 90 nop
return 0;
80104b60: 31 ff xor %edi,%edi
80104b62: e9 ff fe ff ff jmp 80104a66 <create+0x76>
panic("create: dirlink");
80104b67: 83 ec 0c sub $0xc,%esp
80104b6a: 68 82 78 10 80 push $0x80107882
80104b6f: e8 1c b8 ff ff call 80100390 <panic>
panic("create: ialloc");
80104b74: 83 ec 0c sub $0xc,%esp
80104b77: 68 64 78 10 80 push $0x80107864
80104b7c: e8 0f b8 ff ff call 80100390 <panic>
80104b81: eb 0d jmp 80104b90 <argfd.constprop.0>
80104b83: 90 nop
80104b84: 90 nop
80104b85: 90 nop
80104b86: 90 nop
80104b87: 90 nop
80104b88: 90 nop
80104b89: 90 nop
80104b8a: 90 nop
80104b8b: 90 nop
80104b8c: 90 nop
80104b8d: 90 nop
80104b8e: 90 nop
80104b8f: 90 nop
80104b90 <argfd.constprop.0>:
argfd(int n, int *pfd, struct file **pf)
80104b90: 55 push %ebp
80104b91: 89 e5 mov %esp,%ebp
80104b93: 56 push %esi
80104b94: 53 push %ebx
80104b95: 89 c3 mov %eax,%ebx
if(argint(n, &fd) < 0)
80104b97: 8d 45 f4 lea -0xc(%ebp),%eax
argfd(int n, int *pfd, struct file **pf)
80104b9a: 89 d6 mov %edx,%esi
80104b9c: 83 ec 18 sub $0x18,%esp
if(argint(n, &fd) < 0)
80104b9f: 50 push %eax
80104ba0: 6a 00 push $0x0
80104ba2: e8 e9 fc ff ff call 80104890 <argint>
80104ba7: 83 c4 10 add $0x10,%esp
80104baa: 85 c0 test %eax,%eax
80104bac: 78 2a js 80104bd8 <argfd.constprop.0+0x48>
if(fd < 0 || fd >= NOFILE || (f=myproc()->ofile[fd]) == 0)
80104bae: 83 7d f4 0f cmpl $0xf,-0xc(%ebp)
80104bb2: 77 24 ja 80104bd8 <argfd.constprop.0+0x48>
80104bb4: e8 27 ec ff ff call 801037e0 <myproc>
80104bb9: 8b 55 f4 mov -0xc(%ebp),%edx
80104bbc: 8b 44 90 2c mov 0x2c(%eax,%edx,4),%eax
80104bc0: 85 c0 test %eax,%eax
80104bc2: 74 14 je 80104bd8 <argfd.constprop.0+0x48>
if(pfd)
80104bc4: 85 db test %ebx,%ebx
80104bc6: 74 02 je 80104bca <argfd.constprop.0+0x3a>
*pfd = fd;
80104bc8: 89 13 mov %edx,(%ebx)
*pf = f;
80104bca: 89 06 mov %eax,(%esi)
return 0;
80104bcc: 31 c0 xor %eax,%eax
}
80104bce: 8d 65 f8 lea -0x8(%ebp),%esp
80104bd1: 5b pop %ebx
80104bd2: 5e pop %esi
80104bd3: 5d pop %ebp
80104bd4: c3 ret
80104bd5: 8d 76 00 lea 0x0(%esi),%esi
return -1;
80104bd8: b8 ff ff ff ff mov $0xffffffff,%eax
80104bdd: eb ef jmp 80104bce <argfd.constprop.0+0x3e>
80104bdf: 90 nop
80104be0 <sys_dup>:
{
80104be0: 55 push %ebp
if(argfd(0, 0, &f) < 0)
80104be1: 31 c0 xor %eax,%eax
{
80104be3: 89 e5 mov %esp,%ebp
80104be5: 56 push %esi
80104be6: 53 push %ebx
if(argfd(0, 0, &f) < 0)
80104be7: 8d 55 f4 lea -0xc(%ebp),%edx
{
80104bea: 83 ec 10 sub $0x10,%esp
if(argfd(0, 0, &f) < 0)
80104bed: e8 9e ff ff ff call 80104b90 <argfd.constprop.0>
80104bf2: 85 c0 test %eax,%eax
80104bf4: 78 42 js 80104c38 <sys_dup+0x58>
if((fd=fdalloc(f)) < 0)
80104bf6: 8b 75 f4 mov -0xc(%ebp),%esi
for(fd = 0; fd < NOFILE; fd++){
80104bf9: 31 db xor %ebx,%ebx
struct proc *curproc = myproc();
80104bfb: e8 e0 eb ff ff call 801037e0 <myproc>
80104c00: eb 0e jmp 80104c10 <sys_dup+0x30>
80104c02: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
for(fd = 0; fd < NOFILE; fd++){
80104c08: 83 c3 01 add $0x1,%ebx
80104c0b: 83 fb 10 cmp $0x10,%ebx
80104c0e: 74 28 je 80104c38 <sys_dup+0x58>
if(curproc->ofile[fd] == 0){
80104c10: 8b 54 98 2c mov 0x2c(%eax,%ebx,4),%edx
80104c14: 85 d2 test %edx,%edx
80104c16: 75 f0 jne 80104c08 <sys_dup+0x28>
curproc->ofile[fd] = f;
80104c18: 89 74 98 2c mov %esi,0x2c(%eax,%ebx,4)
filedup(f);
80104c1c: 83 ec 0c sub $0xc,%esp
80104c1f: ff 75 f4 pushl -0xc(%ebp)
80104c22: e8 c9 c1 ff ff call 80100df0 <filedup>
return fd;
80104c27: 83 c4 10 add $0x10,%esp
}
80104c2a: 8d 65 f8 lea -0x8(%ebp),%esp
80104c2d: 89 d8 mov %ebx,%eax
80104c2f: 5b pop %ebx
80104c30: 5e pop %esi
80104c31: 5d pop %ebp
80104c32: c3 ret
80104c33: 90 nop
80104c34: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80104c38: 8d 65 f8 lea -0x8(%ebp),%esp
return -1;
80104c3b: bb ff ff ff ff mov $0xffffffff,%ebx
}
80104c40: 89 d8 mov %ebx,%eax
80104c42: 5b pop %ebx
80104c43: 5e pop %esi
80104c44: 5d pop %ebp
80104c45: c3 ret
80104c46: 8d 76 00 lea 0x0(%esi),%esi
80104c49: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80104c50 <sys_read>:
{
80104c50: 55 push %ebp
if(argfd(0, 0, &f) < 0 || argint(2, &n) < 0 || argptr(1, &p, n) < 0)
80104c51: 31 c0 xor %eax,%eax
{
80104c53: 89 e5 mov %esp,%ebp
80104c55: 83 ec 18 sub $0x18,%esp
if(argfd(0, 0, &f) < 0 || argint(2, &n) < 0 || argptr(1, &p, n) < 0)
80104c58: 8d 55 ec lea -0x14(%ebp),%edx
80104c5b: e8 30 ff ff ff call 80104b90 <argfd.constprop.0>
80104c60: 85 c0 test %eax,%eax
80104c62: 78 4c js 80104cb0 <sys_read+0x60>
80104c64: 8d 45 f0 lea -0x10(%ebp),%eax
80104c67: 83 ec 08 sub $0x8,%esp
80104c6a: 50 push %eax
80104c6b: 6a 02 push $0x2
80104c6d: e8 1e fc ff ff call 80104890 <argint>
80104c72: 83 c4 10 add $0x10,%esp
80104c75: 85 c0 test %eax,%eax
80104c77: 78 37 js 80104cb0 <sys_read+0x60>
80104c79: 8d 45 f4 lea -0xc(%ebp),%eax
80104c7c: 83 ec 04 sub $0x4,%esp
80104c7f: ff 75 f0 pushl -0x10(%ebp)
80104c82: 50 push %eax
80104c83: 6a 01 push $0x1
80104c85: e8 56 fc ff ff call 801048e0 <argptr>
80104c8a: 83 c4 10 add $0x10,%esp
80104c8d: 85 c0 test %eax,%eax
80104c8f: 78 1f js 80104cb0 <sys_read+0x60>
return fileread(f, p, n);
80104c91: 83 ec 04 sub $0x4,%esp
80104c94: ff 75 f0 pushl -0x10(%ebp)
80104c97: ff 75 f4 pushl -0xc(%ebp)
80104c9a: ff 75 ec pushl -0x14(%ebp)
80104c9d: e8 be c2 ff ff call 80100f60 <fileread>
80104ca2: 83 c4 10 add $0x10,%esp
}
80104ca5: c9 leave
80104ca6: c3 ret
80104ca7: 89 f6 mov %esi,%esi
80104ca9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
return -1;
80104cb0: b8 ff ff ff ff mov $0xffffffff,%eax
}
80104cb5: c9 leave
80104cb6: c3 ret
80104cb7: 89 f6 mov %esi,%esi
80104cb9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80104cc0 <sys_write>:
{
80104cc0: 55 push %ebp
if(argfd(0, 0, &f) < 0 || argint(2, &n) < 0 || argptr(1, &p, n) < 0)
80104cc1: 31 c0 xor %eax,%eax
{
80104cc3: 89 e5 mov %esp,%ebp
80104cc5: 83 ec 18 sub $0x18,%esp
if(argfd(0, 0, &f) < 0 || argint(2, &n) < 0 || argptr(1, &p, n) < 0)
80104cc8: 8d 55 ec lea -0x14(%ebp),%edx
80104ccb: e8 c0 fe ff ff call 80104b90 <argfd.constprop.0>
80104cd0: 85 c0 test %eax,%eax
80104cd2: 78 4c js 80104d20 <sys_write+0x60>
80104cd4: 8d 45 f0 lea -0x10(%ebp),%eax
80104cd7: 83 ec 08 sub $0x8,%esp
80104cda: 50 push %eax
80104cdb: 6a 02 push $0x2
80104cdd: e8 ae fb ff ff call 80104890 <argint>
80104ce2: 83 c4 10 add $0x10,%esp
80104ce5: 85 c0 test %eax,%eax
80104ce7: 78 37 js 80104d20 <sys_write+0x60>
80104ce9: 8d 45 f4 lea -0xc(%ebp),%eax
80104cec: 83 ec 04 sub $0x4,%esp
80104cef: ff 75 f0 pushl -0x10(%ebp)
80104cf2: 50 push %eax
80104cf3: 6a 01 push $0x1
80104cf5: e8 e6 fb ff ff call 801048e0 <argptr>
80104cfa: 83 c4 10 add $0x10,%esp
80104cfd: 85 c0 test %eax,%eax
80104cff: 78 1f js 80104d20 <sys_write+0x60>
return filewrite(f, p, n);
80104d01: 83 ec 04 sub $0x4,%esp
80104d04: ff 75 f0 pushl -0x10(%ebp)
80104d07: ff 75 f4 pushl -0xc(%ebp)
80104d0a: ff 75 ec pushl -0x14(%ebp)
80104d0d: e8 de c2 ff ff call 80100ff0 <filewrite>
80104d12: 83 c4 10 add $0x10,%esp
}
80104d15: c9 leave
80104d16: c3 ret
80104d17: 89 f6 mov %esi,%esi
80104d19: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
return -1;
80104d20: b8 ff ff ff ff mov $0xffffffff,%eax
}
80104d25: c9 leave
80104d26: c3 ret
80104d27: 89 f6 mov %esi,%esi
80104d29: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80104d30 <sys_close>:
{
80104d30: 55 push %ebp
80104d31: 89 e5 mov %esp,%ebp
80104d33: 83 ec 18 sub $0x18,%esp
if(argfd(0, &fd, &f) < 0)
80104d36: 8d 55 f4 lea -0xc(%ebp),%edx
80104d39: 8d 45 f0 lea -0x10(%ebp),%eax
80104d3c: e8 4f fe ff ff call 80104b90 <argfd.constprop.0>
80104d41: 85 c0 test %eax,%eax
80104d43: 78 2b js 80104d70 <sys_close+0x40>
myproc()->ofile[fd] = 0;
80104d45: e8 96 ea ff ff call 801037e0 <myproc>
80104d4a: 8b 55 f0 mov -0x10(%ebp),%edx
fileclose(f);
80104d4d: 83 ec 0c sub $0xc,%esp
myproc()->ofile[fd] = 0;
80104d50: c7 44 90 2c 00 00 00 movl $0x0,0x2c(%eax,%edx,4)
80104d57: 00
fileclose(f);
80104d58: ff 75 f4 pushl -0xc(%ebp)
80104d5b: e8 e0 c0 ff ff call 80100e40 <fileclose>
return 0;
80104d60: 83 c4 10 add $0x10,%esp
80104d63: 31 c0 xor %eax,%eax
}
80104d65: c9 leave
80104d66: c3 ret
80104d67: 89 f6 mov %esi,%esi
80104d69: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
return -1;
80104d70: b8 ff ff ff ff mov $0xffffffff,%eax
}
80104d75: c9 leave
80104d76: c3 ret
80104d77: 89 f6 mov %esi,%esi
80104d79: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80104d80 <sys_fstat>:
{
80104d80: 55 push %ebp
if(argfd(0, 0, &f) < 0 || argptr(1, (void*)&st, sizeof(*st)) < 0)
80104d81: 31 c0 xor %eax,%eax
{
80104d83: 89 e5 mov %esp,%ebp
80104d85: 83 ec 18 sub $0x18,%esp
if(argfd(0, 0, &f) < 0 || argptr(1, (void*)&st, sizeof(*st)) < 0)
80104d88: 8d 55 f0 lea -0x10(%ebp),%edx
80104d8b: e8 00 fe ff ff call 80104b90 <argfd.constprop.0>
80104d90: 85 c0 test %eax,%eax
80104d92: 78 2c js 80104dc0 <sys_fstat+0x40>
80104d94: 8d 45 f4 lea -0xc(%ebp),%eax
80104d97: 83 ec 04 sub $0x4,%esp
80104d9a: 6a 14 push $0x14
80104d9c: 50 push %eax
80104d9d: 6a 01 push $0x1
80104d9f: e8 3c fb ff ff call 801048e0 <argptr>
80104da4: 83 c4 10 add $0x10,%esp
80104da7: 85 c0 test %eax,%eax
80104da9: 78 15 js 80104dc0 <sys_fstat+0x40>
return filestat(f, st);
80104dab: 83 ec 08 sub $0x8,%esp
80104dae: ff 75 f4 pushl -0xc(%ebp)
80104db1: ff 75 f0 pushl -0x10(%ebp)
80104db4: e8 57 c1 ff ff call 80100f10 <filestat>
80104db9: 83 c4 10 add $0x10,%esp
}
80104dbc: c9 leave
80104dbd: c3 ret
80104dbe: 66 90 xchg %ax,%ax
return -1;
80104dc0: b8 ff ff ff ff mov $0xffffffff,%eax
}
80104dc5: c9 leave
80104dc6: c3 ret
80104dc7: 89 f6 mov %esi,%esi
80104dc9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80104dd0 <sys_link>:
{
80104dd0: 55 push %ebp
80104dd1: 89 e5 mov %esp,%ebp
80104dd3: 57 push %edi
80104dd4: 56 push %esi
80104dd5: 53 push %ebx
if(argstr(0, &old) < 0 || argstr(1, &new) < 0)
80104dd6: 8d 45 d4 lea -0x2c(%ebp),%eax
{
80104dd9: 83 ec 34 sub $0x34,%esp
if(argstr(0, &old) < 0 || argstr(1, &new) < 0)
80104ddc: 50 push %eax
80104ddd: 6a 00 push $0x0
80104ddf: e8 5c fb ff ff call 80104940 <argstr>
80104de4: 83 c4 10 add $0x10,%esp
80104de7: 85 c0 test %eax,%eax
80104de9: 0f 88 fb 00 00 00 js 80104eea <sys_link+0x11a>
80104def: 8d 45 d0 lea -0x30(%ebp),%eax
80104df2: 83 ec 08 sub $0x8,%esp
80104df5: 50 push %eax
80104df6: 6a 01 push $0x1
80104df8: e8 43 fb ff ff call 80104940 <argstr>
80104dfd: 83 c4 10 add $0x10,%esp
80104e00: 85 c0 test %eax,%eax
80104e02: 0f 88 e2 00 00 00 js 80104eea <sys_link+0x11a>
begin_op();
80104e08: e8 a3 dd ff ff call 80102bb0 <begin_op>
if((ip = namei(old)) == 0){
80104e0d: 83 ec 0c sub $0xc,%esp
80104e10: ff 75 d4 pushl -0x2c(%ebp)
80104e13: e8 d8 d0 ff ff call 80101ef0 <namei>
80104e18: 83 c4 10 add $0x10,%esp
80104e1b: 85 c0 test %eax,%eax
80104e1d: 89 c3 mov %eax,%ebx
80104e1f: 0f 84 ea 00 00 00 je 80104f0f <sys_link+0x13f>
ilock(ip);
80104e25: 83 ec 0c sub $0xc,%esp
80104e28: 50 push %eax
80104e29: e8 62 c8 ff ff call 80101690 <ilock>
if(ip->type == T_DIR){
80104e2e: 83 c4 10 add $0x10,%esp
80104e31: 66 83 7b 50 01 cmpw $0x1,0x50(%ebx)
80104e36: 0f 84 bb 00 00 00 je 80104ef7 <sys_link+0x127>
ip->nlink++;
80104e3c: 66 83 43 56 01 addw $0x1,0x56(%ebx)
iupdate(ip);
80104e41: 83 ec 0c sub $0xc,%esp
if((dp = nameiparent(new, name)) == 0)
80104e44: 8d 7d da lea -0x26(%ebp),%edi
iupdate(ip);
80104e47: 53 push %ebx
80104e48: e8 93 c7 ff ff call 801015e0 <iupdate>
iunlock(ip);
80104e4d: 89 1c 24 mov %ebx,(%esp)
80104e50: e8 1b c9 ff ff call 80101770 <iunlock>
if((dp = nameiparent(new, name)) == 0)
80104e55: 58 pop %eax
80104e56: 5a pop %edx
80104e57: 57 push %edi
80104e58: ff 75 d0 pushl -0x30(%ebp)
80104e5b: e8 b0 d0 ff ff call 80101f10 <nameiparent>
80104e60: 83 c4 10 add $0x10,%esp
80104e63: 85 c0 test %eax,%eax
80104e65: 89 c6 mov %eax,%esi
80104e67: 74 5b je 80104ec4 <sys_link+0xf4>
ilock(dp);
80104e69: 83 ec 0c sub $0xc,%esp
80104e6c: 50 push %eax
80104e6d: e8 1e c8 ff ff call 80101690 <ilock>
if(dp->dev != ip->dev || dirlink(dp, name, ip->inum) < 0){
80104e72: 83 c4 10 add $0x10,%esp
80104e75: 8b 03 mov (%ebx),%eax
80104e77: 39 06 cmp %eax,(%esi)
80104e79: 75 3d jne 80104eb8 <sys_link+0xe8>
80104e7b: 83 ec 04 sub $0x4,%esp
80104e7e: ff 73 04 pushl 0x4(%ebx)
80104e81: 57 push %edi
80104e82: 56 push %esi
80104e83: e8 a8 cf ff ff call 80101e30 <dirlink>
80104e88: 83 c4 10 add $0x10,%esp
80104e8b: 85 c0 test %eax,%eax
80104e8d: 78 29 js 80104eb8 <sys_link+0xe8>
iunlockput(dp);
80104e8f: 83 ec 0c sub $0xc,%esp
80104e92: 56 push %esi
80104e93: e8 88 ca ff ff call 80101920 <iunlockput>
iput(ip);
80104e98: 89 1c 24 mov %ebx,(%esp)
80104e9b: e8 20 c9 ff ff call 801017c0 <iput>
end_op();
80104ea0: e8 7b dd ff ff call 80102c20 <end_op>
return 0;
80104ea5: 83 c4 10 add $0x10,%esp
80104ea8: 31 c0 xor %eax,%eax
}
80104eaa: 8d 65 f4 lea -0xc(%ebp),%esp
80104ead: 5b pop %ebx
80104eae: 5e pop %esi
80104eaf: 5f pop %edi
80104eb0: 5d pop %ebp
80104eb1: c3 ret
80104eb2: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
iunlockput(dp);
80104eb8: 83 ec 0c sub $0xc,%esp
80104ebb: 56 push %esi
80104ebc: e8 5f ca ff ff call 80101920 <iunlockput>
goto bad;
80104ec1: 83 c4 10 add $0x10,%esp
ilock(ip);
80104ec4: 83 ec 0c sub $0xc,%esp
80104ec7: 53 push %ebx
80104ec8: e8 c3 c7 ff ff call 80101690 <ilock>
ip->nlink--;
80104ecd: 66 83 6b 56 01 subw $0x1,0x56(%ebx)
iupdate(ip);
80104ed2: 89 1c 24 mov %ebx,(%esp)
80104ed5: e8 06 c7 ff ff call 801015e0 <iupdate>
iunlockput(ip);
80104eda: 89 1c 24 mov %ebx,(%esp)
80104edd: e8 3e ca ff ff call 80101920 <iunlockput>
end_op();
80104ee2: e8 39 dd ff ff call 80102c20 <end_op>
return -1;
80104ee7: 83 c4 10 add $0x10,%esp
}
80104eea: 8d 65 f4 lea -0xc(%ebp),%esp
return -1;
80104eed: b8 ff ff ff ff mov $0xffffffff,%eax
}
80104ef2: 5b pop %ebx
80104ef3: 5e pop %esi
80104ef4: 5f pop %edi
80104ef5: 5d pop %ebp
80104ef6: c3 ret
iunlockput(ip);
80104ef7: 83 ec 0c sub $0xc,%esp
80104efa: 53 push %ebx
80104efb: e8 20 ca ff ff call 80101920 <iunlockput>
end_op();
80104f00: e8 1b dd ff ff call 80102c20 <end_op>
return -1;
80104f05: 83 c4 10 add $0x10,%esp
80104f08: b8 ff ff ff ff mov $0xffffffff,%eax
80104f0d: eb 9b jmp 80104eaa <sys_link+0xda>
end_op();
80104f0f: e8 0c dd ff ff call 80102c20 <end_op>
return -1;
80104f14: b8 ff ff ff ff mov $0xffffffff,%eax
80104f19: eb 8f jmp 80104eaa <sys_link+0xda>
80104f1b: 90 nop
80104f1c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80104f20 <sys_unlink>:
{
80104f20: 55 push %ebp
80104f21: 89 e5 mov %esp,%ebp
80104f23: 57 push %edi
80104f24: 56 push %esi
80104f25: 53 push %ebx
if(argstr(0, &path) < 0)
80104f26: 8d 45 c0 lea -0x40(%ebp),%eax
{
80104f29: 83 ec 44 sub $0x44,%esp
if(argstr(0, &path) < 0)
80104f2c: 50 push %eax
80104f2d: 6a 00 push $0x0
80104f2f: e8 0c fa ff ff call 80104940 <argstr>
80104f34: 83 c4 10 add $0x10,%esp
80104f37: 85 c0 test %eax,%eax
80104f39: 0f 88 77 01 00 00 js 801050b6 <sys_unlink+0x196>
if((dp = nameiparent(path, name)) == 0){
80104f3f: 8d 5d ca lea -0x36(%ebp),%ebx
begin_op();
80104f42: e8 69 dc ff ff call 80102bb0 <begin_op>
if((dp = nameiparent(path, name)) == 0){
80104f47: 83 ec 08 sub $0x8,%esp
80104f4a: 53 push %ebx
80104f4b: ff 75 c0 pushl -0x40(%ebp)
80104f4e: e8 bd cf ff ff call 80101f10 <nameiparent>
80104f53: 83 c4 10 add $0x10,%esp
80104f56: 85 c0 test %eax,%eax
80104f58: 89 c6 mov %eax,%esi
80104f5a: 0f 84 60 01 00 00 je 801050c0 <sys_unlink+0x1a0>
ilock(dp);
80104f60: 83 ec 0c sub $0xc,%esp
80104f63: 50 push %eax
80104f64: e8 27 c7 ff ff call 80101690 <ilock>
if(namecmp(name, ".") == 0 || namecmp(name, "..") == 0)
80104f69: 58 pop %eax
80104f6a: 5a pop %edx
80104f6b: 68 80 78 10 80 push $0x80107880
80104f70: 53 push %ebx
80104f71: e8 2a cc ff ff call 80101ba0 <namecmp>
80104f76: 83 c4 10 add $0x10,%esp
80104f79: 85 c0 test %eax,%eax
80104f7b: 0f 84 03 01 00 00 je 80105084 <sys_unlink+0x164>
80104f81: 83 ec 08 sub $0x8,%esp
80104f84: 68 7f 78 10 80 push $0x8010787f
80104f89: 53 push %ebx
80104f8a: e8 11 cc ff ff call 80101ba0 <namecmp>
80104f8f: 83 c4 10 add $0x10,%esp
80104f92: 85 c0 test %eax,%eax
80104f94: 0f 84 ea 00 00 00 je 80105084 <sys_unlink+0x164>
if((ip = dirlookup(dp, name, &off)) == 0)
80104f9a: 8d 45 c4 lea -0x3c(%ebp),%eax
80104f9d: 83 ec 04 sub $0x4,%esp
80104fa0: 50 push %eax
80104fa1: 53 push %ebx
80104fa2: 56 push %esi
80104fa3: e8 18 cc ff ff call 80101bc0 <dirlookup>
80104fa8: 83 c4 10 add $0x10,%esp
80104fab: 85 c0 test %eax,%eax
80104fad: 89 c3 mov %eax,%ebx
80104faf: 0f 84 cf 00 00 00 je 80105084 <sys_unlink+0x164>
ilock(ip);
80104fb5: 83 ec 0c sub $0xc,%esp
80104fb8: 50 push %eax
80104fb9: e8 d2 c6 ff ff call 80101690 <ilock>
if(ip->nlink < 1)
80104fbe: 83 c4 10 add $0x10,%esp
80104fc1: 66 83 7b 56 00 cmpw $0x0,0x56(%ebx)
80104fc6: 0f 8e 10 01 00 00 jle 801050dc <sys_unlink+0x1bc>
if(ip->type == T_DIR && !isdirempty(ip)){
80104fcc: 66 83 7b 50 01 cmpw $0x1,0x50(%ebx)
80104fd1: 74 6d je 80105040 <sys_unlink+0x120>
memset(&de, 0, sizeof(de));
80104fd3: 8d 45 d8 lea -0x28(%ebp),%eax
80104fd6: 83 ec 04 sub $0x4,%esp
80104fd9: 6a 10 push $0x10
80104fdb: 6a 00 push $0x0
80104fdd: 50 push %eax
80104fde: e8 ad f5 ff ff call 80104590 <memset>
if(writei(dp, (char*)&de, off, sizeof(de)) != sizeof(de))
80104fe3: 8d 45 d8 lea -0x28(%ebp),%eax
80104fe6: 6a 10 push $0x10
80104fe8: ff 75 c4 pushl -0x3c(%ebp)
80104feb: 50 push %eax
80104fec: 56 push %esi
80104fed: e8 7e ca ff ff call 80101a70 <writei>
80104ff2: 83 c4 20 add $0x20,%esp
80104ff5: 83 f8 10 cmp $0x10,%eax
80104ff8: 0f 85 eb 00 00 00 jne 801050e9 <sys_unlink+0x1c9>
if(ip->type == T_DIR){
80104ffe: 66 83 7b 50 01 cmpw $0x1,0x50(%ebx)
80105003: 0f 84 97 00 00 00 je 801050a0 <sys_unlink+0x180>
iunlockput(dp);
80105009: 83 ec 0c sub $0xc,%esp
8010500c: 56 push %esi
8010500d: e8 0e c9 ff ff call 80101920 <iunlockput>
ip->nlink--;
80105012: 66 83 6b 56 01 subw $0x1,0x56(%ebx)
iupdate(ip);
80105017: 89 1c 24 mov %ebx,(%esp)
8010501a: e8 c1 c5 ff ff call 801015e0 <iupdate>
iunlockput(ip);
8010501f: 89 1c 24 mov %ebx,(%esp)
80105022: e8 f9 c8 ff ff call 80101920 <iunlockput>
end_op();
80105027: e8 f4 db ff ff call 80102c20 <end_op>
return 0;
8010502c: 83 c4 10 add $0x10,%esp
8010502f: 31 c0 xor %eax,%eax
}
80105031: 8d 65 f4 lea -0xc(%ebp),%esp
80105034: 5b pop %ebx
80105035: 5e pop %esi
80105036: 5f pop %edi
80105037: 5d pop %ebp
80105038: c3 ret
80105039: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
for(off=2*sizeof(de); off<dp->size; off+=sizeof(de)){
80105040: 83 7b 58 20 cmpl $0x20,0x58(%ebx)
80105044: 76 8d jbe 80104fd3 <sys_unlink+0xb3>
80105046: bf 20 00 00 00 mov $0x20,%edi
8010504b: eb 0f jmp 8010505c <sys_unlink+0x13c>
8010504d: 8d 76 00 lea 0x0(%esi),%esi
80105050: 83 c7 10 add $0x10,%edi
80105053: 3b 7b 58 cmp 0x58(%ebx),%edi
80105056: 0f 83 77 ff ff ff jae 80104fd3 <sys_unlink+0xb3>
if(readi(dp, (char*)&de, off, sizeof(de)) != sizeof(de))
8010505c: 8d 45 d8 lea -0x28(%ebp),%eax
8010505f: 6a 10 push $0x10
80105061: 57 push %edi
80105062: 50 push %eax
80105063: 53 push %ebx
80105064: e8 07 c9 ff ff call 80101970 <readi>
80105069: 83 c4 10 add $0x10,%esp
8010506c: 83 f8 10 cmp $0x10,%eax
8010506f: 75 5e jne 801050cf <sys_unlink+0x1af>
if(de.inum != 0)
80105071: 66 83 7d d8 00 cmpw $0x0,-0x28(%ebp)
80105076: 74 d8 je 80105050 <sys_unlink+0x130>
iunlockput(ip);
80105078: 83 ec 0c sub $0xc,%esp
8010507b: 53 push %ebx
8010507c: e8 9f c8 ff ff call 80101920 <iunlockput>
goto bad;
80105081: 83 c4 10 add $0x10,%esp
iunlockput(dp);
80105084: 83 ec 0c sub $0xc,%esp
80105087: 56 push %esi
80105088: e8 93 c8 ff ff call 80101920 <iunlockput>
end_op();
8010508d: e8 8e db ff ff call 80102c20 <end_op>
return -1;
80105092: 83 c4 10 add $0x10,%esp
80105095: b8 ff ff ff ff mov $0xffffffff,%eax
8010509a: eb 95 jmp 80105031 <sys_unlink+0x111>
8010509c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
dp->nlink--;
801050a0: 66 83 6e 56 01 subw $0x1,0x56(%esi)
iupdate(dp);
801050a5: 83 ec 0c sub $0xc,%esp
801050a8: 56 push %esi
801050a9: e8 32 c5 ff ff call 801015e0 <iupdate>
801050ae: 83 c4 10 add $0x10,%esp
801050b1: e9 53 ff ff ff jmp 80105009 <sys_unlink+0xe9>
return -1;
801050b6: b8 ff ff ff ff mov $0xffffffff,%eax
801050bb: e9 71 ff ff ff jmp 80105031 <sys_unlink+0x111>
end_op();
801050c0: e8 5b db ff ff call 80102c20 <end_op>
return -1;
801050c5: b8 ff ff ff ff mov $0xffffffff,%eax
801050ca: e9 62 ff ff ff jmp 80105031 <sys_unlink+0x111>
panic("isdirempty: readi");
801050cf: 83 ec 0c sub $0xc,%esp
801050d2: 68 a4 78 10 80 push $0x801078a4
801050d7: e8 b4 b2 ff ff call 80100390 <panic>
panic("unlink: nlink < 1");
801050dc: 83 ec 0c sub $0xc,%esp
801050df: 68 92 78 10 80 push $0x80107892
801050e4: e8 a7 b2 ff ff call 80100390 <panic>
panic("unlink: writei");
801050e9: 83 ec 0c sub $0xc,%esp
801050ec: 68 b6 78 10 80 push $0x801078b6
801050f1: e8 9a b2 ff ff call 80100390 <panic>
801050f6: 8d 76 00 lea 0x0(%esi),%esi
801050f9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80105100 <sys_open>:
int
sys_open(void)
{
80105100: 55 push %ebp
80105101: 89 e5 mov %esp,%ebp
80105103: 57 push %edi
80105104: 56 push %esi
80105105: 53 push %ebx
char *path;
int fd, omode;
struct file *f;
struct inode *ip;
if(argstr(0, &path) < 0 || argint(1, &omode) < 0)
80105106: 8d 45 e0 lea -0x20(%ebp),%eax
{
80105109: 83 ec 24 sub $0x24,%esp
if(argstr(0, &path) < 0 || argint(1, &omode) < 0)
8010510c: 50 push %eax
8010510d: 6a 00 push $0x0
8010510f: e8 2c f8 ff ff call 80104940 <argstr>
80105114: 83 c4 10 add $0x10,%esp
80105117: 85 c0 test %eax,%eax
80105119: 0f 88 1d 01 00 00 js 8010523c <sys_open+0x13c>
8010511f: 8d 45 e4 lea -0x1c(%ebp),%eax
80105122: 83 ec 08 sub $0x8,%esp
80105125: 50 push %eax
80105126: 6a 01 push $0x1
80105128: e8 63 f7 ff ff call 80104890 <argint>
8010512d: 83 c4 10 add $0x10,%esp
80105130: 85 c0 test %eax,%eax
80105132: 0f 88 04 01 00 00 js 8010523c <sys_open+0x13c>
return -1;
begin_op();
80105138: e8 73 da ff ff call 80102bb0 <begin_op>
if(omode & O_CREATE){
8010513d: f6 45 e5 02 testb $0x2,-0x1b(%ebp)
80105141: 0f 85 a9 00 00 00 jne 801051f0 <sys_open+0xf0>
if(ip == 0){
end_op();
return -1;
}
} else {
if((ip = namei(path)) == 0){
80105147: 83 ec 0c sub $0xc,%esp
8010514a: ff 75 e0 pushl -0x20(%ebp)
8010514d: e8 9e cd ff ff call 80101ef0 <namei>
80105152: 83 c4 10 add $0x10,%esp
80105155: 85 c0 test %eax,%eax
80105157: 89 c6 mov %eax,%esi
80105159: 0f 84 b2 00 00 00 je 80105211 <sys_open+0x111>
end_op();
return -1;
}
ilock(ip);
8010515f: 83 ec 0c sub $0xc,%esp
80105162: 50 push %eax
80105163: e8 28 c5 ff ff call 80101690 <ilock>
if(ip->type == T_DIR && omode != O_RDONLY){
80105168: 83 c4 10 add $0x10,%esp
8010516b: 66 83 7e 50 01 cmpw $0x1,0x50(%esi)
80105170: 0f 84 aa 00 00 00 je 80105220 <sys_open+0x120>
end_op();
return -1;
}
}
if((f = filealloc()) == 0 || (fd = fdalloc(f)) < 0){
80105176: e8 05 bc ff ff call 80100d80 <filealloc>
8010517b: 85 c0 test %eax,%eax
8010517d: 89 c7 mov %eax,%edi
8010517f: 0f 84 a6 00 00 00 je 8010522b <sys_open+0x12b>
struct proc *curproc = myproc();
80105185: e8 56 e6 ff ff call 801037e0 <myproc>
for(fd = 0; fd < NOFILE; fd++){
8010518a: 31 db xor %ebx,%ebx
8010518c: eb 0e jmp 8010519c <sys_open+0x9c>
8010518e: 66 90 xchg %ax,%ax
80105190: 83 c3 01 add $0x1,%ebx
80105193: 83 fb 10 cmp $0x10,%ebx
80105196: 0f 84 ac 00 00 00 je 80105248 <sys_open+0x148>
if(curproc->ofile[fd] == 0){
8010519c: 8b 54 98 2c mov 0x2c(%eax,%ebx,4),%edx
801051a0: 85 d2 test %edx,%edx
801051a2: 75 ec jne 80105190 <sys_open+0x90>
fileclose(f);
iunlockput(ip);
end_op();
return -1;
}
iunlock(ip);
801051a4: 83 ec 0c sub $0xc,%esp
curproc->ofile[fd] = f;
801051a7: 89 7c 98 2c mov %edi,0x2c(%eax,%ebx,4)
iunlock(ip);
801051ab: 56 push %esi
801051ac: e8 bf c5 ff ff call 80101770 <iunlock>
end_op();
801051b1: e8 6a da ff ff call 80102c20 <end_op>
f->type = FD_INODE;
801051b6: c7 07 02 00 00 00 movl $0x2,(%edi)
f->ip = ip;
f->off = 0;
f->readable = !(omode & O_WRONLY);
801051bc: 8b 55 e4 mov -0x1c(%ebp),%edx
f->writable = (omode & O_WRONLY) || (omode & O_RDWR);
801051bf: 83 c4 10 add $0x10,%esp
f->ip = ip;
801051c2: 89 77 10 mov %esi,0x10(%edi)
f->off = 0;
801051c5: c7 47 14 00 00 00 00 movl $0x0,0x14(%edi)
f->readable = !(omode & O_WRONLY);
801051cc: 89 d0 mov %edx,%eax
801051ce: f7 d0 not %eax
801051d0: 83 e0 01 and $0x1,%eax
f->writable = (omode & O_WRONLY) || (omode & O_RDWR);
801051d3: 83 e2 03 and $0x3,%edx
f->readable = !(omode & O_WRONLY);
801051d6: 88 47 08 mov %al,0x8(%edi)
f->writable = (omode & O_WRONLY) || (omode & O_RDWR);
801051d9: 0f 95 47 09 setne 0x9(%edi)
return fd;
}
801051dd: 8d 65 f4 lea -0xc(%ebp),%esp
801051e0: 89 d8 mov %ebx,%eax
801051e2: 5b pop %ebx
801051e3: 5e pop %esi
801051e4: 5f pop %edi
801051e5: 5d pop %ebp
801051e6: c3 ret
801051e7: 89 f6 mov %esi,%esi
801051e9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
ip = create(path, T_FILE, 0, 0);
801051f0: 83 ec 0c sub $0xc,%esp
801051f3: 8b 45 e0 mov -0x20(%ebp),%eax
801051f6: 31 c9 xor %ecx,%ecx
801051f8: 6a 00 push $0x0
801051fa: ba 02 00 00 00 mov $0x2,%edx
801051ff: e8 ec f7 ff ff call 801049f0 <create>
if(ip == 0){
80105204: 83 c4 10 add $0x10,%esp
80105207: 85 c0 test %eax,%eax
ip = create(path, T_FILE, 0, 0);
80105209: 89 c6 mov %eax,%esi
if(ip == 0){
8010520b: 0f 85 65 ff ff ff jne 80105176 <sys_open+0x76>
end_op();
80105211: e8 0a da ff ff call 80102c20 <end_op>
return -1;
80105216: bb ff ff ff ff mov $0xffffffff,%ebx
8010521b: eb c0 jmp 801051dd <sys_open+0xdd>
8010521d: 8d 76 00 lea 0x0(%esi),%esi
if(ip->type == T_DIR && omode != O_RDONLY){
80105220: 8b 4d e4 mov -0x1c(%ebp),%ecx
80105223: 85 c9 test %ecx,%ecx
80105225: 0f 84 4b ff ff ff je 80105176 <sys_open+0x76>
iunlockput(ip);
8010522b: 83 ec 0c sub $0xc,%esp
8010522e: 56 push %esi
8010522f: e8 ec c6 ff ff call 80101920 <iunlockput>
end_op();
80105234: e8 e7 d9 ff ff call 80102c20 <end_op>
return -1;
80105239: 83 c4 10 add $0x10,%esp
8010523c: bb ff ff ff ff mov $0xffffffff,%ebx
80105241: eb 9a jmp 801051dd <sys_open+0xdd>
80105243: 90 nop
80105244: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
fileclose(f);
80105248: 83 ec 0c sub $0xc,%esp
8010524b: 57 push %edi
8010524c: e8 ef bb ff ff call 80100e40 <fileclose>
80105251: 83 c4 10 add $0x10,%esp
80105254: eb d5 jmp 8010522b <sys_open+0x12b>
80105256: 8d 76 00 lea 0x0(%esi),%esi
80105259: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80105260 <sys_mkdir>:
int
sys_mkdir(void)
{
80105260: 55 push %ebp
80105261: 89 e5 mov %esp,%ebp
80105263: 83 ec 18 sub $0x18,%esp
char *path;
struct inode *ip;
begin_op();
80105266: e8 45 d9 ff ff call 80102bb0 <begin_op>
if(argstr(0, &path) < 0 || (ip = create(path, T_DIR, 0, 0)) == 0){
8010526b: 8d 45 f4 lea -0xc(%ebp),%eax
8010526e: 83 ec 08 sub $0x8,%esp
80105271: 50 push %eax
80105272: 6a 00 push $0x0
80105274: e8 c7 f6 ff ff call 80104940 <argstr>
80105279: 83 c4 10 add $0x10,%esp
8010527c: 85 c0 test %eax,%eax
8010527e: 78 30 js 801052b0 <sys_mkdir+0x50>
80105280: 83 ec 0c sub $0xc,%esp
80105283: 8b 45 f4 mov -0xc(%ebp),%eax
80105286: 31 c9 xor %ecx,%ecx
80105288: 6a 00 push $0x0
8010528a: ba 01 00 00 00 mov $0x1,%edx
8010528f: e8 5c f7 ff ff call 801049f0 <create>
80105294: 83 c4 10 add $0x10,%esp
80105297: 85 c0 test %eax,%eax
80105299: 74 15 je 801052b0 <sys_mkdir+0x50>
end_op();
return -1;
}
iunlockput(ip);
8010529b: 83 ec 0c sub $0xc,%esp
8010529e: 50 push %eax
8010529f: e8 7c c6 ff ff call 80101920 <iunlockput>
end_op();
801052a4: e8 77 d9 ff ff call 80102c20 <end_op>
return 0;
801052a9: 83 c4 10 add $0x10,%esp
801052ac: 31 c0 xor %eax,%eax
}
801052ae: c9 leave
801052af: c3 ret
end_op();
801052b0: e8 6b d9 ff ff call 80102c20 <end_op>
return -1;
801052b5: b8 ff ff ff ff mov $0xffffffff,%eax
}
801052ba: c9 leave
801052bb: c3 ret
801052bc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
801052c0 <sys_mknod>:
int
sys_mknod(void)
{
801052c0: 55 push %ebp
801052c1: 89 e5 mov %esp,%ebp
801052c3: 83 ec 18 sub $0x18,%esp
struct inode *ip;
char *path;
int major, minor;
begin_op();
801052c6: e8 e5 d8 ff ff call 80102bb0 <begin_op>
if((argstr(0, &path)) < 0 ||
801052cb: 8d 45 ec lea -0x14(%ebp),%eax
801052ce: 83 ec 08 sub $0x8,%esp
801052d1: 50 push %eax
801052d2: 6a 00 push $0x0
801052d4: e8 67 f6 ff ff call 80104940 <argstr>
801052d9: 83 c4 10 add $0x10,%esp
801052dc: 85 c0 test %eax,%eax
801052de: 78 60 js 80105340 <sys_mknod+0x80>
argint(1, &major) < 0 ||
801052e0: 8d 45 f0 lea -0x10(%ebp),%eax
801052e3: 83 ec 08 sub $0x8,%esp
801052e6: 50 push %eax
801052e7: 6a 01 push $0x1
801052e9: e8 a2 f5 ff ff call 80104890 <argint>
if((argstr(0, &path)) < 0 ||
801052ee: 83 c4 10 add $0x10,%esp
801052f1: 85 c0 test %eax,%eax
801052f3: 78 4b js 80105340 <sys_mknod+0x80>
argint(2, &minor) < 0 ||
801052f5: 8d 45 f4 lea -0xc(%ebp),%eax
801052f8: 83 ec 08 sub $0x8,%esp
801052fb: 50 push %eax
801052fc: 6a 02 push $0x2
801052fe: e8 8d f5 ff ff call 80104890 <argint>
argint(1, &major) < 0 ||
80105303: 83 c4 10 add $0x10,%esp
80105306: 85 c0 test %eax,%eax
80105308: 78 36 js 80105340 <sys_mknod+0x80>
(ip = create(path, T_DEV, major, minor)) == 0){
8010530a: 0f bf 45 f4 movswl -0xc(%ebp),%eax
argint(2, &minor) < 0 ||
8010530e: 83 ec 0c sub $0xc,%esp
(ip = create(path, T_DEV, major, minor)) == 0){
80105311: 0f bf 4d f0 movswl -0x10(%ebp),%ecx
argint(2, &minor) < 0 ||
80105315: ba 03 00 00 00 mov $0x3,%edx
8010531a: 50 push %eax
8010531b: 8b 45 ec mov -0x14(%ebp),%eax
8010531e: e8 cd f6 ff ff call 801049f0 <create>
80105323: 83 c4 10 add $0x10,%esp
80105326: 85 c0 test %eax,%eax
80105328: 74 16 je 80105340 <sys_mknod+0x80>
end_op();
return -1;
}
iunlockput(ip);
8010532a: 83 ec 0c sub $0xc,%esp
8010532d: 50 push %eax
8010532e: e8 ed c5 ff ff call 80101920 <iunlockput>
end_op();
80105333: e8 e8 d8 ff ff call 80102c20 <end_op>
return 0;
80105338: 83 c4 10 add $0x10,%esp
8010533b: 31 c0 xor %eax,%eax
}
8010533d: c9 leave
8010533e: c3 ret
8010533f: 90 nop
end_op();
80105340: e8 db d8 ff ff call 80102c20 <end_op>
return -1;
80105345: b8 ff ff ff ff mov $0xffffffff,%eax
}
8010534a: c9 leave
8010534b: c3 ret
8010534c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80105350 <sys_chdir>:
int
sys_chdir(void)
{
80105350: 55 push %ebp
80105351: 89 e5 mov %esp,%ebp
80105353: 56 push %esi
80105354: 53 push %ebx
80105355: 83 ec 10 sub $0x10,%esp
char *path;
struct inode *ip;
struct proc *curproc = myproc();
80105358: e8 83 e4 ff ff call 801037e0 <myproc>
8010535d: 89 c6 mov %eax,%esi
begin_op();
8010535f: e8 4c d8 ff ff call 80102bb0 <begin_op>
if(argstr(0, &path) < 0 || (ip = namei(path)) == 0){
80105364: 8d 45 f4 lea -0xc(%ebp),%eax
80105367: 83 ec 08 sub $0x8,%esp
8010536a: 50 push %eax
8010536b: 6a 00 push $0x0
8010536d: e8 ce f5 ff ff call 80104940 <argstr>
80105372: 83 c4 10 add $0x10,%esp
80105375: 85 c0 test %eax,%eax
80105377: 78 77 js 801053f0 <sys_chdir+0xa0>
80105379: 83 ec 0c sub $0xc,%esp
8010537c: ff 75 f4 pushl -0xc(%ebp)
8010537f: e8 6c cb ff ff call 80101ef0 <namei>
80105384: 83 c4 10 add $0x10,%esp
80105387: 85 c0 test %eax,%eax
80105389: 89 c3 mov %eax,%ebx
8010538b: 74 63 je 801053f0 <sys_chdir+0xa0>
end_op();
return -1;
}
ilock(ip);
8010538d: 83 ec 0c sub $0xc,%esp
80105390: 50 push %eax
80105391: e8 fa c2 ff ff call 80101690 <ilock>
if(ip->type != T_DIR){
80105396: 83 c4 10 add $0x10,%esp
80105399: 66 83 7b 50 01 cmpw $0x1,0x50(%ebx)
8010539e: 75 30 jne 801053d0 <sys_chdir+0x80>
iunlockput(ip);
end_op();
return -1;
}
iunlock(ip);
801053a0: 83 ec 0c sub $0xc,%esp
801053a3: 53 push %ebx
801053a4: e8 c7 c3 ff ff call 80101770 <iunlock>
iput(curproc->cwd);
801053a9: 58 pop %eax
801053aa: ff 76 6c pushl 0x6c(%esi)
801053ad: e8 0e c4 ff ff call 801017c0 <iput>
end_op();
801053b2: e8 69 d8 ff ff call 80102c20 <end_op>
curproc->cwd = ip;
801053b7: 89 5e 6c mov %ebx,0x6c(%esi)
return 0;
801053ba: 83 c4 10 add $0x10,%esp
801053bd: 31 c0 xor %eax,%eax
}
801053bf: 8d 65 f8 lea -0x8(%ebp),%esp
801053c2: 5b pop %ebx
801053c3: 5e pop %esi
801053c4: 5d pop %ebp
801053c5: c3 ret
801053c6: 8d 76 00 lea 0x0(%esi),%esi
801053c9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
iunlockput(ip);
801053d0: 83 ec 0c sub $0xc,%esp
801053d3: 53 push %ebx
801053d4: e8 47 c5 ff ff call 80101920 <iunlockput>
end_op();
801053d9: e8 42 d8 ff ff call 80102c20 <end_op>
return -1;
801053de: 83 c4 10 add $0x10,%esp
801053e1: b8 ff ff ff ff mov $0xffffffff,%eax
801053e6: eb d7 jmp 801053bf <sys_chdir+0x6f>
801053e8: 90 nop
801053e9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
end_op();
801053f0: e8 2b d8 ff ff call 80102c20 <end_op>
return -1;
801053f5: b8 ff ff ff ff mov $0xffffffff,%eax
801053fa: eb c3 jmp 801053bf <sys_chdir+0x6f>
801053fc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80105400 <sys_exec>:
int
sys_exec(void)
{
80105400: 55 push %ebp
80105401: 89 e5 mov %esp,%ebp
80105403: 57 push %edi
80105404: 56 push %esi
80105405: 53 push %ebx
char *path, *argv[MAXARG];
int i;
uint uargv, uarg;
if(argstr(0, &path) < 0 || argint(1, (int*)&uargv) < 0){
80105406: 8d 85 5c ff ff ff lea -0xa4(%ebp),%eax
{
8010540c: 81 ec a4 00 00 00 sub $0xa4,%esp
if(argstr(0, &path) < 0 || argint(1, (int*)&uargv) < 0){
80105412: 50 push %eax
80105413: 6a 00 push $0x0
80105415: e8 26 f5 ff ff call 80104940 <argstr>
8010541a: 83 c4 10 add $0x10,%esp
8010541d: 85 c0 test %eax,%eax
8010541f: 0f 88 87 00 00 00 js 801054ac <sys_exec+0xac>
80105425: 8d 85 60 ff ff ff lea -0xa0(%ebp),%eax
8010542b: 83 ec 08 sub $0x8,%esp
8010542e: 50 push %eax
8010542f: 6a 01 push $0x1
80105431: e8 5a f4 ff ff call 80104890 <argint>
80105436: 83 c4 10 add $0x10,%esp
80105439: 85 c0 test %eax,%eax
8010543b: 78 6f js 801054ac <sys_exec+0xac>
return -1;
}
memset(argv, 0, sizeof(argv));
8010543d: 8d 85 68 ff ff ff lea -0x98(%ebp),%eax
80105443: 83 ec 04 sub $0x4,%esp
for(i=0;; i++){
80105446: 31 db xor %ebx,%ebx
memset(argv, 0, sizeof(argv));
80105448: 68 80 00 00 00 push $0x80
8010544d: 6a 00 push $0x0
8010544f: 8d bd 64 ff ff ff lea -0x9c(%ebp),%edi
80105455: 50 push %eax
80105456: e8 35 f1 ff ff call 80104590 <memset>
8010545b: 83 c4 10 add $0x10,%esp
8010545e: eb 2c jmp 8010548c <sys_exec+0x8c>
if(i >= NELEM(argv))
return -1;
if(fetchint(uargv+4*i, (int*)&uarg) < 0)
return -1;
if(uarg == 0){
80105460: 8b 85 64 ff ff ff mov -0x9c(%ebp),%eax
80105466: 85 c0 test %eax,%eax
80105468: 74 56 je 801054c0 <sys_exec+0xc0>
argv[i] = 0;
break;
}
if(fetchstr(uarg, &argv[i]) < 0)
8010546a: 8d 8d 68 ff ff ff lea -0x98(%ebp),%ecx
80105470: 83 ec 08 sub $0x8,%esp
80105473: 8d 14 31 lea (%ecx,%esi,1),%edx
80105476: 52 push %edx
80105477: 50 push %eax
80105478: e8 a3 f3 ff ff call 80104820 <fetchstr>
8010547d: 83 c4 10 add $0x10,%esp
80105480: 85 c0 test %eax,%eax
80105482: 78 28 js 801054ac <sys_exec+0xac>
for(i=0;; i++){
80105484: 83 c3 01 add $0x1,%ebx
if(i >= NELEM(argv))
80105487: 83 fb 20 cmp $0x20,%ebx
8010548a: 74 20 je 801054ac <sys_exec+0xac>
if(fetchint(uargv+4*i, (int*)&uarg) < 0)
8010548c: 8b 85 60 ff ff ff mov -0xa0(%ebp),%eax
80105492: 8d 34 9d 00 00 00 00 lea 0x0(,%ebx,4),%esi
80105499: 83 ec 08 sub $0x8,%esp
8010549c: 57 push %edi
8010549d: 01 f0 add %esi,%eax
8010549f: 50 push %eax
801054a0: e8 3b f3 ff ff call 801047e0 <fetchint>
801054a5: 83 c4 10 add $0x10,%esp
801054a8: 85 c0 test %eax,%eax
801054aa: 79 b4 jns 80105460 <sys_exec+0x60>
return -1;
}
return exec(path, argv);
}
801054ac: 8d 65 f4 lea -0xc(%ebp),%esp
return -1;
801054af: b8 ff ff ff ff mov $0xffffffff,%eax
}
801054b4: 5b pop %ebx
801054b5: 5e pop %esi
801054b6: 5f pop %edi
801054b7: 5d pop %ebp
801054b8: c3 ret
801054b9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
return exec(path, argv);
801054c0: 8d 85 68 ff ff ff lea -0x98(%ebp),%eax
801054c6: 83 ec 08 sub $0x8,%esp
argv[i] = 0;
801054c9: c7 84 9d 68 ff ff ff movl $0x0,-0x98(%ebp,%ebx,4)
801054d0: 00 00 00 00
return exec(path, argv);
801054d4: 50 push %eax
801054d5: ff b5 5c ff ff ff pushl -0xa4(%ebp)
801054db: e8 30 b5 ff ff call 80100a10 <exec>
801054e0: 83 c4 10 add $0x10,%esp
}
801054e3: 8d 65 f4 lea -0xc(%ebp),%esp
801054e6: 5b pop %ebx
801054e7: 5e pop %esi
801054e8: 5f pop %edi
801054e9: 5d pop %ebp
801054ea: c3 ret
801054eb: 90 nop
801054ec: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
801054f0 <sys_pipe>:
int
sys_pipe(void)
{
801054f0: 55 push %ebp
801054f1: 89 e5 mov %esp,%ebp
801054f3: 57 push %edi
801054f4: 56 push %esi
801054f5: 53 push %ebx
int *fd;
struct file *rf, *wf;
int fd0, fd1;
if(argptr(0, (void*)&fd, 2*sizeof(fd[0])) < 0)
801054f6: 8d 45 dc lea -0x24(%ebp),%eax
{
801054f9: 83 ec 20 sub $0x20,%esp
if(argptr(0, (void*)&fd, 2*sizeof(fd[0])) < 0)
801054fc: 6a 08 push $0x8
801054fe: 50 push %eax
801054ff: 6a 00 push $0x0
80105501: e8 da f3 ff ff call 801048e0 <argptr>
80105506: 83 c4 10 add $0x10,%esp
80105509: 85 c0 test %eax,%eax
8010550b: 0f 88 ae 00 00 00 js 801055bf <sys_pipe+0xcf>
return -1;
if(pipealloc(&rf, &wf) < 0)
80105511: 8d 45 e4 lea -0x1c(%ebp),%eax
80105514: 83 ec 08 sub $0x8,%esp
80105517: 50 push %eax
80105518: 8d 45 e0 lea -0x20(%ebp),%eax
8010551b: 50 push %eax
8010551c: e8 2f dd ff ff call 80103250 <pipealloc>
80105521: 83 c4 10 add $0x10,%esp
80105524: 85 c0 test %eax,%eax
80105526: 0f 88 93 00 00 00 js 801055bf <sys_pipe+0xcf>
return -1;
fd0 = -1;
if((fd0 = fdalloc(rf)) < 0 || (fd1 = fdalloc(wf)) < 0){
8010552c: 8b 7d e0 mov -0x20(%ebp),%edi
for(fd = 0; fd < NOFILE; fd++){
8010552f: 31 db xor %ebx,%ebx
struct proc *curproc = myproc();
80105531: e8 aa e2 ff ff call 801037e0 <myproc>
80105536: eb 10 jmp 80105548 <sys_pipe+0x58>
80105538: 90 nop
80105539: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
for(fd = 0; fd < NOFILE; fd++){
80105540: 83 c3 01 add $0x1,%ebx
80105543: 83 fb 10 cmp $0x10,%ebx
80105546: 74 60 je 801055a8 <sys_pipe+0xb8>
if(curproc->ofile[fd] == 0){
80105548: 8b 74 98 2c mov 0x2c(%eax,%ebx,4),%esi
8010554c: 85 f6 test %esi,%esi
8010554e: 75 f0 jne 80105540 <sys_pipe+0x50>
curproc->ofile[fd] = f;
80105550: 8d 73 08 lea 0x8(%ebx),%esi
80105553: 89 7c b0 0c mov %edi,0xc(%eax,%esi,4)
if((fd0 = fdalloc(rf)) < 0 || (fd1 = fdalloc(wf)) < 0){
80105557: 8b 7d e4 mov -0x1c(%ebp),%edi
struct proc *curproc = myproc();
8010555a: e8 81 e2 ff ff call 801037e0 <myproc>
for(fd = 0; fd < NOFILE; fd++){
8010555f: 31 d2 xor %edx,%edx
80105561: eb 0d jmp 80105570 <sys_pipe+0x80>
80105563: 90 nop
80105564: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80105568: 83 c2 01 add $0x1,%edx
8010556b: 83 fa 10 cmp $0x10,%edx
8010556e: 74 28 je 80105598 <sys_pipe+0xa8>
if(curproc->ofile[fd] == 0){
80105570: 8b 4c 90 2c mov 0x2c(%eax,%edx,4),%ecx
80105574: 85 c9 test %ecx,%ecx
80105576: 75 f0 jne 80105568 <sys_pipe+0x78>
curproc->ofile[fd] = f;
80105578: 89 7c 90 2c mov %edi,0x2c(%eax,%edx,4)
myproc()->ofile[fd0] = 0;
fileclose(rf);
fileclose(wf);
return -1;
}
fd[0] = fd0;
8010557c: 8b 45 dc mov -0x24(%ebp),%eax
8010557f: 89 18 mov %ebx,(%eax)
fd[1] = fd1;
80105581: 8b 45 dc mov -0x24(%ebp),%eax
80105584: 89 50 04 mov %edx,0x4(%eax)
return 0;
80105587: 31 c0 xor %eax,%eax
}
80105589: 8d 65 f4 lea -0xc(%ebp),%esp
8010558c: 5b pop %ebx
8010558d: 5e pop %esi
8010558e: 5f pop %edi
8010558f: 5d pop %ebp
80105590: c3 ret
80105591: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
myproc()->ofile[fd0] = 0;
80105598: e8 43 e2 ff ff call 801037e0 <myproc>
8010559d: c7 44 b0 0c 00 00 00 movl $0x0,0xc(%eax,%esi,4)
801055a4: 00
801055a5: 8d 76 00 lea 0x0(%esi),%esi
fileclose(rf);
801055a8: 83 ec 0c sub $0xc,%esp
801055ab: ff 75 e0 pushl -0x20(%ebp)
801055ae: e8 8d b8 ff ff call 80100e40 <fileclose>
fileclose(wf);
801055b3: 58 pop %eax
801055b4: ff 75 e4 pushl -0x1c(%ebp)
801055b7: e8 84 b8 ff ff call 80100e40 <fileclose>
return -1;
801055bc: 83 c4 10 add $0x10,%esp
801055bf: b8 ff ff ff ff mov $0xffffffff,%eax
801055c4: eb c3 jmp 80105589 <sys_pipe+0x99>
801055c6: 66 90 xchg %ax,%ax
801055c8: 66 90 xchg %ax,%ax
801055ca: 66 90 xchg %ax,%ax
801055cc: 66 90 xchg %ax,%ax
801055ce: 66 90 xchg %ax,%ax
801055d0 <sys_fork>:
#include "proc.h"
int
sys_fork(void)
{
801055d0: 55 push %ebp
801055d1: 89 e5 mov %esp,%ebp
return fork();
}
801055d3: 5d pop %ebp
return fork();
801055d4: e9 a7 e3 ff ff jmp 80103980 <fork>
801055d9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
801055e0 <sys_exit>:
int
sys_exit(void)
{
801055e0: 55 push %ebp
801055e1: 89 e5 mov %esp,%ebp
801055e3: 83 ec 08 sub $0x8,%esp
exit();
801055e6: e8 35 e6 ff ff call 80103c20 <exit>
return 0; // not reached
}
801055eb: 31 c0 xor %eax,%eax
801055ed: c9 leave
801055ee: c3 ret
801055ef: 90 nop
801055f0 <sys_wait>:
int
sys_wait(void)
{
801055f0: 55 push %ebp
801055f1: 89 e5 mov %esp,%ebp
return wait();
}
801055f3: 5d pop %ebp
return wait();
801055f4: e9 67 e8 ff ff jmp 80103e60 <wait>
801055f9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
80105600 <sys_kill>:
int
sys_kill(void)
{
80105600: 55 push %ebp
80105601: 89 e5 mov %esp,%ebp
80105603: 83 ec 20 sub $0x20,%esp
int pid;
if(argint(0, &pid) < 0)
80105606: 8d 45 f4 lea -0xc(%ebp),%eax
80105609: 50 push %eax
8010560a: 6a 00 push $0x0
8010560c: e8 7f f2 ff ff call 80104890 <argint>
80105611: 83 c4 10 add $0x10,%esp
80105614: 85 c0 test %eax,%eax
80105616: 78 18 js 80105630 <sys_kill+0x30>
return -1;
return kill(pid);
80105618: 83 ec 0c sub $0xc,%esp
8010561b: ff 75 f4 pushl -0xc(%ebp)
8010561e: e8 8d e9 ff ff call 80103fb0 <kill>
80105623: 83 c4 10 add $0x10,%esp
}
80105626: c9 leave
80105627: c3 ret
80105628: 90 nop
80105629: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
return -1;
80105630: b8 ff ff ff ff mov $0xffffffff,%eax
}
80105635: c9 leave
80105636: c3 ret
80105637: 89 f6 mov %esi,%esi
80105639: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80105640 <sys_getpid>:
int
sys_getpid(void)
{
80105640: 55 push %ebp
80105641: 89 e5 mov %esp,%ebp
80105643: 83 ec 08 sub $0x8,%esp
return myproc()->pid;
80105646: e8 95 e1 ff ff call 801037e0 <myproc>
8010564b: 8b 40 14 mov 0x14(%eax),%eax
}
8010564e: c9 leave
8010564f: c3 ret
80105650 <sys_sbrk>:
int
sys_sbrk(void)
{
80105650: 55 push %ebp
80105651: 89 e5 mov %esp,%ebp
80105653: 53 push %ebx
int addr;
int n;
if(argint(0, &n) < 0)
80105654: 8d 45 f4 lea -0xc(%ebp),%eax
{
80105657: 83 ec 1c sub $0x1c,%esp
if(argint(0, &n) < 0)
8010565a: 50 push %eax
8010565b: 6a 00 push $0x0
8010565d: e8 2e f2 ff ff call 80104890 <argint>
80105662: 83 c4 10 add $0x10,%esp
80105665: 85 c0 test %eax,%eax
80105667: 78 27 js 80105690 <sys_sbrk+0x40>
return -1;
addr = myproc()->sz;
80105669: e8 72 e1 ff ff call 801037e0 <myproc>
if(growproc(n) < 0)
8010566e: 83 ec 0c sub $0xc,%esp
addr = myproc()->sz;
80105671: 8b 58 04 mov 0x4(%eax),%ebx
if(growproc(n) < 0)
80105674: ff 75 f4 pushl -0xc(%ebp)
80105677: e8 84 e2 ff ff call 80103900 <growproc>
8010567c: 83 c4 10 add $0x10,%esp
8010567f: 85 c0 test %eax,%eax
80105681: 78 0d js 80105690 <sys_sbrk+0x40>
return -1;
return addr;
}
80105683: 89 d8 mov %ebx,%eax
80105685: 8b 5d fc mov -0x4(%ebp),%ebx
80105688: c9 leave
80105689: c3 ret
8010568a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
return -1;
80105690: bb ff ff ff ff mov $0xffffffff,%ebx
80105695: eb ec jmp 80105683 <sys_sbrk+0x33>
80105697: 89 f6 mov %esi,%esi
80105699: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
801056a0 <sys_sleep>:
int
sys_sleep(void)
{
801056a0: 55 push %ebp
801056a1: 89 e5 mov %esp,%ebp
801056a3: 53 push %ebx
int n;
uint ticks0;
if(argint(0, &n) < 0)
801056a4: 8d 45 f4 lea -0xc(%ebp),%eax
{
801056a7: 83 ec 1c sub $0x1c,%esp
if(argint(0, &n) < 0)
801056aa: 50 push %eax
801056ab: 6a 00 push $0x0
801056ad: e8 de f1 ff ff call 80104890 <argint>
801056b2: 83 c4 10 add $0x10,%esp
801056b5: 85 c0 test %eax,%eax
801056b7: 0f 88 8a 00 00 00 js 80105747 <sys_sleep+0xa7>
return -1;
acquire(&tickslock);
801056bd: 83 ec 0c sub $0xc,%esp
801056c0: 68 60 49 11 80 push $0x80114960
801056c5: e8 46 ed ff ff call 80104410 <acquire>
ticks0 = ticks;
while(ticks - ticks0 < n){
801056ca: 8b 55 f4 mov -0xc(%ebp),%edx
801056cd: 83 c4 10 add $0x10,%esp
ticks0 = ticks;
801056d0: 8b 1d a0 51 11 80 mov 0x801151a0,%ebx
while(ticks - ticks0 < n){
801056d6: 85 d2 test %edx,%edx
801056d8: 75 27 jne 80105701 <sys_sleep+0x61>
801056da: eb 54 jmp 80105730 <sys_sleep+0x90>
801056dc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
if(myproc()->killed){
release(&tickslock);
return -1;
}
sleep(&ticks, &tickslock);
801056e0: 83 ec 08 sub $0x8,%esp
801056e3: 68 60 49 11 80 push $0x80114960
801056e8: 68 a0 51 11 80 push $0x801151a0
801056ed: e8 ae e6 ff ff call 80103da0 <sleep>
while(ticks - ticks0 < n){
801056f2: a1 a0 51 11 80 mov 0x801151a0,%eax
801056f7: 83 c4 10 add $0x10,%esp
801056fa: 29 d8 sub %ebx,%eax
801056fc: 3b 45 f4 cmp -0xc(%ebp),%eax
801056ff: 73 2f jae 80105730 <sys_sleep+0x90>
if(myproc()->killed){
80105701: e8 da e0 ff ff call 801037e0 <myproc>
80105706: 8b 40 28 mov 0x28(%eax),%eax
80105709: 85 c0 test %eax,%eax
8010570b: 74 d3 je 801056e0 <sys_sleep+0x40>
release(&tickslock);
8010570d: 83 ec 0c sub $0xc,%esp
80105710: 68 60 49 11 80 push $0x80114960
80105715: e8 16 ee ff ff call 80104530 <release>
return -1;
8010571a: 83 c4 10 add $0x10,%esp
8010571d: b8 ff ff ff ff mov $0xffffffff,%eax
}
release(&tickslock);
return 0;
}
80105722: 8b 5d fc mov -0x4(%ebp),%ebx
80105725: c9 leave
80105726: c3 ret
80105727: 89 f6 mov %esi,%esi
80105729: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
release(&tickslock);
80105730: 83 ec 0c sub $0xc,%esp
80105733: 68 60 49 11 80 push $0x80114960
80105738: e8 f3 ed ff ff call 80104530 <release>
return 0;
8010573d: 83 c4 10 add $0x10,%esp
80105740: 31 c0 xor %eax,%eax
}
80105742: 8b 5d fc mov -0x4(%ebp),%ebx
80105745: c9 leave
80105746: c3 ret
return -1;
80105747: b8 ff ff ff ff mov $0xffffffff,%eax
8010574c: eb f4 jmp 80105742 <sys_sleep+0xa2>
8010574e: 66 90 xchg %ax,%ax
80105750 <sys_uptime>:
// return how many clock tick interrupts have occurred
// since start.
int
sys_uptime(void)
{
80105750: 55 push %ebp
80105751: 89 e5 mov %esp,%ebp
80105753: 53 push %ebx
80105754: 83 ec 10 sub $0x10,%esp
uint xticks;
acquire(&tickslock);
80105757: 68 60 49 11 80 push $0x80114960
8010575c: e8 af ec ff ff call 80104410 <acquire>
xticks = ticks;
80105761: 8b 1d a0 51 11 80 mov 0x801151a0,%ebx
release(&tickslock);
80105767: c7 04 24 60 49 11 80 movl $0x80114960,(%esp)
8010576e: e8 bd ed ff ff call 80104530 <release>
return xticks;
}
80105773: 89 d8 mov %ebx,%eax
80105775: 8b 5d fc mov -0x4(%ebp),%ebx
80105778: c9 leave
80105779: c3 ret
8010577a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
80105780 <sys_csc>:
int
sys_csc(void)
{
80105780: 55 push %ebp
80105781: 89 e5 mov %esp,%ebp
return csc();
}
80105783: 5d pop %ebp
return csc();
80105784: e9 67 e9 ff ff jmp 801040f0 <csc>
80105789: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
80105790 <sys_cps>:
int
sys_cps(void)
{
80105790: 55 push %ebp
80105791: 89 e5 mov %esp,%ebp
return cps();
}
80105793: 5d pop %ebp
return cps();
80105794: e9 77 e9 ff ff jmp 80104110 <cps>
80105799: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
801057a0 <sys_chpr>:
int
sys_chpr(void)
{
801057a0: 55 push %ebp
801057a1: 89 e5 mov %esp,%ebp
801057a3: 83 ec 20 sub $0x20,%esp
int pid, pr;
if(argint(0, &pid) < 0)
801057a6: 8d 45 f0 lea -0x10(%ebp),%eax
801057a9: 50 push %eax
801057aa: 6a 00 push $0x0
801057ac: e8 df f0 ff ff call 80104890 <argint>
801057b1: 83 c4 10 add $0x10,%esp
801057b4: 85 c0 test %eax,%eax
801057b6: 78 28 js 801057e0 <sys_chpr+0x40>
return -1;
if(argint(1, &pr) < 0)
801057b8: 8d 45 f4 lea -0xc(%ebp),%eax
801057bb: 83 ec 08 sub $0x8,%esp
801057be: 50 push %eax
801057bf: 6a 01 push $0x1
801057c1: e8 ca f0 ff ff call 80104890 <argint>
801057c6: 83 c4 10 add $0x10,%esp
801057c9: 85 c0 test %eax,%eax
801057cb: 78 13 js 801057e0 <sys_chpr+0x40>
return -1;
return chpr(pid, pr);
801057cd: 83 ec 08 sub $0x8,%esp
801057d0: ff 75 f4 pushl -0xc(%ebp)
801057d3: ff 75 f0 pushl -0x10(%ebp)
801057d6: e8 e5 e9 ff ff call 801041c0 <chpr>
801057db: 83 c4 10 add $0x10,%esp
}
801057de: c9 leave
801057df: c3 ret
return -1;
801057e0: b8 ff ff ff ff mov $0xffffffff,%eax
}
801057e5: c9 leave
801057e6: c3 ret
801057e7 <alltraps>:
# vectors.S sends all traps here.
.globl alltraps
alltraps:
# Build trap frame.
pushl %ds
801057e7: 1e push %ds
pushl %es
801057e8: 06 push %es
pushl %fs
801057e9: 0f a0 push %fs
pushl %gs
801057eb: 0f a8 push %gs
pushal
801057ed: 60 pusha
# Set up data segments.
movw $(SEG_KDATA<<3), %ax
801057ee: 66 b8 10 00 mov $0x10,%ax
movw %ax, %ds
801057f2: 8e d8 mov %eax,%ds
movw %ax, %es
801057f4: 8e c0 mov %eax,%es
# Call trap(tf), where tf=%esp
pushl %esp
801057f6: 54 push %esp
call trap
801057f7: e8 c4 00 00 00 call 801058c0 <trap>
addl $4, %esp
801057fc: 83 c4 04 add $0x4,%esp
801057ff <trapret>:
# Return falls through to trapret...
.globl trapret
trapret:
popal
801057ff: 61 popa
popl %gs
80105800: 0f a9 pop %gs
popl %fs
80105802: 0f a1 pop %fs
popl %es
80105804: 07 pop %es
popl %ds
80105805: 1f pop %ds
addl $0x8, %esp # trapno and errcode
80105806: 83 c4 08 add $0x8,%esp
iret
80105809: cf iret
8010580a: 66 90 xchg %ax,%ax
8010580c: 66 90 xchg %ax,%ax
8010580e: 66 90 xchg %ax,%ax
80105810 <tvinit>:
struct spinlock tickslock;
uint ticks;
void
tvinit(void)
{
80105810: 55 push %ebp
int i;
for(i = 0; i < 256; i++)
80105811: 31 c0 xor %eax,%eax
{
80105813: 89 e5 mov %esp,%ebp
80105815: 83 ec 08 sub $0x8,%esp
80105818: 90 nop
80105819: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
SETGATE(idt[i], 0, SEG_KCODE<<3, vectors[i], 0);
80105820: 8b 14 85 08 a0 10 80 mov -0x7fef5ff8(,%eax,4),%edx
80105827: c7 04 c5 a2 49 11 80 movl $0x8e000008,-0x7feeb65e(,%eax,8)
8010582e: 08 00 00 8e
80105832: 66 89 14 c5 a0 49 11 mov %dx,-0x7feeb660(,%eax,8)
80105839: 80
8010583a: c1 ea 10 shr $0x10,%edx
8010583d: 66 89 14 c5 a6 49 11 mov %dx,-0x7feeb65a(,%eax,8)
80105844: 80
for(i = 0; i < 256; i++)
80105845: 83 c0 01 add $0x1,%eax
80105848: 3d 00 01 00 00 cmp $0x100,%eax
8010584d: 75 d1 jne 80105820 <tvinit+0x10>
SETGATE(idt[T_SYSCALL], 1, SEG_KCODE<<3, vectors[T_SYSCALL], DPL_USER);
8010584f: a1 08 a1 10 80 mov 0x8010a108,%eax
initlock(&tickslock, "time");
80105854: 83 ec 08 sub $0x8,%esp
SETGATE(idt[T_SYSCALL], 1, SEG_KCODE<<3, vectors[T_SYSCALL], DPL_USER);
80105857: c7 05 a2 4b 11 80 08 movl $0xef000008,0x80114ba2
8010585e: 00 00 ef
initlock(&tickslock, "time");
80105861: 68 c5 78 10 80 push $0x801078c5
80105866: 68 60 49 11 80 push $0x80114960
SETGATE(idt[T_SYSCALL], 1, SEG_KCODE<<3, vectors[T_SYSCALL], DPL_USER);
8010586b: 66 a3 a0 4b 11 80 mov %ax,0x80114ba0
80105871: c1 e8 10 shr $0x10,%eax
80105874: 66 a3 a6 4b 11 80 mov %ax,0x80114ba6
initlock(&tickslock, "time");
8010587a: e8 a1 ea ff ff call 80104320 <initlock>
}
8010587f: 83 c4 10 add $0x10,%esp
80105882: c9 leave
80105883: c3 ret
80105884: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
8010588a: 8d bf 00 00 00 00 lea 0x0(%edi),%edi
80105890 <idtinit>:
void
idtinit(void)
{
80105890: 55 push %ebp
pd[0] = size-1;
80105891: b8 ff 07 00 00 mov $0x7ff,%eax
80105896: 89 e5 mov %esp,%ebp
80105898: 83 ec 10 sub $0x10,%esp
8010589b: 66 89 45 fa mov %ax,-0x6(%ebp)
pd[1] = (uint)p;
8010589f: b8 a0 49 11 80 mov $0x801149a0,%eax
801058a4: 66 89 45 fc mov %ax,-0x4(%ebp)
pd[2] = (uint)p >> 16;
801058a8: c1 e8 10 shr $0x10,%eax
801058ab: 66 89 45 fe mov %ax,-0x2(%ebp)
asm volatile("lidt (%0)" : : "r" (pd));
801058af: 8d 45 fa lea -0x6(%ebp),%eax
801058b2: 0f 01 18 lidtl (%eax)
lidt(idt, sizeof(idt));
}
801058b5: c9 leave
801058b6: c3 ret
801058b7: 89 f6 mov %esi,%esi
801058b9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
801058c0 <trap>:
//PAGEBREAK: 41
void
trap(struct trapframe *tf)
{
801058c0: 55 push %ebp
801058c1: 89 e5 mov %esp,%ebp
801058c3: 57 push %edi
801058c4: 56 push %esi
801058c5: 53 push %ebx
801058c6: 83 ec 1c sub $0x1c,%esp
801058c9: 8b 7d 08 mov 0x8(%ebp),%edi
if(tf->trapno == T_SYSCALL){
801058cc: 8b 47 30 mov 0x30(%edi),%eax
801058cf: 83 f8 40 cmp $0x40,%eax
801058d2: 0f 84 f0 00 00 00 je 801059c8 <trap+0x108>
if(myproc()->killed)
exit();
return;
}
switch(tf->trapno){
801058d8: 83 e8 20 sub $0x20,%eax
801058db: 83 f8 1f cmp $0x1f,%eax
801058de: 77 10 ja 801058f0 <trap+0x30>
801058e0: ff 24 85 6c 79 10 80 jmp *-0x7fef8694(,%eax,4)
801058e7: 89 f6 mov %esi,%esi
801058e9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
lapiceoi();
break;
//PAGEBREAK: 13
default:
if(myproc() == 0 || (tf->cs&3) == 0){
801058f0: e8 eb de ff ff call 801037e0 <myproc>
801058f5: 85 c0 test %eax,%eax
801058f7: 8b 5f 38 mov 0x38(%edi),%ebx
801058fa: 0f 84 14 02 00 00 je 80105b14 <trap+0x254>
80105900: f6 47 3c 03 testb $0x3,0x3c(%edi)
80105904: 0f 84 0a 02 00 00 je 80105b14 <trap+0x254>
static inline uint
rcr2(void)
{
uint val;
asm volatile("movl %%cr2,%0" : "=r" (val));
8010590a: 0f 20 d1 mov %cr2,%ecx
8010590d: 89 4d d8 mov %ecx,-0x28(%ebp)
cprintf("unexpected trap %d from cpu %d eip %x (cr2=0x%x)\n",
tf->trapno, cpuid(), tf->eip, rcr2());
panic("trap");
}
// In user space, assume process misbehaved.
cprintf("pid %d %s: trap %d err %d on cpu %d "
80105910: e8 ab de ff ff call 801037c0 <cpuid>
80105915: 89 45 dc mov %eax,-0x24(%ebp)
80105918: 8b 47 34 mov 0x34(%edi),%eax
8010591b: 8b 77 30 mov 0x30(%edi),%esi
8010591e: 89 45 e4 mov %eax,-0x1c(%ebp)
"eip 0x%x addr 0x%x--kill proc\n",
myproc()->pid, myproc()->name, tf->trapno,
80105921: e8 ba de ff ff call 801037e0 <myproc>
80105926: 89 45 e0 mov %eax,-0x20(%ebp)
80105929: e8 b2 de ff ff call 801037e0 <myproc>
cprintf("pid %d %s: trap %d err %d on cpu %d "
8010592e: 8b 4d d8 mov -0x28(%ebp),%ecx
80105931: 8b 55 dc mov -0x24(%ebp),%edx
80105934: 51 push %ecx
80105935: 53 push %ebx
80105936: 52 push %edx
myproc()->pid, myproc()->name, tf->trapno,
80105937: 8b 55 e0 mov -0x20(%ebp),%edx
cprintf("pid %d %s: trap %d err %d on cpu %d "
8010593a: ff 75 e4 pushl -0x1c(%ebp)
8010593d: 56 push %esi
myproc()->pid, myproc()->name, tf->trapno,
8010593e: 83 c2 70 add $0x70,%edx
cprintf("pid %d %s: trap %d err %d on cpu %d "
80105941: 52 push %edx
80105942: ff 70 14 pushl 0x14(%eax)
80105945: 68 28 79 10 80 push $0x80107928
8010594a: e8 11 ad ff ff call 80100660 <cprintf>
tf->err, cpuid(), tf->eip, rcr2());
myproc()->killed = 1;
8010594f: 83 c4 20 add $0x20,%esp
80105952: e8 89 de ff ff call 801037e0 <myproc>
80105957: c7 40 28 01 00 00 00 movl $0x1,0x28(%eax)
}
// Force process exit if it has been killed and is in user space.
// (If it is still executing in the kernel, let it keep running
// until it gets to the regular system call return.)
if(myproc() && myproc()->killed && (tf->cs&3) == DPL_USER)
8010595e: e8 7d de ff ff call 801037e0 <myproc>
80105963: 85 c0 test %eax,%eax
80105965: 74 1d je 80105984 <trap+0xc4>
80105967: e8 74 de ff ff call 801037e0 <myproc>
8010596c: 8b 50 28 mov 0x28(%eax),%edx
8010596f: 85 d2 test %edx,%edx
80105971: 74 11 je 80105984 <trap+0xc4>
80105973: 0f b7 47 3c movzwl 0x3c(%edi),%eax
80105977: 83 e0 03 and $0x3,%eax
8010597a: 66 83 f8 03 cmp $0x3,%ax
8010597e: 0f 84 4c 01 00 00 je 80105ad0 <trap+0x210>
exit();
// Force process to give up CPU on clock tick.
// If interrupts were on while locks held, would need to check nlock.
if(myproc() && myproc()->state == RUNNING &&
80105984: e8 57 de ff ff call 801037e0 <myproc>
80105989: 85 c0 test %eax,%eax
8010598b: 74 0b je 80105998 <trap+0xd8>
8010598d: e8 4e de ff ff call 801037e0 <myproc>
80105992: 83 78 10 04 cmpl $0x4,0x10(%eax)
80105996: 74 68 je 80105a00 <trap+0x140>
tf->trapno == T_IRQ0+IRQ_TIMER)
yield();
// Check if the process has been killed since we yielded
if(myproc() && myproc()->killed && (tf->cs&3) == DPL_USER)
80105998: e8 43 de ff ff call 801037e0 <myproc>
8010599d: 85 c0 test %eax,%eax
8010599f: 74 19 je 801059ba <trap+0xfa>
801059a1: e8 3a de ff ff call 801037e0 <myproc>
801059a6: 8b 40 28 mov 0x28(%eax),%eax
801059a9: 85 c0 test %eax,%eax
801059ab: 74 0d je 801059ba <trap+0xfa>
801059ad: 0f b7 47 3c movzwl 0x3c(%edi),%eax
801059b1: 83 e0 03 and $0x3,%eax
801059b4: 66 83 f8 03 cmp $0x3,%ax
801059b8: 74 37 je 801059f1 <trap+0x131>
exit();
}
801059ba: 8d 65 f4 lea -0xc(%ebp),%esp
801059bd: 5b pop %ebx
801059be: 5e pop %esi
801059bf: 5f pop %edi
801059c0: 5d pop %ebp
801059c1: c3 ret
801059c2: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
if(myproc()->killed)
801059c8: e8 13 de ff ff call 801037e0 <myproc>
801059cd: 8b 58 28 mov 0x28(%eax),%ebx
801059d0: 85 db test %ebx,%ebx
801059d2: 0f 85 e8 00 00 00 jne 80105ac0 <trap+0x200>
myproc()->tf = tf;
801059d8: e8 03 de ff ff call 801037e0 <myproc>
801059dd: 89 78 1c mov %edi,0x1c(%eax)
syscall();
801059e0: e8 9b ef ff ff call 80104980 <syscall>
if(myproc()->killed)
801059e5: e8 f6 dd ff ff call 801037e0 <myproc>
801059ea: 8b 48 28 mov 0x28(%eax),%ecx
801059ed: 85 c9 test %ecx,%ecx
801059ef: 74 c9 je 801059ba <trap+0xfa>
}
801059f1: 8d 65 f4 lea -0xc(%ebp),%esp
801059f4: 5b pop %ebx
801059f5: 5e pop %esi
801059f6: 5f pop %edi
801059f7: 5d pop %ebp
exit();
801059f8: e9 23 e2 ff ff jmp 80103c20 <exit>
801059fd: 8d 76 00 lea 0x0(%esi),%esi
if(myproc() && myproc()->state == RUNNING &&
80105a00: 83 7f 30 20 cmpl $0x20,0x30(%edi)
80105a04: 75 92 jne 80105998 <trap+0xd8>
yield();
80105a06: e8 45 e3 ff ff call 80103d50 <yield>
80105a0b: eb 8b jmp 80105998 <trap+0xd8>
80105a0d: 8d 76 00 lea 0x0(%esi),%esi
if(cpuid() == 0){
80105a10: e8 ab dd ff ff call 801037c0 <cpuid>
80105a15: 85 c0 test %eax,%eax
80105a17: 0f 84 c3 00 00 00 je 80105ae0 <trap+0x220>
lapiceoi();
80105a1d: e8 3e cd ff ff call 80102760 <lapiceoi>
if(myproc() && myproc()->killed && (tf->cs&3) == DPL_USER)
80105a22: e8 b9 dd ff ff call 801037e0 <myproc>
80105a27: 85 c0 test %eax,%eax
80105a29: 0f 85 38 ff ff ff jne 80105967 <trap+0xa7>
80105a2f: e9 50 ff ff ff jmp 80105984 <trap+0xc4>
80105a34: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
kbdintr();
80105a38: e8 e3 cb ff ff call 80102620 <kbdintr>
lapiceoi();
80105a3d: e8 1e cd ff ff call 80102760 <lapiceoi>
if(myproc() && myproc()->killed && (tf->cs&3) == DPL_USER)
80105a42: e8 99 dd ff ff call 801037e0 <myproc>
80105a47: 85 c0 test %eax,%eax
80105a49: 0f 85 18 ff ff ff jne 80105967 <trap+0xa7>
80105a4f: e9 30 ff ff ff jmp 80105984 <trap+0xc4>
80105a54: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
uartintr();
80105a58: e8 53 02 00 00 call 80105cb0 <uartintr>
lapiceoi();
80105a5d: e8 fe cc ff ff call 80102760 <lapiceoi>
if(myproc() && myproc()->killed && (tf->cs&3) == DPL_USER)
80105a62: e8 79 dd ff ff call 801037e0 <myproc>
80105a67: 85 c0 test %eax,%eax
80105a69: 0f 85 f8 fe ff ff jne 80105967 <trap+0xa7>
80105a6f: e9 10 ff ff ff jmp 80105984 <trap+0xc4>
80105a74: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
cprintf("cpu%d: spurious interrupt at %x:%x\n",
80105a78: 0f b7 5f 3c movzwl 0x3c(%edi),%ebx
80105a7c: 8b 77 38 mov 0x38(%edi),%esi
80105a7f: e8 3c dd ff ff call 801037c0 <cpuid>
80105a84: 56 push %esi
80105a85: 53 push %ebx
80105a86: 50 push %eax
80105a87: 68 d0 78 10 80 push $0x801078d0
80105a8c: e8 cf ab ff ff call 80100660 <cprintf>
lapiceoi();
80105a91: e8 ca cc ff ff call 80102760 <lapiceoi>
break;
80105a96: 83 c4 10 add $0x10,%esp
if(myproc() && myproc()->killed && (tf->cs&3) == DPL_USER)
80105a99: e8 42 dd ff ff call 801037e0 <myproc>
80105a9e: 85 c0 test %eax,%eax
80105aa0: 0f 85 c1 fe ff ff jne 80105967 <trap+0xa7>
80105aa6: e9 d9 fe ff ff jmp 80105984 <trap+0xc4>
80105aab: 90 nop
80105aac: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
ideintr();
80105ab0: e8 db c5 ff ff call 80102090 <ideintr>
80105ab5: e9 63 ff ff ff jmp 80105a1d <trap+0x15d>
80105aba: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
exit();
80105ac0: e8 5b e1 ff ff call 80103c20 <exit>
80105ac5: e9 0e ff ff ff jmp 801059d8 <trap+0x118>
80105aca: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
exit();
80105ad0: e8 4b e1 ff ff call 80103c20 <exit>
80105ad5: e9 aa fe ff ff jmp 80105984 <trap+0xc4>
80105ada: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
acquire(&tickslock);
80105ae0: 83 ec 0c sub $0xc,%esp
80105ae3: 68 60 49 11 80 push $0x80114960
80105ae8: e8 23 e9 ff ff call 80104410 <acquire>
wakeup(&ticks);
80105aed: c7 04 24 a0 51 11 80 movl $0x801151a0,(%esp)
ticks++;
80105af4: 83 05 a0 51 11 80 01 addl $0x1,0x801151a0
wakeup(&ticks);
80105afb: e8 50 e4 ff ff call 80103f50 <wakeup>
release(&tickslock);
80105b00: c7 04 24 60 49 11 80 movl $0x80114960,(%esp)
80105b07: e8 24 ea ff ff call 80104530 <release>
80105b0c: 83 c4 10 add $0x10,%esp
80105b0f: e9 09 ff ff ff jmp 80105a1d <trap+0x15d>
80105b14: 0f 20 d6 mov %cr2,%esi
cprintf("unexpected trap %d from cpu %d eip %x (cr2=0x%x)\n",
80105b17: e8 a4 dc ff ff call 801037c0 <cpuid>
80105b1c: 83 ec 0c sub $0xc,%esp
80105b1f: 56 push %esi
80105b20: 53 push %ebx
80105b21: 50 push %eax
80105b22: ff 77 30 pushl 0x30(%edi)
80105b25: 68 f4 78 10 80 push $0x801078f4
80105b2a: e8 31 ab ff ff call 80100660 <cprintf>
panic("trap");
80105b2f: 83 c4 14 add $0x14,%esp
80105b32: 68 ca 78 10 80 push $0x801078ca
80105b37: e8 54 a8 ff ff call 80100390 <panic>
80105b3c: 66 90 xchg %ax,%ax
80105b3e: 66 90 xchg %ax,%ax
80105b40 <uartgetc>:
}
static int
uartgetc(void)
{
if(!uart)
80105b40: a1 c0 a5 10 80 mov 0x8010a5c0,%eax
{
80105b45: 55 push %ebp
80105b46: 89 e5 mov %esp,%ebp
if(!uart)
80105b48: 85 c0 test %eax,%eax
80105b4a: 74 1c je 80105b68 <uartgetc+0x28>
asm volatile("in %1,%0" : "=a" (data) : "d" (port));
80105b4c: ba fd 03 00 00 mov $0x3fd,%edx
80105b51: ec in (%dx),%al
return -1;
if(!(inb(COM1+5) & 0x01))
80105b52: a8 01 test $0x1,%al
80105b54: 74 12 je 80105b68 <uartgetc+0x28>
80105b56: ba f8 03 00 00 mov $0x3f8,%edx
80105b5b: ec in (%dx),%al
return -1;
return inb(COM1+0);
80105b5c: 0f b6 c0 movzbl %al,%eax
}
80105b5f: 5d pop %ebp
80105b60: c3 ret
80105b61: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
return -1;
80105b68: b8 ff ff ff ff mov $0xffffffff,%eax
}
80105b6d: 5d pop %ebp
80105b6e: c3 ret
80105b6f: 90 nop
80105b70 <uartputc.part.0>:
uartputc(int c)
80105b70: 55 push %ebp
80105b71: 89 e5 mov %esp,%ebp
80105b73: 57 push %edi
80105b74: 56 push %esi
80105b75: 53 push %ebx
80105b76: 89 c7 mov %eax,%edi
80105b78: bb 80 00 00 00 mov $0x80,%ebx
80105b7d: be fd 03 00 00 mov $0x3fd,%esi
80105b82: 83 ec 0c sub $0xc,%esp
80105b85: eb 1b jmp 80105ba2 <uartputc.part.0+0x32>
80105b87: 89 f6 mov %esi,%esi
80105b89: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
microdelay(10);
80105b90: 83 ec 0c sub $0xc,%esp
80105b93: 6a 0a push $0xa
80105b95: e8 e6 cb ff ff call 80102780 <microdelay>
for(i = 0; i < 128 && !(inb(COM1+5) & 0x20); i++)
80105b9a: 83 c4 10 add $0x10,%esp
80105b9d: 83 eb 01 sub $0x1,%ebx
80105ba0: 74 07 je 80105ba9 <uartputc.part.0+0x39>
80105ba2: 89 f2 mov %esi,%edx
80105ba4: ec in (%dx),%al
80105ba5: a8 20 test $0x20,%al
80105ba7: 74 e7 je 80105b90 <uartputc.part.0+0x20>
asm volatile("out %0,%1" : : "a" (data), "d" (port));
80105ba9: ba f8 03 00 00 mov $0x3f8,%edx
80105bae: 89 f8 mov %edi,%eax
80105bb0: ee out %al,(%dx)
}
80105bb1: 8d 65 f4 lea -0xc(%ebp),%esp
80105bb4: 5b pop %ebx
80105bb5: 5e pop %esi
80105bb6: 5f pop %edi
80105bb7: 5d pop %ebp
80105bb8: c3 ret
80105bb9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
80105bc0 <uartinit>:
{
80105bc0: 55 push %ebp
80105bc1: 31 c9 xor %ecx,%ecx
80105bc3: 89 c8 mov %ecx,%eax
80105bc5: 89 e5 mov %esp,%ebp
80105bc7: 57 push %edi
80105bc8: 56 push %esi
80105bc9: 53 push %ebx
80105bca: bb fa 03 00 00 mov $0x3fa,%ebx
80105bcf: 89 da mov %ebx,%edx
80105bd1: 83 ec 0c sub $0xc,%esp
80105bd4: ee out %al,(%dx)
80105bd5: bf fb 03 00 00 mov $0x3fb,%edi
80105bda: b8 80 ff ff ff mov $0xffffff80,%eax
80105bdf: 89 fa mov %edi,%edx
80105be1: ee out %al,(%dx)
80105be2: b8 0c 00 00 00 mov $0xc,%eax
80105be7: ba f8 03 00 00 mov $0x3f8,%edx
80105bec: ee out %al,(%dx)
80105bed: be f9 03 00 00 mov $0x3f9,%esi
80105bf2: 89 c8 mov %ecx,%eax
80105bf4: 89 f2 mov %esi,%edx
80105bf6: ee out %al,(%dx)
80105bf7: b8 03 00 00 00 mov $0x3,%eax
80105bfc: 89 fa mov %edi,%edx
80105bfe: ee out %al,(%dx)
80105bff: ba fc 03 00 00 mov $0x3fc,%edx
80105c04: 89 c8 mov %ecx,%eax
80105c06: ee out %al,(%dx)
80105c07: b8 01 00 00 00 mov $0x1,%eax
80105c0c: 89 f2 mov %esi,%edx
80105c0e: ee out %al,(%dx)
asm volatile("in %1,%0" : "=a" (data) : "d" (port));
80105c0f: ba fd 03 00 00 mov $0x3fd,%edx
80105c14: ec in (%dx),%al
if(inb(COM1+5) == 0xFF)
80105c15: 3c ff cmp $0xff,%al
80105c17: 74 5a je 80105c73 <uartinit+0xb3>
uart = 1;
80105c19: c7 05 c0 a5 10 80 01 movl $0x1,0x8010a5c0
80105c20: 00 00 00
80105c23: 89 da mov %ebx,%edx
80105c25: ec in (%dx),%al
80105c26: ba f8 03 00 00 mov $0x3f8,%edx
80105c2b: ec in (%dx),%al
ioapicenable(IRQ_COM1, 0);
80105c2c: 83 ec 08 sub $0x8,%esp
for(p="xv6...\n"; *p; p++)
80105c2f: bb ec 79 10 80 mov $0x801079ec,%ebx
ioapicenable(IRQ_COM1, 0);
80105c34: 6a 00 push $0x0
80105c36: 6a 04 push $0x4
80105c38: e8 a3 c6 ff ff call 801022e0 <ioapicenable>
80105c3d: 83 c4 10 add $0x10,%esp
for(p="xv6...\n"; *p; p++)
80105c40: b8 78 00 00 00 mov $0x78,%eax
80105c45: eb 13 jmp 80105c5a <uartinit+0x9a>
80105c47: 89 f6 mov %esi,%esi
80105c49: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80105c50: 83 c3 01 add $0x1,%ebx
80105c53: 0f be 03 movsbl (%ebx),%eax
80105c56: 84 c0 test %al,%al
80105c58: 74 19 je 80105c73 <uartinit+0xb3>
if(!uart)
80105c5a: 8b 15 c0 a5 10 80 mov 0x8010a5c0,%edx
80105c60: 85 d2 test %edx,%edx
80105c62: 74 ec je 80105c50 <uartinit+0x90>
for(p="xv6...\n"; *p; p++)
80105c64: 83 c3 01 add $0x1,%ebx
80105c67: e8 04 ff ff ff call 80105b70 <uartputc.part.0>
80105c6c: 0f be 03 movsbl (%ebx),%eax
80105c6f: 84 c0 test %al,%al
80105c71: 75 e7 jne 80105c5a <uartinit+0x9a>
}
80105c73: 8d 65 f4 lea -0xc(%ebp),%esp
80105c76: 5b pop %ebx
80105c77: 5e pop %esi
80105c78: 5f pop %edi
80105c79: 5d pop %ebp
80105c7a: c3 ret
80105c7b: 90 nop
80105c7c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80105c80 <uartputc>:
if(!uart)
80105c80: 8b 15 c0 a5 10 80 mov 0x8010a5c0,%edx
{
80105c86: 55 push %ebp
80105c87: 89 e5 mov %esp,%ebp
if(!uart)
80105c89: 85 d2 test %edx,%edx
{
80105c8b: 8b 45 08 mov 0x8(%ebp),%eax
if(!uart)
80105c8e: 74 10 je 80105ca0 <uartputc+0x20>
}
80105c90: 5d pop %ebp
80105c91: e9 da fe ff ff jmp 80105b70 <uartputc.part.0>
80105c96: 8d 76 00 lea 0x0(%esi),%esi
80105c99: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80105ca0: 5d pop %ebp
80105ca1: c3 ret
80105ca2: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
80105ca9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80105cb0 <uartintr>:
void
uartintr(void)
{
80105cb0: 55 push %ebp
80105cb1: 89 e5 mov %esp,%ebp
80105cb3: 83 ec 14 sub $0x14,%esp
consoleintr(uartgetc);
80105cb6: 68 40 5b 10 80 push $0x80105b40
80105cbb: e8 50 ab ff ff call 80100810 <consoleintr>
}
80105cc0: 83 c4 10 add $0x10,%esp
80105cc3: c9 leave
80105cc4: c3 ret
80105cc5 <vector0>:
# generated by vectors.pl - do not edit
# handlers
.globl alltraps
.globl vector0
vector0:
pushl $0
80105cc5: 6a 00 push $0x0
pushl $0
80105cc7: 6a 00 push $0x0
jmp alltraps
80105cc9: e9 19 fb ff ff jmp 801057e7 <alltraps>
80105cce <vector1>:
.globl vector1
vector1:
pushl $0
80105cce: 6a 00 push $0x0
pushl $1
80105cd0: 6a 01 push $0x1
jmp alltraps
80105cd2: e9 10 fb ff ff jmp 801057e7 <alltraps>
80105cd7 <vector2>:
.globl vector2
vector2:
pushl $0
80105cd7: 6a 00 push $0x0
pushl $2
80105cd9: 6a 02 push $0x2
jmp alltraps
80105cdb: e9 07 fb ff ff jmp 801057e7 <alltraps>
80105ce0 <vector3>:
.globl vector3
vector3:
pushl $0
80105ce0: 6a 00 push $0x0
pushl $3
80105ce2: 6a 03 push $0x3
jmp alltraps
80105ce4: e9 fe fa ff ff jmp 801057e7 <alltraps>
80105ce9 <vector4>:
.globl vector4
vector4:
pushl $0
80105ce9: 6a 00 push $0x0
pushl $4
80105ceb: 6a 04 push $0x4
jmp alltraps
80105ced: e9 f5 fa ff ff jmp 801057e7 <alltraps>
80105cf2 <vector5>:
.globl vector5
vector5:
pushl $0
80105cf2: 6a 00 push $0x0
pushl $5
80105cf4: 6a 05 push $0x5
jmp alltraps
80105cf6: e9 ec fa ff ff jmp 801057e7 <alltraps>
80105cfb <vector6>:
.globl vector6
vector6:
pushl $0
80105cfb: 6a 00 push $0x0
pushl $6
80105cfd: 6a 06 push $0x6
jmp alltraps
80105cff: e9 e3 fa ff ff jmp 801057e7 <alltraps>
80105d04 <vector7>:
.globl vector7
vector7:
pushl $0
80105d04: 6a 00 push $0x0
pushl $7
80105d06: 6a 07 push $0x7
jmp alltraps
80105d08: e9 da fa ff ff jmp 801057e7 <alltraps>
80105d0d <vector8>:
.globl vector8
vector8:
pushl $8
80105d0d: 6a 08 push $0x8
jmp alltraps
80105d0f: e9 d3 fa ff ff jmp 801057e7 <alltraps>
80105d14 <vector9>:
.globl vector9
vector9:
pushl $0
80105d14: 6a 00 push $0x0
pushl $9
80105d16: 6a 09 push $0x9
jmp alltraps
80105d18: e9 ca fa ff ff jmp 801057e7 <alltraps>
80105d1d <vector10>:
.globl vector10
vector10:
pushl $10
80105d1d: 6a 0a push $0xa
jmp alltraps
80105d1f: e9 c3 fa ff ff jmp 801057e7 <alltraps>
80105d24 <vector11>:
.globl vector11
vector11:
pushl $11
80105d24: 6a 0b push $0xb
jmp alltraps
80105d26: e9 bc fa ff ff jmp 801057e7 <alltraps>
80105d2b <vector12>:
.globl vector12
vector12:
pushl $12
80105d2b: 6a 0c push $0xc
jmp alltraps
80105d2d: e9 b5 fa ff ff jmp 801057e7 <alltraps>
80105d32 <vector13>:
.globl vector13
vector13:
pushl $13
80105d32: 6a 0d push $0xd
jmp alltraps
80105d34: e9 ae fa ff ff jmp 801057e7 <alltraps>
80105d39 <vector14>:
.globl vector14
vector14:
pushl $14
80105d39: 6a 0e push $0xe
jmp alltraps
80105d3b: e9 a7 fa ff ff jmp 801057e7 <alltraps>
80105d40 <vector15>:
.globl vector15
vector15:
pushl $0
80105d40: 6a 00 push $0x0
pushl $15
80105d42: 6a 0f push $0xf
jmp alltraps
80105d44: e9 9e fa ff ff jmp 801057e7 <alltraps>
80105d49 <vector16>:
.globl vector16
vector16:
pushl $0
80105d49: 6a 00 push $0x0
pushl $16
80105d4b: 6a 10 push $0x10
jmp alltraps
80105d4d: e9 95 fa ff ff jmp 801057e7 <alltraps>
80105d52 <vector17>:
.globl vector17
vector17:
pushl $17
80105d52: 6a 11 push $0x11
jmp alltraps
80105d54: e9 8e fa ff ff jmp 801057e7 <alltraps>
80105d59 <vector18>:
.globl vector18
vector18:
pushl $0
80105d59: 6a 00 push $0x0
pushl $18
80105d5b: 6a 12 push $0x12
jmp alltraps
80105d5d: e9 85 fa ff ff jmp 801057e7 <alltraps>
80105d62 <vector19>:
.globl vector19
vector19:
pushl $0
80105d62: 6a 00 push $0x0
pushl $19
80105d64: 6a 13 push $0x13
jmp alltraps
80105d66: e9 7c fa ff ff jmp 801057e7 <alltraps>
80105d6b <vector20>:
.globl vector20
vector20:
pushl $0
80105d6b: 6a 00 push $0x0
pushl $20
80105d6d: 6a 14 push $0x14
jmp alltraps
80105d6f: e9 73 fa ff ff jmp 801057e7 <alltraps>
80105d74 <vector21>:
.globl vector21
vector21:
pushl $0
80105d74: 6a 00 push $0x0
pushl $21
80105d76: 6a 15 push $0x15
jmp alltraps
80105d78: e9 6a fa ff ff jmp 801057e7 <alltraps>
80105d7d <vector22>:
.globl vector22
vector22:
pushl $0
80105d7d: 6a 00 push $0x0
pushl $22
80105d7f: 6a 16 push $0x16
jmp alltraps
80105d81: e9 61 fa ff ff jmp 801057e7 <alltraps>
80105d86 <vector23>:
.globl vector23
vector23:
pushl $0
80105d86: 6a 00 push $0x0
pushl $23
80105d88: 6a 17 push $0x17
jmp alltraps
80105d8a: e9 58 fa ff ff jmp 801057e7 <alltraps>
80105d8f <vector24>:
.globl vector24
vector24:
pushl $0
80105d8f: 6a 00 push $0x0
pushl $24
80105d91: 6a 18 push $0x18
jmp alltraps
80105d93: e9 4f fa ff ff jmp 801057e7 <alltraps>
80105d98 <vector25>:
.globl vector25
vector25:
pushl $0
80105d98: 6a 00 push $0x0
pushl $25
80105d9a: 6a 19 push $0x19
jmp alltraps
80105d9c: e9 46 fa ff ff jmp 801057e7 <alltraps>
80105da1 <vector26>:
.globl vector26
vector26:
pushl $0
80105da1: 6a 00 push $0x0
pushl $26
80105da3: 6a 1a push $0x1a
jmp alltraps
80105da5: e9 3d fa ff ff jmp 801057e7 <alltraps>
80105daa <vector27>:
.globl vector27
vector27:
pushl $0
80105daa: 6a 00 push $0x0
pushl $27
80105dac: 6a 1b push $0x1b
jmp alltraps
80105dae: e9 34 fa ff ff jmp 801057e7 <alltraps>
80105db3 <vector28>:
.globl vector28
vector28:
pushl $0
80105db3: 6a 00 push $0x0
pushl $28
80105db5: 6a 1c push $0x1c
jmp alltraps
80105db7: e9 2b fa ff ff jmp 801057e7 <alltraps>
80105dbc <vector29>:
.globl vector29
vector29:
pushl $0
80105dbc: 6a 00 push $0x0
pushl $29
80105dbe: 6a 1d push $0x1d
jmp alltraps
80105dc0: e9 22 fa ff ff jmp 801057e7 <alltraps>
80105dc5 <vector30>:
.globl vector30
vector30:
pushl $0
80105dc5: 6a 00 push $0x0
pushl $30
80105dc7: 6a 1e push $0x1e
jmp alltraps
80105dc9: e9 19 fa ff ff jmp 801057e7 <alltraps>
80105dce <vector31>:
.globl vector31
vector31:
pushl $0
80105dce: 6a 00 push $0x0
pushl $31
80105dd0: 6a 1f push $0x1f
jmp alltraps
80105dd2: e9 10 fa ff ff jmp 801057e7 <alltraps>
80105dd7 <vector32>:
.globl vector32
vector32:
pushl $0
80105dd7: 6a 00 push $0x0
pushl $32
80105dd9: 6a 20 push $0x20
jmp alltraps
80105ddb: e9 07 fa ff ff jmp 801057e7 <alltraps>
80105de0 <vector33>:
.globl vector33
vector33:
pushl $0
80105de0: 6a 00 push $0x0
pushl $33
80105de2: 6a 21 push $0x21
jmp alltraps
80105de4: e9 fe f9 ff ff jmp 801057e7 <alltraps>
80105de9 <vector34>:
.globl vector34
vector34:
pushl $0
80105de9: 6a 00 push $0x0
pushl $34
80105deb: 6a 22 push $0x22
jmp alltraps
80105ded: e9 f5 f9 ff ff jmp 801057e7 <alltraps>
80105df2 <vector35>:
.globl vector35
vector35:
pushl $0
80105df2: 6a 00 push $0x0
pushl $35
80105df4: 6a 23 push $0x23
jmp alltraps
80105df6: e9 ec f9 ff ff jmp 801057e7 <alltraps>
80105dfb <vector36>:
.globl vector36
vector36:
pushl $0
80105dfb: 6a 00 push $0x0
pushl $36
80105dfd: 6a 24 push $0x24
jmp alltraps
80105dff: e9 e3 f9 ff ff jmp 801057e7 <alltraps>
80105e04 <vector37>:
.globl vector37
vector37:
pushl $0
80105e04: 6a 00 push $0x0
pushl $37
80105e06: 6a 25 push $0x25
jmp alltraps
80105e08: e9 da f9 ff ff jmp 801057e7 <alltraps>
80105e0d <vector38>:
.globl vector38
vector38:
pushl $0
80105e0d: 6a 00 push $0x0
pushl $38
80105e0f: 6a 26 push $0x26
jmp alltraps
80105e11: e9 d1 f9 ff ff jmp 801057e7 <alltraps>
80105e16 <vector39>:
.globl vector39
vector39:
pushl $0
80105e16: 6a 00 push $0x0
pushl $39
80105e18: 6a 27 push $0x27
jmp alltraps
80105e1a: e9 c8 f9 ff ff jmp 801057e7 <alltraps>
80105e1f <vector40>:
.globl vector40
vector40:
pushl $0
80105e1f: 6a 00 push $0x0
pushl $40
80105e21: 6a 28 push $0x28
jmp alltraps
80105e23: e9 bf f9 ff ff jmp 801057e7 <alltraps>
80105e28 <vector41>:
.globl vector41
vector41:
pushl $0
80105e28: 6a 00 push $0x0
pushl $41
80105e2a: 6a 29 push $0x29
jmp alltraps
80105e2c: e9 b6 f9 ff ff jmp 801057e7 <alltraps>
80105e31 <vector42>:
.globl vector42
vector42:
pushl $0
80105e31: 6a 00 push $0x0
pushl $42
80105e33: 6a 2a push $0x2a
jmp alltraps
80105e35: e9 ad f9 ff ff jmp 801057e7 <alltraps>
80105e3a <vector43>:
.globl vector43
vector43:
pushl $0
80105e3a: 6a 00 push $0x0
pushl $43
80105e3c: 6a 2b push $0x2b
jmp alltraps
80105e3e: e9 a4 f9 ff ff jmp 801057e7 <alltraps>
80105e43 <vector44>:
.globl vector44
vector44:
pushl $0
80105e43: 6a 00 push $0x0
pushl $44
80105e45: 6a 2c push $0x2c
jmp alltraps
80105e47: e9 9b f9 ff ff jmp 801057e7 <alltraps>
80105e4c <vector45>:
.globl vector45
vector45:
pushl $0
80105e4c: 6a 00 push $0x0
pushl $45
80105e4e: 6a 2d push $0x2d
jmp alltraps
80105e50: e9 92 f9 ff ff jmp 801057e7 <alltraps>
80105e55 <vector46>:
.globl vector46
vector46:
pushl $0
80105e55: 6a 00 push $0x0
pushl $46
80105e57: 6a 2e push $0x2e
jmp alltraps
80105e59: e9 89 f9 ff ff jmp 801057e7 <alltraps>
80105e5e <vector47>:
.globl vector47
vector47:
pushl $0
80105e5e: 6a 00 push $0x0
pushl $47
80105e60: 6a 2f push $0x2f
jmp alltraps
80105e62: e9 80 f9 ff ff jmp 801057e7 <alltraps>
80105e67 <vector48>:
.globl vector48
vector48:
pushl $0
80105e67: 6a 00 push $0x0
pushl $48
80105e69: 6a 30 push $0x30
jmp alltraps
80105e6b: e9 77 f9 ff ff jmp 801057e7 <alltraps>
80105e70 <vector49>:
.globl vector49
vector49:
pushl $0
80105e70: 6a 00 push $0x0
pushl $49
80105e72: 6a 31 push $0x31
jmp alltraps
80105e74: e9 6e f9 ff ff jmp 801057e7 <alltraps>
80105e79 <vector50>:
.globl vector50
vector50:
pushl $0
80105e79: 6a 00 push $0x0
pushl $50
80105e7b: 6a 32 push $0x32
jmp alltraps
80105e7d: e9 65 f9 ff ff jmp 801057e7 <alltraps>
80105e82 <vector51>:
.globl vector51
vector51:
pushl $0
80105e82: 6a 00 push $0x0
pushl $51
80105e84: 6a 33 push $0x33
jmp alltraps
80105e86: e9 5c f9 ff ff jmp 801057e7 <alltraps>
80105e8b <vector52>:
.globl vector52
vector52:
pushl $0
80105e8b: 6a 00 push $0x0
pushl $52
80105e8d: 6a 34 push $0x34
jmp alltraps
80105e8f: e9 53 f9 ff ff jmp 801057e7 <alltraps>
80105e94 <vector53>:
.globl vector53
vector53:
pushl $0
80105e94: 6a 00 push $0x0
pushl $53
80105e96: 6a 35 push $0x35
jmp alltraps
80105e98: e9 4a f9 ff ff jmp 801057e7 <alltraps>
80105e9d <vector54>:
.globl vector54
vector54:
pushl $0
80105e9d: 6a 00 push $0x0
pushl $54
80105e9f: 6a 36 push $0x36
jmp alltraps
80105ea1: e9 41 f9 ff ff jmp 801057e7 <alltraps>
80105ea6 <vector55>:
.globl vector55
vector55:
pushl $0
80105ea6: 6a 00 push $0x0
pushl $55
80105ea8: 6a 37 push $0x37
jmp alltraps
80105eaa: e9 38 f9 ff ff jmp 801057e7 <alltraps>
80105eaf <vector56>:
.globl vector56
vector56:
pushl $0
80105eaf: 6a 00 push $0x0
pushl $56
80105eb1: 6a 38 push $0x38
jmp alltraps
80105eb3: e9 2f f9 ff ff jmp 801057e7 <alltraps>
80105eb8 <vector57>:
.globl vector57
vector57:
pushl $0
80105eb8: 6a 00 push $0x0
pushl $57
80105eba: 6a 39 push $0x39
jmp alltraps
80105ebc: e9 26 f9 ff ff jmp 801057e7 <alltraps>
80105ec1 <vector58>:
.globl vector58
vector58:
pushl $0
80105ec1: 6a 00 push $0x0
pushl $58
80105ec3: 6a 3a push $0x3a
jmp alltraps
80105ec5: e9 1d f9 ff ff jmp 801057e7 <alltraps>
80105eca <vector59>:
.globl vector59
vector59:
pushl $0
80105eca: 6a 00 push $0x0
pushl $59
80105ecc: 6a 3b push $0x3b
jmp alltraps
80105ece: e9 14 f9 ff ff jmp 801057e7 <alltraps>
80105ed3 <vector60>:
.globl vector60
vector60:
pushl $0
80105ed3: 6a 00 push $0x0
pushl $60
80105ed5: 6a 3c push $0x3c
jmp alltraps
80105ed7: e9 0b f9 ff ff jmp 801057e7 <alltraps>
80105edc <vector61>:
.globl vector61
vector61:
pushl $0
80105edc: 6a 00 push $0x0
pushl $61
80105ede: 6a 3d push $0x3d
jmp alltraps
80105ee0: e9 02 f9 ff ff jmp 801057e7 <alltraps>
80105ee5 <vector62>:
.globl vector62
vector62:
pushl $0
80105ee5: 6a 00 push $0x0
pushl $62
80105ee7: 6a 3e push $0x3e
jmp alltraps
80105ee9: e9 f9 f8 ff ff jmp 801057e7 <alltraps>
80105eee <vector63>:
.globl vector63
vector63:
pushl $0
80105eee: 6a 00 push $0x0
pushl $63
80105ef0: 6a 3f push $0x3f
jmp alltraps
80105ef2: e9 f0 f8 ff ff jmp 801057e7 <alltraps>
80105ef7 <vector64>:
.globl vector64
vector64:
pushl $0
80105ef7: 6a 00 push $0x0
pushl $64
80105ef9: 6a 40 push $0x40
jmp alltraps
80105efb: e9 e7 f8 ff ff jmp 801057e7 <alltraps>
80105f00 <vector65>:
.globl vector65
vector65:
pushl $0
80105f00: 6a 00 push $0x0
pushl $65
80105f02: 6a 41 push $0x41
jmp alltraps
80105f04: e9 de f8 ff ff jmp 801057e7 <alltraps>
80105f09 <vector66>:
.globl vector66
vector66:
pushl $0
80105f09: 6a 00 push $0x0
pushl $66
80105f0b: 6a 42 push $0x42
jmp alltraps
80105f0d: e9 d5 f8 ff ff jmp 801057e7 <alltraps>
80105f12 <vector67>:
.globl vector67
vector67:
pushl $0
80105f12: 6a 00 push $0x0
pushl $67
80105f14: 6a 43 push $0x43
jmp alltraps
80105f16: e9 cc f8 ff ff jmp 801057e7 <alltraps>
80105f1b <vector68>:
.globl vector68
vector68:
pushl $0
80105f1b: 6a 00 push $0x0
pushl $68
80105f1d: 6a 44 push $0x44
jmp alltraps
80105f1f: e9 c3 f8 ff ff jmp 801057e7 <alltraps>
80105f24 <vector69>:
.globl vector69
vector69:
pushl $0
80105f24: 6a 00 push $0x0
pushl $69
80105f26: 6a 45 push $0x45
jmp alltraps
80105f28: e9 ba f8 ff ff jmp 801057e7 <alltraps>
80105f2d <vector70>:
.globl vector70
vector70:
pushl $0
80105f2d: 6a 00 push $0x0
pushl $70
80105f2f: 6a 46 push $0x46
jmp alltraps
80105f31: e9 b1 f8 ff ff jmp 801057e7 <alltraps>
80105f36 <vector71>:
.globl vector71
vector71:
pushl $0
80105f36: 6a 00 push $0x0
pushl $71
80105f38: 6a 47 push $0x47
jmp alltraps
80105f3a: e9 a8 f8 ff ff jmp 801057e7 <alltraps>
80105f3f <vector72>:
.globl vector72
vector72:
pushl $0
80105f3f: 6a 00 push $0x0
pushl $72
80105f41: 6a 48 push $0x48
jmp alltraps
80105f43: e9 9f f8 ff ff jmp 801057e7 <alltraps>
80105f48 <vector73>:
.globl vector73
vector73:
pushl $0
80105f48: 6a 00 push $0x0
pushl $73
80105f4a: 6a 49 push $0x49
jmp alltraps
80105f4c: e9 96 f8 ff ff jmp 801057e7 <alltraps>
80105f51 <vector74>:
.globl vector74
vector74:
pushl $0
80105f51: 6a 00 push $0x0
pushl $74
80105f53: 6a 4a push $0x4a
jmp alltraps
80105f55: e9 8d f8 ff ff jmp 801057e7 <alltraps>
80105f5a <vector75>:
.globl vector75
vector75:
pushl $0
80105f5a: 6a 00 push $0x0
pushl $75
80105f5c: 6a 4b push $0x4b
jmp alltraps
80105f5e: e9 84 f8 ff ff jmp 801057e7 <alltraps>
80105f63 <vector76>:
.globl vector76
vector76:
pushl $0
80105f63: 6a 00 push $0x0
pushl $76
80105f65: 6a 4c push $0x4c
jmp alltraps
80105f67: e9 7b f8 ff ff jmp 801057e7 <alltraps>
80105f6c <vector77>:
.globl vector77
vector77:
pushl $0
80105f6c: 6a 00 push $0x0
pushl $77
80105f6e: 6a 4d push $0x4d
jmp alltraps
80105f70: e9 72 f8 ff ff jmp 801057e7 <alltraps>
80105f75 <vector78>:
.globl vector78
vector78:
pushl $0
80105f75: 6a 00 push $0x0
pushl $78
80105f77: 6a 4e push $0x4e
jmp alltraps
80105f79: e9 69 f8 ff ff jmp 801057e7 <alltraps>
80105f7e <vector79>:
.globl vector79
vector79:
pushl $0
80105f7e: 6a 00 push $0x0
pushl $79
80105f80: 6a 4f push $0x4f
jmp alltraps
80105f82: e9 60 f8 ff ff jmp 801057e7 <alltraps>
80105f87 <vector80>:
.globl vector80
vector80:
pushl $0
80105f87: 6a 00 push $0x0
pushl $80
80105f89: 6a 50 push $0x50
jmp alltraps
80105f8b: e9 57 f8 ff ff jmp 801057e7 <alltraps>
80105f90 <vector81>:
.globl vector81
vector81:
pushl $0
80105f90: 6a 00 push $0x0
pushl $81
80105f92: 6a 51 push $0x51
jmp alltraps
80105f94: e9 4e f8 ff ff jmp 801057e7 <alltraps>
80105f99 <vector82>:
.globl vector82
vector82:
pushl $0
80105f99: 6a 00 push $0x0
pushl $82
80105f9b: 6a 52 push $0x52
jmp alltraps
80105f9d: e9 45 f8 ff ff jmp 801057e7 <alltraps>
80105fa2 <vector83>:
.globl vector83
vector83:
pushl $0
80105fa2: 6a 00 push $0x0
pushl $83
80105fa4: 6a 53 push $0x53
jmp alltraps
80105fa6: e9 3c f8 ff ff jmp 801057e7 <alltraps>
80105fab <vector84>:
.globl vector84
vector84:
pushl $0
80105fab: 6a 00 push $0x0
pushl $84
80105fad: 6a 54 push $0x54
jmp alltraps
80105faf: e9 33 f8 ff ff jmp 801057e7 <alltraps>
80105fb4 <vector85>:
.globl vector85
vector85:
pushl $0
80105fb4: 6a 00 push $0x0
pushl $85
80105fb6: 6a 55 push $0x55
jmp alltraps
80105fb8: e9 2a f8 ff ff jmp 801057e7 <alltraps>
80105fbd <vector86>:
.globl vector86
vector86:
pushl $0
80105fbd: 6a 00 push $0x0
pushl $86
80105fbf: 6a 56 push $0x56
jmp alltraps
80105fc1: e9 21 f8 ff ff jmp 801057e7 <alltraps>
80105fc6 <vector87>:
.globl vector87
vector87:
pushl $0
80105fc6: 6a 00 push $0x0
pushl $87
80105fc8: 6a 57 push $0x57
jmp alltraps
80105fca: e9 18 f8 ff ff jmp 801057e7 <alltraps>
80105fcf <vector88>:
.globl vector88
vector88:
pushl $0
80105fcf: 6a 00 push $0x0
pushl $88
80105fd1: 6a 58 push $0x58
jmp alltraps
80105fd3: e9 0f f8 ff ff jmp 801057e7 <alltraps>
80105fd8 <vector89>:
.globl vector89
vector89:
pushl $0
80105fd8: 6a 00 push $0x0
pushl $89
80105fda: 6a 59 push $0x59
jmp alltraps
80105fdc: e9 06 f8 ff ff jmp 801057e7 <alltraps>
80105fe1 <vector90>:
.globl vector90
vector90:
pushl $0
80105fe1: 6a 00 push $0x0
pushl $90
80105fe3: 6a 5a push $0x5a
jmp alltraps
80105fe5: e9 fd f7 ff ff jmp 801057e7 <alltraps>
80105fea <vector91>:
.globl vector91
vector91:
pushl $0
80105fea: 6a 00 push $0x0
pushl $91
80105fec: 6a 5b push $0x5b
jmp alltraps
80105fee: e9 f4 f7 ff ff jmp 801057e7 <alltraps>
80105ff3 <vector92>:
.globl vector92
vector92:
pushl $0
80105ff3: 6a 00 push $0x0
pushl $92
80105ff5: 6a 5c push $0x5c
jmp alltraps
80105ff7: e9 eb f7 ff ff jmp 801057e7 <alltraps>
80105ffc <vector93>:
.globl vector93
vector93:
pushl $0
80105ffc: 6a 00 push $0x0
pushl $93
80105ffe: 6a 5d push $0x5d
jmp alltraps
80106000: e9 e2 f7 ff ff jmp 801057e7 <alltraps>
80106005 <vector94>:
.globl vector94
vector94:
pushl $0
80106005: 6a 00 push $0x0
pushl $94
80106007: 6a 5e push $0x5e
jmp alltraps
80106009: e9 d9 f7 ff ff jmp 801057e7 <alltraps>
8010600e <vector95>:
.globl vector95
vector95:
pushl $0
8010600e: 6a 00 push $0x0
pushl $95
80106010: 6a 5f push $0x5f
jmp alltraps
80106012: e9 d0 f7 ff ff jmp 801057e7 <alltraps>
80106017 <vector96>:
.globl vector96
vector96:
pushl $0
80106017: 6a 00 push $0x0
pushl $96
80106019: 6a 60 push $0x60
jmp alltraps
8010601b: e9 c7 f7 ff ff jmp 801057e7 <alltraps>
80106020 <vector97>:
.globl vector97
vector97:
pushl $0
80106020: 6a 00 push $0x0
pushl $97
80106022: 6a 61 push $0x61
jmp alltraps
80106024: e9 be f7 ff ff jmp 801057e7 <alltraps>
80106029 <vector98>:
.globl vector98
vector98:
pushl $0
80106029: 6a 00 push $0x0
pushl $98
8010602b: 6a 62 push $0x62
jmp alltraps
8010602d: e9 b5 f7 ff ff jmp 801057e7 <alltraps>
80106032 <vector99>:
.globl vector99
vector99:
pushl $0
80106032: 6a 00 push $0x0
pushl $99
80106034: 6a 63 push $0x63
jmp alltraps
80106036: e9 ac f7 ff ff jmp 801057e7 <alltraps>
8010603b <vector100>:
.globl vector100
vector100:
pushl $0
8010603b: 6a 00 push $0x0
pushl $100
8010603d: 6a 64 push $0x64
jmp alltraps
8010603f: e9 a3 f7 ff ff jmp 801057e7 <alltraps>
80106044 <vector101>:
.globl vector101
vector101:
pushl $0
80106044: 6a 00 push $0x0
pushl $101
80106046: 6a 65 push $0x65
jmp alltraps
80106048: e9 9a f7 ff ff jmp 801057e7 <alltraps>
8010604d <vector102>:
.globl vector102
vector102:
pushl $0
8010604d: 6a 00 push $0x0
pushl $102
8010604f: 6a 66 push $0x66
jmp alltraps
80106051: e9 91 f7 ff ff jmp 801057e7 <alltraps>
80106056 <vector103>:
.globl vector103
vector103:
pushl $0
80106056: 6a 00 push $0x0
pushl $103
80106058: 6a 67 push $0x67
jmp alltraps
8010605a: e9 88 f7 ff ff jmp 801057e7 <alltraps>
8010605f <vector104>:
.globl vector104
vector104:
pushl $0
8010605f: 6a 00 push $0x0
pushl $104
80106061: 6a 68 push $0x68
jmp alltraps
80106063: e9 7f f7 ff ff jmp 801057e7 <alltraps>
80106068 <vector105>:
.globl vector105
vector105:
pushl $0
80106068: 6a 00 push $0x0
pushl $105
8010606a: 6a 69 push $0x69
jmp alltraps
8010606c: e9 76 f7 ff ff jmp 801057e7 <alltraps>
80106071 <vector106>:
.globl vector106
vector106:
pushl $0
80106071: 6a 00 push $0x0
pushl $106
80106073: 6a 6a push $0x6a
jmp alltraps
80106075: e9 6d f7 ff ff jmp 801057e7 <alltraps>
8010607a <vector107>:
.globl vector107
vector107:
pushl $0
8010607a: 6a 00 push $0x0
pushl $107
8010607c: 6a 6b push $0x6b
jmp alltraps
8010607e: e9 64 f7 ff ff jmp 801057e7 <alltraps>
80106083 <vector108>:
.globl vector108
vector108:
pushl $0
80106083: 6a 00 push $0x0
pushl $108
80106085: 6a 6c push $0x6c
jmp alltraps
80106087: e9 5b f7 ff ff jmp 801057e7 <alltraps>
8010608c <vector109>:
.globl vector109
vector109:
pushl $0
8010608c: 6a 00 push $0x0
pushl $109
8010608e: 6a 6d push $0x6d
jmp alltraps
80106090: e9 52 f7 ff ff jmp 801057e7 <alltraps>
80106095 <vector110>:
.globl vector110
vector110:
pushl $0
80106095: 6a 00 push $0x0
pushl $110
80106097: 6a 6e push $0x6e
jmp alltraps
80106099: e9 49 f7 ff ff jmp 801057e7 <alltraps>
8010609e <vector111>:
.globl vector111
vector111:
pushl $0
8010609e: 6a 00 push $0x0
pushl $111
801060a0: 6a 6f push $0x6f
jmp alltraps
801060a2: e9 40 f7 ff ff jmp 801057e7 <alltraps>
801060a7 <vector112>:
.globl vector112
vector112:
pushl $0
801060a7: 6a 00 push $0x0
pushl $112
801060a9: 6a 70 push $0x70
jmp alltraps
801060ab: e9 37 f7 ff ff jmp 801057e7 <alltraps>
801060b0 <vector113>:
.globl vector113
vector113:
pushl $0
801060b0: 6a 00 push $0x0
pushl $113
801060b2: 6a 71 push $0x71
jmp alltraps
801060b4: e9 2e f7 ff ff jmp 801057e7 <alltraps>
801060b9 <vector114>:
.globl vector114
vector114:
pushl $0
801060b9: 6a 00 push $0x0
pushl $114
801060bb: 6a 72 push $0x72
jmp alltraps
801060bd: e9 25 f7 ff ff jmp 801057e7 <alltraps>
801060c2 <vector115>:
.globl vector115
vector115:
pushl $0
801060c2: 6a 00 push $0x0
pushl $115
801060c4: 6a 73 push $0x73
jmp alltraps
801060c6: e9 1c f7 ff ff jmp 801057e7 <alltraps>
801060cb <vector116>:
.globl vector116
vector116:
pushl $0
801060cb: 6a 00 push $0x0
pushl $116
801060cd: 6a 74 push $0x74
jmp alltraps
801060cf: e9 13 f7 ff ff jmp 801057e7 <alltraps>
801060d4 <vector117>:
.globl vector117
vector117:
pushl $0
801060d4: 6a 00 push $0x0
pushl $117
801060d6: 6a 75 push $0x75
jmp alltraps
801060d8: e9 0a f7 ff ff jmp 801057e7 <alltraps>
801060dd <vector118>:
.globl vector118
vector118:
pushl $0
801060dd: 6a 00 push $0x0
pushl $118
801060df: 6a 76 push $0x76
jmp alltraps
801060e1: e9 01 f7 ff ff jmp 801057e7 <alltraps>
801060e6 <vector119>:
.globl vector119
vector119:
pushl $0
801060e6: 6a 00 push $0x0
pushl $119
801060e8: 6a 77 push $0x77
jmp alltraps
801060ea: e9 f8 f6 ff ff jmp 801057e7 <alltraps>
801060ef <vector120>:
.globl vector120
vector120:
pushl $0
801060ef: 6a 00 push $0x0
pushl $120
801060f1: 6a 78 push $0x78
jmp alltraps
801060f3: e9 ef f6 ff ff jmp 801057e7 <alltraps>
801060f8 <vector121>:
.globl vector121
vector121:
pushl $0
801060f8: 6a 00 push $0x0
pushl $121
801060fa: 6a 79 push $0x79
jmp alltraps
801060fc: e9 e6 f6 ff ff jmp 801057e7 <alltraps>
80106101 <vector122>:
.globl vector122
vector122:
pushl $0
80106101: 6a 00 push $0x0
pushl $122
80106103: 6a 7a push $0x7a
jmp alltraps
80106105: e9 dd f6 ff ff jmp 801057e7 <alltraps>
8010610a <vector123>:
.globl vector123
vector123:
pushl $0
8010610a: 6a 00 push $0x0
pushl $123
8010610c: 6a 7b push $0x7b
jmp alltraps
8010610e: e9 d4 f6 ff ff jmp 801057e7 <alltraps>
80106113 <vector124>:
.globl vector124
vector124:
pushl $0
80106113: 6a 00 push $0x0
pushl $124
80106115: 6a 7c push $0x7c
jmp alltraps
80106117: e9 cb f6 ff ff jmp 801057e7 <alltraps>
8010611c <vector125>:
.globl vector125
vector125:
pushl $0
8010611c: 6a 00 push $0x0
pushl $125
8010611e: 6a 7d push $0x7d
jmp alltraps
80106120: e9 c2 f6 ff ff jmp 801057e7 <alltraps>
80106125 <vector126>:
.globl vector126
vector126:
pushl $0
80106125: 6a 00 push $0x0
pushl $126
80106127: 6a 7e push $0x7e
jmp alltraps
80106129: e9 b9 f6 ff ff jmp 801057e7 <alltraps>
8010612e <vector127>:
.globl vector127
vector127:
pushl $0
8010612e: 6a 00 push $0x0
pushl $127
80106130: 6a 7f push $0x7f
jmp alltraps
80106132: e9 b0 f6 ff ff jmp 801057e7 <alltraps>
80106137 <vector128>:
.globl vector128
vector128:
pushl $0
80106137: 6a 00 push $0x0
pushl $128
80106139: 68 80 00 00 00 push $0x80
jmp alltraps
8010613e: e9 a4 f6 ff ff jmp 801057e7 <alltraps>
80106143 <vector129>:
.globl vector129
vector129:
pushl $0
80106143: 6a 00 push $0x0
pushl $129
80106145: 68 81 00 00 00 push $0x81
jmp alltraps
8010614a: e9 98 f6 ff ff jmp 801057e7 <alltraps>
8010614f <vector130>:
.globl vector130
vector130:
pushl $0
8010614f: 6a 00 push $0x0
pushl $130
80106151: 68 82 00 00 00 push $0x82
jmp alltraps
80106156: e9 8c f6 ff ff jmp 801057e7 <alltraps>
8010615b <vector131>:
.globl vector131
vector131:
pushl $0
8010615b: 6a 00 push $0x0
pushl $131
8010615d: 68 83 00 00 00 push $0x83
jmp alltraps
80106162: e9 80 f6 ff ff jmp 801057e7 <alltraps>
80106167 <vector132>:
.globl vector132
vector132:
pushl $0
80106167: 6a 00 push $0x0
pushl $132
80106169: 68 84 00 00 00 push $0x84
jmp alltraps
8010616e: e9 74 f6 ff ff jmp 801057e7 <alltraps>
80106173 <vector133>:
.globl vector133
vector133:
pushl $0
80106173: 6a 00 push $0x0
pushl $133
80106175: 68 85 00 00 00 push $0x85
jmp alltraps
8010617a: e9 68 f6 ff ff jmp 801057e7 <alltraps>
8010617f <vector134>:
.globl vector134
vector134:
pushl $0
8010617f: 6a 00 push $0x0
pushl $134
80106181: 68 86 00 00 00 push $0x86
jmp alltraps
80106186: e9 5c f6 ff ff jmp 801057e7 <alltraps>
8010618b <vector135>:
.globl vector135
vector135:
pushl $0
8010618b: 6a 00 push $0x0
pushl $135
8010618d: 68 87 00 00 00 push $0x87
jmp alltraps
80106192: e9 50 f6 ff ff jmp 801057e7 <alltraps>
80106197 <vector136>:
.globl vector136
vector136:
pushl $0
80106197: 6a 00 push $0x0
pushl $136
80106199: 68 88 00 00 00 push $0x88
jmp alltraps
8010619e: e9 44 f6 ff ff jmp 801057e7 <alltraps>
801061a3 <vector137>:
.globl vector137
vector137:
pushl $0
801061a3: 6a 00 push $0x0
pushl $137
801061a5: 68 89 00 00 00 push $0x89
jmp alltraps
801061aa: e9 38 f6 ff ff jmp 801057e7 <alltraps>
801061af <vector138>:
.globl vector138
vector138:
pushl $0
801061af: 6a 00 push $0x0
pushl $138
801061b1: 68 8a 00 00 00 push $0x8a
jmp alltraps
801061b6: e9 2c f6 ff ff jmp 801057e7 <alltraps>
801061bb <vector139>:
.globl vector139
vector139:
pushl $0
801061bb: 6a 00 push $0x0
pushl $139
801061bd: 68 8b 00 00 00 push $0x8b
jmp alltraps
801061c2: e9 20 f6 ff ff jmp 801057e7 <alltraps>
801061c7 <vector140>:
.globl vector140
vector140:
pushl $0
801061c7: 6a 00 push $0x0
pushl $140
801061c9: 68 8c 00 00 00 push $0x8c
jmp alltraps
801061ce: e9 14 f6 ff ff jmp 801057e7 <alltraps>
801061d3 <vector141>:
.globl vector141
vector141:
pushl $0
801061d3: 6a 00 push $0x0
pushl $141
801061d5: 68 8d 00 00 00 push $0x8d
jmp alltraps
801061da: e9 08 f6 ff ff jmp 801057e7 <alltraps>
801061df <vector142>:
.globl vector142
vector142:
pushl $0
801061df: 6a 00 push $0x0
pushl $142
801061e1: 68 8e 00 00 00 push $0x8e
jmp alltraps
801061e6: e9 fc f5 ff ff jmp 801057e7 <alltraps>
801061eb <vector143>:
.globl vector143
vector143:
pushl $0
801061eb: 6a 00 push $0x0
pushl $143
801061ed: 68 8f 00 00 00 push $0x8f
jmp alltraps
801061f2: e9 f0 f5 ff ff jmp 801057e7 <alltraps>
801061f7 <vector144>:
.globl vector144
vector144:
pushl $0
801061f7: 6a 00 push $0x0
pushl $144
801061f9: 68 90 00 00 00 push $0x90
jmp alltraps
801061fe: e9 e4 f5 ff ff jmp 801057e7 <alltraps>
80106203 <vector145>:
.globl vector145
vector145:
pushl $0
80106203: 6a 00 push $0x0
pushl $145
80106205: 68 91 00 00 00 push $0x91
jmp alltraps
8010620a: e9 d8 f5 ff ff jmp 801057e7 <alltraps>
8010620f <vector146>:
.globl vector146
vector146:
pushl $0
8010620f: 6a 00 push $0x0
pushl $146
80106211: 68 92 00 00 00 push $0x92
jmp alltraps
80106216: e9 cc f5 ff ff jmp 801057e7 <alltraps>
8010621b <vector147>:
.globl vector147
vector147:
pushl $0
8010621b: 6a 00 push $0x0
pushl $147
8010621d: 68 93 00 00 00 push $0x93
jmp alltraps
80106222: e9 c0 f5 ff ff jmp 801057e7 <alltraps>
80106227 <vector148>:
.globl vector148
vector148:
pushl $0
80106227: 6a 00 push $0x0
pushl $148
80106229: 68 94 00 00 00 push $0x94
jmp alltraps
8010622e: e9 b4 f5 ff ff jmp 801057e7 <alltraps>
80106233 <vector149>:
.globl vector149
vector149:
pushl $0
80106233: 6a 00 push $0x0
pushl $149
80106235: 68 95 00 00 00 push $0x95
jmp alltraps
8010623a: e9 a8 f5 ff ff jmp 801057e7 <alltraps>
8010623f <vector150>:
.globl vector150
vector150:
pushl $0
8010623f: 6a 00 push $0x0
pushl $150
80106241: 68 96 00 00 00 push $0x96
jmp alltraps
80106246: e9 9c f5 ff ff jmp 801057e7 <alltraps>
8010624b <vector151>:
.globl vector151
vector151:
pushl $0
8010624b: 6a 00 push $0x0
pushl $151
8010624d: 68 97 00 00 00 push $0x97
jmp alltraps
80106252: e9 90 f5 ff ff jmp 801057e7 <alltraps>
80106257 <vector152>:
.globl vector152
vector152:
pushl $0
80106257: 6a 00 push $0x0
pushl $152
80106259: 68 98 00 00 00 push $0x98
jmp alltraps
8010625e: e9 84 f5 ff ff jmp 801057e7 <alltraps>
80106263 <vector153>:
.globl vector153
vector153:
pushl $0
80106263: 6a 00 push $0x0
pushl $153
80106265: 68 99 00 00 00 push $0x99
jmp alltraps
8010626a: e9 78 f5 ff ff jmp 801057e7 <alltraps>
8010626f <vector154>:
.globl vector154
vector154:
pushl $0
8010626f: 6a 00 push $0x0
pushl $154
80106271: 68 9a 00 00 00 push $0x9a
jmp alltraps
80106276: e9 6c f5 ff ff jmp 801057e7 <alltraps>
8010627b <vector155>:
.globl vector155
vector155:
pushl $0
8010627b: 6a 00 push $0x0
pushl $155
8010627d: 68 9b 00 00 00 push $0x9b
jmp alltraps
80106282: e9 60 f5 ff ff jmp 801057e7 <alltraps>
80106287 <vector156>:
.globl vector156
vector156:
pushl $0
80106287: 6a 00 push $0x0
pushl $156
80106289: 68 9c 00 00 00 push $0x9c
jmp alltraps
8010628e: e9 54 f5 ff ff jmp 801057e7 <alltraps>
80106293 <vector157>:
.globl vector157
vector157:
pushl $0
80106293: 6a 00 push $0x0
pushl $157
80106295: 68 9d 00 00 00 push $0x9d
jmp alltraps
8010629a: e9 48 f5 ff ff jmp 801057e7 <alltraps>
8010629f <vector158>:
.globl vector158
vector158:
pushl $0
8010629f: 6a 00 push $0x0
pushl $158
801062a1: 68 9e 00 00 00 push $0x9e
jmp alltraps
801062a6: e9 3c f5 ff ff jmp 801057e7 <alltraps>
801062ab <vector159>:
.globl vector159
vector159:
pushl $0
801062ab: 6a 00 push $0x0
pushl $159
801062ad: 68 9f 00 00 00 push $0x9f
jmp alltraps
801062b2: e9 30 f5 ff ff jmp 801057e7 <alltraps>
801062b7 <vector160>:
.globl vector160
vector160:
pushl $0
801062b7: 6a 00 push $0x0
pushl $160
801062b9: 68 a0 00 00 00 push $0xa0
jmp alltraps
801062be: e9 24 f5 ff ff jmp 801057e7 <alltraps>
801062c3 <vector161>:
.globl vector161
vector161:
pushl $0
801062c3: 6a 00 push $0x0
pushl $161
801062c5: 68 a1 00 00 00 push $0xa1
jmp alltraps
801062ca: e9 18 f5 ff ff jmp 801057e7 <alltraps>
801062cf <vector162>:
.globl vector162
vector162:
pushl $0
801062cf: 6a 00 push $0x0
pushl $162
801062d1: 68 a2 00 00 00 push $0xa2
jmp alltraps
801062d6: e9 0c f5 ff ff jmp 801057e7 <alltraps>
801062db <vector163>:
.globl vector163
vector163:
pushl $0
801062db: 6a 00 push $0x0
pushl $163
801062dd: 68 a3 00 00 00 push $0xa3
jmp alltraps
801062e2: e9 00 f5 ff ff jmp 801057e7 <alltraps>
801062e7 <vector164>:
.globl vector164
vector164:
pushl $0
801062e7: 6a 00 push $0x0
pushl $164
801062e9: 68 a4 00 00 00 push $0xa4
jmp alltraps
801062ee: e9 f4 f4 ff ff jmp 801057e7 <alltraps>
801062f3 <vector165>:
.globl vector165
vector165:
pushl $0
801062f3: 6a 00 push $0x0
pushl $165
801062f5: 68 a5 00 00 00 push $0xa5
jmp alltraps
801062fa: e9 e8 f4 ff ff jmp 801057e7 <alltraps>
801062ff <vector166>:
.globl vector166
vector166:
pushl $0
801062ff: 6a 00 push $0x0
pushl $166
80106301: 68 a6 00 00 00 push $0xa6
jmp alltraps
80106306: e9 dc f4 ff ff jmp 801057e7 <alltraps>
8010630b <vector167>:
.globl vector167
vector167:
pushl $0
8010630b: 6a 00 push $0x0
pushl $167
8010630d: 68 a7 00 00 00 push $0xa7
jmp alltraps
80106312: e9 d0 f4 ff ff jmp 801057e7 <alltraps>
80106317 <vector168>:
.globl vector168
vector168:
pushl $0
80106317: 6a 00 push $0x0
pushl $168
80106319: 68 a8 00 00 00 push $0xa8
jmp alltraps
8010631e: e9 c4 f4 ff ff jmp 801057e7 <alltraps>
80106323 <vector169>:
.globl vector169
vector169:
pushl $0
80106323: 6a 00 push $0x0
pushl $169
80106325: 68 a9 00 00 00 push $0xa9
jmp alltraps
8010632a: e9 b8 f4 ff ff jmp 801057e7 <alltraps>
8010632f <vector170>:
.globl vector170
vector170:
pushl $0
8010632f: 6a 00 push $0x0
pushl $170
80106331: 68 aa 00 00 00 push $0xaa
jmp alltraps
80106336: e9 ac f4 ff ff jmp 801057e7 <alltraps>
8010633b <vector171>:
.globl vector171
vector171:
pushl $0
8010633b: 6a 00 push $0x0
pushl $171
8010633d: 68 ab 00 00 00 push $0xab
jmp alltraps
80106342: e9 a0 f4 ff ff jmp 801057e7 <alltraps>
80106347 <vector172>:
.globl vector172
vector172:
pushl $0
80106347: 6a 00 push $0x0
pushl $172
80106349: 68 ac 00 00 00 push $0xac
jmp alltraps
8010634e: e9 94 f4 ff ff jmp 801057e7 <alltraps>
80106353 <vector173>:
.globl vector173
vector173:
pushl $0
80106353: 6a 00 push $0x0
pushl $173
80106355: 68 ad 00 00 00 push $0xad
jmp alltraps
8010635a: e9 88 f4 ff ff jmp 801057e7 <alltraps>
8010635f <vector174>:
.globl vector174
vector174:
pushl $0
8010635f: 6a 00 push $0x0
pushl $174
80106361: 68 ae 00 00 00 push $0xae
jmp alltraps
80106366: e9 7c f4 ff ff jmp 801057e7 <alltraps>
8010636b <vector175>:
.globl vector175
vector175:
pushl $0
8010636b: 6a 00 push $0x0
pushl $175
8010636d: 68 af 00 00 00 push $0xaf
jmp alltraps
80106372: e9 70 f4 ff ff jmp 801057e7 <alltraps>
80106377 <vector176>:
.globl vector176
vector176:
pushl $0
80106377: 6a 00 push $0x0
pushl $176
80106379: 68 b0 00 00 00 push $0xb0
jmp alltraps
8010637e: e9 64 f4 ff ff jmp 801057e7 <alltraps>
80106383 <vector177>:
.globl vector177
vector177:
pushl $0
80106383: 6a 00 push $0x0
pushl $177
80106385: 68 b1 00 00 00 push $0xb1
jmp alltraps
8010638a: e9 58 f4 ff ff jmp 801057e7 <alltraps>
8010638f <vector178>:
.globl vector178
vector178:
pushl $0
8010638f: 6a 00 push $0x0
pushl $178
80106391: 68 b2 00 00 00 push $0xb2
jmp alltraps
80106396: e9 4c f4 ff ff jmp 801057e7 <alltraps>
8010639b <vector179>:
.globl vector179
vector179:
pushl $0
8010639b: 6a 00 push $0x0
pushl $179
8010639d: 68 b3 00 00 00 push $0xb3
jmp alltraps
801063a2: e9 40 f4 ff ff jmp 801057e7 <alltraps>
801063a7 <vector180>:
.globl vector180
vector180:
pushl $0
801063a7: 6a 00 push $0x0
pushl $180
801063a9: 68 b4 00 00 00 push $0xb4
jmp alltraps
801063ae: e9 34 f4 ff ff jmp 801057e7 <alltraps>
801063b3 <vector181>:
.globl vector181
vector181:
pushl $0
801063b3: 6a 00 push $0x0
pushl $181
801063b5: 68 b5 00 00 00 push $0xb5
jmp alltraps
801063ba: e9 28 f4 ff ff jmp 801057e7 <alltraps>
801063bf <vector182>:
.globl vector182
vector182:
pushl $0
801063bf: 6a 00 push $0x0
pushl $182
801063c1: 68 b6 00 00 00 push $0xb6
jmp alltraps
801063c6: e9 1c f4 ff ff jmp 801057e7 <alltraps>
801063cb <vector183>:
.globl vector183
vector183:
pushl $0
801063cb: 6a 00 push $0x0
pushl $183
801063cd: 68 b7 00 00 00 push $0xb7
jmp alltraps
801063d2: e9 10 f4 ff ff jmp 801057e7 <alltraps>
801063d7 <vector184>:
.globl vector184
vector184:
pushl $0
801063d7: 6a 00 push $0x0
pushl $184
801063d9: 68 b8 00 00 00 push $0xb8
jmp alltraps
801063de: e9 04 f4 ff ff jmp 801057e7 <alltraps>
801063e3 <vector185>:
.globl vector185
vector185:
pushl $0
801063e3: 6a 00 push $0x0
pushl $185
801063e5: 68 b9 00 00 00 push $0xb9
jmp alltraps
801063ea: e9 f8 f3 ff ff jmp 801057e7 <alltraps>
801063ef <vector186>:
.globl vector186
vector186:
pushl $0
801063ef: 6a 00 push $0x0
pushl $186
801063f1: 68 ba 00 00 00 push $0xba
jmp alltraps
801063f6: e9 ec f3 ff ff jmp 801057e7 <alltraps>
801063fb <vector187>:
.globl vector187
vector187:
pushl $0
801063fb: 6a 00 push $0x0
pushl $187
801063fd: 68 bb 00 00 00 push $0xbb
jmp alltraps
80106402: e9 e0 f3 ff ff jmp 801057e7 <alltraps>
80106407 <vector188>:
.globl vector188
vector188:
pushl $0
80106407: 6a 00 push $0x0
pushl $188
80106409: 68 bc 00 00 00 push $0xbc
jmp alltraps
8010640e: e9 d4 f3 ff ff jmp 801057e7 <alltraps>
80106413 <vector189>:
.globl vector189
vector189:
pushl $0
80106413: 6a 00 push $0x0
pushl $189
80106415: 68 bd 00 00 00 push $0xbd
jmp alltraps
8010641a: e9 c8 f3 ff ff jmp 801057e7 <alltraps>
8010641f <vector190>:
.globl vector190
vector190:
pushl $0
8010641f: 6a 00 push $0x0
pushl $190
80106421: 68 be 00 00 00 push $0xbe
jmp alltraps
80106426: e9 bc f3 ff ff jmp 801057e7 <alltraps>
8010642b <vector191>:
.globl vector191
vector191:
pushl $0
8010642b: 6a 00 push $0x0
pushl $191
8010642d: 68 bf 00 00 00 push $0xbf
jmp alltraps
80106432: e9 b0 f3 ff ff jmp 801057e7 <alltraps>
80106437 <vector192>:
.globl vector192
vector192:
pushl $0
80106437: 6a 00 push $0x0
pushl $192
80106439: 68 c0 00 00 00 push $0xc0
jmp alltraps
8010643e: e9 a4 f3 ff ff jmp 801057e7 <alltraps>
80106443 <vector193>:
.globl vector193
vector193:
pushl $0
80106443: 6a 00 push $0x0
pushl $193
80106445: 68 c1 00 00 00 push $0xc1
jmp alltraps
8010644a: e9 98 f3 ff ff jmp 801057e7 <alltraps>
8010644f <vector194>:
.globl vector194
vector194:
pushl $0
8010644f: 6a 00 push $0x0
pushl $194
80106451: 68 c2 00 00 00 push $0xc2
jmp alltraps
80106456: e9 8c f3 ff ff jmp 801057e7 <alltraps>
8010645b <vector195>:
.globl vector195
vector195:
pushl $0
8010645b: 6a 00 push $0x0
pushl $195
8010645d: 68 c3 00 00 00 push $0xc3
jmp alltraps
80106462: e9 80 f3 ff ff jmp 801057e7 <alltraps>
80106467 <vector196>:
.globl vector196
vector196:
pushl $0
80106467: 6a 00 push $0x0
pushl $196
80106469: 68 c4 00 00 00 push $0xc4
jmp alltraps
8010646e: e9 74 f3 ff ff jmp 801057e7 <alltraps>
80106473 <vector197>:
.globl vector197
vector197:
pushl $0
80106473: 6a 00 push $0x0
pushl $197
80106475: 68 c5 00 00 00 push $0xc5
jmp alltraps
8010647a: e9 68 f3 ff ff jmp 801057e7 <alltraps>
8010647f <vector198>:
.globl vector198
vector198:
pushl $0
8010647f: 6a 00 push $0x0
pushl $198
80106481: 68 c6 00 00 00 push $0xc6
jmp alltraps
80106486: e9 5c f3 ff ff jmp 801057e7 <alltraps>
8010648b <vector199>:
.globl vector199
vector199:
pushl $0
8010648b: 6a 00 push $0x0
pushl $199
8010648d: 68 c7 00 00 00 push $0xc7
jmp alltraps
80106492: e9 50 f3 ff ff jmp 801057e7 <alltraps>
80106497 <vector200>:
.globl vector200
vector200:
pushl $0
80106497: 6a 00 push $0x0
pushl $200
80106499: 68 c8 00 00 00 push $0xc8
jmp alltraps
8010649e: e9 44 f3 ff ff jmp 801057e7 <alltraps>
801064a3 <vector201>:
.globl vector201
vector201:
pushl $0
801064a3: 6a 00 push $0x0
pushl $201
801064a5: 68 c9 00 00 00 push $0xc9
jmp alltraps
801064aa: e9 38 f3 ff ff jmp 801057e7 <alltraps>
801064af <vector202>:
.globl vector202
vector202:
pushl $0
801064af: 6a 00 push $0x0
pushl $202
801064b1: 68 ca 00 00 00 push $0xca
jmp alltraps
801064b6: e9 2c f3 ff ff jmp 801057e7 <alltraps>
801064bb <vector203>:
.globl vector203
vector203:
pushl $0
801064bb: 6a 00 push $0x0
pushl $203
801064bd: 68 cb 00 00 00 push $0xcb
jmp alltraps
801064c2: e9 20 f3 ff ff jmp 801057e7 <alltraps>
801064c7 <vector204>:
.globl vector204
vector204:
pushl $0
801064c7: 6a 00 push $0x0
pushl $204
801064c9: 68 cc 00 00 00 push $0xcc
jmp alltraps
801064ce: e9 14 f3 ff ff jmp 801057e7 <alltraps>
801064d3 <vector205>:
.globl vector205
vector205:
pushl $0
801064d3: 6a 00 push $0x0
pushl $205
801064d5: 68 cd 00 00 00 push $0xcd
jmp alltraps
801064da: e9 08 f3 ff ff jmp 801057e7 <alltraps>
801064df <vector206>:
.globl vector206
vector206:
pushl $0
801064df: 6a 00 push $0x0
pushl $206
801064e1: 68 ce 00 00 00 push $0xce
jmp alltraps
801064e6: e9 fc f2 ff ff jmp 801057e7 <alltraps>
801064eb <vector207>:
.globl vector207
vector207:
pushl $0
801064eb: 6a 00 push $0x0
pushl $207
801064ed: 68 cf 00 00 00 push $0xcf
jmp alltraps
801064f2: e9 f0 f2 ff ff jmp 801057e7 <alltraps>
801064f7 <vector208>:
.globl vector208
vector208:
pushl $0
801064f7: 6a 00 push $0x0
pushl $208
801064f9: 68 d0 00 00 00 push $0xd0
jmp alltraps
801064fe: e9 e4 f2 ff ff jmp 801057e7 <alltraps>
80106503 <vector209>:
.globl vector209
vector209:
pushl $0
80106503: 6a 00 push $0x0
pushl $209
80106505: 68 d1 00 00 00 push $0xd1
jmp alltraps
8010650a: e9 d8 f2 ff ff jmp 801057e7 <alltraps>
8010650f <vector210>:
.globl vector210
vector210:
pushl $0
8010650f: 6a 00 push $0x0
pushl $210
80106511: 68 d2 00 00 00 push $0xd2
jmp alltraps
80106516: e9 cc f2 ff ff jmp 801057e7 <alltraps>
8010651b <vector211>:
.globl vector211
vector211:
pushl $0
8010651b: 6a 00 push $0x0
pushl $211
8010651d: 68 d3 00 00 00 push $0xd3
jmp alltraps
80106522: e9 c0 f2 ff ff jmp 801057e7 <alltraps>
80106527 <vector212>:
.globl vector212
vector212:
pushl $0
80106527: 6a 00 push $0x0
pushl $212
80106529: 68 d4 00 00 00 push $0xd4
jmp alltraps
8010652e: e9 b4 f2 ff ff jmp 801057e7 <alltraps>
80106533 <vector213>:
.globl vector213
vector213:
pushl $0
80106533: 6a 00 push $0x0
pushl $213
80106535: 68 d5 00 00 00 push $0xd5
jmp alltraps
8010653a: e9 a8 f2 ff ff jmp 801057e7 <alltraps>
8010653f <vector214>:
.globl vector214
vector214:
pushl $0
8010653f: 6a 00 push $0x0
pushl $214
80106541: 68 d6 00 00 00 push $0xd6
jmp alltraps
80106546: e9 9c f2 ff ff jmp 801057e7 <alltraps>
8010654b <vector215>:
.globl vector215
vector215:
pushl $0
8010654b: 6a 00 push $0x0
pushl $215
8010654d: 68 d7 00 00 00 push $0xd7
jmp alltraps
80106552: e9 90 f2 ff ff jmp 801057e7 <alltraps>
80106557 <vector216>:
.globl vector216
vector216:
pushl $0
80106557: 6a 00 push $0x0
pushl $216
80106559: 68 d8 00 00 00 push $0xd8
jmp alltraps
8010655e: e9 84 f2 ff ff jmp 801057e7 <alltraps>
80106563 <vector217>:
.globl vector217
vector217:
pushl $0
80106563: 6a 00 push $0x0
pushl $217
80106565: 68 d9 00 00 00 push $0xd9
jmp alltraps
8010656a: e9 78 f2 ff ff jmp 801057e7 <alltraps>
8010656f <vector218>:
.globl vector218
vector218:
pushl $0
8010656f: 6a 00 push $0x0
pushl $218
80106571: 68 da 00 00 00 push $0xda
jmp alltraps
80106576: e9 6c f2 ff ff jmp 801057e7 <alltraps>
8010657b <vector219>:
.globl vector219
vector219:
pushl $0
8010657b: 6a 00 push $0x0
pushl $219
8010657d: 68 db 00 00 00 push $0xdb
jmp alltraps
80106582: e9 60 f2 ff ff jmp 801057e7 <alltraps>
80106587 <vector220>:
.globl vector220
vector220:
pushl $0
80106587: 6a 00 push $0x0
pushl $220
80106589: 68 dc 00 00 00 push $0xdc
jmp alltraps
8010658e: e9 54 f2 ff ff jmp 801057e7 <alltraps>
80106593 <vector221>:
.globl vector221
vector221:
pushl $0
80106593: 6a 00 push $0x0
pushl $221
80106595: 68 dd 00 00 00 push $0xdd
jmp alltraps
8010659a: e9 48 f2 ff ff jmp 801057e7 <alltraps>
8010659f <vector222>:
.globl vector222
vector222:
pushl $0
8010659f: 6a 00 push $0x0
pushl $222
801065a1: 68 de 00 00 00 push $0xde
jmp alltraps
801065a6: e9 3c f2 ff ff jmp 801057e7 <alltraps>
801065ab <vector223>:
.globl vector223
vector223:
pushl $0
801065ab: 6a 00 push $0x0
pushl $223
801065ad: 68 df 00 00 00 push $0xdf
jmp alltraps
801065b2: e9 30 f2 ff ff jmp 801057e7 <alltraps>
801065b7 <vector224>:
.globl vector224
vector224:
pushl $0
801065b7: 6a 00 push $0x0
pushl $224
801065b9: 68 e0 00 00 00 push $0xe0
jmp alltraps
801065be: e9 24 f2 ff ff jmp 801057e7 <alltraps>
801065c3 <vector225>:
.globl vector225
vector225:
pushl $0
801065c3: 6a 00 push $0x0
pushl $225
801065c5: 68 e1 00 00 00 push $0xe1
jmp alltraps
801065ca: e9 18 f2 ff ff jmp 801057e7 <alltraps>
801065cf <vector226>:
.globl vector226
vector226:
pushl $0
801065cf: 6a 00 push $0x0
pushl $226
801065d1: 68 e2 00 00 00 push $0xe2
jmp alltraps
801065d6: e9 0c f2 ff ff jmp 801057e7 <alltraps>
801065db <vector227>:
.globl vector227
vector227:
pushl $0
801065db: 6a 00 push $0x0
pushl $227
801065dd: 68 e3 00 00 00 push $0xe3
jmp alltraps
801065e2: e9 00 f2 ff ff jmp 801057e7 <alltraps>
801065e7 <vector228>:
.globl vector228
vector228:
pushl $0
801065e7: 6a 00 push $0x0
pushl $228
801065e9: 68 e4 00 00 00 push $0xe4
jmp alltraps
801065ee: e9 f4 f1 ff ff jmp 801057e7 <alltraps>
801065f3 <vector229>:
.globl vector229
vector229:
pushl $0
801065f3: 6a 00 push $0x0
pushl $229
801065f5: 68 e5 00 00 00 push $0xe5
jmp alltraps
801065fa: e9 e8 f1 ff ff jmp 801057e7 <alltraps>
801065ff <vector230>:
.globl vector230
vector230:
pushl $0
801065ff: 6a 00 push $0x0
pushl $230
80106601: 68 e6 00 00 00 push $0xe6
jmp alltraps
80106606: e9 dc f1 ff ff jmp 801057e7 <alltraps>
8010660b <vector231>:
.globl vector231
vector231:
pushl $0
8010660b: 6a 00 push $0x0
pushl $231
8010660d: 68 e7 00 00 00 push $0xe7
jmp alltraps
80106612: e9 d0 f1 ff ff jmp 801057e7 <alltraps>
80106617 <vector232>:
.globl vector232
vector232:
pushl $0
80106617: 6a 00 push $0x0
pushl $232
80106619: 68 e8 00 00 00 push $0xe8
jmp alltraps
8010661e: e9 c4 f1 ff ff jmp 801057e7 <alltraps>
80106623 <vector233>:
.globl vector233
vector233:
pushl $0
80106623: 6a 00 push $0x0
pushl $233
80106625: 68 e9 00 00 00 push $0xe9
jmp alltraps
8010662a: e9 b8 f1 ff ff jmp 801057e7 <alltraps>
8010662f <vector234>:
.globl vector234
vector234:
pushl $0
8010662f: 6a 00 push $0x0
pushl $234
80106631: 68 ea 00 00 00 push $0xea
jmp alltraps
80106636: e9 ac f1 ff ff jmp 801057e7 <alltraps>
8010663b <vector235>:
.globl vector235
vector235:
pushl $0
8010663b: 6a 00 push $0x0
pushl $235
8010663d: 68 eb 00 00 00 push $0xeb
jmp alltraps
80106642: e9 a0 f1 ff ff jmp 801057e7 <alltraps>
80106647 <vector236>:
.globl vector236
vector236:
pushl $0
80106647: 6a 00 push $0x0
pushl $236
80106649: 68 ec 00 00 00 push $0xec
jmp alltraps
8010664e: e9 94 f1 ff ff jmp 801057e7 <alltraps>
80106653 <vector237>:
.globl vector237
vector237:
pushl $0
80106653: 6a 00 push $0x0
pushl $237
80106655: 68 ed 00 00 00 push $0xed
jmp alltraps
8010665a: e9 88 f1 ff ff jmp 801057e7 <alltraps>
8010665f <vector238>:
.globl vector238
vector238:
pushl $0
8010665f: 6a 00 push $0x0
pushl $238
80106661: 68 ee 00 00 00 push $0xee
jmp alltraps
80106666: e9 7c f1 ff ff jmp 801057e7 <alltraps>
8010666b <vector239>:
.globl vector239
vector239:
pushl $0
8010666b: 6a 00 push $0x0
pushl $239
8010666d: 68 ef 00 00 00 push $0xef
jmp alltraps
80106672: e9 70 f1 ff ff jmp 801057e7 <alltraps>
80106677 <vector240>:
.globl vector240
vector240:
pushl $0
80106677: 6a 00 push $0x0
pushl $240
80106679: 68 f0 00 00 00 push $0xf0
jmp alltraps
8010667e: e9 64 f1 ff ff jmp 801057e7 <alltraps>
80106683 <vector241>:
.globl vector241
vector241:
pushl $0
80106683: 6a 00 push $0x0
pushl $241
80106685: 68 f1 00 00 00 push $0xf1
jmp alltraps
8010668a: e9 58 f1 ff ff jmp 801057e7 <alltraps>
8010668f <vector242>:
.globl vector242
vector242:
pushl $0
8010668f: 6a 00 push $0x0
pushl $242
80106691: 68 f2 00 00 00 push $0xf2
jmp alltraps
80106696: e9 4c f1 ff ff jmp 801057e7 <alltraps>
8010669b <vector243>:
.globl vector243
vector243:
pushl $0
8010669b: 6a 00 push $0x0
pushl $243
8010669d: 68 f3 00 00 00 push $0xf3
jmp alltraps
801066a2: e9 40 f1 ff ff jmp 801057e7 <alltraps>
801066a7 <vector244>:
.globl vector244
vector244:
pushl $0
801066a7: 6a 00 push $0x0
pushl $244
801066a9: 68 f4 00 00 00 push $0xf4
jmp alltraps
801066ae: e9 34 f1 ff ff jmp 801057e7 <alltraps>
801066b3 <vector245>:
.globl vector245
vector245:
pushl $0
801066b3: 6a 00 push $0x0
pushl $245
801066b5: 68 f5 00 00 00 push $0xf5
jmp alltraps
801066ba: e9 28 f1 ff ff jmp 801057e7 <alltraps>
801066bf <vector246>:
.globl vector246
vector246:
pushl $0
801066bf: 6a 00 push $0x0
pushl $246
801066c1: 68 f6 00 00 00 push $0xf6
jmp alltraps
801066c6: e9 1c f1 ff ff jmp 801057e7 <alltraps>
801066cb <vector247>:
.globl vector247
vector247:
pushl $0
801066cb: 6a 00 push $0x0
pushl $247
801066cd: 68 f7 00 00 00 push $0xf7
jmp alltraps
801066d2: e9 10 f1 ff ff jmp 801057e7 <alltraps>
801066d7 <vector248>:
.globl vector248
vector248:
pushl $0
801066d7: 6a 00 push $0x0
pushl $248
801066d9: 68 f8 00 00 00 push $0xf8
jmp alltraps
801066de: e9 04 f1 ff ff jmp 801057e7 <alltraps>
801066e3 <vector249>:
.globl vector249
vector249:
pushl $0
801066e3: 6a 00 push $0x0
pushl $249
801066e5: 68 f9 00 00 00 push $0xf9
jmp alltraps
801066ea: e9 f8 f0 ff ff jmp 801057e7 <alltraps>
801066ef <vector250>:
.globl vector250
vector250:
pushl $0
801066ef: 6a 00 push $0x0
pushl $250
801066f1: 68 fa 00 00 00 push $0xfa
jmp alltraps
801066f6: e9 ec f0 ff ff jmp 801057e7 <alltraps>
801066fb <vector251>:
.globl vector251
vector251:
pushl $0
801066fb: 6a 00 push $0x0
pushl $251
801066fd: 68 fb 00 00 00 push $0xfb
jmp alltraps
80106702: e9 e0 f0 ff ff jmp 801057e7 <alltraps>
80106707 <vector252>:
.globl vector252
vector252:
pushl $0
80106707: 6a 00 push $0x0
pushl $252
80106709: 68 fc 00 00 00 push $0xfc
jmp alltraps
8010670e: e9 d4 f0 ff ff jmp 801057e7 <alltraps>
80106713 <vector253>:
.globl vector253
vector253:
pushl $0
80106713: 6a 00 push $0x0
pushl $253
80106715: 68 fd 00 00 00 push $0xfd
jmp alltraps
8010671a: e9 c8 f0 ff ff jmp 801057e7 <alltraps>
8010671f <vector254>:
.globl vector254
vector254:
pushl $0
8010671f: 6a 00 push $0x0
pushl $254
80106721: 68 fe 00 00 00 push $0xfe
jmp alltraps
80106726: e9 bc f0 ff ff jmp 801057e7 <alltraps>
8010672b <vector255>:
.globl vector255
vector255:
pushl $0
8010672b: 6a 00 push $0x0
pushl $255
8010672d: 68 ff 00 00 00 push $0xff
jmp alltraps
80106732: e9 b0 f0 ff ff jmp 801057e7 <alltraps>
80106737: 66 90 xchg %ax,%ax
80106739: 66 90 xchg %ax,%ax
8010673b: 66 90 xchg %ax,%ax
8010673d: 66 90 xchg %ax,%ax
8010673f: 90 nop
80106740 <walkpgdir>:
// Return the address of the PTE in page table pgdir
// that corresponds to virtual address va. If alloc!=0,
// create any required page table pages.
static pte_t *
walkpgdir(pde_t *pgdir, const void *va, int alloc)
{
80106740: 55 push %ebp
80106741: 89 e5 mov %esp,%ebp
80106743: 57 push %edi
80106744: 56 push %esi
80106745: 53 push %ebx
pde_t *pde;
pte_t *pgtab;
pde = &pgdir[PDX(va)];
80106746: 89 d3 mov %edx,%ebx
{
80106748: 89 d7 mov %edx,%edi
pde = &pgdir[PDX(va)];
8010674a: c1 eb 16 shr $0x16,%ebx
8010674d: 8d 34 98 lea (%eax,%ebx,4),%esi
{
80106750: 83 ec 0c sub $0xc,%esp
if(*pde & PTE_P){
80106753: 8b 06 mov (%esi),%eax
80106755: a8 01 test $0x1,%al
80106757: 74 27 je 80106780 <walkpgdir+0x40>
pgtab = (pte_t*)P2V(PTE_ADDR(*pde));
80106759: 25 00 f0 ff ff and $0xfffff000,%eax
8010675e: 8d 98 00 00 00 80 lea -0x80000000(%eax),%ebx
// The permissions here are overly generous, but they can
// be further restricted by the permissions in the page table
// entries, if necessary.
*pde = V2P(pgtab) | PTE_P | PTE_W | PTE_U;
}
return &pgtab[PTX(va)];
80106764: c1 ef 0a shr $0xa,%edi
}
80106767: 8d 65 f4 lea -0xc(%ebp),%esp
return &pgtab[PTX(va)];
8010676a: 89 fa mov %edi,%edx
8010676c: 81 e2 fc 0f 00 00 and $0xffc,%edx
80106772: 8d 04 13 lea (%ebx,%edx,1),%eax
}
80106775: 5b pop %ebx
80106776: 5e pop %esi
80106777: 5f pop %edi
80106778: 5d pop %ebp
80106779: c3 ret
8010677a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
if(!alloc || (pgtab = (pte_t*)kalloc()) == 0)
80106780: 85 c9 test %ecx,%ecx
80106782: 74 2c je 801067b0 <walkpgdir+0x70>
80106784: e8 47 bd ff ff call 801024d0 <kalloc>
80106789: 85 c0 test %eax,%eax
8010678b: 89 c3 mov %eax,%ebx
8010678d: 74 21 je 801067b0 <walkpgdir+0x70>
memset(pgtab, 0, PGSIZE);
8010678f: 83 ec 04 sub $0x4,%esp
80106792: 68 00 10 00 00 push $0x1000
80106797: 6a 00 push $0x0
80106799: 50 push %eax
8010679a: e8 f1 dd ff ff call 80104590 <memset>
*pde = V2P(pgtab) | PTE_P | PTE_W | PTE_U;
8010679f: 8d 83 00 00 00 80 lea -0x80000000(%ebx),%eax
801067a5: 83 c4 10 add $0x10,%esp
801067a8: 83 c8 07 or $0x7,%eax
801067ab: 89 06 mov %eax,(%esi)
801067ad: eb b5 jmp 80106764 <walkpgdir+0x24>
801067af: 90 nop
}
801067b0: 8d 65 f4 lea -0xc(%ebp),%esp
return 0;
801067b3: 31 c0 xor %eax,%eax
}
801067b5: 5b pop %ebx
801067b6: 5e pop %esi
801067b7: 5f pop %edi
801067b8: 5d pop %ebp
801067b9: c3 ret
801067ba: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
801067c0 <mappages>:
// Create PTEs for virtual addresses starting at va that refer to
// physical addresses starting at pa. va and size might not
// be page-aligned.
static int
mappages(pde_t *pgdir, void *va, uint size, uint pa, int perm)
{
801067c0: 55 push %ebp
801067c1: 89 e5 mov %esp,%ebp
801067c3: 57 push %edi
801067c4: 56 push %esi
801067c5: 53 push %ebx
char *a, *last;
pte_t *pte;
a = (char*)PGROUNDDOWN((uint)va);
801067c6: 89 d3 mov %edx,%ebx
801067c8: 81 e3 00 f0 ff ff and $0xfffff000,%ebx
{
801067ce: 83 ec 1c sub $0x1c,%esp
801067d1: 89 45 e4 mov %eax,-0x1c(%ebp)
last = (char*)PGROUNDDOWN(((uint)va) + size - 1);
801067d4: 8d 44 0a ff lea -0x1(%edx,%ecx,1),%eax
801067d8: 8b 7d 08 mov 0x8(%ebp),%edi
801067db: 25 00 f0 ff ff and $0xfffff000,%eax
801067e0: 89 45 e0 mov %eax,-0x20(%ebp)
for(;;){
if((pte = walkpgdir(pgdir, a, 1)) == 0)
return -1;
if(*pte & PTE_P)
panic("remap");
*pte = pa | perm | PTE_P;
801067e3: 8b 45 0c mov 0xc(%ebp),%eax
801067e6: 29 df sub %ebx,%edi
801067e8: 83 c8 01 or $0x1,%eax
801067eb: 89 45 dc mov %eax,-0x24(%ebp)
801067ee: eb 15 jmp 80106805 <mappages+0x45>
if(*pte & PTE_P)
801067f0: f6 00 01 testb $0x1,(%eax)
801067f3: 75 45 jne 8010683a <mappages+0x7a>
*pte = pa | perm | PTE_P;
801067f5: 0b 75 dc or -0x24(%ebp),%esi
if(a == last)
801067f8: 3b 5d e0 cmp -0x20(%ebp),%ebx
*pte = pa | perm | PTE_P;
801067fb: 89 30 mov %esi,(%eax)
if(a == last)
801067fd: 74 31 je 80106830 <mappages+0x70>
break;
a += PGSIZE;
801067ff: 81 c3 00 10 00 00 add $0x1000,%ebx
if((pte = walkpgdir(pgdir, a, 1)) == 0)
80106805: 8b 45 e4 mov -0x1c(%ebp),%eax
80106808: b9 01 00 00 00 mov $0x1,%ecx
8010680d: 89 da mov %ebx,%edx
8010680f: 8d 34 3b lea (%ebx,%edi,1),%esi
80106812: e8 29 ff ff ff call 80106740 <walkpgdir>
80106817: 85 c0 test %eax,%eax
80106819: 75 d5 jne 801067f0 <mappages+0x30>
pa += PGSIZE;
}
return 0;
}
8010681b: 8d 65 f4 lea -0xc(%ebp),%esp
return -1;
8010681e: b8 ff ff ff ff mov $0xffffffff,%eax
}
80106823: 5b pop %ebx
80106824: 5e pop %esi
80106825: 5f pop %edi
80106826: 5d pop %ebp
80106827: c3 ret
80106828: 90 nop
80106829: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
80106830: 8d 65 f4 lea -0xc(%ebp),%esp
return 0;
80106833: 31 c0 xor %eax,%eax
}
80106835: 5b pop %ebx
80106836: 5e pop %esi
80106837: 5f pop %edi
80106838: 5d pop %ebp
80106839: c3 ret
panic("remap");
8010683a: 83 ec 0c sub $0xc,%esp
8010683d: 68 f4 79 10 80 push $0x801079f4
80106842: e8 49 9b ff ff call 80100390 <panic>
80106847: 89 f6 mov %esi,%esi
80106849: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80106850 <deallocuvm.part.0>:
// Deallocate user pages to bring the process size from oldsz to
// newsz. oldsz and newsz need not be page-aligned, nor does newsz
// need to be less than oldsz. oldsz can be larger than the actual
// process size. Returns the new process size.
int
deallocuvm(pde_t *pgdir, uint oldsz, uint newsz)
80106850: 55 push %ebp
80106851: 89 e5 mov %esp,%ebp
80106853: 57 push %edi
80106854: 56 push %esi
80106855: 53 push %ebx
uint a, pa;
if(newsz >= oldsz)
return oldsz;
a = PGROUNDUP(newsz);
80106856: 8d 99 ff 0f 00 00 lea 0xfff(%ecx),%ebx
deallocuvm(pde_t *pgdir, uint oldsz, uint newsz)
8010685c: 89 c7 mov %eax,%edi
a = PGROUNDUP(newsz);
8010685e: 81 e3 00 f0 ff ff and $0xfffff000,%ebx
deallocuvm(pde_t *pgdir, uint oldsz, uint newsz)
80106864: 83 ec 1c sub $0x1c,%esp
80106867: 89 4d e0 mov %ecx,-0x20(%ebp)
for(; a < oldsz; a += PGSIZE){
8010686a: 39 d3 cmp %edx,%ebx
8010686c: 73 66 jae 801068d4 <deallocuvm.part.0+0x84>
8010686e: 89 d6 mov %edx,%esi
80106870: eb 3d jmp 801068af <deallocuvm.part.0+0x5f>
80106872: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
pte = walkpgdir(pgdir, (char*)a, 0);
if(!pte)
a = PGADDR(PDX(a) + 1, 0, 0) - PGSIZE;
else if((*pte & PTE_P) != 0){
80106878: 8b 10 mov (%eax),%edx
8010687a: f6 c2 01 test $0x1,%dl
8010687d: 74 26 je 801068a5 <deallocuvm.part.0+0x55>
pa = PTE_ADDR(*pte);
if(pa == 0)
8010687f: 81 e2 00 f0 ff ff and $0xfffff000,%edx
80106885: 74 58 je 801068df <deallocuvm.part.0+0x8f>
panic("kfree");
char *v = P2V(pa);
kfree(v);
80106887: 83 ec 0c sub $0xc,%esp
char *v = P2V(pa);
8010688a: 81 c2 00 00 00 80 add $0x80000000,%edx
80106890: 89 45 e4 mov %eax,-0x1c(%ebp)
kfree(v);
80106893: 52 push %edx
80106894: e8 87 ba ff ff call 80102320 <kfree>
*pte = 0;
80106899: 8b 45 e4 mov -0x1c(%ebp),%eax
8010689c: 83 c4 10 add $0x10,%esp
8010689f: c7 00 00 00 00 00 movl $0x0,(%eax)
for(; a < oldsz; a += PGSIZE){
801068a5: 81 c3 00 10 00 00 add $0x1000,%ebx
801068ab: 39 f3 cmp %esi,%ebx
801068ad: 73 25 jae 801068d4 <deallocuvm.part.0+0x84>
pte = walkpgdir(pgdir, (char*)a, 0);
801068af: 31 c9 xor %ecx,%ecx
801068b1: 89 da mov %ebx,%edx
801068b3: 89 f8 mov %edi,%eax
801068b5: e8 86 fe ff ff call 80106740 <walkpgdir>
if(!pte)
801068ba: 85 c0 test %eax,%eax
801068bc: 75 ba jne 80106878 <deallocuvm.part.0+0x28>
a = PGADDR(PDX(a) + 1, 0, 0) - PGSIZE;
801068be: 81 e3 00 00 c0 ff and $0xffc00000,%ebx
801068c4: 81 c3 00 f0 3f 00 add $0x3ff000,%ebx
for(; a < oldsz; a += PGSIZE){
801068ca: 81 c3 00 10 00 00 add $0x1000,%ebx
801068d0: 39 f3 cmp %esi,%ebx
801068d2: 72 db jb 801068af <deallocuvm.part.0+0x5f>
}
}
return newsz;
}
801068d4: 8b 45 e0 mov -0x20(%ebp),%eax
801068d7: 8d 65 f4 lea -0xc(%ebp),%esp
801068da: 5b pop %ebx
801068db: 5e pop %esi
801068dc: 5f pop %edi
801068dd: 5d pop %ebp
801068de: c3 ret
panic("kfree");
801068df: 83 ec 0c sub $0xc,%esp
801068e2: 68 c6 72 10 80 push $0x801072c6
801068e7: e8 a4 9a ff ff call 80100390 <panic>
801068ec: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
801068f0 <seginit>:
{
801068f0: 55 push %ebp
801068f1: 89 e5 mov %esp,%ebp
801068f3: 83 ec 18 sub $0x18,%esp
c = &cpus[cpuid()];
801068f6: e8 c5 ce ff ff call 801037c0 <cpuid>
801068fb: 69 c0 b0 00 00 00 imul $0xb0,%eax,%eax
pd[0] = size-1;
80106901: ba 2f 00 00 00 mov $0x2f,%edx
80106906: 66 89 55 f2 mov %dx,-0xe(%ebp)
c->gdt[SEG_KCODE] = SEG(STA_X|STA_R, 0, 0xffffffff, 0);
8010690a: c7 80 18 28 11 80 ff movl $0xffff,-0x7feed7e8(%eax)
80106911: ff 00 00
80106914: c7 80 1c 28 11 80 00 movl $0xcf9a00,-0x7feed7e4(%eax)
8010691b: 9a cf 00
c->gdt[SEG_KDATA] = SEG(STA_W, 0, 0xffffffff, 0);
8010691e: c7 80 20 28 11 80 ff movl $0xffff,-0x7feed7e0(%eax)
80106925: ff 00 00
80106928: c7 80 24 28 11 80 00 movl $0xcf9200,-0x7feed7dc(%eax)
8010692f: 92 cf 00
c->gdt[SEG_UCODE] = SEG(STA_X|STA_R, 0, 0xffffffff, DPL_USER);
80106932: c7 80 28 28 11 80 ff movl $0xffff,-0x7feed7d8(%eax)
80106939: ff 00 00
8010693c: c7 80 2c 28 11 80 00 movl $0xcffa00,-0x7feed7d4(%eax)
80106943: fa cf 00
c->gdt[SEG_UDATA] = SEG(STA_W, 0, 0xffffffff, DPL_USER);
80106946: c7 80 30 28 11 80 ff movl $0xffff,-0x7feed7d0(%eax)
8010694d: ff 00 00
80106950: c7 80 34 28 11 80 00 movl $0xcff200,-0x7feed7cc(%eax)
80106957: f2 cf 00
lgdt(c->gdt, sizeof(c->gdt));
8010695a: 05 10 28 11 80 add $0x80112810,%eax
pd[1] = (uint)p;
8010695f: 66 89 45 f4 mov %ax,-0xc(%ebp)
pd[2] = (uint)p >> 16;
80106963: c1 e8 10 shr $0x10,%eax
80106966: 66 89 45 f6 mov %ax,-0xa(%ebp)
asm volatile("lgdt (%0)" : : "r" (pd));
8010696a: 8d 45 f2 lea -0xe(%ebp),%eax
8010696d: 0f 01 10 lgdtl (%eax)
}
80106970: c9 leave
80106971: c3 ret
80106972: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
80106979: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80106980 <switchkvm>:
lcr3(V2P(kpgdir)); // switch to the kernel page table
80106980: a1 a4 51 11 80 mov 0x801151a4,%eax
{
80106985: 55 push %ebp
80106986: 89 e5 mov %esp,%ebp
lcr3(V2P(kpgdir)); // switch to the kernel page table
80106988: 05 00 00 00 80 add $0x80000000,%eax
}
static inline void
lcr3(uint val)
{
asm volatile("movl %0,%%cr3" : : "r" (val));
8010698d: 0f 22 d8 mov %eax,%cr3
}
80106990: 5d pop %ebp
80106991: c3 ret
80106992: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
80106999: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
801069a0 <switchuvm>:
{
801069a0: 55 push %ebp
801069a1: 89 e5 mov %esp,%ebp
801069a3: 57 push %edi
801069a4: 56 push %esi
801069a5: 53 push %ebx
801069a6: 83 ec 1c sub $0x1c,%esp
801069a9: 8b 5d 08 mov 0x8(%ebp),%ebx
if(p == 0)
801069ac: 85 db test %ebx,%ebx
801069ae: 0f 84 cb 00 00 00 je 80106a7f <switchuvm+0xdf>
if(p->kstack == 0)
801069b4: 8b 43 0c mov 0xc(%ebx),%eax
801069b7: 85 c0 test %eax,%eax
801069b9: 0f 84 da 00 00 00 je 80106a99 <switchuvm+0xf9>
if(p->pgdir == 0)
801069bf: 8b 43 08 mov 0x8(%ebx),%eax
801069c2: 85 c0 test %eax,%eax
801069c4: 0f 84 c2 00 00 00 je 80106a8c <switchuvm+0xec>
pushcli();
801069ca: e8 01 da ff ff call 801043d0 <pushcli>
mycpu()->gdt[SEG_TSS] = SEG16(STS_T32A, &mycpu()->ts,
801069cf: e8 7c cd ff ff call 80103750 <mycpu>
801069d4: 89 c6 mov %eax,%esi
801069d6: e8 75 cd ff ff call 80103750 <mycpu>
801069db: 89 c7 mov %eax,%edi
801069dd: e8 6e cd ff ff call 80103750 <mycpu>
801069e2: 89 45 e4 mov %eax,-0x1c(%ebp)
801069e5: 83 c7 08 add $0x8,%edi
801069e8: e8 63 cd ff ff call 80103750 <mycpu>
801069ed: 8b 4d e4 mov -0x1c(%ebp),%ecx
801069f0: 83 c0 08 add $0x8,%eax
801069f3: ba 67 00 00 00 mov $0x67,%edx
801069f8: c1 e8 18 shr $0x18,%eax
801069fb: 66 89 96 98 00 00 00 mov %dx,0x98(%esi)
80106a02: 66 89 be 9a 00 00 00 mov %di,0x9a(%esi)
80106a09: 88 86 9f 00 00 00 mov %al,0x9f(%esi)
mycpu()->ts.iomb = (ushort) 0xFFFF;
80106a0f: bf ff ff ff ff mov $0xffffffff,%edi
mycpu()->gdt[SEG_TSS] = SEG16(STS_T32A, &mycpu()->ts,
80106a14: 83 c1 08 add $0x8,%ecx
80106a17: c1 e9 10 shr $0x10,%ecx
80106a1a: 88 8e 9c 00 00 00 mov %cl,0x9c(%esi)
80106a20: b9 99 40 00 00 mov $0x4099,%ecx
80106a25: 66 89 8e 9d 00 00 00 mov %cx,0x9d(%esi)
mycpu()->ts.ss0 = SEG_KDATA << 3;
80106a2c: be 10 00 00 00 mov $0x10,%esi
mycpu()->gdt[SEG_TSS].s = 0;
80106a31: e8 1a cd ff ff call 80103750 <mycpu>
80106a36: 80 a0 9d 00 00 00 ef andb $0xef,0x9d(%eax)
mycpu()->ts.ss0 = SEG_KDATA << 3;
80106a3d: e8 0e cd ff ff call 80103750 <mycpu>
80106a42: 66 89 70 10 mov %si,0x10(%eax)
mycpu()->ts.esp0 = (uint)p->kstack + KSTACKSIZE;
80106a46: 8b 73 0c mov 0xc(%ebx),%esi
80106a49: e8 02 cd ff ff call 80103750 <mycpu>
80106a4e: 81 c6 00 10 00 00 add $0x1000,%esi
80106a54: 89 70 0c mov %esi,0xc(%eax)
mycpu()->ts.iomb = (ushort) 0xFFFF;
80106a57: e8 f4 cc ff ff call 80103750 <mycpu>
80106a5c: 66 89 78 6e mov %di,0x6e(%eax)
asm volatile("ltr %0" : : "r" (sel));
80106a60: b8 28 00 00 00 mov $0x28,%eax
80106a65: 0f 00 d8 ltr %ax
lcr3(V2P(p->pgdir)); // switch to process's address space
80106a68: 8b 43 08 mov 0x8(%ebx),%eax
80106a6b: 05 00 00 00 80 add $0x80000000,%eax
asm volatile("movl %0,%%cr3" : : "r" (val));
80106a70: 0f 22 d8 mov %eax,%cr3
}
80106a73: 8d 65 f4 lea -0xc(%ebp),%esp
80106a76: 5b pop %ebx
80106a77: 5e pop %esi
80106a78: 5f pop %edi
80106a79: 5d pop %ebp
popcli();
80106a7a: e9 51 da ff ff jmp 801044d0 <popcli>
panic("switchuvm: no process");
80106a7f: 83 ec 0c sub $0xc,%esp
80106a82: 68 fa 79 10 80 push $0x801079fa
80106a87: e8 04 99 ff ff call 80100390 <panic>
panic("switchuvm: no pgdir");
80106a8c: 83 ec 0c sub $0xc,%esp
80106a8f: 68 25 7a 10 80 push $0x80107a25
80106a94: e8 f7 98 ff ff call 80100390 <panic>
panic("switchuvm: no kstack");
80106a99: 83 ec 0c sub $0xc,%esp
80106a9c: 68 10 7a 10 80 push $0x80107a10
80106aa1: e8 ea 98 ff ff call 80100390 <panic>
80106aa6: 8d 76 00 lea 0x0(%esi),%esi
80106aa9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80106ab0 <inituvm>:
{
80106ab0: 55 push %ebp
80106ab1: 89 e5 mov %esp,%ebp
80106ab3: 57 push %edi
80106ab4: 56 push %esi
80106ab5: 53 push %ebx
80106ab6: 83 ec 1c sub $0x1c,%esp
80106ab9: 8b 75 10 mov 0x10(%ebp),%esi
80106abc: 8b 45 08 mov 0x8(%ebp),%eax
80106abf: 8b 7d 0c mov 0xc(%ebp),%edi
if(sz >= PGSIZE)
80106ac2: 81 fe ff 0f 00 00 cmp $0xfff,%esi
{
80106ac8: 89 45 e4 mov %eax,-0x1c(%ebp)
if(sz >= PGSIZE)
80106acb: 77 49 ja 80106b16 <inituvm+0x66>
mem = kalloc();
80106acd: e8 fe b9 ff ff call 801024d0 <kalloc>
memset(mem, 0, PGSIZE);
80106ad2: 83 ec 04 sub $0x4,%esp
mem = kalloc();
80106ad5: 89 c3 mov %eax,%ebx
memset(mem, 0, PGSIZE);
80106ad7: 68 00 10 00 00 push $0x1000
80106adc: 6a 00 push $0x0
80106ade: 50 push %eax
80106adf: e8 ac da ff ff call 80104590 <memset>
mappages(pgdir, 0, PGSIZE, V2P(mem), PTE_W|PTE_U);
80106ae4: 58 pop %eax
80106ae5: 8d 83 00 00 00 80 lea -0x80000000(%ebx),%eax
80106aeb: b9 00 10 00 00 mov $0x1000,%ecx
80106af0: 5a pop %edx
80106af1: 6a 06 push $0x6
80106af3: 50 push %eax
80106af4: 31 d2 xor %edx,%edx
80106af6: 8b 45 e4 mov -0x1c(%ebp),%eax
80106af9: e8 c2 fc ff ff call 801067c0 <mappages>
memmove(mem, init, sz);
80106afe: 89 75 10 mov %esi,0x10(%ebp)
80106b01: 89 7d 0c mov %edi,0xc(%ebp)
80106b04: 83 c4 10 add $0x10,%esp
80106b07: 89 5d 08 mov %ebx,0x8(%ebp)
}
80106b0a: 8d 65 f4 lea -0xc(%ebp),%esp
80106b0d: 5b pop %ebx
80106b0e: 5e pop %esi
80106b0f: 5f pop %edi
80106b10: 5d pop %ebp
memmove(mem, init, sz);
80106b11: e9 2a db ff ff jmp 80104640 <memmove>
panic("inituvm: more than a page");
80106b16: 83 ec 0c sub $0xc,%esp
80106b19: 68 39 7a 10 80 push $0x80107a39
80106b1e: e8 6d 98 ff ff call 80100390 <panic>
80106b23: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
80106b29: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80106b30 <loaduvm>:
{
80106b30: 55 push %ebp
80106b31: 89 e5 mov %esp,%ebp
80106b33: 57 push %edi
80106b34: 56 push %esi
80106b35: 53 push %ebx
80106b36: 83 ec 0c sub $0xc,%esp
if((uint) addr % PGSIZE != 0)
80106b39: f7 45 0c ff 0f 00 00 testl $0xfff,0xc(%ebp)
80106b40: 0f 85 91 00 00 00 jne 80106bd7 <loaduvm+0xa7>
for(i = 0; i < sz; i += PGSIZE){
80106b46: 8b 75 18 mov 0x18(%ebp),%esi
80106b49: 31 db xor %ebx,%ebx
80106b4b: 85 f6 test %esi,%esi
80106b4d: 75 1a jne 80106b69 <loaduvm+0x39>
80106b4f: eb 6f jmp 80106bc0 <loaduvm+0x90>
80106b51: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
80106b58: 81 c3 00 10 00 00 add $0x1000,%ebx
80106b5e: 81 ee 00 10 00 00 sub $0x1000,%esi
80106b64: 39 5d 18 cmp %ebx,0x18(%ebp)
80106b67: 76 57 jbe 80106bc0 <loaduvm+0x90>
if((pte = walkpgdir(pgdir, addr+i, 0)) == 0)
80106b69: 8b 55 0c mov 0xc(%ebp),%edx
80106b6c: 8b 45 08 mov 0x8(%ebp),%eax
80106b6f: 31 c9 xor %ecx,%ecx
80106b71: 01 da add %ebx,%edx
80106b73: e8 c8 fb ff ff call 80106740 <walkpgdir>
80106b78: 85 c0 test %eax,%eax
80106b7a: 74 4e je 80106bca <loaduvm+0x9a>
pa = PTE_ADDR(*pte);
80106b7c: 8b 00 mov (%eax),%eax
if(readi(ip, P2V(pa), offset+i, n) != n)
80106b7e: 8b 4d 14 mov 0x14(%ebp),%ecx
if(sz - i < PGSIZE)
80106b81: bf 00 10 00 00 mov $0x1000,%edi
pa = PTE_ADDR(*pte);
80106b86: 25 00 f0 ff ff and $0xfffff000,%eax
if(sz - i < PGSIZE)
80106b8b: 81 fe ff 0f 00 00 cmp $0xfff,%esi
80106b91: 0f 46 fe cmovbe %esi,%edi
if(readi(ip, P2V(pa), offset+i, n) != n)
80106b94: 01 d9 add %ebx,%ecx
80106b96: 05 00 00 00 80 add $0x80000000,%eax
80106b9b: 57 push %edi
80106b9c: 51 push %ecx
80106b9d: 50 push %eax
80106b9e: ff 75 10 pushl 0x10(%ebp)
80106ba1: e8 ca ad ff ff call 80101970 <readi>
80106ba6: 83 c4 10 add $0x10,%esp
80106ba9: 39 f8 cmp %edi,%eax
80106bab: 74 ab je 80106b58 <loaduvm+0x28>
}
80106bad: 8d 65 f4 lea -0xc(%ebp),%esp
return -1;
80106bb0: b8 ff ff ff ff mov $0xffffffff,%eax
}
80106bb5: 5b pop %ebx
80106bb6: 5e pop %esi
80106bb7: 5f pop %edi
80106bb8: 5d pop %ebp
80106bb9: c3 ret
80106bba: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
80106bc0: 8d 65 f4 lea -0xc(%ebp),%esp
return 0;
80106bc3: 31 c0 xor %eax,%eax
}
80106bc5: 5b pop %ebx
80106bc6: 5e pop %esi
80106bc7: 5f pop %edi
80106bc8: 5d pop %ebp
80106bc9: c3 ret
panic("loaduvm: address should exist");
80106bca: 83 ec 0c sub $0xc,%esp
80106bcd: 68 53 7a 10 80 push $0x80107a53
80106bd2: e8 b9 97 ff ff call 80100390 <panic>
panic("loaduvm: addr must be page aligned");
80106bd7: 83 ec 0c sub $0xc,%esp
80106bda: 68 f4 7a 10 80 push $0x80107af4
80106bdf: e8 ac 97 ff ff call 80100390 <panic>
80106be4: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
80106bea: 8d bf 00 00 00 00 lea 0x0(%edi),%edi
80106bf0 <allocuvm>:
{
80106bf0: 55 push %ebp
80106bf1: 89 e5 mov %esp,%ebp
80106bf3: 57 push %edi
80106bf4: 56 push %esi
80106bf5: 53 push %ebx
80106bf6: 83 ec 1c sub $0x1c,%esp
if(newsz >= KERNBASE)
80106bf9: 8b 7d 10 mov 0x10(%ebp),%edi
80106bfc: 85 ff test %edi,%edi
80106bfe: 0f 88 8e 00 00 00 js 80106c92 <allocuvm+0xa2>
if(newsz < oldsz)
80106c04: 3b 7d 0c cmp 0xc(%ebp),%edi
80106c07: 0f 82 93 00 00 00 jb 80106ca0 <allocuvm+0xb0>
a = PGROUNDUP(oldsz);
80106c0d: 8b 45 0c mov 0xc(%ebp),%eax
80106c10: 8d 98 ff 0f 00 00 lea 0xfff(%eax),%ebx
80106c16: 81 e3 00 f0 ff ff and $0xfffff000,%ebx
for(; a < newsz; a += PGSIZE){
80106c1c: 39 5d 10 cmp %ebx,0x10(%ebp)
80106c1f: 0f 86 7e 00 00 00 jbe 80106ca3 <allocuvm+0xb3>
80106c25: 89 7d e4 mov %edi,-0x1c(%ebp)
80106c28: 8b 7d 08 mov 0x8(%ebp),%edi
80106c2b: eb 42 jmp 80106c6f <allocuvm+0x7f>
80106c2d: 8d 76 00 lea 0x0(%esi),%esi
memset(mem, 0, PGSIZE);
80106c30: 83 ec 04 sub $0x4,%esp
80106c33: 68 00 10 00 00 push $0x1000
80106c38: 6a 00 push $0x0
80106c3a: 50 push %eax
80106c3b: e8 50 d9 ff ff call 80104590 <memset>
if(mappages(pgdir, (char*)a, PGSIZE, V2P(mem), PTE_W|PTE_U) < 0){
80106c40: 58 pop %eax
80106c41: 8d 86 00 00 00 80 lea -0x80000000(%esi),%eax
80106c47: b9 00 10 00 00 mov $0x1000,%ecx
80106c4c: 5a pop %edx
80106c4d: 6a 06 push $0x6
80106c4f: 50 push %eax
80106c50: 89 da mov %ebx,%edx
80106c52: 89 f8 mov %edi,%eax
80106c54: e8 67 fb ff ff call 801067c0 <mappages>
80106c59: 83 c4 10 add $0x10,%esp
80106c5c: 85 c0 test %eax,%eax
80106c5e: 78 50 js 80106cb0 <allocuvm+0xc0>
for(; a < newsz; a += PGSIZE){
80106c60: 81 c3 00 10 00 00 add $0x1000,%ebx
80106c66: 39 5d 10 cmp %ebx,0x10(%ebp)
80106c69: 0f 86 81 00 00 00 jbe 80106cf0 <allocuvm+0x100>
mem = kalloc();
80106c6f: e8 5c b8 ff ff call 801024d0 <kalloc>
if(mem == 0){
80106c74: 85 c0 test %eax,%eax
mem = kalloc();
80106c76: 89 c6 mov %eax,%esi
if(mem == 0){
80106c78: 75 b6 jne 80106c30 <allocuvm+0x40>
cprintf("allocuvm out of memory\n");
80106c7a: 83 ec 0c sub $0xc,%esp
80106c7d: 68 71 7a 10 80 push $0x80107a71
80106c82: e8 d9 99 ff ff call 80100660 <cprintf>
if(newsz >= oldsz)
80106c87: 83 c4 10 add $0x10,%esp
80106c8a: 8b 45 0c mov 0xc(%ebp),%eax
80106c8d: 39 45 10 cmp %eax,0x10(%ebp)
80106c90: 77 6e ja 80106d00 <allocuvm+0x110>
}
80106c92: 8d 65 f4 lea -0xc(%ebp),%esp
return 0;
80106c95: 31 ff xor %edi,%edi
}
80106c97: 89 f8 mov %edi,%eax
80106c99: 5b pop %ebx
80106c9a: 5e pop %esi
80106c9b: 5f pop %edi
80106c9c: 5d pop %ebp
80106c9d: c3 ret
80106c9e: 66 90 xchg %ax,%ax
return oldsz;
80106ca0: 8b 7d 0c mov 0xc(%ebp),%edi
}
80106ca3: 8d 65 f4 lea -0xc(%ebp),%esp
80106ca6: 89 f8 mov %edi,%eax
80106ca8: 5b pop %ebx
80106ca9: 5e pop %esi
80106caa: 5f pop %edi
80106cab: 5d pop %ebp
80106cac: c3 ret
80106cad: 8d 76 00 lea 0x0(%esi),%esi
cprintf("allocuvm out of memory (2)\n");
80106cb0: 83 ec 0c sub $0xc,%esp
80106cb3: 68 89 7a 10 80 push $0x80107a89
80106cb8: e8 a3 99 ff ff call 80100660 <cprintf>
if(newsz >= oldsz)
80106cbd: 83 c4 10 add $0x10,%esp
80106cc0: 8b 45 0c mov 0xc(%ebp),%eax
80106cc3: 39 45 10 cmp %eax,0x10(%ebp)
80106cc6: 76 0d jbe 80106cd5 <allocuvm+0xe5>
80106cc8: 89 c1 mov %eax,%ecx
80106cca: 8b 55 10 mov 0x10(%ebp),%edx
80106ccd: 8b 45 08 mov 0x8(%ebp),%eax
80106cd0: e8 7b fb ff ff call 80106850 <deallocuvm.part.0>
kfree(mem);
80106cd5: 83 ec 0c sub $0xc,%esp
return 0;
80106cd8: 31 ff xor %edi,%edi
kfree(mem);
80106cda: 56 push %esi
80106cdb: e8 40 b6 ff ff call 80102320 <kfree>
return 0;
80106ce0: 83 c4 10 add $0x10,%esp
}
80106ce3: 8d 65 f4 lea -0xc(%ebp),%esp
80106ce6: 89 f8 mov %edi,%eax
80106ce8: 5b pop %ebx
80106ce9: 5e pop %esi
80106cea: 5f pop %edi
80106ceb: 5d pop %ebp
80106cec: c3 ret
80106ced: 8d 76 00 lea 0x0(%esi),%esi
80106cf0: 8b 7d e4 mov -0x1c(%ebp),%edi
80106cf3: 8d 65 f4 lea -0xc(%ebp),%esp
80106cf6: 5b pop %ebx
80106cf7: 89 f8 mov %edi,%eax
80106cf9: 5e pop %esi
80106cfa: 5f pop %edi
80106cfb: 5d pop %ebp
80106cfc: c3 ret
80106cfd: 8d 76 00 lea 0x0(%esi),%esi
80106d00: 89 c1 mov %eax,%ecx
80106d02: 8b 55 10 mov 0x10(%ebp),%edx
80106d05: 8b 45 08 mov 0x8(%ebp),%eax
return 0;
80106d08: 31 ff xor %edi,%edi
80106d0a: e8 41 fb ff ff call 80106850 <deallocuvm.part.0>
80106d0f: eb 92 jmp 80106ca3 <allocuvm+0xb3>
80106d11: eb 0d jmp 80106d20 <deallocuvm>
80106d13: 90 nop
80106d14: 90 nop
80106d15: 90 nop
80106d16: 90 nop
80106d17: 90 nop
80106d18: 90 nop
80106d19: 90 nop
80106d1a: 90 nop
80106d1b: 90 nop
80106d1c: 90 nop
80106d1d: 90 nop
80106d1e: 90 nop
80106d1f: 90 nop
80106d20 <deallocuvm>:
{
80106d20: 55 push %ebp
80106d21: 89 e5 mov %esp,%ebp
80106d23: 8b 55 0c mov 0xc(%ebp),%edx
80106d26: 8b 4d 10 mov 0x10(%ebp),%ecx
80106d29: 8b 45 08 mov 0x8(%ebp),%eax
if(newsz >= oldsz)
80106d2c: 39 d1 cmp %edx,%ecx
80106d2e: 73 10 jae 80106d40 <deallocuvm+0x20>
}
80106d30: 5d pop %ebp
80106d31: e9 1a fb ff ff jmp 80106850 <deallocuvm.part.0>
80106d36: 8d 76 00 lea 0x0(%esi),%esi
80106d39: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80106d40: 89 d0 mov %edx,%eax
80106d42: 5d pop %ebp
80106d43: c3 ret
80106d44: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
80106d4a: 8d bf 00 00 00 00 lea 0x0(%edi),%edi
80106d50 <freevm>:
// Free a page table and all the physical memory pages
// in the user part.
void
freevm(pde_t *pgdir)
{
80106d50: 55 push %ebp
80106d51: 89 e5 mov %esp,%ebp
80106d53: 57 push %edi
80106d54: 56 push %esi
80106d55: 53 push %ebx
80106d56: 83 ec 0c sub $0xc,%esp
80106d59: 8b 75 08 mov 0x8(%ebp),%esi
uint i;
if(pgdir == 0)
80106d5c: 85 f6 test %esi,%esi
80106d5e: 74 59 je 80106db9 <freevm+0x69>
80106d60: 31 c9 xor %ecx,%ecx
80106d62: ba 00 00 00 80 mov $0x80000000,%edx
80106d67: 89 f0 mov %esi,%eax
80106d69: e8 e2 fa ff ff call 80106850 <deallocuvm.part.0>
80106d6e: 89 f3 mov %esi,%ebx
80106d70: 8d be 00 10 00 00 lea 0x1000(%esi),%edi
80106d76: eb 0f jmp 80106d87 <freevm+0x37>
80106d78: 90 nop
80106d79: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
80106d80: 83 c3 04 add $0x4,%ebx
panic("freevm: no pgdir");
deallocuvm(pgdir, KERNBASE, 0);
for(i = 0; i < NPDENTRIES; i++){
80106d83: 39 fb cmp %edi,%ebx
80106d85: 74 23 je 80106daa <freevm+0x5a>
if(pgdir[i] & PTE_P){
80106d87: 8b 03 mov (%ebx),%eax
80106d89: a8 01 test $0x1,%al
80106d8b: 74 f3 je 80106d80 <freevm+0x30>
char * v = P2V(PTE_ADDR(pgdir[i]));
80106d8d: 25 00 f0 ff ff and $0xfffff000,%eax
kfree(v);
80106d92: 83 ec 0c sub $0xc,%esp
80106d95: 83 c3 04 add $0x4,%ebx
char * v = P2V(PTE_ADDR(pgdir[i]));
80106d98: 05 00 00 00 80 add $0x80000000,%eax
kfree(v);
80106d9d: 50 push %eax
80106d9e: e8 7d b5 ff ff call 80102320 <kfree>
80106da3: 83 c4 10 add $0x10,%esp
for(i = 0; i < NPDENTRIES; i++){
80106da6: 39 fb cmp %edi,%ebx
80106da8: 75 dd jne 80106d87 <freevm+0x37>
}
}
kfree((char*)pgdir);
80106daa: 89 75 08 mov %esi,0x8(%ebp)
}
80106dad: 8d 65 f4 lea -0xc(%ebp),%esp
80106db0: 5b pop %ebx
80106db1: 5e pop %esi
80106db2: 5f pop %edi
80106db3: 5d pop %ebp
kfree((char*)pgdir);
80106db4: e9 67 b5 ff ff jmp 80102320 <kfree>
panic("freevm: no pgdir");
80106db9: 83 ec 0c sub $0xc,%esp
80106dbc: 68 a5 7a 10 80 push $0x80107aa5
80106dc1: e8 ca 95 ff ff call 80100390 <panic>
80106dc6: 8d 76 00 lea 0x0(%esi),%esi
80106dc9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80106dd0 <setupkvm>:
{
80106dd0: 55 push %ebp
80106dd1: 89 e5 mov %esp,%ebp
80106dd3: 56 push %esi
80106dd4: 53 push %ebx
if((pgdir = (pde_t*)kalloc()) == 0)
80106dd5: e8 f6 b6 ff ff call 801024d0 <kalloc>
80106dda: 85 c0 test %eax,%eax
80106ddc: 89 c6 mov %eax,%esi
80106dde: 74 42 je 80106e22 <setupkvm+0x52>
memset(pgdir, 0, PGSIZE);
80106de0: 83 ec 04 sub $0x4,%esp
for(k = kmap; k < &kmap[NELEM(kmap)]; k++)
80106de3: bb 20 a4 10 80 mov $0x8010a420,%ebx
memset(pgdir, 0, PGSIZE);
80106de8: 68 00 10 00 00 push $0x1000
80106ded: 6a 00 push $0x0
80106def: 50 push %eax
80106df0: e8 9b d7 ff ff call 80104590 <memset>
80106df5: 83 c4 10 add $0x10,%esp
(uint)k->phys_start, k->perm) < 0) {
80106df8: 8b 43 04 mov 0x4(%ebx),%eax
if(mappages(pgdir, k->virt, k->phys_end - k->phys_start,
80106dfb: 8b 4b 08 mov 0x8(%ebx),%ecx
80106dfe: 83 ec 08 sub $0x8,%esp
80106e01: 8b 13 mov (%ebx),%edx
80106e03: ff 73 0c pushl 0xc(%ebx)
80106e06: 50 push %eax
80106e07: 29 c1 sub %eax,%ecx
80106e09: 89 f0 mov %esi,%eax
80106e0b: e8 b0 f9 ff ff call 801067c0 <mappages>
80106e10: 83 c4 10 add $0x10,%esp
80106e13: 85 c0 test %eax,%eax
80106e15: 78 19 js 80106e30 <setupkvm+0x60>
for(k = kmap; k < &kmap[NELEM(kmap)]; k++)
80106e17: 83 c3 10 add $0x10,%ebx
80106e1a: 81 fb 60 a4 10 80 cmp $0x8010a460,%ebx
80106e20: 75 d6 jne 80106df8 <setupkvm+0x28>
}
80106e22: 8d 65 f8 lea -0x8(%ebp),%esp
80106e25: 89 f0 mov %esi,%eax
80106e27: 5b pop %ebx
80106e28: 5e pop %esi
80106e29: 5d pop %ebp
80106e2a: c3 ret
80106e2b: 90 nop
80106e2c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
freevm(pgdir);
80106e30: 83 ec 0c sub $0xc,%esp
80106e33: 56 push %esi
return 0;
80106e34: 31 f6 xor %esi,%esi
freevm(pgdir);
80106e36: e8 15 ff ff ff call 80106d50 <freevm>
return 0;
80106e3b: 83 c4 10 add $0x10,%esp
}
80106e3e: 8d 65 f8 lea -0x8(%ebp),%esp
80106e41: 89 f0 mov %esi,%eax
80106e43: 5b pop %ebx
80106e44: 5e pop %esi
80106e45: 5d pop %ebp
80106e46: c3 ret
80106e47: 89 f6 mov %esi,%esi
80106e49: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80106e50 <kvmalloc>:
{
80106e50: 55 push %ebp
80106e51: 89 e5 mov %esp,%ebp
80106e53: 83 ec 08 sub $0x8,%esp
kpgdir = setupkvm();
80106e56: e8 75 ff ff ff call 80106dd0 <setupkvm>
80106e5b: a3 a4 51 11 80 mov %eax,0x801151a4
lcr3(V2P(kpgdir)); // switch to the kernel page table
80106e60: 05 00 00 00 80 add $0x80000000,%eax
80106e65: 0f 22 d8 mov %eax,%cr3
}
80106e68: c9 leave
80106e69: c3 ret
80106e6a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
80106e70 <clearpteu>:
// Clear PTE_U on a page. Used to create an inaccessible
// page beneath the user stack.
void
clearpteu(pde_t *pgdir, char *uva)
{
80106e70: 55 push %ebp
pte_t *pte;
pte = walkpgdir(pgdir, uva, 0);
80106e71: 31 c9 xor %ecx,%ecx
{
80106e73: 89 e5 mov %esp,%ebp
80106e75: 83 ec 08 sub $0x8,%esp
pte = walkpgdir(pgdir, uva, 0);
80106e78: 8b 55 0c mov 0xc(%ebp),%edx
80106e7b: 8b 45 08 mov 0x8(%ebp),%eax
80106e7e: e8 bd f8 ff ff call 80106740 <walkpgdir>
if(pte == 0)
80106e83: 85 c0 test %eax,%eax
80106e85: 74 05 je 80106e8c <clearpteu+0x1c>
panic("clearpteu");
*pte &= ~PTE_U;
80106e87: 83 20 fb andl $0xfffffffb,(%eax)
}
80106e8a: c9 leave
80106e8b: c3 ret
panic("clearpteu");
80106e8c: 83 ec 0c sub $0xc,%esp
80106e8f: 68 b6 7a 10 80 push $0x80107ab6
80106e94: e8 f7 94 ff ff call 80100390 <panic>
80106e99: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
80106ea0 <copyuvm>:
// Given a parent process's page table, create a copy
// of it for a child.
pde_t*
copyuvm(pde_t *pgdir, uint sz)
{
80106ea0: 55 push %ebp
80106ea1: 89 e5 mov %esp,%ebp
80106ea3: 57 push %edi
80106ea4: 56 push %esi
80106ea5: 53 push %ebx
80106ea6: 83 ec 1c sub $0x1c,%esp
pde_t *d;
pte_t *pte;
uint pa, i, flags;
char *mem;
if((d = setupkvm()) == 0)
80106ea9: e8 22 ff ff ff call 80106dd0 <setupkvm>
80106eae: 85 c0 test %eax,%eax
80106eb0: 89 45 e0 mov %eax,-0x20(%ebp)
80106eb3: 0f 84 a0 00 00 00 je 80106f59 <copyuvm+0xb9>
return 0;
for(i = 0; i < sz; i += PGSIZE){
80106eb9: 8b 4d 0c mov 0xc(%ebp),%ecx
80106ebc: 85 c9 test %ecx,%ecx
80106ebe: 0f 84 95 00 00 00 je 80106f59 <copyuvm+0xb9>
80106ec4: 31 f6 xor %esi,%esi
80106ec6: eb 4e jmp 80106f16 <copyuvm+0x76>
80106ec8: 90 nop
80106ec9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
panic("copyuvm: page not present");
pa = PTE_ADDR(*pte);
flags = PTE_FLAGS(*pte);
if((mem = kalloc()) == 0)
goto bad;
memmove(mem, (char*)P2V(pa), PGSIZE);
80106ed0: 83 ec 04 sub $0x4,%esp
80106ed3: 81 c7 00 00 00 80 add $0x80000000,%edi
80106ed9: 89 45 e4 mov %eax,-0x1c(%ebp)
80106edc: 68 00 10 00 00 push $0x1000
80106ee1: 57 push %edi
80106ee2: 50 push %eax
80106ee3: e8 58 d7 ff ff call 80104640 <memmove>
if(mappages(d, (void*)i, PGSIZE, V2P(mem), flags) < 0)
80106ee8: 58 pop %eax
80106ee9: 5a pop %edx
80106eea: 8b 55 e4 mov -0x1c(%ebp),%edx
80106eed: 8b 45 e0 mov -0x20(%ebp),%eax
80106ef0: b9 00 10 00 00 mov $0x1000,%ecx
80106ef5: 53 push %ebx
80106ef6: 81 c2 00 00 00 80 add $0x80000000,%edx
80106efc: 52 push %edx
80106efd: 89 f2 mov %esi,%edx
80106eff: e8 bc f8 ff ff call 801067c0 <mappages>
80106f04: 83 c4 10 add $0x10,%esp
80106f07: 85 c0 test %eax,%eax
80106f09: 78 39 js 80106f44 <copyuvm+0xa4>
for(i = 0; i < sz; i += PGSIZE){
80106f0b: 81 c6 00 10 00 00 add $0x1000,%esi
80106f11: 39 75 0c cmp %esi,0xc(%ebp)
80106f14: 76 43 jbe 80106f59 <copyuvm+0xb9>
if((pte = walkpgdir(pgdir, (void *) i, 0)) == 0)
80106f16: 8b 45 08 mov 0x8(%ebp),%eax
80106f19: 31 c9 xor %ecx,%ecx
80106f1b: 89 f2 mov %esi,%edx
80106f1d: e8 1e f8 ff ff call 80106740 <walkpgdir>
80106f22: 85 c0 test %eax,%eax
80106f24: 74 3e je 80106f64 <copyuvm+0xc4>
if(!(*pte & PTE_P))
80106f26: 8b 18 mov (%eax),%ebx
80106f28: f6 c3 01 test $0x1,%bl
80106f2b: 74 44 je 80106f71 <copyuvm+0xd1>
pa = PTE_ADDR(*pte);
80106f2d: 89 df mov %ebx,%edi
flags = PTE_FLAGS(*pte);
80106f2f: 81 e3 ff 0f 00 00 and $0xfff,%ebx
pa = PTE_ADDR(*pte);
80106f35: 81 e7 00 f0 ff ff and $0xfffff000,%edi
if((mem = kalloc()) == 0)
80106f3b: e8 90 b5 ff ff call 801024d0 <kalloc>
80106f40: 85 c0 test %eax,%eax
80106f42: 75 8c jne 80106ed0 <copyuvm+0x30>
goto bad;
}
return d;
bad:
freevm(d);
80106f44: 83 ec 0c sub $0xc,%esp
80106f47: ff 75 e0 pushl -0x20(%ebp)
80106f4a: e8 01 fe ff ff call 80106d50 <freevm>
return 0;
80106f4f: 83 c4 10 add $0x10,%esp
80106f52: c7 45 e0 00 00 00 00 movl $0x0,-0x20(%ebp)
}
80106f59: 8b 45 e0 mov -0x20(%ebp),%eax
80106f5c: 8d 65 f4 lea -0xc(%ebp),%esp
80106f5f: 5b pop %ebx
80106f60: 5e pop %esi
80106f61: 5f pop %edi
80106f62: 5d pop %ebp
80106f63: c3 ret
panic("copyuvm: pte should exist");
80106f64: 83 ec 0c sub $0xc,%esp
80106f67: 68 c0 7a 10 80 push $0x80107ac0
80106f6c: e8 1f 94 ff ff call 80100390 <panic>
panic("copyuvm: page not present");
80106f71: 83 ec 0c sub $0xc,%esp
80106f74: 68 da 7a 10 80 push $0x80107ada
80106f79: e8 12 94 ff ff call 80100390 <panic>
80106f7e: 66 90 xchg %ax,%ax
80106f80 <uva2ka>:
//PAGEBREAK!
// Map user virtual address to kernel address.
char*
uva2ka(pde_t *pgdir, char *uva)
{
80106f80: 55 push %ebp
pte_t *pte;
pte = walkpgdir(pgdir, uva, 0);
80106f81: 31 c9 xor %ecx,%ecx
{
80106f83: 89 e5 mov %esp,%ebp
80106f85: 83 ec 08 sub $0x8,%esp
pte = walkpgdir(pgdir, uva, 0);
80106f88: 8b 55 0c mov 0xc(%ebp),%edx
80106f8b: 8b 45 08 mov 0x8(%ebp),%eax
80106f8e: e8 ad f7 ff ff call 80106740 <walkpgdir>
if((*pte & PTE_P) == 0)
80106f93: 8b 00 mov (%eax),%eax
return 0;
if((*pte & PTE_U) == 0)
return 0;
return (char*)P2V(PTE_ADDR(*pte));
}
80106f95: c9 leave
if((*pte & PTE_U) == 0)
80106f96: 89 c2 mov %eax,%edx
return (char*)P2V(PTE_ADDR(*pte));
80106f98: 25 00 f0 ff ff and $0xfffff000,%eax
if((*pte & PTE_U) == 0)
80106f9d: 83 e2 05 and $0x5,%edx
return (char*)P2V(PTE_ADDR(*pte));
80106fa0: 05 00 00 00 80 add $0x80000000,%eax
80106fa5: 83 fa 05 cmp $0x5,%edx
80106fa8: ba 00 00 00 00 mov $0x0,%edx
80106fad: 0f 45 c2 cmovne %edx,%eax
}
80106fb0: c3 ret
80106fb1: eb 0d jmp 80106fc0 <copyout>
80106fb3: 90 nop
80106fb4: 90 nop
80106fb5: 90 nop
80106fb6: 90 nop
80106fb7: 90 nop
80106fb8: 90 nop
80106fb9: 90 nop
80106fba: 90 nop
80106fbb: 90 nop
80106fbc: 90 nop
80106fbd: 90 nop
80106fbe: 90 nop
80106fbf: 90 nop
80106fc0 <copyout>:
// Copy len bytes from p to user address va in page table pgdir.
// Most useful when pgdir is not the current page table.
// uva2ka ensures this only works for PTE_U pages.
int
copyout(pde_t *pgdir, uint va, void *p, uint len)
{
80106fc0: 55 push %ebp
80106fc1: 89 e5 mov %esp,%ebp
80106fc3: 57 push %edi
80106fc4: 56 push %esi
80106fc5: 53 push %ebx
80106fc6: 83 ec 1c sub $0x1c,%esp
80106fc9: 8b 5d 14 mov 0x14(%ebp),%ebx
80106fcc: 8b 55 0c mov 0xc(%ebp),%edx
80106fcf: 8b 7d 10 mov 0x10(%ebp),%edi
char *buf, *pa0;
uint n, va0;
buf = (char*)p;
while(len > 0){
80106fd2: 85 db test %ebx,%ebx
80106fd4: 75 40 jne 80107016 <copyout+0x56>
80106fd6: eb 70 jmp 80107048 <copyout+0x88>
80106fd8: 90 nop
80106fd9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
va0 = (uint)PGROUNDDOWN(va);
pa0 = uva2ka(pgdir, (char*)va0);
if(pa0 == 0)
return -1;
n = PGSIZE - (va - va0);
80106fe0: 8b 55 e4 mov -0x1c(%ebp),%edx
80106fe3: 89 f1 mov %esi,%ecx
80106fe5: 29 d1 sub %edx,%ecx
80106fe7: 81 c1 00 10 00 00 add $0x1000,%ecx
80106fed: 39 d9 cmp %ebx,%ecx
80106fef: 0f 47 cb cmova %ebx,%ecx
if(n > len)
n = len;
memmove(pa0 + (va - va0), buf, n);
80106ff2: 29 f2 sub %esi,%edx
80106ff4: 83 ec 04 sub $0x4,%esp
80106ff7: 01 d0 add %edx,%eax
80106ff9: 51 push %ecx
80106ffa: 57 push %edi
80106ffb: 50 push %eax
80106ffc: 89 4d e4 mov %ecx,-0x1c(%ebp)
80106fff: e8 3c d6 ff ff call 80104640 <memmove>
len -= n;
buf += n;
80107004: 8b 4d e4 mov -0x1c(%ebp),%ecx
while(len > 0){
80107007: 83 c4 10 add $0x10,%esp
va = va0 + PGSIZE;
8010700a: 8d 96 00 10 00 00 lea 0x1000(%esi),%edx
buf += n;
80107010: 01 cf add %ecx,%edi
while(len > 0){
80107012: 29 cb sub %ecx,%ebx
80107014: 74 32 je 80107048 <copyout+0x88>
va0 = (uint)PGROUNDDOWN(va);
80107016: 89 d6 mov %edx,%esi
pa0 = uva2ka(pgdir, (char*)va0);
80107018: 83 ec 08 sub $0x8,%esp
va0 = (uint)PGROUNDDOWN(va);
8010701b: 89 55 e4 mov %edx,-0x1c(%ebp)
8010701e: 81 e6 00 f0 ff ff and $0xfffff000,%esi
pa0 = uva2ka(pgdir, (char*)va0);
80107024: 56 push %esi
80107025: ff 75 08 pushl 0x8(%ebp)
80107028: e8 53 ff ff ff call 80106f80 <uva2ka>
if(pa0 == 0)
8010702d: 83 c4 10 add $0x10,%esp
80107030: 85 c0 test %eax,%eax
80107032: 75 ac jne 80106fe0 <copyout+0x20>
}
return 0;
}
80107034: 8d 65 f4 lea -0xc(%ebp),%esp
return -1;
80107037: b8 ff ff ff ff mov $0xffffffff,%eax
}
8010703c: 5b pop %ebx
8010703d: 5e pop %esi
8010703e: 5f pop %edi
8010703f: 5d pop %ebp
80107040: c3 ret
80107041: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
80107048: 8d 65 f4 lea -0xc(%ebp),%esp
return 0;
8010704b: 31 c0 xor %eax,%eax
}
8010704d: 5b pop %ebx
8010704e: 5e pop %esi
8010704f: 5f pop %edi
80107050: 5d pop %ebp
80107051: c3 ret
|
#include "alert.h"
#include "clientversion.h"
#include "chainparams.h"
#include "init.h"
#include "net.h"
#include "utilstrencodings.h"
#include "utiltime.h"
/*
If you need to broadcast an alert, here's what to do:
1. Modify alert parameters below, see alert.* and comments in the code
for what does what.
2. run sibcoind with -printalert or -sendalert like this:
/path/to/sicoind -printalert
One minute after starting up the alert will be broadcast. It is then
flooded through the network until the nRelayUntil time, and will be
active until nExpiration OR the alert is cancelled.
If you screw up something, send another alert with nCancel set to cancel
the bad alert.
*/
void ThreadSendAlert(CConnman& connman)
{
if (!IsArgSet("-sendalert") && !IsArgSet("-printalert"))
return;
// Wait one minute so we get well connected. If we only need to print
// but not to broadcast - do this right away.
if (IsArgSet("-sendalert"))
MilliSleep(60*1000);
//
// Alerts are relayed around the network until nRelayUntil, flood
// filling to every node.
// After the relay time is past, new nodes are told about alerts
// when they connect to peers, until either nExpiration or
// the alert is cancelled by a newer alert.
// Nodes never save alerts to disk, they are in-memory-only.
//
CAlert alert;
alert.nRelayUntil = GetAdjustedTime() + 15 * 60;
alert.nExpiration = GetAdjustedTime() + 30 * 60 * 60;
alert.nID = 1; // keep track of alert IDs somewhere
alert.nCancel = 0; // cancels previous messages up to this ID number
// These versions are protocol versions
alert.nMinVer = 70000;
alert.nMaxVer = 70103;
//
// 1000 for Misc warnings like out of disk space and clock is wrong
// 2000 for longer invalid proof-of-work chain
// Higher numbers mean higher priority
alert.nPriority = 5000;
alert.strComment = "";
alert.strStatusBar = "URGENT: Upgrade required: see https://sibcoin.money/";
// Set specific client version/versions here. If setSubVer is empty, no filtering on subver is done:
// alert.setSubVer.insert(std::string("/Dash Core:0.12.0.58/"));
// Sign
if(!alert.Sign())
{
LogPrintf("ThreadSendAlert() : could not sign alert\n");
return;
}
// Test
CDataStream sBuffer(SER_NETWORK, CLIENT_VERSION);
sBuffer << alert;
CAlert alert2;
sBuffer >> alert2;
if (!alert2.CheckSignature(Params().AlertKey()))
{
printf("ThreadSendAlert() : CheckSignature failed\n");
return;
}
assert(alert2.vchMsg == alert.vchMsg);
assert(alert2.vchSig == alert.vchSig);
alert.SetNull();
printf("\nThreadSendAlert:\n");
printf("hash=%s\n", alert2.GetHash().ToString().c_str());
printf("%s", alert2.ToString().c_str());
printf("vchMsg=%s\n", HexStr(alert2.vchMsg).c_str());
printf("vchSig=%s\n", HexStr(alert2.vchSig).c_str());
// Confirm
if (!IsArgSet("-sendalert"))
return;
while (connman.GetNodeCount(CConnman::CONNECTIONS_ALL) == 0 && !ShutdownRequested())
MilliSleep(500);
if (ShutdownRequested())
return;
// Send
printf("ThreadSendAlert() : Sending alert\n");
int nSent = 0;
{
connman.ForEachNode([&alert2, &connman, &nSent](CNode* pnode) {
if (alert2.RelayTo(pnode, connman))
{
printf("ThreadSendAlert() : Sent alert to %s\n", pnode->addr.ToString().c_str());
nSent++;
}
});
}
printf("ThreadSendAlert() : Alert sent to %d nodes\n", nSent);
}
|
; Find fitting sprite definition V1.00 1999 Tony Tebby
; High colour version 2003 Marcel Kilgus
;
; 2004-04-02 1.01 returns sp_error sprite if no fitting sprite can be found (wl)
section driver
include 'dev8_keys_con'
include 'dev8_keys_qdos_pt'
include 'dev8_keys_sysspr'
xdef pt_fsprd
xdef pt_fspr
xref pt_ssref
xref.l pt.sppref
xref pt_sppref
xref sp_error
;+++
; pv_fspr vector call
;
; In Out
; A1.l ptr to 1st sprite ptr to fitting sprite
; A3.l ptr to CON linkage block
;---
pt_fspr
movem.l d3/d7,-(sp)
moveq #0,d7
jsr pt_ssref
bsr.s pt_fsprd
movem.l (sp)+,d3/d7
rts
;+++
; Find fitting sprite/blob/pattern definition in linked list
;
; d3 r index in pt_sppref
; d7 c p -ve: object is pointer (possibly dynamic)
; a1 cr pointer to 1st definition / pointer to fitting definition
; a3 c p pointer to pointer linkage
; this routine always succeeds - if no correct sprite can be found, the
; sp_error sprite is returned
;---
pt_fsprd
reglist reg d1/d2/d4/d5/a0/a2
movem.l reglist,-(sp)
moveq #-1,d3 ; no suitable object found
move.l a1,a0 ; keep start of list
ptf_srstrt
moveq #0,d0 ; assume sprite isn't dynamic
ptf_sslp
move.w pto_form(a1),d4 ; get the form
moveq #pt.sppref-1,d1
lea pt_sppref,a2
ptf_prloop
cmp.w (a2)+,d4 ; look for acceptable form
dbeq d1,ptf_prloop
bne.s ptf_cnext ; not acceptable, try next
tst.b d7 ; pointer sprite?
bpl.s ptf_psave ; ... no
move.b pto_vers(a1),d0 ; get version number
beq.s ptf_psave ; not dynamic, just use it
cmp.b pt_svers(a3),d0 ; OK for use now?
bls.s ptf_cnext ; ... no
ptf_psave
cmp.w d3,d1 ; is this one better than last?
ble.s ptf_cnext ; ... no
move.l a1,d2 ; new good version
move.w d1,d3
ptf_cnext
move.l pto_nobj(a1),d5 ; next object
beq.s ptf_cfound ; there are no more
lea pto_nobj(a1,d5.l),a1 ; there it is
bra.s ptf_sslp ; so try it
ptf_cfound
tst.w d3 ; any suitable sprite found?
bpl.s ptf_exit
; .. yes
tst.b d0 ; .. no, is this object dynamic?
beq.s ptf_default ; .... no, there isn't an OK one, tough
clr.b pt_svers(a3) ; .... yes, restart version counter
move.l a0,a1 ; and scan list again
bra.s ptf_srstrt
ptf_default
lea sp_error,a1 ; oops, error, return error sprite
bra.s ptf_srstrt
ptf_exit
move.l d2,a1
movem.l (sp)+,reglist
moveq #0,d0 ; routine always succeeds
rts
end
|
#include "encryption.hpp"
#include "logging.hpp"
#include <openssl/engine.h>
#include "openssl/evp.h"
#include <iostream>
#include <string>
#include <sstream>
#include <iomanip>
Encrypt::Encrypt()
{
}
Encrypt::~Encrypt()
{
}
// Removal of Boost, not going to print out the current version, leave for debugging if needed.
// #pragma message("OPENSSL_VERSION_NUMBER=" BOOST_PP_STRINGIZE(OPENSSL_VERSION_NUMBER))
#if OPENSSL_VERSION_NUMBER < 0x10100000L
/**
* @brief Handle New OpenSSL v1.01, and Conversions for Older. (Debugging OpenSSL Version)
* @return
*/
EVP_MD_CTX *EVP_MD_CTX_new()
{
//return (EVP_MD_CTX*)OPENSSL_zalloc(sizeof(EVP_MD_CTX));
// OPENSSL_VERSION_NUMBER = 0x100010cfL Need malloc
// Use this for now, not sure what version have zalloc.
return (EVP_MD_CTX*)OPENSSL_malloc(sizeof(EVP_MD_CTX));
}
void EVP_MD_CTX_free(EVP_MD_CTX *ctx)
{
EVP_MD_CTX_cleanup(ctx);
OPENSSL_free(ctx);
}
#endif
/**
* @brief Unsigned Char to Hex
* @param inchar
* @return
*/
std::string Encrypt::unsignedToHex(unsigned char inchar)
{
std::ostringstream oss(std::ostringstream::out);
oss << std::setw(2) << std::setfill('0') << std::hex << static_cast<int>(inchar);
return oss.str();
}
/**
* @brief SHA1 password encryption
* @param key
* @param salt
*/
std::string Encrypt::SHA1(std::string key, std::string salt)
{
bool EncryptOk = true;
// Setup Encryption for User Password.
EVP_MD_CTX *mdctx = EVP_MD_CTX_new();
const EVP_MD *md;
unsigned char md_value[EVP_MAX_MD_SIZE]= {0};
unsigned int md_len = 0;
OpenSSL_add_all_digests();
md = EVP_get_digestbyname("SHA1");
if(!md)
{
EncryptOk = false;
}
std::string salt_result = "";
for(unsigned char c : salt)
{
salt_result += unsignedToHex(c);
}
std::string result = "";
if(EncryptOk)
{
EVP_MD_CTX_init(mdctx);
EVP_DigestInit_ex(mdctx, md, NULL);
EVP_DigestUpdate(mdctx, (char *)salt_result.c_str(), salt_result.size());
EVP_DigestUpdate(mdctx, (char *)key.c_str(), key.size());
EVP_DigestFinal_ex(mdctx, md_value, &md_len);
EVP_MD_CTX_free(mdctx);
for(size_t i = 0; i < md_len; i++)
{
result += unsignedToHex(md_value[i]);
}
}
else
{
Logging *log = Logging::instance();
log->xrmLog<Logging::ERROR_LOG>("Error, SHA1 failed", __FILE__, __LINE__);
}
EVP_cleanup();
return result;
}
/**
* @brief PKCS5_PBKDF2 password encryption
* @param key
* @param salt
*/
std::string Encrypt::PKCS5_PBKDF2(std::string key, std::string salt)
{
size_t i;
unsigned char *out;
out = (unsigned char *) malloc(sizeof(unsigned char) * SHA512_OUTPUT_BYTES);
std::string salt_result = "";
for(i = 0; i < salt.size(); i++)
{
salt_result += unsignedToHex(salt[i]);
}
std::string result = "";
if(PKCS5_PBKDF2_HMAC(
(const char *)key.c_str(), key.size(),
(const unsigned char *)salt_result.c_str(), salt_result.size(),
ITERATION,
EVP_sha512(),
SHA512_OUTPUT_BYTES,
(unsigned char *)out) != 0)
{
for(i = 0; i < SHA512_OUTPUT_BYTES; i++)
{
result += unsignedToHex(out[i]);
}
}
else
{
Logging *log = Logging::instance();
log->xrmLog<Logging::ERROR_LOG>("Error, PKCS5_PBKDF2_HMAC failed", __FILE__, __LINE__);
}
free(out);
return result;
}
/**
* @brief generate salt hash key
* @param key
* @param salt
*/
std::string Encrypt::generate_salt(std::string key, std::string salt)
{
std::string generated_salt = SHA1(key, salt);
return generated_salt;
}
/**
* @brief generate password hash key
* @param key
* @param salt
*/
std::string Encrypt::generate_password(std::string key, std::string salt)
{
std::string generated_password = PKCS5_PBKDF2(key, salt);
return generated_password;
}
/**
* @brief Case Insensitive compare valid password hash
* @param hash1
* @param hash2
* @return
*/
bool Encrypt::compare(std::string hash1, std::string hash2)
{
return (hash1.compare(hash2) == 0);
}
|
/*
* HealthMetricsApi.actor.cpp
*
* This source file is part of the FoundationDB open source project
*
* Copyright 2013-2018 Apple Inc. and the FoundationDB project authors
*
* 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 "fdbserver/TesterInterface.actor.h"
#include "fdbserver/workloads/workloads.actor.h"
#include "fdbserver/WorkerInterface.actor.h"
#include "flow/actorcompiler.h" // This must be the last #include.
// workload description
// This workload can be attached to other workload to collect health information about the FDB cluster.
struct HealthMetricsApiWorkload : TestWorkload {
// Performance Metrics
int64_t worstStorageQueue = 0;
int64_t worstLimitingStorageQueue = 0;
int64_t worstStorageDurabilityLag = 0;
int64_t worstLimitingStorageDurabilityLag = 0;
int64_t worstTLogQueue = 0;
int64_t detailedWorstStorageQueue = 0;
int64_t detailedWorstStorageDurabilityLag = 0;
int64_t detailedWorstTLogQueue = 0;
double detailedWorstCpuUsage = 0;
double detailedWorstDiskUsage = 0;
// Test configuration
double testDuration;
double healthMetricsCheckInterval;
double maxAllowedStaleness;
bool sendDetailedHealthMetrics;
// internal states
bool healthMetricsStoppedUpdating = false;
static constexpr const char* NAME = "HealthMetricsApi";
HealthMetricsApiWorkload(WorkloadContext const& wcx) : TestWorkload(wcx) {
testDuration = getOption(options, LiteralStringRef("testDuration"), 120.0);
healthMetricsCheckInterval = getOption(options, LiteralStringRef("healthMetricsCheckInterval"), 1.0);
sendDetailedHealthMetrics = getOption(options, LiteralStringRef("sendDetailedHealthMetrics"), true);
maxAllowedStaleness = getOption(options, LiteralStringRef("maxAllowedStaleness"), 60.0);
}
std::string description() const override { return HealthMetricsApiWorkload::NAME; }
ACTOR static Future<Void> _setup(Database cx, HealthMetricsApiWorkload* self) {
if (!self->sendDetailedHealthMetrics) {
// Clear detailed health metrics that are already populated
wait(delay(2 * CLIENT_KNOBS->DETAILED_HEALTH_METRICS_MAX_STALENESS));
cx->healthMetrics.storageStats.clear();
cx->healthMetrics.tLogQueue.clear();
}
return Void();
}
Future<Void> setup(Database const& cx) override { return _setup(cx, this); }
ACTOR static Future<Void> _start(Database cx, HealthMetricsApiWorkload* self) {
wait(timeout(healthMetricsChecker(cx, self), self->testDuration, Void()));
return Void();
}
Future<Void> start(Database const& cx) override { return _start(cx, this); }
Future<bool> check(Database const& cx) override {
if (healthMetricsStoppedUpdating) {
TraceEvent(SevError, "HealthMetricsStoppedUpdating");
return false;
}
bool correctHealthMetricsState = true;
if (worstStorageQueue == 0 || worstStorageDurabilityLag == 0 || worstTLogQueue == 0)
correctHealthMetricsState = false;
if (sendDetailedHealthMetrics) {
if (detailedWorstStorageQueue == 0 || detailedWorstStorageDurabilityLag == 0 ||
detailedWorstTLogQueue == 0 || detailedWorstCpuUsage == 0.0 || detailedWorstDiskUsage == 0.0)
correctHealthMetricsState = false;
} else {
if (detailedWorstStorageQueue != 0 || detailedWorstStorageDurabilityLag != 0 ||
detailedWorstTLogQueue != 0 || detailedWorstCpuUsage != 0.0 || detailedWorstDiskUsage != 0.0)
correctHealthMetricsState = false;
}
if (!correctHealthMetricsState) {
TraceEvent(SevError, "IncorrectHealthMetricsState")
.detail("WorstStorageQueue", worstStorageQueue)
.detail("WorstLimitingStorageQueue", worstLimitingStorageQueue)
.detail("WorstStorageDurabilityLag", worstStorageDurabilityLag)
.detail("WorstLimitingStorageDurabilityLag", worstLimitingStorageDurabilityLag)
.detail("WorstTLogQueue", worstTLogQueue)
.detail("DetailedWorstStorageQueue", detailedWorstStorageQueue)
.detail("DetailedWorstStorageDurabilityLag", detailedWorstStorageDurabilityLag)
.detail("DetailedWorstTLogQueue", detailedWorstTLogQueue)
.detail("DetailedWorstCpuUsage", detailedWorstCpuUsage)
.detail("DetailedWorstDiskUsage", detailedWorstDiskUsage)
.detail("SendingDetailedHealthMetrics", sendDetailedHealthMetrics);
}
return correctHealthMetricsState;
}
void getMetrics(vector<PerfMetric>& m) override {
m.push_back(PerfMetric("WorstStorageQueue", worstStorageQueue, true));
m.push_back(PerfMetric("DetailedWorstStorageQueue", detailedWorstStorageQueue, true));
m.push_back(PerfMetric("WorstStorageDurabilityLag", worstStorageDurabilityLag, true));
m.push_back(PerfMetric("DetailedWorstStorageDurabilityLag", detailedWorstStorageDurabilityLag, true));
m.push_back(PerfMetric("WorstTLogQueue", worstTLogQueue, true));
m.push_back(PerfMetric("DetailedWorstTLogQueue", detailedWorstTLogQueue, true));
m.push_back(PerfMetric("DetailedWorstCpuUsage", detailedWorstCpuUsage, true));
m.push_back(PerfMetric("DetailedWorstDiskUsage", detailedWorstDiskUsage, true));
}
ACTOR static Future<Void> healthMetricsChecker(Database cx, HealthMetricsApiWorkload* self) {
state int repeated = 0;
state HealthMetrics healthMetrics;
loop {
wait(delay(self->healthMetricsCheckInterval));
HealthMetrics newHealthMetrics = wait(cx->getHealthMetrics(self->sendDetailedHealthMetrics));
if (healthMetrics == newHealthMetrics) {
if (++repeated > self->maxAllowedStaleness / self->healthMetricsCheckInterval)
self->healthMetricsStoppedUpdating = true;
} else
repeated = 0;
healthMetrics = newHealthMetrics;
self->worstStorageQueue = std::max(self->worstStorageQueue, healthMetrics.worstStorageQueue);
self->worstLimitingStorageQueue =
std::max(self->worstLimitingStorageQueue, healthMetrics.limitingStorageQueue);
self->worstStorageDurabilityLag =
std::max(self->worstStorageDurabilityLag, healthMetrics.worstStorageDurabilityLag);
self->worstLimitingStorageDurabilityLag =
std::max(self->worstLimitingStorageDurabilityLag, healthMetrics.limitingStorageDurabilityLag);
self->worstTLogQueue = std::max(self->worstTLogQueue, healthMetrics.worstTLogQueue);
TraceEvent("HealthMetrics")
.detail("WorstStorageQueue", healthMetrics.worstStorageQueue)
.detail("LimitingStorageQueue", healthMetrics.limitingStorageQueue)
.detail("WorstStorageDurabilityLag", healthMetrics.worstStorageDurabilityLag)
.detail("LimitingStorageDurabilityLag", healthMetrics.limitingStorageDurabilityLag)
.detail("WorstTLogQueue", healthMetrics.worstTLogQueue)
.detail("TpsLimit", healthMetrics.tpsLimit);
TraceEvent traceStorageQueue("StorageQueue");
TraceEvent traceStorageDurabilityLag("StorageDurabilityLag");
TraceEvent traceCpuUsage("CpuUsage");
TraceEvent traceDiskUsage("DiskUsage");
// update metrics
for (const auto& ss : healthMetrics.storageStats) {
auto storageStats = ss.second;
self->detailedWorstStorageQueue = std::max(self->detailedWorstStorageQueue, storageStats.storageQueue);
traceStorageQueue.detail(format("Storage-%s", ss.first.toString().c_str()), storageStats.storageQueue);
self->detailedWorstStorageDurabilityLag =
std::max(self->detailedWorstStorageDurabilityLag, storageStats.storageDurabilityLag);
traceStorageDurabilityLag.detail(format("Storage-%s", ss.first.toString().c_str()),
storageStats.storageDurabilityLag);
self->detailedWorstCpuUsage = std::max(self->detailedWorstCpuUsage, storageStats.cpuUsage);
traceCpuUsage.detail(format("Storage-%s", ss.first.toString().c_str()), storageStats.cpuUsage);
self->detailedWorstDiskUsage = std::max(self->detailedWorstDiskUsage, storageStats.diskUsage);
traceDiskUsage.detail(format("Storage-%s", ss.first.toString().c_str()), storageStats.diskUsage);
}
TraceEvent traceTLogQueue("TLogQueue");
traceTLogQueue.setMaxEventLength(10000);
for (const auto& ss : healthMetrics.tLogQueue) {
self->detailedWorstTLogQueue = std::max(self->detailedWorstTLogQueue, ss.second);
traceTLogQueue.detail(format("TLog-%s", ss.first.toString().c_str()), ss.second);
}
};
}
};
WorkloadFactory<HealthMetricsApiWorkload> HealthMetricsApiWorkloadFactory(HealthMetricsApiWorkload::NAME);
|
#include "sim/init.hh"
namespace {
const uint8_t data_m5_internal_stats[] = {
120,156,237,61,11,108,28,199,117,179,119,252,232,248,255,83,
20,41,137,250,83,146,37,74,178,100,89,178,44,75,214,199,
150,63,146,189,148,99,251,236,230,178,188,29,146,75,221,237,
158,119,247,40,209,150,130,52,50,146,54,117,147,54,65,220,
196,169,211,32,105,140,166,65,83,52,8,26,192,64,208,180,
110,147,166,49,154,52,133,129,32,1,82,4,53,90,32,69,
138,20,105,154,38,104,209,206,123,187,179,183,123,183,148,41,
238,222,44,47,178,121,26,207,189,157,157,121,111,230,205,123,
111,222,155,155,201,19,247,191,102,246,239,196,56,33,86,153,
229,84,246,145,72,129,144,162,68,178,18,145,168,68,212,83,
228,82,51,49,15,18,181,153,60,79,72,54,69,104,138,92,
103,153,52,121,42,69,244,14,124,167,133,20,210,8,145,200,
98,27,161,77,36,219,76,30,215,123,73,19,109,33,151,218,
136,249,46,34,73,146,46,145,39,212,86,162,174,33,207,179,
218,89,38,131,21,174,33,0,108,67,96,134,168,237,8,108,
35,106,7,102,218,201,98,15,161,29,36,219,9,197,178,93,
172,218,93,172,218,110,172,246,219,80,173,202,158,156,38,106,
23,20,103,120,61,9,37,155,160,36,182,215,141,181,244,16,
21,107,153,97,244,244,122,5,123,9,77,147,249,62,146,237,
35,148,125,122,201,117,70,178,218,199,11,246,123,5,251,177,
224,0,201,14,16,202,62,253,88,16,64,131,36,59,72,232,
32,153,31,34,217,33,204,12,147,236,48,102,214,146,236,90,
204,140,144,236,8,102,214,145,236,58,204,140,146,236,40,102,
198,72,118,12,51,235,73,118,61,102,54,144,236,6,204,108,
36,217,141,152,25,39,217,113,162,14,32,25,155,16,143,77,
144,81,7,1,15,64,115,200,67,115,51,62,222,66,178,91,
8,101,159,205,14,61,195,188,224,90,175,224,86,44,184,141,
100,183,17,202,62,91,61,122,182,195,3,254,101,7,201,238,
192,130,19,126,232,78,146,221,137,208,93,126,232,110,146,221,
77,212,17,222,117,235,188,166,110,195,178,123,72,118,15,161,
236,115,155,131,211,40,199,105,204,43,184,23,11,78,146,236,
36,161,236,179,215,41,184,158,23,220,224,21,220,135,5,247,
147,236,126,66,217,103,159,83,112,35,47,56,238,21,60,128,
5,111,39,217,219,9,101,159,3,78,193,77,64,47,20,220,
236,21,60,136,5,15,145,236,33,66,217,231,160,83,112,11,
39,102,171,87,240,14,44,120,152,100,15,19,202,62,119,56,
5,183,241,166,183,123,5,239,196,130,71,72,246,8,161,236,
115,167,83,112,7,175,113,194,43,120,20,11,222,69,178,119,
17,202,62,71,157,130,59,121,193,93,94,193,99,88,240,110,
146,189,155,80,246,57,230,20,220,205,11,222,230,21,60,142,
5,239,33,217,123,8,101,159,227,78,193,61,188,224,94,175,
224,9,44,120,146,100,79,18,202,62,39,156,130,147,188,224,
62,175,224,189,88,240,20,201,158,34,148,125,238,117,10,238,
71,142,60,141,207,78,67,70,61,128,144,51,8,57,3,25,
245,118,132,156,69,200,89,200,168,7,17,114,31,66,238,131,
140,122,8,33,247,35,228,126,200,168,119,32,228,28,66,206,
65,70,61,140,144,7,16,242,0,100,212,59,17,242,32,66,
30,132,140,122,4,33,15,33,228,33,200,168,71,17,242,48,
66,30,134,140,122,23,66,206,35,228,60,100,152,160,80,143,
161,228,185,128,192,11,144,81,239,198,98,143,32,228,17,200,
168,199,17,242,40,66,30,133,140,122,15,66,100,132,200,144,
81,79,32,100,10,33,83,144,81,79,34,228,34,66,46,66,
70,189,23,33,143,33,228,49,200,48,201,57,53,113,134,137,
96,237,255,216,127,19,18,203,217,29,44,89,160,166,165,25,
122,78,211,103,12,45,5,207,91,32,1,129,157,135,164,213,
149,220,167,64,114,127,142,160,216,86,83,174,228,190,70,216,
248,72,32,152,11,41,114,13,51,215,82,100,113,130,92,149,
200,60,163,56,77,174,178,102,154,97,28,103,37,114,61,69,
158,78,67,129,107,44,109,98,242,117,3,105,178,29,177,61,
143,242,213,169,169,149,92,107,38,87,155,201,212,19,87,83,
0,184,148,33,230,103,201,179,99,88,233,26,172,52,69,174,
178,180,137,92,111,34,215,90,200,227,172,16,3,205,103,128,
139,164,39,174,50,74,25,100,106,162,137,97,123,222,71,46,
144,162,106,166,174,20,169,13,68,230,44,91,177,173,137,54,
254,204,176,246,150,20,123,78,198,194,105,232,133,98,201,198,
74,12,157,218,237,44,51,163,233,106,174,104,168,229,2,181,
215,64,13,185,25,173,64,115,57,124,120,174,88,50,76,251,
140,105,26,166,12,29,137,192,130,161,120,111,64,55,230,11,
134,69,39,160,53,108,70,134,234,109,40,61,83,194,26,1,
1,68,16,94,86,169,149,55,181,146,205,198,199,169,17,74,
67,109,19,48,50,152,88,231,89,50,89,212,237,201,185,217,
25,107,114,106,78,49,233,212,28,213,39,103,105,241,208,30,
195,212,102,53,125,15,163,115,186,64,247,28,216,183,255,208,
158,35,123,110,159,156,46,107,5,117,242,202,157,119,76,150,
22,237,57,67,159,180,46,107,179,147,216,27,123,25,164,15,
234,101,144,156,134,20,229,230,104,161,68,205,78,128,174,131,
54,165,30,169,67,106,145,210,210,132,212,201,114,205,236,95,
90,26,75,181,75,231,53,160,41,15,116,66,255,54,249,217,
6,198,82,34,151,82,196,28,3,166,152,103,31,9,70,145,
177,198,20,60,75,225,179,71,161,51,28,232,124,26,134,218,
1,94,69,70,98,28,197,74,30,131,177,213,9,114,67,51,
153,111,33,14,151,48,230,114,216,198,92,132,148,21,135,106,
82,172,242,38,98,125,148,176,206,101,252,113,149,184,188,115,
61,77,36,189,135,216,109,48,49,25,116,136,53,248,94,100,
191,169,9,64,255,60,50,132,61,167,89,198,101,29,187,29,
242,56,97,166,88,207,60,178,120,97,122,158,230,109,107,35,
3,60,105,148,199,243,138,174,27,246,184,162,170,227,138,109,
155,218,116,217,166,214,184,109,140,111,179,38,96,36,229,94,
206,83,94,125,139,37,206,67,48,222,140,135,156,47,170,150,
183,217,151,126,252,130,163,96,81,155,241,195,156,161,90,12,
14,85,204,82,91,6,36,145,137,13,68,4,217,37,7,69,
161,121,86,174,139,125,63,201,49,65,158,156,104,225,28,100,
209,194,140,221,134,204,168,88,86,14,49,1,56,242,29,84,
188,160,20,202,206,20,1,158,96,8,65,214,193,161,190,156,
183,22,103,165,75,52,82,162,27,186,186,200,16,211,242,59,
160,205,181,200,127,29,200,129,131,140,251,90,89,218,194,254,
223,34,13,165,242,77,46,207,181,112,190,27,2,138,9,142,
186,228,14,60,227,193,235,76,180,76,164,80,54,32,49,56,
15,55,67,14,94,150,199,32,89,15,201,6,72,54,114,122,
235,70,116,103,53,209,135,161,161,20,82,138,52,193,144,164,
57,77,106,96,46,141,84,230,18,147,125,83,48,39,82,48,
115,42,115,162,9,228,164,121,28,82,86,20,103,91,154,88,
23,65,42,195,220,193,202,96,154,48,134,135,92,101,26,96,
15,201,61,64,249,26,206,193,50,176,165,159,55,103,125,188,
41,195,224,32,99,202,35,92,252,229,160,132,195,146,242,40,
84,213,28,210,197,227,144,108,170,123,63,87,152,107,182,134,
185,238,130,54,123,92,230,234,68,166,106,99,255,122,82,249,
180,219,249,158,14,236,175,98,42,224,168,166,16,142,218,14,
185,116,45,185,162,152,201,37,242,172,143,153,0,175,148,159,
22,64,96,113,24,72,240,179,209,48,211,228,143,235,195,76,
57,167,80,57,239,67,229,140,10,30,87,58,142,48,78,163,
60,118,50,205,208,23,51,105,50,228,42,93,43,195,210,146,
105,92,89,28,55,102,198,109,36,22,100,231,177,109,214,222,
109,214,93,76,42,142,31,71,121,228,200,69,71,242,153,180,
4,146,11,94,61,115,37,79,81,237,225,183,92,206,17,84,
57,20,90,57,87,157,50,142,26,132,158,76,241,46,70,145,
109,217,38,72,234,250,118,114,155,215,201,128,243,3,208,74,
27,246,112,90,26,102,220,211,38,33,42,57,71,52,163,21,
133,79,217,191,123,161,215,129,92,74,96,217,43,79,57,136,
34,13,64,141,124,91,128,67,234,69,129,60,201,170,124,140,
115,70,75,133,51,224,95,154,115,249,251,9,218,231,18,121,
31,129,177,103,67,236,114,185,55,41,96,176,251,161,248,59,
9,78,135,16,13,143,50,101,10,180,58,150,96,162,198,58,
140,69,29,133,255,0,249,13,223,92,226,106,57,237,154,142,
126,181,220,228,201,35,100,154,101,169,222,166,160,224,130,81,
153,83,44,40,230,72,163,202,244,172,200,122,207,250,99,210,
184,110,28,180,198,169,63,7,168,60,93,225,31,80,108,163,
82,127,202,199,21,251,33,57,224,49,132,196,97,245,192,106,
35,89,90,253,230,28,57,255,20,52,221,132,200,118,183,162,
149,225,216,67,231,108,106,42,182,97,122,220,222,204,185,253,
159,61,110,167,168,148,158,199,37,4,164,41,24,229,235,41,
41,155,6,43,12,214,43,77,132,54,147,108,11,161,173,96,
233,131,147,166,153,59,105,90,92,39,77,197,175,211,129,249,
12,230,59,209,175,67,192,25,227,250,117,186,185,95,167,135,
168,157,152,233,117,93,55,217,62,226,58,107,250,193,89,3,
153,1,215,89,147,29,36,106,31,102,134,92,175,76,118,152,
187,68,214,130,39,4,50,35,174,39,36,187,142,168,195,152,
25,133,137,12,234,5,231,17,255,135,18,22,228,113,64,69,
227,8,158,119,198,214,227,76,135,233,32,185,82,95,201,5,
124,119,172,160,20,167,85,229,248,44,180,1,13,229,249,204,
79,113,172,123,252,88,195,172,149,150,66,28,191,30,226,216,
47,212,87,106,221,193,170,244,176,198,57,170,26,121,20,85,
23,231,232,120,145,22,167,217,98,118,78,43,141,207,20,148,
89,28,139,180,75,213,5,78,149,141,220,87,109,230,88,187,
32,53,198,243,134,206,20,72,57,207,24,121,92,165,108,181,
71,213,241,61,227,168,125,198,53,107,92,153,102,79,149,188,
237,204,194,160,4,65,11,90,49,103,45,52,150,47,93,134,
108,253,199,50,199,214,237,26,91,47,104,36,168,229,3,60,
8,152,169,21,214,67,228,155,61,97,50,70,234,173,108,96,
216,138,30,179,113,212,60,102,235,116,134,101,94,226,6,170,
159,211,112,217,59,80,35,102,114,184,68,17,69,0,200,69,
163,210,195,206,42,215,83,151,254,73,227,209,225,168,186,90,
82,250,107,73,209,244,188,233,179,98,224,13,189,190,156,3,
12,1,173,154,62,174,137,141,28,149,250,201,145,143,215,123,
116,144,26,104,180,28,153,154,225,16,106,216,170,95,209,243,
212,71,209,161,186,83,4,51,155,55,124,37,50,85,33,179,
135,62,83,86,10,66,73,2,121,131,173,62,23,34,169,110,
66,20,132,48,92,222,40,45,10,146,4,200,107,208,222,187,
99,167,66,167,87,108,145,84,64,123,191,30,141,138,144,233,
146,67,58,114,57,81,148,184,14,52,108,243,249,216,169,41,
153,116,65,51,202,150,72,106,120,155,239,143,60,239,135,106,
9,82,212,133,42,97,86,127,241,12,139,46,183,221,15,68,
166,105,48,140,229,232,51,140,225,68,10,51,12,30,96,179,
191,93,31,138,116,154,8,69,208,236,239,68,166,40,84,44,
104,108,125,30,160,169,254,140,231,218,199,216,240,71,234,68,
149,85,158,78,134,42,108,248,197,122,200,136,92,78,252,80,
161,187,204,105,247,227,132,212,248,43,129,166,251,194,104,122,
33,76,144,135,210,84,61,80,71,4,209,132,237,254,62,169,
213,76,129,213,217,213,202,234,12,113,18,170,61,53,214,75,
185,220,39,43,56,78,96,15,121,238,72,244,242,56,110,161,
146,105,148,168,105,47,58,110,56,112,154,203,123,33,217,25,
16,103,42,45,80,155,230,130,99,96,247,16,47,106,160,82,
182,142,54,22,115,57,183,147,216,11,185,28,174,178,228,123,
32,57,9,201,41,72,32,96,45,223,7,201,57,72,30,132,
228,97,72,46,64,242,40,36,83,144,128,47,83,126,28,146,
39,33,1,47,149,252,116,160,255,234,182,56,60,200,170,156,
129,186,161,175,90,164,209,84,38,213,34,101,164,76,42,147,
238,96,127,153,165,254,82,104,134,157,211,103,140,90,159,153,
34,173,192,103,150,114,221,102,144,102,96,186,103,219,56,176,
29,211,14,4,118,114,96,23,166,221,8,236,225,192,94,76,
251,16,216,207,129,3,152,14,34,112,136,3,135,49,93,139,
192,17,14,92,135,233,40,2,199,56,112,61,166,27,16,184,
17,243,227,184,177,200,241,237,109,230,190,189,45,224,207,131,
204,86,244,240,17,216,52,228,238,220,218,206,221,123,59,184,
123,111,130,187,247,118,114,247,222,46,238,222,219,13,155,127,
160,149,61,96,232,193,118,31,7,141,73,76,247,33,26,251,
193,99,215,77,34,122,236,234,175,152,209,119,242,135,36,78,
71,157,124,88,44,210,242,157,196,141,39,36,239,164,67,177,
47,31,173,123,7,128,100,124,133,188,133,208,79,218,37,247,
197,26,182,186,57,219,161,195,21,95,16,44,56,175,20,253,
171,138,250,199,57,49,214,231,180,251,37,18,213,10,234,245,
81,50,69,75,10,42,44,159,75,14,183,221,88,180,84,95,
146,58,28,146,60,4,190,28,194,64,55,177,158,109,227,68,
229,231,104,254,146,40,147,2,247,56,65,131,175,70,195,190,
139,99,63,173,88,244,148,72,10,32,226,236,53,250,149,104,
84,180,115,42,168,14,56,136,34,1,86,115,78,139,95,141,
134,191,55,197,75,38,112,165,48,2,96,118,187,77,190,22,
211,44,48,41,196,115,5,206,2,108,240,107,209,176,207,112,
236,159,165,166,33,210,59,8,237,125,131,68,149,171,94,231,
47,104,150,102,87,237,212,64,24,19,179,117,31,8,108,232,
245,10,49,19,16,77,175,44,111,228,95,131,100,201,5,77,
39,167,1,119,233,205,82,187,10,194,6,25,213,29,110,47,
114,149,136,43,192,167,108,83,211,113,35,206,210,15,217,235,
54,216,161,85,240,74,35,176,7,52,216,44,66,224,61,39,
240,97,229,113,195,38,159,166,121,13,183,243,194,27,33,96,
120,205,217,155,227,66,176,113,94,200,164,207,224,139,213,48,
120,171,197,121,139,125,173,168,75,77,205,229,141,178,110,227,
75,181,80,120,13,150,152,28,80,17,135,12,2,175,248,191,
67,225,20,22,198,5,188,211,89,172,63,148,89,250,8,235,
153,162,133,111,44,241,200,114,251,39,0,117,183,208,226,90,
20,222,145,115,48,168,239,130,4,86,92,50,44,218,228,57,
72,230,33,41,64,162,67,82,130,4,98,99,114,153,11,65,
103,31,164,179,5,162,50,43,11,212,178,112,20,48,227,169,
44,48,108,29,116,171,64,128,38,112,36,126,19,176,52,85,
88,149,159,129,186,247,145,202,210,116,176,234,207,89,170,86,
47,78,187,87,56,231,229,15,17,119,177,129,148,2,42,251,
189,220,129,250,146,11,77,255,83,101,158,163,248,153,202,43,
5,197,12,95,101,3,63,220,236,42,219,93,180,182,242,69,
235,26,190,104,205,16,218,6,11,109,216,150,226,172,94,59,
97,141,9,188,210,8,107,204,55,73,3,174,49,61,164,111,
213,53,230,191,144,72,230,69,79,96,130,136,223,83,241,163,
104,232,247,6,209,103,6,87,185,32,204,196,3,125,232,180,
248,227,88,7,193,54,108,165,32,210,78,197,6,127,18,66,
195,170,114,86,252,148,79,245,9,208,169,203,177,222,208,157,
12,209,4,249,19,1,142,225,222,105,175,203,43,118,129,0,
149,12,33,27,216,17,137,50,200,85,201,142,250,77,101,28,
141,245,14,10,82,39,92,99,1,37,245,243,11,187,186,173,
139,235,182,110,174,219,122,184,74,235,229,14,217,62,124,177,
31,119,78,182,185,59,39,153,182,3,139,171,17,180,221,127,
147,6,212,118,30,210,183,170,182,251,101,136,144,186,73,117,
81,153,92,98,93,50,184,186,0,132,35,224,223,29,196,223,
210,158,21,230,143,193,95,141,177,246,210,209,40,232,9,82,
32,220,222,104,137,134,126,21,3,9,181,55,80,147,101,98,
237,126,145,150,6,234,224,142,16,244,87,149,145,209,45,113,
35,3,252,12,203,118,17,13,87,77,204,242,52,120,134,28,
15,192,82,207,184,111,132,3,66,10,130,107,103,169,74,156,
103,190,74,16,224,248,48,62,69,106,172,31,191,225,83,169,
72,168,225,243,50,171,242,231,80,247,90,18,240,69,84,124,
15,96,0,1,53,167,53,203,62,173,216,74,173,249,243,216,
114,194,226,206,153,32,96,224,180,144,249,86,76,215,160,129,
147,225,192,54,76,219,17,216,193,129,157,152,118,33,176,155,
3,123,48,237,69,96,31,7,246,99,58,128,192,65,14,28,
194,116,24,129,107,57,112,4,211,117,8,28,229,192,49,76,
215,35,112,3,7,110,196,116,28,129,155,56,112,51,166,91,
16,184,149,3,183,97,186,29,129,59,56,112,2,211,157,8,
220,197,129,187,49,189,13,129,123,184,85,184,23,129,147,36,
187,143,155,123,24,10,135,213,76,35,24,110,235,249,12,109,
36,195,205,67,250,173,13,183,20,241,253,58,243,164,39,209,
175,227,15,240,22,7,144,64,231,7,190,72,160,244,184,190,
142,52,49,245,12,63,211,60,6,63,211,188,138,226,63,151,
114,126,169,89,25,178,102,79,90,129,59,83,167,151,115,124,
154,57,63,193,4,6,80,74,37,170,171,242,46,175,143,198,
120,191,213,223,182,219,3,125,196,127,4,151,150,6,164,206,
85,170,35,14,122,58,98,201,48,66,149,122,232,245,201,52,
252,177,189,231,46,15,66,33,146,0,123,245,81,79,123,143,
138,154,227,204,175,1,130,240,7,51,156,229,171,30,42,87,
66,222,96,64,239,13,229,10,6,36,188,135,211,229,252,37,
106,163,69,233,69,43,66,31,90,174,211,222,7,195,159,23,
4,16,99,102,29,214,18,250,0,106,104,117,176,134,239,85,
133,24,146,225,111,187,15,188,183,157,239,24,14,240,10,149,
117,149,154,51,5,227,178,23,41,8,121,196,3,32,30,4,
119,172,121,5,141,5,95,21,225,79,184,210,229,128,224,72,
230,23,104,190,118,124,17,202,67,54,240,37,56,56,86,185,
88,59,98,0,228,35,198,242,193,14,177,158,41,51,126,182,
106,123,138,63,224,61,229,126,15,162,83,48,220,248,68,45,
148,35,9,95,170,106,86,138,165,66,104,147,238,3,175,73,
231,59,78,107,92,180,184,134,135,39,112,68,154,29,159,103,
85,142,193,148,221,74,208,236,144,106,3,32,222,95,42,211,
226,51,65,194,61,48,176,189,48,30,15,76,43,143,22,52,
87,162,5,141,162,134,143,52,162,26,62,178,124,53,252,171,
233,63,185,107,181,175,191,78,120,186,117,185,78,222,128,130,
117,162,227,32,146,252,178,173,2,245,98,230,236,75,181,96,
18,190,30,122,131,85,121,39,208,219,65,252,235,33,38,128,
128,118,103,145,182,180,24,250,104,108,98,104,217,27,132,93,
57,213,203,189,195,126,23,112,107,197,5,188,166,65,68,216,
153,70,20,97,103,110,117,17,118,95,52,15,216,96,205,212,
74,192,13,124,62,26,13,253,181,52,8,116,5,163,119,233,
209,213,174,72,46,70,117,228,213,170,147,165,158,193,170,237,
187,240,242,104,200,184,248,61,129,55,122,14,149,188,178,116,
37,21,79,224,141,158,67,37,112,210,94,197,11,232,255,53,
78,240,45,161,170,238,123,172,202,211,48,34,176,108,8,108,
67,74,185,110,191,14,143,172,3,106,184,194,251,38,105,180,
95,196,184,250,146,255,34,38,59,198,21,231,122,80,147,176,
80,106,4,53,249,100,35,170,201,39,111,117,53,249,84,92,
42,198,153,142,9,40,73,186,218,85,204,156,167,98,240,232,
176,229,170,152,145,234,174,13,232,136,165,159,122,26,34,172,
72,69,63,44,253,148,107,7,159,10,113,139,44,46,165,167,
106,159,195,10,10,156,180,21,16,110,50,14,20,191,226,237,
61,174,2,3,6,120,82,84,205,179,197,240,87,22,177,61,
24,211,69,159,229,230,62,244,28,109,225,79,160,177,175,19,
87,25,34,67,7,244,160,83,84,168,22,132,205,138,79,72,
181,1,176,138,247,9,52,33,120,87,207,26,102,177,92,80,
194,21,33,252,250,117,197,155,86,41,158,130,235,63,78,173,
129,84,81,177,17,85,81,241,86,87,69,70,52,85,212,29,
156,15,57,70,148,168,77,47,232,120,183,77,107,181,107,162,
5,79,19,129,25,189,28,77,244,115,175,123,65,230,186,130,
209,215,203,66,229,226,207,88,149,133,42,71,152,35,11,241,
116,201,146,98,90,244,254,37,183,4,192,15,54,98,223,18,
224,138,79,190,37,0,54,66,54,187,27,33,27,200,73,255,
92,35,202,203,231,150,47,47,5,196,202,97,122,64,172,60,
200,133,78,247,252,9,36,137,196,202,223,211,40,177,242,247,
123,146,169,119,41,201,20,226,129,9,118,118,46,95,84,74,
158,7,38,236,153,23,87,101,95,236,117,181,133,252,129,203,
27,60,6,139,241,31,185,176,12,156,99,18,28,124,145,178,
241,23,172,202,103,161,19,187,136,47,122,233,196,41,131,210,
241,237,104,229,210,108,248,66,35,10,194,23,150,47,8,127,
53,13,199,15,174,118,187,235,35,43,139,86,6,197,88,173,
147,57,236,153,231,100,14,21,75,194,77,54,137,81,254,91,
161,177,75,16,9,23,202,118,169,108,215,10,163,185,149,8,
163,27,30,4,14,25,223,207,45,221,223,166,116,129,108,106,
107,16,217,244,177,70,148,77,31,187,213,101,211,75,171,93,
54,125,210,99,171,21,172,185,59,188,73,156,155,166,12,1,
145,191,70,196,6,63,21,205,103,208,86,193,159,234,170,72,
119,1,107,238,51,209,112,247,245,253,130,82,208,132,97,239,
94,251,164,169,175,84,225,159,34,55,123,254,162,159,132,224,
185,31,245,63,117,17,79,108,248,92,133,4,60,227,237,166,
206,250,112,181,171,67,128,239,200,136,86,86,169,12,63,192,
145,219,33,41,19,33,154,182,153,181,245,123,64,14,172,68,
131,135,11,194,31,110,101,45,48,19,0,175,239,171,85,185,
191,43,45,219,59,226,42,222,27,158,112,224,106,218,54,174,
105,219,249,143,63,59,248,177,124,157,252,88,190,46,126,44,
95,55,63,150,175,135,223,186,209,203,111,221,232,227,183,110,
244,243,91,55,6,248,173,27,131,252,214,141,33,126,235,198,
48,191,117,99,45,191,117,99,196,189,104,20,238,225,24,113,
239,225,112,238,3,133,88,235,168,27,107,117,46,254,204,110,
32,234,122,204,108,116,111,248,132,187,78,55,98,102,147,123,
149,39,156,68,184,137,159,68,184,153,159,68,184,133,159,68,
184,149,159,68,184,141,159,68,184,157,159,68,184,131,159,68,
56,193,79,34,220,89,57,137,16,174,36,221,235,94,176,153,
157,4,219,100,55,105,12,219,228,79,27,209,54,241,144,126,
107,219,228,38,69,115,159,127,174,225,169,169,120,76,156,32,
1,13,251,234,120,155,95,188,145,249,209,230,13,205,245,42,
35,164,71,18,103,132,192,225,171,95,138,166,10,7,3,253,
157,131,187,136,224,88,42,113,135,203,59,23,216,121,205,126,
57,26,57,125,85,228,76,27,70,65,244,65,249,78,155,175,
70,35,164,183,138,144,2,213,197,209,225,28,24,140,77,126,
197,71,134,255,66,50,36,163,159,4,45,21,231,114,177,240,
195,162,253,196,176,85,184,85,208,242,112,254,122,229,106,31,
9,231,30,164,243,245,165,174,131,184,87,38,186,56,124,53,
178,49,86,77,159,85,161,79,160,89,230,18,86,105,252,181,
122,140,29,51,221,106,198,78,94,11,214,218,136,36,134,192,
10,6,95,139,60,114,213,226,143,213,205,228,127,81,240,192,
181,115,186,156,182,191,17,59,89,140,217,19,35,203,107,251,
245,216,201,178,18,36,203,107,251,91,209,4,125,103,128,166,
146,81,18,185,148,102,205,125,199,135,62,183,62,111,238,0,
202,158,0,5,206,239,91,69,222,171,129,65,194,55,162,141,
66,119,128,6,90,44,217,194,110,59,194,75,155,160,193,239,
70,35,161,43,64,130,232,221,234,223,143,204,70,85,248,95,
86,74,62,38,170,251,178,198,57,125,133,53,250,131,56,25,
73,164,103,15,157,39,63,140,83,24,137,243,235,161,207,231,
205,104,184,7,197,144,41,212,169,138,231,212,97,139,255,26,
231,36,54,5,122,86,129,255,161,189,31,197,201,255,249,2,
85,132,45,222,241,84,116,104,240,199,209,72,24,14,144,48,
11,23,8,23,10,70,94,164,31,2,144,12,52,252,147,56,
151,197,76,235,231,166,21,113,135,189,195,178,152,183,249,211,
200,70,96,149,170,54,21,139,10,53,255,80,95,67,171,255,
85,69,10,191,192,30,73,57,93,33,133,209,65,200,181,84,
112,183,84,170,102,183,212,61,184,91,42,245,86,187,165,96,
176,97,183,148,215,5,213,27,165,170,98,117,98,118,75,253,
66,34,124,183,84,55,223,45,181,50,51,160,63,200,170,101,
107,206,225,85,129,6,165,115,120,55,111,25,104,136,77,32,
206,152,134,46,244,128,124,108,48,29,141,132,160,82,18,41,
57,64,41,65,123,45,62,2,86,236,201,168,90,167,88,150,
54,171,251,102,203,113,49,188,133,103,0,97,219,153,84,84,
81,88,101,242,80,52,250,69,202,66,247,124,94,214,108,71,
204,196,104,186,69,77,161,81,77,36,198,105,182,59,218,124,
169,18,97,76,243,9,157,246,40,189,120,163,125,62,82,86,
38,144,7,72,141,64,118,200,17,41,145,65,181,84,154,30,
140,76,84,245,204,41,26,11,98,111,159,118,102,14,52,187,
54,26,179,5,41,41,235,218,51,194,142,251,68,34,156,22,
71,163,17,17,140,118,152,116,129,154,150,208,123,112,220,38,
55,196,169,40,45,195,20,122,217,52,180,183,41,242,204,8,
218,43,69,106,206,138,157,24,96,180,96,171,91,67,198,66,
226,164,172,134,237,95,59,82,110,16,124,2,110,254,120,139,
141,247,16,22,198,120,173,220,7,185,1,72,134,32,89,7,
9,28,158,37,111,128,100,28,146,205,144,108,133,100,187,196,
109,251,157,144,251,20,182,1,185,202,78,153,125,144,28,128,
4,78,205,147,239,128,4,206,188,145,143,66,130,59,112,238,
134,220,61,144,156,132,228,20,36,112,202,137,12,39,125,200,
231,32,121,16,146,135,33,185,0,9,28,62,33,79,65,2,
199,129,86,36,141,187,113,167,178,248,16,185,35,182,139,161,
242,5,88,104,92,36,238,70,253,84,200,173,42,55,254,107,
93,250,170,208,140,132,139,171,5,252,237,106,78,53,202,12,
183,218,221,62,170,244,246,110,159,184,119,251,208,29,16,243,
133,189,61,219,220,189,61,242,212,196,118,210,24,27,120,110,
227,98,160,145,54,240,120,72,199,190,129,103,168,122,10,137,
222,196,131,162,118,242,70,202,99,245,108,222,217,31,205,222,
24,169,233,107,241,27,120,80,159,29,140,70,71,45,207,8,
222,185,131,250,248,112,52,34,6,67,136,16,185,107,7,205,
137,163,113,56,74,214,133,80,18,182,101,71,208,182,15,52,
145,238,142,236,95,8,163,42,153,141,58,104,238,157,168,215,
72,37,184,65,7,77,216,83,145,71,42,76,172,37,178,49,
7,173,241,179,117,161,39,145,29,57,184,176,56,87,23,122,
18,217,138,131,107,164,135,162,187,30,130,196,136,219,131,131,
203,187,11,177,120,232,130,36,36,180,9,71,142,54,20,253,
53,116,136,220,136,131,43,236,199,162,81,208,87,67,129,232,
125,56,79,68,230,166,16,26,4,239,197,65,15,199,83,113,
243,146,240,189,56,239,140,91,48,9,222,143,163,68,195,191,
86,42,9,221,147,131,126,49,53,238,233,44,112,71,14,250,
244,102,227,158,5,34,119,228,160,67,114,62,26,5,163,53,
20,36,177,33,7,189,170,197,184,23,185,130,247,225,160,87,
184,20,217,250,11,209,210,162,247,224,160,107,219,170,162,68,
204,246,27,144,202,176,253,38,208,3,171,98,11,206,66,138,
196,180,5,103,184,150,83,147,216,134,131,97,139,107,113,11,
64,145,161,120,140,185,188,39,110,29,36,82,100,64,188,232,
122,28,158,138,144,53,74,50,27,112,48,250,245,190,200,82,
48,196,186,17,190,253,6,99,120,191,89,7,82,196,111,190,
193,72,228,11,145,215,46,181,62,88,54,42,212,12,236,237,
56,94,111,90,220,13,5,216,238,135,226,182,25,242,74,73,
201,107,226,126,157,2,123,119,121,155,31,14,33,198,11,170,
172,134,136,252,71,83,60,34,15,191,254,111,220,136,252,101,
72,22,37,255,4,117,3,239,65,179,67,100,240,253,113,134,
206,110,232,223,7,72,108,193,247,170,144,187,101,155,154,62,
251,118,200,253,237,144,251,91,204,243,151,248,60,111,164,144,
187,135,116,61,67,238,206,20,74,36,228,254,242,141,180,195,
234,9,185,255,65,52,141,236,139,125,184,125,157,80,200,253,
211,177,89,22,30,29,226,67,238,159,141,70,196,96,8,17,
194,67,238,127,20,199,242,104,93,8,37,73,135,220,63,31,
121,101,17,70,85,130,33,247,47,212,107,164,146,14,185,255,
89,228,145,10,19,107,201,133,220,191,84,23,122,146,11,185,
127,185,46,244,36,23,114,127,53,154,216,238,173,33,70,112,
200,253,43,145,29,13,3,53,36,36,20,114,255,106,180,161,
232,175,161,67,120,200,253,181,104,20,244,213,80,32,58,228,
254,181,200,220,20,66,67,18,33,247,111,196,205,75,194,67,
238,175,199,45,152,4,135,220,191,21,13,255,90,169,36,62,
228,254,157,184,167,179,232,144,251,27,113,207,2,225,33,247,
239,70,163,96,180,134,130,196,66,238,223,143,123,145,155,68,
200,253,7,145,173,191,16,45,157,72,200,253,135,85,148,36,
18,114,119,122,96,85,132,220,223,76,213,33,228,206,57,53,
177,144,251,191,197,45,0,133,135,220,255,61,110,29,36,58,
228,254,31,113,120,42,66,214,40,9,134,220,255,51,178,20,
12,177,110,146,9,185,255,188,14,164,36,20,114,255,101,228,
181,75,173,15,54,129,144,59,70,76,255,55,110,99,65,112,
172,29,35,190,208,251,171,58,198,158,78,223,34,49,118,215,
206,16,25,99,135,123,25,63,158,138,63,198,222,93,97,237,
211,75,94,242,249,118,148,253,237,40,123,96,166,175,225,51,
189,145,162,236,30,210,177,71,217,215,214,78,162,68,226,236,
237,55,210,16,171,39,206,222,25,130,230,202,156,16,94,111,
39,20,105,239,137,70,73,24,223,36,17,107,239,143,70,198,
112,40,25,194,163,237,67,62,42,86,188,50,26,11,165,37,
233,120,251,72,213,0,221,252,178,34,156,174,4,35,238,99,
245,27,173,164,99,238,27,35,143,86,184,136,75,46,234,190,
185,78,20,37,23,119,223,86,39,138,146,139,188,79,68,19,
226,253,33,228,8,142,189,239,246,81,176,50,143,195,80,8,
17,9,69,223,247,70,27,142,193,16,74,132,199,223,247,71,
163,97,32,132,6,209,17,248,131,145,121,42,148,138,36,98,
240,135,227,231,40,225,81,248,163,241,11,41,193,113,248,187,
163,81,16,38,161,196,71,226,79,196,63,177,69,199,226,79,
197,63,27,132,71,227,207,70,163,97,125,8,13,137,197,227,
207,197,191,20,78,34,34,255,80,100,187,48,84,115,39,18,
147,191,80,69,139,152,152,60,200,104,95,76,158,247,193,170,
136,202,203,233,184,162,242,190,93,183,21,126,77,44,46,255,
100,252,194,80,120,100,254,233,248,117,146,232,216,124,46,14,
159,70,232,26,38,193,232,252,116,100,137,24,106,243,36,19,
159,167,117,33,38,161,8,253,92,228,181,77,152,231,54,169,
24,253,165,248,13,136,36,162,244,250,106,143,210,63,243,171,
25,165,135,121,25,140,210,123,150,135,200,56,253,203,12,161,
214,116,236,113,250,149,238,85,83,23,117,165,168,229,115,83,
121,165,160,152,231,244,25,3,139,225,165,16,112,72,127,125,
59,227,47,88,91,11,209,166,181,159,136,119,224,184,122,68,
200,112,59,119,125,9,248,75,214,194,179,209,8,232,241,17,
0,28,41,18,253,191,98,45,188,59,186,191,34,216,255,162,
137,120,141,181,240,222,232,182,97,144,136,3,170,72,18,254,
154,181,240,190,232,158,47,78,194,89,195,44,150,11,138,72,
10,254,134,181,240,129,248,56,105,170,164,152,22,189,95,48,
39,193,157,240,31,244,17,65,220,255,60,245,220,230,17,81,
189,203,6,41,232,64,161,169,217,83,90,113,10,234,20,160,
78,190,206,112,248,112,100,51,111,141,139,248,69,122,197,177,
82,17,50,163,21,40,27,14,42,95,171,59,25,127,203,48,
122,49,66,207,67,172,205,164,179,140,95,168,249,8,54,128,
3,112,191,162,171,5,106,138,24,136,191,99,40,189,84,69,
1,159,0,247,213,76,128,23,194,136,232,2,212,242,115,84,
5,220,207,44,80,190,188,174,255,98,225,155,172,157,79,70,
87,99,37,106,106,134,170,229,1,255,211,229,162,19,27,196,
155,190,156,39,245,37,226,117,214,218,167,35,206,222,114,73,
85,108,138,125,47,130,105,254,158,225,240,74,4,148,193,41,
86,50,141,60,181,44,153,173,202,236,71,203,180,76,5,224,
253,45,134,200,31,71,192,187,167,130,55,240,137,40,180,191,
205,240,248,194,202,209,150,11,68,200,18,1,154,249,98,132,
222,133,51,228,152,224,102,77,170,2,176,253,7,214,252,159,
71,192,22,174,156,196,202,30,98,210,91,0,190,223,97,8,
188,90,193,23,125,102,26,228,53,188,196,179,130,192,59,0,
59,120,106,45,90,50,64,228,110,226,87,152,140,129,153,88,
179,23,113,93,140,100,156,103,202,242,140,105,26,166,188,25,
74,110,129,4,118,236,202,59,8,95,52,131,91,88,158,228,
47,228,116,122,57,95,80,216,236,5,5,38,223,14,201,65,
226,234,179,41,134,246,35,139,231,220,109,162,57,160,130,171,
56,89,225,179,255,28,222,22,232,123,132,43,183,252,130,226,
100,116,67,167,238,90,78,179,145,49,84,205,42,21,148,69,
249,19,156,186,146,58,131,255,207,179,255,55,57,5,108,148,
217,186,1,251,37,241,82,61,86,141,162,227,235,172,190,130,
198,234,132,65,205,113,87,144,42,127,8,48,127,145,184,30,
163,202,98,50,136,245,203,188,64,101,161,22,196,29,76,192,
211,116,65,83,108,205,208,241,81,222,208,217,200,233,54,118,
151,247,8,73,135,117,70,176,76,147,11,197,199,247,135,62,
6,168,252,121,226,250,180,125,241,122,31,154,111,248,31,215,
82,241,61,62,64,193,229,78,176,208,155,196,141,1,248,151,
19,193,34,63,35,174,87,202,103,174,7,75,252,194,99,5,
207,28,174,197,86,146,106,10,213,214,212,44,185,75,132,11,
101,187,84,182,131,15,225,110,60,236,122,223,253,147,254,231,
112,124,95,200,117,49,129,50,207,85,149,241,206,34,240,15,
191,180,196,142,188,64,41,240,9,224,186,26,87,167,184,186,
195,245,17,46,49,208,68,71,163,23,77,70,180,186,208,122,
65,237,143,250,20,149,19,138,122,20,164,40,159,112,210,215,
95,182,160,88,56,86,52,212,114,129,30,111,135,54,254,135,
37,61,82,135,148,233,206,72,45,169,14,41,205,254,218,164,
78,169,41,221,209,147,105,234,104,207,52,101,90,211,82,11,
194,250,83,109,77,153,246,161,163,25,169,45,53,180,135,165,
82,38,252,15,28,70,169,161,94,44,55,194,210,116,39,131,
185,255,36,132,164,134,50,152,246,250,210,118,76,187,124,79,
7,48,125,22,211,75,85,105,218,105,101,121,127,29,75,62,
249,127,31,203,181,23,
};
EmbeddedPython embedded_m5_internal_stats(
"m5/internal/stats.py",
"/mnt/hgfs/ShareShen/gem5-origin-stable-2015-9-3/build/x86/python/swig/stats.py",
"m5.internal.stats",
data_m5_internal_stats,
8182,
68188);
} // anonymous namespace
|
/*
* Copyright (c) 2000, 2020, Oracle and/or its affiliates.
*
* Licensed under the Universal Permissive License v 1.0 as shown at
* http://oss.oracle.com/licenses/upl.
*/
#ifndef COH_THROWABLE_POF_SERIALIZER_HPP
#define COH_THROWABLE_POF_SERIALIZER_HPP
#include "coherence/lang.ns"
#include "coherence/io/pof/PofReader.hpp"
#include "coherence/io/pof/PofWriter.hpp"
#include "coherence/util/Collection.hpp"
COH_OPEN_NAMESPACE3(coherence,io,pof)
using coherence::util::Collection;
/**
* PofSerializer implementation that can serialize and deserialize an
* Exception to/from a POF stream.
*
* This serializer is provides a catch-all mechanism for serializing exceptions.
* Any deserialized exception will loose type information, and simply be
* represented as a PortableException. The basic detail information of the
* exception are retained.
*
* PortableException and this class work asymmetricly to provide the
* serialization routines for exceptions.
*
* @author mf 2008.08.25
*/
class COH_EXPORT ThrowablePofSerializer
: public class_spec<ThrowablePofSerializer,
extends<Object>,
implements<PofSerializer> >
{
friend class factory<ThrowablePofSerializer>;
// ----- constructors ---------------------------------------------------
protected:
/**
* Default constructor.
*/
ThrowablePofSerializer();
// ----- PofSerializer interface ----------------------------------------
public:
/**
* {@inheritDoc}
*/
virtual void serialize(PofWriter::Handle hOut, Object::View v) const;
/**
* {@inheritDoc}
*/
virtual Object::Holder deserialize(PofReader::Handle hIn) const;
// ----- helpers --------------------------------------------------------
public:
/**
* Write the Exception to the specified stream.
*
* @param hOut the stream to write to
* @param ve the Exception to write
*/
static void writeThrowable(PofWriter::Handle hOut, Exception::View ve);
};
COH_CLOSE_NAMESPACE3
#endif // COH_THROWABLE_POF_SERIALIZER_HPP
|
bits 64
default rel
section .text
global pal_execute_read_ldtr
pal_execute_read_ldtr :
xor rax, rax
sldt ax
ret
|
//---------------------------------------------------------------------------
// Greenplum Database
// Copyright (C) 2013 EMC Corp.
//
// @filename:
// CPhysicalLeftAntiSemiHashJoinNotIn.cpp
//
// @doc:
// Implementation of left anti semi hash join operator with NotIn semantics
//---------------------------------------------------------------------------
#include "gpos/base.h"
#include "gpopt/base/CDistributionSpecReplicated.h"
#include "gpopt/operators/CPhysicalLeftAntiSemiHashJoinNotIn.h"
#include "gpopt/operators/CExpressionHandle.h"
using namespace gpopt;
//---------------------------------------------------------------------------
// @function:
// CPhysicalLeftAntiSemiHashJoinNotIn::CPhysicalLeftAntiSemiHashJoinNotIn
//
// @doc:
// Ctor
//
//---------------------------------------------------------------------------
CPhysicalLeftAntiSemiHashJoinNotIn::CPhysicalLeftAntiSemiHashJoinNotIn(
CMemoryPool *mp, CExpressionArray *pdrgpexprOuterKeys,
CExpressionArray *pdrgpexprInnerKeys, IMdIdArray *hash_opfamilies)
: CPhysicalLeftAntiSemiHashJoin(mp, pdrgpexprOuterKeys, pdrgpexprInnerKeys,
hash_opfamilies)
{
}
//---------------------------------------------------------------------------
// @function:
// CPhysicalLeftAntiSemiHashJoinNotIn::PdsRequired
//
// @doc:
// Compute required distribution of the n-th child
//
//---------------------------------------------------------------------------
CDistributionSpec *
CPhysicalLeftAntiSemiHashJoinNotIn::PdsRequired(
CMemoryPool *mp, CExpressionHandle &exprhdl, CDistributionSpec *pdsInput,
ULONG child_index, CDrvdPropArray *pdrgpdpCtxt,
ULONG ulOptReq // identifies which optimization request should be created
) const
{
GPOS_ASSERT(2 > child_index);
GPOS_ASSERT(ulOptReq < UlDistrRequests());
if (0 == ulOptReq && 1 == child_index &&
(FNullableHashKeys(exprhdl.DeriveNotNullColumns(0), false /*fInner*/) ||
FNullableHashKeys(exprhdl.DeriveNotNullColumns(1), true /*fInner*/)))
{
// we need to replicate the inner if any of the following is true:
// a. if the outer hash keys are nullable, because the executor needs to detect
// whether the inner is empty, and this needs to be detected everywhere
// b. if the inner hash keys are nullable, because every segment needs to
// detect nulls coming from the inner child
return GPOS_NEW(mp) CDistributionSpecReplicated();
}
return CPhysicalHashJoin::PdsRequired(mp, exprhdl, pdsInput, child_index,
pdrgpdpCtxt, ulOptReq);
}
// EOF
|
_echo: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
#include "stat.h"
#include "user.h"
int
main(int argc, char *argv[])
{
0: 8d 4c 24 04 lea 0x4(%esp),%ecx
4: 83 e4 f0 and $0xfffffff0,%esp
7: ff 71 fc pushl -0x4(%ecx)
a: 55 push %ebp
b: 89 e5 mov %esp,%ebp
d: 56 push %esi
e: 53 push %ebx
f: 51 push %ecx
10: 83 ec 0c sub $0xc,%esp
13: 8b 01 mov (%ecx),%eax
15: 8b 51 04 mov 0x4(%ecx),%edx
int i;
for(i = 1; i < argc; i++)
18: 83 f8 01 cmp $0x1,%eax
1b: 7e 3f jle 5c <main+0x5c>
1d: 8d 5a 04 lea 0x4(%edx),%ebx
20: 8d 34 82 lea (%edx,%eax,4),%esi
23: eb 18 jmp 3d <main+0x3d>
25: 8d 76 00 lea 0x0(%esi),%esi
printf(1, "%s%s", argv[i], i+1 < argc ? " " : "\n");
28: 68 98 07 00 00 push $0x798
2d: 50 push %eax
2e: 68 9a 07 00 00 push $0x79a
33: 6a 01 push $0x1
35: e8 06 04 00 00 call 440 <printf>
3a: 83 c4 10 add $0x10,%esp
3d: 83 c3 04 add $0x4,%ebx
40: 8b 43 fc mov -0x4(%ebx),%eax
43: 39 f3 cmp %esi,%ebx
45: 75 e1 jne 28 <main+0x28>
47: 68 9f 07 00 00 push $0x79f
4c: 50 push %eax
4d: 68 9a 07 00 00 push $0x79a
52: 6a 01 push $0x1
54: e8 e7 03 00 00 call 440 <printf>
59: 83 c4 10 add $0x10,%esp
exit();
5c: e8 61 02 00 00 call 2c2 <exit>
61: 66 90 xchg %ax,%ax
63: 66 90 xchg %ax,%ax
65: 66 90 xchg %ax,%ax
67: 66 90 xchg %ax,%ax
69: 66 90 xchg %ax,%ax
6b: 66 90 xchg %ax,%ax
6d: 66 90 xchg %ax,%ax
6f: 90 nop
00000070 <strcpy>:
#include "user.h"
#include "x86.h"
char*
strcpy(char *s, const char *t)
{
70: 55 push %ebp
71: 89 e5 mov %esp,%ebp
73: 53 push %ebx
74: 8b 45 08 mov 0x8(%ebp),%eax
77: 8b 4d 0c mov 0xc(%ebp),%ecx
char *os;
os = s;
while((*s++ = *t++) != 0)
7a: 89 c2 mov %eax,%edx
7c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80: 83 c1 01 add $0x1,%ecx
83: 0f b6 59 ff movzbl -0x1(%ecx),%ebx
87: 83 c2 01 add $0x1,%edx
8a: 84 db test %bl,%bl
8c: 88 5a ff mov %bl,-0x1(%edx)
8f: 75 ef jne 80 <strcpy+0x10>
;
return os;
}
91: 5b pop %ebx
92: 5d pop %ebp
93: c3 ret
94: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
9a: 8d bf 00 00 00 00 lea 0x0(%edi),%edi
000000a0 <strcmp>:
int
strcmp(const char *p, const char *q)
{
a0: 55 push %ebp
a1: 89 e5 mov %esp,%ebp
a3: 53 push %ebx
a4: 8b 55 08 mov 0x8(%ebp),%edx
a7: 8b 4d 0c mov 0xc(%ebp),%ecx
while(*p && *p == *q)
aa: 0f b6 02 movzbl (%edx),%eax
ad: 0f b6 19 movzbl (%ecx),%ebx
b0: 84 c0 test %al,%al
b2: 75 1c jne d0 <strcmp+0x30>
b4: eb 2a jmp e0 <strcmp+0x40>
b6: 8d 76 00 lea 0x0(%esi),%esi
b9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
p++, q++;
c0: 83 c2 01 add $0x1,%edx
while(*p && *p == *q)
c3: 0f b6 02 movzbl (%edx),%eax
p++, q++;
c6: 83 c1 01 add $0x1,%ecx
c9: 0f b6 19 movzbl (%ecx),%ebx
while(*p && *p == *q)
cc: 84 c0 test %al,%al
ce: 74 10 je e0 <strcmp+0x40>
d0: 38 d8 cmp %bl,%al
d2: 74 ec je c0 <strcmp+0x20>
return (uchar)*p - (uchar)*q;
d4: 29 d8 sub %ebx,%eax
}
d6: 5b pop %ebx
d7: 5d pop %ebp
d8: c3 ret
d9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
e0: 31 c0 xor %eax,%eax
return (uchar)*p - (uchar)*q;
e2: 29 d8 sub %ebx,%eax
}
e4: 5b pop %ebx
e5: 5d pop %ebp
e6: c3 ret
e7: 89 f6 mov %esi,%esi
e9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
000000f0 <strlen>:
uint
strlen(const char *s)
{
f0: 55 push %ebp
f1: 89 e5 mov %esp,%ebp
f3: 8b 4d 08 mov 0x8(%ebp),%ecx
int n;
for(n = 0; s[n]; n++)
f6: 80 39 00 cmpb $0x0,(%ecx)
f9: 74 15 je 110 <strlen+0x20>
fb: 31 d2 xor %edx,%edx
fd: 8d 76 00 lea 0x0(%esi),%esi
100: 83 c2 01 add $0x1,%edx
103: 80 3c 11 00 cmpb $0x0,(%ecx,%edx,1)
107: 89 d0 mov %edx,%eax
109: 75 f5 jne 100 <strlen+0x10>
;
return n;
}
10b: 5d pop %ebp
10c: c3 ret
10d: 8d 76 00 lea 0x0(%esi),%esi
for(n = 0; s[n]; n++)
110: 31 c0 xor %eax,%eax
}
112: 5d pop %ebp
113: c3 ret
114: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
11a: 8d bf 00 00 00 00 lea 0x0(%edi),%edi
00000120 <memset>:
void*
memset(void *dst, int c, uint n)
{
120: 55 push %ebp
121: 89 e5 mov %esp,%ebp
123: 57 push %edi
124: 8b 55 08 mov 0x8(%ebp),%edx
}
static inline void
stosb(void *addr, int data, int cnt)
{
asm volatile("cld; rep stosb" :
127: 8b 4d 10 mov 0x10(%ebp),%ecx
12a: 8b 45 0c mov 0xc(%ebp),%eax
12d: 89 d7 mov %edx,%edi
12f: fc cld
130: f3 aa rep stos %al,%es:(%edi)
stosb(dst, c, n);
return dst;
}
132: 89 d0 mov %edx,%eax
134: 5f pop %edi
135: 5d pop %ebp
136: c3 ret
137: 89 f6 mov %esi,%esi
139: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
00000140 <strchr>:
char*
strchr(const char *s, char c)
{
140: 55 push %ebp
141: 89 e5 mov %esp,%ebp
143: 53 push %ebx
144: 8b 45 08 mov 0x8(%ebp),%eax
147: 8b 5d 0c mov 0xc(%ebp),%ebx
for(; *s; s++)
14a: 0f b6 10 movzbl (%eax),%edx
14d: 84 d2 test %dl,%dl
14f: 74 1d je 16e <strchr+0x2e>
if(*s == c)
151: 38 d3 cmp %dl,%bl
153: 89 d9 mov %ebx,%ecx
155: 75 0d jne 164 <strchr+0x24>
157: eb 17 jmp 170 <strchr+0x30>
159: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
160: 38 ca cmp %cl,%dl
162: 74 0c je 170 <strchr+0x30>
for(; *s; s++)
164: 83 c0 01 add $0x1,%eax
167: 0f b6 10 movzbl (%eax),%edx
16a: 84 d2 test %dl,%dl
16c: 75 f2 jne 160 <strchr+0x20>
return (char*)s;
return 0;
16e: 31 c0 xor %eax,%eax
}
170: 5b pop %ebx
171: 5d pop %ebp
172: c3 ret
173: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
179: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
00000180 <gets>:
char*
gets(char *buf, int max)
{
180: 55 push %ebp
181: 89 e5 mov %esp,%ebp
183: 57 push %edi
184: 56 push %esi
185: 53 push %ebx
int i, cc;
char c;
for(i=0; i+1 < max; ){
186: 31 f6 xor %esi,%esi
188: 89 f3 mov %esi,%ebx
{
18a: 83 ec 1c sub $0x1c,%esp
18d: 8b 7d 08 mov 0x8(%ebp),%edi
for(i=0; i+1 < max; ){
190: eb 2f jmp 1c1 <gets+0x41>
192: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
cc = read(0, &c, 1);
198: 8d 45 e7 lea -0x19(%ebp),%eax
19b: 83 ec 04 sub $0x4,%esp
19e: 6a 01 push $0x1
1a0: 50 push %eax
1a1: 6a 00 push $0x0
1a3: e8 32 01 00 00 call 2da <read>
if(cc < 1)
1a8: 83 c4 10 add $0x10,%esp
1ab: 85 c0 test %eax,%eax
1ad: 7e 1c jle 1cb <gets+0x4b>
break;
buf[i++] = c;
1af: 0f b6 45 e7 movzbl -0x19(%ebp),%eax
1b3: 83 c7 01 add $0x1,%edi
1b6: 88 47 ff mov %al,-0x1(%edi)
if(c == '\n' || c == '\r')
1b9: 3c 0a cmp $0xa,%al
1bb: 74 23 je 1e0 <gets+0x60>
1bd: 3c 0d cmp $0xd,%al
1bf: 74 1f je 1e0 <gets+0x60>
for(i=0; i+1 < max; ){
1c1: 83 c3 01 add $0x1,%ebx
1c4: 3b 5d 0c cmp 0xc(%ebp),%ebx
1c7: 89 fe mov %edi,%esi
1c9: 7c cd jl 198 <gets+0x18>
1cb: 89 f3 mov %esi,%ebx
break;
}
buf[i] = '\0';
return buf;
}
1cd: 8b 45 08 mov 0x8(%ebp),%eax
buf[i] = '\0';
1d0: c6 03 00 movb $0x0,(%ebx)
}
1d3: 8d 65 f4 lea -0xc(%ebp),%esp
1d6: 5b pop %ebx
1d7: 5e pop %esi
1d8: 5f pop %edi
1d9: 5d pop %ebp
1da: c3 ret
1db: 90 nop
1dc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
1e0: 8b 75 08 mov 0x8(%ebp),%esi
1e3: 8b 45 08 mov 0x8(%ebp),%eax
1e6: 01 de add %ebx,%esi
1e8: 89 f3 mov %esi,%ebx
buf[i] = '\0';
1ea: c6 03 00 movb $0x0,(%ebx)
}
1ed: 8d 65 f4 lea -0xc(%ebp),%esp
1f0: 5b pop %ebx
1f1: 5e pop %esi
1f2: 5f pop %edi
1f3: 5d pop %ebp
1f4: c3 ret
1f5: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
1f9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
00000200 <stat>:
int
stat(const char *n, struct stat *st)
{
200: 55 push %ebp
201: 89 e5 mov %esp,%ebp
203: 56 push %esi
204: 53 push %ebx
int fd;
int r;
fd = open(n, O_RDONLY);
205: 83 ec 08 sub $0x8,%esp
208: 6a 00 push $0x0
20a: ff 75 08 pushl 0x8(%ebp)
20d: e8 f0 00 00 00 call 302 <open>
if(fd < 0)
212: 83 c4 10 add $0x10,%esp
215: 85 c0 test %eax,%eax
217: 78 27 js 240 <stat+0x40>
return -1;
r = fstat(fd, st);
219: 83 ec 08 sub $0x8,%esp
21c: ff 75 0c pushl 0xc(%ebp)
21f: 89 c3 mov %eax,%ebx
221: 50 push %eax
222: e8 f3 00 00 00 call 31a <fstat>
close(fd);
227: 89 1c 24 mov %ebx,(%esp)
r = fstat(fd, st);
22a: 89 c6 mov %eax,%esi
close(fd);
22c: e8 b9 00 00 00 call 2ea <close>
return r;
231: 83 c4 10 add $0x10,%esp
}
234: 8d 65 f8 lea -0x8(%ebp),%esp
237: 89 f0 mov %esi,%eax
239: 5b pop %ebx
23a: 5e pop %esi
23b: 5d pop %ebp
23c: c3 ret
23d: 8d 76 00 lea 0x0(%esi),%esi
return -1;
240: be ff ff ff ff mov $0xffffffff,%esi
245: eb ed jmp 234 <stat+0x34>
247: 89 f6 mov %esi,%esi
249: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
00000250 <atoi>:
int
atoi(const char *s)
{
250: 55 push %ebp
251: 89 e5 mov %esp,%ebp
253: 53 push %ebx
254: 8b 4d 08 mov 0x8(%ebp),%ecx
int n;
n = 0;
while('0' <= *s && *s <= '9')
257: 0f be 11 movsbl (%ecx),%edx
25a: 8d 42 d0 lea -0x30(%edx),%eax
25d: 3c 09 cmp $0x9,%al
n = 0;
25f: b8 00 00 00 00 mov $0x0,%eax
while('0' <= *s && *s <= '9')
264: 77 1f ja 285 <atoi+0x35>
266: 8d 76 00 lea 0x0(%esi),%esi
269: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
n = n*10 + *s++ - '0';
270: 8d 04 80 lea (%eax,%eax,4),%eax
273: 83 c1 01 add $0x1,%ecx
276: 8d 44 42 d0 lea -0x30(%edx,%eax,2),%eax
while('0' <= *s && *s <= '9')
27a: 0f be 11 movsbl (%ecx),%edx
27d: 8d 5a d0 lea -0x30(%edx),%ebx
280: 80 fb 09 cmp $0x9,%bl
283: 76 eb jbe 270 <atoi+0x20>
return n;
}
285: 5b pop %ebx
286: 5d pop %ebp
287: c3 ret
288: 90 nop
289: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
00000290 <memmove>:
void*
memmove(void *vdst, const void *vsrc, int n)
{
290: 55 push %ebp
291: 89 e5 mov %esp,%ebp
293: 56 push %esi
294: 53 push %ebx
295: 8b 5d 10 mov 0x10(%ebp),%ebx
298: 8b 45 08 mov 0x8(%ebp),%eax
29b: 8b 75 0c mov 0xc(%ebp),%esi
char *dst;
const char *src;
dst = vdst;
src = vsrc;
while(n-- > 0)
29e: 85 db test %ebx,%ebx
2a0: 7e 14 jle 2b6 <memmove+0x26>
2a2: 31 d2 xor %edx,%edx
2a4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
*dst++ = *src++;
2a8: 0f b6 0c 16 movzbl (%esi,%edx,1),%ecx
2ac: 88 0c 10 mov %cl,(%eax,%edx,1)
2af: 83 c2 01 add $0x1,%edx
while(n-- > 0)
2b2: 39 d3 cmp %edx,%ebx
2b4: 75 f2 jne 2a8 <memmove+0x18>
return vdst;
}
2b6: 5b pop %ebx
2b7: 5e pop %esi
2b8: 5d pop %ebp
2b9: c3 ret
000002ba <fork>:
name: \
movl $SYS_ ## name, %eax; \
int $T_SYSCALL; \
ret
SYSCALL(fork)
2ba: b8 01 00 00 00 mov $0x1,%eax
2bf: cd 40 int $0x40
2c1: c3 ret
000002c2 <exit>:
SYSCALL(exit)
2c2: b8 02 00 00 00 mov $0x2,%eax
2c7: cd 40 int $0x40
2c9: c3 ret
000002ca <wait>:
SYSCALL(wait)
2ca: b8 03 00 00 00 mov $0x3,%eax
2cf: cd 40 int $0x40
2d1: c3 ret
000002d2 <pipe>:
SYSCALL(pipe)
2d2: b8 04 00 00 00 mov $0x4,%eax
2d7: cd 40 int $0x40
2d9: c3 ret
000002da <read>:
SYSCALL(read)
2da: b8 05 00 00 00 mov $0x5,%eax
2df: cd 40 int $0x40
2e1: c3 ret
000002e2 <write>:
SYSCALL(write)
2e2: b8 10 00 00 00 mov $0x10,%eax
2e7: cd 40 int $0x40
2e9: c3 ret
000002ea <close>:
SYSCALL(close)
2ea: b8 15 00 00 00 mov $0x15,%eax
2ef: cd 40 int $0x40
2f1: c3 ret
000002f2 <kill>:
SYSCALL(kill)
2f2: b8 06 00 00 00 mov $0x6,%eax
2f7: cd 40 int $0x40
2f9: c3 ret
000002fa <exec>:
SYSCALL(exec)
2fa: b8 07 00 00 00 mov $0x7,%eax
2ff: cd 40 int $0x40
301: c3 ret
00000302 <open>:
SYSCALL(open)
302: b8 0f 00 00 00 mov $0xf,%eax
307: cd 40 int $0x40
309: c3 ret
0000030a <mknod>:
SYSCALL(mknod)
30a: b8 11 00 00 00 mov $0x11,%eax
30f: cd 40 int $0x40
311: c3 ret
00000312 <unlink>:
SYSCALL(unlink)
312: b8 12 00 00 00 mov $0x12,%eax
317: cd 40 int $0x40
319: c3 ret
0000031a <fstat>:
SYSCALL(fstat)
31a: b8 08 00 00 00 mov $0x8,%eax
31f: cd 40 int $0x40
321: c3 ret
00000322 <link>:
SYSCALL(link)
322: b8 13 00 00 00 mov $0x13,%eax
327: cd 40 int $0x40
329: c3 ret
0000032a <mkdir>:
SYSCALL(mkdir)
32a: b8 14 00 00 00 mov $0x14,%eax
32f: cd 40 int $0x40
331: c3 ret
00000332 <chdir>:
SYSCALL(chdir)
332: b8 09 00 00 00 mov $0x9,%eax
337: cd 40 int $0x40
339: c3 ret
0000033a <dup>:
SYSCALL(dup)
33a: b8 0a 00 00 00 mov $0xa,%eax
33f: cd 40 int $0x40
341: c3 ret
00000342 <getpid>:
SYSCALL(getpid)
342: b8 0b 00 00 00 mov $0xb,%eax
347: cd 40 int $0x40
349: c3 ret
0000034a <sbrk>:
SYSCALL(sbrk)
34a: b8 0c 00 00 00 mov $0xc,%eax
34f: cd 40 int $0x40
351: c3 ret
00000352 <sleep>:
SYSCALL(sleep)
352: b8 0d 00 00 00 mov $0xd,%eax
357: cd 40 int $0x40
359: c3 ret
0000035a <uptime>:
SYSCALL(uptime)
35a: b8 0e 00 00 00 mov $0xe,%eax
35f: cd 40 int $0x40
361: c3 ret
00000362 <hello>:
SYSCALL(hello)
362: b8 16 00 00 00 mov $0x16,%eax
367: cd 40 int $0x40
369: c3 ret
0000036a <helloname>:
SYSCALL(helloname)
36a: b8 17 00 00 00 mov $0x17,%eax
36f: cd 40 int $0x40
371: c3 ret
00000372 <getnumproc>:
SYSCALL(getnumproc)
372: b8 18 00 00 00 mov $0x18,%eax
377: cd 40 int $0x40
379: c3 ret
0000037a <getmaxpid>:
SYSCALL(getmaxpid)
37a: b8 19 00 00 00 mov $0x19,%eax
37f: cd 40 int $0x40
381: c3 ret
00000382 <getprocinfo>:
SYSCALL(getprocinfo)
382: b8 1a 00 00 00 mov $0x1a,%eax
387: cd 40 int $0x40
389: c3 ret
0000038a <setprio>:
SYSCALL(setprio)
38a: b8 1b 00 00 00 mov $0x1b,%eax
38f: cd 40 int $0x40
391: c3 ret
00000392 <getprio>:
SYSCALL(getprio)
392: b8 1c 00 00 00 mov $0x1c,%eax
397: cd 40 int $0x40
399: c3 ret
39a: 66 90 xchg %ax,%ax
39c: 66 90 xchg %ax,%ax
39e: 66 90 xchg %ax,%ax
000003a0 <printint>:
write(fd, &c, 1);
}
static void
printint(int fd, int xx, int base, int sgn)
{
3a0: 55 push %ebp
3a1: 89 e5 mov %esp,%ebp
3a3: 57 push %edi
3a4: 56 push %esi
3a5: 53 push %ebx
3a6: 83 ec 3c sub $0x3c,%esp
char buf[16];
int i, neg;
uint x;
neg = 0;
if(sgn && xx < 0){
3a9: 85 d2 test %edx,%edx
{
3ab: 89 45 c0 mov %eax,-0x40(%ebp)
neg = 1;
x = -xx;
3ae: 89 d0 mov %edx,%eax
if(sgn && xx < 0){
3b0: 79 76 jns 428 <printint+0x88>
3b2: f6 45 08 01 testb $0x1,0x8(%ebp)
3b6: 74 70 je 428 <printint+0x88>
x = -xx;
3b8: f7 d8 neg %eax
neg = 1;
3ba: c7 45 c4 01 00 00 00 movl $0x1,-0x3c(%ebp)
} else {
x = xx;
}
i = 0;
3c1: 31 f6 xor %esi,%esi
3c3: 8d 5d d7 lea -0x29(%ebp),%ebx
3c6: eb 0a jmp 3d2 <printint+0x32>
3c8: 90 nop
3c9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
do{
buf[i++] = digits[x % base];
3d0: 89 fe mov %edi,%esi
3d2: 31 d2 xor %edx,%edx
3d4: 8d 7e 01 lea 0x1(%esi),%edi
3d7: f7 f1 div %ecx
3d9: 0f b6 92 a8 07 00 00 movzbl 0x7a8(%edx),%edx
}while((x /= base) != 0);
3e0: 85 c0 test %eax,%eax
buf[i++] = digits[x % base];
3e2: 88 14 3b mov %dl,(%ebx,%edi,1)
}while((x /= base) != 0);
3e5: 75 e9 jne 3d0 <printint+0x30>
if(neg)
3e7: 8b 45 c4 mov -0x3c(%ebp),%eax
3ea: 85 c0 test %eax,%eax
3ec: 74 08 je 3f6 <printint+0x56>
buf[i++] = '-';
3ee: c6 44 3d d8 2d movb $0x2d,-0x28(%ebp,%edi,1)
3f3: 8d 7e 02 lea 0x2(%esi),%edi
3f6: 8d 74 3d d7 lea -0x29(%ebp,%edi,1),%esi
3fa: 8b 7d c0 mov -0x40(%ebp),%edi
3fd: 8d 76 00 lea 0x0(%esi),%esi
400: 0f b6 06 movzbl (%esi),%eax
write(fd, &c, 1);
403: 83 ec 04 sub $0x4,%esp
406: 83 ee 01 sub $0x1,%esi
409: 6a 01 push $0x1
40b: 53 push %ebx
40c: 57 push %edi
40d: 88 45 d7 mov %al,-0x29(%ebp)
410: e8 cd fe ff ff call 2e2 <write>
while(--i >= 0)
415: 83 c4 10 add $0x10,%esp
418: 39 de cmp %ebx,%esi
41a: 75 e4 jne 400 <printint+0x60>
putc(fd, buf[i]);
}
41c: 8d 65 f4 lea -0xc(%ebp),%esp
41f: 5b pop %ebx
420: 5e pop %esi
421: 5f pop %edi
422: 5d pop %ebp
423: c3 ret
424: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
neg = 0;
428: c7 45 c4 00 00 00 00 movl $0x0,-0x3c(%ebp)
42f: eb 90 jmp 3c1 <printint+0x21>
431: eb 0d jmp 440 <printf>
433: 90 nop
434: 90 nop
435: 90 nop
436: 90 nop
437: 90 nop
438: 90 nop
439: 90 nop
43a: 90 nop
43b: 90 nop
43c: 90 nop
43d: 90 nop
43e: 90 nop
43f: 90 nop
00000440 <printf>:
// Print to the given fd. Only understands %d, %x, %p, %s.
void
printf(int fd, const char *fmt, ...)
{
440: 55 push %ebp
441: 89 e5 mov %esp,%ebp
443: 57 push %edi
444: 56 push %esi
445: 53 push %ebx
446: 83 ec 2c sub $0x2c,%esp
int c, i, state;
uint *ap;
state = 0;
ap = (uint*)(void*)&fmt + 1;
for(i = 0; fmt[i]; i++){
449: 8b 75 0c mov 0xc(%ebp),%esi
44c: 0f b6 1e movzbl (%esi),%ebx
44f: 84 db test %bl,%bl
451: 0f 84 b3 00 00 00 je 50a <printf+0xca>
ap = (uint*)(void*)&fmt + 1;
457: 8d 45 10 lea 0x10(%ebp),%eax
45a: 83 c6 01 add $0x1,%esi
state = 0;
45d: 31 ff xor %edi,%edi
ap = (uint*)(void*)&fmt + 1;
45f: 89 45 d4 mov %eax,-0x2c(%ebp)
462: eb 2f jmp 493 <printf+0x53>
464: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
c = fmt[i] & 0xff;
if(state == 0){
if(c == '%'){
468: 83 f8 25 cmp $0x25,%eax
46b: 0f 84 a7 00 00 00 je 518 <printf+0xd8>
write(fd, &c, 1);
471: 8d 45 e2 lea -0x1e(%ebp),%eax
474: 83 ec 04 sub $0x4,%esp
477: 88 5d e2 mov %bl,-0x1e(%ebp)
47a: 6a 01 push $0x1
47c: 50 push %eax
47d: ff 75 08 pushl 0x8(%ebp)
480: e8 5d fe ff ff call 2e2 <write>
485: 83 c4 10 add $0x10,%esp
488: 83 c6 01 add $0x1,%esi
for(i = 0; fmt[i]; i++){
48b: 0f b6 5e ff movzbl -0x1(%esi),%ebx
48f: 84 db test %bl,%bl
491: 74 77 je 50a <printf+0xca>
if(state == 0){
493: 85 ff test %edi,%edi
c = fmt[i] & 0xff;
495: 0f be cb movsbl %bl,%ecx
498: 0f b6 c3 movzbl %bl,%eax
if(state == 0){
49b: 74 cb je 468 <printf+0x28>
state = '%';
} else {
putc(fd, c);
}
} else if(state == '%'){
49d: 83 ff 25 cmp $0x25,%edi
4a0: 75 e6 jne 488 <printf+0x48>
if(c == 'd'){
4a2: 83 f8 64 cmp $0x64,%eax
4a5: 0f 84 05 01 00 00 je 5b0 <printf+0x170>
printint(fd, *ap, 10, 1);
ap++;
} else if(c == 'x' || c == 'p'){
4ab: 81 e1 f7 00 00 00 and $0xf7,%ecx
4b1: 83 f9 70 cmp $0x70,%ecx
4b4: 74 72 je 528 <printf+0xe8>
printint(fd, *ap, 16, 0);
ap++;
} else if(c == 's'){
4b6: 83 f8 73 cmp $0x73,%eax
4b9: 0f 84 99 00 00 00 je 558 <printf+0x118>
s = "(null)";
while(*s != 0){
putc(fd, *s);
s++;
}
} else if(c == 'c'){
4bf: 83 f8 63 cmp $0x63,%eax
4c2: 0f 84 08 01 00 00 je 5d0 <printf+0x190>
putc(fd, *ap);
ap++;
} else if(c == '%'){
4c8: 83 f8 25 cmp $0x25,%eax
4cb: 0f 84 ef 00 00 00 je 5c0 <printf+0x180>
write(fd, &c, 1);
4d1: 8d 45 e7 lea -0x19(%ebp),%eax
4d4: 83 ec 04 sub $0x4,%esp
4d7: c6 45 e7 25 movb $0x25,-0x19(%ebp)
4db: 6a 01 push $0x1
4dd: 50 push %eax
4de: ff 75 08 pushl 0x8(%ebp)
4e1: e8 fc fd ff ff call 2e2 <write>
4e6: 83 c4 0c add $0xc,%esp
4e9: 8d 45 e6 lea -0x1a(%ebp),%eax
4ec: 88 5d e6 mov %bl,-0x1a(%ebp)
4ef: 6a 01 push $0x1
4f1: 50 push %eax
4f2: ff 75 08 pushl 0x8(%ebp)
4f5: 83 c6 01 add $0x1,%esi
} else {
// Unknown % sequence. Print it to draw attention.
putc(fd, '%');
putc(fd, c);
}
state = 0;
4f8: 31 ff xor %edi,%edi
write(fd, &c, 1);
4fa: e8 e3 fd ff ff call 2e2 <write>
for(i = 0; fmt[i]; i++){
4ff: 0f b6 5e ff movzbl -0x1(%esi),%ebx
write(fd, &c, 1);
503: 83 c4 10 add $0x10,%esp
for(i = 0; fmt[i]; i++){
506: 84 db test %bl,%bl
508: 75 89 jne 493 <printf+0x53>
}
}
}
50a: 8d 65 f4 lea -0xc(%ebp),%esp
50d: 5b pop %ebx
50e: 5e pop %esi
50f: 5f pop %edi
510: 5d pop %ebp
511: c3 ret
512: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
state = '%';
518: bf 25 00 00 00 mov $0x25,%edi
51d: e9 66 ff ff ff jmp 488 <printf+0x48>
522: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
printint(fd, *ap, 16, 0);
528: 83 ec 0c sub $0xc,%esp
52b: b9 10 00 00 00 mov $0x10,%ecx
530: 6a 00 push $0x0
532: 8b 7d d4 mov -0x2c(%ebp),%edi
535: 8b 45 08 mov 0x8(%ebp),%eax
538: 8b 17 mov (%edi),%edx
53a: e8 61 fe ff ff call 3a0 <printint>
ap++;
53f: 89 f8 mov %edi,%eax
541: 83 c4 10 add $0x10,%esp
state = 0;
544: 31 ff xor %edi,%edi
ap++;
546: 83 c0 04 add $0x4,%eax
549: 89 45 d4 mov %eax,-0x2c(%ebp)
54c: e9 37 ff ff ff jmp 488 <printf+0x48>
551: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
s = (char*)*ap;
558: 8b 45 d4 mov -0x2c(%ebp),%eax
55b: 8b 08 mov (%eax),%ecx
ap++;
55d: 83 c0 04 add $0x4,%eax
560: 89 45 d4 mov %eax,-0x2c(%ebp)
if(s == 0)
563: 85 c9 test %ecx,%ecx
565: 0f 84 8e 00 00 00 je 5f9 <printf+0x1b9>
while(*s != 0){
56b: 0f b6 01 movzbl (%ecx),%eax
state = 0;
56e: 31 ff xor %edi,%edi
s = (char*)*ap;
570: 89 cb mov %ecx,%ebx
while(*s != 0){
572: 84 c0 test %al,%al
574: 0f 84 0e ff ff ff je 488 <printf+0x48>
57a: 89 75 d0 mov %esi,-0x30(%ebp)
57d: 89 de mov %ebx,%esi
57f: 8b 5d 08 mov 0x8(%ebp),%ebx
582: 8d 7d e3 lea -0x1d(%ebp),%edi
585: 8d 76 00 lea 0x0(%esi),%esi
write(fd, &c, 1);
588: 83 ec 04 sub $0x4,%esp
s++;
58b: 83 c6 01 add $0x1,%esi
58e: 88 45 e3 mov %al,-0x1d(%ebp)
write(fd, &c, 1);
591: 6a 01 push $0x1
593: 57 push %edi
594: 53 push %ebx
595: e8 48 fd ff ff call 2e2 <write>
while(*s != 0){
59a: 0f b6 06 movzbl (%esi),%eax
59d: 83 c4 10 add $0x10,%esp
5a0: 84 c0 test %al,%al
5a2: 75 e4 jne 588 <printf+0x148>
5a4: 8b 75 d0 mov -0x30(%ebp),%esi
state = 0;
5a7: 31 ff xor %edi,%edi
5a9: e9 da fe ff ff jmp 488 <printf+0x48>
5ae: 66 90 xchg %ax,%ax
printint(fd, *ap, 10, 1);
5b0: 83 ec 0c sub $0xc,%esp
5b3: b9 0a 00 00 00 mov $0xa,%ecx
5b8: 6a 01 push $0x1
5ba: e9 73 ff ff ff jmp 532 <printf+0xf2>
5bf: 90 nop
write(fd, &c, 1);
5c0: 83 ec 04 sub $0x4,%esp
5c3: 88 5d e5 mov %bl,-0x1b(%ebp)
5c6: 8d 45 e5 lea -0x1b(%ebp),%eax
5c9: 6a 01 push $0x1
5cb: e9 21 ff ff ff jmp 4f1 <printf+0xb1>
putc(fd, *ap);
5d0: 8b 7d d4 mov -0x2c(%ebp),%edi
write(fd, &c, 1);
5d3: 83 ec 04 sub $0x4,%esp
putc(fd, *ap);
5d6: 8b 07 mov (%edi),%eax
write(fd, &c, 1);
5d8: 6a 01 push $0x1
ap++;
5da: 83 c7 04 add $0x4,%edi
putc(fd, *ap);
5dd: 88 45 e4 mov %al,-0x1c(%ebp)
write(fd, &c, 1);
5e0: 8d 45 e4 lea -0x1c(%ebp),%eax
5e3: 50 push %eax
5e4: ff 75 08 pushl 0x8(%ebp)
5e7: e8 f6 fc ff ff call 2e2 <write>
ap++;
5ec: 89 7d d4 mov %edi,-0x2c(%ebp)
5ef: 83 c4 10 add $0x10,%esp
state = 0;
5f2: 31 ff xor %edi,%edi
5f4: e9 8f fe ff ff jmp 488 <printf+0x48>
s = "(null)";
5f9: bb a1 07 00 00 mov $0x7a1,%ebx
while(*s != 0){
5fe: b8 28 00 00 00 mov $0x28,%eax
603: e9 72 ff ff ff jmp 57a <printf+0x13a>
608: 66 90 xchg %ax,%ax
60a: 66 90 xchg %ax,%ax
60c: 66 90 xchg %ax,%ax
60e: 66 90 xchg %ax,%ax
00000610 <free>:
static Header base;
static Header *freep;
void
free(void *ap)
{
610: 55 push %ebp
Header *bp, *p;
bp = (Header*)ap - 1;
for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr)
611: a1 54 0a 00 00 mov 0xa54,%eax
{
616: 89 e5 mov %esp,%ebp
618: 57 push %edi
619: 56 push %esi
61a: 53 push %ebx
61b: 8b 5d 08 mov 0x8(%ebp),%ebx
bp = (Header*)ap - 1;
61e: 8d 4b f8 lea -0x8(%ebx),%ecx
621: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr)
628: 39 c8 cmp %ecx,%eax
62a: 8b 10 mov (%eax),%edx
62c: 73 32 jae 660 <free+0x50>
62e: 39 d1 cmp %edx,%ecx
630: 72 04 jb 636 <free+0x26>
if(p >= p->s.ptr && (bp > p || bp < p->s.ptr))
632: 39 d0 cmp %edx,%eax
634: 72 32 jb 668 <free+0x58>
break;
if(bp + bp->s.size == p->s.ptr){
636: 8b 73 fc mov -0x4(%ebx),%esi
639: 8d 3c f1 lea (%ecx,%esi,8),%edi
63c: 39 fa cmp %edi,%edx
63e: 74 30 je 670 <free+0x60>
bp->s.size += p->s.ptr->s.size;
bp->s.ptr = p->s.ptr->s.ptr;
} else
bp->s.ptr = p->s.ptr;
640: 89 53 f8 mov %edx,-0x8(%ebx)
if(p + p->s.size == bp){
643: 8b 50 04 mov 0x4(%eax),%edx
646: 8d 34 d0 lea (%eax,%edx,8),%esi
649: 39 f1 cmp %esi,%ecx
64b: 74 3a je 687 <free+0x77>
p->s.size += bp->s.size;
p->s.ptr = bp->s.ptr;
} else
p->s.ptr = bp;
64d: 89 08 mov %ecx,(%eax)
freep = p;
64f: a3 54 0a 00 00 mov %eax,0xa54
}
654: 5b pop %ebx
655: 5e pop %esi
656: 5f pop %edi
657: 5d pop %ebp
658: c3 ret
659: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
if(p >= p->s.ptr && (bp > p || bp < p->s.ptr))
660: 39 d0 cmp %edx,%eax
662: 72 04 jb 668 <free+0x58>
664: 39 d1 cmp %edx,%ecx
666: 72 ce jb 636 <free+0x26>
{
668: 89 d0 mov %edx,%eax
66a: eb bc jmp 628 <free+0x18>
66c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
bp->s.size += p->s.ptr->s.size;
670: 03 72 04 add 0x4(%edx),%esi
673: 89 73 fc mov %esi,-0x4(%ebx)
bp->s.ptr = p->s.ptr->s.ptr;
676: 8b 10 mov (%eax),%edx
678: 8b 12 mov (%edx),%edx
67a: 89 53 f8 mov %edx,-0x8(%ebx)
if(p + p->s.size == bp){
67d: 8b 50 04 mov 0x4(%eax),%edx
680: 8d 34 d0 lea (%eax,%edx,8),%esi
683: 39 f1 cmp %esi,%ecx
685: 75 c6 jne 64d <free+0x3d>
p->s.size += bp->s.size;
687: 03 53 fc add -0x4(%ebx),%edx
freep = p;
68a: a3 54 0a 00 00 mov %eax,0xa54
p->s.size += bp->s.size;
68f: 89 50 04 mov %edx,0x4(%eax)
p->s.ptr = bp->s.ptr;
692: 8b 53 f8 mov -0x8(%ebx),%edx
695: 89 10 mov %edx,(%eax)
}
697: 5b pop %ebx
698: 5e pop %esi
699: 5f pop %edi
69a: 5d pop %ebp
69b: c3 ret
69c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
000006a0 <malloc>:
return freep;
}
void*
malloc(uint nbytes)
{
6a0: 55 push %ebp
6a1: 89 e5 mov %esp,%ebp
6a3: 57 push %edi
6a4: 56 push %esi
6a5: 53 push %ebx
6a6: 83 ec 0c sub $0xc,%esp
Header *p, *prevp;
uint nunits;
nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1;
6a9: 8b 45 08 mov 0x8(%ebp),%eax
if((prevp = freep) == 0){
6ac: 8b 15 54 0a 00 00 mov 0xa54,%edx
nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1;
6b2: 8d 78 07 lea 0x7(%eax),%edi
6b5: c1 ef 03 shr $0x3,%edi
6b8: 83 c7 01 add $0x1,%edi
if((prevp = freep) == 0){
6bb: 85 d2 test %edx,%edx
6bd: 0f 84 9d 00 00 00 je 760 <malloc+0xc0>
6c3: 8b 02 mov (%edx),%eax
6c5: 8b 48 04 mov 0x4(%eax),%ecx
base.s.ptr = freep = prevp = &base;
base.s.size = 0;
}
for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){
if(p->s.size >= nunits){
6c8: 39 cf cmp %ecx,%edi
6ca: 76 6c jbe 738 <malloc+0x98>
6cc: 81 ff 00 10 00 00 cmp $0x1000,%edi
6d2: bb 00 10 00 00 mov $0x1000,%ebx
6d7: 0f 43 df cmovae %edi,%ebx
p = sbrk(nu * sizeof(Header));
6da: 8d 34 dd 00 00 00 00 lea 0x0(,%ebx,8),%esi
6e1: eb 0e jmp 6f1 <malloc+0x51>
6e3: 90 nop
6e4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){
6e8: 8b 02 mov (%edx),%eax
if(p->s.size >= nunits){
6ea: 8b 48 04 mov 0x4(%eax),%ecx
6ed: 39 f9 cmp %edi,%ecx
6ef: 73 47 jae 738 <malloc+0x98>
p->s.size = nunits;
}
freep = prevp;
return (void*)(p + 1);
}
if(p == freep)
6f1: 39 05 54 0a 00 00 cmp %eax,0xa54
6f7: 89 c2 mov %eax,%edx
6f9: 75 ed jne 6e8 <malloc+0x48>
p = sbrk(nu * sizeof(Header));
6fb: 83 ec 0c sub $0xc,%esp
6fe: 56 push %esi
6ff: e8 46 fc ff ff call 34a <sbrk>
if(p == (char*)-1)
704: 83 c4 10 add $0x10,%esp
707: 83 f8 ff cmp $0xffffffff,%eax
70a: 74 1c je 728 <malloc+0x88>
hp->s.size = nu;
70c: 89 58 04 mov %ebx,0x4(%eax)
free((void*)(hp + 1));
70f: 83 ec 0c sub $0xc,%esp
712: 83 c0 08 add $0x8,%eax
715: 50 push %eax
716: e8 f5 fe ff ff call 610 <free>
return freep;
71b: 8b 15 54 0a 00 00 mov 0xa54,%edx
if((p = morecore(nunits)) == 0)
721: 83 c4 10 add $0x10,%esp
724: 85 d2 test %edx,%edx
726: 75 c0 jne 6e8 <malloc+0x48>
return 0;
}
}
728: 8d 65 f4 lea -0xc(%ebp),%esp
return 0;
72b: 31 c0 xor %eax,%eax
}
72d: 5b pop %ebx
72e: 5e pop %esi
72f: 5f pop %edi
730: 5d pop %ebp
731: c3 ret
732: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
if(p->s.size == nunits)
738: 39 cf cmp %ecx,%edi
73a: 74 54 je 790 <malloc+0xf0>
p->s.size -= nunits;
73c: 29 f9 sub %edi,%ecx
73e: 89 48 04 mov %ecx,0x4(%eax)
p += p->s.size;
741: 8d 04 c8 lea (%eax,%ecx,8),%eax
p->s.size = nunits;
744: 89 78 04 mov %edi,0x4(%eax)
freep = prevp;
747: 89 15 54 0a 00 00 mov %edx,0xa54
}
74d: 8d 65 f4 lea -0xc(%ebp),%esp
return (void*)(p + 1);
750: 83 c0 08 add $0x8,%eax
}
753: 5b pop %ebx
754: 5e pop %esi
755: 5f pop %edi
756: 5d pop %ebp
757: c3 ret
758: 90 nop
759: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
base.s.ptr = freep = prevp = &base;
760: c7 05 54 0a 00 00 58 movl $0xa58,0xa54
767: 0a 00 00
76a: c7 05 58 0a 00 00 58 movl $0xa58,0xa58
771: 0a 00 00
base.s.size = 0;
774: b8 58 0a 00 00 mov $0xa58,%eax
779: c7 05 5c 0a 00 00 00 movl $0x0,0xa5c
780: 00 00 00
783: e9 44 ff ff ff jmp 6cc <malloc+0x2c>
788: 90 nop
789: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
prevp->s.ptr = p->s.ptr;
790: 8b 08 mov (%eax),%ecx
792: 89 0a mov %ecx,(%edx)
794: eb b1 jmp 747 <malloc+0xa7>
|
/* Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License. */
#include <memory>
#include <string>
#include <unordered_map>
#include <vector>
#include "paddle/fluid/framework/op_registry.h"
namespace paddle {
namespace operators {
using Tensor = framework::Tensor;
inline std::vector<int64_t> CorrelationOutputSize(int batch, int input_height,
int input_width, int stride1,
int stride2, int kernel_size,
int pad_size,
int max_displacement) {
std::vector<int64_t> output_shape({batch});
int kernel_radius = (kernel_size - 1) / 2;
int border_radius = kernel_radius + max_displacement;
int padded_input_height = input_height + 2 * pad_size;
int padded_input_width = input_width + 2 * pad_size;
int output_channel = ((max_displacement / stride2) * 2 + 1) *
((max_displacement / stride2) * 2 + 1);
output_shape.push_back(output_channel);
int output_height =
std::ceil(static_cast<float>(padded_input_height - 2 * border_radius) /
static_cast<float>(stride1));
int output_width =
std::ceil(static_cast<float>(padded_input_width - 2 * border_radius) /
static_cast<float>(stride1));
output_shape.push_back(output_height);
output_shape.push_back(output_width);
return output_shape;
}
class CorrelationOpMaker : public framework::OpProtoAndCheckerMaker {
public:
void Make() override {
AddInput("Input1", "Input is a 4-D Tensor with shape [N, C, H, W]");
AddInput("Input2", "Input is a 4-D Tensor with shape [N, C, H, W]");
AddOutput("Output",
"(Tensor) The output tensor of correlation operator. "
"It has same data fromat and data type as the Input.");
AddAttr<int>("pad_size", "pad size for input1 and input2");
AddAttr<int>("kernel_size", "kernel size of input1 and input2");
AddAttr<int>("max_displacement", "max displacement of input1 and input2");
AddAttr<int>("stride1", "Input1 stride");
AddAttr<int>("stride2", "Input2 stride");
AddAttr<int>("corr_type_multiply", "correlation coefficient").SetDefault(1);
AddComment(
R"DOC(Correlation of two feature map. Only support NCHW data format.)DOC");
}
};
class CorrelationOp : public framework::OperatorWithKernel {
public:
using framework::OperatorWithKernel::OperatorWithKernel;
void InferShape(framework::InferShapeContext* ctx) const override {
OP_INOUT_CHECK(ctx->HasInput("Input1"), "Input", "X", "CorrelationOp");
OP_INOUT_CHECK(ctx->HasInput("Input2"), "Input", "Y", "CorrelationOp");
int stride1 = ctx->Attrs().Get<int>("stride1");
int stride2 = ctx->Attrs().Get<int>("stride2");
int max_displacement = ctx->Attrs().Get<int>("max_displacement");
int pad_size = ctx->Attrs().Get<int>("pad_size");
int kernel_size = ctx->Attrs().Get<int>("kernel_size");
auto in_dims = ctx->GetInputDim("Input1");
auto in2_dims = ctx->GetInputDim("Input2");
PADDLE_ENFORCE_EQ(in_dims.size() == 4, true,
platform::errors::InvalidArgument(
"Input(X) of CorrelationOp must be 4 dims."
"But received dims is %d.",
in_dims.size()));
PADDLE_ENFORCE_EQ(in2_dims.size() == 4, true,
platform::errors::InvalidArgument(
"Input(Y) of CorrelationOp must be 4 dims."
"But received dims is %d.",
in2_dims.size()));
std::vector<int64_t> output_shape =
CorrelationOutputSize(in_dims[0], in_dims[2], in_dims[3], stride1,
stride2, kernel_size, pad_size, max_displacement);
ctx->SetOutputDim("Output", framework::make_ddim(output_shape));
}
protected:
framework::OpKernelType GetExpectedKernelType(
const framework::ExecutionContext& ctx) const override {
auto input_data_type =
OperatorWithKernel::IndicateVarDataType(ctx, "Input1");
PADDLE_ENFORCE_EQ(
input_data_type,
framework::TransToProtoVarType(ctx.Input<Tensor>("Input2")->dtype()),
platform::errors::InvalidArgument(
"X and Y shoule have the same datatype"));
return framework::OpKernelType(input_data_type, ctx.GetPlace());
}
framework::OpKernelType GetKernelTypeForVar(
const std::string& var_name, const Tensor& tensor,
const framework::OpKernelType& expected_kernel_type) const override {
return framework::OpKernelType(expected_kernel_type.data_type_,
tensor.place(), tensor.layout());
}
};
template <typename T>
class CorrelationOpGradMaker : public framework::SingleGradOpMaker<T> {
public:
using framework::SingleGradOpMaker<T>::SingleGradOpMaker;
protected:
void Apply(GradOpPtr<T> op) const override {
op->SetType("correlation_grad");
op->SetInput("Input1", this->Input("Input1"));
op->SetInput("Input2", this->Input("Input2"));
op->SetInput(framework::GradVarName("Output"), this->OutputGrad("Output"));
op->SetOutput(framework::GradVarName("Input1"), this->InputGrad("Input1"));
op->SetOutput(framework::GradVarName("Input2"), this->InputGrad("Input2"));
op->SetAttrMap(this->Attrs());
}
};
class CorrelationOpGrad : public framework::OperatorWithKernel {
public:
using framework::OperatorWithKernel::OperatorWithKernel;
void InferShape(framework::InferShapeContext* ctx) const override {
OP_INOUT_CHECK(ctx->HasInput("Input1"), "Input", "X", "CorrelationOp");
OP_INOUT_CHECK(ctx->HasInput("Input2"), "Input", "Y", "CorrelationOp");
OP_INOUT_CHECK(ctx->HasInput(framework::GradVarName("Output")), "Input",
"Output@GRAD", "CorrelationGradOp");
auto in1_dims = ctx->GetInputDim("Input1");
auto in2_dims = ctx->GetInputDim("Input2");
ctx->SetOutputDim(framework::GradVarName("Input1"), in1_dims);
ctx->SetOutputDim(framework::GradVarName("Input2"), in2_dims);
}
protected:
framework::OpKernelType GetExpectedKernelType(
const framework::ExecutionContext& ctx) const override {
return framework::OpKernelType(
OperatorWithKernel::IndicateVarDataType(ctx, "Input1"), ctx.GetPlace());
}
};
template <typename T>
class CorrelationKernel : public framework::OpKernel<T> {
public:
void Compute(const framework::ExecutionContext& ctx) const override {
PADDLE_ENFORCE_EQ(
platform::is_gpu_place(ctx.GetPlace()), true,
platform::errors::Unimplemented("Correlation only supports GPU now."));
}
};
} // namespace operators
} // namespace paddle
namespace ops = paddle::operators;
REGISTER_OPERATOR(correlation, ops::CorrelationOp, ops::CorrelationOpMaker,
ops::CorrelationOpGradMaker<paddle::framework::OpDesc>,
ops::CorrelationOpGradMaker<paddle::imperative::OpBase>);
REGISTER_OPERATOR(correlation_grad, ops::CorrelationOpGrad);
REGISTER_OP_CPU_KERNEL(correlation, ops::CorrelationKernel<float>,
ops::CorrelationKernel<double>);
|
; /*****************************************************************************
; * ugBASIC - an isomorphic BASIC language compiler for retrocomputers *
; *****************************************************************************
; * Copyright 2021-2022 Marco Spedaletti (asimov@mclink.it)
; *
; * 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.
; *----------------------------------------------------------------------------
; * Concesso in licenza secondo i termini della Licenza Apache, versione 2.0
; * (la "Licenza"); è proibito usare questo file se non in conformità alla
; * Licenza. Una copia della Licenza è disponibile all'indirizzo:
; *
; * http://www.apache.org/licenses/LICENSE-2.0
; *
; * Se non richiesto dalla legislazione vigente o concordato per iscritto,
; * il software distribuito nei termini della Licenza è distribuito
; * "COSì COM'è", SENZA GARANZIE O CONDIZIONI DI ALCUN TIPO, esplicite o
; * implicite. Consultare la Licenza per il testo specifico che regola le
; * autorizzazioni e le limitazioni previste dalla medesima.
; ****************************************************************************/
;* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
;* *
;* CLEAR LINE ROUTINE FOR GTIA *
;* *
;* by Marco Spedaletti *
;* *
;* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
CLINE:
LDA CURRENTMODE
CMP #2
BNE CLINEANTIC2X
JMP CLINEANTIC2
CLINEANTIC2X:
CMP #6
BNE CLINEANTIC6X
JMP CLINEANTIC6
CLINEANTIC6X:
CMP #7
BNE CLINEANTIC7X
JMP CLINEANTIC7
CLINEANTIC7X:
CMP #3
BNE CLINEANTIC3X
JMP CLINEANTIC3
CLINEANTIC3X:
CMP #4
BNE CLINEANTIC4X
JMP CLINEANTIC4
CLINEANTIC4X:
CMP #5
BNE CLINEANTIC5X
JMP CLINEANTIC5
CLINEANTIC5X:
; CMP #8
; BNE TEXTATANTIC8X
; JMP TEXTATANTIC8
; TEXTATANTIC8X:
; CMP #9
; BEQ PLOTANTIC9
; CMP #10
; BEQ PLOTANTIC10
; CMP #11
; BEQ PLOTANTIC11
; CMP #13
; BEQ PLOTANTIC13
; CMP #15
; BEQ PLOTANTIC15
; CMP #12
; BEQ PLOTANTIC12
; CMP #14
; BEQ PLOTANTIC14
RTS
CLINEANTIC2:
CLINEANTIC6:
CLINEANTIC7:
CLINEANTIC3:
CLINEANTIC4:
CLINEANTIC5:
LDA TEXTADDRESS
STA COPYOFTEXTADDRESS
LDA TEXTADDRESS+1
STA COPYOFTEXTADDRESS+1
LDX CLINEY
BEQ CLINEANTIC2SKIP
CLINEANTIC2L1:
CLC
LDA CURRENTWIDTH
ADC COPYOFTEXTADDRESS
STA COPYOFTEXTADDRESS
LDA #0
ADC COPYOFTEXTADDRESS+1
STA COPYOFTEXTADDRESS+1
DEX
BNE CLINEANTIC2L1
CLINEANTIC2SKIP:
LDA CHARACTERS
BEQ CLINEANTIC2ENTIRE
CLC
LDA CLINEX
ADC COPYOFTEXTADDRESS
STA COPYOFTEXTADDRESS
LDA #0
ADC COPYOFTEXTADDRESS+1
STA COPYOFTEXTADDRESS+1
LDX CHARACTERS
LDY #0
CLINEANTIC2INCX:
LDA #0
STA (COPYOFTEXTADDRESS),y
INC CLINEX
LDA CLINEX
CMP CURRENTWIDTH
BNE CLINEANTIC2NEXT
LDA #0
STA CLINEX
INC CLINEY
LDA CLINEY
CMP CURRENTHEIGHT
BNE CLINEANTIC2NEXT
LDA #$FE
STA DIRECTION
JSR VSCROLLT
DEC CLINEY
SEC
LDA COPYOFTEXTADDRESS
SBC CURRENTWIDTH
STA COPYOFTEXTADDRESS
LDA COPYOFTEXTADDRESS+1
SBC #0
STA COPYOFTEXTADDRESS+1
CLINEANTIC2NEXT:
INY
DEX
BNE CLINEANTIC2INCX
RTS
CLINEANTIC2ENTIRE:
LDY #0
CLINEANTIC2INC2X:
LDA #0
STA (COPYOFTEXTADDRESS),y
INY
INC CLINEX
LDA CLINEX
CMP CURRENTWIDTH
BNE CLINEANTIC2INC2X
RTS
|
; NEC PC-8801 stub for monitor mode
;
; Stefano Bodrato - 2018
IFNDEF CRT_ORG_CODE
defc CRT_ORG_CODE = $8A00
ENDIF
defc CONSOLE_COLUMNS = 80
defc CONSOLE_ROWS = 20
defc TAR__clib_exit_stack_size = 32
defc TAR__register_sp = 0xc000
INCLUDE "crt/classic/crt_rules.inc"
org CRT_ORG_CODE
;----------------------
; Execution starts here
;----------------------
start:
ld a,$FF ; back to main ROM
out ($71),a ; bank switching
ld (start1+1),sp
INCLUDE "crt/classic/crt_init_sp.asm"
INCLUDE "crt/classic/crt_init_atexit.asm"
call crt0_init_bss
ld (exitsp),sp
IF DEFINED_USING_amalloc
INCLUDE "crt/classic/crt_init_amalloc.asm"
ENDIF
; ld a,(defltdsk)
; ld ($EC85),a
;** If NOT IDOS mode, just get rid of BASIC screen behaviour **
call $4021 ; Hide function key strings
call _main
cleanup:
call crt0_exit
start1:
ld sp,0
ld a,$FF ; restore Main ROM
out ($71),a
ret
l_dcal:
jp (hl)
; ROM interposer. This could be, sooner or later, moved to a convenient position in RAM
; (e.g. just before $C000) to be able to bounce between different RAM/ROM pages
pc88bios:
push af
ld a,$FF ; MAIN ROM
out ($71),a
pop af
jp (ix)
INCLUDE "crt/classic/crt_runtime_selection.asm"
INCLUDE "crt/classic/crt_section.asm"
|
// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <boost/assign/list_of.hpp>
#include "base58.h"
#include "bitcoinrpc.h"
#include "db.h"
#include "init.h"
#include "net.h"
#include "wallet.h"
using namespace std;
using namespace boost;
using namespace boost::assign;
using namespace json_spirit;
//
// Utilities: convert hex-encoded Values
// (throws error if not hex).
//
uint256 ParseHashV(const Value& v, string strName)
{
string strHex;
if (v.type() == str_type)
strHex = v.get_str();
if (!IsHex(strHex)) // Note: IsHex("") is false
throw JSONRPCError(RPC_INVALID_PARAMETER, strName+" must be hexadecimal string (not '"+strHex+"')");
uint256 result;
result.SetHex(strHex);
return result;
}
uint256 ParseHashO(const Object& o, string strKey)
{
return ParseHashV(find_value(o, strKey), strKey);
}
vector<unsigned char> ParseHexV(const Value& v, string strName)
{
string strHex;
if (v.type() == str_type)
strHex = v.get_str();
if (!IsHex(strHex))
throw JSONRPCError(RPC_INVALID_PARAMETER, strName+" must be hexadecimal string (not '"+strHex+"')");
return ParseHex(strHex);
}
vector<unsigned char> ParseHexO(const Object& o, string strKey)
{
return ParseHexV(find_value(o, strKey), strKey);
}
void ScriptPubKeyToJSON(const CScript& scriptPubKey, Object& out)
{
txnouttype type;
vector<CTxDestination> addresses;
int nRequired;
out.push_back(Pair("asm", scriptPubKey.ToString()));
out.push_back(Pair("hex", HexStr(scriptPubKey.begin(), scriptPubKey.end())));
if (!ExtractDestinations(scriptPubKey, type, addresses, nRequired))
{
out.push_back(Pair("type", GetTxnOutputType(TX_NONSTANDARD)));
return;
}
out.push_back(Pair("reqSigs", nRequired));
out.push_back(Pair("type", GetTxnOutputType(type)));
Array a;
BOOST_FOREACH(const CTxDestination& addr, addresses)
a.push_back(CBitcoinAddress(addr).ToString());
out.push_back(Pair("addresses", a));
}
void TxToJSON(const CTransaction& tx, const uint256 hashBlock, Object& entry)
{
entry.push_back(Pair("txid", tx.GetHash().GetHex()));
entry.push_back(Pair("version", tx.nVersion));
entry.push_back(Pair("locktime", (boost::int64_t)tx.nLockTime));
Array vin;
BOOST_FOREACH(const CTxIn& txin, tx.vin)
{
Object in;
if (tx.IsCoinBase())
in.push_back(Pair("coinbase", HexStr(txin.scriptSig.begin(), txin.scriptSig.end())));
else
{
in.push_back(Pair("txid", txin.prevout.hash.GetHex()));
in.push_back(Pair("vout", (boost::int64_t)txin.prevout.n));
Object o;
o.push_back(Pair("asm", txin.scriptSig.ToString()));
o.push_back(Pair("hex", HexStr(txin.scriptSig.begin(), txin.scriptSig.end())));
in.push_back(Pair("scriptSig", o));
}
in.push_back(Pair("sequence", (boost::int64_t)txin.nSequence));
vin.push_back(in);
}
entry.push_back(Pair("vin", vin));
Array vout;
for (unsigned int i = 0; i < tx.vout.size(); i++)
{
const CTxOut& txout = tx.vout[i];
Object out;
out.push_back(Pair("value", ValueFromAmount(txout.nValue)));
out.push_back(Pair("n", (boost::int64_t)i));
Object o;
ScriptPubKeyToJSON(txout.scriptPubKey, o);
out.push_back(Pair("scriptPubKey", o));
vout.push_back(out);
}
entry.push_back(Pair("vout", vout));
if (hashBlock != 0)
{
entry.push_back(Pair("blockhash", hashBlock.GetHex()));
map<uint256, CBlockIndex*>::iterator mi = mapBlockIndex.find(hashBlock);
if (mi != mapBlockIndex.end() && (*mi).second)
{
CBlockIndex* pindex = (*mi).second;
if (pindex->IsInMainChain())
{
entry.push_back(Pair("confirmations", 1 + nBestHeight - pindex->nHeight));
entry.push_back(Pair("time", (boost::int64_t)pindex->nTime));
entry.push_back(Pair("blocktime", (boost::int64_t)pindex->nTime));
}
else
entry.push_back(Pair("confirmations", 0));
}
}
}
Value getrawtransaction(const Array& params, bool fHelp)
{
if (fHelp || params.size() < 1 || params.size() > 2)
throw runtime_error(
"getrawtransaction <txid> [verbose=0]\n"
"If verbose=0, returns a string that is\n"
"serialized, hex-encoded data for <txid>.\n"
"If verbose is non-zero, returns an Object\n"
"with information about <txid>.");
uint256 hash = ParseHashV(params[0], "parameter 1");
bool fVerbose = false;
if (params.size() > 1)
fVerbose = (params[1].get_int() != 0);
CTransaction tx;
uint256 hashBlock = 0;
if (!GetTransaction(hash, tx, hashBlock, true))
throw JSONRPCError(RPC_INVALID_ADDRESS_OR_KEY, "No information available about transaction");
CDataStream ssTx(SER_NETWORK, PROTOCOL_VERSION);
ssTx << tx;
string strHex = HexStr(ssTx.begin(), ssTx.end());
if (!fVerbose)
return strHex;
Object result;
result.push_back(Pair("hex", strHex));
TxToJSON(tx, hashBlock, result);
return result;
}
Value listunspent(const Array& params, bool fHelp)
{
if (fHelp || params.size() > 3)
throw runtime_error(
"listunspent [minconf=1] [maxconf=9999999] [\"address\",...]\n"
"Returns array of unspent transaction outputs\n"
"with between minconf and maxconf (inclusive) confirmations.\n"
"Optionally filtered to only include txouts paid to specified addresses.\n"
"Results are an array of Objects, each of which has:\n"
"{txid, vout, scriptPubKey, amount, confirmations}");
RPCTypeCheck(params, list_of(int_type)(int_type)(array_type));
int nMinDepth = 1;
if (params.size() > 0)
nMinDepth = params[0].get_int();
int nMaxDepth = 9999999;
if (params.size() > 1)
nMaxDepth = params[1].get_int();
set<CBitcoinAddress> setAddress;
if (params.size() > 2)
{
Array inputs = params[2].get_array();
BOOST_FOREACH(Value& input, inputs)
{
CBitcoinAddress address(input.get_str());
if (!address.IsValid())
throw JSONRPCError(RPC_INVALID_ADDRESS_OR_KEY, string("Invalid CardinalCoin address: ")+input.get_str());
if (setAddress.count(address))
throw JSONRPCError(RPC_INVALID_PARAMETER, string("Invalid parameter, duplicated address: ")+input.get_str());
setAddress.insert(address);
}
}
Array results;
vector<COutput> vecOutputs;
pwalletMain->AvailableCoins(vecOutputs, false);
BOOST_FOREACH(const COutput& out, vecOutputs)
{
if (out.nDepth < nMinDepth || out.nDepth > nMaxDepth)
continue;
if (setAddress.size())
{
CTxDestination address;
if (!ExtractDestination(out.tx->vout[out.i].scriptPubKey, address))
continue;
if (!setAddress.count(address))
continue;
}
int64 nValue = out.tx->vout[out.i].nValue;
const CScript& pk = out.tx->vout[out.i].scriptPubKey;
Object entry;
entry.push_back(Pair("txid", out.tx->GetHash().GetHex()));
entry.push_back(Pair("vout", out.i));
CTxDestination address;
if (ExtractDestination(out.tx->vout[out.i].scriptPubKey, address))
{
entry.push_back(Pair("address", CBitcoinAddress(address).ToString()));
if (pwalletMain->mapAddressBook.count(address))
entry.push_back(Pair("account", pwalletMain->mapAddressBook[address]));
}
entry.push_back(Pair("scriptPubKey", HexStr(pk.begin(), pk.end())));
if (pk.IsPayToScriptHash())
{
CTxDestination address;
if (ExtractDestination(pk, address))
{
const CScriptID& hash = boost::get<const CScriptID&>(address);
CScript redeemScript;
if (pwalletMain->GetCScript(hash, redeemScript))
entry.push_back(Pair("redeemScript", HexStr(redeemScript.begin(), redeemScript.end())));
}
}
entry.push_back(Pair("amount",ValueFromAmount(nValue)));
entry.push_back(Pair("confirmations",out.nDepth));
results.push_back(entry);
}
return results;
}
Value createrawtransaction(const Array& params, bool fHelp)
{
if (fHelp || params.size() != 2)
throw runtime_error(
"createrawtransaction [{\"txid\":txid,\"vout\":n},...] {address:amount,...}\n"
"Create a transaction spending given inputs\n"
"(array of objects containing transaction id and output number),\n"
"sending to given address(es).\n"
"Returns hex-encoded raw transaction.\n"
"Note that the transaction's inputs are not signed, and\n"
"it is not stored in the wallet or transmitted to the network.");
RPCTypeCheck(params, list_of(array_type)(obj_type));
Array inputs = params[0].get_array();
Object sendTo = params[1].get_obj();
CTransaction rawTx;
BOOST_FOREACH(const Value& input, inputs)
{
const Object& o = input.get_obj();
uint256 txid = ParseHashO(o, "txid");
const Value& vout_v = find_value(o, "vout");
if (vout_v.type() != int_type)
throw JSONRPCError(RPC_INVALID_PARAMETER, "Invalid parameter, missing vout key");
int nOutput = vout_v.get_int();
if (nOutput < 0)
throw JSONRPCError(RPC_INVALID_PARAMETER, "Invalid parameter, vout must be positive");
CTxIn in(COutPoint(txid, nOutput));
rawTx.vin.push_back(in);
}
set<CBitcoinAddress> setAddress;
BOOST_FOREACH(const Pair& s, sendTo)
{
CBitcoinAddress address(s.name_);
if (!address.IsValid())
throw JSONRPCError(RPC_INVALID_ADDRESS_OR_KEY, string("Invalid CardinalCoin address: ")+s.name_);
if (setAddress.count(address))
throw JSONRPCError(RPC_INVALID_PARAMETER, string("Invalid parameter, duplicated address: ")+s.name_);
setAddress.insert(address);
CScript scriptPubKey;
scriptPubKey.SetDestination(address.Get());
int64 nAmount = AmountFromValue(s.value_);
CTxOut out(nAmount, scriptPubKey);
rawTx.vout.push_back(out);
}
CDataStream ss(SER_NETWORK, PROTOCOL_VERSION);
ss << rawTx;
return HexStr(ss.begin(), ss.end());
}
Value decoderawtransaction(const Array& params, bool fHelp)
{
if (fHelp || params.size() != 1)
throw runtime_error(
"decoderawtransaction <hex string>\n"
"Return a JSON object representing the serialized, hex-encoded transaction.");
vector<unsigned char> txData(ParseHexV(params[0], "argument"));
CDataStream ssData(txData, SER_NETWORK, PROTOCOL_VERSION);
CTransaction tx;
try {
ssData >> tx;
}
catch (std::exception &e) {
throw JSONRPCError(RPC_DESERIALIZATION_ERROR, "TX decode failed");
}
Object result;
TxToJSON(tx, 0, result);
return result;
}
Value signrawtransaction(const Array& params, bool fHelp)
{
if (fHelp || params.size() < 1 || params.size() > 4)
throw runtime_error(
"signrawtransaction <hex string> [{\"txid\":txid,\"vout\":n,\"scriptPubKey\":hex,\"redeemScript\":hex},...] [<privatekey1>,...] [sighashtype=\"ALL\"]\n"
"Sign inputs for raw transaction (serialized, hex-encoded).\n"
"Second optional argument (may be null) is an array of previous transaction outputs that\n"
"this transaction depends on but may not yet be in the block chain.\n"
"Third optional argument (may be null) is an array of base58-encoded private\n"
"keys that, if given, will be the only keys used to sign the transaction.\n"
"Fourth optional argument is a string that is one of six values; ALL, NONE, SINGLE or\n"
"ALL|ANYONECANPAY, NONE|ANYONECANPAY, SINGLE|ANYONECANPAY.\n"
"Returns json object with keys:\n"
" hex : raw transaction with signature(s) (hex-encoded string)\n"
" complete : 1 if transaction has a complete set of signature (0 if not)"
+ HelpRequiringPassphrase());
RPCTypeCheck(params, list_of(str_type)(array_type)(array_type)(str_type), true);
vector<unsigned char> txData(ParseHexV(params[0], "argument 1"));
CDataStream ssData(txData, SER_NETWORK, PROTOCOL_VERSION);
vector<CTransaction> txVariants;
while (!ssData.empty())
{
try {
CTransaction tx;
ssData >> tx;
txVariants.push_back(tx);
}
catch (std::exception &e) {
throw JSONRPCError(RPC_DESERIALIZATION_ERROR, "TX decode failed");
}
}
if (txVariants.empty())
throw JSONRPCError(RPC_DESERIALIZATION_ERROR, "Missing transaction");
// mergedTx will end up with all the signatures; it
// starts as a clone of the rawtx:
CTransaction mergedTx(txVariants[0]);
bool fComplete = true;
// Fetch previous transactions (inputs):
CCoinsView viewDummy;
CCoinsViewCache view(viewDummy);
{
LOCK(mempool.cs);
CCoinsViewCache &viewChain = *pcoinsTip;
CCoinsViewMemPool viewMempool(viewChain, mempool);
view.SetBackend(viewMempool); // temporarily switch cache backend to db+mempool view
BOOST_FOREACH(const CTxIn& txin, mergedTx.vin) {
const uint256& prevHash = txin.prevout.hash;
CCoins coins;
view.GetCoins(prevHash, coins); // this is certainly allowed to fail
}
view.SetBackend(viewDummy); // switch back to avoid locking mempool for too long
}
bool fGivenKeys = false;
CBasicKeyStore tempKeystore;
if (params.size() > 2 && params[2].type() != null_type)
{
fGivenKeys = true;
Array keys = params[2].get_array();
BOOST_FOREACH(Value k, keys)
{
CBitcoinSecret vchSecret;
bool fGood = vchSecret.SetString(k.get_str());
if (!fGood)
throw JSONRPCError(RPC_INVALID_ADDRESS_OR_KEY, "Invalid private key");
CKey key = vchSecret.GetKey();
tempKeystore.AddKey(key);
}
}
else
EnsureWalletIsUnlocked();
// Add previous txouts given in the RPC call:
if (params.size() > 1 && params[1].type() != null_type)
{
Array prevTxs = params[1].get_array();
BOOST_FOREACH(Value& p, prevTxs)
{
if (p.type() != obj_type)
throw JSONRPCError(RPC_DESERIALIZATION_ERROR, "expected object with {\"txid'\",\"vout\",\"scriptPubKey\"}");
Object prevOut = p.get_obj();
RPCTypeCheck(prevOut, map_list_of("txid", str_type)("vout", int_type)("scriptPubKey", str_type));
uint256 txid = ParseHashO(prevOut, "txid");
int nOut = find_value(prevOut, "vout").get_int();
if (nOut < 0)
throw JSONRPCError(RPC_DESERIALIZATION_ERROR, "vout must be positive");
vector<unsigned char> pkData(ParseHexO(prevOut, "scriptPubKey"));
CScript scriptPubKey(pkData.begin(), pkData.end());
CCoins coins;
if (view.GetCoins(txid, coins)) {
if (coins.IsAvailable(nOut) && coins.vout[nOut].scriptPubKey != scriptPubKey) {
string err("Previous output scriptPubKey mismatch:\n");
err = err + coins.vout[nOut].scriptPubKey.ToString() + "\nvs:\n"+
scriptPubKey.ToString();
throw JSONRPCError(RPC_DESERIALIZATION_ERROR, err);
}
// what todo if txid is known, but the actual output isn't?
}
if ((unsigned int)nOut >= coins.vout.size())
coins.vout.resize(nOut+1);
coins.vout[nOut].scriptPubKey = scriptPubKey;
coins.vout[nOut].nValue = 0; // we don't know the actual output value
view.SetCoins(txid, coins);
// if redeemScript given and not using the local wallet (private keys
// given), add redeemScript to the tempKeystore so it can be signed:
if (fGivenKeys && scriptPubKey.IsPayToScriptHash())
{
RPCTypeCheck(prevOut, map_list_of("txid", str_type)("vout", int_type)("scriptPubKey", str_type)("redeemScript",str_type));
Value v = find_value(prevOut, "redeemScript");
if (!(v == Value::null))
{
vector<unsigned char> rsData(ParseHexV(v, "redeemScript"));
CScript redeemScript(rsData.begin(), rsData.end());
tempKeystore.AddCScript(redeemScript);
}
}
}
}
const CKeyStore& keystore = (fGivenKeys ? tempKeystore : *pwalletMain);
int nHashType = SIGHASH_ALL;
if (params.size() > 3 && params[3].type() != null_type)
{
static map<string, int> mapSigHashValues =
boost::assign::map_list_of
(string("ALL"), int(SIGHASH_ALL))
(string("ALL|ANYONECANPAY"), int(SIGHASH_ALL|SIGHASH_ANYONECANPAY))
(string("NONE"), int(SIGHASH_NONE))
(string("NONE|ANYONECANPAY"), int(SIGHASH_NONE|SIGHASH_ANYONECANPAY))
(string("SINGLE"), int(SIGHASH_SINGLE))
(string("SINGLE|ANYONECANPAY"), int(SIGHASH_SINGLE|SIGHASH_ANYONECANPAY))
;
string strHashType = params[3].get_str();
if (mapSigHashValues.count(strHashType))
nHashType = mapSigHashValues[strHashType];
else
throw JSONRPCError(RPC_INVALID_PARAMETER, "Invalid sighash param");
}
bool fHashSingle = ((nHashType & ~SIGHASH_ANYONECANPAY) == SIGHASH_SINGLE);
// Sign what we can:
for (unsigned int i = 0; i < mergedTx.vin.size(); i++)
{
CTxIn& txin = mergedTx.vin[i];
CCoins coins;
if (!view.GetCoins(txin.prevout.hash, coins) || !coins.IsAvailable(txin.prevout.n))
{
fComplete = false;
continue;
}
const CScript& prevPubKey = coins.vout[txin.prevout.n].scriptPubKey;
txin.scriptSig.clear();
// Only sign SIGHASH_SINGLE if there's a corresponding output:
if (!fHashSingle || (i < mergedTx.vout.size()))
SignSignature(keystore, prevPubKey, mergedTx, i, nHashType);
// ... and merge in other signatures:
BOOST_FOREACH(const CTransaction& txv, txVariants)
{
txin.scriptSig = CombineSignatures(prevPubKey, mergedTx, i, txin.scriptSig, txv.vin[i].scriptSig);
}
if (!VerifyScript(txin.scriptSig, prevPubKey, mergedTx, i, SCRIPT_VERIFY_P2SH | SCRIPT_VERIFY_STRICTENC, 0))
fComplete = false;
}
Object result;
CDataStream ssTx(SER_NETWORK, PROTOCOL_VERSION);
ssTx << mergedTx;
result.push_back(Pair("hex", HexStr(ssTx.begin(), ssTx.end())));
result.push_back(Pair("complete", fComplete));
return result;
}
Value sendrawtransaction(const Array& params, bool fHelp)
{
if (fHelp || params.size() < 1 || params.size() > 1)
throw runtime_error(
"sendrawtransaction <hex string>\n"
"Submits raw transaction (serialized, hex-encoded) to local node and network.");
// parse hex string from parameter
vector<unsigned char> txData(ParseHexV(params[0], "parameter"));
CDataStream ssData(txData, SER_NETWORK, PROTOCOL_VERSION);
CTransaction tx;
// deserialize binary data stream
try {
ssData >> tx;
}
catch (std::exception &e) {
throw JSONRPCError(RPC_DESERIALIZATION_ERROR, "TX decode failed");
}
uint256 hashTx = tx.GetHash();
bool fHave = false;
CCoinsViewCache &view = *pcoinsTip;
CCoins existingCoins;
{
fHave = view.GetCoins(hashTx, existingCoins);
if (!fHave) {
// push to local node
CValidationState state;
if (!mempool.accept(state, tx, false, NULL))
throw JSONRPCError(RPC_DESERIALIZATION_ERROR, "TX rejected"); // TODO: report validation state
}
}
if (fHave) {
if (existingCoins.nHeight < 1000000000)
throw JSONRPCError(RPC_INVALID_ADDRESS_OR_KEY, "transaction already in block chain");
// Not in block, but already in the memory pool; will drop
// through to re-relay it.
} else {
SyncWithWallets(hashTx, tx, NULL, true);
}
RelayTransaction(tx, hashTx);
return hashTx.GetHex();
}
|
; Copyright © 2019, VideoLAN and dav1d authors
; Copyright © 2019, Two Orioles, LLC
; All rights reserved.
;
; Redistribution and use in source and binary forms, with or without
; modification, are permitted provided that the following conditions are met:
;
; 1. Redistributions of source code must retain the above copyright notice, this
; list of conditions and the following disclaimer.
;
; 2. Redistributions in binary form must reproduce the above copyright notice,
; this list of conditions and the following disclaimer in the documentation
; and/or other materials provided with the distribution.
;
; THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
; ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
; WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
; DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
; ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
; (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
; ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
; (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
; SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
%include "ext/x86/x86inc.asm"
%if ARCH_X86_64
SECTION_RODATA 32
pw_1024: times 16 dw 1024
pb_mask: db 0, 0x80, 0x80, 0, 0x80, 0, 0, 0x80, 0x80, 0, 0, 0x80, 0, 0x80, 0x80, 0
rnd_next_upperbit_mask: dw 0x100B, 0x2016, 0x402C, 0x8058
byte_blend: db 0, 0, 0, 0xff, 0, 0, 0, 0
pw_seed_xor: times 2 dw 0xb524
times 2 dw 0x49d8
pd_m65536: dd ~0xffff
pb_23_22: times 2 db 23, 22
pb_1: times 4 db 1
hmul_bits: dw 32768, 16384, 8192, 4096
round: dw 2048, 1024, 512
mul_bits: dw 256, 128, 64, 32, 16
round_vals: dw 32, 64, 128, 256, 512
max: dw 255, 240, 235
min: dw 0, 16
pb_27_17_17_27: db 27, 17, 17, 27
%macro JMP_TABLE 1-*
%xdefine %1_table %%table
%xdefine %%base %1_table
%xdefine %%prefix mangle(private_prefix %+ _%1)
%%table:
%rep %0 - 1
dd %%prefix %+ .ar%2 - %%base
%rotate 1
%endrep
%endmacro
JMP_TABLE generate_grain_y_avx2, 0, 1, 2, 3
JMP_TABLE generate_grain_uv_420_avx2, 0, 1, 2, 3
struc FGData
.seed: resd 1
.num_y_points: resd 1
.y_points: resb 14 * 2
.chroma_scaling_from_luma: resd 1
.num_uv_points: resd 2
.uv_points: resb 2 * 10 * 2
.scaling_shift: resd 1
.ar_coeff_lag: resd 1
.ar_coeffs_y: resb 24
.ar_coeffs_uv: resb 2 * 26 ; includes padding
.ar_coeff_shift: resd 1
.grain_scale_shift: resd 1
.uv_mult: resd 2
.uv_luma_mult: resd 2
.uv_offset: resd 2
.overlap_flag: resd 1
.clip_to_restricted_range: resd 1
endstruc
cextern gaussian_sequence
SECTION .text
INIT_XMM avx2
cglobal generate_grain_y, 2, 9, 16, buf, fg_data
lea r4, [pb_mask]
%define base r4-pb_mask
movq xm1, [base+rnd_next_upperbit_mask]
movq xm4, [base+mul_bits]
movq xm7, [base+hmul_bits]
mov r2d, [fg_dataq+FGData.grain_scale_shift]
vpbroadcastw xm8, [base+round+r2*2]
mova xm5, [base+pb_mask]
vpbroadcastw xm0, [fg_dataq+FGData.seed]
vpbroadcastd xm9, [base+pd_m65536]
mov r2, -73*82
sub bufq, r2
lea r3, [gaussian_sequence]
.loop:
pand xm2, xm0, xm1
psrlw xm3, xm2, 10
por xm2, xm3 ; bits 0xf, 0x1e, 0x3c and 0x78 are set
pmullw xm2, xm4 ; bits 0x0f00 are set
pshufb xm2, xm5, xm2 ; set 15th bit for next 4 seeds
psllq xm6, xm2, 30
por xm2, xm6
psllq xm6, xm2, 15
por xm2, xm6 ; aggregate each bit into next seed's high bit
pmulhuw xm3, xm0, xm7
por xm2, xm3 ; 4 next output seeds
pshuflw xm0, xm2, q3333
psrlw xm2, 5
pmovzxwd xm3, xm2
mova xm6, xm9
vpgatherdd xm2, [r3+xm3*2], xm6
pandn xm2, xm9, xm2
packusdw xm2, xm2
pmulhrsw xm2, xm8
packsswb xm2, xm2
movd [bufq+r2], xm2
add r2, 4
jl .loop
; auto-regression code
movsxd r2, [fg_dataq+FGData.ar_coeff_lag]
movsxd r2, [base+generate_grain_y_avx2_table+r2*4]
lea r2, [r2+base+generate_grain_y_avx2_table]
jmp r2
.ar1:
DEFINE_ARGS buf, fg_data, cf3, shift, val3, min, max, x, val0
mov shiftd, [fg_dataq+FGData.ar_coeff_shift]
movsx cf3d, byte [fg_dataq+FGData.ar_coeffs_y+3]
movd xm4, [fg_dataq+FGData.ar_coeffs_y]
DEFINE_ARGS buf, h, cf3, shift, val3, min, max, x, val0
pinsrb xm4, [pb_1], 3
pmovsxbw xm4, xm4
pshufd xm5, xm4, q1111
pshufd xm4, xm4, q0000
vpbroadcastw xm3, [base+round_vals+shiftq*2-12] ; rnd
sub bufq, 82*73-(82*3+79)
mov hd, 70
mov mind, -128
mov maxd, 127
.y_loop_ar1:
mov xq, -76
movsx val3d, byte [bufq+xq-1]
.x_loop_ar1:
pmovsxbw xm0, [bufq+xq-82-1] ; top/left
pmovsxbw xm2, [bufq+xq-82+0] ; top
pmovsxbw xm1, [bufq+xq-82+1] ; top/right
punpcklwd xm0, xm2
punpcklwd xm1, xm3
pmaddwd xm0, xm4
pmaddwd xm1, xm5
paddd xm0, xm1
.x_loop_ar1_inner:
movd val0d, xm0
psrldq xm0, 4
imul val3d, cf3d
add val3d, val0d
%if WIN64
sarx val3d, val3d, shiftd
%else
sar val3d, shiftb
%endif
movsx val0d, byte [bufq+xq]
add val3d, val0d
cmp val3d, maxd
cmovg val3d, maxd
cmp val3d, mind
cmovl val3d, mind
mov byte [bufq+xq], val3b
; keep val3d in-place as left for next x iteration
inc xq
jz .x_loop_ar1_end
test xq, 3
jnz .x_loop_ar1_inner
jmp .x_loop_ar1
.x_loop_ar1_end:
add bufq, 82
dec hd
jg .y_loop_ar1
.ar0:
RET
.ar2:
DEFINE_ARGS buf, fg_data, shift
mov shiftd, [fg_dataq+FGData.ar_coeff_shift]
movd xm14, [base+hmul_bits-10+shiftq*2]
movq xm15, [base+byte_blend+1]
pmovsxbw xm8, [fg_dataq+FGData.ar_coeffs_y+0] ; cf0-7
movd xm9, [fg_dataq+FGData.ar_coeffs_y+8] ; cf8-11
pmovsxbw xm9, xm9
DEFINE_ARGS buf, h, x
pshufd xm12, xm9, q0000
pshufd xm13, xm9, q1111
pshufd xm11, xm8, q3333
pshufd xm10, xm8, q2222
pshufd xm9, xm8, q1111
pshufd xm8, xm8, q0000
sub bufq, 82*73-(82*3+79)
mov hd, 70
.y_loop_ar2:
mov xq, -76
.x_loop_ar2:
pmovsxbw xm0, [bufq+xq-82*2-2] ; y=-2,x=[-2,+5]
pmovsxbw xm1, [bufq+xq-82*1-2] ; y=-1,x=[-2,+5]
psrldq xm2, xm0, 2 ; y=-2,x=[-1,+5]
psrldq xm3, xm1, 2 ; y=-1,x=[-1,+5]
psrldq xm4, xm1, 4 ; y=-1,x=[+0,+5]
punpcklwd xm2, xm0, xm2
punpcklwd xm3, xm4
pmaddwd xm2, xm8
pmaddwd xm3, xm11
paddd xm2, xm3
psrldq xm4, xm0, 4 ; y=-2,x=[+0,+5]
psrldq xm5, xm0, 6 ; y=-2,x=[+1,+5]
psrldq xm6, xm0, 8 ; y=-2,x=[+2,+5]
punpcklwd xm4, xm5
punpcklwd xm6, xm1
psrldq xm7, xm1, 6 ; y=-1,x=[+1,+5]
psrldq xm1, xm1, 8 ; y=-1,x=[+2,+5]
punpcklwd xm7, xm1
pmaddwd xm4, xm9
pmaddwd xm6, xm10
pmaddwd xm7, xm12
paddd xm4, xm6
paddd xm2, xm7
paddd xm2, xm4
movq xm0, [bufq+xq-2] ; y=0,x=[-2,+5]
.x_loop_ar2_inner:
pmovsxbw xm1, xm0
pmaddwd xm3, xm1, xm13
paddd xm3, xm2
psrldq xm1, 4 ; y=0,x=0
psrldq xm2, 4 ; shift top to next pixel
psrad xm3, 5
packssdw xm3, xm3
pmulhrsw xm3, xm14
paddw xm3, xm1
packsswb xm3, xm3
pextrb [bufq+xq], xm3, 0
pslldq xm3, 2
pand xm3, xm15
pandn xm0, xm15, xm0
por xm0, xm3
psrldq xm0, 1
inc xq
jz .x_loop_ar2_end
test xq, 3
jnz .x_loop_ar2_inner
jmp .x_loop_ar2
.x_loop_ar2_end:
add bufq, 82
dec hd
jg .y_loop_ar2
RET
.ar3:
DEFINE_ARGS buf, fg_data, shift
%if WIN64
SUB rsp, 16*12
%assign stack_size_padded (stack_size_padded+16*12)
%assign stack_size (stack_size+16*12)
%else
ALLOC_STACK 16*12
%endif
mov shiftd, [fg_dataq+FGData.ar_coeff_shift]
movd xm14, [base+hmul_bits-10+shiftq*2]
movq xm15, [base+byte_blend]
pmovsxbw xm0, [fg_dataq+FGData.ar_coeffs_y+ 0] ; cf0-7
pmovsxbw xm1, [fg_dataq+FGData.ar_coeffs_y+ 8] ; cf8-15
pmovsxbw xm2, [fg_dataq+FGData.ar_coeffs_y+16] ; cf16-23
pshufd xm9, xm0, q1111
pshufd xm10, xm0, q2222
pshufd xm11, xm0, q3333
pshufd xm0, xm0, q0000
pshufd xm6, xm1, q1111
pshufd xm7, xm1, q2222
pshufd xm8, xm1, q3333
pshufd xm1, xm1, q0000
pshufd xm3, xm2, q1111
pshufd xm4, xm2, q2222
psrldq xm5, xm2, 10
pshufd xm2, xm2, q0000
pinsrw xm5, [base+round_vals+shiftq*2-10], 3
mova [rsp+ 0*16], xm0
mova [rsp+ 1*16], xm9
mova [rsp+ 2*16], xm10
mova [rsp+ 3*16], xm11
mova [rsp+ 4*16], xm1
mova [rsp+ 5*16], xm6
mova [rsp+ 6*16], xm7
mova [rsp+ 7*16], xm8
mova [rsp+ 8*16], xm2
mova [rsp+ 9*16], xm3
mova [rsp+10*16], xm4
mova [rsp+11*16], xm5
pxor xm13, xm13
DEFINE_ARGS buf, h, x
sub bufq, 82*73-(82*3+79)
mov hd, 70
.y_loop_ar3:
mov xq, -76
.x_loop_ar3:
movu xm0, [bufq+xq-82*3-3] ; y=-3,x=[-3,+12]
movu xm1, [bufq+xq-82*2-3] ; y=-2,x=[-3,+12]
movu xm2, [bufq+xq-82*1-3] ; y=-1,x=[-3,+12]
pxor xm3, xm3
pcmpgtb xm6, xm3, xm2
pcmpgtb xm5, xm3, xm1
pcmpgtb xm4, xm3, xm0
punpckhbw xm3, xm0, xm4
punpcklbw xm0, xm4
punpckhbw xm4, xm1, xm5
punpcklbw xm1, xm5
punpckhbw xm5, xm2, xm6
punpcklbw xm2, xm6
psrldq xm6, xm0, 2
psrldq xm7, xm0, 4
psrldq xm8, xm0, 6
psrldq xm9, xm0, 8
palignr xm10, xm3, xm0, 10
palignr xm11, xm3, xm0, 12
punpcklwd xm0, xm6
punpcklwd xm7, xm8
punpcklwd xm9, xm10
punpcklwd xm11, xm1
pmaddwd xm0, [rsp+ 0*16]
pmaddwd xm7, [rsp+ 1*16]
pmaddwd xm9, [rsp+ 2*16]
pmaddwd xm11, [rsp+ 3*16]
paddd xm0, xm7
paddd xm9, xm11
paddd xm0, xm9
psrldq xm6, xm1, 2
psrldq xm7, xm1, 4
psrldq xm8, xm1, 6
psrldq xm9, xm1, 8
palignr xm10, xm4, xm1, 10
palignr xm11, xm4, xm1, 12
psrldq xm12, xm2, 2
punpcklwd xm6, xm7
punpcklwd xm8, xm9
punpcklwd xm10, xm11
punpcklwd xm12, xm2, xm12
pmaddwd xm6, [rsp+ 4*16]
pmaddwd xm8, [rsp+ 5*16]
pmaddwd xm10, [rsp+ 6*16]
pmaddwd xm12, [rsp+ 7*16]
paddd xm6, xm8
paddd xm10, xm12
paddd xm6, xm10
paddd xm0, xm6
psrldq xm6, xm2, 4
psrldq xm7, xm2, 6
psrldq xm8, xm2, 8
palignr xm9, xm5, xm2, 10
palignr xm5, xm5, xm2, 12
punpcklwd xm6, xm7
punpcklwd xm8, xm9
punpcklwd xm5, xm13
pmaddwd xm6, [rsp+ 8*16]
pmaddwd xm8, [rsp+ 9*16]
pmaddwd xm5, [rsp+10*16]
paddd xm0, xm6
paddd xm8, xm5
paddd xm0, xm8
movq xm1, [bufq+xq-3] ; y=0,x=[-3,+4]
.x_loop_ar3_inner:
pmovsxbw xm2, xm1
pmaddwd xm2, [rsp+16*11]
pshufd xm3, xm2, q1111
paddd xm2, xm3 ; left+cur
paddd xm2, xm0 ; add top
psrldq xm0, 4
psrad xm2, 5
packssdw xm2, xm2
pmulhrsw xm2, xm14
packsswb xm2, xm2
pextrb [bufq+xq], xm2, 0
pslldq xm2, 3
pand xm2, xm15
pandn xm1, xm15, xm1
por xm1, xm2
psrldq xm1, 1
inc xq
jz .x_loop_ar3_end
test xq, 3
jnz .x_loop_ar3_inner
jmp .x_loop_ar3
.x_loop_ar3_end:
add bufq, 82
dec hd
jg .y_loop_ar3
RET
INIT_XMM avx2
cglobal generate_grain_uv_420, 4, 10, 16, buf, bufy, fg_data, uv
lea r4, [pb_mask]
%define base r4-pb_mask
movq xm1, [base+rnd_next_upperbit_mask]
movq xm4, [base+mul_bits]
movq xm7, [base+hmul_bits]
mov r5d, [fg_dataq+FGData.grain_scale_shift]
vpbroadcastw xm8, [base+round+r5*2]
mova xm5, [base+pb_mask]
vpbroadcastw xm0, [fg_dataq+FGData.seed]
vpbroadcastw xm9, [base+pw_seed_xor+uvq*4]
pxor xm0, xm9
vpbroadcastd xm9, [base+pd_m65536]
lea r6, [gaussian_sequence]
mov r7d, 38
add bufq, 44
.loop_y:
mov r5, -44
.loop_x:
pand xm2, xm0, xm1
psrlw xm3, xm2, 10
por xm2, xm3 ; bits 0xf, 0x1e, 0x3c and 0x78 are set
pmullw xm2, xm4 ; bits 0x0f00 are set
pshufb xm2, xm5, xm2 ; set 15th bit for next 4 seeds
psllq xm6, xm2, 30
por xm2, xm6
psllq xm6, xm2, 15
por xm2, xm6 ; aggregate each bit into next seed's high bit
pmulhuw xm3, xm0, xm7
por xm2, xm3 ; 4 next output seeds
pshuflw xm0, xm2, q3333
psrlw xm2, 5
pmovzxwd xm3, xm2
mova xm6, xm9
vpgatherdd xm2, [r6+xm3*2], xm6
pandn xm2, xm9, xm2
packusdw xm2, xm2
pmulhrsw xm2, xm8
packsswb xm2, xm2
movd [bufq+r5], xm2
add r5, 4
jl .loop_x
add bufq, 82
dec r7d
jg .loop_y
; auto-regression code
movsxd r5, [fg_dataq+FGData.ar_coeff_lag]
movsxd r5, [base+generate_grain_uv_420_avx2_table+r5*4]
lea r5, [r5+base+generate_grain_uv_420_avx2_table]
jmp r5
.ar0:
INIT_YMM avx2
DEFINE_ARGS buf, bufy, fg_data, uv, unused, shift
imul uvd, 25
mov shiftd, [fg_dataq+FGData.ar_coeff_shift]
movd xm4, [fg_dataq+FGData.ar_coeffs_uv+uvq]
movd xm3, [base+hmul_bits+shiftq*2]
DEFINE_ARGS buf, bufy, h
pmovsxbw xm4, xm4
vpbroadcastd m7, [pb_1]
vpbroadcastw m6, [hmul_bits+4]
vpbroadcastw m4, xm4
vpbroadcastw m3, xm3
sub bufq, 82*38+82-(82*3+41)
add bufyq, 3+82*3
mov hd, 35
.y_loop_ar0:
; first 32 pixels
movu xm8, [bufyq]
movu xm9, [bufyq+82]
movu xm10, [bufyq+16]
movu xm11, [bufyq+82+16]
vinserti128 m8, [bufyq+32], 1
vinserti128 m9, [bufyq+82+32], 1
vinserti128 m10, [bufyq+48], 1
vinserti128 m11, [bufyq+82+48], 1
pmaddubsw m8, m7, m8
pmaddubsw m9, m7, m9
pmaddubsw m10, m7, m10
pmaddubsw m11, m7, m11
paddw m8, m9
paddw m10, m11
pmulhrsw m8, m6
pmulhrsw m10, m6
pmullw m8, m4
pmullw m10, m4
pmulhrsw m8, m3
pmulhrsw m10, m3
packsswb m8, m10
movu m0, [bufq]
punpckhbw m1, m0, m8
punpcklbw m0, m8
pmaddubsw m1, m7, m1
pmaddubsw m0, m7, m0
packsswb m0, m1
movu [bufq], m0
; last 6 pixels
movu xm8, [bufyq+32*2]
movu xm9, [bufyq+32*2+82]
pmaddubsw xm8, xm7, xm8
pmaddubsw xm9, xm7, xm9
paddw xm8, xm9
pmulhrsw xm8, xm6
pmullw xm8, xm4
pmulhrsw xm8, xm3
packsswb xm8, xm8
movq xm0, [bufq+32]
punpcklbw xm8, xm0
pmaddubsw xm8, xm7, xm8
packsswb xm8, xm8
vpblendw xm0, xm8, xm0, 1000b
movq [bufq+32], xm0
add bufq, 82
add bufyq, 82*2
dec hd
jg .y_loop_ar0
RET
.ar1:
INIT_XMM avx2
DEFINE_ARGS buf, bufy, fg_data, uv, val3, cf3, min, max, x, shift
imul uvd, 25
mov shiftd, [fg_dataq+FGData.ar_coeff_shift]
movsx cf3d, byte [fg_dataq+FGData.ar_coeffs_uv+uvq+3]
movd xm4, [fg_dataq+FGData.ar_coeffs_uv+uvq]
pinsrb xm4, [fg_dataq+FGData.ar_coeffs_uv+uvq+4], 3
DEFINE_ARGS buf, bufy, h, val0, val3, cf3, min, max, x, shift
pmovsxbw xm4, xm4
pshufd xm5, xm4, q1111
pshufd xm4, xm4, q0000
pmovsxwd xm3, [base+round_vals+shiftq*2-12] ; rnd
vpbroadcastd xm7, [pb_1]
vpbroadcastw xm6, [hmul_bits+4]
vpbroadcastd xm3, xm3
sub bufq, 82*38+44-(82*3+41)
add bufyq, 79+82*3
mov hd, 35
mov mind, -128
mov maxd, 127
.y_loop_ar1:
mov xq, -38
movsx val3d, byte [bufq+xq-1]
.x_loop_ar1:
pmovsxbw xm0, [bufq+xq-82-1] ; top/left
movq xm8, [bufyq+xq*2]
movq xm9, [bufyq+xq*2+82]
psrldq xm2, xm0, 2 ; top
psrldq xm1, xm0, 4 ; top/right
pmaddubsw xm8, xm7, xm8
pmaddubsw xm9, xm7, xm9
paddw xm8, xm9
pmulhrsw xm8, xm6
punpcklwd xm0, xm2
punpcklwd xm1, xm8
pmaddwd xm0, xm4
pmaddwd xm1, xm5
paddd xm0, xm1
paddd xm0, xm3
.x_loop_ar1_inner:
movd val0d, xm0
psrldq xm0, 4
imul val3d, cf3d
add val3d, val0d
sarx val3d, val3d, shiftd
movsx val0d, byte [bufq+xq]
add val3d, val0d
cmp val3d, maxd
cmovg val3d, maxd
cmp val3d, mind
cmovl val3d, mind
mov byte [bufq+xq], val3b
; keep val3d in-place as left for next x iteration
inc xq
jz .x_loop_ar1_end
test xq, 3
jnz .x_loop_ar1_inner
jmp .x_loop_ar1
.x_loop_ar1_end:
add bufq, 82
add bufyq, 82*2
dec hd
jg .y_loop_ar1
RET
.ar2:
DEFINE_ARGS buf, bufy, fg_data, uv, unused, shift
mov shiftd, [fg_dataq+FGData.ar_coeff_shift]
imul uvd, 25
movd xm15, [base+hmul_bits-10+shiftq*2]
pmovsxbw xm8, [fg_dataq+FGData.ar_coeffs_uv+uvq+0] ; cf0-7
pmovsxbw xm9, [fg_dataq+FGData.ar_coeffs_uv+uvq+8] ; cf8-12
vpbroadcastw xm7, [base+hmul_bits+4]
vpbroadcastd xm6, [base+pb_1]
DEFINE_ARGS buf, bufy, h, x
pshufd xm12, xm9, q0000
pshufd xm13, xm9, q1111
pshufd xm14, xm9, q2222
pxor xm10, xm10
vpblendw xm14, xm10, 10101010b
pshufd xm11, xm8, q3333
pshufd xm10, xm8, q2222
pshufd xm9, xm8, q1111
pshufd xm8, xm8, q0000
sub bufq, 82*38+44-(82*3+41)
add bufyq, 79+82*3
mov hd, 35
.y_loop_ar2:
mov xq, -38
.x_loop_ar2:
pmovsxbw xm0, [bufq+xq-82*2-2] ; y=-2,x=[-2,+5]
pmovsxbw xm1, [bufq+xq-82*1-2] ; y=-1,x=[-2,+5]
psrldq xm2, xm0, 2 ; y=-2,x=[-1,+5]
psrldq xm3, xm1, 2 ; y=-1,x=[-1,+5]
psrldq xm4, xm1, 4 ; y=-1,x=[+0,+5]
punpcklwd xm2, xm0, xm2
punpcklwd xm3, xm4
pmaddwd xm2, xm8
pmaddwd xm3, xm11
paddd xm2, xm3
psrldq xm4, xm0, 4 ; y=-2,x=[+0,+5]
psrldq xm5, xm0, 6 ; y=-2,x=[+1,+5]
psrldq xm0, 8 ; y=-2,x=[+2,+5]
punpcklwd xm4, xm5
punpcklwd xm0, xm1
psrldq xm3, xm1, 6 ; y=-1,x=[+1,+5]
psrldq xm1, xm1, 8 ; y=-1,x=[+2,+5]
punpcklwd xm3, xm1
pmaddwd xm4, xm9
pmaddwd xm0, xm10
pmaddwd xm3, xm12
paddd xm4, xm0
paddd xm2, xm3
paddd xm2, xm4
movq xm0, [bufyq+xq*2]
movq xm3, [bufyq+xq*2+82]
pmaddubsw xm0, xm6, xm0
pmaddubsw xm3, xm6, xm3
paddw xm0, xm3
pmulhrsw xm0, xm7
punpcklwd xm0, xm0
pmaddwd xm0, xm14
paddd xm2, xm0
movq xm0, [bufq+xq-2] ; y=0,x=[-2,+5]
.x_loop_ar2_inner:
pmovsxbw xm0, xm0
pmaddwd xm3, xm0, xm13
paddd xm3, xm2
psrldq xm2, 4 ; shift top to next pixel
psrad xm3, 5
packssdw xm3, xm3
pmulhrsw xm3, xm15
pslldq xm3, 2
psrldq xm0, 2
paddw xm3, xm0
vpblendw xm0, xm3, 00000010b
packsswb xm0, xm0
pextrb [bufq+xq], xm0, 1
inc xq
jz .x_loop_ar2_end
test xq, 3
jnz .x_loop_ar2_inner
jmp .x_loop_ar2
.x_loop_ar2_end:
add bufq, 82
add bufyq, 82*2
dec hd
jg .y_loop_ar2
RET
.ar3:
DEFINE_ARGS buf, bufy, fg_data, uv, unused, shift
SUB rsp, 16*12
%assign stack_size_padded (stack_size_padded+16*12)
%assign stack_size (stack_size+16*12)
mov shiftd, [fg_dataq+FGData.ar_coeff_shift]
imul uvd, 25
movd xm14, [base+hmul_bits-10+shiftq*2]
pmovsxbw xm0, [fg_dataq+FGData.ar_coeffs_uv+uvq+ 0] ; cf0-7
pmovsxbw xm1, [fg_dataq+FGData.ar_coeffs_uv+uvq+ 8] ; cf8-15
pmovsxbw xm2, [fg_dataq+FGData.ar_coeffs_uv+uvq+16] ; cf16-23
pmovsxbw xm5, [fg_dataq+FGData.ar_coeffs_uv+uvq+24] ; cf24 [luma]
pshufd xm9, xm0, q1111
pshufd xm10, xm0, q2222
pshufd xm11, xm0, q3333
pshufd xm0, xm0, q0000
pshufd xm6, xm1, q1111
pshufd xm7, xm1, q2222
pshufd xm8, xm1, q3333
pshufd xm1, xm1, q0000
pshufd xm3, xm2, q1111
pshufd xm4, xm2, q2222
vpbroadcastw xm5, xm5
vpblendw xm4, xm5, 10101010b ; interleave luma cf
psrldq xm5, xm2, 10
pshufd xm2, xm2, q0000
pinsrw xm5, [base+round_vals+shiftq*2-10], 3
mova [rsp+ 0*16], xm0
mova [rsp+ 1*16], xm9
mova [rsp+ 2*16], xm10
mova [rsp+ 3*16], xm11
mova [rsp+ 4*16], xm1
mova [rsp+ 5*16], xm6
mova [rsp+ 6*16], xm7
mova [rsp+ 7*16], xm8
mova [rsp+ 8*16], xm2
mova [rsp+ 9*16], xm3
mova [rsp+10*16], xm4
mova [rsp+11*16], xm5
vpbroadcastd xm13, [base+pb_1]
vpbroadcastw xm15, [base+hmul_bits+4]
DEFINE_ARGS buf, bufy, h, x
sub bufq, 82*38+44-(82*3+41)
add bufyq, 79+82*3
mov hd, 35
.y_loop_ar3:
mov xq, -38
.x_loop_ar3:
movu xm0, [bufq+xq-82*3-3] ; y=-3,x=[-3,+12]
movu xm1, [bufq+xq-82*2-3] ; y=-2,x=[-3,+12]
movu xm2, [bufq+xq-82*1-3] ; y=-1,x=[-3,+12]
pxor xm3, xm3
pcmpgtb xm6, xm3, xm2
pcmpgtb xm5, xm3, xm1
pcmpgtb xm4, xm3, xm0
punpckhbw xm3, xm0, xm4
punpcklbw xm0, xm4
punpckhbw xm4, xm1, xm5
punpcklbw xm1, xm5
punpckhbw xm5, xm2, xm6
punpcklbw xm2, xm6
psrldq xm6, xm0, 2
psrldq xm7, xm0, 4
psrldq xm8, xm0, 6
psrldq xm9, xm0, 8
palignr xm10, xm3, xm0, 10
palignr xm11, xm3, xm0, 12
punpcklwd xm0, xm6
punpcklwd xm7, xm8
punpcklwd xm9, xm10
punpcklwd xm11, xm1
pmaddwd xm0, [rsp+ 0*16]
pmaddwd xm7, [rsp+ 1*16]
pmaddwd xm9, [rsp+ 2*16]
pmaddwd xm11, [rsp+ 3*16]
paddd xm0, xm7
paddd xm9, xm11
paddd xm0, xm9
psrldq xm6, xm1, 2
psrldq xm7, xm1, 4
psrldq xm8, xm1, 6
psrldq xm9, xm1, 8
palignr xm10, xm4, xm1, 10
palignr xm11, xm4, xm1, 12
psrldq xm12, xm2, 2
punpcklwd xm6, xm7
punpcklwd xm8, xm9
punpcklwd xm10, xm11
punpcklwd xm12, xm2, xm12
pmaddwd xm6, [rsp+ 4*16]
pmaddwd xm8, [rsp+ 5*16]
pmaddwd xm10, [rsp+ 6*16]
pmaddwd xm12, [rsp+ 7*16]
paddd xm6, xm8
paddd xm10, xm12
paddd xm6, xm10
paddd xm0, xm6
psrldq xm6, xm2, 4
psrldq xm7, xm2, 6
psrldq xm8, xm2, 8
palignr xm9, xm5, xm2, 10
palignr xm5, xm5, xm2, 12
movq xm1, [bufyq+xq*2]
movq xm2, [bufyq+xq*2+82]
pmaddubsw xm1, xm13, xm1
pmaddubsw xm2, xm13, xm2
paddw xm1, xm2
pmulhrsw xm1, xm15
punpcklwd xm6, xm7
punpcklwd xm8, xm9
punpcklwd xm5, xm1
pmaddwd xm6, [rsp+ 8*16]
pmaddwd xm8, [rsp+ 9*16]
pmaddwd xm5, [rsp+10*16]
paddd xm0, xm6
paddd xm8, xm5
paddd xm0, xm8
movq xm1, [bufq+xq-3] ; y=0,x=[-3,+4]
.x_loop_ar3_inner:
pmovsxbw xm1, xm1
pmaddwd xm2, xm1, [rsp+16*11]
pshufd xm3, xm2, q1111
paddd xm2, xm3 ; left+cur
paddd xm2, xm0 ; add top
psrldq xm0, 4
psrad xm2, 5
packssdw xm2, xm2
pmulhrsw xm2, xm14
pslldq xm2, 6
vpblendw xm1, xm2, 1000b
packsswb xm1, xm1
pextrb [bufq+xq], xm1, 3
psrldq xm1, 1
inc xq
jz .x_loop_ar3_end
test xq, 3
jnz .x_loop_ar3_inner
jmp .x_loop_ar3
.x_loop_ar3_end:
add bufq, 82
add bufyq, 82*2
dec hd
jg .y_loop_ar3
RET
INIT_YMM avx2
cglobal fgy_32x32xn, 6, 13, 16, dst, src, stride, fg_data, w, scaling, grain_lut
pcmpeqw m10, m10
psrld m10, 24
mov r7d, [fg_dataq+FGData.scaling_shift]
lea r8, [pb_mask]
%define base r8-pb_mask
vpbroadcastw m11, [base+mul_bits+r7*2-14]
mov r7d, [fg_dataq+FGData.clip_to_restricted_range]
vpbroadcastw m12, [base+max+r7*4]
vpbroadcastw m13, [base+min+r7*2]
DEFINE_ARGS dst, src, stride, fg_data, w, scaling, grain_lut, unused, sby, see, overlap
mov overlapd, [fg_dataq+FGData.overlap_flag]
movifnidn sbyd, sbym
test sbyd, sbyd
setnz r7b
test r7b, overlapb
jnz .vertical_overlap
imul seed, sbyd, (173 << 24) | 37
add seed, (105 << 24) | 178
rol seed, 8
movzx seed, seew
xor seed, [fg_dataq+FGData.seed]
DEFINE_ARGS dst, src, stride, src_bak, w, scaling, grain_lut, \
unused1, unused2, see, overlap
lea src_bakq, [srcq+wq]
neg wq
sub dstq, srcq
.loop_x:
mov r6d, seed
or seed, 0xEFF4
shr r6d, 1
test seeb, seeh
lea seed, [r6+0x8000]
cmovp seed, r6d ; updated seed
DEFINE_ARGS dst, src, stride, src_bak, w, scaling, grain_lut, \
offx, offy, see, overlap
mov offxd, seed
rorx offyd, seed, 8
shr offxd, 12
and offyd, 0xf
imul offyd, 164
lea offyq, [offyq+offxq*2+747] ; offy*stride+offx
DEFINE_ARGS dst, src, stride, src_bak, w, scaling, grain_lut, \
h, offxy, see, overlap
mov hd, hm
mov grain_lutq, grain_lutmp
.loop_y:
; src
mova m0, [srcq]
pxor m2, m2
punpckhbw m1, m0, m2
punpcklbw m0, m2 ; m0-1: src as word
punpckhwd m5, m0, m2
punpcklwd m4, m0, m2
punpckhwd m7, m1, m2
punpcklwd m6, m1, m2 ; m4-7: src as dword
; scaling[src]
pcmpeqw m3, m3
pcmpeqw m9, m9
vpgatherdd m8, [scalingq+m4], m3
vpgatherdd m4, [scalingq+m5], m9
pcmpeqw m3, m3
pcmpeqw m9, m9
vpgatherdd m5, [scalingq+m6], m3
vpgatherdd m6, [scalingq+m7], m9
pand m8, m10
pand m4, m10
pand m5, m10
pand m6, m10
packusdw m8, m4
packusdw m5, m6
; grain = grain_lut[offy+y][offx+x]
movu m3, [grain_lutq+offxyq]
pcmpgtb m7, m2, m3
punpcklbw m2, m3, m7
punpckhbw m3, m7
; noise = round2(scaling[src] * grain, scaling_shift)
pmullw m2, m8
pmullw m3, m5
pmulhrsw m2, m11
pmulhrsw m3, m11
; dst = clip_pixel(src, noise)
paddw m0, m2
paddw m1, m3
pmaxsw m0, m13
pmaxsw m1, m13
pminsw m0, m12
pminsw m1, m12
packuswb m0, m1
mova [dstq+srcq], m0
add srcq, strideq
add grain_lutq, 82
dec hd
jg .loop_y
add wq, 32
jge .end
lea srcq, [src_bakq+wq]
test overlapd, overlapd
jz .loop_x
; r8m = sbym
movd xm15, [pb_27_17_17_27]
cmp dword r8m, 0
jne .loop_x_hv_overlap
; horizontal overlap (without vertical overlap)
movd xm14, [pw_1024]
.loop_x_h_overlap:
mov r6d, seed
or seed, 0xEFF4
shr r6d, 1
test seeb, seeh
lea seed, [r6+0x8000]
cmovp seed, r6d ; updated seed
DEFINE_ARGS dst, src, stride, src_bak, w, scaling, grain_lut, \
offx, offy, see, left_offxy
lea left_offxyd, [offyd+32] ; previous column's offy*stride+offx
mov offxd, seed
rorx offyd, seed, 8
shr offxd, 12
and offyd, 0xf
imul offyd, 164
lea offyq, [offyq+offxq*2+747] ; offy*stride+offx
DEFINE_ARGS dst, src, stride, src_bak, w, scaling, grain_lut, \
h, offxy, see, left_offxy
mov hd, hm
mov grain_lutq, grain_lutmp
.loop_y_h_overlap:
; src
mova m0, [srcq]
pxor m2, m2
punpckhbw m1, m0, m2
punpcklbw m0, m2 ; m0-1: src as word
punpckhwd m5, m0, m2
punpcklwd m4, m0, m2
punpckhwd m7, m1, m2
punpcklwd m6, m1, m2 ; m4-7: src as dword
; scaling[src]
pcmpeqw m3, m3
pcmpeqw m9, m9
vpgatherdd m8, [scalingq+m4], m3
vpgatherdd m4, [scalingq+m5], m9
pcmpeqw m3, m3
pcmpeqw m9, m9
vpgatherdd m5, [scalingq+m6], m3
vpgatherdd m6, [scalingq+m7], m9
pand m8, m10
pand m4, m10
pand m5, m10
pand m6, m10
packusdw m8, m4
packusdw m5, m6
; grain = grain_lut[offy+y][offx+x]
movu m3, [grain_lutq+offxyq]
movd xm4, [grain_lutq+left_offxyq]
punpcklbw xm4, xm3
pmaddubsw xm4, xm15, xm4
pmulhrsw xm4, xm14
packsswb xm4, xm4
vpblendw xm4, xm3, 11111110b
vpblendd m3, m4, 00001111b
pcmpgtb m7, m2, m3
punpcklbw m2, m3, m7
punpckhbw m3, m7
; noise = round2(scaling[src] * grain, scaling_shift)
pmullw m2, m8
pmullw m3, m5
pmulhrsw m2, m11
pmulhrsw m3, m11
; dst = clip_pixel(src, noise)
paddw m0, m2
paddw m1, m3
pmaxsw m0, m13
pmaxsw m1, m13
pminsw m0, m12
pminsw m1, m12
packuswb m0, m1
mova [dstq+srcq], m0
add srcq, strideq
add grain_lutq, 82
dec hd
jg .loop_y_h_overlap
add wq, 32
jge .end
lea srcq, [src_bakq+wq]
; r8m = sbym
cmp dword r8m, 0
jne .loop_x_hv_overlap
jmp .loop_x_h_overlap
.end:
RET
.vertical_overlap:
DEFINE_ARGS dst, src, stride, fg_data, w, scaling, grain_lut, unused, sby, see, overlap
movzx sbyd, sbyb
imul seed, [fg_dataq+FGData.seed], 0x00010001
imul r7d, sbyd, 173 * 0x00010001
imul sbyd, 37 * 0x01000100
add r7d, (105 << 16) | 188
add sbyd, (178 << 24) | (141 << 8)
and r7d, 0x00ff00ff
and sbyd, 0xff00ff00
xor seed, r7d
xor seed, sbyd ; (cur_seed << 16) | top_seed
DEFINE_ARGS dst, src, stride, src_bak, w, scaling, grain_lut, \
unused1, unused2, see, overlap
lea src_bakq, [srcq+wq]
neg wq
sub dstq, srcq
vpbroadcastd m14, [pw_1024]
.loop_x_v_overlap:
vpbroadcastw m15, [pb_27_17_17_27]
; we assume from the block above that bits 8-15 of r7d are zero'ed
mov r6d, seed
or seed, 0xeff4eff4
test seeb, seeh
setp r7b ; parity of top_seed
shr seed, 16
shl r7d, 16
test seeb, seeh
setp r7b ; parity of cur_seed
or r6d, 0x00010001
xor r7d, r6d
rorx seed, r7d, 1 ; updated (cur_seed << 16) | top_seed
DEFINE_ARGS dst, src, stride, src_bak, w, scaling, grain_lut, \
offx, offy, see, overlap, top_offxy
rorx offyd, seed, 8
rorx offxd, seed, 12
and offyd, 0xf000f
and offxd, 0xf000f
imul offyd, 164
; offxy=offy*stride+offx, (cur_offxy << 16) | top_offxy
lea offyq, [offyq+offxq*2+0x10001*747+32*82]
DEFINE_ARGS dst, src, stride, src_bak, w, scaling, grain_lut, \
h, offxy, see, overlap, top_offxy
movzx top_offxyd, offxyw
shr offxyd, 16
mov hd, hm
mov grain_lutq, grain_lutmp
.loop_y_v_overlap:
; src
mova m0, [srcq]
pxor m2, m2
punpckhbw m1, m0, m2
punpcklbw m0, m2 ; m0-1: src as word
punpckhwd m5, m0, m2
punpcklwd m4, m0, m2
punpckhwd m7, m1, m2
punpcklwd m6, m1, m2 ; m4-7: src as dword
; scaling[src]
pcmpeqw m3, m3
pcmpeqw m9, m9
vpgatherdd m8, [scalingq+m4], m3
vpgatherdd m4, [scalingq+m5], m9
pcmpeqw m3, m3
pcmpeqw m9, m9
vpgatherdd m5, [scalingq+m6], m3
vpgatherdd m6, [scalingq+m7], m9
pand m8, m10
pand m4, m10
pand m5, m10
pand m6, m10
packusdw m8, m4
packusdw m5, m6
; grain = grain_lut[offy+y][offx+x]
movu m3, [grain_lutq+offxyq]
movu m4, [grain_lutq+top_offxyq]
punpckhbw m6, m4, m3
punpcklbw m4, m3
pmaddubsw m6, m15, m6
pmaddubsw m4, m15, m4
pmulhrsw m6, m14
pmulhrsw m4, m14
packsswb m3, m4, m6
pcmpgtb m7, m2, m3
punpcklbw m2, m3, m7
punpckhbw m3, m7
; noise = round2(scaling[src] * grain, scaling_shift)
pmullw m2, m8
pmullw m3, m5
pmulhrsw m2, m11
pmulhrsw m3, m11
; dst = clip_pixel(src, noise)
paddw m0, m2
paddw m1, m3
pmaxsw m0, m13
pmaxsw m1, m13
pminsw m0, m12
pminsw m1, m12
packuswb m0, m1
mova [dstq+srcq], m0
vpbroadcastw m15, [pb_27_17_17_27+2] ; swap weights for second v-overlap line
add srcq, strideq
add grain_lutq, 82
dec hw
jz .end_y_v_overlap
; 2 lines get vertical overlap, then fall back to non-overlap code for
; remaining (up to) 30 lines
xor hd, 0x10000
test hd, 0x10000
jnz .loop_y_v_overlap
jmp .loop_y
.end_y_v_overlap:
add wq, 32
jge .end_hv
lea srcq, [src_bakq+wq]
; since fg_dataq.overlap is guaranteed to be set, we never jump
; back to .loop_x_v_overlap, and instead always fall-through to
; h+v overlap
movd xm15, [pb_27_17_17_27]
.loop_x_hv_overlap:
vpbroadcastw m8, [pb_27_17_17_27]
; we assume from the block above that bits 8-15 of r7d are zero'ed
mov r6d, seed
or seed, 0xeff4eff4
test seeb, seeh
setp r7b ; parity of top_seed
shr seed, 16
shl r7d, 16
test seeb, seeh
setp r7b ; parity of cur_seed
or r6d, 0x00010001
xor r7d, r6d
rorx seed, r7d, 1 ; updated (cur_seed << 16) | top_seed
DEFINE_ARGS dst, src, stride, src_bak, w, scaling, grain_lut, \
offx, offy, see, left_offxy, top_offxy, topleft_offxy
lea topleft_offxyq, [top_offxyq+32]
lea left_offxyq, [offyq+32]
rorx offyd, seed, 8
rorx offxd, seed, 12
and offyd, 0xf000f
and offxd, 0xf000f
imul offyd, 164
; offxy=offy*stride+offx, (cur_offxy << 16) | top_offxy
lea offyq, [offyq+offxq*2+0x10001*747+32*82]
DEFINE_ARGS dst, src, stride, src_bak, w, scaling, grain_lut, \
h, offxy, see, left_offxy, top_offxy, topleft_offxy
movzx top_offxyd, offxyw
shr offxyd, 16
mov hd, hm
mov grain_lutq, grain_lutmp
.loop_y_hv_overlap:
; src
mova m0, [srcq]
pxor m2, m2
punpckhbw m1, m0, m2
punpcklbw m0, m2 ; m0-1: src as word
punpckhwd m5, m0, m2
punpcklwd m4, m0, m2
punpckhwd m7, m1, m2
punpcklwd m6, m1, m2 ; m4-7: src as dword
; scaling[src]
pcmpeqw m3, m3
; FIXME it would be nice to have another register here to do 2 vpgatherdd's in parallel
vpgatherdd m9, [scalingq+m4], m3
pcmpeqw m3, m3
vpgatherdd m4, [scalingq+m5], m3
pcmpeqw m3, m3
vpgatherdd m5, [scalingq+m6], m3
pcmpeqw m3, m3
vpgatherdd m6, [scalingq+m7], m3
pand m9, m10
pand m4, m10
pand m5, m10
pand m6, m10
packusdw m9, m4
packusdw m5, m6
; grain = grain_lut[offy+y][offx+x]
movu m3, [grain_lutq+offxyq]
movu m6, [grain_lutq+top_offxyq]
movd xm4, [grain_lutq+left_offxyq]
movd xm7, [grain_lutq+topleft_offxyq]
; do h interpolation first (so top | top/left -> top, left | cur -> cur)
punpcklbw xm4, xm3
punpcklbw xm7, xm6
pmaddubsw xm4, xm15, xm4
pmaddubsw xm7, xm15, xm7
pmulhrsw xm4, xm14
pmulhrsw xm7, xm14
packsswb xm4, xm4
packsswb xm7, xm7
vpblendw xm4, xm3, 11111110b
vpblendw xm7, xm6, 11111110b
vpblendd m3, m4, 00001111b
vpblendd m6, m7, 00001111b
; followed by v interpolation (top | cur -> cur)
punpckhbw m7, m6, m3
punpcklbw m6, m3
pmaddubsw m7, m8, m7
pmaddubsw m6, m8, m6
pmulhrsw m7, m14
pmulhrsw m6, m14
packsswb m3, m6, m7
pcmpgtb m7, m2, m3
punpcklbw m2, m3, m7
punpckhbw m3, m7
; noise = round2(scaling[src] * grain, scaling_shift)
pmullw m2, m9
pmullw m3, m5
pmulhrsw m2, m11
pmulhrsw m3, m11
; dst = clip_pixel(src, noise)
paddw m0, m2
paddw m1, m3
pmaxsw m0, m13
pmaxsw m1, m13
pminsw m0, m12
pminsw m1, m12
packuswb m0, m1
mova [dstq+srcq], m0
vpbroadcastw m8, [pb_27_17_17_27+2] ; swap weights for second v-overlap line
add srcq, strideq
add grain_lutq, 82
dec hw
jz .end_y_hv_overlap
; 2 lines get vertical overlap, then fall back to non-overlap code for
; remaining (up to) 30 lines
xor hd, 0x10000
test hd, 0x10000
jnz .loop_y_hv_overlap
jmp .loop_y_h_overlap
.end_y_hv_overlap:
add wq, 32
lea srcq, [src_bakq+wq]
jl .loop_x_hv_overlap
.end_hv:
RET
cglobal fguv_32x32xn_i420, 6, 15, 16, dst, src, stride, fg_data, w, scaling, \
grain_lut, h, sby, luma, lstride, uv_pl, is_id
pcmpeqw m10, m10
psrld m10, 24
mov r7d, [fg_dataq+FGData.scaling_shift]
lea r8, [pb_mask]
%define base r8-pb_mask
vpbroadcastw m11, [base+mul_bits+r7*2-14]
mov r7d, [fg_dataq+FGData.clip_to_restricted_range]
mov r9d, dword is_idm
vpbroadcastw m13, [base+min+r7*2]
shlx r7d, r7d, r9d
vpbroadcastw m12, [base+max+r7*2]
cmp byte [fg_dataq+FGData.chroma_scaling_from_luma], 0
jne .csfl
%macro FGUV_32x32xN_LOOP 1 ; not-csfl
DEFINE_ARGS dst, src, stride, fg_data, w, scaling, grain_lut, unused, sby, see, overlap
%if %1
mov r7d, dword r11m
vpbroadcastb m0, [fg_dataq+FGData.uv_mult+r7*4]
vpbroadcastb m1, [fg_dataq+FGData.uv_luma_mult+r7*4]
punpcklbw m14, m1, m0
vpbroadcastw m15, [fg_dataq+FGData.uv_offset+r7*4]
%else
vpbroadcastd m14, [pw_1024]
vpbroadcastd m15, [pb_23_22]
%endif
mov overlapd, [fg_dataq+FGData.overlap_flag]
movifnidn sbyd, sbym
test sbyd, sbyd
setnz r7b
test r7b, overlapb
jnz %%vertical_overlap
imul seed, sbyd, (173 << 24) | 37
add seed, (105 << 24) | 178
rol seed, 8
movzx seed, seew
xor seed, [fg_dataq+FGData.seed]
DEFINE_ARGS dst, src, stride, luma, w, scaling, grain_lut, \
unused2, unused3, see, overlap, unused4, unused5, lstride
mov lumaq, r9mp
lea r12, [srcq+wq]
lea r13, [dstq+wq]
lea r14, [lumaq+wq*2]
mov r11mp, r12
mov r12mp, r13
mov lstrideq, r10mp
neg wq
%%loop_x:
mov r6d, seed
or seed, 0xEFF4
shr r6d, 1
test seeb, seeh
lea seed, [r6+0x8000]
cmovp seed, r6d ; updated seed
DEFINE_ARGS dst, src, stride, luma, w, scaling, grain_lut, \
offx, offy, see, overlap, unused1, unused2, lstride
mov offxd, seed
rorx offyd, seed, 8
shr offxd, 12
and offyd, 0xf
imul offyd, 82
lea offyq, [offyq+offxq+498] ; offy*stride+offx
DEFINE_ARGS dst, src, stride, luma, w, scaling, grain_lut, \
h, offxy, see, overlap, unused1, unused2, lstride
mov hd, hm
mov grain_lutq, grain_lutmp
%%loop_y:
; src
mova xm4, [lumaq+lstrideq*0+ 0]
mova xm6, [lumaq+lstrideq*0+16]
mova xm0, [srcq]
vpbroadcastd m7, [pb_1]
vinserti128 m4, [lumaq+lstrideq*2 +0], 1
vinserti128 m6, [lumaq+lstrideq*2+16], 1
vinserti128 m0, [srcq+strideq], 1
pxor m2, m2
pmaddubsw m4, m7
pmaddubsw m6, m7
pavgw m4, m2
pavgw m6, m2
%if %1
packuswb m4, m6 ; luma
punpckhbw m6, m4, m0
punpcklbw m4, m0 ; { luma, chroma }
pmaddubsw m6, m14
pmaddubsw m4, m14
psraw m6, 6
psraw m4, 6
paddw m6, m15
paddw m4, m15
packuswb m4, m6 ; pack+unpack = clip
punpckhbw m6, m4, m2
punpcklbw m4, m2
%endif
punpckhwd m5, m4, m2
punpcklwd m4, m2
punpckhwd m7, m6, m2
punpcklwd m6, m2 ; m4-7: luma_src as dword
; scaling[luma_src]
pcmpeqw m3, m3
pcmpeqw m9, m9
vpgatherdd m8, [scalingq+m4], m3
vpgatherdd m4, [scalingq+m5], m9
pcmpeqw m3, m3
pcmpeqw m9, m9
vpgatherdd m5, [scalingq+m6], m3
vpgatherdd m6, [scalingq+m7], m9
pand m8, m10
pand m4, m10
pand m5, m10
pand m6, m10
packusdw m8, m4
packusdw m5, m6
; unpack chroma_source
punpckhbw m1, m0, m2
punpcklbw m0, m2 ; m0-1: src as word
; grain = grain_lut[offy+y][offx+x]
movu xm3, [grain_lutq+offxyq+ 0]
vinserti128 m3, [grain_lutq+offxyq+82], 1
pcmpgtb m7, m2, m3
punpcklbw m2, m3, m7
punpckhbw m3, m7
; noise = round2(scaling[luma_src] * grain, scaling_shift)
pmullw m2, m8
pmullw m3, m5
pmulhrsw m2, m11
pmulhrsw m3, m11
; dst = clip_pixel(src, noise)
paddw m0, m2
paddw m1, m3
pmaxsw m0, m13
pmaxsw m1, m13
pminsw m0, m12
pminsw m1, m12
packuswb m0, m1
mova [dstq], xm0
vextracti128 [dstq+strideq], m0, 1
lea srcq, [srcq+strideq*2]
lea dstq, [dstq+strideq*2]
lea lumaq, [lumaq+lstrideq*4]
add grain_lutq, 82*2
sub hb, 2
jg %%loop_y
add wq, 16
jge %%end
mov srcq, r11mp
mov dstq, r12mp
lea lumaq, [r14+wq*2]
add srcq, wq
add dstq, wq
test overlapd, overlapd
jz %%loop_x
; r8m = sbym
cmp dword r8m, 0
jne %%loop_x_hv_overlap
; horizontal overlap (without vertical overlap)
%%loop_x_h_overlap:
mov r6d, seed
or seed, 0xEFF4
shr r6d, 1
test seeb, seeh
lea seed, [r6+0x8000]
cmovp seed, r6d ; updated seed
DEFINE_ARGS dst, src, stride, luma, w, scaling, grain_lut, \
offx, offy, see, left_offxy, unused1, unused2, lstride
lea left_offxyd, [offyd+16] ; previous column's offy*stride+offx
mov offxd, seed
rorx offyd, seed, 8
shr offxd, 12
and offyd, 0xf
imul offyd, 82
lea offyq, [offyq+offxq+498] ; offy*stride+offx
DEFINE_ARGS dst, src, stride, luma, w, scaling, grain_lut, \
h, offxy, see, left_offxy, unused1, unused2, lstride
mov hd, hm
mov grain_lutq, grain_lutmp
%%loop_y_h_overlap:
; src
mova xm4, [lumaq+lstrideq*0+ 0]
mova xm6, [lumaq+lstrideq*0+16]
mova xm0, [srcq]
vpbroadcastd m7, [pb_1]
vinserti128 m4, [lumaq+lstrideq*2 +0], 1
vinserti128 m6, [lumaq+lstrideq*2+16], 1
vinserti128 m0, [srcq+strideq], 1
pxor m2, m2
pmaddubsw m4, m7
pmaddubsw m6, m7
pavgw m4, m2
pavgw m6, m2
%if %1
packuswb m4, m6 ; luma
punpckhbw m6, m4, m0
punpcklbw m4, m0 ; { luma, chroma }
pmaddubsw m6, m14
pmaddubsw m4, m14
psraw m6, 6
psraw m4, 6
paddw m6, m15
paddw m4, m15
packuswb m4, m6 ; pack+unpack = clip
punpckhbw m6, m4, m2
punpcklbw m4, m2
%endif
punpckhwd m5, m4, m2
punpcklwd m4, m2
punpckhwd m7, m6, m2
punpcklwd m6, m2 ; m4-7: luma_src as dword
; scaling[luma_src]
pcmpeqw m3, m3
pcmpeqw m9, m9
vpgatherdd m8, [scalingq+m4], m3
vpgatherdd m4, [scalingq+m5], m9
pcmpeqw m3, m3
pcmpeqw m9, m9
vpgatherdd m5, [scalingq+m6], m3
vpgatherdd m6, [scalingq+m7], m9
pand m8, m10
pand m4, m10
pand m5, m10
pand m6, m10
packusdw m8, m4
packusdw m5, m6
; unpack chroma_source
punpckhbw m1, m0, m2
punpcklbw m0, m2 ; m0-1: src as word
; grain = grain_lut[offy+y][offx+x]
%if %1
vpbroadcastd m6, [pb_23_22] ; FIXME
%endif
movu xm3, [grain_lutq+offxyq+ 0]
movd xm4, [grain_lutq+left_offxyq+ 0]
vinserti128 m3, [grain_lutq+offxyq+82], 1
vinserti128 m4, [grain_lutq+left_offxyq+82], 1
punpcklbw m4, m3
%if %1
pmaddubsw m4, m6, m4
pmulhrsw m4, [pw_1024]
%else
pmaddubsw m4, m15, m4
pmulhrsw m4, m14
%endif
packsswb m4, m4
pcmpeqw m6, m6 ; FIXME
psrldq m6, 15 ; FIXME
vpblendvb m3, m3, m4, m6
pcmpgtb m7, m2, m3
punpcklbw m2, m3, m7
punpckhbw m3, m7
; noise = round2(scaling[luma_src] * grain, scaling_shift)
pmullw m2, m8
pmullw m3, m5
pmulhrsw m2, m11
pmulhrsw m3, m11
; dst = clip_pixel(src, noise)
paddw m0, m2
paddw m1, m3
pmaxsw m0, m13
pmaxsw m1, m13
pminsw m0, m12
pminsw m1, m12
packuswb m0, m1
mova [dstq], xm0
vextracti128 [dstq+strideq], m0, 1
lea srcq, [srcq+strideq*2]
lea dstq, [dstq+strideq*2]
lea lumaq, [lumaq+lstrideq*4]
add grain_lutq, 82*2
sub hb, 2
jg %%loop_y_h_overlap
add wq, 16
jge %%end
mov srcq, r11mp
mov dstq, r12mp
lea lumaq, [r14+wq*2]
add srcq, wq
add dstq, wq
; r8m = sbym
cmp dword r8m, 0
jne %%loop_x_hv_overlap
jmp %%loop_x_h_overlap
%%end:
RET
%%vertical_overlap:
DEFINE_ARGS dst, src, stride, fg_data, w, scaling, grain_lut, unused, \
sby, see, overlap, unused1, unused2, lstride
movzx sbyd, sbyb
imul seed, [fg_dataq+FGData.seed], 0x00010001
imul r7d, sbyd, 173 * 0x00010001
imul sbyd, 37 * 0x01000100
add r7d, (105 << 16) | 188
add sbyd, (178 << 24) | (141 << 8)
and r7d, 0x00ff00ff
and sbyd, 0xff00ff00
xor seed, r7d
xor seed, sbyd ; (cur_seed << 16) | top_seed
DEFINE_ARGS dst, src, stride, luma, w, scaling, grain_lut, \
unused1, unused2, see, overlap, unused3, unused4, lstride
mov lumaq, r9mp
lea r12, [srcq+wq]
lea r13, [dstq+wq]
lea r14, [lumaq+wq*2]
mov r11mp, r12
mov r12mp, r13
mov lstrideq, r10mp
neg wq
%%loop_x_v_overlap:
; we assume from the block above that bits 8-15 of r7d are zero'ed
mov r6d, seed
or seed, 0xeff4eff4
test seeb, seeh
setp r7b ; parity of top_seed
shr seed, 16
shl r7d, 16
test seeb, seeh
setp r7b ; parity of cur_seed
or r6d, 0x00010001
xor r7d, r6d
rorx seed, r7d, 1 ; updated (cur_seed << 16) | top_seed
DEFINE_ARGS dst, src, stride, luma, w, scaling, grain_lut, \
offx, offy, see, overlap, top_offxy, unused, lstride
rorx offyd, seed, 8
rorx offxd, seed, 12
and offyd, 0xf000f
and offxd, 0xf000f
imul offyd, 82
; offxy=offy*stride+offx, (cur_offxy << 16) | top_offxy
lea offyq, [offyq+offxq+0x10001*498+16*82]
DEFINE_ARGS dst, src, stride, luma, w, scaling, grain_lut, \
h, offxy, see, overlap, top_offxy, unused, lstride
movzx top_offxyd, offxyw
shr offxyd, 16
mov hd, hm
mov grain_lutq, grain_lutmp
%%loop_y_v_overlap:
; src
mova xm4, [lumaq+lstrideq*0+ 0]
mova xm6, [lumaq+lstrideq*0+16]
mova xm0, [srcq]
vpbroadcastd m7, [pb_1]
vinserti128 m4, [lumaq+lstrideq*2 +0], 1
vinserti128 m6, [lumaq+lstrideq*2+16], 1
vinserti128 m0, [srcq+strideq], 1
pxor m2, m2
pmaddubsw m4, m7
pmaddubsw m6, m7
pavgw m4, m2
pavgw m6, m2
%if %1
packuswb m4, m6 ; luma
punpckhbw m6, m4, m0
punpcklbw m4, m0 ; { luma, chroma }
pmaddubsw m6, m14
pmaddubsw m4, m14
psraw m6, 6
psraw m4, 6
paddw m6, m15
paddw m4, m15
packuswb m4, m6 ; pack+unpack = clip
punpckhbw m6, m4, m2
punpcklbw m4, m2
%endif
punpckhwd m5, m4, m2
punpcklwd m4, m2
punpckhwd m7, m6, m2
punpcklwd m6, m2 ; m4-7: luma_src as dword
; scaling[luma_src]
pcmpeqw m3, m3
pcmpeqw m9, m9
vpgatherdd m8, [scalingq+m4], m3
vpgatherdd m4, [scalingq+m5], m9
pcmpeqw m3, m3
pcmpeqw m9, m9
vpgatherdd m5, [scalingq+m6], m3
vpgatherdd m6, [scalingq+m7], m9
pand m8, m10
pand m4, m10
pand m5, m10
pand m6, m10
packusdw m8, m4
packusdw m5, m6
; unpack chroma_source
punpckhbw m1, m0, m2
punpcklbw m0, m2 ; m0-1: src as word
; grain = grain_lut[offy+y][offx+x]
%if %1
vpbroadcastd m6, [pb_23_22]
%endif
movq xm3, [grain_lutq+offxyq]
movq xm4, [grain_lutq+top_offxyq]
vinserti128 m3, [grain_lutq+offxyq+8], 1
vinserti128 m4, [grain_lutq+top_offxyq+8], 1
punpcklbw m4, m3
%if %1
pmaddubsw m4, m6, m4
pmulhrsw m4, [pw_1024]
%else
pmaddubsw m4, m15, m4
pmulhrsw m4, m14
%endif
packsswb m4, m4
vpermq m4, m4, q3120
; only interpolate first line, insert second line unmodified
vinserti128 m3, m4, [grain_lutq+offxyq+82], 1
pcmpgtb m7, m2, m3
punpcklbw m2, m3, m7
punpckhbw m3, m7
; noise = round2(scaling[luma_src] * grain, scaling_shift)
pmullw m2, m8
pmullw m3, m5
pmulhrsw m2, m11
pmulhrsw m3, m11
; dst = clip_pixel(src, noise)
paddw m0, m2
paddw m1, m3
pmaxsw m0, m13
pmaxsw m1, m13
pminsw m0, m12
pminsw m1, m12
packuswb m0, m1
mova [dstq], xm0
vextracti128 [dstq+strideq], m0, 1
sub hb, 2
jl %%end_y_v_overlap
lea srcq, [srcq+strideq*2]
lea dstq, [dstq+strideq*2]
lea lumaq, [lumaq+lstrideq*4]
add grain_lutq, 82*2
jmp %%loop_y
%%end_y_v_overlap:
add wq, 16
jge %%end_hv
mov srcq, r11mp
mov dstq, r12mp
lea lumaq, [r14+wq*2]
add srcq, wq
add dstq, wq
; since fg_dataq.overlap is guaranteed to be set, we never jump
; back to .loop_x_v_overlap, and instead always fall-through to
; h+v overlap
%%loop_x_hv_overlap:
; we assume from the block above that bits 8-15 of r7d are zero'ed
mov r6d, seed
or seed, 0xeff4eff4
test seeb, seeh
setp r7b ; parity of top_seed
shr seed, 16
shl r7d, 16
test seeb, seeh
setp r7b ; parity of cur_seed
or r6d, 0x00010001
xor r7d, r6d
rorx seed, r7d, 1 ; updated (cur_seed << 16) | top_seed
DEFINE_ARGS dst, src, stride, luma, w, scaling, grain_lut, \
offx, offy, see, left_offxy, top_offxy, topleft_offxy, lstride
lea topleft_offxyq, [top_offxyq+16]
lea left_offxyq, [offyq+16]
rorx offyd, seed, 8
rorx offxd, seed, 12
and offyd, 0xf000f
and offxd, 0xf000f
imul offyd, 82
; offxy=offy*stride+offx, (cur_offxy << 16) | top_offxy
lea offyq, [offyq+offxq+0x10001*498+16*82]
DEFINE_ARGS dst, src, stride, luma, w, scaling, grain_lut, \
h, offxy, see, left_offxy, top_offxy, topleft_offxy, lstride
movzx top_offxyd, offxyw
shr offxyd, 16
mov hd, hm
mov grain_lutq, grain_lutmp
%%loop_y_hv_overlap:
; src
mova xm4, [lumaq+lstrideq*0+ 0]
mova xm6, [lumaq+lstrideq*0+16]
mova xm0, [srcq]
vpbroadcastd m7, [pb_1]
vinserti128 m4, [lumaq+lstrideq*2 +0], 1
vinserti128 m6, [lumaq+lstrideq*2+16], 1
vinserti128 m0, [srcq+strideq], 1
pxor m2, m2
pmaddubsw m4, m7
pmaddubsw m6, m7
pavgw m4, m2
pavgw m6, m2
%if %1
packuswb m4, m6 ; luma
punpckhbw m6, m4, m0
punpcklbw m4, m0 ; { luma, chroma }
pmaddubsw m6, m14
pmaddubsw m4, m14
psraw m6, 6
psraw m4, 6
paddw m6, m15
paddw m4, m15
packuswb m4, m6 ; pack+unpack = clip
punpckhbw m6, m4, m2
punpcklbw m4, m2
%endif
punpckhwd m5, m4, m2
punpcklwd m4, m2
punpckhwd m7, m6, m2
punpcklwd m6, m2 ; m4-7: src as dword
; scaling[src]
pcmpeqw m9, m9
pcmpeqw m3, m3
vpgatherdd m8, [scalingq+m4], m9
vpgatherdd m4, [scalingq+m5], m3
pcmpeqw m9, m9
pcmpeqw m3, m3
vpgatherdd m5, [scalingq+m6], m9
vpgatherdd m6, [scalingq+m7], m3
pand m8, m10
pand m4, m10
pand m5, m10
pand m6, m10
packusdw m8, m4
packusdw m5, m6
; unpack chroma source
punpckhbw m1, m0, m2
punpcklbw m0, m2 ; m0-1: src as word
; grain = grain_lut[offy+y][offx+x]
%if %1
vpbroadcastd m9, [pb_23_22]
%endif
movu xm3, [grain_lutq+offxyq]
movq xm6, [grain_lutq+top_offxyq]
vinserti128 m3, [grain_lutq+offxyq+82], 1
vinserti128 m6, [grain_lutq+top_offxyq+8], 1
movd xm4, [grain_lutq+left_offxyq]
movd xm7, [grain_lutq+topleft_offxyq]
vinserti128 m4, [grain_lutq+left_offxyq+82], 1
; do h interpolation first (so top | top/left -> top, left | cur -> cur)
punpcklbw m4, m3
punpcklbw xm7, xm6
%if %1
pmaddubsw m4, m9, m4
pmaddubsw xm7, xm9, xm7
pmulhrsw m4, [pw_1024]
pmulhrsw xm7, [pw_1024]
%else
pmaddubsw m4, m15, m4
pmaddubsw xm7, xm15, xm7
pmulhrsw m4, m14
pmulhrsw xm7, xm14
%endif
packsswb m4, m4
packsswb xm7, xm7
pcmpeqw m9, m9 ; this is kind of ugly
psrldq m9, 15
vpblendvb m3, m3, m4, m9
shufpd m9, m9, m9, 1110b
vpblendvb m6, m6, m7, m9
vpermq m9, m3, q3120
; followed by v interpolation (top | cur -> cur)
punpcklbw m6, m9
%if %1
vpbroadcastd m9, [pb_23_22]
pmaddubsw m6, m9, m6
pmulhrsw m6, [pw_1024]
%else
pmaddubsw m6, m15, m6
pmulhrsw m6, m14
%endif
packsswb m6, m6
vpermq m6, m6, q3120
vpblendd m3, m3, m6, 00001111b
pcmpgtb m7, m2, m3
punpcklbw m2, m3, m7
punpckhbw m3, m7
; noise = round2(scaling[src] * grain, scaling_shift)
pmullw m2, m8
pmullw m3, m5
pmulhrsw m2, m11
pmulhrsw m3, m11
; dst = clip_pixel(src, noise)
paddw m0, m2
paddw m1, m3
pmaxsw m0, m13
pmaxsw m1, m13
pminsw m0, m12
pminsw m1, m12
packuswb m0, m1
mova [dstq], xm0
vextracti128 [dstq+strideq], m0, 1
lea srcq, [srcq+strideq*2]
lea dstq, [dstq+strideq*2]
lea lumaq, [lumaq+lstrideq*4]
add grain_lutq, 82*2
sub hb, 2
jg %%loop_y_h_overlap
%%end_y_hv_overlap:
add wq, 16
jge %%end_hv
mov srcq, r11mp
mov dstq, r12mp
lea lumaq, [r14+wq*2]
add srcq, wq
add dstq, wq
jmp %%loop_x_hv_overlap
%%end_hv:
RET
%endmacro
FGUV_32x32xN_LOOP 1
.csfl:
FGUV_32x32xN_LOOP 0
%endif ; ARCH_X86_64
|
#include "Platform.inc"
#include "FarCalls.inc"
#include "PowerOnReset.inc"
#include "BrownOutReset.inc"
#include "MclrReset.inc"
#include "PowerManagement.inc"
radix decimal
extern pollForWork
Main code
global main
global initialisationCompleted
main:
.safelySetBankFor PCON
btfss PCON, NOT_POR
goto powerOnReset
btfss PCON, NOT_BOR
goto brownOutReset
mclrReset:
fcall initialiseAfterMclrReset
goto pollingLoop
powerOnReset:
fcall initialiseAfterPowerOnReset
goto pollingLoop
brownOutReset:
fcall initialiseAfterBrownOutReset
pollingLoop:
fcall pollForWork
goto pollingLoop
initialisationCompleted:
.safelySetBankFor INTCON
movlw (1 << GIE) | (1 << PEIE)
iorwf INTCON
fcall preventSleep
fcall pollForWork
fcall allowSlowClock
return
end
|
; A104344: a(n) = Sum_{k=1..n} k!^2.
; 1,5,41,617,15017,533417,25935017,1651637417,133333531817,13301522971817,1606652445211817,231049185247771817,39006837228880411817,7639061293780877851817,1717651314017980301851817,439480788011413032845851817,126953027293558583218061851817,41117342095090841723228045851817,14838647795569910055266832269851817
add $0,2
lpb $0
mov $2,$0
sub $0,1
pow $2,2
mul $1,$2
add $1,3
lpe
div $1,3
sub $1,1
mov $0,$1
|
; void sp1_PutSprClr(uchar **sprdest, struct sp1_ap *src, uchar n)
SECTION code_clib
SECTION code_temp_sp1
PUBLIC _sp1_PutSprClr
EXTERN asm_sp1_PutSprClr
_sp1_PutSprClr:
pop af
pop hl
pop de
pop bc
push bc
push de
push hl
push af
ld b,c
jp asm_sp1_PutSprClr
|
SECTION rodata_font
SECTION rodata_font_fzx
PUBLIC _ff_ao_RoundelSansLatin5
_ff_ao_RoundelSansLatin5:
BINARY "font/fzx/fonts/ao/Roundel/RoundelSans_Latin5.fzx"
|
; OZ - A more utopian OS
; ex: set expandtab softtabstop=4 shiftwidth=4 nowrap :
;
;
; x86-64 startup
;
;
; usage:
; $ qemu-system-x86_64 -boot a -fda oz_fd -monitor stdio
;
; requires: nasm-2.07 or later from: http://www.nasm.us
;
; credits:
; many thanks to the folks at wiki.osdev.org who archive great info.
; http://wiki.osdev.org/Entering_Long_Mode_Directly
;
; contributors:
; djv - Duane Voth
;
; history:
; 2015/10/12 - 0.00.64 - djv - dup oz-x86-32-asm-001, get into 64bit mode
%ifdef USB
[map symbols oz_usb.map]
%else
[map symbols oz_fd.map]
%endif
; -------- stage 1 ---------------------------------------------------------
; A classic x86 Master Boot Record
section .text start=0x7c00 ; PC BIOS boot loader entry point
codestart :
bios_entry :
cli
jmp 0:main ; load cs, skip over mbr data struct
times 6-($-$$) db 0
oemid db "oz"
times 11-($-$$) db 0
; compute the size of the kernel image in 512 byte sectors
nsectors equ codesize/512
; -------- main (enter protected mode) --------
bits 16
align 2
main :
mov ax,kstack_loc
mov sp,ax
xor ax,ax
mov ss,ax
mov es,ax
mov ds,ax
mov fs,ax
mov gs,ax
cld
push dx ; save BIOS drive number
mov ax,0x0600 ; ah=06h : scroll window up, if al = 0 clrscr
mov cx,0x0000 ; clear window from 0,0
mov dx,0x174f ; to 23,79
mov bh,0xf ; fill with hi white
int 0x10 ; clear screen for direct writes to video memory
mov si,bootmsg
xor bx,bx
call puts_vga_rm
; puts_vga_rm leaves gs pointing at video mem
mov byte [gs:1],0xE ; turn the first two chars yellow
mov byte [gs:3],0xE
; ---- verify this is a 64bit processor
pushfd
pop eax
mov ebx,eax
xor eax,0x200000 ; flip the cpuid test flag
push eax
popfd
pushfd
pop eax
xor eax,ebx ; did anything change?
jnz have_cpuid
not64 :
mov si,no64msg
xor bx,bx
call puts_vga_rm
halt :
hlt
jmp halt ; we're done
have_cpuid :
push ebx
popfd ; restore flags
mov eax,0x80000000
cpuid
cmp eax,0x80000001 ; is extended function 0x80000001 available?
jb not64
mov eax,0x80000001
cpuid
test edx, 1 << 29 ; test LM bit
jz not64
; ---- setup 4KB paging tables
; swdev3a s4.5 pg 4-25 fig 4-8
; swdev3a s4.6 pg 4-23 fig 4-10
mov edi,pml4e ; first pml4
mov cr3,edi ; install it in cr3
mov eax,pdpte + 7
stosd
xor eax,eax
mov ecx,0x400-1
rep stosd
; assume pdpte physically follows pml4
mov ax,pgdir + 7 ; next setup the pdpte
stosd
xor eax,eax
mov cx,0x400-1
rep stosd
; assume pgdir physically follows pdpte
mov ax,pgtb0 + 7 ; page table 0: present, pl=3, r/w
stosd ; ... pl=3 for now (simplify vga access)
xor eax,eax ; invalidate the rest of the addr space
mov cx,0x400-1
rep stosd
; assume pgtb0 physically follows pgdir
; pgtb0 is the page table for kernel memory
stosd ; access to page 0 will always cause a fault
stosd
mov ebx,eax
mov ax,0x1000 + 3 ; rest are direct map: present, pl=0, r/w
mov cx,0x200-1
pgtb0_fill :
stosd
xchg eax,ebx
stosd
xchg eax,ebx
add eax,0x1000
loop pgtb0_fill
; enable paging and protected mode
mov eax,0xa0
mov cr4,eax ; set the pae and pge
mov ecx,0xc0000080 ; get the efer msr
rdmsr
or ax,0x00000100 ; set lme
wrmsr
mov eax,cr0
or eax,0x80000001 ; enable paging and protected mode together
mov cr0,eax
; ----
lgdt [gdtr] ; initialize the gdt
jmp codesel:flush_ip1 ; flush the cpu instruction pipeline
flush_ip1:
bits 64 ; instructions after this point are 64bit
mov ax,datasel ; yes its silly to load the segments regs in 64bit
mov ds,ax ; mode (only fs & gs can be used) but this helps us
mov es,ax ; check to see if we are parsing the qemu register
mov ss,ax ; dumps correctly
mov fs,ax
mov ax,videosel
mov gs,ax
; ---- debug marker
mov byte [gs:rbx+1],0xA ; turn the first two chars green
mov byte [gs:rbx+3],0xA
;sti ; can't do this ...
idle :
hlt ; wait for interrupts
jmp idle
; ----------------------------
; puts_vga_rm - write a null delimited string to the VGA controller
; in real mode
;
; esi - address of string
; ebx - screen location (2 bytes per char, 160 bytes per line)
; eax - destroyed
; gs - destroyed
bits 16
puts_vga_rm :
mov ax,0xb800 ; point gs at video memory
mov gs,ax
puts_vga_rm_loop :
lodsb
cmp al,0
jz puts_vga_rm_done
mov [gs:bx],al
inc ebx
inc ebx
jmp puts_vga_rm_loop
puts_vga_rm_done :
ret
align 8 ; only need 4 but 8 looks nicer when debugging
codesize equ ($-codestart)
; ---------------------------------------------------------
section .data
datastart :
; -------- descriptors --------------
; Intel SW dev manual 3a, 3.4.5, pg 103
;
; In my opinion, macros for descriptor entries
; don't make the code that much more readable.
gdt :
nullsel equ $-gdt ; nullsel = 0h
dq 0,0 ; first descriptor per convention is 0
codesel equ $-gdt ; codesel = 10h 4Gb flat over all logical mem
dw 0x0000 ; limit 0-15
dw 0x0000 ; base 0-15
db 0x00 ; base 16-23
db 0x9a ; present, dpl=0, code e/r
db 0x20 ; 4k granular, 64bit/8bit, limit 16-19
db 0x00 ; base 24-31
dd 0 ; base 32-63
dd 0
datasel equ $-gdt ; datasel = 20h 4Gb flat over all logical mem
dw 0x0000 ; limit 0-15
dw 0x0000 ; base 0-15
db 0x00 ; base 16-23
db 0x92 ; present, dpl=0, data r/w
db 0x20 ; 4k granular, 64bit/8bit, limit 16-19
db 0x00 ; base 24-31
dd 0 ; base 32-63
dd 0
videosel equ $-gdt ; videosel = 30h
dw 3999 ; limit 80*25*2-1
dw 0x8000 ; base 0xb8000
db 0x0b
db 0x92 ; present, dpl=0, data, r/w
db 0x20 ; byte granular, 64bit/8bit
db 0 ; base 24-31
dd 0 ; base 32-63
dd 0
gdt_end :
gdtr :
dw gdt_end - gdt - 1 ; gdt length
dq gdt ; gdt physical address
idtr :
dw idt_end - idt - 1 ; length of the idt
dq idt ; address of the idt
bootmsg db "OZ v0.00.64 - 2015/10/12",0
no64msg db "cpu not 64bit ",0
times 446-codesize-($-$$) db 0 ; Fill with zeros up to the partition table
%ifdef USB
; a partition table for my 512MB USB stick
db 0x80, 0x01, 0x01, 0, 0x06, 0x10, 0xe0, 0xbe, 0x20, 0, 0, 0, 0xe0, 0x7b, 0xf, 0
db 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
db 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
db 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
%else
; A default partition table that matches a 1.44MB floppy
db 0x80,0x01,0x01,0x00,0x06,0x01,0x12,0x4f
db 0x12,0x00,0x00,0x00,0x2e,0x0b,0x00,0x00
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
%endif
times 510-codesize-($-$$) db 0 ; fill with zeros up to MBR signature
dw 0x0aa55 ; write aa55 in bytes 511,512 to indicate
; that it is a boot sector.
pml4e equ 0x1000 ; use some of the free memory below us
pdpte equ 0x2000 ; code above assumes this follows pml4e
pgdir equ 0x3000 ; code above assumes this follows pdpte
pgtb0 equ 0x4000 ; code above assumes this follows pgdir
idt equ 0x6000
idt_end equ idt+48*8 ; 32 sw + 16 remapped hw vectors
kstack_loc equ 0x7000
kstack_size equ 1024
datasize equ ($-datastart)
kend :
|
; A081690: From P-positions in a certain game.
; 0,1,3,4,5,7,8,9,10,12,13,14,15,16,17,18,19,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,72,73,74,75,76,77
mov $2,5
add $2,$0
mov $3,$0
mov $5,$0
sub $0,1
add $2,$3
sub $2,3
add $0,$2
trn $0,6
mov $2,0
mov $4,3
lpb $0
sub $0,1
add $2,1
mul $4,2
trn $0,$4
lpe
add $1,$2
lpb $5
add $1,1
sub $5,1
lpe
|
;***********************************************************
; Version 2.40.00
;***********************************************************
; Function: recip16
; Processor: C55xx
; Description: Calculates reciprocal of Q15 number. C-callable.
;
; Useage: void recip16 (DATA *x, DATA *z, DATA *zexp, ushort nx)
;
;
; History:
; 07/07/2003 - fixed bug in range test
; Copyright Texas instruments Inc, 2000
;****************************************************************
; Description:
;
; This routine returns the fractional and exponential portion
; of the reciprocal of a Q15 number. Since the reciprocal is always
; greater than 1, it returns an exponent such that:
;
; z[i] * zexp[i] = reciprocal
;
;----------------------------------------------------------------
; Algorithm:
;
; +--------------------------+
; | Ym = 2*Ym - Ym^2*Xnorm |
; +--------------------------+
;
; If we start with an initial estimate of Ym, then equation
; will converge to a solution very rapidly (typically
; 3 iterations for 16-bit resolution).
;
; The initial estimate can either be obtained from a look up
; table, or from choosing a mid-point, or simply from linear
; interpolation. The method chosen for this problem is the
; latter. This is simply accomplished by taking the complement
; of the least significant bits of the Xnorm value.
;
; Copyright Texas instruments Inc, 2000
;----------------------------------------------------------------
; Revision History:
; 1.01 A. Jaffe 1/25/99 - Updated register usage using previous work
; by Alex Tessarolo and Jeff Axelrod.
;****************************************************************
.ARMS_off ;enable assembler for ARMS=0
.CPL_on ;enable assembler for CPL=1
.mmregs ;enable mem mapped register names
; Stack frame
; -----------
RET_ADDR_SZ .set 1 ;return address
REG_SAVE_SZ .set 0 ;save-on-entry registers saved
FRAME_SZ .set 0 ;local variables
ARG_BLK_SZ .set 0 ;argument block
PARAM_OFFSET .set ARG_BLK_SZ + FRAME_SZ + REG_SAVE_SZ + RET_ADDR_SZ
; Register usage
; --------------
.asg AR0, x_ptr ;linear pointer
.asg AR1, z_ptr ;linear pointer
.asg AR2, zexp_ptr ;linear pointer
.asg T0, norm_ptr ;temp linear pointer
.asg AR3, ye_ptr ;table linear pointer
.asg BRC0, outer_cnt ;outer loop count
ST2mask .set 0000000000000000b ;circular/linear pointers
.global _recip16
.text
_recip16:
PSH mmap(ST3_55)
;
; Allocate the local frame and argument block
;----------------------------------------------------------------
; SP = SP - #(ARG_BLK_SZ + FRAME_SZ + REG_SAVE_SZ)
; - not necessary for this function (the above is zero)
;
; Save any save-on-entry registers that are used
;----------------------------------------------------------------
; - nothing to save for this function
;
; Configure the status registers as needed.
;----------------------------------------------------------------
AND #001FFh, mmap(ST0_55) ;clear all ACOVx, TC1, TC2, C
OR #04100h, mmap(ST1_55) ;set CPL, SXMD
AND #0F9DFh, mmap(ST1_55) ;clear M40, SATD, 54CM
AND #07A00h, mmap(ST2_55) ;clear ARMS, RDM, CDPLC, AR[0-7]LC
AND #0FFDDh, mmap(ST3_55) ;clear SATA, SMUL
;
; Setup passed parameters in their destination registers
; Setup circular/linear CDP/ARx behavior
;----------------------------------------------------------------
; x pointer - passed in its destination register, need do nothing
; z pointer - passed in its destination register, need do nothing
; zexp pointer - passed in its destination register, need do nothing
; Set circular/linear ARx behavior
OR #ST2mask, mmap(ST2_55) ;configure circ/linear pointers
;
; Setup loop counts
;----------------------------------------------------------------
MOV #1, BRC1 ;repeat inner loop 2x
SUB #1, T0 ;T0=n-1
MOV T0, outer_cnt ;outer loop executes n times
;
; Start of outer loop
;----------------------------------------------------------------
RPTB loop1 ;start the outer loop
MOV *x_ptr+ <<#16, AC1 ;load first input value
MANT AC1, AC0 ;calculate normalization for 1st vlaue
::NEXP AC1, T1
NEG T1 ;exponent value for offset pointer
ADD #1, T1, ye_ptr ;offset pointer to exponent
MOV HI(AC0), norm_ptr ;store xnorm
||SFTS AC0 ,#-1 ;shift right by 1 for 1st approximation
XOR #1FFFh << #16, AC0 ;estimate the first Ym value
MOV HI(AC0), *z_ptr ;store first Ym
; First two iterations Calculate Ym = 2*Ym - Ym^2*X
||RPTBLOCAL loop2 ;start of inner loop
MOV *z_ptr << #15, AC0
||MOV *z_ptr, T1
MPYM *z_ptr, norm_ptr, AC1
MOV HI(AC1 << #1), *z_ptr
MPYM *z_ptr, T1, AC1
SUB AC1 << #1, AC0
MOV HI(AC0 << #2), *z_ptr
loop2: ;end of inner loop
; final iteration - same as previous loop without final command
; Calculate Ym = 2*Ym - Ym^2*X
MOV *z_ptr << #15, AC0
||MOV *z_ptr, T1
MPYM *z_ptr, norm_ptr, AC1
MOV HI(AC1 << #1), *z_ptr
MPYM *z_ptr, T1, AC1
SUB AC1 << #1, AC0
;-------------------------------------------------------------------------
; Check if value is in range 8000h <= Ym <= 7fffh, Adjust sign of result
;-------------------------------------------------------------------------
BSET SATD
SFTS AC0, #3
BCLR SATD
MOV #1, AC2
MOV ye_ptr, T1
MOV HI(AC0), *z_ptr+
SFTL AC2, T1, AC1 ;calculate exponent value
MOV AC1, *zexp_ptr+ ;store exponent
loop1: ;end of outer loop
;
; Restore status regs to expected C-convention values as needed
;----------------------------------------------------------------
AND #0FE00h, mmap(ST2_55) ;clear CDPLC and AR[0-7]LC
BSET ARMS ;set ARMS
;
; Restore any save-on-entry registers that are used
;----------------------------------------------------------------
; - nothing to restore for this function
;
; Deallocate the local frame and argument block
;----------------------------------------------------------------
; SP = SP + #(ARG_BLK_SZ + FRAME_SZ + REG_SAVE_SZ)
; - not necessary for this function (the above is zero)
POP mmap(ST3_55)
;
; Return to calling function
;----------------------------------------------------------------
RET ;return to calling function
;End of file
|
;
; $Id: guenevere5670.asm,v 1.3 2011/04/12 09:05:29 sraj Exp $
;
; This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.
;
; Copyright 2007-2020 Broadcom Inc. All rights reserved.
;
;
; This is the default 5670 program for the Guenevere (BCM95695P24SX).
;
; To start it, use the following commands from BCM,
; where unit 0 is the 5670 and units 3 and 4 are the 5673s:
;
; 0:led load guenevere5670.hex
; 0:led auto on
; 3:led load guenevere5673.hex
; 3:led auto on
; 4:led load guenevere5673.hex
; 4:led auto on
; *:led start
;
; The 3 programs should be started all at once so that blinking
; is in sync across the 5673s.
;
; The Guenevere has 3 columns of 4 LEDs each as shown below:
;
; 5670 Unit 0 5673 Unit 3 5673 Unit 4
; ------------- ------------- --------------
; L04 E1 E1
; A04 R1 R1
; L05 T1 T1
; A05 L1 L1
;
; This program runs only on the 5670 and controls only the leftmost
; column of LEDs. The guenevere5673 program runs on each 5673.
;
; There is one bit per LED with the following colors:
; ZERO Green
; ONE Black
;
; The bits are shifted out in the following order:
; L04, A04, L05, A05
;
; Current implementation:
; L04 reflects port 4 higig (External Higig 0) link up
; A04 reflects port 4 higig (External Higig 0) receive/transmit activity
; L05 reflects port 5 higig (External Higig 1) link up
; A05 reflects port 5 higig (External Higig 1) receive/transmit activity
; E1 reflects port 1 xe link enable
; R1 reflects port 1 xe receive activity
; T1 reflects port 1 xe transmit activity
; L1 reflects port 1 xe link up
;
port 4 ; 5670 port 4 (left)
call put
port 5 ; 5670 port 5 (right)
call put
send 4
put:
pushst LINKUP
tinv
pack
pushst RX
pushst TX
tor ; RX | TX
tinv
pack
ret
;
; Symbolic names for the bits of the port status fields
;
RX equ 0x0 ; received packet
TX equ 0x1 ; transmitted packet
COLL equ 0x2 ; collision indicator
SPEED_C equ 0x3 ; 100 Mbps
SPEED_M equ 0x4 ; 1000 Mbps
DUPLEX equ 0x5 ; half/full duplex
FLOW equ 0x6 ; flow control capable
LINKUP equ 0x7 ; link down/up status
LINKEN equ 0x8 ; link disabled/enabled status
ZERO equ 0xE ; always 0
ONE equ 0xF ; always 1
|
;THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX
;SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO
;END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A
;ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS
;IN USING, DISPLAYING, AND CREATING DERIVATIVE WORKS THEREOF, SO LONG AS
;SUCH USE, DISPLAY OR CREATION IS FOR NON-COMMERCIAL, ROYALTY OR REVENUE
;FREE PURPOSES. IN NO EVENT SHALL THE END-USER USE THE COMPUTER CODE
;CONTAINED HEREIN FOR REVENUE-BEARING PURPOSES. THE END-USER UNDERSTANDS
;AND AGREES TO THE TERMS HEREIN AND ACCEPTS THE SAME BY USE OF THIS FILE.
;COPYRIGHT 1993-1998 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
;
; $Source: f:/miner/source/2d/rcs/temp.asm $
; $Revision: 1.2 $
; $Author: john $
; $Date: 1994/01/18 10:56:48 $
;
; .
;
; $Log: temp.asm $
; Revision 1.2 1994/01/18 10:56:48 john
; *** empty log message ***
;
; Revision 1.1 1994/01/12 14:38:08 john
; Initial revision
;
;
.386
option oldstructs
assume cs:_TEXT, ds:_DATA
_DATA segment dword public USE32 'DATA'
rcsid db "$Id: temp.asm 1.2 1994/01/18 10:56:48 john Exp $"
align 4
_DATA ends
_TEXT segment dword public USE32 'CODE'
push ebx
push ecx
push edx
mov ecx, 0x12345678
mov ebx, 0x12345678
mov edx, 0x12345678
mov ecx, ebx ;( ebx or edx )
; this will be repeated n times
mov al, [esi]
mov ecx, ebx ; one or
mov ecx, edx ; the other
inc esi
cmp al, ah
je @f
rep stosb
@@: add edi, ecx
pop edx
pop ecx
pop ebx
ret
_TEXT ends
end
|
; A017023: a(n) = (7*n + 3)^7.
; 2187,10000000,410338673,4586471424,27512614111,114415582592,373669453125,1028071702528,2488651484819,5455160701056,11047398519097,20971520000000,37725479487783,64847759419264,107213535210701,171382426877952,266001988046875,402271083010688,594467302491009,860542568759296,1222791080775407,1708593750000000,2351243277537493,3190854023266304,4275360817613091,5661610866627712,7416552901015625,9618527719784448,12358664279161399,15742385477438336,19891027786401117,24943578880000000,31058537410917803
mul $0,7
add $0,3
pow $0,7
|
; A205187: Number of (n+1)X2 0..1 arrays with the number of clockwise edge increases in every 2X2 subblock differing from each horizontal or vertical neighbor
; Submitted by Jamie Morken(s1)
; 16,24,48,72,144,216,432,648,1296,1944,3888,5832,11664,17496,34992,52488,104976,157464,314928,472392,944784,1417176,2834352,4251528,8503056,12754584,25509168,38263752,76527504,114791256,229582512,344373768,688747536,1033121304,2066242608,3099363912,6198727824,9298091736,18596183472,27894275208,55788550416,83682825624,167365651248,251048476872,502096953744,753145430616,1506290861232,2259436291848,4518872583696,6778308875544,13556617751088,20334926626632,40669853253264,61004779879896
mov $1,$0
mod $0,2
add $0,1
div $1,2
mov $2,3
pow $2,$1
mul $0,$2
add $0,$2
mul $0,3
sub $0,6
div $0,3
mul $0,8
add $0,16
|
; A141850: Primes congruent to 3 mod 11.
; Submitted by Christian Krause
; 3,47,113,157,179,223,311,421,443,487,509,619,641,751,773,839,883,971,1103,1213,1279,1301,1367,1433,1499,1543,1609,1697,1741,1873,2027,2137,2203,2269,2357,2423,2467,2621,2687,2731,2753,2797,2819,3061,3083,3259,3347,3391,3413,3457,3677,3853,3919,4007,4051,4073,4139,4271,4337,4447,4513,4733,4799,4909,4931,5107,5261,5393,5437,5503,5569,5591,5657,5701,5987,6053,6163,6229,6317,6361,6427,6449,6581,6691,6779,6823,6911,6977,7043,7109,7219,7307,7351,7417,7549,7681,7703,7879,7901,8011
mov $1,2
mov $2,$0
add $2,2
pow $2,2
lpb $2
mov $3,$1
seq $3,10051 ; Characteristic function of primes: 1 if n is prime, else 0.
sub $0,$3
add $1,22
mov $4,$0
max $4,0
cmp $4,$0
mul $2,$4
sub $2,1
lpe
mov $0,$1
add $0,1
|
// File: 'imgui\extra_fonts\ProggyTiny.ttf' (35656 bytes)
// Exported using binary_to_compressed_c.cpp
static const unsigned int ProggyTiny_compressed_size = 8758;
static const unsigned int ProggyTiny_compressed_data[8760/4] =
{
0x0000bc57, 0x00000000, 0x488b0000, 0x00000400, 0x00010037, 0x000c0000, 0x00030080, 0x2f534f40, 0x73eb8732, 0x01000010, 0x2c158248, 0x616d634e,
0x23120270, 0x03000075, 0x241382a0, 0x74766352, 0x82178220, 0xfc042102, 0x02380482, 0x66796c67, 0xd060eed3, 0x04070000, 0xd47c0000, 0x64616568,
0xb26811d7, 0xcc201b82, 0x36210382, 0x27108268, 0xc301c206, 0x04010000, 0x243b0f82, 0x78746d68, 0x804c8058, 0x98010000, 0x06020000, 0x61636f6c,
0xf464f345, 0x82050000, 0x0402291e, 0x7078616d, 0xba00a601, 0x28201f82, 0x202c1082, 0x656d616e, 0xbc6efc01, 0xd8830000, 0x9b2c1382, 0x74736f70,
0xef83aca6, 0x74850000, 0xd22b3382, 0x70657270, 0x12010269, 0x82040000, 0x08002143, 0x012ecb84, 0xa4f60000, 0x0f5fea10, 0x0300f53c, 0x00830008,
0x7767b723, 0x2a078384, 0x33a992bd, 0x00ff0000, 0x83040003, 0x0006230e, 0x00850002, 0x00000126, 0xc0fec003, 0x0f840582, 0x84000321, 0x860b8449,
0x83022004, 0x01012511, 0x1c007000, 0x02261184, 0x40000800, 0x0b820a00, 0x09827620, 0x3b830682, 0x83900121, 0xbc0223c8, 0x10828a02, 0x07858f20,
0x00c50126, 0x00800132, 0x04210082, 0x92048209, 0x6c412b02, 0x40007374, 0xac200000, 0x27840008, 0xa3826a83, 0x03205183, 0x03bd0782, 0x00000122,
0x00207d84, 0x01230082, 0x86800000, 0x2013820d, 0x82118201, 0x20098202, 0x20008c00, 0x8c258301, 0x900c8c11, 0x9100202f, 0x83238300, 0x86002003,
0x85218b63, 0x8d458f1b, 0x8580200f, 0x00032583, 0x00030000, 0x0020b58a, 0x1b85bd89, 0x1f851d83, 0x2d820582, 0x01201f85, 0x03200982, 0x3d880382,
0x01200b84, 0x80201f87, 0x80200882, 0x00201f85, 0x00220b84, 0x12820180, 0x01000022, 0x13846b8d, 0x80210496, 0x96018500, 0x8d16841e, 0x8c0020d3,
0x873fa300, 0x86032030, 0x831c2008, 0x220b829e, 0x8403004c, 0x001c2409, 0x82300004, 0x00082e0f, 0x00020008, 0x007f0000, 0xffac20ff, 0x220982ff,
0x84810000, 0x00012409, 0x41d5df01, 0x01210b84, 0x401d8406, 0x8120d704, 0xb127d8a5, 0xb88d0100, 0x8685ff01, 0x009c212d, 0xba0801c1, 0x01ee00c6,
0x02b00150, 0x02660204, 0x02b8027e, 0x033203f0, 0x037a0368, 0x03a40398, 0x044204e0, 0x05d2047e, 0x05740522, 0x062606d0, 0x07c80666, 0x0732071e,
0x077c074c, 0x08e207b2, 0x089e081a, 0x095a09ec, 0x0a040aa6, 0x0bb20a64, 0x0b780b14, 0x0cfe0bb8, 0x0d920c52, 0x0d780d02, 0x0e2c0ed6, 0x0ffa0e94,
0x0f8e0f4e, 0x103210e8, 0x11e41094, 0x1180112c, 0x120212cc, 0x1272124e, 0x12a61294, 0x135413f4, 0x14f41392, 0x14921446, 0x154a15f2, 0x16ba1578,
0x16401608, 0x17de1696, 0x17821726, 0x181418de, 0x189a185a, 0x191c19e2, 0x199e1964, 0x1a421afa, 0x1ab61a7c, 0x82141bee, 0x1b7e3801, 0x1b901b7e,
0x1cfa1bde, 0x1c5c1c10, 0x1dd41cbc, 0x1d7a1d18, 0x820a1e9e, 0x1e642101, 0x7c360183, 0xbc1e941e, 0x001fe41e, 0x401f1e1f, 0xb41f5e1f, 0x30200c20,
0x01828620, 0x3021e022, 0x5a360182, 0xfc21a221, 0xae225822, 0x4a23e222, 0xda235c23, 0x4c240c24, 0x01827624, 0x25eca408, 0x2528250a, 0x25a62576,
0x26ea25d6, 0x26cc263e, 0x27f626da, 0x27522728, 0x28022892, 0x29ec286e, 0x296c2924, 0x2a062ab6, 0x2aa42a5a, 0x2b682bf8, 0x2c202cc0, 0x2dea2c82,
0x2d8c2d4a, 0x2e162ece, 0x2fc42e58, 0x2f842f32, 0x303230d8, 0x31e23090, 0x3178311c, 0x321832c8, 0x33be326e, 0x3360330e, 0x342034c8, 0x35da347a,
0x3596353e, 0x364e36fa, 0x37f63698, 0x38b83754, 0x38483816, 0x38b6387c, 0x394239e8, 0x3af439a2, 0x3ba23a48, 0x3b523b00, 0x3cda3b7e, 0x3c843c2e,
0x3d323dde, 0x3e023e9c, 0x461c006a, 0x3d080815, 0x00070003, 0x000f000b, 0x00170013, 0x001f001b, 0x00270023, 0x002f002b, 0x00370033, 0x003f003b,
0x00470043, 0x004f004b, 0x00570053, 0x005f005b, 0x00670063, 0x006f006b, 0x33351100, 0x03923115, 0x13820520, 0x03822120, 0x579307bb, 0x00848020,
0x8000fd25, 0xac800002, 0x20378405, 0xbc058403, 0x82002004, 0x01062100, 0x01240482, 0x00800380, 0x210b3741, 0xef820100, 0x038e0720, 0x0f820320,
0x8a000121, 0x8b032071, 0x2017820c, 0x840f82ff, 0x82d28253, 0x000421d4, 0x1320538d, 0x33203f82, 0x8b064741, 0x21398207, 0x0488fe80, 0x5082d78f,
0x03821220, 0x80020023, 0x414f8d03, 0x002017db, 0x7741678b, 0x9205200f, 0x84239783, 0x20e28592, 0x850683fe, 0x20108aa3, 0x297d4102, 0x86110021,
0x0d6741c3, 0x0021c395, 0x06254101, 0xb98b998b, 0x13931787, 0x17831b83, 0x80000123, 0x20ab84ff, 0x84a583fd, 0x8404840a, 0x201a830e, 0x0ebd4103,
0xba83cc99, 0x04830e20, 0x41000321, 0x00211e83, 0x0a2b4313, 0x6b413320, 0x0bf74112, 0x21200b87, 0x80252782, 0x80800180, 0x0a5b41fd, 0xfe20ab84,
0xfd211085, 0x201d8300, 0x87a09902, 0x20a38219, 0x41a78611, 0xad832467, 0x43072f41, 0x178b0fe1, 0x0520a98b, 0x830a2144, 0x207b8217, 0x21bd82fe,
0xac828000, 0x05820120, 0xcf840f88, 0xc486d582, 0x6e410320, 0x01032329, 0xf1820200, 0x43083f43, 0x01210c8d, 0x0efe4300, 0x09000025, 0x43ff8000,
0x5b42116f, 0x084b4205, 0xd143b783, 0x011d230e, 0x03833335, 0xa5821520, 0x4382ff20, 0x410cdb43, 0x00201a6d, 0x739c0082, 0x57851320, 0x738e5b84,
0x42051521, 0x5f8b06db, 0xf9437c85, 0x21218b0f, 0x73820b00, 0x44028021, 0xe7881903, 0x430b7542, 0xc7410f27, 0x06a74107, 0xfe216082, 0x25048700,
0x80fe8080, 0xf59c0280, 0x839a0920, 0x4208a341, 0x7f8b0b1f, 0x3d450720, 0x83668207, 0x97068465, 0x0000296f, 0xff800002, 0x00800180, 0x2005c742,
0x079d4200, 0xff20b982, 0x2506a641, 0x00050000, 0xb2820100, 0x17450220, 0x14c5460b, 0x0120d584, 0x3882db8a, 0x82000121, 0x845f8504, 0x0001215d,
0x00251f82, 0x00000900, 0x455382ff, 0x4b420ebb, 0x42c7830a, 0x0793074b, 0x47830220, 0x87096e44, 0x1cdc4109, 0x2007b743, 0x0f874602, 0x43161f45,
0xbb4307b7, 0x0b034217, 0x2313d743, 0x15333531, 0x8027ed82, 0x018000fe, 0x44fd8080, 0x1e41057c, 0x820c8805, 0x83fe2018, 0x430320ca, 0x0a2729b7,
0x00008000, 0x44030002, 0xd545157b, 0x1315430c, 0x41072d42, 0xba450ae3, 0x22859b08, 0x82000f00, 0x223b4100, 0x37410020, 0x07cf4113, 0x41074b41,
0x154707d3, 0x092f410f, 0xfe808022, 0x2005e444, 0x071a41ff, 0x56419d9b, 0x21058305, 0xa7a40e00, 0x1d20a59f, 0x41071d47, 0xa98707d9, 0xd841a18f,
0x28c54106, 0x9d479fa7, 0x0b81470b, 0xfd438f8f, 0x80802310, 0x3c4100ff, 0x46802005, 0x4041062c, 0x20158305, 0x23434180, 0x4a2f2743, 0x074613d1,
0x0ae3410b, 0x211c5541, 0xc541fd80, 0x05204309, 0x85285441, 0x42002038, 0x012029a3, 0x46065f47, 0x07200727, 0x4b0e914b, 0x39431385, 0xfe80210a,
0x43056541, 0xb0aa0fde, 0x420b0021, 0x63451ea7, 0x17174514, 0x20050041, 0x0c114580, 0x211deb41, 0x7f9e1100, 0x430bcb4c, 0x2341142d, 0x0b85420b,
0x20270b45, 0x061547fe, 0x41081c45, 0xef832a3d, 0x9344bf82, 0x83bf933c, 0x076341c7, 0x41076347, 0x148214e4, 0x8749ff20, 0x1d664105, 0x2709344a,
0x00000102, 0x02800180, 0x2405b745, 0x33350100, 0x08eb4c15, 0xb1430220, 0x25d28206, 0x80000300, 0x27880000, 0x0b820b20, 0x6f4b2986, 0x80802106,
0x30877882, 0x33835e82, 0x33480820, 0x0c0f4618, 0x1d20d186, 0x8406fd42, 0x85022007, 0x063f4ac5, 0x9a480220, 0x0a002114, 0x00218582, 0x4ebb8702,
0xa9420ff7, 0x4e638614, 0x5c840ceb, 0x0584fd20, 0x77828020, 0xe2456b88, 0x20118208, 0x20cb9a00, 0x05f14911, 0xbb845383, 0x87074d46, 0x20508407,
0x054b41fe, 0x0022c996, 0xf7420900, 0x14e7421a, 0x200b0f42, 0x0cd34703, 0x82808021, 0x1a5745b9, 0x00211a83, 0x05d44119, 0x5016af47, 0x8f8c1d33,
0x200f8748, 0x06b34433, 0x200bed4c, 0x0e0d4d31, 0x210a7b45, 0x3d410515, 0x14954109, 0x4d000221, 0x0798071b, 0xa6480320, 0x0f474228, 0x0d000022,
0x511a7741, 0xdf4a073b, 0x0fc54f0c, 0x20176344, 0x080b4a01, 0x7583fe20, 0x73490485, 0x21b4a10a, 0x9ba21400, 0x420dd751, 0x314610f3, 0x0fb9411b,
0x4413c347, 0x26430f65, 0x113b4a05, 0x7a41cda1, 0x2577410d, 0x4d13b349, 0xb58f0fcb, 0x7485b18c, 0x2229ce4a, 0x41100000, 0x6b412873, 0x1367410c,
0x920f7146, 0x093d4fa9, 0x820a8a4b, 0x80fd25ae, 0x80000180, 0x522c7946, 0x834b0a2b, 0x0fd34315, 0xaf49bf8c, 0x1379480f, 0x4b07b74b, 0x2549131d,
0x41b5840a, 0x15420578, 0x4bbf822b, 0xd9492623, 0x4215202a, 0x93840b2d, 0x8742fd20, 0x065b4608, 0x7b4aa3a3, 0x1bb7422f, 0xe3492120, 0x0f21420a,
0x420b5941, 0x01210ec7, 0x0d214200, 0xbca3bd85, 0xc282f085, 0x202d5b49, 0x1af95511, 0x420f0142, 0x614e17fd, 0x05d6420c, 0xfd208d83, 0x4907744e,
0xc7ad0863, 0x6b4e0b20, 0x002b211c, 0x440c9f46, 0xf34d0f2f, 0x070b4f0b, 0x470ae947, 0x34491a37, 0x440c2008, 0x00202023, 0x4e0b6748, 0x818f0fef,
0x01218583, 0x0c1f4500, 0x0d84fd20, 0x541f1541, 0xff4e089b, 0x41002020, 0xc94613cd, 0x07074607, 0x230fe953, 0x15333521, 0x4407c141, 0xfe20068c,
0x2105604a, 0xb8448080, 0x82a69f0b, 0x4c802033, 0x29412557, 0x0f894413, 0x4107b341, 0x829d0c2f, 0x00820020, 0x43364b47, 0x332013a1, 0x480ac143,
0x434107d9, 0x18e7550b, 0x4108ee42, 0x334505de, 0x820d9007, 0x8cd09d27, 0x210c84fb, 0x93421500, 0x11035a20, 0x46080146, 0x0b870b99, 0x970fc156,
0x0b4548d5, 0x21059b41, 0xd9840001, 0x9e820686, 0x0020e091, 0x8205cc44, 0x21e8af06, 0xa3478080, 0x1789452c, 0x8f0fd741, 0x1157510f, 0x5011b444,
0x0b50320d, 0x0fe5462a, 0x45136345, 0xe9460b87, 0x53fe200f, 0xf04610df, 0x8080222a, 0x314f4800, 0x4d336b41, 0x73410b2b, 0x80002227, 0x42ca8580,
0xcfb22b3b, 0x42338141, 0x0f830f47, 0x470cc947, 0x9f410805, 0x2ef3430e, 0x63500020, 0x08a94e3f, 0x7f4d3120, 0x13775006, 0xb947b98c, 0x2a974a09,
0x4825f745, 0x0b46134f, 0x21828313, 0xfd44fe80, 0x1d02420b, 0x472b8b51, 0xcd411321, 0x14274113, 0x940bd945, 0x2b32410b, 0x5f480020, 0x4ead9b22,
0x07200fa1, 0x570ac747, 0x8f8407f1, 0x6257fe20, 0x20248324, 0x393b4a00, 0x8f234746, 0x480f83b1, 0x75420679, 0x89068a06, 0x42bf84ba, 0x475b1d01,
0x24eb4f0c, 0x87135941, 0x13f1569f, 0x440b2549, 0x7e510698, 0x0be24307, 0x0020a6a1, 0x4d3ff741, 0x814b13c3, 0x5692820f, 0x929f0823, 0x45296344,
0xaf540f29, 0x17cf560f, 0x410acb49, 0x05850533, 0x202b3c4e, 0x20008200, 0x1a035e0d, 0x4608c351, 0x5f440f9d, 0x0fe14e13, 0x6e448883, 0x4999860c,
0x1190117f, 0x4f5c9682, 0x6211201d, 0x1d210561, 0x8c079a01, 0x1d455c55, 0x9b300341, 0x0bc75dff, 0x8045838c, 0x4d8d9b09, 0x00270828, 0x00050000,
0x4c000200, 0xaf5e0e9f, 0x074f450c, 0x80000123, 0x097a57ff, 0x820d9b42, 0x00062347, 0xf568ff00, 0x0cab6305, 0x21591520, 0x0b43480e, 0x0023b98e,
0x82010200, 0x08a35c89, 0x1d218583, 0x06995e01, 0x00236f86, 0x82000e00, 0x18535600, 0x4e074351, 0x3d5a0b61, 0x0f8d4908, 0x420fef51, 0xfe2108ed,
0x0e4b4700, 0x8e0c7656, 0x4f0e86b6, 0x04200abf, 0x20230b64, 0x065f4200, 0xd3421520, 0x17f5530f, 0x8084ad98, 0x2011ad48, 0x0e8a61fd, 0x775fb695,
0x065b5a0c, 0x9f520220, 0x0cb74f17, 0xbf86a787, 0x200baf48, 0x08494115, 0x4109cd51, 0xbf511c42, 0x253b4109, 0x600b0166, 0x874b0fd3, 0x133b4113,
0x41064958, 0x5f5f0beb, 0x43802010, 0x42412345, 0x09cb4806, 0x5b183f41, 0x4741071b, 0x13af480c, 0x410a2946, 0xfe201457, 0x47073b4c, 0x19590a76,
0x17eb410b, 0x6347a382, 0x1c674106, 0x610c1d51, 0x41430b47, 0x0ba3440f, 0xad620120, 0x83ff2008, 0x09064a09, 0x41224341, 0xff2005ff, 0x55192b5a,
0x3f410d1b, 0x0f0f4a18, 0xd551af8b, 0x8280200f, 0x11354300, 0x48050e42, 0x52410627, 0x0e435e23, 0x231c5741, 0x003b0037, 0x8338f743, 0x09d741db,
0xfd24b991, 0x80018080, 0x2727b042, 0x00070000, 0x01000080, 0x2411d362, 0x33350100, 0x071d5315, 0x610f8346, 0x03210efd, 0x08ab4800, 0x220f4744,
0x620200ff, 0x2b20176b, 0x97059b5c, 0x0fa74163, 0x5042d482, 0x4b628705, 0x168d08aa, 0x210df342, 0xdf830d00, 0x41800221, 0x00211c8f, 0x0e456a13,
0x440b5b51, 0x534a0757, 0x2067870f, 0x15725301, 0x2023ed42, 0x057b4109, 0xdb429b94, 0x0f7b4108, 0xeb8d0f8b, 0x759a0d82, 0x4a2b9744, 0x4b520727,
0x1f274c13, 0x44064f43, 0x56520a91, 0x234c430d, 0x0c20ab82, 0x5920df47, 0x41451017, 0x0f01440b, 0x4e16df4f, 0x959d0803, 0xb94a8fa5, 0x4983930f,
0xbf430fb1, 0x20118211, 0x1c244780, 0x2205f351, 0x45000010, 0x27412627, 0x0b29452c, 0x4507f145, 0xfd201521, 0xe0511683, 0x1d3c4105, 0x2009a442,
0xaa008200, 0x0b4f41b7, 0x432b0d49, 0x78840721, 0xe441a682, 0x210b8508, 0x188400fe, 0xb7ab0482, 0x8f420920, 0x1100211a, 0x5306375f, 0xfd410b25,
0x838d8b07, 0x0001227a, 0x12c36080, 0x4813ff4e, 0xfb461c3f, 0x5277860c, 0xab5a142b, 0x0dcd560f, 0x201f0241, 0x05c35900, 0x4a038021, 0xbb4a1c0b,
0x0ae3540f, 0x450cb748, 0xee8808ba, 0x440d3f4c, 0x77430fcf, 0x13095025, 0x410f7b43, 0x10420c05, 0x0b16420e, 0x821d0f41, 0x2007428f, 0x3351798f,
0x09e94f0f, 0x63092051, 0xfe8f0692, 0x5005d151, 0x0f42086f, 0x0c375a1a, 0x461ba145, 0xb55107c5, 0x418d8911, 0x8f514903, 0x847d8317, 0x0d81516f,
0x37447897, 0x2f0f422e, 0x410f6948, 0x084c09a1, 0x2e114a11, 0x4108b762, 0x33201abb, 0x5115d573, 0x0787078b, 0x200f7b55, 0x06145480, 0x83089051,
0x1741410f, 0x6f09e94f, 0x356a1c13, 0x07cf4307, 0x4d07f363, 0x87490bdb, 0x08774909, 0x211a7548, 0x00820080, 0x00010927, 0x800180ff, 0x130f4f04,
0x480c3770, 0x012117eb, 0x101a4300, 0x6b5273a0, 0x6f00201a, 0x734f06fb, 0x08195007, 0x1520f78a, 0xe5867187, 0x729c0682, 0x00000626, 0x00030001,
0x200ce76e, 0x09e15e17, 0x4f0b1544, 0x01250615, 0x00fd8000, 0x21058280, 0xdd8d0180, 0x00130022, 0x03200082, 0x7619374b, 0xa74d0f27, 0x13e74e10,
0x4e134742, 0x90831373, 0x4efe8021, 0x00200558, 0xfe209883, 0x8207dc4b, 0x29a16308, 0x820cd046, 0x010226ce, 0x0280ff00, 0x102b7000, 0x2709394c,
0x000d0000, 0x0200ff80, 0x65152742, 0x73500ce3, 0x0b51490b, 0x20174360, 0x578d8201, 0x45600944, 0x1bd5410d, 0x0022c488, 0x9b820400, 0x0b24bf89,
0x00000f00, 0x540f6745, 0x00231185, 0x48030000, 0xf7860537, 0x00000b22, 0x2007895e, 0x060b6833, 0x82093650, 0x19d770ff, 0xb144ff8c, 0x1351560f,
0x8511934f, 0x59fe2069, 0x79420c96, 0x220d940d, 0x71110000, 0xb7781a6f, 0x0c83670f, 0x420fb344, 0x3f521383, 0x7215200e, 0xb2861283, 0xb241b988,
0x0a574124, 0x80000326, 0x00020003, 0x470dab74, 0x01240709, 0x00ff8000, 0x200b3a4d, 0x05c77300, 0x47760320, 0x10417619, 0xd371d787, 0x05e3410f,
0x214e0120, 0x84668206, 0x43802069, 0x802107f7, 0x14704102, 0x20080864, 0x053b4212, 0x41143745, 0x47200f77, 0x74056b44, 0x6f55083d, 0x1731710e,
0x46134942, 0x09820958, 0x410d556f, 0xcb860b27, 0x8025c29a, 0x05000080, 0x21048200, 0xff460002, 0x0857560c, 0x75065f46, 0x02200fdf, 0x200eee45,
0x45008200, 0x3d4c3013, 0x0b056207, 0x650f9b49, 0x3b871fe3, 0xad45e385, 0x00fe2105, 0x6506f267, 0x557707e9, 0x2028820b, 0x41bc8e03, 0x80201c1f,
0x4107c768, 0x337a22e3, 0x131f6d0c, 0x20233148, 0x85ad82ff, 0x0fc85991, 0x41085443, 0x00261fd7, 0x00010300, 0x4f438002, 0x5e07200f, 0x0121069f,
0x885f8300, 0x0080214d, 0x15252f99, 0x15333505, 0x066e4201, 0x0623318a, 0x75028000, 0xff8c11df, 0x43149b7b, 0x00440dc7, 0x204f9609, 0x0eed6c01,
0x220a1144, 0x83fe8080, 0x44fe203e, 0x50880c18, 0x00010425, 0x47020001, 0x81470beb, 0x078d4608, 0x46000121, 0xdd8405d8, 0x00233885, 0x83000500,
0x01802137, 0x4f0b4b4d, 0x3357109d, 0x00012108, 0x054c3785, 0x065f4805, 0x17203b8c, 0x8815394a, 0x01802241, 0x0c864700, 0x82000421, 0x80022211,
0x09874902, 0x4b41b784, 0x5501200b, 0xb98c08bd, 0x10000027, 0x80000000, 0x0dc74303, 0x9415bb7e, 0x0b7765d1, 0x4517f178, 0xe476073d, 0x11435208,
0x430f1944, 0x5343145c, 0x0ef16e47, 0x45143f5a, 0x7159132b, 0x214f430e, 0x5a010521, 0xf55a11cb, 0x71758807, 0x2f4e0bbf, 0x21418212, 0x04830f00,
0x5022a341, 0x1b45083b, 0x0f6d5117, 0x450b3d67, 0x8020110b, 0x0120f082, 0x41085744, 0xa78223a2, 0x4406bf6d, 0x3359acf7, 0x44132024, 0x01200655,
0x5322976b, 0xfe201d61, 0x21089970, 0x67428003, 0x14ef4206, 0x00201484, 0x1d274118, 0xe1560320, 0x0865490e, 0xb6463c84, 0x0fa94206, 0x00285282,
0x0080000c, 0x03800200, 0x4813bb4d, 0x23740583, 0x0fa36a0c, 0x7f0bbb6a, 0x1a4508f5, 0x50802005, 0x13840cff, 0xdf990220, 0x68050545, 0x37420853,
0x0ba57723, 0x4713e748, 0xbd6a0b2f, 0x0d354c13, 0x73fe8021, 0xe14609af, 0x69b49d0d, 0x03210707, 0x1a434100, 0x5107f369, 0x3d4b0cc7, 0x0ba94d0b,
0x8317dd4d, 0x02802317, 0x99558000, 0x48012008, 0x0020089a, 0x82064a45, 0x1e63411d, 0x69092950, 0x5b492e03, 0x0be5450f, 0x4b0f9b5d, 0x6d510bf3,
0x07115209, 0x200bee4b, 0x0cc14603, 0x23176941, 0x08000000, 0x50186350, 0x0b431061, 0x0001210f, 0x5f4c578e, 0x0c14430c, 0x12000024, 0xa34e0000,
0x09eb7320, 0x420c1748, 0xd3410f83, 0x0f6d5d1b, 0x4f0d8b42, 0x8020069e, 0x480b4753, 0xba8c05b2, 0x0e92d68e, 0x02000025, 0x82038000, 0x48032004,
0x63490593, 0x412b8308, 0x0023057b, 0x82170000, 0x03002103, 0x18298f50, 0x5607b746, 0x152013a3, 0x760b5b5b, 0x1b970f6f, 0x8413f142, 0x80fd22cd,
0x0f777680, 0x18055651, 0x6f0bb646, 0x1c4124a3, 0x25128212, 0x00080000, 0xeb4a0180, 0xb347180b, 0x07a14709, 0x215c1520, 0x072b7013, 0x83084c7d,
0x159c4108, 0x0a000022, 0x20055f41, 0x15635702, 0x35416783, 0x0f654308, 0xf9820f8b, 0x8c470282, 0x08924705, 0x82059847, 0x19974705, 0x4a05035e,
0x13240c17, 0x1b001700, 0x660d9f71, 0x5d59072b, 0x08b7750c, 0x6e0f3e41, 0x334205e7, 0x1c2f422e, 0xa94ae983, 0x0b2b420b, 0x570f1541, 0xfa440ced,
0x05c04d09, 0x9f788020, 0x07274205, 0x36450785, 0x25704408, 0x270c564b, 0x00000500, 0x80020003, 0x7a064343, 0x054b05df, 0x10894214, 0x04000025,
0x5f028000, 0x75650d23, 0x00012110, 0x8b08997d, 0x0803659d, 0x9b470320, 0x00332319, 0x91510037, 0x0f974420, 0x200ba97e, 0x0b8c4580, 0x02200b86,
0x910fec41, 0x1c37430f, 0x4a06994f, 0x7f470cd9, 0x0c534b0b, 0x4316c960, 0x5f8f1b97, 0x180b396d, 0x83085543, 0x43cf8364, 0x02241793, 0x00030001,
0x4108e34e, 0xfd560893, 0x20348605, 0x23008200, 0xff00000e, 0xbb432983, 0x0c876615, 0x8f0fa542, 0x0777410f, 0x780b3559, 0x0120075f, 0x850aca47,
0x20c0830b, 0x08cd7dfd, 0x8d118241, 0x1a002111, 0xa342a785, 0x15bf4d0c, 0x137b4c18, 0x70109943, 0xe7490f0f, 0x5b0f8b0f, 0x0f9b0f01, 0x4d085d4c,
0xfe210afb, 0x07ac4100, 0x20058d42, 0x200e8dfe, 0x0fbe4703, 0x0d9ef98d, 0x00820020, 0x00010125, 0x4f018001, 0x00210517, 0x05696801, 0x37820120,
0x00251a82, 0xff000104, 0x08b75600, 0x0f000b25, 0x53210000, 0x3743065b, 0x84012007, 0x0e27489f, 0x461d3746, 0x71580833, 0x5b45180b, 0x14d15012,
0x20081f54, 0x053b4406, 0xff430420, 0x103f440d, 0x0a514818, 0xfe204f84, 0x50107151, 0x8b4608d9, 0x235b5b20, 0x33352124, 0x77468015, 0x05817608,
0x460b9546, 0x00281a89, 0x00001300, 0x000380ff, 0x4718d38e, 0x47221563, 0xdd444b00, 0x13494905, 0x4e0f5d43, 0x0b870beb, 0x460fe74e, 0xd77b0505,
0x21c6820b, 0xe37b00ff, 0x0a3b5f08, 0x00202483, 0x42169c44, 0x3f4a1972, 0x41dfa905, 0xcd8f08cb, 0x410f2949, 0xe1871701, 0xaa82d997, 0xdf84fe20,
0x6944fd20, 0xfd80210a, 0x0022d9af, 0xb7411600, 0x05234a2e, 0x490cef4c, 0x23440be5, 0x41f39313, 0x194b17c9, 0x4d012006, 0xe882080d, 0x8205a77d,
0x05504412, 0x41099664, 0x864335cb, 0x13421808, 0x3501241d, 0x18031533, 0x5b0a6b4c, 0xf2711873, 0x1552670c, 0x2106044f, 0x0082000c, 0x43800221,
0xe15c1a23, 0x20798208, 0x814f1815, 0x0f2f4213, 0x1d44cc84, 0x0c117109, 0x4405375a, 0xe1420cdf, 0xa200200c, 0x07595e8f, 0x51181120, 0x41180e5b,
0x70831a95, 0x002191b7, 0x24ab5100, 0x33209587, 0x4106eb68, 0x8d492329, 0x699d9c0a, 0x5c4f1312, 0x06437f0a, 0x491ac341, 0x9f5508bb, 0x293f410c,
0x650fe472, 0xf9480fc6, 0x21db410a, 0xdf480320, 0x08334e19, 0x5d0b4d41, 0xbb430f95, 0x46078307, 0x3d41067e, 0x114c4716, 0x180d6c42, 0x20097f40,
0x0df74604, 0x470f2346, 0xaf471007, 0x0fab4807, 0x410f0b43, 0xc4410ae1, 0x14441806, 0x96938c11, 0x1400210c, 0x0023ab82, 0x41030003, 0xeb7b193b,
0x0cc95f0f, 0x461f4b53, 0x63600fbd, 0x09af7e0f, 0x3149fd20, 0x07b0550d, 0xd8460020, 0x21f08206, 0x46498080, 0x26db822f, 0xff00000f, 0xa0800200,
0x0c3d4adf, 0x5e0b6d41, 0xe34f0ba3, 0x8351180f, 0x088e440b, 0x0d274418, 0x1800ff21, 0x212b2354, 0x4f5d0000, 0x6d1d2031, 0x554e0b05, 0x134f5d0b,
0x6f4c1393, 0x58fe2006, 0x88460cd3, 0x0a445405, 0x4e197f43, 0xbfae0c68, 0x5c078f43, 0x734d172b, 0x0b91530b, 0x430fb55f, 0xa386050f, 0x9186fd20,
0x8600fe21, 0x06464408, 0x0021c2a6, 0x20bb4613, 0x430d1343, 0xc9c50cc5, 0x21061845, 0xcb978080, 0x411bba45, 0x7b7d0c90, 0x076d4635, 0x420f6741,
0x1393133f, 0x4108c34e, 0xc5910582, 0x8c1e4245, 0x05df69c2, 0x45040021, 0x4948174b, 0x0b7b4108, 0x6c0b6763, 0xff200ed1, 0x4108b458, 0x1f420645,
0x8200201e, 0x4283a000, 0x032007c9, 0x970ad560, 0x05ad4283, 0x88066346, 0x2485a006, 0x0080000c, 0x08ef4f00, 0x0fa34c18, 0x2f002b22, 0x4109694c,
0x899f0fbf, 0x8c96fe20, 0x41196642, 0x03200913, 0x47173b46, 0x45490c75, 0x13514e0b, 0x2008fe45, 0xcc5118ff, 0x17b74310, 0x87668282, 0x1f016f31,
0x180bf142, 0x4213c544, 0x44180e4b, 0xfd200cbd, 0x8023ba85, 0x188080fd, 0x4b357849, 0x834409af, 0x0f854934, 0x5a183120, 0xdb8b1a45, 0x0f774318,
0x6e09615f, 0x8e4c0d0d, 0x1800200a, 0x43097543, 0xa84109ab, 0x0ccd4317, 0x20081354, 0x17cf4304, 0x43053b68, 0x674e18d5, 0x07b94117, 0x88846d82,
0x4218fe20, 0x17680db5, 0x1f2b4c08, 0xbb791f83, 0x43a39f07, 0xa39f17f5, 0xbc090144, 0x08ff5aa5, 0x3b20a79e, 0xa71d1944, 0x4bfe20ad, 0xfd200f9f,
0x6309de59, 0x0020269b, 0x622d575f, 0xe1450fff, 0x47b9a20f, 0xbba4064a, 0x4219ee44, 0xbb420534, 0x44032008, 0xbb4217f3, 0x45152009, 0xaf9f1383,
0x14de4f18, 0x101c4618, 0x201d6743, 0x5f5b1800, 0x0b1d531c, 0x4c2ffb6e, 0xd3411744, 0x5e032007, 0xc341243f, 0x0f5d4507, 0x130b4918, 0x870b894b,
0x0001211f, 0x51067855, 0x2c510826, 0x82058205, 0x84fd2011, 0x960220a4, 0x4f168eaa, 0x8b6d2683, 0x1b2f6107, 0x820f1b4c, 0x058c6c69, 0x8b05bd41,
0x0bb26505, 0x201bca41, 0x2b037b00, 0x1f500520, 0x17614206, 0x314b9f8f, 0x18012008, 0x430d0c4e, 0xa29c11d2, 0x662a2350, 0x756208bb, 0x20a5951a,
0x615c1880, 0x66b3880f, 0xa99c0dfd, 0x4308eb41, 0xb3481cbb, 0x274b410c, 0x43151645, 0xeb412cb6, 0x0f115030, 0x4913b353, 0x115a07f5, 0x118e4205,
0x430fbd63, 0x0e8d0e1d, 0x0e000026, 0x80ff8000, 0x7a204b4f, 0x3b530ca9, 0x0f7b5117, 0x696e0720, 0x0662180a, 0x4300200c, 0xfb4f0547, 0x06bb5626,
0x6618a3a0, 0xf54f07bf, 0x0f874218, 0x8b136d41, 0x4aa582db, 0x00200a09, 0x20083764, 0x0cde6201, 0x5000fe21, 0x2b472dc2, 0x0ba5442d, 0x0f689b86,
0x13294214, 0x43060350, 0x42180540, 0x9a4c1153, 0x0928421e, 0x492bd768, 0xafac123b, 0x41094349, 0x8020056e, 0x580a7043, 0x114407f5, 0x086c4b1b,
0x56001121, 0xef4f1fab, 0x17eb4f09, 0xfe20b9b4, 0x6e418284, 0x1f8d4818, 0xb9823d83, 0x492f3352, 0xc5af1a53, 0xe8428020, 0x9a8b8208, 0x20c9a5c7,
0x05874110, 0x641c9f45, 0xa54505b7, 0x36eb420c, 0x4205a85d, 0x9b50133a, 0x33774126, 0x450bbd57, 0x77410a03, 0x50ff202f, 0x078406c1, 0xba45c293,
0x6b0d9d0d, 0x87583593, 0x0fed5513, 0x8410936b, 0x05fb67af, 0x2032906b, 0x05cb550d, 0x7b4b0220, 0x0cd1451b, 0x7b0eb773, 0x63180ce7, 0x57180ba7,
0x46690ecd, 0x19035e06, 0x0f276918, 0x04800222, 0x461dcb4e, 0xd14e056f, 0x126d5320, 0xdd4eb390, 0x060c4b10, 0x202eaa55, 0xc7461800, 0x5c052033,
0x5d180527, 0x4946085b, 0x12eb7d17, 0xf54e3384, 0x56bdb712, 0x934d3667, 0x237d411b, 0x4d4ec187, 0x44c4910d, 0x802123f0, 0x09834180, 0xd3420320,
0x05f3441b, 0x3d754320, 0x17054f09, 0x614ec1a3, 0x44bd8b11, 0xba8426fa, 0x00080026, 0x01000080, 0x4213fb42, 0x357b10e9, 0x07c5420f, 0x9b1fa057,
0x0f3f4863, 0xab41638f, 0x08fd4407, 0x2318c548, 0x09000000, 0x471a5b55, 0x6d9714f3, 0x6e88fe20, 0x7a618020, 0x11864809, 0xdb857282, 0x41000221,
0xdf4612fb, 0x416d8f10, 0x6d8608c5, 0xb8410320, 0x078f4916, 0x71186392, 0x71710fcf, 0x0757720c, 0x4b0f156d, 0x8a841b07, 0x4a18e983, 0x521811a7,
0x80202ab2, 0x482c6f76, 0x15201acb, 0x4d0f8d46, 0xe95413cd, 0x19674e0d, 0x4924885e, 0x134f078f, 0x12af4b26, 0x5f411520, 0x0f8b4c13, 0x4f100146,
0x7242140d, 0x0c855511, 0x6343a3a6, 0x1f53410f, 0x20111f66, 0x3b8555fe, 0x20e0df54, 0x0edf7713, 0x4217d945, 0x58180fbb, 0xad720edf, 0x0ecd5109,
0x460d1f51, 0xb7601f95, 0x1e2f4409, 0x42109f44, 0x7d462717, 0x0ebc4211, 0x4216c744, 0x07200cbb, 0x8021a782, 0x11ef7302, 0x0c0f4c18, 0x200b0b47,
0x052f6901, 0x4585fe20, 0x02200682, 0x210e7f46, 0x5c1800ff, 0x0320080b, 0x43b1c354, 0xc55426cb, 0x06175033, 0x4f113a52, 0x5b42306b, 0x4b042009,
0x6d471d2b, 0x2b6d5508, 0x61064762, 0x0343056d, 0x18aab30e, 0x9e07af56, 0x125759ab, 0x8f0fa943, 0x0c97420f, 0x0ca75418, 0x2856a785, 0x1b454810,
0x180c1643, 0x7727776f, 0x734623fd, 0xe971180f, 0x0dbc4316, 0x4606dc52, 0x9f741e79, 0x2fdd5634, 0x0b355818, 0x820d9346, 0x1a1f429d, 0x4c4f8020,
0x18294a05, 0x2015494f, 0x20d38800, 0x23c74b03, 0x51184720, 0x11420d59, 0x23ff470b, 0x860c9976, 0x47fe2090, 0xfd201065, 0x78491984, 0x2031842c,
0x42cbb080, 0xd371374f, 0x2045570f, 0xcf8a2082, 0x181d6642, 0x230dd14d, 0x00020115, 0x24220087, 0x0a864700, 0x18000124, 0x0b868100, 0x0e000224,
0x0b866b00, 0x178a0320, 0x0b8a0420, 0x2d670520, 0x20258405, 0x20178406, 0x220b8401, 0x82120000, 0x250b8519, 0x000c0001, 0x0b850031, 0x07000224,
0x0b862600, 0x10000324, 0x0b862d00, 0x238a0420, 0x0a000524, 0x17863d00, 0x17840620, 0x01000324, 0x57820904, 0x0b85a783, 0x0b85a785, 0x0b85a785,
0x20000325, 0x85007900, 0x85a7850b, 0x85a7850b, 0x22a7850b, 0x82300032, 0x00342201, 0x0805862f, 0x35003130, 0x54207962, 0x74736972, 0x47206e61,
0x6d6d6972, 0x65527265, 0x616c7567, 0x58545472, 0x6f725020, 0x54796767, 0x54796e69, 0x30303254, 0x02822f34, 0x00353123, 0x2e6e8262, 0x00540020,
0x00690072, 0x00740073, 0x826e0061, 0x84472082, 0x006d240f, 0x8265006d, 0x82522009, 0x00672405, 0x826c0075, 0x8272201d, 0x0054222b, 0x20238258,
0x22198250, 0x8267006f, 0x82792001, 0x82692013, 0x22078337, 0x41000054, 0x14220997, 0x07410000, 0x87088206, 0x01012102, 0x78080982, 0x01020101,
0x01040103, 0x01060105, 0x01080107, 0x010a0109, 0x010c010b, 0x010e010d, 0x0110010f, 0x01120111, 0x01140113, 0x01160115, 0x01180117, 0x011a0119,
0x011c011b, 0x011e011d, 0x0020011f, 0x00040003, 0x00060005, 0x00080007, 0x000a0009, 0x000c000b, 0x000e000d, 0x0010000f, 0x00120011, 0x00140013,
0x00160015, 0x00180017, 0x001a0019, 0x001c001b, 0x001e001d, 0x09b8821f, 0x22002191, 0x24002300, 0x26002500, 0x28002700, 0x2a002900, 0x2c002b00,
0x2e002d00, 0x30002f00, 0x32003100, 0x34003300, 0x36003500, 0x38003700, 0x3a003900, 0x3c003b00, 0x3e003d00, 0x40003f00, 0x42004100, 0x44004300,
0x46004500, 0x48004700, 0x4a004900, 0x4c004b00, 0x4e004d00, 0x50004f00, 0x52005100, 0x54005300, 0x56005500, 0x58005700, 0x5a005900, 0x5c005b00,
0x5e005d00, 0x60005f00, 0x21016100, 0x23012201, 0x25012401, 0x27012601, 0x29012801, 0x2b012a01, 0x2d012c01, 0x2f012e01, 0x31013001, 0x33013201,
0x35013401, 0x37013601, 0x39013801, 0x3b013a01, 0x3d013c01, 0x3f013e01, 0x41014001, 0xa300ac00, 0x85008400, 0x9600bd00, 0x8600e800, 0x8b008e00,
0xa9009d00, 0xef00a400, 0xda008a00, 0x93008300, 0xf300f200, 0x97008d00, 0xc3008800, 0xf100de00, 0xaa009e00, 0xf400f500, 0xa200f600, 0xc900ad00,
0xae00c700, 0x63006200, 0x64009000, 0x6500cb00, 0xca00c800, 0xcc00cf00, 0xce00cd00, 0x6600e900, 0xd000d300, 0xaf00d100, 0xf0006700, 0xd6009100,
0xd500d400, 0xeb006800, 0x8900ed00, 0x69006a00, 0x6d006b00, 0x6e006c00, 0x6f00a000, 0x70007100, 0x73007200, 0x74007500, 0x77007600, 0x7800ea00,
0x79007a00, 0x7d007b00, 0xb8007c00, 0x7f00a100, 0x80007e00, 0xec008100, 0xba00ee00, 0x696e750e, 0x65646f63, 0x30783023, 0x8d313030, 0x8d32200e,
0x8d33200e, 0x8d34200e, 0x8d35200e, 0x8d36200e, 0x8d37200e, 0x8d38200e, 0x8d39200e, 0x8d61200e, 0x8d62200e, 0x8d63200e, 0x8d64200e, 0x8d65200e,
0x8c66200e, 0x3031210e, 0xef8d0e8d, 0xef8d3120, 0xef8d3120, 0xef8d3120, 0xef8d3120, 0xef8d3120, 0xef8d3120, 0xef8d3120, 0xef8d3120, 0xef8d3120,
0xef8d3120, 0xef8d3120, 0xef8d3120, 0xef8d3120, 0x0666312d, 0x656c6564, 0x45046574, 0x8c6f7275, 0x8d3820ec, 0x8d3820ec, 0x8d3820ec, 0x8d3820ec,
0x8d3820ec, 0x8d3820ec, 0x8d3820ec, 0x8d3820ec, 0x8d3820ec, 0x8d3820ec, 0x8d3820ec, 0x8d3820ec, 0x8d3820ec, 0x8d3820ec, 0x413820ec, 0x39200ddc,
0x200ddc41, 0x20ef8d39, 0x20ef8d39, 0x20ef8d39, 0x20ef8d39, 0x20ef8d39, 0x20ef8d39, 0x20ef8d39, 0x20ef8d39, 0x20ef8d39, 0x20ef8d39, 0x20ef8d39,
0x20ef8d39, 0x20ef8d39, 0x23ef8d39, 0x00006639, 0xd068fa05, 0x00001dea,
};
|
#A bunch of vanilla tweaks
list d_environmentallyFriendlyCreepers
ALOAD 0
GETFIELD net/minecraft/entity/monster/EntityCreeper.field_70170_p:Lnet/minecraft/world/World; #worldObj
INVOKEVIRTUAL net/minecraft/world/World.func_82736_K()Lnet/minecraft/world/GameRules; #getGameRules
LDC "mobGriefing"
INVOKEVIRTUAL net/minecraft/world/GameRules.func_82766_b(Ljava/lang/String;)Z #getGameRuleBooleanValue
list environmentallyFriendlyCreepers
ICONST_0
list softLeafReplace
ALOAD 0
ALOAD 1
ILOAD 2
ILOAD 3
ILOAD 4
INVOKEVIRTUAL net/minecraft/block/Block.isAir(Lnet/minecraft/world/IBlockAccess;III)Z #forge method
IRETURN
list n_doFireTick
LDC "doFireTick"
INVOKEVIRTUAL net/minecraft/world/GameRules.func_82766_b(Ljava/lang/String;)Z #getGameRuleBooleanValue
IFEQ LRET
list doFireTick
ALOAD 1
ILOAD 2
ILOAD 3
ILOAD 4
ALOAD 5
INVOKESTATIC codechicken/core/featurehack/TweakTransformerHelper.quenchFireTick(Lnet/minecraft/world/World;IIILjava/util/Random;)V
LSKIP
list finiteWater
ALOAD 0
GETFIELD net/minecraft/block/BlockDynamicLiquid.field_149815_a:I
ICONST_2
IF_ICMPLT LEND |
; ***************************************************************************************
; ***************************************************************************************
;
; Name : kernel.asm
; Author : Paul Robson (paul@robsons.org.uk)
; Date : 13th January 2019
; Purpose : Machine Forth Kernel
;
; ***************************************************************************************
; ***************************************************************************************
;
; Page allocation. These need to match up with those given in the page table
; in data.asm
;
DictionaryPage = $20 ; dictionary page
FirstCodePage = $22 ; first code page.
;
; Memory allocated from the Unused space in $4000-$7FFF
;
StackTop = $5FFE ; $5B00-$5FFE stack
opt zxnextreg
org $8000 ; $8000 boot.
jr Boot
org $8004 ; $8004 address of sysinfo
dw SystemInformation
Boot: ld sp,StackTop ; reset Z80 Stack
di ; disable interrupts
db $ED,$91,7,2 ; set turbo port (7) to 2 (14Mhz speed)
ld a,1 ; blue border
out ($FE),a
ld a,FirstCodePage ; get the page to start
call PAGEInitialise
ld a,(BootPage) ; switch to boot page.
call PAGEInitialise
ld hl,(BootAddress) ; start address
jp (hl)
EXTERN_SysHalt()
StopDefault:
jp StopDefault
|
; A009056: Numbers >= 3.
; 3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77
add $0,3
|
; A287381: a(n) = a(n-1) + 2*a(n-2) - a(n-3), where a(0) = 2, a(1) = 4, a(2) = 7.
; 2,4,7,13,23,42,75,136,244,441,793,1431,2576,4645,8366,15080,27167,48961,88215,158970,286439,516164,930072,1675961,3019941,5441791,9805712,17669353,31838986,57371980,103380599,186285573,335674791,604865338,1089929347,1963985232,3538978588,6377019705,11490991649,20706052471,37311016064,67232129357,121148109014,218301351664,393365440335,708820034649,1277249563655,2301524192618,4147203285279,7473002106860,13465884484800,24264685413241,43723452275981,78786938617663,141969157756384,255819582715729
mov $1,2
mov $3,2
mov $4,1
lpb $0
sub $0,1
mov $2,$1
add $1,$3
add $2,$4
mov $4,$3
mov $3,$2
lpe
mov $0,$1
|
; A181433: Numbers k such that 11*k is 5 less than a square.
; 1,4,20,29,61,76,124,145,209,236,316,349,445,484,596,641,769,820,964,1021,1181,1244,1420,1489,1681,1756,1964,2045,2269,2356,2596,2689,2945,3044,3316,3421,3709,3820,4124,4241,4561,4684,5020,5149,5501,5636,6004,6145,6529,6676,7076,7229,7645,7804,8236,8401,8849,9020,9484,9661,10141,10324,10820,11009,11521,11716,12244,12445,12989,13196,13756,13969,14545,14764,15356,15581,16189,16420,17044,17281,17921,18164,18820,19069,19741,19996,20684,20945,21649,21916,22636,22909,23645,23924,24676,24961,25729,26020,26804,27101,27901,28204,29020,29329,30161,30476,31324,31645,32509,32836,33716,34049,34945,35284,36196,36541,37469,37820,38764,39121,40081,40444,41420,41789,42781,43156,44164,44545,45569,45956,46996,47389,48445,48844,49916,50321,51409,51820,52924,53341,54461,54884,56020,56449,57601,58036,59204,59645,60829,61276,62476,62929,64145,64604,65836,66301,67549,68020,69284,69761,71041,71524,72820,73309,74621,75116,76444,76945,78289,78796,80156,80669,82045,82564,83956,84481,85889,86420,87844,88381,89821,90364,91820,92369,93841,94396,95884,96445,97949,98516,100036,100609,102145,102724,104276,104861,106429,107020,108604,109201,110801,111404,113020,113629,115261,115876,117524,118145,119809,120436,122116,122749,124445,125084,126796,127441,129169,129820,131564,132221,133981,134644,136420,137089,138881,139556,141364,142045,143869,144556,146396,147089,148945,149644,151516,152221,154109,154820,156724,157441,159361,160084,162020,162749,164701,165436,167404,168145,170129,170876
mov $8,$0
add $8,1
mov $9,$0
lpb $8
mov $0,$9
sub $8,1
sub $0,$8
mov $5,$0
gcd $0,2
mov $2,3
mov $6,$5
mul $6,$0
mov $10,2
lpb $0
add $0,$10
mul $0,$6
sub $0,1
add $2,$0
add $2,2
div $0,$2
mov $3,$4
mov $4,12
mov $7,8
lpe
add $2,$7
add $2,2
add $2,$3
mov $5,$2
trn $5,27
add $5,1
add $1,$5
lpe
|
; A216326: Number of divisors of the degree of the minimal polynomial of 2*cos(Pi/prime(n)), with prime = A000040, n >= 1.
; 1,1,2,2,2,4,4,3,2,4,4,6,6,4,2,4,2,8,4,4,9,4,2,6,10,6,4,2,8,8,6,4,6,4,4,6,8,5,2,4,2,12,4,12,6,6,8,4,2,8,6,4,16,4,8,2,4,8,8,12,4,4,6,4,12,4,8,16,2,8,10,2,4,8,8,2,4,12,12,12,4,16,4,16,4,4,12,12,8,8,2
seq $0,40 ; The prime numbers.
div $0,2
sub $0,1
seq $0,5 ; d(n) (also called tau(n) or sigma_0(n)), the number of divisors of n.
|
; A081003: a(n) = Fibonacci(4n+1) + 1, or Fibonacci(2n+1)*Lucas(2n).
; 2,6,35,234,1598,10947,75026,514230,3524579,24157818,165580142,1134903171,7778742050,53316291174,365435296163,2504730781962,17167680177566,117669030460995,806515533049394,5527939700884758,37889062373143907,259695496911122586,1779979416004714190,12200160415121876739,83621143489848422978,573147844013817084102,3928413764606871165731,26925748508234281076010,184551825793033096366334,1264937032042997393488323,8670007398507948658051922,59425114757512643212875126,407305795904080553832073955
mul $0,2
mov $1,1
lpb $0
sub $0,1
add $2,$1
add $1,$2
lpe
add $1,1
mov $0,$1
|
// license:BSD-3-Clause
// copyright-holders:Curt Coder, smf
/**********************************************************************
SpeedDOS / Burst Nibbler 1541/1571 Parallel Cable emulation
http://sta.c64.org/cbmparc2.html
**********************************************************************/
#include "emu.h"
#include "bn1541.h"
//**************************************************************************
// MACROS / CONSTANTS
//**************************************************************************
#define LOG 0
//**************************************************************************
// DEVICE DEFINITIONS
//**************************************************************************
DEFINE_DEVICE_TYPE(C64_BN1541, c64_bn1541_device, "c64_bn1541", "C64 Burst Nibbler 1541/1571 Parallel Cable")
//**************************************************************************
// FLOPPY DRIVE INTERFACE
//**************************************************************************
//-------------------------------------------------
// device_c64_floppy_parallel_interface - constructor
//-------------------------------------------------
device_c64_floppy_parallel_interface::device_c64_floppy_parallel_interface(const machine_config &mconfig, device_t &device) :
m_other(nullptr), m_parallel_data(0)
{
}
//-------------------------------------------------
// ~device_c64_floppy_parallel_interface - destructor
//-------------------------------------------------
device_c64_floppy_parallel_interface::~device_c64_floppy_parallel_interface()
{
}
//**************************************************************************
// LIVE DEVICE
//**************************************************************************
//-------------------------------------------------
// c64_bn1541_device - constructor
//-------------------------------------------------
c64_bn1541_device::c64_bn1541_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) :
device_t(mconfig, C64_BN1541, tag, owner, clock),
device_pet_user_port_interface(mconfig, *this),
device_c64_floppy_parallel_interface(mconfig, *this), m_parallel_output(0)
{
}
//-------------------------------------------------
// device_start - device-specific startup
//-------------------------------------------------
void c64_bn1541_device::device_start()
{
for (device_t &device : device_enumerator(machine().root_device()))
{
for (device_t &subdevice : device_enumerator(device))
{
if (subdevice.interface(m_other) && &subdevice != this)
{
if (LOG) logerror("Parallel device %s\n", subdevice.tag());
// grab the first 1541/1571 and run to the hills
m_other->m_other = this;
return;
}
}
}
}
//-------------------------------------------------
// parallel_data_w -
//-------------------------------------------------
void c64_bn1541_device::parallel_data_w(uint8_t data)
{
if (LOG) logerror("1541 parallel data %02x\n", data);
output_c((data>>0)&1);
output_d((data>>1)&1);
output_e((data>>2)&1);
output_f((data>>3)&1);
output_h((data>>4)&1);
output_j((data>>5)&1);
output_k((data>>6)&1);
output_l((data>>7)&1);
}
//-------------------------------------------------
// parallel_strobe_w -
//-------------------------------------------------
void c64_bn1541_device::parallel_strobe_w(int state)
{
if (LOG) logerror("1541 parallel strobe %u\n", state);
output_b(state);
}
//-------------------------------------------------
// update_output
//-------------------------------------------------
void c64_bn1541_device::update_output()
{
if (m_other != nullptr)
{
m_other->parallel_data_w(m_parallel_output);
}
}
//-------------------------------------------------
// input_8 - CIA2 PC write
//-------------------------------------------------
WRITE_LINE_MEMBER(c64_bn1541_device::input_8)
{
if (LOG) logerror("C64 parallel strobe %u\n", state);
if (m_other != nullptr)
{
m_other->parallel_strobe_w(state);
}
}
|
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 3.0.7
*
* This file is not intended to be easily readable and contains a number of
* coding conventions designed to improve portability and efficiency. Do not make
* changes to this file unless you know what you are doing--modify the SWIG
* interface file instead.
* ----------------------------------------------------------------------------- */
#define SWIGPYTHON
#define SWIG_DIRECTORS
#define SWIG_PYTHON_DIRECTOR_NO_VTABLE
#ifdef __cplusplus
/* SwigValueWrapper is described in swig.swg */
template<typename T> class SwigValueWrapper {
struct SwigMovePointer {
T *ptr;
SwigMovePointer(T *p) : ptr(p) { }
~SwigMovePointer() { delete ptr; }
SwigMovePointer& operator=(SwigMovePointer& rhs) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = rhs.ptr; rhs.ptr = 0; return *this; }
} pointer;
SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
SwigValueWrapper(const SwigValueWrapper<T>& rhs);
public:
SwigValueWrapper() : pointer(0) { }
SwigValueWrapper& operator=(const T& t) { SwigMovePointer tmp(new T(t)); pointer = tmp; return *this; }
operator T&() const { return *pointer.ptr; }
T *operator&() { return pointer.ptr; }
};
template <typename T> T SwigValueInit() {
return T();
}
#endif
/* -----------------------------------------------------------------------------
* This section contains generic SWIG labels for method/variable
* declarations/attributes, and other compiler dependent labels.
* ----------------------------------------------------------------------------- */
/* template workaround for compilers that cannot correctly implement the C++ standard */
#ifndef SWIGTEMPLATEDISAMBIGUATOR
# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
# define SWIGTEMPLATEDISAMBIGUATOR template
# elif defined(__HP_aCC)
/* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */
/* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */
# define SWIGTEMPLATEDISAMBIGUATOR template
# else
# define SWIGTEMPLATEDISAMBIGUATOR
# endif
#endif
/* inline attribute */
#ifndef SWIGINLINE
# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
# define SWIGINLINE inline
# else
# define SWIGINLINE
# endif
#endif
/* attribute recognised by some compilers to avoid 'unused' warnings */
#ifndef SWIGUNUSED
# if defined(__GNUC__)
# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
# define SWIGUNUSED __attribute__ ((__unused__))
# else
# define SWIGUNUSED
# endif
# elif defined(__ICC)
# define SWIGUNUSED __attribute__ ((__unused__))
# else
# define SWIGUNUSED
# endif
#endif
#ifndef SWIG_MSC_UNSUPPRESS_4505
# if defined(_MSC_VER)
# pragma warning(disable : 4505) /* unreferenced local function has been removed */
# endif
#endif
#ifndef SWIGUNUSEDPARM
# ifdef __cplusplus
# define SWIGUNUSEDPARM(p)
# else
# define SWIGUNUSEDPARM(p) p SWIGUNUSED
# endif
#endif
/* internal SWIG method */
#ifndef SWIGINTERN
# define SWIGINTERN static SWIGUNUSED
#endif
/* internal inline SWIG method */
#ifndef SWIGINTERNINLINE
# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
#endif
/* exporting methods */
#if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
# ifndef GCC_HASCLASSVISIBILITY
# define GCC_HASCLASSVISIBILITY
# endif
#endif
#ifndef SWIGEXPORT
# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
# if defined(STATIC_LINKED)
# define SWIGEXPORT
# else
# define SWIGEXPORT __declspec(dllexport)
# endif
# else
# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
# define SWIGEXPORT __attribute__ ((visibility("default")))
# else
# define SWIGEXPORT
# endif
# endif
#endif
/* calling conventions for Windows */
#ifndef SWIGSTDCALL
# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
# define SWIGSTDCALL __stdcall
# else
# define SWIGSTDCALL
# endif
#endif
/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
# define _CRT_SECURE_NO_DEPRECATE
#endif
/* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
# define _SCL_SECURE_NO_DEPRECATE
#endif
/* Deal with Apple's deprecated 'AssertMacros.h' from Carbon-framework */
#if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES)
# define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0
#endif
/* Intel's compiler complains if a variable which was never initialised is
* cast to void, which is a common idiom which we use to indicate that we
* are aware a variable isn't used. So we just silence that warning.
* See: https://github.com/swig/swig/issues/192 for more discussion.
*/
#ifdef __INTEL_COMPILER
# pragma warning disable 592
#endif
#if defined(_DEBUG) && defined(SWIG_PYTHON_INTERPRETER_NO_DEBUG)
/* Use debug wrappers with the Python release dll */
# undef _DEBUG
# include <Python.h>
# define _DEBUG
#else
# include <Python.h>
#endif
/* -----------------------------------------------------------------------------
* swigrun.swg
*
* This file contains generic C API SWIG runtime support for pointer
* type checking.
* ----------------------------------------------------------------------------- */
/* This should only be incremented when either the layout of swig_type_info changes,
or for whatever reason, the runtime changes incompatibly */
#define SWIG_RUNTIME_VERSION "4"
/* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
#ifdef SWIG_TYPE_TABLE
# define SWIG_QUOTE_STRING(x) #x
# define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
# define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
#else
# define SWIG_TYPE_TABLE_NAME
#endif
/*
You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
creating a static or dynamic library from the SWIG runtime code.
In 99.9% of the cases, SWIG just needs to declare them as 'static'.
But only do this if strictly necessary, ie, if you have problems
with your compiler or suchlike.
*/
#ifndef SWIGRUNTIME
# define SWIGRUNTIME SWIGINTERN
#endif
#ifndef SWIGRUNTIMEINLINE
# define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
#endif
/* Generic buffer size */
#ifndef SWIG_BUFFER_SIZE
# define SWIG_BUFFER_SIZE 1024
#endif
/* Flags for pointer conversions */
#define SWIG_POINTER_DISOWN 0x1
#define SWIG_CAST_NEW_MEMORY 0x2
/* Flags for new pointer objects */
#define SWIG_POINTER_OWN 0x1
/*
Flags/methods for returning states.
The SWIG conversion methods, as ConvertPtr, return an integer
that tells if the conversion was successful or not. And if not,
an error code can be returned (see swigerrors.swg for the codes).
Use the following macros/flags to set or process the returning
states.
In old versions of SWIG, code such as the following was usually written:
if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
// success code
} else {
//fail code
}
Now you can be more explicit:
int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
if (SWIG_IsOK(res)) {
// success code
} else {
// fail code
}
which is the same really, but now you can also do
Type *ptr;
int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
if (SWIG_IsOK(res)) {
// success code
if (SWIG_IsNewObj(res) {
...
delete *ptr;
} else {
...
}
} else {
// fail code
}
I.e., now SWIG_ConvertPtr can return new objects and you can
identify the case and take care of the deallocation. Of course that
also requires SWIG_ConvertPtr to return new result values, such as
int SWIG_ConvertPtr(obj, ptr,...) {
if (<obj is ok>) {
if (<need new object>) {
*ptr = <ptr to new allocated object>;
return SWIG_NEWOBJ;
} else {
*ptr = <ptr to old object>;
return SWIG_OLDOBJ;
}
} else {
return SWIG_BADOBJ;
}
}
Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
SWIG errors code.
Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
allows to return the 'cast rank', for example, if you have this
int food(double)
int fooi(int);
and you call
food(1) // cast rank '1' (1 -> 1.0)
fooi(1) // cast rank '0'
just use the SWIG_AddCast()/SWIG_CheckState()
*/
#define SWIG_OK (0)
#define SWIG_ERROR (-1)
#define SWIG_IsOK(r) (r >= 0)
#define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
/* The CastRankLimit says how many bits are used for the cast rank */
#define SWIG_CASTRANKLIMIT (1 << 8)
/* The NewMask denotes the object was created (using new/malloc) */
#define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
/* The TmpMask is for in/out typemaps that use temporal objects */
#define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
/* Simple returning values */
#define SWIG_BADOBJ (SWIG_ERROR)
#define SWIG_OLDOBJ (SWIG_OK)
#define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
#define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
/* Check, add and del mask methods */
#define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
#define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
#define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
#define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
#define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
#define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
/* Cast-Rank Mode */
#if defined(SWIG_CASTRANK_MODE)
# ifndef SWIG_TypeRank
# define SWIG_TypeRank unsigned long
# endif
# ifndef SWIG_MAXCASTRANK /* Default cast allowed */
# define SWIG_MAXCASTRANK (2)
# endif
# define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
# define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
SWIGINTERNINLINE int SWIG_AddCast(int r) {
return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
}
SWIGINTERNINLINE int SWIG_CheckState(int r) {
return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
}
#else /* no cast-rank mode */
# define SWIG_AddCast(r) (r)
# define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
#endif
#include <string.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef void *(*swig_converter_func)(void *, int *);
typedef struct swig_type_info *(*swig_dycast_func)(void **);
/* Structure to store information on one type */
typedef struct swig_type_info {
const char *name; /* mangled name of this type */
const char *str; /* human readable name of this type */
swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
struct swig_cast_info *cast; /* linked list of types that can cast into this type */
void *clientdata; /* language specific type data */
int owndata; /* flag if the structure owns the clientdata */
} swig_type_info;
/* Structure to store a type and conversion function used for casting */
typedef struct swig_cast_info {
swig_type_info *type; /* pointer to type that is equivalent to this type */
swig_converter_func converter; /* function to cast the void pointers */
struct swig_cast_info *next; /* pointer to next cast in linked list */
struct swig_cast_info *prev; /* pointer to the previous cast */
} swig_cast_info;
/* Structure used to store module information
* Each module generates one structure like this, and the runtime collects
* all of these structures and stores them in a circularly linked list.*/
typedef struct swig_module_info {
swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
size_t size; /* Number of types in this module */
struct swig_module_info *next; /* Pointer to next element in circularly linked list */
swig_type_info **type_initial; /* Array of initially generated type structures */
swig_cast_info **cast_initial; /* Array of initially generated casting structures */
void *clientdata; /* Language specific module data */
} swig_module_info;
/*
Compare two type names skipping the space characters, therefore
"char*" == "char *" and "Class<int>" == "Class<int >", etc.
Return 0 when the two name types are equivalent, as in
strncmp, but skipping ' '.
*/
SWIGRUNTIME int
SWIG_TypeNameComp(const char *f1, const char *l1,
const char *f2, const char *l2) {
for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
while ((*f1 == ' ') && (f1 != l1)) ++f1;
while ((*f2 == ' ') && (f2 != l2)) ++f2;
if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
}
return (int)((l1 - f1) - (l2 - f2));
}
/*
Check type equivalence in a name list like <name1>|<name2>|...
Return 0 if equal, -1 if nb < tb, 1 if nb > tb
*/
SWIGRUNTIME int
SWIG_TypeCmp(const char *nb, const char *tb) {
int equiv = 1;
const char* te = tb + strlen(tb);
const char* ne = nb;
while (equiv != 0 && *ne) {
for (nb = ne; *ne; ++ne) {
if (*ne == '|') break;
}
equiv = SWIG_TypeNameComp(nb, ne, tb, te);
if (*ne) ++ne;
}
return equiv;
}
/*
Check type equivalence in a name list like <name1>|<name2>|...
Return 0 if not equal, 1 if equal
*/
SWIGRUNTIME int
SWIG_TypeEquiv(const char *nb, const char *tb) {
return SWIG_TypeCmp(nb, tb) == 0 ? 1 : 0;
}
/*
Check the typename
*/
SWIGRUNTIME swig_cast_info *
SWIG_TypeCheck(const char *c, swig_type_info *ty) {
if (ty) {
swig_cast_info *iter = ty->cast;
while (iter) {
if (strcmp(iter->type->name, c) == 0) {
if (iter == ty->cast)
return iter;
/* Move iter to the top of the linked list */
iter->prev->next = iter->next;
if (iter->next)
iter->next->prev = iter->prev;
iter->next = ty->cast;
iter->prev = 0;
if (ty->cast) ty->cast->prev = iter;
ty->cast = iter;
return iter;
}
iter = iter->next;
}
}
return 0;
}
/*
Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison
*/
SWIGRUNTIME swig_cast_info *
SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *ty) {
if (ty) {
swig_cast_info *iter = ty->cast;
while (iter) {
if (iter->type == from) {
if (iter == ty->cast)
return iter;
/* Move iter to the top of the linked list */
iter->prev->next = iter->next;
if (iter->next)
iter->next->prev = iter->prev;
iter->next = ty->cast;
iter->prev = 0;
if (ty->cast) ty->cast->prev = iter;
ty->cast = iter;
return iter;
}
iter = iter->next;
}
}
return 0;
}
/*
Cast a pointer up an inheritance hierarchy
*/
SWIGRUNTIMEINLINE void *
SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) {
return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory);
}
/*
Dynamic pointer casting. Down an inheritance hierarchy
*/
SWIGRUNTIME swig_type_info *
SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
swig_type_info *lastty = ty;
if (!ty || !ty->dcast) return ty;
while (ty && (ty->dcast)) {
ty = (*ty->dcast)(ptr);
if (ty) lastty = ty;
}
return lastty;
}
/*
Return the name associated with this type
*/
SWIGRUNTIMEINLINE const char *
SWIG_TypeName(const swig_type_info *ty) {
return ty->name;
}
/*
Return the pretty name associated with this type,
that is an unmangled type name in a form presentable to the user.
*/
SWIGRUNTIME const char *
SWIG_TypePrettyName(const swig_type_info *type) {
/* The "str" field contains the equivalent pretty names of the
type, separated by vertical-bar characters. We choose
to print the last name, as it is often (?) the most
specific. */
if (!type) return NULL;
if (type->str != NULL) {
const char *last_name = type->str;
const char *s;
for (s = type->str; *s; s++)
if (*s == '|') last_name = s+1;
return last_name;
}
else
return type->name;
}
/*
Set the clientdata field for a type
*/
SWIGRUNTIME void
SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
swig_cast_info *cast = ti->cast;
/* if (ti->clientdata == clientdata) return; */
ti->clientdata = clientdata;
while (cast) {
if (!cast->converter) {
swig_type_info *tc = cast->type;
if (!tc->clientdata) {
SWIG_TypeClientData(tc, clientdata);
}
}
cast = cast->next;
}
}
SWIGRUNTIME void
SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
SWIG_TypeClientData(ti, clientdata);
ti->owndata = 1;
}
/*
Search for a swig_type_info structure only by mangled name
Search is a O(log #types)
We start searching at module start, and finish searching when start == end.
Note: if start == end at the beginning of the function, we go all the way around
the circular list.
*/
SWIGRUNTIME swig_type_info *
SWIG_MangledTypeQueryModule(swig_module_info *start,
swig_module_info *end,
const char *name) {
swig_module_info *iter = start;
do {
if (iter->size) {
size_t l = 0;
size_t r = iter->size - 1;
do {
/* since l+r >= 0, we can (>> 1) instead (/ 2) */
size_t i = (l + r) >> 1;
const char *iname = iter->types[i]->name;
if (iname) {
int compare = strcmp(name, iname);
if (compare == 0) {
return iter->types[i];
} else if (compare < 0) {
if (i) {
r = i - 1;
} else {
break;
}
} else if (compare > 0) {
l = i + 1;
}
} else {
break; /* should never happen */
}
} while (l <= r);
}
iter = iter->next;
} while (iter != end);
return 0;
}
/*
Search for a swig_type_info structure for either a mangled name or a human readable name.
It first searches the mangled names of the types, which is a O(log #types)
If a type is not found it then searches the human readable names, which is O(#types).
We start searching at module start, and finish searching when start == end.
Note: if start == end at the beginning of the function, we go all the way around
the circular list.
*/
SWIGRUNTIME swig_type_info *
SWIG_TypeQueryModule(swig_module_info *start,
swig_module_info *end,
const char *name) {
/* STEP 1: Search the name field using binary search */
swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
if (ret) {
return ret;
} else {
/* STEP 2: If the type hasn't been found, do a complete search
of the str field (the human readable name) */
swig_module_info *iter = start;
do {
size_t i = 0;
for (; i < iter->size; ++i) {
if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
return iter->types[i];
}
iter = iter->next;
} while (iter != end);
}
/* neither found a match */
return 0;
}
/*
Pack binary data into a string
*/
SWIGRUNTIME char *
SWIG_PackData(char *c, void *ptr, size_t sz) {
static const char hex[17] = "0123456789abcdef";
const unsigned char *u = (unsigned char *) ptr;
const unsigned char *eu = u + sz;
for (; u != eu; ++u) {
unsigned char uu = *u;
*(c++) = hex[(uu & 0xf0) >> 4];
*(c++) = hex[uu & 0xf];
}
return c;
}
/*
Unpack binary data from a string
*/
SWIGRUNTIME const char *
SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
unsigned char *u = (unsigned char *) ptr;
const unsigned char *eu = u + sz;
for (; u != eu; ++u) {
char d = *(c++);
unsigned char uu;
if ((d >= '0') && (d <= '9'))
uu = ((d - '0') << 4);
else if ((d >= 'a') && (d <= 'f'))
uu = ((d - ('a'-10)) << 4);
else
return (char *) 0;
d = *(c++);
if ((d >= '0') && (d <= '9'))
uu |= (d - '0');
else if ((d >= 'a') && (d <= 'f'))
uu |= (d - ('a'-10));
else
return (char *) 0;
*u = uu;
}
return c;
}
/*
Pack 'void *' into a string buffer.
*/
SWIGRUNTIME char *
SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
char *r = buff;
if ((2*sizeof(void *) + 2) > bsz) return 0;
*(r++) = '_';
r = SWIG_PackData(r,&ptr,sizeof(void *));
if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
strcpy(r,name);
return buff;
}
SWIGRUNTIME const char *
SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
if (*c != '_') {
if (strcmp(c,"NULL") == 0) {
*ptr = (void *) 0;
return name;
} else {
return 0;
}
}
return SWIG_UnpackData(++c,ptr,sizeof(void *));
}
SWIGRUNTIME char *
SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
char *r = buff;
size_t lname = (name ? strlen(name) : 0);
if ((2*sz + 2 + lname) > bsz) return 0;
*(r++) = '_';
r = SWIG_PackData(r,ptr,sz);
if (lname) {
strncpy(r,name,lname+1);
} else {
*r = 0;
}
return buff;
}
SWIGRUNTIME const char *
SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
if (*c != '_') {
if (strcmp(c,"NULL") == 0) {
memset(ptr,0,sz);
return name;
} else {
return 0;
}
}
return SWIG_UnpackData(++c,ptr,sz);
}
#ifdef __cplusplus
}
#endif
/* Errors in SWIG */
#define SWIG_UnknownError -1
#define SWIG_IOError -2
#define SWIG_RuntimeError -3
#define SWIG_IndexError -4
#define SWIG_TypeError -5
#define SWIG_DivisionByZero -6
#define SWIG_OverflowError -7
#define SWIG_SyntaxError -8
#define SWIG_ValueError -9
#define SWIG_SystemError -10
#define SWIG_AttributeError -11
#define SWIG_MemoryError -12
#define SWIG_NullReferenceError -13
/* Compatibility macros for Python 3 */
#if PY_VERSION_HEX >= 0x03000000
#define PyClass_Check(obj) PyObject_IsInstance(obj, (PyObject *)&PyType_Type)
#define PyInt_Check(x) PyLong_Check(x)
#define PyInt_AsLong(x) PyLong_AsLong(x)
#define PyInt_FromLong(x) PyLong_FromLong(x)
#define PyInt_FromSize_t(x) PyLong_FromSize_t(x)
#define PyString_Check(name) PyBytes_Check(name)
#define PyString_FromString(x) PyUnicode_FromString(x)
#define PyString_Format(fmt, args) PyUnicode_Format(fmt, args)
#define PyString_AsString(str) PyBytes_AsString(str)
#define PyString_Size(str) PyBytes_Size(str)
#define PyString_InternFromString(key) PyUnicode_InternFromString(key)
#define Py_TPFLAGS_HAVE_CLASS Py_TPFLAGS_BASETYPE
#define PyString_AS_STRING(x) PyUnicode_AS_STRING(x)
#define _PyLong_FromSsize_t(x) PyLong_FromSsize_t(x)
#endif
#ifndef Py_TYPE
# define Py_TYPE(op) ((op)->ob_type)
#endif
/* SWIG APIs for compatibility of both Python 2 & 3 */
#if PY_VERSION_HEX >= 0x03000000
# define SWIG_Python_str_FromFormat PyUnicode_FromFormat
#else
# define SWIG_Python_str_FromFormat PyString_FromFormat
#endif
/* Warning: This function will allocate a new string in Python 3,
* so please call SWIG_Python_str_DelForPy3(x) to free the space.
*/
SWIGINTERN char*
SWIG_Python_str_AsChar(PyObject *str)
{
#if PY_VERSION_HEX >= 0x03000000
char *cstr;
char *newstr;
Py_ssize_t len;
str = PyUnicode_AsUTF8String(str);
PyBytes_AsStringAndSize(str, &cstr, &len);
newstr = (char *) malloc(len+1);
memcpy(newstr, cstr, len+1);
Py_XDECREF(str);
return newstr;
#else
return PyString_AsString(str);
#endif
}
#if PY_VERSION_HEX >= 0x03000000
# define SWIG_Python_str_DelForPy3(x) free( (void*) (x) )
#else
# define SWIG_Python_str_DelForPy3(x)
#endif
SWIGINTERN PyObject*
SWIG_Python_str_FromChar(const char *c)
{
#if PY_VERSION_HEX >= 0x03000000
return PyUnicode_FromString(c);
#else
return PyString_FromString(c);
#endif
}
/* Add PyOS_snprintf for old Pythons */
#if PY_VERSION_HEX < 0x02020000
# if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
# define PyOS_snprintf _snprintf
# else
# define PyOS_snprintf snprintf
# endif
#endif
/* A crude PyString_FromFormat implementation for old Pythons */
#if PY_VERSION_HEX < 0x02020000
#ifndef SWIG_PYBUFFER_SIZE
# define SWIG_PYBUFFER_SIZE 1024
#endif
static PyObject *
PyString_FromFormat(const char *fmt, ...) {
va_list ap;
char buf[SWIG_PYBUFFER_SIZE * 2];
int res;
va_start(ap, fmt);
res = vsnprintf(buf, sizeof(buf), fmt, ap);
va_end(ap);
return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
}
#endif
/* Add PyObject_Del for old Pythons */
#if PY_VERSION_HEX < 0x01060000
# define PyObject_Del(op) PyMem_DEL((op))
#endif
#ifndef PyObject_DEL
# define PyObject_DEL PyObject_Del
#endif
/* A crude PyExc_StopIteration exception for old Pythons */
#if PY_VERSION_HEX < 0x02020000
# ifndef PyExc_StopIteration
# define PyExc_StopIteration PyExc_RuntimeError
# endif
# ifndef PyObject_GenericGetAttr
# define PyObject_GenericGetAttr 0
# endif
#endif
/* Py_NotImplemented is defined in 2.1 and up. */
#if PY_VERSION_HEX < 0x02010000
# ifndef Py_NotImplemented
# define Py_NotImplemented PyExc_RuntimeError
# endif
#endif
/* A crude PyString_AsStringAndSize implementation for old Pythons */
#if PY_VERSION_HEX < 0x02010000
# ifndef PyString_AsStringAndSize
# define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
# endif
#endif
/* PySequence_Size for old Pythons */
#if PY_VERSION_HEX < 0x02000000
# ifndef PySequence_Size
# define PySequence_Size PySequence_Length
# endif
#endif
/* PyBool_FromLong for old Pythons */
#if PY_VERSION_HEX < 0x02030000
static
PyObject *PyBool_FromLong(long ok)
{
PyObject *result = ok ? Py_True : Py_False;
Py_INCREF(result);
return result;
}
#endif
/* Py_ssize_t for old Pythons */
/* This code is as recommended by: */
/* http://www.python.org/dev/peps/pep-0353/#conversion-guidelines */
#if PY_VERSION_HEX < 0x02050000 && !defined(PY_SSIZE_T_MIN)
typedef int Py_ssize_t;
# define PY_SSIZE_T_MAX INT_MAX
# define PY_SSIZE_T_MIN INT_MIN
typedef inquiry lenfunc;
typedef intargfunc ssizeargfunc;
typedef intintargfunc ssizessizeargfunc;
typedef intobjargproc ssizeobjargproc;
typedef intintobjargproc ssizessizeobjargproc;
typedef getreadbufferproc readbufferproc;
typedef getwritebufferproc writebufferproc;
typedef getsegcountproc segcountproc;
typedef getcharbufferproc charbufferproc;
static long PyNumber_AsSsize_t (PyObject *x, void *SWIGUNUSEDPARM(exc))
{
long result = 0;
PyObject *i = PyNumber_Int(x);
if (i) {
result = PyInt_AsLong(i);
Py_DECREF(i);
}
return result;
}
#endif
#if PY_VERSION_HEX < 0x02050000
#define PyInt_FromSize_t(x) PyInt_FromLong((long)x)
#endif
#if PY_VERSION_HEX < 0x02040000
#define Py_VISIT(op) \
do { \
if (op) { \
int vret = visit((op), arg); \
if (vret) \
return vret; \
} \
} while (0)
#endif
#if PY_VERSION_HEX < 0x02030000
typedef struct {
PyTypeObject type;
PyNumberMethods as_number;
PyMappingMethods as_mapping;
PySequenceMethods as_sequence;
PyBufferProcs as_buffer;
PyObject *name, *slots;
} PyHeapTypeObject;
#endif
#if PY_VERSION_HEX < 0x02030000
typedef destructor freefunc;
#endif
#if ((PY_MAJOR_VERSION == 2 && PY_MINOR_VERSION > 6) || \
(PY_MAJOR_VERSION == 3 && PY_MINOR_VERSION > 0) || \
(PY_MAJOR_VERSION > 3))
# define SWIGPY_USE_CAPSULE
# define SWIGPY_CAPSULE_NAME ((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION ".type_pointer_capsule" SWIG_TYPE_TABLE_NAME)
#endif
#if PY_VERSION_HEX < 0x03020000
#define PyDescr_TYPE(x) (((PyDescrObject *)(x))->d_type)
#define PyDescr_NAME(x) (((PyDescrObject *)(x))->d_name)
#endif
/* -----------------------------------------------------------------------------
* error manipulation
* ----------------------------------------------------------------------------- */
SWIGRUNTIME PyObject*
SWIG_Python_ErrorType(int code) {
PyObject* type = 0;
switch(code) {
case SWIG_MemoryError:
type = PyExc_MemoryError;
break;
case SWIG_IOError:
type = PyExc_IOError;
break;
case SWIG_RuntimeError:
type = PyExc_RuntimeError;
break;
case SWIG_IndexError:
type = PyExc_IndexError;
break;
case SWIG_TypeError:
type = PyExc_TypeError;
break;
case SWIG_DivisionByZero:
type = PyExc_ZeroDivisionError;
break;
case SWIG_OverflowError:
type = PyExc_OverflowError;
break;
case SWIG_SyntaxError:
type = PyExc_SyntaxError;
break;
case SWIG_ValueError:
type = PyExc_ValueError;
break;
case SWIG_SystemError:
type = PyExc_SystemError;
break;
case SWIG_AttributeError:
type = PyExc_AttributeError;
break;
default:
type = PyExc_RuntimeError;
}
return type;
}
SWIGRUNTIME void
SWIG_Python_AddErrorMsg(const char* mesg)
{
PyObject *type = 0;
PyObject *value = 0;
PyObject *traceback = 0;
if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
if (value) {
char *tmp;
PyObject *old_str = PyObject_Str(value);
PyErr_Clear();
Py_XINCREF(type);
PyErr_Format(type, "%s %s", tmp = SWIG_Python_str_AsChar(old_str), mesg);
SWIG_Python_str_DelForPy3(tmp);
Py_DECREF(old_str);
Py_DECREF(value);
} else {
PyErr_SetString(PyExc_RuntimeError, mesg);
}
}
#if defined(SWIG_PYTHON_NO_THREADS)
# if defined(SWIG_PYTHON_THREADS)
# undef SWIG_PYTHON_THREADS
# endif
#endif
#if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
# if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
# if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
# define SWIG_PYTHON_USE_GIL
# endif
# endif
# if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
# ifndef SWIG_PYTHON_INITIALIZE_THREADS
# define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
# endif
# ifdef __cplusplus /* C++ code */
class SWIG_Python_Thread_Block {
bool status;
PyGILState_STATE state;
public:
void end() { if (status) { PyGILState_Release(state); status = false;} }
SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
~SWIG_Python_Thread_Block() { end(); }
};
class SWIG_Python_Thread_Allow {
bool status;
PyThreadState *save;
public:
void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
~SWIG_Python_Thread_Allow() { end(); }
};
# define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
# define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
# define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
# define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
# else /* C code */
# define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
# define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
# define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
# define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
# endif
# else /* Old thread way, not implemented, user must provide it */
# if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
# define SWIG_PYTHON_INITIALIZE_THREADS
# endif
# if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
# define SWIG_PYTHON_THREAD_BEGIN_BLOCK
# endif
# if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
# define SWIG_PYTHON_THREAD_END_BLOCK
# endif
# if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
# define SWIG_PYTHON_THREAD_BEGIN_ALLOW
# endif
# if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
# define SWIG_PYTHON_THREAD_END_ALLOW
# endif
# endif
#else /* No thread support */
# define SWIG_PYTHON_INITIALIZE_THREADS
# define SWIG_PYTHON_THREAD_BEGIN_BLOCK
# define SWIG_PYTHON_THREAD_END_BLOCK
# define SWIG_PYTHON_THREAD_BEGIN_ALLOW
# define SWIG_PYTHON_THREAD_END_ALLOW
#endif
/* -----------------------------------------------------------------------------
* Python API portion that goes into the runtime
* ----------------------------------------------------------------------------- */
#ifdef __cplusplus
extern "C" {
#endif
/* -----------------------------------------------------------------------------
* Constant declarations
* ----------------------------------------------------------------------------- */
/* Constant Types */
#define SWIG_PY_POINTER 4
#define SWIG_PY_BINARY 5
/* Constant information structure */
typedef struct swig_const_info {
int type;
char *name;
long lvalue;
double dvalue;
void *pvalue;
swig_type_info **ptype;
} swig_const_info;
/* -----------------------------------------------------------------------------
* Wrapper of PyInstanceMethod_New() used in Python 3
* It is exported to the generated module, used for -fastproxy
* ----------------------------------------------------------------------------- */
#if PY_VERSION_HEX >= 0x03000000
SWIGRUNTIME PyObject* SWIG_PyInstanceMethod_New(PyObject *SWIGUNUSEDPARM(self), PyObject *func)
{
return PyInstanceMethod_New(func);
}
#else
SWIGRUNTIME PyObject* SWIG_PyInstanceMethod_New(PyObject *SWIGUNUSEDPARM(self), PyObject *SWIGUNUSEDPARM(func))
{
return NULL;
}
#endif
#ifdef __cplusplus
}
#endif
/* -----------------------------------------------------------------------------
* pyrun.swg
*
* This file contains the runtime support for Python modules
* and includes code for managing global variables and pointer
* type checking.
*
* ----------------------------------------------------------------------------- */
/* Common SWIG API */
/* for raw pointers */
#define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
#define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
#define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
#ifdef SWIGPYTHON_BUILTIN
#define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(self, ptr, type, flags)
#else
#define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(NULL, ptr, type, flags)
#endif
#define SWIG_InternalNewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(NULL, ptr, type, flags)
#define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
#define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
#define swig_owntype int
/* for raw packed data */
#define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
#define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
/* for class or struct pointers */
#define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
#define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
/* for C or C++ function pointers */
#define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
#define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(NULL, ptr, type, 0)
/* for C++ member pointers, ie, member methods */
#define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
#define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
/* Runtime API */
#define SWIG_GetModule(clientdata) SWIG_Python_GetModule(clientdata)
#define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
#define SWIG_NewClientData(obj) SwigPyClientData_New(obj)
#define SWIG_SetErrorObj SWIG_Python_SetErrorObj
#define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg
#define SWIG_ErrorType(code) SWIG_Python_ErrorType(code)
#define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
#define SWIG_fail goto fail
/* Runtime API implementation */
/* Error manipulation */
SWIGINTERN void
SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
SWIG_PYTHON_THREAD_BEGIN_BLOCK;
PyErr_SetObject(errtype, obj);
Py_DECREF(obj);
SWIG_PYTHON_THREAD_END_BLOCK;
}
SWIGINTERN void
SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
SWIG_PYTHON_THREAD_BEGIN_BLOCK;
PyErr_SetString(errtype, msg);
SWIG_PYTHON_THREAD_END_BLOCK;
}
#define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
/* Set a constant value */
#if defined(SWIGPYTHON_BUILTIN)
SWIGINTERN void
SwigPyBuiltin_AddPublicSymbol(PyObject *seq, const char *key) {
PyObject *s = PyString_InternFromString(key);
PyList_Append(seq, s);
Py_DECREF(s);
}
SWIGINTERN void
SWIG_Python_SetConstant(PyObject *d, PyObject *public_interface, const char *name, PyObject *obj) {
#if PY_VERSION_HEX < 0x02030000
PyDict_SetItemString(d, (char *)name, obj);
#else
PyDict_SetItemString(d, name, obj);
#endif
Py_DECREF(obj);
if (public_interface)
SwigPyBuiltin_AddPublicSymbol(public_interface, name);
}
#else
SWIGINTERN void
SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
#if PY_VERSION_HEX < 0x02030000
PyDict_SetItemString(d, (char *)name, obj);
#else
PyDict_SetItemString(d, name, obj);
#endif
Py_DECREF(obj);
}
#endif
/* Append a value to the result obj */
SWIGINTERN PyObject*
SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
#if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
if (!result) {
result = obj;
} else if (result == Py_None) {
Py_DECREF(result);
result = obj;
} else {
if (!PyList_Check(result)) {
PyObject *o2 = result;
result = PyList_New(1);
PyList_SetItem(result, 0, o2);
}
PyList_Append(result,obj);
Py_DECREF(obj);
}
return result;
#else
PyObject* o2;
PyObject* o3;
if (!result) {
result = obj;
} else if (result == Py_None) {
Py_DECREF(result);
result = obj;
} else {
if (!PyTuple_Check(result)) {
o2 = result;
result = PyTuple_New(1);
PyTuple_SET_ITEM(result, 0, o2);
}
o3 = PyTuple_New(1);
PyTuple_SET_ITEM(o3, 0, obj);
o2 = result;
result = PySequence_Concat(o2, o3);
Py_DECREF(o2);
Py_DECREF(o3);
}
return result;
#endif
}
/* Unpack the argument tuple */
SWIGINTERN int
SWIG_Python_UnpackTuple(PyObject *args, const char *name, Py_ssize_t min, Py_ssize_t max, PyObject **objs)
{
if (!args) {
if (!min && !max) {
return 1;
} else {
PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
name, (min == max ? "" : "at least "), (int)min);
return 0;
}
}
if (!PyTuple_Check(args)) {
if (min <= 1 && max >= 1) {
int i;
objs[0] = args;
for (i = 1; i < max; ++i) {
objs[i] = 0;
}
return 2;
}
PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
return 0;
} else {
Py_ssize_t l = PyTuple_GET_SIZE(args);
if (l < min) {
PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
name, (min == max ? "" : "at least "), (int)min, (int)l);
return 0;
} else if (l > max) {
PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
name, (min == max ? "" : "at most "), (int)max, (int)l);
return 0;
} else {
int i;
for (i = 0; i < l; ++i) {
objs[i] = PyTuple_GET_ITEM(args, i);
}
for (; l < max; ++l) {
objs[l] = 0;
}
return i + 1;
}
}
}
/* A functor is a function object with one single object argument */
#if PY_VERSION_HEX >= 0x02020000
#define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
#else
#define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj);
#endif
/*
Helper for static pointer initialization for both C and C++ code, for example
static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
*/
#ifdef __cplusplus
#define SWIG_STATIC_POINTER(var) var
#else
#define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
#endif
/* -----------------------------------------------------------------------------
* Pointer declarations
* ----------------------------------------------------------------------------- */
/* Flags for new pointer objects */
#define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1)
#define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
#define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
#define SWIG_BUILTIN_TP_INIT (SWIG_POINTER_OWN << 2)
#define SWIG_BUILTIN_INIT (SWIG_BUILTIN_TP_INIT | SWIG_POINTER_OWN)
#ifdef __cplusplus
extern "C" {
#endif
/* How to access Py_None */
#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
# ifndef SWIG_PYTHON_NO_BUILD_NONE
# ifndef SWIG_PYTHON_BUILD_NONE
# define SWIG_PYTHON_BUILD_NONE
# endif
# endif
#endif
#ifdef SWIG_PYTHON_BUILD_NONE
# ifdef Py_None
# undef Py_None
# define Py_None SWIG_Py_None()
# endif
SWIGRUNTIMEINLINE PyObject *
_SWIG_Py_None(void)
{
PyObject *none = Py_BuildValue((char*)"");
Py_DECREF(none);
return none;
}
SWIGRUNTIME PyObject *
SWIG_Py_None(void)
{
static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
return none;
}
#endif
/* The python void return value */
SWIGRUNTIMEINLINE PyObject *
SWIG_Py_Void(void)
{
PyObject *none = Py_None;
Py_INCREF(none);
return none;
}
/* SwigPyClientData */
typedef struct {
PyObject *klass;
PyObject *newraw;
PyObject *newargs;
PyObject *destroy;
int delargs;
int implicitconv;
PyTypeObject *pytype;
} SwigPyClientData;
SWIGRUNTIMEINLINE int
SWIG_Python_CheckImplicit(swig_type_info *ty)
{
SwigPyClientData *data = (SwigPyClientData *)ty->clientdata;
return data ? data->implicitconv : 0;
}
SWIGRUNTIMEINLINE PyObject *
SWIG_Python_ExceptionType(swig_type_info *desc) {
SwigPyClientData *data = desc ? (SwigPyClientData *) desc->clientdata : 0;
PyObject *klass = data ? data->klass : 0;
return (klass ? klass : PyExc_RuntimeError);
}
SWIGRUNTIME SwigPyClientData *
SwigPyClientData_New(PyObject* obj)
{
if (!obj) {
return 0;
} else {
SwigPyClientData *data = (SwigPyClientData *)malloc(sizeof(SwigPyClientData));
/* the klass element */
data->klass = obj;
Py_INCREF(data->klass);
/* the newraw method and newargs arguments used to create a new raw instance */
if (PyClass_Check(obj)) {
data->newraw = 0;
data->newargs = obj;
Py_INCREF(obj);
} else {
#if (PY_VERSION_HEX < 0x02020000)
data->newraw = 0;
#else
data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
#endif
if (data->newraw) {
Py_INCREF(data->newraw);
data->newargs = PyTuple_New(1);
PyTuple_SetItem(data->newargs, 0, obj);
} else {
data->newargs = obj;
}
Py_INCREF(data->newargs);
}
/* the destroy method, aka as the C++ delete method */
data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
if (PyErr_Occurred()) {
PyErr_Clear();
data->destroy = 0;
}
if (data->destroy) {
int flags;
Py_INCREF(data->destroy);
flags = PyCFunction_GET_FLAGS(data->destroy);
#ifdef METH_O
data->delargs = !(flags & (METH_O));
#else
data->delargs = 0;
#endif
} else {
data->delargs = 0;
}
data->implicitconv = 0;
data->pytype = 0;
return data;
}
}
SWIGRUNTIME void
SwigPyClientData_Del(SwigPyClientData *data) {
Py_XDECREF(data->newraw);
Py_XDECREF(data->newargs);
Py_XDECREF(data->destroy);
}
/* =============== SwigPyObject =====================*/
typedef struct {
PyObject_HEAD
void *ptr;
swig_type_info *ty;
int own;
PyObject *next;
#ifdef SWIGPYTHON_BUILTIN
PyObject *dict;
#endif
} SwigPyObject;
#ifdef SWIGPYTHON_BUILTIN
SWIGRUNTIME PyObject *
SwigPyObject_get___dict__(PyObject *v, PyObject *SWIGUNUSEDPARM(args))
{
SwigPyObject *sobj = (SwigPyObject *)v;
if (!sobj->dict)
sobj->dict = PyDict_New();
Py_INCREF(sobj->dict);
return sobj->dict;
}
#endif
SWIGRUNTIME PyObject *
SwigPyObject_long(SwigPyObject *v)
{
return PyLong_FromVoidPtr(v->ptr);
}
SWIGRUNTIME PyObject *
SwigPyObject_format(const char* fmt, SwigPyObject *v)
{
PyObject *res = NULL;
PyObject *args = PyTuple_New(1);
if (args) {
if (PyTuple_SetItem(args, 0, SwigPyObject_long(v)) == 0) {
PyObject *ofmt = SWIG_Python_str_FromChar(fmt);
if (ofmt) {
#if PY_VERSION_HEX >= 0x03000000
res = PyUnicode_Format(ofmt,args);
#else
res = PyString_Format(ofmt,args);
#endif
Py_DECREF(ofmt);
}
Py_DECREF(args);
}
}
return res;
}
SWIGRUNTIME PyObject *
SwigPyObject_oct(SwigPyObject *v)
{
return SwigPyObject_format("%o",v);
}
SWIGRUNTIME PyObject *
SwigPyObject_hex(SwigPyObject *v)
{
return SwigPyObject_format("%x",v);
}
SWIGRUNTIME PyObject *
#ifdef METH_NOARGS
SwigPyObject_repr(SwigPyObject *v)
#else
SwigPyObject_repr(SwigPyObject *v, PyObject *args)
#endif
{
const char *name = SWIG_TypePrettyName(v->ty);
PyObject *repr = SWIG_Python_str_FromFormat("<Swig Object of type '%s' at %p>", (name ? name : "unknown"), (void *)v);
if (v->next) {
# ifdef METH_NOARGS
PyObject *nrep = SwigPyObject_repr((SwigPyObject *)v->next);
# else
PyObject *nrep = SwigPyObject_repr((SwigPyObject *)v->next, args);
# endif
# if PY_VERSION_HEX >= 0x03000000
PyObject *joined = PyUnicode_Concat(repr, nrep);
Py_DecRef(repr);
Py_DecRef(nrep);
repr = joined;
# else
PyString_ConcatAndDel(&repr,nrep);
# endif
}
return repr;
}
SWIGRUNTIME int
SwigPyObject_compare(SwigPyObject *v, SwigPyObject *w)
{
void *i = v->ptr;
void *j = w->ptr;
return (i < j) ? -1 : ((i > j) ? 1 : 0);
}
/* Added for Python 3.x, would it also be useful for Python 2.x? */
SWIGRUNTIME PyObject*
SwigPyObject_richcompare(SwigPyObject *v, SwigPyObject *w, int op)
{
PyObject* res;
if( op != Py_EQ && op != Py_NE ) {
Py_INCREF(Py_NotImplemented);
return Py_NotImplemented;
}
res = PyBool_FromLong( (SwigPyObject_compare(v, w)==0) == (op == Py_EQ) ? 1 : 0);
return res;
}
SWIGRUNTIME PyTypeObject* SwigPyObject_TypeOnce(void);
#ifdef SWIGPYTHON_BUILTIN
static swig_type_info *SwigPyObject_stype = 0;
SWIGRUNTIME PyTypeObject*
SwigPyObject_type(void) {
SwigPyClientData *cd;
assert(SwigPyObject_stype);
cd = (SwigPyClientData*) SwigPyObject_stype->clientdata;
assert(cd);
assert(cd->pytype);
return cd->pytype;
}
#else
SWIGRUNTIME PyTypeObject*
SwigPyObject_type(void) {
static PyTypeObject *SWIG_STATIC_POINTER(type) = SwigPyObject_TypeOnce();
return type;
}
#endif
SWIGRUNTIMEINLINE int
SwigPyObject_Check(PyObject *op) {
#ifdef SWIGPYTHON_BUILTIN
PyTypeObject *target_tp = SwigPyObject_type();
if (PyType_IsSubtype(op->ob_type, target_tp))
return 1;
return (strcmp(op->ob_type->tp_name, "SwigPyObject") == 0);
#else
return (Py_TYPE(op) == SwigPyObject_type())
|| (strcmp(Py_TYPE(op)->tp_name,"SwigPyObject") == 0);
#endif
}
SWIGRUNTIME PyObject *
SwigPyObject_New(void *ptr, swig_type_info *ty, int own);
SWIGRUNTIME void
SwigPyObject_dealloc(PyObject *v)
{
SwigPyObject *sobj = (SwigPyObject *) v;
PyObject *next = sobj->next;
if (sobj->own == SWIG_POINTER_OWN) {
swig_type_info *ty = sobj->ty;
SwigPyClientData *data = ty ? (SwigPyClientData *) ty->clientdata : 0;
PyObject *destroy = data ? data->destroy : 0;
if (destroy) {
/* destroy is always a VARARGS method */
PyObject *res;
if (data->delargs) {
/* we need to create a temporary object to carry the destroy operation */
PyObject *tmp = SwigPyObject_New(sobj->ptr, ty, 0);
res = SWIG_Python_CallFunctor(destroy, tmp);
Py_DECREF(tmp);
} else {
PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
PyObject *mself = PyCFunction_GET_SELF(destroy);
res = ((*meth)(mself, v));
}
Py_XDECREF(res);
}
#if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
else {
const char *name = SWIG_TypePrettyName(ty);
printf("swig/python detected a memory leak of type '%s', no destructor found.\n", (name ? name : "unknown"));
}
#endif
}
Py_XDECREF(next);
PyObject_DEL(v);
}
SWIGRUNTIME PyObject*
SwigPyObject_append(PyObject* v, PyObject* next)
{
SwigPyObject *sobj = (SwigPyObject *) v;
#ifndef METH_O
PyObject *tmp = 0;
if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL;
next = tmp;
#endif
if (!SwigPyObject_Check(next)) {
return NULL;
}
sobj->next = next;
Py_INCREF(next);
return SWIG_Py_Void();
}
SWIGRUNTIME PyObject*
#ifdef METH_NOARGS
SwigPyObject_next(PyObject* v)
#else
SwigPyObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
#endif
{
SwigPyObject *sobj = (SwigPyObject *) v;
if (sobj->next) {
Py_INCREF(sobj->next);
return sobj->next;
} else {
return SWIG_Py_Void();
}
}
SWIGINTERN PyObject*
#ifdef METH_NOARGS
SwigPyObject_disown(PyObject *v)
#else
SwigPyObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
#endif
{
SwigPyObject *sobj = (SwigPyObject *)v;
sobj->own = 0;
return SWIG_Py_Void();
}
SWIGINTERN PyObject*
#ifdef METH_NOARGS
SwigPyObject_acquire(PyObject *v)
#else
SwigPyObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
#endif
{
SwigPyObject *sobj = (SwigPyObject *)v;
sobj->own = SWIG_POINTER_OWN;
return SWIG_Py_Void();
}
SWIGINTERN PyObject*
SwigPyObject_own(PyObject *v, PyObject *args)
{
PyObject *val = 0;
#if (PY_VERSION_HEX < 0x02020000)
if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
#elif (PY_VERSION_HEX < 0x02050000)
if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
#else
if (!PyArg_UnpackTuple(args, "own", 0, 1, &val))
#endif
{
return NULL;
}
else
{
SwigPyObject *sobj = (SwigPyObject *)v;
PyObject *obj = PyBool_FromLong(sobj->own);
if (val) {
#ifdef METH_NOARGS
if (PyObject_IsTrue(val)) {
SwigPyObject_acquire(v);
} else {
SwigPyObject_disown(v);
}
#else
if (PyObject_IsTrue(val)) {
SwigPyObject_acquire(v,args);
} else {
SwigPyObject_disown(v,args);
}
#endif
}
return obj;
}
}
#ifdef METH_O
static PyMethodDef
swigobject_methods[] = {
{(char *)"disown", (PyCFunction)SwigPyObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"},
{(char *)"acquire", (PyCFunction)SwigPyObject_acquire, METH_NOARGS, (char *)"acquires ownership of the pointer"},
{(char *)"own", (PyCFunction)SwigPyObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
{(char *)"append", (PyCFunction)SwigPyObject_append, METH_O, (char *)"appends another 'this' object"},
{(char *)"next", (PyCFunction)SwigPyObject_next, METH_NOARGS, (char *)"returns the next 'this' object"},
{(char *)"__repr__",(PyCFunction)SwigPyObject_repr, METH_NOARGS, (char *)"returns object representation"},
{0, 0, 0, 0}
};
#else
static PyMethodDef
swigobject_methods[] = {
{(char *)"disown", (PyCFunction)SwigPyObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
{(char *)"acquire", (PyCFunction)SwigPyObject_acquire, METH_VARARGS, (char *)"acquires ownership of the pointer"},
{(char *)"own", (PyCFunction)SwigPyObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
{(char *)"append", (PyCFunction)SwigPyObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
{(char *)"next", (PyCFunction)SwigPyObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
{(char *)"__repr__",(PyCFunction)SwigPyObject_repr, METH_VARARGS, (char *)"returns object representation"},
{0, 0, 0, 0}
};
#endif
#if PY_VERSION_HEX < 0x02020000
SWIGINTERN PyObject *
SwigPyObject_getattr(SwigPyObject *sobj,char *name)
{
return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
}
#endif
SWIGRUNTIME PyTypeObject*
SwigPyObject_TypeOnce(void) {
static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
static PyNumberMethods SwigPyObject_as_number = {
(binaryfunc)0, /*nb_add*/
(binaryfunc)0, /*nb_subtract*/
(binaryfunc)0, /*nb_multiply*/
/* nb_divide removed in Python 3 */
#if PY_VERSION_HEX < 0x03000000
(binaryfunc)0, /*nb_divide*/
#endif
(binaryfunc)0, /*nb_remainder*/
(binaryfunc)0, /*nb_divmod*/
(ternaryfunc)0,/*nb_power*/
(unaryfunc)0, /*nb_negative*/
(unaryfunc)0, /*nb_positive*/
(unaryfunc)0, /*nb_absolute*/
(inquiry)0, /*nb_nonzero*/
0, /*nb_invert*/
0, /*nb_lshift*/
0, /*nb_rshift*/
0, /*nb_and*/
0, /*nb_xor*/
0, /*nb_or*/
#if PY_VERSION_HEX < 0x03000000
0, /*nb_coerce*/
#endif
(unaryfunc)SwigPyObject_long, /*nb_int*/
#if PY_VERSION_HEX < 0x03000000
(unaryfunc)SwigPyObject_long, /*nb_long*/
#else
0, /*nb_reserved*/
#endif
(unaryfunc)0, /*nb_float*/
#if PY_VERSION_HEX < 0x03000000
(unaryfunc)SwigPyObject_oct, /*nb_oct*/
(unaryfunc)SwigPyObject_hex, /*nb_hex*/
#endif
#if PY_VERSION_HEX >= 0x03000000 /* 3.0 */
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index, nb_inplace_divide removed */
#elif PY_VERSION_HEX >= 0x02050000 /* 2.5.0 */
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index */
#elif PY_VERSION_HEX >= 0x02020000 /* 2.2.0 */
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
#elif PY_VERSION_HEX >= 0x02000000 /* 2.0.0 */
0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
#endif
};
static PyTypeObject swigpyobject_type;
static int type_init = 0;
if (!type_init) {
const PyTypeObject tmp = {
/* PyObject header changed in Python 3 */
#if PY_VERSION_HEX >= 0x03000000
PyVarObject_HEAD_INIT(NULL, 0)
#else
PyObject_HEAD_INIT(NULL)
0, /* ob_size */
#endif
(char *)"SwigPyObject", /* tp_name */
sizeof(SwigPyObject), /* tp_basicsize */
0, /* tp_itemsize */
(destructor)SwigPyObject_dealloc, /* tp_dealloc */
0, /* tp_print */
#if PY_VERSION_HEX < 0x02020000
(getattrfunc)SwigPyObject_getattr, /* tp_getattr */
#else
(getattrfunc)0, /* tp_getattr */
#endif
(setattrfunc)0, /* tp_setattr */
#if PY_VERSION_HEX >= 0x03000000
0, /* tp_reserved in 3.0.1, tp_compare in 3.0.0 but not used */
#else
(cmpfunc)SwigPyObject_compare, /* tp_compare */
#endif
(reprfunc)SwigPyObject_repr, /* tp_repr */
&SwigPyObject_as_number, /* tp_as_number */
0, /* tp_as_sequence */
0, /* tp_as_mapping */
(hashfunc)0, /* tp_hash */
(ternaryfunc)0, /* tp_call */
0, /* tp_str */
PyObject_GenericGetAttr, /* tp_getattro */
0, /* tp_setattro */
0, /* tp_as_buffer */
Py_TPFLAGS_DEFAULT, /* tp_flags */
swigobject_doc, /* tp_doc */
0, /* tp_traverse */
0, /* tp_clear */
(richcmpfunc)SwigPyObject_richcompare,/* tp_richcompare */
0, /* tp_weaklistoffset */
#if PY_VERSION_HEX >= 0x02020000
0, /* tp_iter */
0, /* tp_iternext */
swigobject_methods, /* tp_methods */
0, /* tp_members */
0, /* tp_getset */
0, /* tp_base */
0, /* tp_dict */
0, /* tp_descr_get */
0, /* tp_descr_set */
0, /* tp_dictoffset */
0, /* tp_init */
0, /* tp_alloc */
0, /* tp_new */
0, /* tp_free */
0, /* tp_is_gc */
0, /* tp_bases */
0, /* tp_mro */
0, /* tp_cache */
0, /* tp_subclasses */
0, /* tp_weaklist */
#endif
#if PY_VERSION_HEX >= 0x02030000
0, /* tp_del */
#endif
#if PY_VERSION_HEX >= 0x02060000
0, /* tp_version */
#endif
#ifdef COUNT_ALLOCS
0,0,0,0 /* tp_alloc -> tp_next */
#endif
};
swigpyobject_type = tmp;
type_init = 1;
#if PY_VERSION_HEX < 0x02020000
swigpyobject_type.ob_type = &PyType_Type;
#else
if (PyType_Ready(&swigpyobject_type) < 0)
return NULL;
#endif
}
return &swigpyobject_type;
}
SWIGRUNTIME PyObject *
SwigPyObject_New(void *ptr, swig_type_info *ty, int own)
{
SwigPyObject *sobj = PyObject_NEW(SwigPyObject, SwigPyObject_type());
if (sobj) {
sobj->ptr = ptr;
sobj->ty = ty;
sobj->own = own;
sobj->next = 0;
}
return (PyObject *)sobj;
}
/* -----------------------------------------------------------------------------
* Implements a simple Swig Packed type, and use it instead of string
* ----------------------------------------------------------------------------- */
typedef struct {
PyObject_HEAD
void *pack;
swig_type_info *ty;
size_t size;
} SwigPyPacked;
SWIGRUNTIME int
SwigPyPacked_print(SwigPyPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
{
char result[SWIG_BUFFER_SIZE];
fputs("<Swig Packed ", fp);
if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
fputs("at ", fp);
fputs(result, fp);
}
fputs(v->ty->name,fp);
fputs(">", fp);
return 0;
}
SWIGRUNTIME PyObject *
SwigPyPacked_repr(SwigPyPacked *v)
{
char result[SWIG_BUFFER_SIZE];
if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
return SWIG_Python_str_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
} else {
return SWIG_Python_str_FromFormat("<Swig Packed %s>", v->ty->name);
}
}
SWIGRUNTIME PyObject *
SwigPyPacked_str(SwigPyPacked *v)
{
char result[SWIG_BUFFER_SIZE];
if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
return SWIG_Python_str_FromFormat("%s%s", result, v->ty->name);
} else {
return SWIG_Python_str_FromChar(v->ty->name);
}
}
SWIGRUNTIME int
SwigPyPacked_compare(SwigPyPacked *v, SwigPyPacked *w)
{
size_t i = v->size;
size_t j = w->size;
int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
}
SWIGRUNTIME PyTypeObject* SwigPyPacked_TypeOnce(void);
SWIGRUNTIME PyTypeObject*
SwigPyPacked_type(void) {
static PyTypeObject *SWIG_STATIC_POINTER(type) = SwigPyPacked_TypeOnce();
return type;
}
SWIGRUNTIMEINLINE int
SwigPyPacked_Check(PyObject *op) {
return ((op)->ob_type == SwigPyPacked_TypeOnce())
|| (strcmp((op)->ob_type->tp_name,"SwigPyPacked") == 0);
}
SWIGRUNTIME void
SwigPyPacked_dealloc(PyObject *v)
{
if (SwigPyPacked_Check(v)) {
SwigPyPacked *sobj = (SwigPyPacked *) v;
free(sobj->pack);
}
PyObject_DEL(v);
}
SWIGRUNTIME PyTypeObject*
SwigPyPacked_TypeOnce(void) {
static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
static PyTypeObject swigpypacked_type;
static int type_init = 0;
if (!type_init) {
const PyTypeObject tmp = {
/* PyObject header changed in Python 3 */
#if PY_VERSION_HEX>=0x03000000
PyVarObject_HEAD_INIT(NULL, 0)
#else
PyObject_HEAD_INIT(NULL)
0, /* ob_size */
#endif
(char *)"SwigPyPacked", /* tp_name */
sizeof(SwigPyPacked), /* tp_basicsize */
0, /* tp_itemsize */
(destructor)SwigPyPacked_dealloc, /* tp_dealloc */
(printfunc)SwigPyPacked_print, /* tp_print */
(getattrfunc)0, /* tp_getattr */
(setattrfunc)0, /* tp_setattr */
#if PY_VERSION_HEX>=0x03000000
0, /* tp_reserved in 3.0.1 */
#else
(cmpfunc)SwigPyPacked_compare, /* tp_compare */
#endif
(reprfunc)SwigPyPacked_repr, /* tp_repr */
0, /* tp_as_number */
0, /* tp_as_sequence */
0, /* tp_as_mapping */
(hashfunc)0, /* tp_hash */
(ternaryfunc)0, /* tp_call */
(reprfunc)SwigPyPacked_str, /* tp_str */
PyObject_GenericGetAttr, /* tp_getattro */
0, /* tp_setattro */
0, /* tp_as_buffer */
Py_TPFLAGS_DEFAULT, /* tp_flags */
swigpacked_doc, /* tp_doc */
0, /* tp_traverse */
0, /* tp_clear */
0, /* tp_richcompare */
0, /* tp_weaklistoffset */
#if PY_VERSION_HEX >= 0x02020000
0, /* tp_iter */
0, /* tp_iternext */
0, /* tp_methods */
0, /* tp_members */
0, /* tp_getset */
0, /* tp_base */
0, /* tp_dict */
0, /* tp_descr_get */
0, /* tp_descr_set */
0, /* tp_dictoffset */
0, /* tp_init */
0, /* tp_alloc */
0, /* tp_new */
0, /* tp_free */
0, /* tp_is_gc */
0, /* tp_bases */
0, /* tp_mro */
0, /* tp_cache */
0, /* tp_subclasses */
0, /* tp_weaklist */
#endif
#if PY_VERSION_HEX >= 0x02030000
0, /* tp_del */
#endif
#if PY_VERSION_HEX >= 0x02060000
0, /* tp_version */
#endif
#ifdef COUNT_ALLOCS
0,0,0,0 /* tp_alloc -> tp_next */
#endif
};
swigpypacked_type = tmp;
type_init = 1;
#if PY_VERSION_HEX < 0x02020000
swigpypacked_type.ob_type = &PyType_Type;
#else
if (PyType_Ready(&swigpypacked_type) < 0)
return NULL;
#endif
}
return &swigpypacked_type;
}
SWIGRUNTIME PyObject *
SwigPyPacked_New(void *ptr, size_t size, swig_type_info *ty)
{
SwigPyPacked *sobj = PyObject_NEW(SwigPyPacked, SwigPyPacked_type());
if (sobj) {
void *pack = malloc(size);
if (pack) {
memcpy(pack, ptr, size);
sobj->pack = pack;
sobj->ty = ty;
sobj->size = size;
} else {
PyObject_DEL((PyObject *) sobj);
sobj = 0;
}
}
return (PyObject *) sobj;
}
SWIGRUNTIME swig_type_info *
SwigPyPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
{
if (SwigPyPacked_Check(obj)) {
SwigPyPacked *sobj = (SwigPyPacked *)obj;
if (sobj->size != size) return 0;
memcpy(ptr, sobj->pack, size);
return sobj->ty;
} else {
return 0;
}
}
/* -----------------------------------------------------------------------------
* pointers/data manipulation
* ----------------------------------------------------------------------------- */
SWIGRUNTIMEINLINE PyObject *
_SWIG_This(void)
{
return SWIG_Python_str_FromChar("this");
}
static PyObject *swig_this = NULL;
SWIGRUNTIME PyObject *
SWIG_This(void)
{
if (swig_this == NULL)
swig_this = _SWIG_This();
return swig_this;
}
/* #define SWIG_PYTHON_SLOW_GETSET_THIS */
/* TODO: I don't know how to implement the fast getset in Python 3 right now */
#if PY_VERSION_HEX>=0x03000000
#define SWIG_PYTHON_SLOW_GETSET_THIS
#endif
SWIGRUNTIME SwigPyObject *
SWIG_Python_GetSwigThis(PyObject *pyobj)
{
PyObject *obj;
if (SwigPyObject_Check(pyobj))
return (SwigPyObject *) pyobj;
#ifdef SWIGPYTHON_BUILTIN
(void)obj;
# ifdef PyWeakref_CheckProxy
if (PyWeakref_CheckProxy(pyobj)) {
pyobj = PyWeakref_GET_OBJECT(pyobj);
if (pyobj && SwigPyObject_Check(pyobj))
return (SwigPyObject*) pyobj;
}
# endif
return NULL;
#else
obj = 0;
#if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
if (PyInstance_Check(pyobj)) {
obj = _PyInstance_Lookup(pyobj, SWIG_This());
} else {
PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
if (dictptr != NULL) {
PyObject *dict = *dictptr;
obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
} else {
#ifdef PyWeakref_CheckProxy
if (PyWeakref_CheckProxy(pyobj)) {
PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
}
#endif
obj = PyObject_GetAttr(pyobj,SWIG_This());
if (obj) {
Py_DECREF(obj);
} else {
if (PyErr_Occurred()) PyErr_Clear();
return 0;
}
}
}
#else
obj = PyObject_GetAttr(pyobj,SWIG_This());
if (obj) {
Py_DECREF(obj);
} else {
if (PyErr_Occurred()) PyErr_Clear();
return 0;
}
#endif
if (obj && !SwigPyObject_Check(obj)) {
/* a PyObject is called 'this', try to get the 'real this'
SwigPyObject from it */
return SWIG_Python_GetSwigThis(obj);
}
return (SwigPyObject *)obj;
#endif
}
/* Acquire a pointer value */
SWIGRUNTIME int
SWIG_Python_AcquirePtr(PyObject *obj, int own) {
if (own == SWIG_POINTER_OWN) {
SwigPyObject *sobj = SWIG_Python_GetSwigThis(obj);
if (sobj) {
int oldown = sobj->own;
sobj->own = own;
return oldown;
}
}
return 0;
}
/* Convert a pointer value */
SWIGRUNTIME int
SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
int res;
SwigPyObject *sobj;
int implicit_conv = (flags & SWIG_POINTER_IMPLICIT_CONV) != 0;
if (!obj)
return SWIG_ERROR;
if (obj == Py_None && !implicit_conv) {
if (ptr)
*ptr = 0;
return SWIG_OK;
}
res = SWIG_ERROR;
sobj = SWIG_Python_GetSwigThis(obj);
if (own)
*own = 0;
while (sobj) {
void *vptr = sobj->ptr;
if (ty) {
swig_type_info *to = sobj->ty;
if (to == ty) {
/* no type cast needed */
if (ptr) *ptr = vptr;
break;
} else {
swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
if (!tc) {
sobj = (SwigPyObject *)sobj->next;
} else {
if (ptr) {
int newmemory = 0;
*ptr = SWIG_TypeCast(tc,vptr,&newmemory);
if (newmemory == SWIG_CAST_NEW_MEMORY) {
assert(own); /* badly formed typemap which will lead to a memory leak - it must set and use own to delete *ptr */
if (own)
*own = *own | SWIG_CAST_NEW_MEMORY;
}
}
break;
}
}
} else {
if (ptr) *ptr = vptr;
break;
}
}
if (sobj) {
if (own)
*own = *own | sobj->own;
if (flags & SWIG_POINTER_DISOWN) {
sobj->own = 0;
}
res = SWIG_OK;
} else {
if (implicit_conv) {
SwigPyClientData *data = ty ? (SwigPyClientData *) ty->clientdata : 0;
if (data && !data->implicitconv) {
PyObject *klass = data->klass;
if (klass) {
PyObject *impconv;
data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
impconv = SWIG_Python_CallFunctor(klass, obj);
data->implicitconv = 0;
if (PyErr_Occurred()) {
PyErr_Clear();
impconv = 0;
}
if (impconv) {
SwigPyObject *iobj = SWIG_Python_GetSwigThis(impconv);
if (iobj) {
void *vptr;
res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
if (SWIG_IsOK(res)) {
if (ptr) {
*ptr = vptr;
/* transfer the ownership to 'ptr' */
iobj->own = 0;
res = SWIG_AddCast(res);
res = SWIG_AddNewMask(res);
} else {
res = SWIG_AddCast(res);
}
}
}
Py_DECREF(impconv);
}
}
}
}
if (!SWIG_IsOK(res) && obj == Py_None) {
if (ptr)
*ptr = 0;
if (PyErr_Occurred())
PyErr_Clear();
res = SWIG_OK;
}
}
return res;
}
/* Convert a function ptr value */
SWIGRUNTIME int
SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
if (!PyCFunction_Check(obj)) {
return SWIG_ConvertPtr(obj, ptr, ty, 0);
} else {
void *vptr = 0;
/* here we get the method pointer for callbacks */
const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
if (desc)
desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
if (!desc)
return SWIG_ERROR;
if (ty) {
swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
if (tc) {
int newmemory = 0;
*ptr = SWIG_TypeCast(tc,vptr,&newmemory);
assert(!newmemory); /* newmemory handling not yet implemented */
} else {
return SWIG_ERROR;
}
} else {
*ptr = vptr;
}
return SWIG_OK;
}
}
/* Convert a packed value value */
SWIGRUNTIME int
SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
swig_type_info *to = SwigPyPacked_UnpackData(obj, ptr, sz);
if (!to) return SWIG_ERROR;
if (ty) {
if (to != ty) {
/* check type cast? */
swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
if (!tc) return SWIG_ERROR;
}
}
return SWIG_OK;
}
/* -----------------------------------------------------------------------------
* Create a new pointer object
* ----------------------------------------------------------------------------- */
/*
Create a new instance object, without calling __init__, and set the
'this' attribute.
*/
SWIGRUNTIME PyObject*
SWIG_Python_NewShadowInstance(SwigPyClientData *data, PyObject *swig_this)
{
#if (PY_VERSION_HEX >= 0x02020000)
PyObject *inst = 0;
PyObject *newraw = data->newraw;
if (newraw) {
inst = PyObject_Call(newraw, data->newargs, NULL);
if (inst) {
#if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
PyObject **dictptr = _PyObject_GetDictPtr(inst);
if (dictptr != NULL) {
PyObject *dict = *dictptr;
if (dict == NULL) {
dict = PyDict_New();
*dictptr = dict;
PyDict_SetItem(dict, SWIG_This(), swig_this);
}
}
#else
PyObject *key = SWIG_This();
PyObject_SetAttr(inst, key, swig_this);
#endif
}
} else {
#if PY_VERSION_HEX >= 0x03000000
inst = ((PyTypeObject*) data->newargs)->tp_new((PyTypeObject*) data->newargs, Py_None, Py_None);
if (inst) {
PyObject_SetAttr(inst, SWIG_This(), swig_this);
Py_TYPE(inst)->tp_flags &= ~Py_TPFLAGS_VALID_VERSION_TAG;
}
#else
PyObject *dict = PyDict_New();
if (dict) {
PyDict_SetItem(dict, SWIG_This(), swig_this);
inst = PyInstance_NewRaw(data->newargs, dict);
Py_DECREF(dict);
}
#endif
}
return inst;
#else
#if (PY_VERSION_HEX >= 0x02010000)
PyObject *inst = 0;
PyObject *dict = PyDict_New();
if (dict) {
PyDict_SetItem(dict, SWIG_This(), swig_this);
inst = PyInstance_NewRaw(data->newargs, dict);
Py_DECREF(dict);
}
return (PyObject *) inst;
#else
PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
if (inst == NULL) {
return NULL;
}
inst->in_class = (PyClassObject *)data->newargs;
Py_INCREF(inst->in_class);
inst->in_dict = PyDict_New();
if (inst->in_dict == NULL) {
Py_DECREF(inst);
return NULL;
}
#ifdef Py_TPFLAGS_HAVE_WEAKREFS
inst->in_weakreflist = NULL;
#endif
#ifdef Py_TPFLAGS_GC
PyObject_GC_Init(inst);
#endif
PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
return (PyObject *) inst;
#endif
#endif
}
SWIGRUNTIME void
SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
{
PyObject *dict;
#if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
PyObject **dictptr = _PyObject_GetDictPtr(inst);
if (dictptr != NULL) {
dict = *dictptr;
if (dict == NULL) {
dict = PyDict_New();
*dictptr = dict;
}
PyDict_SetItem(dict, SWIG_This(), swig_this);
return;
}
#endif
dict = PyObject_GetAttrString(inst, (char*)"__dict__");
PyDict_SetItem(dict, SWIG_This(), swig_this);
Py_DECREF(dict);
}
SWIGINTERN PyObject *
SWIG_Python_InitShadowInstance(PyObject *args) {
PyObject *obj[2];
if (!SWIG_Python_UnpackTuple(args, "swiginit", 2, 2, obj)) {
return NULL;
} else {
SwigPyObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
if (sthis) {
SwigPyObject_append((PyObject*) sthis, obj[1]);
} else {
SWIG_Python_SetSwigThis(obj[0], obj[1]);
}
return SWIG_Py_Void();
}
}
/* Create a new pointer object */
SWIGRUNTIME PyObject *
SWIG_Python_NewPointerObj(PyObject *self, void *ptr, swig_type_info *type, int flags) {
SwigPyClientData *clientdata;
PyObject * robj;
int own;
if (!ptr)
return SWIG_Py_Void();
clientdata = type ? (SwigPyClientData *)(type->clientdata) : 0;
own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
if (clientdata && clientdata->pytype) {
SwigPyObject *newobj;
if (flags & SWIG_BUILTIN_TP_INIT) {
newobj = (SwigPyObject*) self;
if (newobj->ptr) {
PyObject *next_self = clientdata->pytype->tp_alloc(clientdata->pytype, 0);
while (newobj->next)
newobj = (SwigPyObject *) newobj->next;
newobj->next = next_self;
newobj = (SwigPyObject *)next_self;
#ifdef SWIGPYTHON_BUILTIN
newobj->dict = 0;
#endif
}
} else {
newobj = PyObject_New(SwigPyObject, clientdata->pytype);
#ifdef SWIGPYTHON_BUILTIN
newobj->dict = 0;
#endif
}
if (newobj) {
newobj->ptr = ptr;
newobj->ty = type;
newobj->own = own;
newobj->next = 0;
return (PyObject*) newobj;
}
return SWIG_Py_Void();
}
assert(!(flags & SWIG_BUILTIN_TP_INIT));
robj = SwigPyObject_New(ptr, type, own);
if (robj && clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
Py_DECREF(robj);
robj = inst;
}
return robj;
}
/* Create a new packed object */
SWIGRUNTIMEINLINE PyObject *
SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
return ptr ? SwigPyPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
}
/* -----------------------------------------------------------------------------*
* Get type list
* -----------------------------------------------------------------------------*/
#ifdef SWIG_LINK_RUNTIME
void *SWIG_ReturnGlobalTypeList(void *);
#endif
SWIGRUNTIME swig_module_info *
SWIG_Python_GetModule(void *SWIGUNUSEDPARM(clientdata)) {
static void *type_pointer = (void *)0;
/* first check if module already created */
if (!type_pointer) {
#ifdef SWIG_LINK_RUNTIME
type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
#else
# ifdef SWIGPY_USE_CAPSULE
type_pointer = PyCapsule_Import(SWIGPY_CAPSULE_NAME, 0);
# else
type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
(char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
# endif
if (PyErr_Occurred()) {
PyErr_Clear();
type_pointer = (void *)0;
}
#endif
}
return (swig_module_info *) type_pointer;
}
#if PY_MAJOR_VERSION < 2
/* PyModule_AddObject function was introduced in Python 2.0. The following function
is copied out of Python/modsupport.c in python version 2.3.4 */
SWIGINTERN int
PyModule_AddObject(PyObject *m, char *name, PyObject *o)
{
PyObject *dict;
if (!PyModule_Check(m)) {
PyErr_SetString(PyExc_TypeError,
"PyModule_AddObject() needs module as first arg");
return SWIG_ERROR;
}
if (!o) {
PyErr_SetString(PyExc_TypeError,
"PyModule_AddObject() needs non-NULL value");
return SWIG_ERROR;
}
dict = PyModule_GetDict(m);
if (dict == NULL) {
/* Internal error -- modules must have a dict! */
PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
PyModule_GetName(m));
return SWIG_ERROR;
}
if (PyDict_SetItemString(dict, name, o))
return SWIG_ERROR;
Py_DECREF(o);
return SWIG_OK;
}
#endif
SWIGRUNTIME void
#ifdef SWIGPY_USE_CAPSULE
SWIG_Python_DestroyModule(PyObject *obj)
#else
SWIG_Python_DestroyModule(void *vptr)
#endif
{
#ifdef SWIGPY_USE_CAPSULE
swig_module_info *swig_module = (swig_module_info *) PyCapsule_GetPointer(obj, SWIGPY_CAPSULE_NAME);
#else
swig_module_info *swig_module = (swig_module_info *) vptr;
#endif
swig_type_info **types = swig_module->types;
size_t i;
for (i =0; i < swig_module->size; ++i) {
swig_type_info *ty = types[i];
if (ty->owndata) {
SwigPyClientData *data = (SwigPyClientData *) ty->clientdata;
if (data) SwigPyClientData_Del(data);
}
}
Py_DECREF(SWIG_This());
swig_this = NULL;
}
SWIGRUNTIME void
SWIG_Python_SetModule(swig_module_info *swig_module) {
#if PY_VERSION_HEX >= 0x03000000
/* Add a dummy module object into sys.modules */
PyObject *module = PyImport_AddModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION);
#else
static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} }; /* Sentinel */
PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, swig_empty_runtime_method_table);
#endif
#ifdef SWIGPY_USE_CAPSULE
PyObject *pointer = PyCapsule_New((void *) swig_module, SWIGPY_CAPSULE_NAME, SWIG_Python_DestroyModule);
if (pointer && module) {
PyModule_AddObject(module, (char*)"type_pointer_capsule" SWIG_TYPE_TABLE_NAME, pointer);
} else {
Py_XDECREF(pointer);
}
#else
PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
if (pointer && module) {
PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
} else {
Py_XDECREF(pointer);
}
#endif
}
/* The python cached type query */
SWIGRUNTIME PyObject *
SWIG_Python_TypeCache(void) {
static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
return cache;
}
SWIGRUNTIME swig_type_info *
SWIG_Python_TypeQuery(const char *type)
{
PyObject *cache = SWIG_Python_TypeCache();
PyObject *key = SWIG_Python_str_FromChar(type);
PyObject *obj = PyDict_GetItem(cache, key);
swig_type_info *descriptor;
if (obj) {
#ifdef SWIGPY_USE_CAPSULE
descriptor = (swig_type_info *) PyCapsule_GetPointer(obj, NULL);
#else
descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
#endif
} else {
swig_module_info *swig_module = SWIG_GetModule(0);
descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
if (descriptor) {
#ifdef SWIGPY_USE_CAPSULE
obj = PyCapsule_New((void*) descriptor, NULL, NULL);
#else
obj = PyCObject_FromVoidPtr(descriptor, NULL);
#endif
PyDict_SetItem(cache, key, obj);
Py_DECREF(obj);
}
}
Py_DECREF(key);
return descriptor;
}
/*
For backward compatibility only
*/
#define SWIG_POINTER_EXCEPTION 0
#define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
#define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
SWIGRUNTIME int
SWIG_Python_AddErrMesg(const char* mesg, int infront)
{
if (PyErr_Occurred()) {
PyObject *type = 0;
PyObject *value = 0;
PyObject *traceback = 0;
PyErr_Fetch(&type, &value, &traceback);
if (value) {
char *tmp;
PyObject *old_str = PyObject_Str(value);
Py_XINCREF(type);
PyErr_Clear();
if (infront) {
PyErr_Format(type, "%s %s", mesg, tmp = SWIG_Python_str_AsChar(old_str));
} else {
PyErr_Format(type, "%s %s", tmp = SWIG_Python_str_AsChar(old_str), mesg);
}
SWIG_Python_str_DelForPy3(tmp);
Py_DECREF(old_str);
}
return 1;
} else {
return 0;
}
}
SWIGRUNTIME int
SWIG_Python_ArgFail(int argnum)
{
if (PyErr_Occurred()) {
/* add information about failing argument */
char mesg[256];
PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
return SWIG_Python_AddErrMesg(mesg, 1);
} else {
return 0;
}
}
SWIGRUNTIMEINLINE const char *
SwigPyObject_GetDesc(PyObject *self)
{
SwigPyObject *v = (SwigPyObject *)self;
swig_type_info *ty = v ? v->ty : 0;
return ty ? ty->str : "";
}
SWIGRUNTIME void
SWIG_Python_TypeError(const char *type, PyObject *obj)
{
if (type) {
#if defined(SWIG_COBJECT_TYPES)
if (obj && SwigPyObject_Check(obj)) {
const char *otype = (const char *) SwigPyObject_GetDesc(obj);
if (otype) {
PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'SwigPyObject(%s)' is received",
type, otype);
return;
}
} else
#endif
{
const char *otype = (obj ? obj->ob_type->tp_name : 0);
if (otype) {
PyObject *str = PyObject_Str(obj);
const char *cstr = str ? SWIG_Python_str_AsChar(str) : 0;
if (cstr) {
PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
type, otype, cstr);
SWIG_Python_str_DelForPy3(cstr);
} else {
PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
type, otype);
}
Py_XDECREF(str);
return;
}
}
PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
} else {
PyErr_Format(PyExc_TypeError, "unexpected type is received");
}
}
/* Convert a pointer value, signal an exception on a type mismatch */
SWIGRUNTIME void *
SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int SWIGUNUSEDPARM(argnum), int flags) {
void *result;
if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
PyErr_Clear();
#if SWIG_POINTER_EXCEPTION
if (flags) {
SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
SWIG_Python_ArgFail(argnum);
}
#endif
}
return result;
}
#ifdef SWIGPYTHON_BUILTIN
SWIGRUNTIME int
SWIG_Python_NonDynamicSetAttr(PyObject *obj, PyObject *name, PyObject *value) {
PyTypeObject *tp = obj->ob_type;
PyObject *descr;
PyObject *encoded_name;
descrsetfunc f;
int res = -1;
# ifdef Py_USING_UNICODE
if (PyString_Check(name)) {
name = PyUnicode_Decode(PyString_AsString(name), PyString_Size(name), NULL, NULL);
if (!name)
return -1;
} else if (!PyUnicode_Check(name))
# else
if (!PyString_Check(name))
# endif
{
PyErr_Format(PyExc_TypeError, "attribute name must be string, not '%.200s'", name->ob_type->tp_name);
return -1;
} else {
Py_INCREF(name);
}
if (!tp->tp_dict) {
if (PyType_Ready(tp) < 0)
goto done;
}
descr = _PyType_Lookup(tp, name);
f = NULL;
if (descr != NULL)
f = descr->ob_type->tp_descr_set;
if (!f) {
if (PyString_Check(name)) {
encoded_name = name;
Py_INCREF(name);
} else {
encoded_name = PyUnicode_AsUTF8String(name);
}
PyErr_Format(PyExc_AttributeError, "'%.100s' object has no attribute '%.200s'", tp->tp_name, PyString_AsString(encoded_name));
Py_DECREF(encoded_name);
} else {
res = f(descr, obj, value);
}
done:
Py_DECREF(name);
return res;
}
#endif
#ifdef __cplusplus
}
#endif
#define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
#define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
/* -----------------------------------------------------------------------------
* director_common.swg
*
* This file contains support for director classes which is common between
* languages.
* ----------------------------------------------------------------------------- */
/*
Use -DSWIG_DIRECTOR_STATIC if you prefer to avoid the use of the
'Swig' namespace. This could be useful for multi-modules projects.
*/
#ifdef SWIG_DIRECTOR_STATIC
/* Force anonymous (static) namespace */
#define Swig
#endif
/* -----------------------------------------------------------------------------
* director.swg
*
* This file contains support for director classes so that Python proxy
* methods can be called from C++.
* ----------------------------------------------------------------------------- */
#ifndef SWIG_DIRECTOR_PYTHON_HEADER_
#define SWIG_DIRECTOR_PYTHON_HEADER_
#include <string>
#include <iostream>
#include <exception>
#include <vector>
#include <map>
/*
Use -DSWIG_PYTHON_DIRECTOR_NO_VTABLE if you don't want to generate a 'virtual
table', and avoid multiple GetAttr calls to retrieve the python
methods.
*/
#ifndef SWIG_PYTHON_DIRECTOR_NO_VTABLE
#ifndef SWIG_PYTHON_DIRECTOR_VTABLE
#define SWIG_PYTHON_DIRECTOR_VTABLE
#endif
#endif
/*
Use -DSWIG_DIRECTOR_NO_UEH if you prefer to avoid the use of the
Undefined Exception Handler provided by swig.
*/
#ifndef SWIG_DIRECTOR_NO_UEH
#ifndef SWIG_DIRECTOR_UEH
#define SWIG_DIRECTOR_UEH
#endif
#endif
/*
Use -DSWIG_DIRECTOR_NORTTI if you prefer to avoid the use of the
native C++ RTTI and dynamic_cast<>. But be aware that directors
could stop working when using this option.
*/
#ifdef SWIG_DIRECTOR_NORTTI
/*
When we don't use the native C++ RTTI, we implement a minimal one
only for Directors.
*/
# ifndef SWIG_DIRECTOR_RTDIR
# define SWIG_DIRECTOR_RTDIR
namespace Swig {
class Director;
SWIGINTERN std::map<void *, Director *>& get_rtdir_map() {
static std::map<void *, Director *> rtdir_map;
return rtdir_map;
}
SWIGINTERNINLINE void set_rtdir(void *vptr, Director *rtdir) {
get_rtdir_map()[vptr] = rtdir;
}
SWIGINTERNINLINE Director *get_rtdir(void *vptr) {
std::map<void *, Director *>::const_iterator pos = get_rtdir_map().find(vptr);
Director *rtdir = (pos != get_rtdir_map().end()) ? pos->second : 0;
return rtdir;
}
}
# endif /* SWIG_DIRECTOR_RTDIR */
# define SWIG_DIRECTOR_CAST(ARG) Swig::get_rtdir(static_cast<void *>(ARG))
# define SWIG_DIRECTOR_RGTR(ARG1, ARG2) Swig::set_rtdir(static_cast<void *>(ARG1), ARG2)
#else
# define SWIG_DIRECTOR_CAST(ARG) dynamic_cast<Swig::Director *>(ARG)
# define SWIG_DIRECTOR_RGTR(ARG1, ARG2)
#endif /* SWIG_DIRECTOR_NORTTI */
extern "C" {
struct swig_type_info;
}
namespace Swig {
/* memory handler */
struct GCItem {
virtual ~GCItem() {}
virtual int get_own() const {
return 0;
}
};
struct GCItem_var {
GCItem_var(GCItem *item = 0) : _item(item) {
}
GCItem_var& operator=(GCItem *item) {
GCItem *tmp = _item;
_item = item;
delete tmp;
return *this;
}
~GCItem_var() {
delete _item;
}
GCItem * operator->() const {
return _item;
}
private:
GCItem *_item;
};
struct GCItem_Object : GCItem {
GCItem_Object(int own) : _own(own) {
}
virtual ~GCItem_Object() {
}
int get_own() const {
return _own;
}
private:
int _own;
};
template <typename Type>
struct GCItem_T : GCItem {
GCItem_T(Type *ptr) : _ptr(ptr) {
}
virtual ~GCItem_T() {
delete _ptr;
}
private:
Type *_ptr;
};
template <typename Type>
struct GCArray_T : GCItem {
GCArray_T(Type *ptr) : _ptr(ptr) {
}
virtual ~GCArray_T() {
delete[] _ptr;
}
private:
Type *_ptr;
};
/* base class for director exceptions */
class DirectorException : public std::exception {
protected:
std::string swig_msg;
public:
DirectorException(PyObject *error, const char *hdr ="", const char *msg ="") : swig_msg(hdr) {
SWIG_PYTHON_THREAD_BEGIN_BLOCK;
if (msg[0]) {
swig_msg += " ";
swig_msg += msg;
}
if (!PyErr_Occurred()) {
PyErr_SetString(error, what());
}
SWIG_PYTHON_THREAD_END_BLOCK;
}
virtual ~DirectorException() throw() {
}
/* Deprecated, use what() instead */
const char *getMessage() const {
return what();
}
const char *what() const throw() {
return swig_msg.c_str();
}
static void raise(PyObject *error, const char *msg) {
throw DirectorException(error, msg);
}
static void raise(const char *msg) {
raise(PyExc_RuntimeError, msg);
}
};
/* unknown exception handler */
class UnknownExceptionHandler {
#ifdef SWIG_DIRECTOR_UEH
static void handler() {
try {
throw;
} catch (DirectorException& e) {
std::cerr << "SWIG Director exception caught:" << std::endl
<< e.what() << std::endl;
} catch (std::exception& e) {
std::cerr << "std::exception caught: "<< e.what() << std::endl;
} catch (...) {
std::cerr << "Unknown exception caught." << std::endl;
}
std::cerr << std::endl
<< "Python interpreter traceback:" << std::endl;
PyErr_Print();
std::cerr << std::endl;
std::cerr << "This exception was caught by the SWIG unexpected exception handler." << std::endl
<< "Try using %feature(\"director:except\") to avoid reaching this point." << std::endl
<< std::endl
<< "Exception is being re-thrown, program will likely abort/terminate." << std::endl;
throw;
}
public:
std::unexpected_handler old;
UnknownExceptionHandler(std::unexpected_handler nh = handler) {
old = std::set_unexpected(nh);
}
~UnknownExceptionHandler() {
std::set_unexpected(old);
}
#endif
};
/* type mismatch in the return value from a python method call */
class DirectorTypeMismatchException : public DirectorException {
public:
DirectorTypeMismatchException(PyObject *error, const char *msg="")
: DirectorException(error, "SWIG director type mismatch", msg) {
}
DirectorTypeMismatchException(const char *msg="")
: DirectorException(PyExc_TypeError, "SWIG director type mismatch", msg) {
}
static void raise(PyObject *error, const char *msg) {
throw DirectorTypeMismatchException(error, msg);
}
static void raise(const char *msg) {
throw DirectorTypeMismatchException(msg);
}
};
/* any python exception that occurs during a director method call */
class DirectorMethodException : public DirectorException {
public:
DirectorMethodException(const char *msg = "")
: DirectorException(PyExc_RuntimeError, "SWIG director method error.", msg) {
}
static void raise(const char *msg) {
throw DirectorMethodException(msg);
}
};
/* attempt to call a pure virtual method via a director method */
class DirectorPureVirtualException : public DirectorException {
public:
DirectorPureVirtualException(const char *msg = "")
: DirectorException(PyExc_RuntimeError, "SWIG director pure virtual method called", msg) {
}
static void raise(const char *msg) {
throw DirectorPureVirtualException(msg);
}
};
#if defined(SWIG_PYTHON_THREADS)
/* __THREAD__ is the old macro to activate some thread support */
# if !defined(__THREAD__)
# define __THREAD__ 1
# endif
#endif
#ifdef __THREAD__
# include "pythread.h"
class Guard {
PyThread_type_lock &mutex_;
public:
Guard(PyThread_type_lock & mutex) : mutex_(mutex) {
PyThread_acquire_lock(mutex_, WAIT_LOCK);
}
~Guard() {
PyThread_release_lock(mutex_);
}
};
# define SWIG_GUARD(mutex) Guard _guard(mutex)
#else
# define SWIG_GUARD(mutex)
#endif
/* director base class */
class Director {
private:
/* pointer to the wrapped python object */
PyObject *swig_self;
/* flag indicating whether the object is owned by python or c++ */
mutable bool swig_disown_flag;
/* decrement the reference count of the wrapped python object */
void swig_decref() const {
if (swig_disown_flag) {
SWIG_PYTHON_THREAD_BEGIN_BLOCK;
Py_DECREF(swig_self);
SWIG_PYTHON_THREAD_END_BLOCK;
}
}
public:
/* wrap a python object. */
Director(PyObject *self) : swig_self(self), swig_disown_flag(false) {
}
/* discard our reference at destruction */
virtual ~Director() {
swig_decref();
}
/* return a pointer to the wrapped python object */
PyObject *swig_get_self() const {
return swig_self;
}
/* acquire ownership of the wrapped python object (the sense of "disown" is from python) */
void swig_disown() const {
if (!swig_disown_flag) {
swig_disown_flag=true;
swig_incref();
}
}
/* increase the reference count of the wrapped python object */
void swig_incref() const {
if (swig_disown_flag) {
Py_INCREF(swig_self);
}
}
/* methods to implement pseudo protected director members */
virtual bool swig_get_inner(const char * /* swig_protected_method_name */) const {
return true;
}
virtual void swig_set_inner(const char * /* swig_protected_method_name */, bool /* swig_val */) const {
}
/* ownership management */
private:
typedef std::map<void *, GCItem_var> swig_ownership_map;
mutable swig_ownership_map swig_owner;
#ifdef __THREAD__
static PyThread_type_lock swig_mutex_own;
#endif
public:
template <typename Type>
void swig_acquire_ownership_array(Type *vptr) const {
if (vptr) {
SWIG_GUARD(swig_mutex_own);
swig_owner[vptr] = new GCArray_T<Type>(vptr);
}
}
template <typename Type>
void swig_acquire_ownership(Type *vptr) const {
if (vptr) {
SWIG_GUARD(swig_mutex_own);
swig_owner[vptr] = new GCItem_T<Type>(vptr);
}
}
void swig_acquire_ownership_obj(void *vptr, int own) const {
if (vptr && own) {
SWIG_GUARD(swig_mutex_own);
swig_owner[vptr] = new GCItem_Object(own);
}
}
int swig_release_ownership(void *vptr) const {
int own = 0;
if (vptr) {
SWIG_GUARD(swig_mutex_own);
swig_ownership_map::iterator iter = swig_owner.find(vptr);
if (iter != swig_owner.end()) {
own = iter->second->get_own();
swig_owner.erase(iter);
}
}
return own;
}
template <typename Type>
static PyObject *swig_pyobj_disown(PyObject *pyobj, PyObject *SWIGUNUSEDPARM(args)) {
SwigPyObject *sobj = (SwigPyObject *)pyobj;
sobj->own = 0;
Director *d = SWIG_DIRECTOR_CAST(reinterpret_cast<Type *>(sobj->ptr));
if (d)
d->swig_disown();
return PyWeakref_NewProxy(pyobj, NULL);
}
};
#ifdef __THREAD__
PyThread_type_lock Director::swig_mutex_own = PyThread_allocate_lock();
#endif
}
#endif
/* -------- TYPES TABLE (BEGIN) -------- */
#define SWIGTYPE_p_ApplicableOccurrence_optional swig_types[0]
#define SWIGTYPE_p_ApplicableOccurrence_traits swig_types[1]
#define SWIGTYPE_p_ApplicableOccurrence_type swig_types[2]
#define SWIGTYPE_p_AssignedToFlowElement_optional swig_types[3]
#define SWIGTYPE_p_AssignedToFlowElement_traits swig_types[4]
#define SWIGTYPE_p_AssignedToFlowElement_type swig_types[5]
#define SWIGTYPE_p_AssignedToGroups_optional swig_types[6]
#define SWIGTYPE_p_AssignedToGroups_traits swig_types[7]
#define SWIGTYPE_p_AssignedToGroups_type swig_types[8]
#define SWIGTYPE_p_ChangeFromTemplate_optional swig_types[9]
#define SWIGTYPE_p_ChangeFromTemplate_traits swig_types[10]
#define SWIGTYPE_p_ChangeFromTemplate_type swig_types[11]
#define SWIGTYPE_p_CompositeThermalTrans_optional swig_types[12]
#define SWIGTYPE_p_CompositeThermalTrans_traits swig_types[13]
#define SWIGTYPE_p_CompositeThermalTrans_type swig_types[14]
#define SWIGTYPE_p_CompositionType_optional swig_types[15]
#define SWIGTYPE_p_CompositionType_traits swig_types[16]
#define SWIGTYPE_p_CompositionType_type swig_types[17]
#define SWIGTYPE_p_ContainingBuildings_optional swig_types[18]
#define SWIGTYPE_p_ContainingBuildings_traits swig_types[19]
#define SWIGTYPE_p_ContainingBuildings_type swig_types[20]
#define SWIGTYPE_p_ContainingSpatialStructure_optional swig_types[21]
#define SWIGTYPE_p_ContainingSpatialStructure_traits swig_types[22]
#define SWIGTYPE_p_ContainingSpatialStructure_type swig_types[23]
#define SWIGTYPE_p_ControlElementID_optional swig_types[24]
#define SWIGTYPE_p_ControlElementID_traits swig_types[25]
#define SWIGTYPE_p_ControlElementID_type swig_types[26]
#define SWIGTYPE_p_ControlledBy_optional swig_types[27]
#define SWIGTYPE_p_ControlledBy_traits swig_types[28]
#define SWIGTYPE_p_ControlledBy_type swig_types[29]
#define SWIGTYPE_p_DecimalPrecision_optional swig_types[30]
#define SWIGTYPE_p_DecimalPrecision_traits swig_types[31]
#define SWIGTYPE_p_DecimalPrecision_type swig_types[32]
#define SWIGTYPE_p_Decomposes_optional swig_types[33]
#define SWIGTYPE_p_Decomposes_traits swig_types[34]
#define SWIGTYPE_p_Decomposes_type swig_types[35]
#define SWIGTYPE_p_Description_optional swig_types[36]
#define SWIGTYPE_p_Description_traits swig_types[37]
#define SWIGTYPE_p_Description_type swig_types[38]
#define SWIGTYPE_p_DockedToPort_optional swig_types[39]
#define SWIGTYPE_p_DockedToPort_traits swig_types[40]
#define SWIGTYPE_p_DockedToPort_type swig_types[41]
#define SWIGTYPE_p_GeometricRepresentations_optional swig_types[42]
#define SWIGTYPE_p_GeometricRepresentations_traits swig_types[43]
#define SWIGTYPE_p_GeometricRepresentations_type swig_types[44]
#define SWIGTYPE_p_HasPropertySets_optional swig_types[45]
#define SWIGTYPE_p_HasPropertySets_traits swig_types[46]
#define SWIGTYPE_p_HasPropertySets_type swig_types[47]
#define SWIGTYPE_p_HasTemplateChanged_optional swig_types[48]
#define SWIGTYPE_p_HasTemplateChanged_traits swig_types[49]
#define SWIGTYPE_p_HasTemplateChanged_type swig_types[50]
#define SWIGTYPE_p_HostElement_optional swig_types[51]
#define SWIGTYPE_p_HostElement_traits swig_types[52]
#define SWIGTYPE_p_HostElement_type swig_types[53]
#define SWIGTYPE_p_IfcGlobalID_optional swig_types[54]
#define SWIGTYPE_p_IfcGlobalID_traits swig_types[55]
#define SWIGTYPE_p_IfcGlobalID_type swig_types[56]
#define SWIGTYPE_p_IfcName_optional swig_types[57]
#define SWIGTYPE_p_IfcName_traits swig_types[58]
#define SWIGTYPE_p_IfcName_type swig_types[59]
#define SWIGTYPE_p_IntendedBldgElemTypes_optional swig_types[60]
#define SWIGTYPE_p_IntendedBldgElemTypes_traits swig_types[61]
#define SWIGTYPE_p_IntendedBldgElemTypes_type swig_types[62]
#define SWIGTYPE_p_IsAutoGenerated_optional swig_types[63]
#define SWIGTYPE_p_IsAutoGenerated_traits swig_types[64]
#define SWIGTYPE_p_IsAutoGenerated_type swig_types[65]
#define SWIGTYPE_p_IsTemplateObject_optional swig_types[66]
#define SWIGTYPE_p_IsTemplateObject_traits swig_types[67]
#define SWIGTYPE_p_IsTemplateObject_type swig_types[68]
#define SWIGTYPE_p_LayerSetName_optional swig_types[69]
#define SWIGTYPE_p_LayerSetName_traits swig_types[70]
#define SWIGTYPE_p_LayerSetName_type swig_types[71]
#define SWIGTYPE_p_LocalPlacementCoordinates_optional swig_types[72]
#define SWIGTYPE_p_LocalPlacementCoordinates_traits swig_types[73]
#define SWIGTYPE_p_LocalPlacementCoordinates_type swig_types[74]
#define SWIGTYPE_p_LocalPlacementRotation_optional swig_types[75]
#define SWIGTYPE_p_LocalPlacementRotation_traits swig_types[76]
#define SWIGTYPE_p_LocalPlacementRotation_type swig_types[77]
#define SWIGTYPE_p_LocalPlacementX_optional swig_types[78]
#define SWIGTYPE_p_LocalPlacementX_traits swig_types[79]
#define SWIGTYPE_p_LocalPlacementX_type swig_types[80]
#define SWIGTYPE_p_LocalPlacementY_optional swig_types[81]
#define SWIGTYPE_p_LocalPlacementY_traits swig_types[82]
#define SWIGTYPE_p_LocalPlacementY_type swig_types[83]
#define SWIGTYPE_p_LocalPlacementZ_optional swig_types[84]
#define SWIGTYPE_p_LocalPlacementZ_traits swig_types[85]
#define SWIGTYPE_p_LocalPlacementZ_type swig_types[86]
#define SWIGTYPE_p_LongName_optional swig_types[87]
#define SWIGTYPE_p_LongName_traits swig_types[88]
#define SWIGTYPE_p_LongName_type swig_types[89]
#define SWIGTYPE_p_MaterialLayers_optional swig_types[90]
#define SWIGTYPE_p_MaterialLayers_traits swig_types[91]
#define SWIGTYPE_p_MaterialLayers_type swig_types[92]
#define SWIGTYPE_p_MemberUsedForDiagrams_optional swig_types[93]
#define SWIGTYPE_p_MemberUsedForDiagrams_traits swig_types[94]
#define SWIGTYPE_p_MemberUsedForDiagrams_type swig_types[95]
#define SWIGTYPE_p_Name_optional swig_types[96]
#define SWIGTYPE_p_Name_traits swig_types[97]
#define SWIGTYPE_p_Name_type swig_types[98]
#define SWIGTYPE_p_NevronSchematicLayout_optional swig_types[99]
#define SWIGTYPE_p_NevronSchematicLayout_traits swig_types[100]
#define SWIGTYPE_p_NevronSchematicLayout_type swig_types[101]
#define SWIGTYPE_p_ObjectCreationParams_optional swig_types[102]
#define SWIGTYPE_p_ObjectCreationParams_traits swig_types[103]
#define SWIGTYPE_p_ObjectCreationParams_type swig_types[104]
#define SWIGTYPE_p_ObjectIndex_optional swig_types[105]
#define SWIGTYPE_p_ObjectIndex_traits swig_types[106]
#define SWIGTYPE_p_ObjectIndex_type swig_types[107]
#define SWIGTYPE_p_ObjectName_optional swig_types[108]
#define SWIGTYPE_p_ObjectName_traits swig_types[109]
#define SWIGTYPE_p_ObjectName_type swig_types[110]
#define SWIGTYPE_p_ObjectOwnerHistory_optional swig_types[111]
#define SWIGTYPE_p_ObjectOwnerHistory_traits swig_types[112]
#define SWIGTYPE_p_ObjectOwnerHistory_type swig_types[113]
#define SWIGTYPE_p_ObjectType_optional swig_types[114]
#define SWIGTYPE_p_ObjectType_traits swig_types[115]
#define SWIGTYPE_p_ObjectType_type swig_types[116]
#define SWIGTYPE_p_ParentGroups_optional swig_types[117]
#define SWIGTYPE_p_ParentGroups_traits swig_types[118]
#define SWIGTYPE_p_ParentGroups_type swig_types[119]
#define SWIGTYPE_p_PlacementRelToContainingTypeDef_optional swig_types[120]
#define SWIGTYPE_p_PlacementRelToContainingTypeDef_traits swig_types[121]
#define SWIGTYPE_p_PlacementRelToContainingTypeDef_type swig_types[122]
#define SWIGTYPE_p_Placement_optional swig_types[123]
#define SWIGTYPE_p_Placement_traits swig_types[124]
#define SWIGTYPE_p_Placement_type swig_types[125]
#define SWIGTYPE_p_ProfileName_optional swig_types[126]
#define SWIGTYPE_p_ProfileName_traits swig_types[127]
#define SWIGTYPE_p_ProfileName_type swig_types[128]
#define SWIGTYPE_p_ProfileType_optional swig_types[129]
#define SWIGTYPE_p_ProfileType_traits swig_types[130]
#define SWIGTYPE_p_ProfileType_type swig_types[131]
#define SWIGTYPE_p_RefId_traits swig_types[132]
#define SWIGTYPE_p_RefId_type swig_types[133]
#define SWIGTYPE_p_RepresentationContext_optional swig_types[134]
#define SWIGTYPE_p_RepresentationContext_traits swig_types[135]
#define SWIGTYPE_p_RepresentationContext_type swig_types[136]
#define SWIGTYPE_p_RepresentationIdentifier_optional swig_types[137]
#define SWIGTYPE_p_RepresentationIdentifier_traits swig_types[138]
#define SWIGTYPE_p_RepresentationIdentifier_type swig_types[139]
#define SWIGTYPE_p_RepresentationItems_optional swig_types[140]
#define SWIGTYPE_p_RepresentationItems_traits swig_types[141]
#define SWIGTYPE_p_RepresentationItems_type swig_types[142]
#define SWIGTYPE_p_RepresentationType_optional swig_types[143]
#define SWIGTYPE_p_RepresentationType_traits swig_types[144]
#define SWIGTYPE_p_RepresentationType_type swig_types[145]
#define SWIGTYPE_p_SelectedPropertyGroups_optional swig_types[146]
#define SWIGTYPE_p_SelectedPropertyGroups_traits swig_types[147]
#define SWIGTYPE_p_SelectedPropertyGroups_type swig_types[148]
#define SWIGTYPE_p_SimMatLayerSet_Layer_2_10_optional swig_types[149]
#define SWIGTYPE_p_SimMatLayerSet_Layer_2_10_traits swig_types[150]
#define SWIGTYPE_p_SimMatLayerSet_Layer_2_10_type swig_types[151]
#define SWIGTYPE_p_SimMatLayerSet_Name_optional swig_types[152]
#define SWIGTYPE_p_SimMatLayerSet_Name_traits swig_types[153]
#define SWIGTYPE_p_SimMatLayerSet_Name_type swig_types[154]
#define SWIGTYPE_p_SimMatLayerSet_OutsideLayer_optional swig_types[155]
#define SWIGTYPE_p_SimMatLayerSet_OutsideLayer_traits swig_types[156]
#define SWIGTYPE_p_SimMatLayerSet_OutsideLayer_type swig_types[157]
#define SWIGTYPE_p_SimModelName_optional swig_types[158]
#define SWIGTYPE_p_SimModelName_traits swig_types[159]
#define SWIGTYPE_p_SimModelName_type swig_types[160]
#define SWIGTYPE_p_SimModelSubtype_optional swig_types[161]
#define SWIGTYPE_p_SimModelSubtype_traits swig_types[162]
#define SWIGTYPE_p_SimModelSubtype_type swig_types[163]
#define SWIGTYPE_p_SimModelType_optional swig_types[164]
#define SWIGTYPE_p_SimModelType_traits swig_types[165]
#define SWIGTYPE_p_SimModelType_type swig_types[166]
#define SWIGTYPE_p_SimUniqueID_optional swig_types[167]
#define SWIGTYPE_p_SimUniqueID_traits swig_types[168]
#define SWIGTYPE_p_SimUniqueID_type swig_types[169]
#define SWIGTYPE_p_SourceLibraryEntryID_optional swig_types[170]
#define SWIGTYPE_p_SourceLibraryEntryID_traits swig_types[171]
#define SWIGTYPE_p_SourceLibraryEntryID_type swig_types[172]
#define SWIGTYPE_p_SourceLibraryEntryRef_optional swig_types[173]
#define SWIGTYPE_p_SourceLibraryEntryRef_traits swig_types[174]
#define SWIGTYPE_p_SourceLibraryEntryRef_type swig_types[175]
#define SWIGTYPE_p_SourceModelObjectType_optional swig_types[176]
#define SWIGTYPE_p_SourceModelObjectType_traits swig_types[177]
#define SWIGTYPE_p_SourceModelObjectType_type swig_types[178]
#define SWIGTYPE_p_SourceModelSchema_optional swig_types[179]
#define SWIGTYPE_p_SourceModelSchema_traits swig_types[180]
#define SWIGTYPE_p_SourceModelSchema_type swig_types[181]
#define SWIGTYPE_p_SurfProp_HeatTransAlg_Construct_Algorithm_optional swig_types[182]
#define SWIGTYPE_p_SurfProp_HeatTransAlg_Construct_Algorithm_traits swig_types[183]
#define SWIGTYPE_p_SurfProp_HeatTransAlg_Construct_Algorithm_type swig_types[184]
#define SWIGTYPE_p_SurfProp_HeatTransAlg_Construct_ConstructionName_optional swig_types[185]
#define SWIGTYPE_p_SurfProp_HeatTransAlg_Construct_ConstructionName_traits swig_types[186]
#define SWIGTYPE_p_SurfProp_HeatTransAlg_Construct_ConstructionName_type swig_types[187]
#define SWIGTYPE_p_SurfProp_HeatTransAlg_Construct_Name_optional swig_types[188]
#define SWIGTYPE_p_SurfProp_HeatTransAlg_Construct_Name_traits swig_types[189]
#define SWIGTYPE_p_SurfProp_HeatTransAlg_Construct_Name_type swig_types[190]
#define SWIGTYPE_p_T24CRRCAgedEmittance_optional swig_types[191]
#define SWIGTYPE_p_T24CRRCAgedEmittance_traits swig_types[192]
#define SWIGTYPE_p_T24CRRCAgedEmittance_type swig_types[193]
#define SWIGTYPE_p_T24CRRCAgedReflectance_optional swig_types[194]
#define SWIGTYPE_p_T24CRRCAgedReflectance_traits swig_types[195]
#define SWIGTYPE_p_T24CRRCAgedReflectance_type swig_types[196]
#define SWIGTYPE_p_T24CRRCAgedSRI_optional swig_types[197]
#define SWIGTYPE_p_T24CRRCAgedSRI_traits swig_types[198]
#define SWIGTYPE_p_T24CRRCAgedSRI_type swig_types[199]
#define SWIGTYPE_p_T24CRRCInitialEmitance_optional swig_types[200]
#define SWIGTYPE_p_T24CRRCInitialEmitance_traits swig_types[201]
#define SWIGTYPE_p_T24CRRCInitialEmitance_type swig_types[202]
#define SWIGTYPE_p_T24CRRCInitialReflectance_optional swig_types[203]
#define SWIGTYPE_p_T24CRRCInitialReflectance_traits swig_types[204]
#define SWIGTYPE_p_T24CRRCInitialReflectance_type swig_types[205]
#define SWIGTYPE_p_T24CRRCInitialSRI_optional swig_types[206]
#define SWIGTYPE_p_T24CRRCInitialSRI_traits swig_types[207]
#define SWIGTYPE_p_T24CRRCInitialSRI_type swig_types[208]
#define SWIGTYPE_p_T24CRRCProductID_optional swig_types[209]
#define SWIGTYPE_p_T24CRRCProductID_traits swig_types[210]
#define SWIGTYPE_p_T24CRRCProductID_type swig_types[211]
#define SWIGTYPE_p_T24ConsAssmNotes_optional swig_types[212]
#define SWIGTYPE_p_T24ConsAssmNotes_traits swig_types[213]
#define SWIGTYPE_p_T24ConsAssmNotes_type swig_types[214]
#define SWIGTYPE_p_T24ConstructInsulOrient_optional swig_types[215]
#define SWIGTYPE_p_T24ConstructInsulOrient_traits swig_types[216]
#define SWIGTYPE_p_T24ConstructInsulOrient_type swig_types[217]
#define SWIGTYPE_p_T24FieldAppliedCoating_optional swig_types[218]
#define SWIGTYPE_p_T24FieldAppliedCoating_traits swig_types[219]
#define SWIGTYPE_p_T24FieldAppliedCoating_type swig_types[220]
#define SWIGTYPE_p_T24RoofDensity_optional swig_types[221]
#define SWIGTYPE_p_T24RoofDensity_traits swig_types[222]
#define SWIGTYPE_p_T24RoofDensity_type swig_types[223]
#define SWIGTYPE_p_T24SlabInsulThermResist_optional swig_types[224]
#define SWIGTYPE_p_T24SlabInsulThermResist_traits swig_types[225]
#define SWIGTYPE_p_T24SlabInsulThermResist_type swig_types[226]
#define SWIGTYPE_p_T24SlabType_optional swig_types[227]
#define SWIGTYPE_p_T24SlabType_traits swig_types[228]
#define SWIGTYPE_p_T24SlabType_type swig_types[229]
#define SWIGTYPE_p_Tag_optional swig_types[230]
#define SWIGTYPE_p_Tag_traits swig_types[231]
#define SWIGTYPE_p_Tag_type swig_types[232]
#define SWIGTYPE_p_TemplatesForMembers_optional swig_types[233]
#define SWIGTYPE_p_TemplatesForMembers_traits swig_types[234]
#define SWIGTYPE_p_TemplatesForMembers_type swig_types[235]
#define SWIGTYPE_p_TypeDefCreationParams_optional swig_types[236]
#define SWIGTYPE_p_TypeDefCreationParams_traits swig_types[237]
#define SWIGTYPE_p_TypeDefCreationParams_type swig_types[238]
#define SWIGTYPE_p_TypeDefinition_optional swig_types[239]
#define SWIGTYPE_p_TypeDefinition_traits swig_types[240]
#define SWIGTYPE_p_TypeDefinition_type swig_types[241]
#define SWIGTYPE_p_UnitType_String_optional swig_types[242]
#define SWIGTYPE_p_UnitType_String_traits swig_types[243]
#define SWIGTYPE_p_UnitType_String_type swig_types[244]
#define SWIGTYPE_p_XDirectionX_optional swig_types[245]
#define SWIGTYPE_p_XDirectionX_traits swig_types[246]
#define SWIGTYPE_p_XDirectionX_type swig_types[247]
#define SWIGTYPE_p_XDirectionY_optional swig_types[248]
#define SWIGTYPE_p_XDirectionY_traits swig_types[249]
#define SWIGTYPE_p_XDirectionY_type swig_types[250]
#define SWIGTYPE_p_XDirectionZ_optional swig_types[251]
#define SWIGTYPE_p_XDirectionZ_traits swig_types[252]
#define SWIGTYPE_p_XDirectionZ_type swig_types[253]
#define SWIGTYPE_p__3dHeight_optional swig_types[254]
#define SWIGTYPE_p__3dHeight_traits swig_types[255]
#define SWIGTYPE_p__3dHeight_type swig_types[256]
#define SWIGTYPE_p__3dLength_optional swig_types[257]
#define SWIGTYPE_p__3dLength_traits swig_types[258]
#define SWIGTYPE_p__3dLength_type swig_types[259]
#define SWIGTYPE_p__3dWidth_optional swig_types[260]
#define SWIGTYPE_p__3dWidth_traits swig_types[261]
#define SWIGTYPE_p__3dWidth_type swig_types[262]
#define SWIGTYPE_p_allocator_type swig_types[263]
#define SWIGTYPE_p_base_const_iterator swig_types[264]
#define SWIGTYPE_p_base_iterator swig_types[265]
#define SWIGTYPE_p_base_sequence swig_types[266]
#define SWIGTYPE_p_base_type swig_types[267]
#define SWIGTYPE_p_bool swig_types[268]
#define SWIGTYPE_p_bool_convertible swig_types[269]
#define SWIGTYPE_p_char swig_types[270]
#define SWIGTYPE_p_const_iterator swig_types[271]
#define SWIGTYPE_p_const_reverse_iterator swig_types[272]
#define SWIGTYPE_p_difference_type swig_types[273]
#define SWIGTYPE_p_dom_content_optional swig_types[274]
#define SWIGTYPE_p_double swig_types[275]
#define SWIGTYPE_p_float swig_types[276]
#define SWIGTYPE_p_int swig_types[277]
#define SWIGTYPE_p_iterator swig_types[278]
#define SWIGTYPE_p_iterator_adapterT_std__vectorT_xsd__cxx__tree__sequence_common__ptr_std__allocatorT_xsd__cxx__tree__sequence_common__ptr_t_t__const_iterator_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_const_t swig_types[279]
#define SWIGTYPE_p_iterator_adapterT_std__vectorT_xsd__cxx__tree__sequence_common__ptr_std__allocatorT_xsd__cxx__tree__sequence_common__ptr_t_t__const_reverse_iterator_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_const_t swig_types[280]
#define SWIGTYPE_p_iterator_adapterT_std__vectorT_xsd__cxx__tree__sequence_common__ptr_std__allocatorT_xsd__cxx__tree__sequence_common__ptr_t_t__iterator___schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_t swig_types[281]
#define SWIGTYPE_p_iterator_adapterT_std__vectorT_xsd__cxx__tree__sequence_common__ptr_std__allocatorT_xsd__cxx__tree__sequence_common__ptr_t_t__reverse_iterator___schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_t swig_types[282]
#define SWIGTYPE_p_long_long swig_types[283]
#define SWIGTYPE_p_ptr swig_types[284]
#define SWIGTYPE_p_reverse_iterator swig_types[285]
#define SWIGTYPE_p_schema__simxml__MepModel__SimFlowEnergyConverter swig_types[286]
#define SWIGTYPE_p_schema__simxml__Model__SimModel swig_types[287]
#define SWIGTYPE_p_schema__simxml__ResourcesGeneral__IntendedBldgElemTypes swig_types[288]
#define SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimArrayParams swig_types[289]
#define SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet swig_types[290]
#define SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_Default swig_types[291]
#define SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_Default_Default swig_types[292]
#define SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet swig_types[293]
#define SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Ceiling swig_types[294]
#define SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof swig_types[295]
#define SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimNode swig_types[296]
#define SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimPort swig_types[297]
#define SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimUnitType swig_types[298]
#define SWIGTYPE_p_schema__simxml__ResourcesGeometry__SimProfileDefinition swig_types[299]
#define SWIGTYPE_p_schema__simxml__SimModelCore__SelectedPropertyGroups swig_types[300]
#define SWIGTYPE_p_schema__simxml__SimModelCore__SimActorDefinition swig_types[301]
#define SWIGTYPE_p_schema__simxml__SimModelCore__SimAppDefault swig_types[302]
#define SWIGTYPE_p_schema__simxml__SimModelCore__SimBldgModelParams swig_types[303]
#define SWIGTYPE_p_schema__simxml__SimModelCore__SimBuildingElement swig_types[304]
#define SWIGTYPE_p_schema__simxml__SimModelCore__SimDistributionControlElement swig_types[305]
#define SWIGTYPE_p_schema__simxml__SimModelCore__SimDistributionElement swig_types[306]
#define SWIGTYPE_p_schema__simxml__SimModelCore__SimDistributionFlowElement swig_types[307]
#define SWIGTYPE_p_schema__simxml__SimModelCore__SimElement swig_types[308]
#define SWIGTYPE_p_schema__simxml__SimModelCore__SimFeatureElement swig_types[309]
#define SWIGTYPE_p_schema__simxml__SimModelCore__SimGeometricRepresentationItem swig_types[310]
#define SWIGTYPE_p_schema__simxml__SimModelCore__SimGroup swig_types[311]
#define SWIGTYPE_p_schema__simxml__SimModelCore__SimObject swig_types[312]
#define SWIGTYPE_p_schema__simxml__SimModelCore__SimObjectDefinition swig_types[313]
#define SWIGTYPE_p_schema__simxml__SimModelCore__SimObjectPlacement swig_types[314]
#define SWIGTYPE_p_schema__simxml__SimModelCore__SimObjectTypeDefinition swig_types[315]
#define SWIGTYPE_p_schema__simxml__SimModelCore__SimPropertySetDefinition swig_types[316]
#define SWIGTYPE_p_schema__simxml__SimModelCore__SimRepresentation swig_types[317]
#define SWIGTYPE_p_schema__simxml__SimModelCore__SimRepresentationItem swig_types[318]
#define SWIGTYPE_p_schema__simxml__SimModelCore__SimResourceObject swig_types[319]
#define SWIGTYPE_p_schema__simxml__SimModelCore__SimRoot swig_types[320]
#define SWIGTYPE_p_schema__simxml__SimModelCore__SimSpatialStructureElement swig_types[321]
#define SWIGTYPE_p_schema__simxml__SimModelCore__SimTemplate swig_types[322]
#define SWIGTYPE_p_schema__simxml__SimModelCore__SimTopologicalRepresentationItem swig_types[323]
#define SWIGTYPE_p_schema__simxml__SimModelCore__doubleList swig_types[324]
#define SWIGTYPE_p_schema__simxml__SimModelCore__integerList swig_types[325]
#define SWIGTYPE_p_schema__simxml__SimModelCore__logical swig_types[326]
#define SWIGTYPE_p_self_ swig_types[327]
#define SWIGTYPE_p_short swig_types[328]
#define SWIGTYPE_p_signed_char swig_types[329]
#define SWIGTYPE_p_size_type swig_types[330]
#define SWIGTYPE_p_std__auto_ptrT_T_t swig_types[331]
#define SWIGTYPE_p_std__auto_ptrT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_t swig_types[332]
#define SWIGTYPE_p_std__auto_ptrT_xml_schema__idref_t swig_types[333]
#define SWIGTYPE_p_std__auto_ptrT_xml_schema__idrefs_t swig_types[334]
#define SWIGTYPE_p_std__auto_ptrT_xml_schema__string_t swig_types[335]
#define SWIGTYPE_p_std__vectorT_xsd__cxx__tree__sequence_common__ptr_std__allocatorT_xsd__cxx__tree__sequence_common__ptr_t_t__size_type swig_types[336]
#define SWIGTYPE_p_unsigned_char swig_types[337]
#define SWIGTYPE_p_unsigned_int swig_types[338]
#define SWIGTYPE_p_unsigned_long_long swig_types[339]
#define SWIGTYPE_p_unsigned_short swig_types[340]
#define SWIGTYPE_p_value_type swig_types[341]
#define SWIGTYPE_p_xercesc__DOMElement swig_types[342]
#define SWIGTYPE_p_xsd__cxx__tree___type swig_types[343]
#define SWIGTYPE_p_xsd__cxx__tree__base64_binaryT_char_xsd__cxx__tree__simple_type_t swig_types[344]
#define SWIGTYPE_p_xsd__cxx__tree__boundsT_char_t swig_types[345]
#define SWIGTYPE_p_xsd__cxx__tree__bufferT_char_t swig_types[346]
#define SWIGTYPE_p_xsd__cxx__tree__content_order swig_types[347]
#define SWIGTYPE_p_xsd__cxx__tree__dateT_char_xsd__cxx__tree__simple_typeT_char_xsd__cxx__tree___type_t_t swig_types[348]
#define SWIGTYPE_p_xsd__cxx__tree__date_timeT_char_xsd__cxx__tree__simple_typeT_char_xsd__cxx__tree___type_t_t swig_types[349]
#define SWIGTYPE_p_xsd__cxx__tree__diagnosticsT_char_t swig_types[350]
#define SWIGTYPE_p_xsd__cxx__tree__duplicate_idT_char_t swig_types[351]
#define SWIGTYPE_p_xsd__cxx__tree__durationT_char_xsd__cxx__tree__simple_typeT_char_xsd__cxx__tree___type_t_t swig_types[352]
#define SWIGTYPE_p_xsd__cxx__tree__entitiesT_char_xsd__cxx__tree__simple_type_xsd__cxx__tree__entity_t swig_types[353]
#define SWIGTYPE_p_xsd__cxx__tree__entityT_char_xsd__cxx__tree__ncname_t swig_types[354]
#define SWIGTYPE_p_xsd__cxx__tree__errorT_char_t swig_types[355]
#define SWIGTYPE_p_xsd__cxx__tree__exceptionT_char_t swig_types[356]
#define SWIGTYPE_p_xsd__cxx__tree__expected_attributeT_char_t swig_types[357]
#define SWIGTYPE_p_xsd__cxx__tree__expected_elementT_char_t swig_types[358]
#define SWIGTYPE_p_xsd__cxx__tree__expected_text_contentT_char_t swig_types[359]
#define SWIGTYPE_p_xsd__cxx__tree__flags swig_types[360]
#define SWIGTYPE_p_xsd__cxx__tree__gdayT_char_xsd__cxx__tree__simple_typeT_char_xsd__cxx__tree___type_t_t swig_types[361]
#define SWIGTYPE_p_xsd__cxx__tree__gmonthT_char_xsd__cxx__tree__simple_typeT_char_xsd__cxx__tree___type_t_t swig_types[362]
#define SWIGTYPE_p_xsd__cxx__tree__gmonth_dayT_char_xsd__cxx__tree__simple_typeT_char_xsd__cxx__tree___type_t_t swig_types[363]
#define SWIGTYPE_p_xsd__cxx__tree__gyearT_char_xsd__cxx__tree__simple_typeT_char_xsd__cxx__tree___type_t_t swig_types[364]
#define SWIGTYPE_p_xsd__cxx__tree__gyear_monthT_char_xsd__cxx__tree__simple_typeT_char_xsd__cxx__tree___type_t_t swig_types[365]
#define SWIGTYPE_p_xsd__cxx__tree__hex_binaryT_char_xsd__cxx__tree__simple_type_t swig_types[366]
#define SWIGTYPE_p_xsd__cxx__tree__idT_char_xsd__cxx__tree__ncname_t swig_types[367]
#define SWIGTYPE_p_xsd__cxx__tree__idrefT_char_xsd__cxx__tree__ncname_xsd__cxx__tree___type_t swig_types[368]
#define SWIGTYPE_p_xsd__cxx__tree__idrefsT_char_xsd__cxx__tree__simple_type_xsd__cxx__tree__idref_t swig_types[369]
#define SWIGTYPE_p_xsd__cxx__tree__languageT_char_xsd__cxx__tree__token_t swig_types[370]
#define SWIGTYPE_p_xsd__cxx__tree__nameT_char_xsd__cxx__tree__token_t swig_types[371]
#define SWIGTYPE_p_xsd__cxx__tree__ncnameT_char_xsd__cxx__tree__name_t swig_types[372]
#define SWIGTYPE_p_xsd__cxx__tree__nmtokenT_char_xsd__cxx__tree__token_t swig_types[373]
#define SWIGTYPE_p_xsd__cxx__tree__nmtokensT_char_xsd__cxx__tree__simple_type_xsd__cxx__tree__nmtoken_t swig_types[374]
#define SWIGTYPE_p_xsd__cxx__tree__no_prefix_mappingT_char_t swig_types[375]
#define SWIGTYPE_p_xsd__cxx__tree__no_type_infoT_char_t swig_types[376]
#define SWIGTYPE_p_xsd__cxx__tree__normalized_stringT_char_xsd__cxx__tree__string_t swig_types[377]
#define SWIGTYPE_p_xsd__cxx__tree__not_derivedT_char_t swig_types[378]
#define SWIGTYPE_p_xsd__cxx__tree__optionalT_double_true_t swig_types[379]
#define SWIGTYPE_p_xsd__cxx__tree__optionalT_int_true_t swig_types[380]
#define SWIGTYPE_p_xsd__cxx__tree__optionalT_xsd__cxx__tree__idrefT_char_xsd__cxx__tree__ncname_xsd__cxx__tree___type_t_false_t swig_types[381]
#define SWIGTYPE_p_xsd__cxx__tree__optionalT_xsd__cxx__tree__idrefsT_char_xsd__cxx__tree__simple_type_xsd__cxx__tree__idref_t_xsd__cxx__tree__fundamental_pT_xsd__cxx__tree__idrefsT_char_xsd__cxx__tree__simple_type_xsd__cxx__tree__idref_t_t__r_t swig_types[382]
#define SWIGTYPE_p_xsd__cxx__tree__optionalT_xsd__cxx__tree__stringT_char_xsd__cxx__tree__simple_type_t_false_t swig_types[383]
#define SWIGTYPE_p_xsd__cxx__tree__parsingT_char_t swig_types[384]
#define SWIGTYPE_p_xsd__cxx__tree__propertiesT_char_t swig_types[385]
#define SWIGTYPE_p_xsd__cxx__tree__qnameT_char_xsd__cxx__tree__simple_type_xsd__cxx__tree__uri_xsd__cxx__tree__ncname_t swig_types[386]
#define SWIGTYPE_p_xsd__cxx__tree__sequenceT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_Default_Default_false_t swig_types[387]
#define SWIGTYPE_p_xsd__cxx__tree__sequenceT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Ceiling_false_t swig_types[388]
#define SWIGTYPE_p_xsd__cxx__tree__sequenceT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_false_t swig_types[389]
#define SWIGTYPE_p_xsd__cxx__tree__sequenceT_xsd__cxx__tree__stringT_char_xsd__cxx__tree__simple_typeT_char_xsd__cxx__tree__type_t_t_false_t swig_types[390]
#define SWIGTYPE_p_xsd__cxx__tree__sequence_common swig_types[391]
#define SWIGTYPE_p_xsd__cxx__tree__severity swig_types[392]
#define SWIGTYPE_p_xsd__cxx__tree__simple_typeT_char_xsd__cxx__tree___type_t swig_types[393]
#define SWIGTYPE_p_xsd__cxx__tree__stringT_char_xsd__cxx__tree__simple_typeT_char_xsd__cxx__tree__type_t_t swig_types[394]
#define SWIGTYPE_p_xsd__cxx__tree__stringT_char_xsd__cxx__tree__simple_type_t swig_types[395]
#define SWIGTYPE_p_xsd__cxx__tree__timeT_char_xsd__cxx__tree__simple_typeT_char_xsd__cxx__tree___type_t_t swig_types[396]
#define SWIGTYPE_p_xsd__cxx__tree__time_zone swig_types[397]
#define SWIGTYPE_p_xsd__cxx__tree__tokenT_char_xsd__cxx__tree__normalized_string_t swig_types[398]
#define SWIGTYPE_p_xsd__cxx__tree__unexpected_elementT_char_t swig_types[399]
#define SWIGTYPE_p_xsd__cxx__tree__unexpected_enumeratorT_char_t swig_types[400]
#define SWIGTYPE_p_xsd__cxx__tree__uriT_char_xsd__cxx__tree__simple_type_t swig_types[401]
#define SWIGTYPE_p_xsd__cxx__tree__user_data_keys_templateT_0_t swig_types[402]
#define SWIGTYPE_p_xsd__cxx__xml__error_handlerT_char_t swig_types[403]
static swig_type_info *swig_types[405];
static swig_module_info swig_module = {swig_types, 404, 0, 0, 0, 0};
#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
/* -------- TYPES TABLE (END) -------- */
#if (PY_VERSION_HEX <= 0x02000000)
# if !defined(SWIG_PYTHON_CLASSIC)
# error "This python version requires swig to be run with the '-classic' option"
# endif
#endif
/*-----------------------------------------------
@(target):= _SimMaterialLayerSet_OpaqueLayerSet_Roof.so
------------------------------------------------*/
#if PY_VERSION_HEX >= 0x03000000
# define SWIG_init PyInit__SimMaterialLayerSet_OpaqueLayerSet_Roof
#else
# define SWIG_init init_SimMaterialLayerSet_OpaqueLayerSet_Roof
#endif
#define SWIG_name "_SimMaterialLayerSet_OpaqueLayerSet_Roof"
#define SWIGVERSION 0x030007
#define SWIG_VERSION SWIGVERSION
#define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
#include <stdexcept>
namespace swig {
class SwigPtr_PyObject {
protected:
PyObject *_obj;
public:
SwigPtr_PyObject() :_obj(0)
{
}
SwigPtr_PyObject(const SwigPtr_PyObject& item) : _obj(item._obj)
{
SWIG_PYTHON_THREAD_BEGIN_BLOCK;
Py_XINCREF(_obj);
SWIG_PYTHON_THREAD_END_BLOCK;
}
SwigPtr_PyObject(PyObject *obj, bool initial_ref = true) :_obj(obj)
{
if (initial_ref) {
SWIG_PYTHON_THREAD_BEGIN_BLOCK;
Py_XINCREF(_obj);
SWIG_PYTHON_THREAD_END_BLOCK;
}
}
SwigPtr_PyObject & operator=(const SwigPtr_PyObject& item)
{
SWIG_PYTHON_THREAD_BEGIN_BLOCK;
Py_XINCREF(item._obj);
Py_XDECREF(_obj);
_obj = item._obj;
SWIG_PYTHON_THREAD_END_BLOCK;
return *this;
}
~SwigPtr_PyObject()
{
SWIG_PYTHON_THREAD_BEGIN_BLOCK;
Py_XDECREF(_obj);
SWIG_PYTHON_THREAD_END_BLOCK;
}
operator PyObject *() const
{
return _obj;
}
PyObject *operator->() const
{
return _obj;
}
};
}
namespace swig {
struct SwigVar_PyObject : SwigPtr_PyObject {
SwigVar_PyObject(PyObject* obj = 0) : SwigPtr_PyObject(obj, false) { }
SwigVar_PyObject & operator = (PyObject* obj)
{
Py_XDECREF(_obj);
_obj = obj;
return *this;
}
};
}
#define SWIG_FILE_WITH_INIT
#include "../SimModel_Dll_lib/framework/simmodel.hxx"
using namespace xsd::cxx::tree;
#include <string>
#include <stddef.h>
namespace swig {
struct stop_iteration {
};
struct SwigPyIterator {
private:
SwigPtr_PyObject _seq;
protected:
SwigPyIterator(PyObject *seq) : _seq(seq)
{
}
public:
virtual ~SwigPyIterator() {}
// Access iterator method, required by Python
virtual PyObject *value() const = 0;
// Forward iterator method, required by Python
virtual SwigPyIterator *incr(size_t n = 1) = 0;
// Backward iterator method, very common in C++, but not required in Python
virtual SwigPyIterator *decr(size_t /*n*/ = 1)
{
throw stop_iteration();
}
// Random access iterator methods, but not required in Python
virtual ptrdiff_t distance(const SwigPyIterator &/*x*/) const
{
throw std::invalid_argument("operation not supported");
}
virtual bool equal (const SwigPyIterator &/*x*/) const
{
throw std::invalid_argument("operation not supported");
}
// C++ common/needed methods
virtual SwigPyIterator *copy() const = 0;
PyObject *next()
{
SWIG_PYTHON_THREAD_BEGIN_BLOCK; // disable threads
PyObject *obj = value();
incr();
SWIG_PYTHON_THREAD_END_BLOCK; // re-enable threads
return obj;
}
/* Make an alias for Python 3.x */
PyObject *__next__()
{
return next();
}
PyObject *previous()
{
SWIG_PYTHON_THREAD_BEGIN_BLOCK; // disable threads
decr();
PyObject *obj = value();
SWIG_PYTHON_THREAD_END_BLOCK; // re-enable threads
return obj;
}
SwigPyIterator *advance(ptrdiff_t n)
{
return (n > 0) ? incr(n) : decr(-n);
}
bool operator == (const SwigPyIterator& x) const
{
return equal(x);
}
bool operator != (const SwigPyIterator& x) const
{
return ! operator==(x);
}
SwigPyIterator& operator += (ptrdiff_t n)
{
return *advance(n);
}
SwigPyIterator& operator -= (ptrdiff_t n)
{
return *advance(-n);
}
SwigPyIterator* operator + (ptrdiff_t n) const
{
return copy()->advance(n);
}
SwigPyIterator* operator - (ptrdiff_t n) const
{
return copy()->advance(-n);
}
ptrdiff_t operator - (const SwigPyIterator& x) const
{
return x.distance(*this);
}
static swig_type_info* descriptor() {
static int init = 0;
static swig_type_info* desc = 0;
if (!init) {
desc = SWIG_TypeQuery("swig::SwigPyIterator *");
init = 1;
}
return desc;
}
};
#if defined(SWIGPYTHON_BUILTIN)
inline PyObject* make_output_iterator_builtin (PyObject *pyself)
{
Py_INCREF(pyself);
return pyself;
}
#endif
}
#include <algorithm>
namespace swig {
template <class Type>
struct noconst_traits {
typedef Type noconst_type;
};
template <class Type>
struct noconst_traits<const Type> {
typedef Type noconst_type;
};
/*
type categories
*/
struct pointer_category { };
struct value_category { };
/*
General traits that provides type_name and type_info
*/
template <class Type> struct traits { };
template <class Type>
inline const char* type_name() {
return traits<typename noconst_traits<Type >::noconst_type >::type_name();
}
template <class Type>
struct traits_info {
static swig_type_info *type_query(std::string name) {
name += " *";
return SWIG_TypeQuery(name.c_str());
}
static swig_type_info *type_info() {
static swig_type_info *info = type_query(type_name<Type>());
return info;
}
};
template <class Type>
inline swig_type_info *type_info() {
return traits_info<Type>::type_info();
}
/*
Partial specialization for pointers
*/
template <class Type> struct traits <Type *> {
typedef pointer_category category;
static std::string make_ptr_name(const char* name) {
std::string ptrname = name;
ptrname += " *";
return ptrname;
}
static const char* type_name() {
static std::string name = make_ptr_name(swig::type_name<Type>());
return name.c_str();
}
};
template <class Type, class Category>
struct traits_as { };
template <class Type, class Category>
struct traits_check { };
}
namespace swig {
/*
Traits that provides the from method
*/
template <class Type> struct traits_from_ptr {
static PyObject *from(Type *val, int owner = 0) {
return SWIG_InternalNewPointerObj(val, type_info<Type>(), owner);
}
};
template <class Type> struct traits_from {
static PyObject *from(const Type& val) {
return traits_from_ptr<Type>::from(new Type(val), 1);
}
};
template <class Type> struct traits_from<Type *> {
static PyObject *from(Type* val) {
return traits_from_ptr<Type>::from(val, 0);
}
};
template <class Type> struct traits_from<const Type *> {
static PyObject *from(const Type* val) {
return traits_from_ptr<Type>::from(const_cast<Type*>(val), 0);
}
};
template <class Type>
inline PyObject *from(const Type& val) {
return traits_from<Type>::from(val);
}
template <class Type>
inline PyObject *from_ptr(Type* val, int owner) {
return traits_from_ptr<Type>::from(val, owner);
}
/*
Traits that provides the asval/as/check method
*/
template <class Type>
struct traits_asptr {
static int asptr(PyObject *obj, Type **val) {
Type *p;
int res = SWIG_ConvertPtr(obj, (void**)&p, type_info<Type>(), 0);
if (SWIG_IsOK(res)) {
if (val) *val = p;
}
return res;
}
};
template <class Type>
inline int asptr(PyObject *obj, Type **vptr) {
return traits_asptr<Type>::asptr(obj, vptr);
}
template <class Type>
struct traits_asval {
static int asval(PyObject *obj, Type *val) {
if (val) {
Type *p = 0;
int res = traits_asptr<Type>::asptr(obj, &p);
if (!SWIG_IsOK(res)) return res;
if (p) {
typedef typename noconst_traits<Type>::noconst_type noconst_type;
*(const_cast<noconst_type*>(val)) = *p;
if (SWIG_IsNewObj(res)){
delete p;
res = SWIG_DelNewMask(res);
}
return res;
} else {
return SWIG_ERROR;
}
} else {
return traits_asptr<Type>::asptr(obj, (Type **)(0));
}
}
};
template <class Type> struct traits_asval<Type*> {
static int asval(PyObject *obj, Type **val) {
if (val) {
typedef typename noconst_traits<Type>::noconst_type noconst_type;
noconst_type *p = 0;
int res = traits_asptr<noconst_type>::asptr(obj, &p);
if (SWIG_IsOK(res)) {
*(const_cast<noconst_type**>(val)) = p;
}
return res;
} else {
return traits_asptr<Type>::asptr(obj, (Type **)(0));
}
}
};
template <class Type>
inline int asval(PyObject *obj, Type *val) {
return traits_asval<Type>::asval(obj, val);
}
template <class Type>
struct traits_as<Type, value_category> {
static Type as(PyObject *obj, bool throw_error) {
Type v;
int res = asval(obj, &v);
if (!obj || !SWIG_IsOK(res)) {
if (!PyErr_Occurred()) {
::SWIG_Error(SWIG_TypeError, swig::type_name<Type>());
}
if (throw_error) throw std::invalid_argument("bad type");
}
return v;
}
};
template <class Type>
struct traits_as<Type, pointer_category> {
static Type as(PyObject *obj, bool throw_error) {
Type *v = 0;
int res = (obj ? traits_asptr<Type>::asptr(obj, &v) : SWIG_ERROR);
if (SWIG_IsOK(res) && v) {
if (SWIG_IsNewObj(res)) {
Type r(*v);
delete v;
return r;
} else {
return *v;
}
} else {
// Uninitialized return value, no Type() constructor required.
static Type *v_def = (Type*) malloc(sizeof(Type));
if (!PyErr_Occurred()) {
SWIG_Error(SWIG_TypeError, swig::type_name<Type>());
}
if (throw_error) throw std::invalid_argument("bad type");
memset(v_def,0,sizeof(Type));
return *v_def;
}
}
};
template <class Type>
struct traits_as<Type*, pointer_category> {
static Type* as(PyObject *obj, bool throw_error) {
Type *v = 0;
int res = (obj ? traits_asptr<Type>::asptr(obj, &v) : SWIG_ERROR);
if (SWIG_IsOK(res)) {
return v;
} else {
if (!PyErr_Occurred()) {
SWIG_Error(SWIG_TypeError, swig::type_name<Type>());
}
if (throw_error) throw std::invalid_argument("bad type");
return 0;
}
}
};
template <class Type>
inline Type as(PyObject *obj, bool te = false) {
return traits_as<Type, typename traits<Type>::category>::as(obj, te);
}
template <class Type>
struct traits_check<Type, value_category> {
static bool check(PyObject *obj) {
int res = obj ? asval(obj, (Type *)(0)) : SWIG_ERROR;
return SWIG_IsOK(res) ? true : false;
}
};
template <class Type>
struct traits_check<Type, pointer_category> {
static bool check(PyObject *obj) {
int res = obj ? asptr(obj, (Type **)(0)) : SWIG_ERROR;
return SWIG_IsOK(res) ? true : false;
}
};
template <class Type>
inline bool check(PyObject *obj) {
return traits_check<Type, typename traits<Type>::category>::check(obj);
}
}
#include <functional>
namespace std {
template <>
struct less <PyObject *>: public binary_function<PyObject *, PyObject *, bool>
{
bool
operator()(PyObject * v, PyObject *w) const
{
bool res;
SWIG_PYTHON_THREAD_BEGIN_BLOCK;
res = PyObject_RichCompareBool(v, w, Py_LT) ? true : false;
/* This may fall into a case of inconsistent
eg. ObjA > ObjX > ObjB
but ObjA < ObjB
*/
if( PyErr_Occurred() && PyErr_ExceptionMatches(PyExc_TypeError) )
{
/* Objects can't be compared, this mostly occurred in Python 3.0 */
/* Compare their ptr directly for a workaround */
res = (v < w);
PyErr_Clear();
}
SWIG_PYTHON_THREAD_END_BLOCK;
return res;
}
};
template <>
struct less <swig::SwigPtr_PyObject>: public binary_function<swig::SwigPtr_PyObject, swig::SwigPtr_PyObject, bool>
{
bool
operator()(const swig::SwigPtr_PyObject& v, const swig::SwigPtr_PyObject& w) const
{
return std::less<PyObject *>()(v, w);
}
};
template <>
struct less <swig::SwigVar_PyObject>: public binary_function<swig::SwigVar_PyObject, swig::SwigVar_PyObject, bool>
{
bool
operator()(const swig::SwigVar_PyObject& v, const swig::SwigVar_PyObject& w) const
{
return std::less<PyObject *>()(v, w);
}
};
}
namespace swig {
template <> struct traits<PyObject *> {
typedef value_category category;
static const char* type_name() { return "PyObject *"; }
};
template <> struct traits_asval<PyObject * > {
typedef PyObject * value_type;
static int asval(PyObject *obj, value_type *val) {
if (val) *val = obj;
return SWIG_OK;
}
};
template <>
struct traits_check<PyObject *, value_category> {
static bool check(PyObject *) {
return true;
}
};
template <> struct traits_from<PyObject *> {
typedef PyObject * value_type;
static PyObject *from(const value_type& val) {
Py_XINCREF(val);
return val;
}
};
}
namespace swig {
template <class Difference>
inline size_t
check_index(Difference i, size_t size, bool insert = false) {
if ( i < 0 ) {
if ((size_t) (-i) <= size)
return (size_t) (i + size);
} else if ( (size_t) i < size ) {
return (size_t) i;
} else if (insert && ((size_t) i == size)) {
return size;
}
throw std::out_of_range("index out of range");
}
template <class Difference>
void
slice_adjust(Difference i, Difference j, Py_ssize_t step, size_t size, Difference &ii, Difference &jj, bool insert = false) {
if (step == 0) {
throw std::invalid_argument("slice step cannot be zero");
} else if (step > 0) {
// Required range: 0 <= i < size, 0 <= j < size
if (i < 0) {
ii = 0;
} else if (i < (Difference)size) {
ii = i;
} else if (insert && (i >= (Difference)size)) {
ii = (Difference)size;
}
if ( j < 0 ) {
jj = 0;
} else {
jj = (j < (Difference)size) ? j : (Difference)size;
}
} else {
// Required range: -1 <= i < size-1, -1 <= j < size-1
if (i < -1) {
ii = -1;
} else if (i < (Difference) size) {
ii = i;
} else if (i >= (Difference)(size-1)) {
ii = (Difference)(size-1);
}
if (j < -1) {
jj = -1;
} else {
jj = (j < (Difference)size ) ? j : (Difference)(size-1);
}
}
}
template <class Sequence, class Difference>
inline typename Sequence::iterator
getpos(Sequence* self, Difference i) {
typename Sequence::iterator pos = self->begin();
std::advance(pos, check_index(i,self->size()));
return pos;
}
template <class Sequence, class Difference>
inline typename Sequence::const_iterator
cgetpos(const Sequence* self, Difference i) {
typename Sequence::const_iterator pos = self->begin();
std::advance(pos, check_index(i,self->size()));
return pos;
}
template <class Sequence, class Difference>
inline Sequence*
getslice(const Sequence* self, Difference i, Difference j, Py_ssize_t step) {
typename Sequence::size_type size = self->size();
Difference ii = 0;
Difference jj = 0;
swig::slice_adjust(i, j, step, size, ii, jj);
if (step > 0) {
typename Sequence::const_iterator sb = self->begin();
typename Sequence::const_iterator se = self->begin();
std::advance(sb,ii);
std::advance(se,jj);
if (step == 1) {
return new Sequence(sb, se);
} else {
Sequence *sequence = new Sequence();
typename Sequence::const_iterator it = sb;
while (it!=se) {
sequence->push_back(*it);
for (Py_ssize_t c=0; c<step && it!=se; ++c)
it++;
}
return sequence;
}
} else {
Sequence *sequence = new Sequence();
if (ii > jj) {
typename Sequence::const_reverse_iterator sb = self->rbegin();
typename Sequence::const_reverse_iterator se = self->rbegin();
std::advance(sb,size-ii-1);
std::advance(se,size-jj-1);
typename Sequence::const_reverse_iterator it = sb;
while (it!=se) {
sequence->push_back(*it);
for (Py_ssize_t c=0; c<-step && it!=se; ++c)
it++;
}
}
return sequence;
}
}
template <class Sequence, class Difference, class InputSeq>
inline void
setslice(Sequence* self, Difference i, Difference j, Py_ssize_t step, const InputSeq& is = InputSeq()) {
typename Sequence::size_type size = self->size();
Difference ii = 0;
Difference jj = 0;
swig::slice_adjust(i, j, step, size, ii, jj, true);
if (step > 0) {
if (jj < ii)
jj = ii;
if (step == 1) {
size_t ssize = jj - ii;
if (ssize <= is.size()) {
// expanding/staying the same size
typename Sequence::iterator sb = self->begin();
typename InputSeq::const_iterator isit = is.begin();
std::advance(sb,ii);
std::advance(isit, jj - ii);
self->insert(std::copy(is.begin(), isit, sb), isit, is.end());
} else {
// shrinking
typename Sequence::iterator sb = self->begin();
typename Sequence::iterator se = self->begin();
std::advance(sb,ii);
std::advance(se,jj);
self->erase(sb,se);
sb = self->begin();
std::advance(sb,ii);
self->insert(sb, is.begin(), is.end());
}
} else {
size_t replacecount = (jj - ii + step - 1) / step;
if (is.size() != replacecount) {
char msg[1024];
sprintf(msg, "attempt to assign sequence of size %lu to extended slice of size %lu", (unsigned long)is.size(), (unsigned long)replacecount);
throw std::invalid_argument(msg);
}
typename Sequence::const_iterator isit = is.begin();
typename Sequence::iterator it = self->begin();
std::advance(it,ii);
for (size_t rc=0; rc<replacecount; ++rc) {
*it++ = *isit++;
for (Py_ssize_t c=0; c<(step-1) && it != self->end(); ++c)
it++;
}
}
} else {
if (jj > ii)
jj = ii;
size_t replacecount = (ii - jj - step - 1) / -step;
if (is.size() != replacecount) {
char msg[1024];
sprintf(msg, "attempt to assign sequence of size %lu to extended slice of size %lu", (unsigned long)is.size(), (unsigned long)replacecount);
throw std::invalid_argument(msg);
}
typename Sequence::const_iterator isit = is.begin();
typename Sequence::reverse_iterator it = self->rbegin();
std::advance(it,size-ii-1);
for (size_t rc=0; rc<replacecount; ++rc) {
*it++ = *isit++;
for (Py_ssize_t c=0; c<(-step-1) && it != self->rend(); ++c)
it++;
}
}
}
template <class Sequence, class Difference>
inline void
delslice(Sequence* self, Difference i, Difference j, Py_ssize_t step) {
typename Sequence::size_type size = self->size();
Difference ii = 0;
Difference jj = 0;
swig::slice_adjust(i, j, step, size, ii, jj, true);
if (step > 0) {
if (jj > ii) {
typename Sequence::iterator sb = self->begin();
std::advance(sb,ii);
if (step == 1) {
typename Sequence::iterator se = self->begin();
std::advance(se,jj);
self->erase(sb,se);
} else {
typename Sequence::iterator it = sb;
size_t delcount = (jj - ii + step - 1) / step;
while (delcount) {
it = self->erase(it);
for (Py_ssize_t c=0; c<(step-1) && it != self->end(); ++c)
it++;
delcount--;
}
}
}
} else {
if (ii > jj) {
typename Sequence::reverse_iterator sb = self->rbegin();
std::advance(sb,size-ii-1);
typename Sequence::reverse_iterator it = sb;
size_t delcount = (ii - jj - step - 1) / -step;
while (delcount) {
it = typename Sequence::reverse_iterator(self->erase((++it).base()));
for (Py_ssize_t c=0; c<(-step-1) && it != self->rend(); ++c)
it++;
delcount--;
}
}
}
}
}
#if defined(__SUNPRO_CC) && defined(_RWSTD_VER)
# if !defined(SWIG_NO_STD_NOITERATOR_TRAITS_STL)
# define SWIG_STD_NOITERATOR_TRAITS_STL
# endif
#endif
#if !defined(SWIG_STD_NOITERATOR_TRAITS_STL)
#include <iterator>
#else
namespace std {
template <class Iterator>
struct iterator_traits {
typedef ptrdiff_t difference_type;
typedef typename Iterator::value_type value_type;
};
template <class Iterator, class Category,class T, class Reference, class Pointer, class Distance>
struct iterator_traits<__reverse_bi_iterator<Iterator,Category,T,Reference,Pointer,Distance> > {
typedef Distance difference_type;
typedef T value_type;
};
template <class T>
struct iterator_traits<T*> {
typedef T value_type;
typedef ptrdiff_t difference_type;
};
template<typename _InputIterator>
inline typename iterator_traits<_InputIterator>::difference_type
distance(_InputIterator __first, _InputIterator __last)
{
typename iterator_traits<_InputIterator>::difference_type __n = 0;
while (__first != __last) {
++__first; ++__n;
}
return __n;
}
}
#endif
namespace swig {
template<typename OutIterator>
class SwigPyIterator_T : public SwigPyIterator
{
public:
typedef OutIterator out_iterator;
typedef typename std::iterator_traits<out_iterator>::value_type value_type;
typedef SwigPyIterator_T<out_iterator> self_type;
SwigPyIterator_T(out_iterator curr, PyObject *seq)
: SwigPyIterator(seq), current(curr)
{
}
const out_iterator& get_current() const
{
return current;
}
bool equal (const SwigPyIterator &iter) const
{
const self_type *iters = dynamic_cast<const self_type *>(&iter);
if (iters) {
return (current == iters->get_current());
} else {
throw std::invalid_argument("bad iterator type");
}
}
ptrdiff_t distance(const SwigPyIterator &iter) const
{
const self_type *iters = dynamic_cast<const self_type *>(&iter);
if (iters) {
return std::distance(current, iters->get_current());
} else {
throw std::invalid_argument("bad iterator type");
}
}
protected:
out_iterator current;
};
template <class ValueType>
struct from_oper
{
typedef const ValueType& argument_type;
typedef PyObject *result_type;
result_type operator()(argument_type v) const
{
return swig::from(v);
}
};
template<typename OutIterator,
typename ValueType = typename std::iterator_traits<OutIterator>::value_type,
typename FromOper = from_oper<ValueType> >
class SwigPyIteratorOpen_T : public SwigPyIterator_T<OutIterator>
{
public:
FromOper from;
typedef OutIterator out_iterator;
typedef ValueType value_type;
typedef SwigPyIterator_T<out_iterator> base;
typedef SwigPyIteratorOpen_T<OutIterator, ValueType, FromOper> self_type;
SwigPyIteratorOpen_T(out_iterator curr, PyObject *seq)
: SwigPyIterator_T<OutIterator>(curr, seq)
{
}
PyObject *value() const {
return from(static_cast<const value_type&>(*(base::current)));
}
SwigPyIterator *copy() const
{
return new self_type(*this);
}
SwigPyIterator *incr(size_t n = 1)
{
while (n--) {
++base::current;
}
return this;
}
SwigPyIterator *decr(size_t n = 1)
{
while (n--) {
--base::current;
}
return this;
}
};
template<typename OutIterator,
typename ValueType = typename std::iterator_traits<OutIterator>::value_type,
typename FromOper = from_oper<ValueType> >
class SwigPyIteratorClosed_T : public SwigPyIterator_T<OutIterator>
{
public:
FromOper from;
typedef OutIterator out_iterator;
typedef ValueType value_type;
typedef SwigPyIterator_T<out_iterator> base;
typedef SwigPyIteratorClosed_T<OutIterator, ValueType, FromOper> self_type;
SwigPyIteratorClosed_T(out_iterator curr, out_iterator first, out_iterator last, PyObject *seq)
: SwigPyIterator_T<OutIterator>(curr, seq), begin(first), end(last)
{
}
PyObject *value() const {
if (base::current == end) {
throw stop_iteration();
} else {
return from(static_cast<const value_type&>(*(base::current)));
}
}
SwigPyIterator *copy() const
{
return new self_type(*this);
}
SwigPyIterator *incr(size_t n = 1)
{
while (n--) {
if (base::current == end) {
throw stop_iteration();
} else {
++base::current;
}
}
return this;
}
SwigPyIterator *decr(size_t n = 1)
{
while (n--) {
if (base::current == begin) {
throw stop_iteration();
} else {
--base::current;
}
}
return this;
}
private:
out_iterator begin;
out_iterator end;
};
template<typename OutIter>
inline SwigPyIterator*
make_output_iterator(const OutIter& current, const OutIter& begin,const OutIter& end, PyObject *seq = 0)
{
return new SwigPyIteratorClosed_T<OutIter>(current, begin, end, seq);
}
template<typename OutIter>
inline SwigPyIterator*
make_output_iterator(const OutIter& current, PyObject *seq = 0)
{
return new SwigPyIteratorOpen_T<OutIter>(current, seq);
}
}
namespace swig
{
template <class T>
struct SwigPySequence_Ref
{
SwigPySequence_Ref(PyObject* seq, int index)
: _seq(seq), _index(index)
{
}
operator T () const
{
swig::SwigVar_PyObject item = PySequence_GetItem(_seq, _index);
try {
return swig::as<T>(item, true);
} catch (std::exception& e) {
char msg[1024];
sprintf(msg, "in sequence element %d ", _index);
if (!PyErr_Occurred()) {
::SWIG_Error(SWIG_TypeError, swig::type_name<T>());
}
SWIG_Python_AddErrorMsg(msg);
SWIG_Python_AddErrorMsg(e.what());
throw;
}
}
SwigPySequence_Ref& operator=(const T& v)
{
PySequence_SetItem(_seq, _index, swig::from<T>(v));
return *this;
}
private:
PyObject* _seq;
int _index;
};
template <class T>
struct SwigPySequence_ArrowProxy
{
SwigPySequence_ArrowProxy(const T& x): m_value(x) {}
const T* operator->() const { return &m_value; }
operator const T*() const { return &m_value; }
T m_value;
};
template <class T, class Reference >
struct SwigPySequence_InputIterator
{
typedef SwigPySequence_InputIterator<T, Reference > self;
typedef std::random_access_iterator_tag iterator_category;
typedef Reference reference;
typedef T value_type;
typedef T* pointer;
typedef int difference_type;
SwigPySequence_InputIterator()
{
}
SwigPySequence_InputIterator(PyObject* seq, int index)
: _seq(seq), _index(index)
{
}
reference operator*() const
{
return reference(_seq, _index);
}
SwigPySequence_ArrowProxy<T>
operator->() const {
return SwigPySequence_ArrowProxy<T>(operator*());
}
bool operator==(const self& ri) const
{
return (_index == ri._index) && (_seq == ri._seq);
}
bool operator!=(const self& ri) const
{
return !(operator==(ri));
}
self& operator ++ ()
{
++_index;
return *this;
}
self& operator -- ()
{
--_index;
return *this;
}
self& operator += (difference_type n)
{
_index += n;
return *this;
}
self operator +(difference_type n) const
{
return self(_seq, _index + n);
}
self& operator -= (difference_type n)
{
_index -= n;
return *this;
}
self operator -(difference_type n) const
{
return self(_seq, _index - n);
}
difference_type operator - (const self& ri) const
{
return _index - ri._index;
}
bool operator < (const self& ri) const
{
return _index < ri._index;
}
reference
operator[](difference_type n) const
{
return reference(_seq, _index + n);
}
private:
PyObject* _seq;
difference_type _index;
};
template <class T>
struct SwigPySequence_Cont
{
typedef SwigPySequence_Ref<T> reference;
typedef const SwigPySequence_Ref<T> const_reference;
typedef T value_type;
typedef T* pointer;
typedef int difference_type;
typedef int size_type;
typedef const pointer const_pointer;
typedef SwigPySequence_InputIterator<T, reference> iterator;
typedef SwigPySequence_InputIterator<T, const_reference> const_iterator;
SwigPySequence_Cont(PyObject* seq) : _seq(0)
{
if (!PySequence_Check(seq)) {
throw std::invalid_argument("a sequence is expected");
}
_seq = seq;
Py_INCREF(_seq);
}
~SwigPySequence_Cont()
{
Py_XDECREF(_seq);
}
size_type size() const
{
return static_cast<size_type>(PySequence_Size(_seq));
}
bool empty() const
{
return size() == 0;
}
iterator begin()
{
return iterator(_seq, 0);
}
const_iterator begin() const
{
return const_iterator(_seq, 0);
}
iterator end()
{
return iterator(_seq, size());
}
const_iterator end() const
{
return const_iterator(_seq, size());
}
reference operator[](difference_type n)
{
return reference(_seq, n);
}
const_reference operator[](difference_type n) const
{
return const_reference(_seq, n);
}
bool check(bool set_err = true) const
{
int s = size();
for (int i = 0; i < s; ++i) {
swig::SwigVar_PyObject item = PySequence_GetItem(_seq, i);
if (!swig::check<value_type>(item)) {
if (set_err) {
char msg[1024];
sprintf(msg, "in sequence element %d", i);
SWIG_Error(SWIG_RuntimeError, msg);
}
return false;
}
}
return true;
}
private:
PyObject* _seq;
};
}
SWIGINTERN int
SWIG_AsVal_double (PyObject *obj, double *val)
{
int res = SWIG_TypeError;
if (PyFloat_Check(obj)) {
if (val) *val = PyFloat_AsDouble(obj);
return SWIG_OK;
} else if (PyInt_Check(obj)) {
if (val) *val = PyInt_AsLong(obj);
return SWIG_OK;
} else if (PyLong_Check(obj)) {
double v = PyLong_AsDouble(obj);
if (!PyErr_Occurred()) {
if (val) *val = v;
return SWIG_OK;
} else {
PyErr_Clear();
}
}
#ifdef SWIG_PYTHON_CAST_MODE
{
int dispatch = 0;
double d = PyFloat_AsDouble(obj);
if (!PyErr_Occurred()) {
if (val) *val = d;
return SWIG_AddCast(SWIG_OK);
} else {
PyErr_Clear();
}
if (!dispatch) {
long v = PyLong_AsLong(obj);
if (!PyErr_Occurred()) {
if (val) *val = v;
return SWIG_AddCast(SWIG_AddCast(SWIG_OK));
} else {
PyErr_Clear();
}
}
}
#endif
return res;
}
#include <limits.h>
#if !defined(SWIG_NO_LLONG_MAX)
# if !defined(LLONG_MAX) && defined(__GNUC__) && defined (__LONG_LONG_MAX__)
# define LLONG_MAX __LONG_LONG_MAX__
# define LLONG_MIN (-LLONG_MAX - 1LL)
# define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL)
# endif
#endif
#include <float.h>
#include <math.h>
SWIGINTERNINLINE int
SWIG_CanCastAsInteger(double *d, double min, double max) {
double x = *d;
if ((min <= x && x <= max)) {
double fx = floor(x);
double cx = ceil(x);
double rd = ((x - fx) < 0.5) ? fx : cx; /* simple rint */
if ((errno == EDOM) || (errno == ERANGE)) {
errno = 0;
} else {
double summ, reps, diff;
if (rd < x) {
diff = x - rd;
} else if (rd > x) {
diff = rd - x;
} else {
return 1;
}
summ = rd + x;
reps = diff/summ;
if (reps < 8*DBL_EPSILON) {
*d = rd;
return 1;
}
}
}
return 0;
}
SWIGINTERN int
SWIG_AsVal_long (PyObject *obj, long* val)
{
if (PyInt_Check(obj)) {
if (val) *val = PyInt_AsLong(obj);
return SWIG_OK;
} else if (PyLong_Check(obj)) {
long v = PyLong_AsLong(obj);
if (!PyErr_Occurred()) {
if (val) *val = v;
return SWIG_OK;
} else {
PyErr_Clear();
}
}
#ifdef SWIG_PYTHON_CAST_MODE
{
int dispatch = 0;
long v = PyInt_AsLong(obj);
if (!PyErr_Occurred()) {
if (val) *val = v;
return SWIG_AddCast(SWIG_OK);
} else {
PyErr_Clear();
}
if (!dispatch) {
double d;
int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d));
if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, LONG_MIN, LONG_MAX)) {
if (val) *val = (long)(d);
return res;
}
}
}
#endif
return SWIG_TypeError;
}
SWIGINTERN int
SWIG_AsVal_int (PyObject * obj, int *val)
{
long v;
int res = SWIG_AsVal_long (obj, &v);
if (SWIG_IsOK(res)) {
if ((v < INT_MIN || v > INT_MAX)) {
return SWIG_OverflowError;
} else {
if (val) *val = static_cast< int >(v);
}
}
return res;
}
SWIGINTERN int
SWIG_AsVal_bool (PyObject *obj, bool *val)
{
int r;
if (!PyBool_Check(obj))
return SWIG_ERROR;
r = PyObject_IsTrue(obj);
if (r == -1)
return SWIG_ERROR;
if (val) *val = r ? true : false;
return SWIG_OK;
}
/* ---------------------------------------------------
* C++ director class methods
* --------------------------------------------------- */
#include "SimMaterialLayerSet_OpaqueLayerSet_Roof_wrap.h"
#ifdef __cplusplus
extern "C" {
#endif
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_SimMatLayerSet_OutsideLayer__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *arg1 = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::SimMatLayerSet_OutsideLayer_optional *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"O:SimMaterialLayerSet_OpaqueLayerSet_Roof_SimMatLayerSet_OutsideLayer",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_SimMatLayerSet_OutsideLayer" "', argument " "1"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof const *""'");
}
arg1 = reinterpret_cast< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof * >(argp1);
result = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::SimMatLayerSet_OutsideLayer_optional *) &((schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof const *)arg1)->SimMatLayerSet_OutsideLayer();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_xsd__cxx__tree__optionalT_xsd__cxx__tree__idrefT_char_xsd__cxx__tree__ncname_xsd__cxx__tree___type_t_false_t, 0 | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_SimMatLayerSet_OutsideLayer__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *arg1 = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::SimMatLayerSet_OutsideLayer_optional *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"O:SimMaterialLayerSet_OpaqueLayerSet_Roof_SimMatLayerSet_OutsideLayer",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_SimMatLayerSet_OutsideLayer" "', argument " "1"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *""'");
}
arg1 = reinterpret_cast< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof * >(argp1);
result = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::SimMatLayerSet_OutsideLayer_optional *) &(arg1)->SimMatLayerSet_OutsideLayer();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_xsd__cxx__tree__optionalT_xsd__cxx__tree__idrefT_char_xsd__cxx__tree__ncname_xsd__cxx__tree___type_t_false_t, 0 | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_SimMatLayerSet_OutsideLayer__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *arg1 = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *) 0 ;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::SimMatLayerSet_OutsideLayer_type *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
if (!PyArg_ParseTuple(args,(char *)"OO:SimMaterialLayerSet_OpaqueLayerSet_Roof_SimMatLayerSet_OutsideLayer",&obj0,&obj1)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_SimMatLayerSet_OutsideLayer" "', argument " "1"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *""'");
}
arg1 = reinterpret_cast< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof * >(argp1);
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_xsd__cxx__tree__idrefT_char_xsd__cxx__tree__ncname_xsd__cxx__tree___type_t, 0 | 0);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_SimMatLayerSet_OutsideLayer" "', argument " "2"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::SimMatLayerSet_OutsideLayer_type const &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_SimMatLayerSet_OutsideLayer" "', argument " "2"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::SimMatLayerSet_OutsideLayer_type const &""'");
}
arg2 = reinterpret_cast< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::SimMatLayerSet_OutsideLayer_type * >(argp2);
(arg1)->SimMatLayerSet_OutsideLayer((schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::SimMatLayerSet_OutsideLayer_type const &)*arg2);
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_SimMatLayerSet_OutsideLayer__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *arg1 = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *) 0 ;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::SimMatLayerSet_OutsideLayer_optional *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
if (!PyArg_ParseTuple(args,(char *)"OO:SimMaterialLayerSet_OpaqueLayerSet_Roof_SimMatLayerSet_OutsideLayer",&obj0,&obj1)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_SimMatLayerSet_OutsideLayer" "', argument " "1"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *""'");
}
arg1 = reinterpret_cast< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof * >(argp1);
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_xsd__cxx__tree__optionalT_xsd__cxx__tree__idrefT_char_xsd__cxx__tree__ncname_xsd__cxx__tree___type_t_false_t, 0 | 0);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_SimMatLayerSet_OutsideLayer" "', argument " "2"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::SimMatLayerSet_OutsideLayer_optional const &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_SimMatLayerSet_OutsideLayer" "', argument " "2"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::SimMatLayerSet_OutsideLayer_optional const &""'");
}
arg2 = reinterpret_cast< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::SimMatLayerSet_OutsideLayer_optional * >(argp2);
(arg1)->SimMatLayerSet_OutsideLayer((schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::SimMatLayerSet_OutsideLayer_optional const &)*arg2);
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_SimMatLayerSet_OutsideLayer__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *arg1 = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *) 0 ;
::std::auto_ptr< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::SimMatLayerSet_OutsideLayer_type > arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 ;
int res2 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
if (!PyArg_ParseTuple(args,(char *)"OO:SimMaterialLayerSet_OpaqueLayerSet_Roof_SimMatLayerSet_OutsideLayer",&obj0,&obj1)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_SimMatLayerSet_OutsideLayer" "', argument " "1"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *""'");
}
arg1 = reinterpret_cast< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof * >(argp1);
{
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__auto_ptrT_xml_schema__idref_t, 0 | 0);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_SimMatLayerSet_OutsideLayer" "', argument " "2"" of type '" "::std::auto_ptr< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::SimMatLayerSet_OutsideLayer_type >""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_SimMatLayerSet_OutsideLayer" "', argument " "2"" of type '" "::std::auto_ptr< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::SimMatLayerSet_OutsideLayer_type >""'");
} else {
::std::auto_ptr< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::SimMatLayerSet_OutsideLayer_type > * temp = reinterpret_cast< ::std::auto_ptr< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::SimMatLayerSet_OutsideLayer_type > * >(argp2);
arg2 = *temp;
if (SWIG_IsNewObj(res2)) delete temp;
}
}
(arg1)->SimMatLayerSet_OutsideLayer(arg2);
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_SimMatLayerSet_OutsideLayer(PyObject *self, PyObject *args) {
int argc;
PyObject *argv[3] = {
0
};
int ii;
if (!PyTuple_Check(args)) SWIG_fail;
argc = args ? (int)PyObject_Length(args) : 0;
for (ii = 0; (ii < 2) && (ii < argc); ii++) {
argv[ii] = PyTuple_GET_ITEM(args,ii);
}
if (argc == 1) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_SimMatLayerSet_OutsideLayer__SWIG_1(self, args);
}
}
if (argc == 1) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_SimMatLayerSet_OutsideLayer__SWIG_0(self, args);
}
}
if (argc == 2) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0);
_v = SWIG_CheckState(res);
if (_v) {
int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_xsd__cxx__tree__idrefT_char_xsd__cxx__tree__ncname_xsd__cxx__tree___type_t, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_SimMatLayerSet_OutsideLayer__SWIG_2(self, args);
}
}
}
if (argc == 2) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0);
_v = SWIG_CheckState(res);
if (_v) {
int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_xsd__cxx__tree__optionalT_xsd__cxx__tree__idrefT_char_xsd__cxx__tree__ncname_xsd__cxx__tree___type_t_false_t, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_SimMatLayerSet_OutsideLayer__SWIG_3(self, args);
}
}
}
if (argc == 2) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0);
_v = SWIG_CheckState(res);
if (_v) {
int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_std__auto_ptrT_xml_schema__idref_t, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_SimMatLayerSet_OutsideLayer__SWIG_4(self, args);
}
}
}
fail:
SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SimMaterialLayerSet_OpaqueLayerSet_Roof_SimMatLayerSet_OutsideLayer'.\n"
" Possible C/C++ prototypes are:\n"
" schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::SimMatLayerSet_OutsideLayer() const\n"
" schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::SimMatLayerSet_OutsideLayer()\n"
" schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::SimMatLayerSet_OutsideLayer(schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::SimMatLayerSet_OutsideLayer_type const &)\n"
" schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::SimMatLayerSet_OutsideLayer(schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::SimMatLayerSet_OutsideLayer_optional const &)\n"
" schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::SimMatLayerSet_OutsideLayer(::std::auto_ptr< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::SimMatLayerSet_OutsideLayer_type >)\n");
return 0;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_SimMatLayerSet_Layer_2_10__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *arg1 = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::SimMatLayerSet_Layer_2_10_optional *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"O:SimMaterialLayerSet_OpaqueLayerSet_Roof_SimMatLayerSet_Layer_2_10",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_SimMatLayerSet_Layer_2_10" "', argument " "1"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof const *""'");
}
arg1 = reinterpret_cast< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof * >(argp1);
result = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::SimMatLayerSet_Layer_2_10_optional *) &((schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof const *)arg1)->SimMatLayerSet_Layer_2_10();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_xsd__cxx__tree__optionalT_xsd__cxx__tree__idrefsT_char_xsd__cxx__tree__simple_type_xsd__cxx__tree__idref_t_xsd__cxx__tree__fundamental_pT_xsd__cxx__tree__idrefsT_char_xsd__cxx__tree__simple_type_xsd__cxx__tree__idref_t_t__r_t, 0 | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_SimMatLayerSet_Layer_2_10__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *arg1 = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::SimMatLayerSet_Layer_2_10_optional *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"O:SimMaterialLayerSet_OpaqueLayerSet_Roof_SimMatLayerSet_Layer_2_10",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_SimMatLayerSet_Layer_2_10" "', argument " "1"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *""'");
}
arg1 = reinterpret_cast< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof * >(argp1);
result = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::SimMatLayerSet_Layer_2_10_optional *) &(arg1)->SimMatLayerSet_Layer_2_10();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_xsd__cxx__tree__optionalT_xsd__cxx__tree__idrefsT_char_xsd__cxx__tree__simple_type_xsd__cxx__tree__idref_t_xsd__cxx__tree__fundamental_pT_xsd__cxx__tree__idrefsT_char_xsd__cxx__tree__simple_type_xsd__cxx__tree__idref_t_t__r_t, 0 | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_SimMatLayerSet_Layer_2_10__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *arg1 = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *) 0 ;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::SimMatLayerSet_Layer_2_10_type *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
if (!PyArg_ParseTuple(args,(char *)"OO:SimMaterialLayerSet_OpaqueLayerSet_Roof_SimMatLayerSet_Layer_2_10",&obj0,&obj1)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_SimMatLayerSet_Layer_2_10" "', argument " "1"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *""'");
}
arg1 = reinterpret_cast< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof * >(argp1);
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_xsd__cxx__tree__idrefsT_char_xsd__cxx__tree__simple_type_xsd__cxx__tree__idref_t, 0 | 0);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_SimMatLayerSet_Layer_2_10" "', argument " "2"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::SimMatLayerSet_Layer_2_10_type const &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_SimMatLayerSet_Layer_2_10" "', argument " "2"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::SimMatLayerSet_Layer_2_10_type const &""'");
}
arg2 = reinterpret_cast< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::SimMatLayerSet_Layer_2_10_type * >(argp2);
(arg1)->SimMatLayerSet_Layer_2_10((schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::SimMatLayerSet_Layer_2_10_type const &)*arg2);
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_SimMatLayerSet_Layer_2_10__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *arg1 = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *) 0 ;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::SimMatLayerSet_Layer_2_10_optional *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
if (!PyArg_ParseTuple(args,(char *)"OO:SimMaterialLayerSet_OpaqueLayerSet_Roof_SimMatLayerSet_Layer_2_10",&obj0,&obj1)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_SimMatLayerSet_Layer_2_10" "', argument " "1"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *""'");
}
arg1 = reinterpret_cast< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof * >(argp1);
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_xsd__cxx__tree__optionalT_xsd__cxx__tree__idrefsT_char_xsd__cxx__tree__simple_type_xsd__cxx__tree__idref_t_xsd__cxx__tree__fundamental_pT_xsd__cxx__tree__idrefsT_char_xsd__cxx__tree__simple_type_xsd__cxx__tree__idref_t_t__r_t, 0 | 0);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_SimMatLayerSet_Layer_2_10" "', argument " "2"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::SimMatLayerSet_Layer_2_10_optional const &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_SimMatLayerSet_Layer_2_10" "', argument " "2"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::SimMatLayerSet_Layer_2_10_optional const &""'");
}
arg2 = reinterpret_cast< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::SimMatLayerSet_Layer_2_10_optional * >(argp2);
(arg1)->SimMatLayerSet_Layer_2_10((schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::SimMatLayerSet_Layer_2_10_optional const &)*arg2);
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_SimMatLayerSet_Layer_2_10__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *arg1 = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *) 0 ;
::std::auto_ptr< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::SimMatLayerSet_Layer_2_10_type > arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 ;
int res2 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
if (!PyArg_ParseTuple(args,(char *)"OO:SimMaterialLayerSet_OpaqueLayerSet_Roof_SimMatLayerSet_Layer_2_10",&obj0,&obj1)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_SimMatLayerSet_Layer_2_10" "', argument " "1"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *""'");
}
arg1 = reinterpret_cast< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof * >(argp1);
{
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__auto_ptrT_xml_schema__idrefs_t, 0 | 0);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_SimMatLayerSet_Layer_2_10" "', argument " "2"" of type '" "::std::auto_ptr< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::SimMatLayerSet_Layer_2_10_type >""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_SimMatLayerSet_Layer_2_10" "', argument " "2"" of type '" "::std::auto_ptr< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::SimMatLayerSet_Layer_2_10_type >""'");
} else {
::std::auto_ptr< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::SimMatLayerSet_Layer_2_10_type > * temp = reinterpret_cast< ::std::auto_ptr< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::SimMatLayerSet_Layer_2_10_type > * >(argp2);
arg2 = *temp;
if (SWIG_IsNewObj(res2)) delete temp;
}
}
(arg1)->SimMatLayerSet_Layer_2_10(arg2);
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_SimMatLayerSet_Layer_2_10(PyObject *self, PyObject *args) {
int argc;
PyObject *argv[3] = {
0
};
int ii;
if (!PyTuple_Check(args)) SWIG_fail;
argc = args ? (int)PyObject_Length(args) : 0;
for (ii = 0; (ii < 2) && (ii < argc); ii++) {
argv[ii] = PyTuple_GET_ITEM(args,ii);
}
if (argc == 1) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_SimMatLayerSet_Layer_2_10__SWIG_1(self, args);
}
}
if (argc == 1) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_SimMatLayerSet_Layer_2_10__SWIG_0(self, args);
}
}
if (argc == 2) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0);
_v = SWIG_CheckState(res);
if (_v) {
int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_xsd__cxx__tree__idrefsT_char_xsd__cxx__tree__simple_type_xsd__cxx__tree__idref_t, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_SimMatLayerSet_Layer_2_10__SWIG_2(self, args);
}
}
}
if (argc == 2) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0);
_v = SWIG_CheckState(res);
if (_v) {
int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_xsd__cxx__tree__optionalT_xsd__cxx__tree__idrefsT_char_xsd__cxx__tree__simple_type_xsd__cxx__tree__idref_t_xsd__cxx__tree__fundamental_pT_xsd__cxx__tree__idrefsT_char_xsd__cxx__tree__simple_type_xsd__cxx__tree__idref_t_t__r_t, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_SimMatLayerSet_Layer_2_10__SWIG_3(self, args);
}
}
}
if (argc == 2) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0);
_v = SWIG_CheckState(res);
if (_v) {
int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_std__auto_ptrT_xml_schema__idrefs_t, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_SimMatLayerSet_Layer_2_10__SWIG_4(self, args);
}
}
}
fail:
SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SimMaterialLayerSet_OpaqueLayerSet_Roof_SimMatLayerSet_Layer_2_10'.\n"
" Possible C/C++ prototypes are:\n"
" schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::SimMatLayerSet_Layer_2_10() const\n"
" schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::SimMatLayerSet_Layer_2_10()\n"
" schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::SimMatLayerSet_Layer_2_10(schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::SimMatLayerSet_Layer_2_10_type const &)\n"
" schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::SimMatLayerSet_Layer_2_10(schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::SimMatLayerSet_Layer_2_10_optional const &)\n"
" schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::SimMatLayerSet_Layer_2_10(::std::auto_ptr< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::SimMatLayerSet_Layer_2_10_type >)\n");
return 0;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24ConsAssmNotes__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *arg1 = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24ConsAssmNotes_optional *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"O:SimMaterialLayerSet_OpaqueLayerSet_Roof_T24ConsAssmNotes",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24ConsAssmNotes" "', argument " "1"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof const *""'");
}
arg1 = reinterpret_cast< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof * >(argp1);
result = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24ConsAssmNotes_optional *) &((schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof const *)arg1)->T24ConsAssmNotes();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_xsd__cxx__tree__optionalT_xsd__cxx__tree__stringT_char_xsd__cxx__tree__simple_type_t_false_t, 0 | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24ConsAssmNotes__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *arg1 = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24ConsAssmNotes_optional *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"O:SimMaterialLayerSet_OpaqueLayerSet_Roof_T24ConsAssmNotes",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24ConsAssmNotes" "', argument " "1"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *""'");
}
arg1 = reinterpret_cast< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof * >(argp1);
result = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24ConsAssmNotes_optional *) &(arg1)->T24ConsAssmNotes();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_xsd__cxx__tree__optionalT_xsd__cxx__tree__stringT_char_xsd__cxx__tree__simple_type_t_false_t, 0 | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24ConsAssmNotes__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *arg1 = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *) 0 ;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24ConsAssmNotes_type *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
if (!PyArg_ParseTuple(args,(char *)"OO:SimMaterialLayerSet_OpaqueLayerSet_Roof_T24ConsAssmNotes",&obj0,&obj1)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24ConsAssmNotes" "', argument " "1"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *""'");
}
arg1 = reinterpret_cast< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof * >(argp1);
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_xsd__cxx__tree__stringT_char_xsd__cxx__tree__simple_type_t, 0 | 0);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24ConsAssmNotes" "', argument " "2"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24ConsAssmNotes_type const &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24ConsAssmNotes" "', argument " "2"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24ConsAssmNotes_type const &""'");
}
arg2 = reinterpret_cast< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24ConsAssmNotes_type * >(argp2);
(arg1)->T24ConsAssmNotes((schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24ConsAssmNotes_type const &)*arg2);
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24ConsAssmNotes__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *arg1 = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *) 0 ;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24ConsAssmNotes_optional *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
if (!PyArg_ParseTuple(args,(char *)"OO:SimMaterialLayerSet_OpaqueLayerSet_Roof_T24ConsAssmNotes",&obj0,&obj1)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24ConsAssmNotes" "', argument " "1"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *""'");
}
arg1 = reinterpret_cast< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof * >(argp1);
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_xsd__cxx__tree__optionalT_xsd__cxx__tree__stringT_char_xsd__cxx__tree__simple_type_t_false_t, 0 | 0);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24ConsAssmNotes" "', argument " "2"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24ConsAssmNotes_optional const &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24ConsAssmNotes" "', argument " "2"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24ConsAssmNotes_optional const &""'");
}
arg2 = reinterpret_cast< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24ConsAssmNotes_optional * >(argp2);
(arg1)->T24ConsAssmNotes((schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24ConsAssmNotes_optional const &)*arg2);
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24ConsAssmNotes__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *arg1 = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *) 0 ;
::std::auto_ptr< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24ConsAssmNotes_type > arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 ;
int res2 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
if (!PyArg_ParseTuple(args,(char *)"OO:SimMaterialLayerSet_OpaqueLayerSet_Roof_T24ConsAssmNotes",&obj0,&obj1)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24ConsAssmNotes" "', argument " "1"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *""'");
}
arg1 = reinterpret_cast< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof * >(argp1);
{
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__auto_ptrT_xml_schema__string_t, 0 | 0);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24ConsAssmNotes" "', argument " "2"" of type '" "::std::auto_ptr< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24ConsAssmNotes_type >""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24ConsAssmNotes" "', argument " "2"" of type '" "::std::auto_ptr< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24ConsAssmNotes_type >""'");
} else {
::std::auto_ptr< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24ConsAssmNotes_type > * temp = reinterpret_cast< ::std::auto_ptr< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24ConsAssmNotes_type > * >(argp2);
arg2 = *temp;
if (SWIG_IsNewObj(res2)) delete temp;
}
}
(arg1)->T24ConsAssmNotes(arg2);
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24ConsAssmNotes(PyObject *self, PyObject *args) {
int argc;
PyObject *argv[3] = {
0
};
int ii;
if (!PyTuple_Check(args)) SWIG_fail;
argc = args ? (int)PyObject_Length(args) : 0;
for (ii = 0; (ii < 2) && (ii < argc); ii++) {
argv[ii] = PyTuple_GET_ITEM(args,ii);
}
if (argc == 1) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24ConsAssmNotes__SWIG_1(self, args);
}
}
if (argc == 1) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24ConsAssmNotes__SWIG_0(self, args);
}
}
if (argc == 2) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0);
_v = SWIG_CheckState(res);
if (_v) {
int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_xsd__cxx__tree__stringT_char_xsd__cxx__tree__simple_type_t, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24ConsAssmNotes__SWIG_2(self, args);
}
}
}
if (argc == 2) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0);
_v = SWIG_CheckState(res);
if (_v) {
int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_xsd__cxx__tree__optionalT_xsd__cxx__tree__stringT_char_xsd__cxx__tree__simple_type_t_false_t, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24ConsAssmNotes__SWIG_3(self, args);
}
}
}
if (argc == 2) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0);
_v = SWIG_CheckState(res);
if (_v) {
int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_std__auto_ptrT_xml_schema__string_t, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24ConsAssmNotes__SWIG_4(self, args);
}
}
}
fail:
SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SimMaterialLayerSet_OpaqueLayerSet_Roof_T24ConsAssmNotes'.\n"
" Possible C/C++ prototypes are:\n"
" schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24ConsAssmNotes() const\n"
" schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24ConsAssmNotes()\n"
" schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24ConsAssmNotes(schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24ConsAssmNotes_type const &)\n"
" schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24ConsAssmNotes(schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24ConsAssmNotes_optional const &)\n"
" schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24ConsAssmNotes(::std::auto_ptr< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24ConsAssmNotes_type >)\n");
return 0;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCAgedEmittance__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *arg1 = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCAgedEmittance_optional *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"O:SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCAgedEmittance",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCAgedEmittance" "', argument " "1"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof const *""'");
}
arg1 = reinterpret_cast< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof * >(argp1);
result = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCAgedEmittance_optional *) &((schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof const *)arg1)->T24CRRCAgedEmittance();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_xsd__cxx__tree__optionalT_double_true_t, 0 | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCAgedEmittance__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *arg1 = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCAgedEmittance_optional *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"O:SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCAgedEmittance",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCAgedEmittance" "', argument " "1"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *""'");
}
arg1 = reinterpret_cast< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof * >(argp1);
result = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCAgedEmittance_optional *) &(arg1)->T24CRRCAgedEmittance();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_xsd__cxx__tree__optionalT_double_true_t, 0 | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCAgedEmittance__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *arg1 = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *) 0 ;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCAgedEmittance_type *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCAgedEmittance_type temp2 ;
double val2 ;
int ecode2 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
if (!PyArg_ParseTuple(args,(char *)"OO:SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCAgedEmittance",&obj0,&obj1)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCAgedEmittance" "', argument " "1"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *""'");
}
arg1 = reinterpret_cast< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof * >(argp1);
ecode2 = SWIG_AsVal_double(obj1, &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCAgedEmittance" "', argument " "2"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCAgedEmittance_type""'");
}
temp2 = static_cast< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCAgedEmittance_type >(val2);
arg2 = &temp2;
(arg1)->T24CRRCAgedEmittance((schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCAgedEmittance_type const &)*arg2);
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCAgedEmittance__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *arg1 = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *) 0 ;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCAgedEmittance_optional *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
if (!PyArg_ParseTuple(args,(char *)"OO:SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCAgedEmittance",&obj0,&obj1)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCAgedEmittance" "', argument " "1"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *""'");
}
arg1 = reinterpret_cast< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof * >(argp1);
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_xsd__cxx__tree__optionalT_double_true_t, 0 | 0);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCAgedEmittance" "', argument " "2"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCAgedEmittance_optional const &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCAgedEmittance" "', argument " "2"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCAgedEmittance_optional const &""'");
}
arg2 = reinterpret_cast< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCAgedEmittance_optional * >(argp2);
(arg1)->T24CRRCAgedEmittance((schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCAgedEmittance_optional const &)*arg2);
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCAgedEmittance(PyObject *self, PyObject *args) {
int argc;
PyObject *argv[3] = {
0
};
int ii;
if (!PyTuple_Check(args)) SWIG_fail;
argc = args ? (int)PyObject_Length(args) : 0;
for (ii = 0; (ii < 2) && (ii < argc); ii++) {
argv[ii] = PyTuple_GET_ITEM(args,ii);
}
if (argc == 1) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCAgedEmittance__SWIG_1(self, args);
}
}
if (argc == 1) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCAgedEmittance__SWIG_0(self, args);
}
}
if (argc == 2) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0);
_v = SWIG_CheckState(res);
if (_v) {
int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_xsd__cxx__tree__optionalT_double_true_t, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCAgedEmittance__SWIG_3(self, args);
}
}
}
if (argc == 2) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0);
_v = SWIG_CheckState(res);
if (_v) {
{
int res = SWIG_AsVal_double(argv[1], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
return _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCAgedEmittance__SWIG_2(self, args);
}
}
}
fail:
SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCAgedEmittance'.\n"
" Possible C/C++ prototypes are:\n"
" schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCAgedEmittance() const\n"
" schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCAgedEmittance()\n"
" schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCAgedEmittance(schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCAgedEmittance_type const &)\n"
" schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCAgedEmittance(schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCAgedEmittance_optional const &)\n");
return 0;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCAgedReflectance__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *arg1 = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCAgedReflectance_optional *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"O:SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCAgedReflectance",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCAgedReflectance" "', argument " "1"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof const *""'");
}
arg1 = reinterpret_cast< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof * >(argp1);
result = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCAgedReflectance_optional *) &((schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof const *)arg1)->T24CRRCAgedReflectance();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_xsd__cxx__tree__optionalT_double_true_t, 0 | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCAgedReflectance__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *arg1 = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCAgedReflectance_optional *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"O:SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCAgedReflectance",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCAgedReflectance" "', argument " "1"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *""'");
}
arg1 = reinterpret_cast< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof * >(argp1);
result = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCAgedReflectance_optional *) &(arg1)->T24CRRCAgedReflectance();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_xsd__cxx__tree__optionalT_double_true_t, 0 | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCAgedReflectance__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *arg1 = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *) 0 ;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCAgedReflectance_type *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCAgedReflectance_type temp2 ;
double val2 ;
int ecode2 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
if (!PyArg_ParseTuple(args,(char *)"OO:SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCAgedReflectance",&obj0,&obj1)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCAgedReflectance" "', argument " "1"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *""'");
}
arg1 = reinterpret_cast< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof * >(argp1);
ecode2 = SWIG_AsVal_double(obj1, &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCAgedReflectance" "', argument " "2"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCAgedReflectance_type""'");
}
temp2 = static_cast< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCAgedReflectance_type >(val2);
arg2 = &temp2;
(arg1)->T24CRRCAgedReflectance((schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCAgedReflectance_type const &)*arg2);
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCAgedReflectance__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *arg1 = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *) 0 ;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCAgedReflectance_optional *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
if (!PyArg_ParseTuple(args,(char *)"OO:SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCAgedReflectance",&obj0,&obj1)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCAgedReflectance" "', argument " "1"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *""'");
}
arg1 = reinterpret_cast< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof * >(argp1);
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_xsd__cxx__tree__optionalT_double_true_t, 0 | 0);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCAgedReflectance" "', argument " "2"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCAgedReflectance_optional const &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCAgedReflectance" "', argument " "2"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCAgedReflectance_optional const &""'");
}
arg2 = reinterpret_cast< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCAgedReflectance_optional * >(argp2);
(arg1)->T24CRRCAgedReflectance((schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCAgedReflectance_optional const &)*arg2);
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCAgedReflectance(PyObject *self, PyObject *args) {
int argc;
PyObject *argv[3] = {
0
};
int ii;
if (!PyTuple_Check(args)) SWIG_fail;
argc = args ? (int)PyObject_Length(args) : 0;
for (ii = 0; (ii < 2) && (ii < argc); ii++) {
argv[ii] = PyTuple_GET_ITEM(args,ii);
}
if (argc == 1) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCAgedReflectance__SWIG_1(self, args);
}
}
if (argc == 1) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCAgedReflectance__SWIG_0(self, args);
}
}
if (argc == 2) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0);
_v = SWIG_CheckState(res);
if (_v) {
int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_xsd__cxx__tree__optionalT_double_true_t, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCAgedReflectance__SWIG_3(self, args);
}
}
}
if (argc == 2) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0);
_v = SWIG_CheckState(res);
if (_v) {
{
int res = SWIG_AsVal_double(argv[1], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
return _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCAgedReflectance__SWIG_2(self, args);
}
}
}
fail:
SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCAgedReflectance'.\n"
" Possible C/C++ prototypes are:\n"
" schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCAgedReflectance() const\n"
" schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCAgedReflectance()\n"
" schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCAgedReflectance(schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCAgedReflectance_type const &)\n"
" schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCAgedReflectance(schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCAgedReflectance_optional const &)\n");
return 0;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCAgedSRI__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *arg1 = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCAgedSRI_optional *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"O:SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCAgedSRI",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCAgedSRI" "', argument " "1"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof const *""'");
}
arg1 = reinterpret_cast< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof * >(argp1);
result = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCAgedSRI_optional *) &((schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof const *)arg1)->T24CRRCAgedSRI();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_xsd__cxx__tree__optionalT_int_true_t, 0 | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCAgedSRI__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *arg1 = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCAgedSRI_optional *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"O:SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCAgedSRI",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCAgedSRI" "', argument " "1"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *""'");
}
arg1 = reinterpret_cast< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof * >(argp1);
result = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCAgedSRI_optional *) &(arg1)->T24CRRCAgedSRI();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_xsd__cxx__tree__optionalT_int_true_t, 0 | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCAgedSRI__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *arg1 = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *) 0 ;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCAgedSRI_type *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCAgedSRI_type temp2 ;
int val2 ;
int ecode2 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
if (!PyArg_ParseTuple(args,(char *)"OO:SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCAgedSRI",&obj0,&obj1)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCAgedSRI" "', argument " "1"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *""'");
}
arg1 = reinterpret_cast< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof * >(argp1);
ecode2 = SWIG_AsVal_int(obj1, &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCAgedSRI" "', argument " "2"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCAgedSRI_type""'");
}
temp2 = static_cast< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCAgedSRI_type >(val2);
arg2 = &temp2;
(arg1)->T24CRRCAgedSRI((schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCAgedSRI_type const &)*arg2);
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCAgedSRI__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *arg1 = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *) 0 ;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCAgedSRI_optional *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
if (!PyArg_ParseTuple(args,(char *)"OO:SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCAgedSRI",&obj0,&obj1)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCAgedSRI" "', argument " "1"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *""'");
}
arg1 = reinterpret_cast< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof * >(argp1);
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_xsd__cxx__tree__optionalT_int_true_t, 0 | 0);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCAgedSRI" "', argument " "2"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCAgedSRI_optional const &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCAgedSRI" "', argument " "2"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCAgedSRI_optional const &""'");
}
arg2 = reinterpret_cast< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCAgedSRI_optional * >(argp2);
(arg1)->T24CRRCAgedSRI((schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCAgedSRI_optional const &)*arg2);
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCAgedSRI(PyObject *self, PyObject *args) {
int argc;
PyObject *argv[3] = {
0
};
int ii;
if (!PyTuple_Check(args)) SWIG_fail;
argc = args ? (int)PyObject_Length(args) : 0;
for (ii = 0; (ii < 2) && (ii < argc); ii++) {
argv[ii] = PyTuple_GET_ITEM(args,ii);
}
if (argc == 1) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCAgedSRI__SWIG_1(self, args);
}
}
if (argc == 1) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCAgedSRI__SWIG_0(self, args);
}
}
if (argc == 2) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0);
_v = SWIG_CheckState(res);
if (_v) {
int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_xsd__cxx__tree__optionalT_int_true_t, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCAgedSRI__SWIG_3(self, args);
}
}
}
if (argc == 2) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0);
_v = SWIG_CheckState(res);
if (_v) {
{
int res = SWIG_AsVal_int(argv[1], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
return _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCAgedSRI__SWIG_2(self, args);
}
}
}
fail:
SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCAgedSRI'.\n"
" Possible C/C++ prototypes are:\n"
" schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCAgedSRI() const\n"
" schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCAgedSRI()\n"
" schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCAgedSRI(schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCAgedSRI_type const &)\n"
" schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCAgedSRI(schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCAgedSRI_optional const &)\n");
return 0;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCInitialEmitance__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *arg1 = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCInitialEmitance_optional *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"O:SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCInitialEmitance",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCInitialEmitance" "', argument " "1"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof const *""'");
}
arg1 = reinterpret_cast< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof * >(argp1);
result = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCInitialEmitance_optional *) &((schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof const *)arg1)->T24CRRCInitialEmitance();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_xsd__cxx__tree__optionalT_double_true_t, 0 | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCInitialEmitance__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *arg1 = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCInitialEmitance_optional *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"O:SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCInitialEmitance",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCInitialEmitance" "', argument " "1"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *""'");
}
arg1 = reinterpret_cast< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof * >(argp1);
result = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCInitialEmitance_optional *) &(arg1)->T24CRRCInitialEmitance();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_xsd__cxx__tree__optionalT_double_true_t, 0 | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCInitialEmitance__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *arg1 = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *) 0 ;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCInitialEmitance_type *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCInitialEmitance_type temp2 ;
double val2 ;
int ecode2 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
if (!PyArg_ParseTuple(args,(char *)"OO:SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCInitialEmitance",&obj0,&obj1)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCInitialEmitance" "', argument " "1"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *""'");
}
arg1 = reinterpret_cast< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof * >(argp1);
ecode2 = SWIG_AsVal_double(obj1, &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCInitialEmitance" "', argument " "2"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCInitialEmitance_type""'");
}
temp2 = static_cast< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCInitialEmitance_type >(val2);
arg2 = &temp2;
(arg1)->T24CRRCInitialEmitance((schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCInitialEmitance_type const &)*arg2);
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCInitialEmitance__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *arg1 = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *) 0 ;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCInitialEmitance_optional *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
if (!PyArg_ParseTuple(args,(char *)"OO:SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCInitialEmitance",&obj0,&obj1)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCInitialEmitance" "', argument " "1"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *""'");
}
arg1 = reinterpret_cast< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof * >(argp1);
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_xsd__cxx__tree__optionalT_double_true_t, 0 | 0);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCInitialEmitance" "', argument " "2"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCInitialEmitance_optional const &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCInitialEmitance" "', argument " "2"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCInitialEmitance_optional const &""'");
}
arg2 = reinterpret_cast< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCInitialEmitance_optional * >(argp2);
(arg1)->T24CRRCInitialEmitance((schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCInitialEmitance_optional const &)*arg2);
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCInitialEmitance(PyObject *self, PyObject *args) {
int argc;
PyObject *argv[3] = {
0
};
int ii;
if (!PyTuple_Check(args)) SWIG_fail;
argc = args ? (int)PyObject_Length(args) : 0;
for (ii = 0; (ii < 2) && (ii < argc); ii++) {
argv[ii] = PyTuple_GET_ITEM(args,ii);
}
if (argc == 1) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCInitialEmitance__SWIG_1(self, args);
}
}
if (argc == 1) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCInitialEmitance__SWIG_0(self, args);
}
}
if (argc == 2) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0);
_v = SWIG_CheckState(res);
if (_v) {
int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_xsd__cxx__tree__optionalT_double_true_t, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCInitialEmitance__SWIG_3(self, args);
}
}
}
if (argc == 2) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0);
_v = SWIG_CheckState(res);
if (_v) {
{
int res = SWIG_AsVal_double(argv[1], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
return _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCInitialEmitance__SWIG_2(self, args);
}
}
}
fail:
SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCInitialEmitance'.\n"
" Possible C/C++ prototypes are:\n"
" schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCInitialEmitance() const\n"
" schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCInitialEmitance()\n"
" schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCInitialEmitance(schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCInitialEmitance_type const &)\n"
" schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCInitialEmitance(schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCInitialEmitance_optional const &)\n");
return 0;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCInitialReflectance__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *arg1 = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCInitialReflectance_optional *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"O:SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCInitialReflectance",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCInitialReflectance" "', argument " "1"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof const *""'");
}
arg1 = reinterpret_cast< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof * >(argp1);
result = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCInitialReflectance_optional *) &((schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof const *)arg1)->T24CRRCInitialReflectance();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_xsd__cxx__tree__optionalT_double_true_t, 0 | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCInitialReflectance__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *arg1 = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCInitialReflectance_optional *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"O:SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCInitialReflectance",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCInitialReflectance" "', argument " "1"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *""'");
}
arg1 = reinterpret_cast< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof * >(argp1);
result = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCInitialReflectance_optional *) &(arg1)->T24CRRCInitialReflectance();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_xsd__cxx__tree__optionalT_double_true_t, 0 | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCInitialReflectance__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *arg1 = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *) 0 ;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCInitialReflectance_type *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCInitialReflectance_type temp2 ;
double val2 ;
int ecode2 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
if (!PyArg_ParseTuple(args,(char *)"OO:SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCInitialReflectance",&obj0,&obj1)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCInitialReflectance" "', argument " "1"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *""'");
}
arg1 = reinterpret_cast< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof * >(argp1);
ecode2 = SWIG_AsVal_double(obj1, &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCInitialReflectance" "', argument " "2"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCInitialReflectance_type""'");
}
temp2 = static_cast< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCInitialReflectance_type >(val2);
arg2 = &temp2;
(arg1)->T24CRRCInitialReflectance((schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCInitialReflectance_type const &)*arg2);
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCInitialReflectance__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *arg1 = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *) 0 ;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCInitialReflectance_optional *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
if (!PyArg_ParseTuple(args,(char *)"OO:SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCInitialReflectance",&obj0,&obj1)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCInitialReflectance" "', argument " "1"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *""'");
}
arg1 = reinterpret_cast< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof * >(argp1);
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_xsd__cxx__tree__optionalT_double_true_t, 0 | 0);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCInitialReflectance" "', argument " "2"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCInitialReflectance_optional const &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCInitialReflectance" "', argument " "2"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCInitialReflectance_optional const &""'");
}
arg2 = reinterpret_cast< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCInitialReflectance_optional * >(argp2);
(arg1)->T24CRRCInitialReflectance((schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCInitialReflectance_optional const &)*arg2);
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCInitialReflectance(PyObject *self, PyObject *args) {
int argc;
PyObject *argv[3] = {
0
};
int ii;
if (!PyTuple_Check(args)) SWIG_fail;
argc = args ? (int)PyObject_Length(args) : 0;
for (ii = 0; (ii < 2) && (ii < argc); ii++) {
argv[ii] = PyTuple_GET_ITEM(args,ii);
}
if (argc == 1) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCInitialReflectance__SWIG_1(self, args);
}
}
if (argc == 1) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCInitialReflectance__SWIG_0(self, args);
}
}
if (argc == 2) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0);
_v = SWIG_CheckState(res);
if (_v) {
int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_xsd__cxx__tree__optionalT_double_true_t, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCInitialReflectance__SWIG_3(self, args);
}
}
}
if (argc == 2) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0);
_v = SWIG_CheckState(res);
if (_v) {
{
int res = SWIG_AsVal_double(argv[1], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
return _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCInitialReflectance__SWIG_2(self, args);
}
}
}
fail:
SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCInitialReflectance'.\n"
" Possible C/C++ prototypes are:\n"
" schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCInitialReflectance() const\n"
" schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCInitialReflectance()\n"
" schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCInitialReflectance(schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCInitialReflectance_type const &)\n"
" schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCInitialReflectance(schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCInitialReflectance_optional const &)\n");
return 0;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCInitialSRI__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *arg1 = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCInitialSRI_optional *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"O:SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCInitialSRI",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCInitialSRI" "', argument " "1"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof const *""'");
}
arg1 = reinterpret_cast< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof * >(argp1);
result = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCInitialSRI_optional *) &((schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof const *)arg1)->T24CRRCInitialSRI();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_xsd__cxx__tree__optionalT_int_true_t, 0 | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCInitialSRI__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *arg1 = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCInitialSRI_optional *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"O:SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCInitialSRI",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCInitialSRI" "', argument " "1"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *""'");
}
arg1 = reinterpret_cast< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof * >(argp1);
result = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCInitialSRI_optional *) &(arg1)->T24CRRCInitialSRI();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_xsd__cxx__tree__optionalT_int_true_t, 0 | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCInitialSRI__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *arg1 = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *) 0 ;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCInitialSRI_type *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCInitialSRI_type temp2 ;
int val2 ;
int ecode2 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
if (!PyArg_ParseTuple(args,(char *)"OO:SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCInitialSRI",&obj0,&obj1)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCInitialSRI" "', argument " "1"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *""'");
}
arg1 = reinterpret_cast< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof * >(argp1);
ecode2 = SWIG_AsVal_int(obj1, &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCInitialSRI" "', argument " "2"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCInitialSRI_type""'");
}
temp2 = static_cast< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCInitialSRI_type >(val2);
arg2 = &temp2;
(arg1)->T24CRRCInitialSRI((schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCInitialSRI_type const &)*arg2);
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCInitialSRI__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *arg1 = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *) 0 ;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCInitialSRI_optional *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
if (!PyArg_ParseTuple(args,(char *)"OO:SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCInitialSRI",&obj0,&obj1)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCInitialSRI" "', argument " "1"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *""'");
}
arg1 = reinterpret_cast< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof * >(argp1);
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_xsd__cxx__tree__optionalT_int_true_t, 0 | 0);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCInitialSRI" "', argument " "2"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCInitialSRI_optional const &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCInitialSRI" "', argument " "2"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCInitialSRI_optional const &""'");
}
arg2 = reinterpret_cast< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCInitialSRI_optional * >(argp2);
(arg1)->T24CRRCInitialSRI((schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCInitialSRI_optional const &)*arg2);
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCInitialSRI(PyObject *self, PyObject *args) {
int argc;
PyObject *argv[3] = {
0
};
int ii;
if (!PyTuple_Check(args)) SWIG_fail;
argc = args ? (int)PyObject_Length(args) : 0;
for (ii = 0; (ii < 2) && (ii < argc); ii++) {
argv[ii] = PyTuple_GET_ITEM(args,ii);
}
if (argc == 1) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCInitialSRI__SWIG_1(self, args);
}
}
if (argc == 1) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCInitialSRI__SWIG_0(self, args);
}
}
if (argc == 2) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0);
_v = SWIG_CheckState(res);
if (_v) {
int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_xsd__cxx__tree__optionalT_int_true_t, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCInitialSRI__SWIG_3(self, args);
}
}
}
if (argc == 2) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0);
_v = SWIG_CheckState(res);
if (_v) {
{
int res = SWIG_AsVal_int(argv[1], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
return _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCInitialSRI__SWIG_2(self, args);
}
}
}
fail:
SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCInitialSRI'.\n"
" Possible C/C++ prototypes are:\n"
" schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCInitialSRI() const\n"
" schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCInitialSRI()\n"
" schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCInitialSRI(schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCInitialSRI_type const &)\n"
" schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCInitialSRI(schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCInitialSRI_optional const &)\n");
return 0;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCProductID__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *arg1 = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCProductID_optional *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"O:SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCProductID",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCProductID" "', argument " "1"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof const *""'");
}
arg1 = reinterpret_cast< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof * >(argp1);
result = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCProductID_optional *) &((schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof const *)arg1)->T24CRRCProductID();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_xsd__cxx__tree__optionalT_xsd__cxx__tree__stringT_char_xsd__cxx__tree__simple_type_t_false_t, 0 | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCProductID__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *arg1 = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCProductID_optional *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"O:SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCProductID",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCProductID" "', argument " "1"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *""'");
}
arg1 = reinterpret_cast< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof * >(argp1);
result = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCProductID_optional *) &(arg1)->T24CRRCProductID();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_xsd__cxx__tree__optionalT_xsd__cxx__tree__stringT_char_xsd__cxx__tree__simple_type_t_false_t, 0 | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCProductID__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *arg1 = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *) 0 ;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCProductID_type *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
if (!PyArg_ParseTuple(args,(char *)"OO:SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCProductID",&obj0,&obj1)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCProductID" "', argument " "1"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *""'");
}
arg1 = reinterpret_cast< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof * >(argp1);
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_xsd__cxx__tree__stringT_char_xsd__cxx__tree__simple_type_t, 0 | 0);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCProductID" "', argument " "2"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCProductID_type const &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCProductID" "', argument " "2"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCProductID_type const &""'");
}
arg2 = reinterpret_cast< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCProductID_type * >(argp2);
(arg1)->T24CRRCProductID((schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCProductID_type const &)*arg2);
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCProductID__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *arg1 = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *) 0 ;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCProductID_optional *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
if (!PyArg_ParseTuple(args,(char *)"OO:SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCProductID",&obj0,&obj1)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCProductID" "', argument " "1"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *""'");
}
arg1 = reinterpret_cast< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof * >(argp1);
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_xsd__cxx__tree__optionalT_xsd__cxx__tree__stringT_char_xsd__cxx__tree__simple_type_t_false_t, 0 | 0);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCProductID" "', argument " "2"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCProductID_optional const &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCProductID" "', argument " "2"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCProductID_optional const &""'");
}
arg2 = reinterpret_cast< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCProductID_optional * >(argp2);
(arg1)->T24CRRCProductID((schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCProductID_optional const &)*arg2);
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCProductID__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *arg1 = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *) 0 ;
::std::auto_ptr< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCProductID_type > arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 ;
int res2 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
if (!PyArg_ParseTuple(args,(char *)"OO:SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCProductID",&obj0,&obj1)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCProductID" "', argument " "1"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *""'");
}
arg1 = reinterpret_cast< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof * >(argp1);
{
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__auto_ptrT_xml_schema__string_t, 0 | 0);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCProductID" "', argument " "2"" of type '" "::std::auto_ptr< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCProductID_type >""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCProductID" "', argument " "2"" of type '" "::std::auto_ptr< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCProductID_type >""'");
} else {
::std::auto_ptr< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCProductID_type > * temp = reinterpret_cast< ::std::auto_ptr< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCProductID_type > * >(argp2);
arg2 = *temp;
if (SWIG_IsNewObj(res2)) delete temp;
}
}
(arg1)->T24CRRCProductID(arg2);
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCProductID(PyObject *self, PyObject *args) {
int argc;
PyObject *argv[3] = {
0
};
int ii;
if (!PyTuple_Check(args)) SWIG_fail;
argc = args ? (int)PyObject_Length(args) : 0;
for (ii = 0; (ii < 2) && (ii < argc); ii++) {
argv[ii] = PyTuple_GET_ITEM(args,ii);
}
if (argc == 1) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCProductID__SWIG_1(self, args);
}
}
if (argc == 1) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCProductID__SWIG_0(self, args);
}
}
if (argc == 2) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0);
_v = SWIG_CheckState(res);
if (_v) {
int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_xsd__cxx__tree__stringT_char_xsd__cxx__tree__simple_type_t, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCProductID__SWIG_2(self, args);
}
}
}
if (argc == 2) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0);
_v = SWIG_CheckState(res);
if (_v) {
int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_xsd__cxx__tree__optionalT_xsd__cxx__tree__stringT_char_xsd__cxx__tree__simple_type_t_false_t, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCProductID__SWIG_3(self, args);
}
}
}
if (argc == 2) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0);
_v = SWIG_CheckState(res);
if (_v) {
int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_std__auto_ptrT_xml_schema__string_t, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCProductID__SWIG_4(self, args);
}
}
}
fail:
SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCProductID'.\n"
" Possible C/C++ prototypes are:\n"
" schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCProductID() const\n"
" schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCProductID()\n"
" schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCProductID(schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCProductID_type const &)\n"
" schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCProductID(schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCProductID_optional const &)\n"
" schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCProductID(::std::auto_ptr< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCProductID_type >)\n");
return 0;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24FieldAppliedCoating__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *arg1 = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24FieldAppliedCoating_optional *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"O:SimMaterialLayerSet_OpaqueLayerSet_Roof_T24FieldAppliedCoating",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24FieldAppliedCoating" "', argument " "1"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof const *""'");
}
arg1 = reinterpret_cast< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof * >(argp1);
result = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24FieldAppliedCoating_optional *) &((schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof const *)arg1)->T24FieldAppliedCoating();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_xsd__cxx__tree__optionalT_int_true_t, 0 | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24FieldAppliedCoating__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *arg1 = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24FieldAppliedCoating_optional *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"O:SimMaterialLayerSet_OpaqueLayerSet_Roof_T24FieldAppliedCoating",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24FieldAppliedCoating" "', argument " "1"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *""'");
}
arg1 = reinterpret_cast< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof * >(argp1);
result = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24FieldAppliedCoating_optional *) &(arg1)->T24FieldAppliedCoating();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_xsd__cxx__tree__optionalT_int_true_t, 0 | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24FieldAppliedCoating__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *arg1 = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *) 0 ;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24FieldAppliedCoating_type *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24FieldAppliedCoating_type temp2 ;
int val2 ;
int ecode2 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
if (!PyArg_ParseTuple(args,(char *)"OO:SimMaterialLayerSet_OpaqueLayerSet_Roof_T24FieldAppliedCoating",&obj0,&obj1)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24FieldAppliedCoating" "', argument " "1"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *""'");
}
arg1 = reinterpret_cast< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof * >(argp1);
ecode2 = SWIG_AsVal_int(obj1, &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24FieldAppliedCoating" "', argument " "2"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24FieldAppliedCoating_type""'");
}
temp2 = static_cast< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24FieldAppliedCoating_type >(val2);
arg2 = &temp2;
(arg1)->T24FieldAppliedCoating((schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24FieldAppliedCoating_type const &)*arg2);
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24FieldAppliedCoating__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *arg1 = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *) 0 ;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24FieldAppliedCoating_optional *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
if (!PyArg_ParseTuple(args,(char *)"OO:SimMaterialLayerSet_OpaqueLayerSet_Roof_T24FieldAppliedCoating",&obj0,&obj1)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24FieldAppliedCoating" "', argument " "1"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *""'");
}
arg1 = reinterpret_cast< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof * >(argp1);
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_xsd__cxx__tree__optionalT_int_true_t, 0 | 0);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24FieldAppliedCoating" "', argument " "2"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24FieldAppliedCoating_optional const &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24FieldAppliedCoating" "', argument " "2"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24FieldAppliedCoating_optional const &""'");
}
arg2 = reinterpret_cast< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24FieldAppliedCoating_optional * >(argp2);
(arg1)->T24FieldAppliedCoating((schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24FieldAppliedCoating_optional const &)*arg2);
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24FieldAppliedCoating(PyObject *self, PyObject *args) {
int argc;
PyObject *argv[3] = {
0
};
int ii;
if (!PyTuple_Check(args)) SWIG_fail;
argc = args ? (int)PyObject_Length(args) : 0;
for (ii = 0; (ii < 2) && (ii < argc); ii++) {
argv[ii] = PyTuple_GET_ITEM(args,ii);
}
if (argc == 1) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24FieldAppliedCoating__SWIG_1(self, args);
}
}
if (argc == 1) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24FieldAppliedCoating__SWIG_0(self, args);
}
}
if (argc == 2) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0);
_v = SWIG_CheckState(res);
if (_v) {
int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_xsd__cxx__tree__optionalT_int_true_t, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24FieldAppliedCoating__SWIG_3(self, args);
}
}
}
if (argc == 2) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0);
_v = SWIG_CheckState(res);
if (_v) {
{
int res = SWIG_AsVal_int(argv[1], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
return _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24FieldAppliedCoating__SWIG_2(self, args);
}
}
}
fail:
SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SimMaterialLayerSet_OpaqueLayerSet_Roof_T24FieldAppliedCoating'.\n"
" Possible C/C++ prototypes are:\n"
" schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24FieldAppliedCoating() const\n"
" schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24FieldAppliedCoating()\n"
" schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24FieldAppliedCoating(schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24FieldAppliedCoating_type const &)\n"
" schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24FieldAppliedCoating(schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24FieldAppliedCoating_optional const &)\n");
return 0;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24RoofDensity__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *arg1 = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24RoofDensity_optional *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"O:SimMaterialLayerSet_OpaqueLayerSet_Roof_T24RoofDensity",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24RoofDensity" "', argument " "1"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof const *""'");
}
arg1 = reinterpret_cast< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof * >(argp1);
result = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24RoofDensity_optional *) &((schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof const *)arg1)->T24RoofDensity();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_xsd__cxx__tree__optionalT_int_true_t, 0 | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24RoofDensity__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *arg1 = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24RoofDensity_optional *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"O:SimMaterialLayerSet_OpaqueLayerSet_Roof_T24RoofDensity",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24RoofDensity" "', argument " "1"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *""'");
}
arg1 = reinterpret_cast< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof * >(argp1);
result = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24RoofDensity_optional *) &(arg1)->T24RoofDensity();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_xsd__cxx__tree__optionalT_int_true_t, 0 | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24RoofDensity__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *arg1 = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *) 0 ;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24RoofDensity_type *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24RoofDensity_type temp2 ;
int val2 ;
int ecode2 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
if (!PyArg_ParseTuple(args,(char *)"OO:SimMaterialLayerSet_OpaqueLayerSet_Roof_T24RoofDensity",&obj0,&obj1)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24RoofDensity" "', argument " "1"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *""'");
}
arg1 = reinterpret_cast< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof * >(argp1);
ecode2 = SWIG_AsVal_int(obj1, &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24RoofDensity" "', argument " "2"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24RoofDensity_type""'");
}
temp2 = static_cast< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24RoofDensity_type >(val2);
arg2 = &temp2;
(arg1)->T24RoofDensity((schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24RoofDensity_type const &)*arg2);
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24RoofDensity__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *arg1 = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *) 0 ;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24RoofDensity_optional *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
if (!PyArg_ParseTuple(args,(char *)"OO:SimMaterialLayerSet_OpaqueLayerSet_Roof_T24RoofDensity",&obj0,&obj1)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24RoofDensity" "', argument " "1"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *""'");
}
arg1 = reinterpret_cast< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof * >(argp1);
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_xsd__cxx__tree__optionalT_int_true_t, 0 | 0);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24RoofDensity" "', argument " "2"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24RoofDensity_optional const &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24RoofDensity" "', argument " "2"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24RoofDensity_optional const &""'");
}
arg2 = reinterpret_cast< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24RoofDensity_optional * >(argp2);
(arg1)->T24RoofDensity((schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24RoofDensity_optional const &)*arg2);
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24RoofDensity(PyObject *self, PyObject *args) {
int argc;
PyObject *argv[3] = {
0
};
int ii;
if (!PyTuple_Check(args)) SWIG_fail;
argc = args ? (int)PyObject_Length(args) : 0;
for (ii = 0; (ii < 2) && (ii < argc); ii++) {
argv[ii] = PyTuple_GET_ITEM(args,ii);
}
if (argc == 1) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24RoofDensity__SWIG_1(self, args);
}
}
if (argc == 1) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24RoofDensity__SWIG_0(self, args);
}
}
if (argc == 2) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0);
_v = SWIG_CheckState(res);
if (_v) {
int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_xsd__cxx__tree__optionalT_int_true_t, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24RoofDensity__SWIG_3(self, args);
}
}
}
if (argc == 2) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0);
_v = SWIG_CheckState(res);
if (_v) {
{
int res = SWIG_AsVal_int(argv[1], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
return _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24RoofDensity__SWIG_2(self, args);
}
}
}
fail:
SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SimMaterialLayerSet_OpaqueLayerSet_Roof_T24RoofDensity'.\n"
" Possible C/C++ prototypes are:\n"
" schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24RoofDensity() const\n"
" schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24RoofDensity()\n"
" schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24RoofDensity(schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24RoofDensity_type const &)\n"
" schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24RoofDensity(schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24RoofDensity_optional const &)\n");
return 0;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24ConstructInsulOrient__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *arg1 = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24ConstructInsulOrient_optional *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"O:SimMaterialLayerSet_OpaqueLayerSet_Roof_T24ConstructInsulOrient",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24ConstructInsulOrient" "', argument " "1"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof const *""'");
}
arg1 = reinterpret_cast< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof * >(argp1);
result = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24ConstructInsulOrient_optional *) &((schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof const *)arg1)->T24ConstructInsulOrient();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_xsd__cxx__tree__optionalT_xsd__cxx__tree__stringT_char_xsd__cxx__tree__simple_type_t_false_t, 0 | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24ConstructInsulOrient__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *arg1 = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24ConstructInsulOrient_optional *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"O:SimMaterialLayerSet_OpaqueLayerSet_Roof_T24ConstructInsulOrient",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24ConstructInsulOrient" "', argument " "1"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *""'");
}
arg1 = reinterpret_cast< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof * >(argp1);
result = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24ConstructInsulOrient_optional *) &(arg1)->T24ConstructInsulOrient();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_xsd__cxx__tree__optionalT_xsd__cxx__tree__stringT_char_xsd__cxx__tree__simple_type_t_false_t, 0 | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24ConstructInsulOrient__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *arg1 = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *) 0 ;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24ConstructInsulOrient_type *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
if (!PyArg_ParseTuple(args,(char *)"OO:SimMaterialLayerSet_OpaqueLayerSet_Roof_T24ConstructInsulOrient",&obj0,&obj1)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24ConstructInsulOrient" "', argument " "1"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *""'");
}
arg1 = reinterpret_cast< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof * >(argp1);
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_xsd__cxx__tree__stringT_char_xsd__cxx__tree__simple_type_t, 0 | 0);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24ConstructInsulOrient" "', argument " "2"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24ConstructInsulOrient_type const &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24ConstructInsulOrient" "', argument " "2"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24ConstructInsulOrient_type const &""'");
}
arg2 = reinterpret_cast< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24ConstructInsulOrient_type * >(argp2);
(arg1)->T24ConstructInsulOrient((schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24ConstructInsulOrient_type const &)*arg2);
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24ConstructInsulOrient__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *arg1 = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *) 0 ;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24ConstructInsulOrient_optional *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
if (!PyArg_ParseTuple(args,(char *)"OO:SimMaterialLayerSet_OpaqueLayerSet_Roof_T24ConstructInsulOrient",&obj0,&obj1)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24ConstructInsulOrient" "', argument " "1"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *""'");
}
arg1 = reinterpret_cast< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof * >(argp1);
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_xsd__cxx__tree__optionalT_xsd__cxx__tree__stringT_char_xsd__cxx__tree__simple_type_t_false_t, 0 | 0);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24ConstructInsulOrient" "', argument " "2"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24ConstructInsulOrient_optional const &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24ConstructInsulOrient" "', argument " "2"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24ConstructInsulOrient_optional const &""'");
}
arg2 = reinterpret_cast< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24ConstructInsulOrient_optional * >(argp2);
(arg1)->T24ConstructInsulOrient((schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24ConstructInsulOrient_optional const &)*arg2);
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24ConstructInsulOrient__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *arg1 = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *) 0 ;
::std::auto_ptr< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24ConstructInsulOrient_type > arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 ;
int res2 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
if (!PyArg_ParseTuple(args,(char *)"OO:SimMaterialLayerSet_OpaqueLayerSet_Roof_T24ConstructInsulOrient",&obj0,&obj1)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24ConstructInsulOrient" "', argument " "1"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *""'");
}
arg1 = reinterpret_cast< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof * >(argp1);
{
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__auto_ptrT_xml_schema__string_t, 0 | 0);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24ConstructInsulOrient" "', argument " "2"" of type '" "::std::auto_ptr< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24ConstructInsulOrient_type >""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24ConstructInsulOrient" "', argument " "2"" of type '" "::std::auto_ptr< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24ConstructInsulOrient_type >""'");
} else {
::std::auto_ptr< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24ConstructInsulOrient_type > * temp = reinterpret_cast< ::std::auto_ptr< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24ConstructInsulOrient_type > * >(argp2);
arg2 = *temp;
if (SWIG_IsNewObj(res2)) delete temp;
}
}
(arg1)->T24ConstructInsulOrient(arg2);
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24ConstructInsulOrient(PyObject *self, PyObject *args) {
int argc;
PyObject *argv[3] = {
0
};
int ii;
if (!PyTuple_Check(args)) SWIG_fail;
argc = args ? (int)PyObject_Length(args) : 0;
for (ii = 0; (ii < 2) && (ii < argc); ii++) {
argv[ii] = PyTuple_GET_ITEM(args,ii);
}
if (argc == 1) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24ConstructInsulOrient__SWIG_1(self, args);
}
}
if (argc == 1) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24ConstructInsulOrient__SWIG_0(self, args);
}
}
if (argc == 2) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0);
_v = SWIG_CheckState(res);
if (_v) {
int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_xsd__cxx__tree__stringT_char_xsd__cxx__tree__simple_type_t, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24ConstructInsulOrient__SWIG_2(self, args);
}
}
}
if (argc == 2) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0);
_v = SWIG_CheckState(res);
if (_v) {
int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_xsd__cxx__tree__optionalT_xsd__cxx__tree__stringT_char_xsd__cxx__tree__simple_type_t_false_t, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24ConstructInsulOrient__SWIG_3(self, args);
}
}
}
if (argc == 2) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0);
_v = SWIG_CheckState(res);
if (_v) {
int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_std__auto_ptrT_xml_schema__string_t, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24ConstructInsulOrient__SWIG_4(self, args);
}
}
}
fail:
SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SimMaterialLayerSet_OpaqueLayerSet_Roof_T24ConstructInsulOrient'.\n"
" Possible C/C++ prototypes are:\n"
" schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24ConstructInsulOrient() const\n"
" schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24ConstructInsulOrient()\n"
" schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24ConstructInsulOrient(schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24ConstructInsulOrient_type const &)\n"
" schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24ConstructInsulOrient(schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24ConstructInsulOrient_optional const &)\n"
" schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24ConstructInsulOrient(::std::auto_ptr< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24ConstructInsulOrient_type >)\n");
return 0;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24SlabInsulThermResist__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *arg1 = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24SlabInsulThermResist_optional *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"O:SimMaterialLayerSet_OpaqueLayerSet_Roof_T24SlabInsulThermResist",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24SlabInsulThermResist" "', argument " "1"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof const *""'");
}
arg1 = reinterpret_cast< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof * >(argp1);
result = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24SlabInsulThermResist_optional *) &((schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof const *)arg1)->T24SlabInsulThermResist();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_xsd__cxx__tree__optionalT_xsd__cxx__tree__stringT_char_xsd__cxx__tree__simple_type_t_false_t, 0 | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24SlabInsulThermResist__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *arg1 = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24SlabInsulThermResist_optional *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"O:SimMaterialLayerSet_OpaqueLayerSet_Roof_T24SlabInsulThermResist",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24SlabInsulThermResist" "', argument " "1"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *""'");
}
arg1 = reinterpret_cast< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof * >(argp1);
result = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24SlabInsulThermResist_optional *) &(arg1)->T24SlabInsulThermResist();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_xsd__cxx__tree__optionalT_xsd__cxx__tree__stringT_char_xsd__cxx__tree__simple_type_t_false_t, 0 | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24SlabInsulThermResist__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *arg1 = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *) 0 ;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24SlabInsulThermResist_type *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
if (!PyArg_ParseTuple(args,(char *)"OO:SimMaterialLayerSet_OpaqueLayerSet_Roof_T24SlabInsulThermResist",&obj0,&obj1)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24SlabInsulThermResist" "', argument " "1"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *""'");
}
arg1 = reinterpret_cast< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof * >(argp1);
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_xsd__cxx__tree__stringT_char_xsd__cxx__tree__simple_type_t, 0 | 0);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24SlabInsulThermResist" "', argument " "2"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24SlabInsulThermResist_type const &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24SlabInsulThermResist" "', argument " "2"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24SlabInsulThermResist_type const &""'");
}
arg2 = reinterpret_cast< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24SlabInsulThermResist_type * >(argp2);
(arg1)->T24SlabInsulThermResist((schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24SlabInsulThermResist_type const &)*arg2);
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24SlabInsulThermResist__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *arg1 = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *) 0 ;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24SlabInsulThermResist_optional *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
if (!PyArg_ParseTuple(args,(char *)"OO:SimMaterialLayerSet_OpaqueLayerSet_Roof_T24SlabInsulThermResist",&obj0,&obj1)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24SlabInsulThermResist" "', argument " "1"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *""'");
}
arg1 = reinterpret_cast< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof * >(argp1);
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_xsd__cxx__tree__optionalT_xsd__cxx__tree__stringT_char_xsd__cxx__tree__simple_type_t_false_t, 0 | 0);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24SlabInsulThermResist" "', argument " "2"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24SlabInsulThermResist_optional const &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24SlabInsulThermResist" "', argument " "2"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24SlabInsulThermResist_optional const &""'");
}
arg2 = reinterpret_cast< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24SlabInsulThermResist_optional * >(argp2);
(arg1)->T24SlabInsulThermResist((schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24SlabInsulThermResist_optional const &)*arg2);
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24SlabInsulThermResist__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *arg1 = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *) 0 ;
::std::auto_ptr< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24SlabInsulThermResist_type > arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 ;
int res2 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
if (!PyArg_ParseTuple(args,(char *)"OO:SimMaterialLayerSet_OpaqueLayerSet_Roof_T24SlabInsulThermResist",&obj0,&obj1)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24SlabInsulThermResist" "', argument " "1"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *""'");
}
arg1 = reinterpret_cast< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof * >(argp1);
{
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__auto_ptrT_xml_schema__string_t, 0 | 0);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24SlabInsulThermResist" "', argument " "2"" of type '" "::std::auto_ptr< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24SlabInsulThermResist_type >""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24SlabInsulThermResist" "', argument " "2"" of type '" "::std::auto_ptr< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24SlabInsulThermResist_type >""'");
} else {
::std::auto_ptr< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24SlabInsulThermResist_type > * temp = reinterpret_cast< ::std::auto_ptr< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24SlabInsulThermResist_type > * >(argp2);
arg2 = *temp;
if (SWIG_IsNewObj(res2)) delete temp;
}
}
(arg1)->T24SlabInsulThermResist(arg2);
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24SlabInsulThermResist(PyObject *self, PyObject *args) {
int argc;
PyObject *argv[3] = {
0
};
int ii;
if (!PyTuple_Check(args)) SWIG_fail;
argc = args ? (int)PyObject_Length(args) : 0;
for (ii = 0; (ii < 2) && (ii < argc); ii++) {
argv[ii] = PyTuple_GET_ITEM(args,ii);
}
if (argc == 1) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24SlabInsulThermResist__SWIG_1(self, args);
}
}
if (argc == 1) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24SlabInsulThermResist__SWIG_0(self, args);
}
}
if (argc == 2) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0);
_v = SWIG_CheckState(res);
if (_v) {
int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_xsd__cxx__tree__stringT_char_xsd__cxx__tree__simple_type_t, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24SlabInsulThermResist__SWIG_2(self, args);
}
}
}
if (argc == 2) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0);
_v = SWIG_CheckState(res);
if (_v) {
int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_xsd__cxx__tree__optionalT_xsd__cxx__tree__stringT_char_xsd__cxx__tree__simple_type_t_false_t, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24SlabInsulThermResist__SWIG_3(self, args);
}
}
}
if (argc == 2) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0);
_v = SWIG_CheckState(res);
if (_v) {
int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_std__auto_ptrT_xml_schema__string_t, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24SlabInsulThermResist__SWIG_4(self, args);
}
}
}
fail:
SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SimMaterialLayerSet_OpaqueLayerSet_Roof_T24SlabInsulThermResist'.\n"
" Possible C/C++ prototypes are:\n"
" schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24SlabInsulThermResist() const\n"
" schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24SlabInsulThermResist()\n"
" schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24SlabInsulThermResist(schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24SlabInsulThermResist_type const &)\n"
" schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24SlabInsulThermResist(schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24SlabInsulThermResist_optional const &)\n"
" schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24SlabInsulThermResist(::std::auto_ptr< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24SlabInsulThermResist_type >)\n");
return 0;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24SlabType__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *arg1 = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24SlabType_optional *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"O:SimMaterialLayerSet_OpaqueLayerSet_Roof_T24SlabType",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24SlabType" "', argument " "1"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof const *""'");
}
arg1 = reinterpret_cast< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof * >(argp1);
result = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24SlabType_optional *) &((schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof const *)arg1)->T24SlabType();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_xsd__cxx__tree__optionalT_xsd__cxx__tree__stringT_char_xsd__cxx__tree__simple_type_t_false_t, 0 | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24SlabType__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *arg1 = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24SlabType_optional *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"O:SimMaterialLayerSet_OpaqueLayerSet_Roof_T24SlabType",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24SlabType" "', argument " "1"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *""'");
}
arg1 = reinterpret_cast< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof * >(argp1);
result = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24SlabType_optional *) &(arg1)->T24SlabType();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_xsd__cxx__tree__optionalT_xsd__cxx__tree__stringT_char_xsd__cxx__tree__simple_type_t_false_t, 0 | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24SlabType__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *arg1 = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *) 0 ;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24SlabType_type *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
if (!PyArg_ParseTuple(args,(char *)"OO:SimMaterialLayerSet_OpaqueLayerSet_Roof_T24SlabType",&obj0,&obj1)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24SlabType" "', argument " "1"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *""'");
}
arg1 = reinterpret_cast< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof * >(argp1);
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_xsd__cxx__tree__stringT_char_xsd__cxx__tree__simple_type_t, 0 | 0);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24SlabType" "', argument " "2"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24SlabType_type const &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24SlabType" "', argument " "2"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24SlabType_type const &""'");
}
arg2 = reinterpret_cast< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24SlabType_type * >(argp2);
(arg1)->T24SlabType((schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24SlabType_type const &)*arg2);
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24SlabType__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *arg1 = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *) 0 ;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24SlabType_optional *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
if (!PyArg_ParseTuple(args,(char *)"OO:SimMaterialLayerSet_OpaqueLayerSet_Roof_T24SlabType",&obj0,&obj1)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24SlabType" "', argument " "1"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *""'");
}
arg1 = reinterpret_cast< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof * >(argp1);
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_xsd__cxx__tree__optionalT_xsd__cxx__tree__stringT_char_xsd__cxx__tree__simple_type_t_false_t, 0 | 0);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24SlabType" "', argument " "2"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24SlabType_optional const &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24SlabType" "', argument " "2"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24SlabType_optional const &""'");
}
arg2 = reinterpret_cast< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24SlabType_optional * >(argp2);
(arg1)->T24SlabType((schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24SlabType_optional const &)*arg2);
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24SlabType__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *arg1 = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *) 0 ;
::std::auto_ptr< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24SlabType_type > arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 ;
int res2 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
if (!PyArg_ParseTuple(args,(char *)"OO:SimMaterialLayerSet_OpaqueLayerSet_Roof_T24SlabType",&obj0,&obj1)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24SlabType" "', argument " "1"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *""'");
}
arg1 = reinterpret_cast< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof * >(argp1);
{
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__auto_ptrT_xml_schema__string_t, 0 | 0);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24SlabType" "', argument " "2"" of type '" "::std::auto_ptr< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24SlabType_type >""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_T24SlabType" "', argument " "2"" of type '" "::std::auto_ptr< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24SlabType_type >""'");
} else {
::std::auto_ptr< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24SlabType_type > * temp = reinterpret_cast< ::std::auto_ptr< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24SlabType_type > * >(argp2);
arg2 = *temp;
if (SWIG_IsNewObj(res2)) delete temp;
}
}
(arg1)->T24SlabType(arg2);
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24SlabType(PyObject *self, PyObject *args) {
int argc;
PyObject *argv[3] = {
0
};
int ii;
if (!PyTuple_Check(args)) SWIG_fail;
argc = args ? (int)PyObject_Length(args) : 0;
for (ii = 0; (ii < 2) && (ii < argc); ii++) {
argv[ii] = PyTuple_GET_ITEM(args,ii);
}
if (argc == 1) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24SlabType__SWIG_1(self, args);
}
}
if (argc == 1) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24SlabType__SWIG_0(self, args);
}
}
if (argc == 2) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0);
_v = SWIG_CheckState(res);
if (_v) {
int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_xsd__cxx__tree__stringT_char_xsd__cxx__tree__simple_type_t, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24SlabType__SWIG_2(self, args);
}
}
}
if (argc == 2) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0);
_v = SWIG_CheckState(res);
if (_v) {
int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_xsd__cxx__tree__optionalT_xsd__cxx__tree__stringT_char_xsd__cxx__tree__simple_type_t_false_t, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24SlabType__SWIG_3(self, args);
}
}
}
if (argc == 2) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0);
_v = SWIG_CheckState(res);
if (_v) {
int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_std__auto_ptrT_xml_schema__string_t, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24SlabType__SWIG_4(self, args);
}
}
}
fail:
SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SimMaterialLayerSet_OpaqueLayerSet_Roof_T24SlabType'.\n"
" Possible C/C++ prototypes are:\n"
" schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24SlabType() const\n"
" schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24SlabType()\n"
" schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24SlabType(schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24SlabType_type const &)\n"
" schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24SlabType(schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24SlabType_optional const &)\n"
" schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24SlabType(::std::auto_ptr< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24SlabType_type >)\n");
return 0;
}
SWIGINTERN PyObject *_wrap_new_SimMaterialLayerSet_OpaqueLayerSet_Roof__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)":new_SimMaterialLayerSet_OpaqueLayerSet_Roof")) SWIG_fail;
result = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *)new schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, SWIG_POINTER_NEW | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_new_SimMaterialLayerSet_OpaqueLayerSet_Roof__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
schema::simxml::SimModelCore::SimRoot::RefId_type *arg1 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"O:new_SimMaterialLayerSet_OpaqueLayerSet_Roof",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_xsd__cxx__tree__idT_char_xsd__cxx__tree__ncname_t, 0 | 0);
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SimMaterialLayerSet_OpaqueLayerSet_Roof" "', argument " "1"" of type '" "schema::simxml::SimModelCore::SimRoot::RefId_type const &""'");
}
if (!argp1) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SimMaterialLayerSet_OpaqueLayerSet_Roof" "', argument " "1"" of type '" "schema::simxml::SimModelCore::SimRoot::RefId_type const &""'");
}
arg1 = reinterpret_cast< schema::simxml::SimModelCore::SimRoot::RefId_type * >(argp1);
result = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *)new schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof((schema::simxml::SimModelCore::SimRoot::RefId_type const &)*arg1);
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, SWIG_POINTER_NEW | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_new_SimMaterialLayerSet_OpaqueLayerSet_Roof__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
::xercesc::DOMElement *arg1 = 0 ;
::xml_schema::flags arg2 ;
::xml_schema::container *arg3 = (::xml_schema::container *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 ;
int res2 = 0 ;
void *argp3 = 0 ;
int res3 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"OOO:new_SimMaterialLayerSet_OpaqueLayerSet_Roof",&obj0,&obj1,&obj2)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_xercesc__DOMElement, 0 | 0);
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SimMaterialLayerSet_OpaqueLayerSet_Roof" "', argument " "1"" of type '" "::xercesc::DOMElement const &""'");
}
if (!argp1) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SimMaterialLayerSet_OpaqueLayerSet_Roof" "', argument " "1"" of type '" "::xercesc::DOMElement const &""'");
}
arg1 = reinterpret_cast< ::xercesc::DOMElement * >(argp1);
{
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_xsd__cxx__tree__flags, 0 | 0);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SimMaterialLayerSet_OpaqueLayerSet_Roof" "', argument " "2"" of type '" "::xml_schema::flags""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SimMaterialLayerSet_OpaqueLayerSet_Roof" "', argument " "2"" of type '" "::xml_schema::flags""'");
} else {
::xml_schema::flags * temp = reinterpret_cast< ::xml_schema::flags * >(argp2);
arg2 = *temp;
if (SWIG_IsNewObj(res2)) delete temp;
}
}
res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_xsd__cxx__tree___type, 0 | 0 );
if (!SWIG_IsOK(res3)) {
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_SimMaterialLayerSet_OpaqueLayerSet_Roof" "', argument " "3"" of type '" "::xml_schema::container *""'");
}
arg3 = reinterpret_cast< ::xml_schema::container * >(argp3);
result = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *)new schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof((::xercesc::DOMElement const &)*arg1,arg2,arg3);
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, SWIG_POINTER_NEW | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_new_SimMaterialLayerSet_OpaqueLayerSet_Roof__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
::xercesc::DOMElement *arg1 = 0 ;
::xml_schema::flags arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 ;
int res2 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"OO:new_SimMaterialLayerSet_OpaqueLayerSet_Roof",&obj0,&obj1)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_xercesc__DOMElement, 0 | 0);
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SimMaterialLayerSet_OpaqueLayerSet_Roof" "', argument " "1"" of type '" "::xercesc::DOMElement const &""'");
}
if (!argp1) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SimMaterialLayerSet_OpaqueLayerSet_Roof" "', argument " "1"" of type '" "::xercesc::DOMElement const &""'");
}
arg1 = reinterpret_cast< ::xercesc::DOMElement * >(argp1);
{
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_xsd__cxx__tree__flags, 0 | 0);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SimMaterialLayerSet_OpaqueLayerSet_Roof" "', argument " "2"" of type '" "::xml_schema::flags""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SimMaterialLayerSet_OpaqueLayerSet_Roof" "', argument " "2"" of type '" "::xml_schema::flags""'");
} else {
::xml_schema::flags * temp = reinterpret_cast< ::xml_schema::flags * >(argp2);
arg2 = *temp;
if (SWIG_IsNewObj(res2)) delete temp;
}
}
result = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *)new schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof((::xercesc::DOMElement const &)*arg1,arg2);
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, SWIG_POINTER_NEW | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_new_SimMaterialLayerSet_OpaqueLayerSet_Roof__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
::xercesc::DOMElement *arg1 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"O:new_SimMaterialLayerSet_OpaqueLayerSet_Roof",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_xercesc__DOMElement, 0 | 0);
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SimMaterialLayerSet_OpaqueLayerSet_Roof" "', argument " "1"" of type '" "::xercesc::DOMElement const &""'");
}
if (!argp1) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SimMaterialLayerSet_OpaqueLayerSet_Roof" "', argument " "1"" of type '" "::xercesc::DOMElement const &""'");
}
arg1 = reinterpret_cast< ::xercesc::DOMElement * >(argp1);
result = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *)new schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof((::xercesc::DOMElement const &)*arg1);
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, SWIG_POINTER_NEW | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_new_SimMaterialLayerSet_OpaqueLayerSet_Roof__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *arg1 = 0 ;
::xml_schema::flags arg2 ;
::xml_schema::container *arg3 = (::xml_schema::container *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 ;
int res2 = 0 ;
void *argp3 = 0 ;
int res3 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"OOO:new_SimMaterialLayerSet_OpaqueLayerSet_Roof",&obj0,&obj1,&obj2)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0 | 0);
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SimMaterialLayerSet_OpaqueLayerSet_Roof" "', argument " "1"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof const &""'");
}
if (!argp1) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SimMaterialLayerSet_OpaqueLayerSet_Roof" "', argument " "1"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof const &""'");
}
arg1 = reinterpret_cast< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof * >(argp1);
{
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_xsd__cxx__tree__flags, 0 | 0);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SimMaterialLayerSet_OpaqueLayerSet_Roof" "', argument " "2"" of type '" "::xml_schema::flags""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SimMaterialLayerSet_OpaqueLayerSet_Roof" "', argument " "2"" of type '" "::xml_schema::flags""'");
} else {
::xml_schema::flags * temp = reinterpret_cast< ::xml_schema::flags * >(argp2);
arg2 = *temp;
if (SWIG_IsNewObj(res2)) delete temp;
}
}
res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_xsd__cxx__tree___type, 0 | 0 );
if (!SWIG_IsOK(res3)) {
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_SimMaterialLayerSet_OpaqueLayerSet_Roof" "', argument " "3"" of type '" "::xml_schema::container *""'");
}
arg3 = reinterpret_cast< ::xml_schema::container * >(argp3);
result = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *)new schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof((schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof const &)*arg1,arg2,arg3);
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, SWIG_POINTER_NEW | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_new_SimMaterialLayerSet_OpaqueLayerSet_Roof__SWIG_6(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *arg1 = 0 ;
::xml_schema::flags arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 ;
int res2 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"OO:new_SimMaterialLayerSet_OpaqueLayerSet_Roof",&obj0,&obj1)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0 | 0);
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SimMaterialLayerSet_OpaqueLayerSet_Roof" "', argument " "1"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof const &""'");
}
if (!argp1) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SimMaterialLayerSet_OpaqueLayerSet_Roof" "', argument " "1"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof const &""'");
}
arg1 = reinterpret_cast< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof * >(argp1);
{
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_xsd__cxx__tree__flags, 0 | 0);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SimMaterialLayerSet_OpaqueLayerSet_Roof" "', argument " "2"" of type '" "::xml_schema::flags""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SimMaterialLayerSet_OpaqueLayerSet_Roof" "', argument " "2"" of type '" "::xml_schema::flags""'");
} else {
::xml_schema::flags * temp = reinterpret_cast< ::xml_schema::flags * >(argp2);
arg2 = *temp;
if (SWIG_IsNewObj(res2)) delete temp;
}
}
result = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *)new schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof((schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof const &)*arg1,arg2);
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, SWIG_POINTER_NEW | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_new_SimMaterialLayerSet_OpaqueLayerSet_Roof__SWIG_7(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *arg1 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"O:new_SimMaterialLayerSet_OpaqueLayerSet_Roof",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0 | 0);
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SimMaterialLayerSet_OpaqueLayerSet_Roof" "', argument " "1"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof const &""'");
}
if (!argp1) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SimMaterialLayerSet_OpaqueLayerSet_Roof" "', argument " "1"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof const &""'");
}
arg1 = reinterpret_cast< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof * >(argp1);
result = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *)new schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof((schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof const &)*arg1);
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, SWIG_POINTER_NEW | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_new_SimMaterialLayerSet_OpaqueLayerSet_Roof(PyObject *self, PyObject *args) {
int argc;
PyObject *argv[4] = {
0
};
int ii;
if (!PyTuple_Check(args)) SWIG_fail;
argc = args ? (int)PyObject_Length(args) : 0;
for (ii = 0; (ii < 3) && (ii < argc); ii++) {
argv[ii] = PyTuple_GET_ITEM(args,ii);
}
if (argc == 0) {
return _wrap_new_SimMaterialLayerSet_OpaqueLayerSet_Roof__SWIG_0(self, args);
}
if (argc == 1) {
int _v;
int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_xsd__cxx__tree__idT_char_xsd__cxx__tree__ncname_t, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_new_SimMaterialLayerSet_OpaqueLayerSet_Roof__SWIG_1(self, args);
}
}
if (argc == 1) {
int _v;
int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_xercesc__DOMElement, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_new_SimMaterialLayerSet_OpaqueLayerSet_Roof__SWIG_4(self, args);
}
}
if (argc == 1) {
int _v;
int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_new_SimMaterialLayerSet_OpaqueLayerSet_Roof__SWIG_7(self, args);
}
}
if (argc == 2) {
int _v;
int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0);
_v = SWIG_CheckState(res);
if (_v) {
int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_xsd__cxx__tree__flags, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_new_SimMaterialLayerSet_OpaqueLayerSet_Roof__SWIG_6(self, args);
}
}
}
if (argc == 2) {
int _v;
int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_xercesc__DOMElement, 0);
_v = SWIG_CheckState(res);
if (_v) {
int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_xsd__cxx__tree__flags, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_new_SimMaterialLayerSet_OpaqueLayerSet_Roof__SWIG_3(self, args);
}
}
}
if (argc == 3) {
int _v;
int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_xercesc__DOMElement, 0);
_v = SWIG_CheckState(res);
if (_v) {
int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_xsd__cxx__tree__flags, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_xsd__cxx__tree___type, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_new_SimMaterialLayerSet_OpaqueLayerSet_Roof__SWIG_2(self, args);
}
}
}
}
if (argc == 3) {
int _v;
int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0);
_v = SWIG_CheckState(res);
if (_v) {
int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_xsd__cxx__tree__flags, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_xsd__cxx__tree___type, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_new_SimMaterialLayerSet_OpaqueLayerSet_Roof__SWIG_5(self, args);
}
}
}
}
fail:
SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_SimMaterialLayerSet_OpaqueLayerSet_Roof'.\n"
" Possible C/C++ prototypes are:\n"
" schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::SimMaterialLayerSet_OpaqueLayerSet_Roof()\n"
" schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::SimMaterialLayerSet_OpaqueLayerSet_Roof(schema::simxml::SimModelCore::SimRoot::RefId_type const &)\n"
" schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::SimMaterialLayerSet_OpaqueLayerSet_Roof(::xercesc::DOMElement const &,::xml_schema::flags,::xml_schema::container *)\n"
" schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::SimMaterialLayerSet_OpaqueLayerSet_Roof(::xercesc::DOMElement const &,::xml_schema::flags)\n"
" schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::SimMaterialLayerSet_OpaqueLayerSet_Roof(::xercesc::DOMElement const &)\n"
" schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::SimMaterialLayerSet_OpaqueLayerSet_Roof(schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof const &,::xml_schema::flags,::xml_schema::container *)\n"
" schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::SimMaterialLayerSet_OpaqueLayerSet_Roof(schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof const &,::xml_schema::flags)\n"
" schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::SimMaterialLayerSet_OpaqueLayerSet_Roof(schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof const &)\n");
return 0;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof__clone__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *arg1 = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *) 0 ;
::xml_schema::flags arg2 ;
::xml_schema::container *arg3 = (::xml_schema::container *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 ;
int res2 = 0 ;
void *argp3 = 0 ;
int res3 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"OOO:SimMaterialLayerSet_OpaqueLayerSet_Roof__clone",&obj0,&obj1,&obj2)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof__clone" "', argument " "1"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof const *""'");
}
arg1 = reinterpret_cast< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof * >(argp1);
{
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_xsd__cxx__tree__flags, 0 | 0);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof__clone" "', argument " "2"" of type '" "::xml_schema::flags""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof__clone" "', argument " "2"" of type '" "::xml_schema::flags""'");
} else {
::xml_schema::flags * temp = reinterpret_cast< ::xml_schema::flags * >(argp2);
arg2 = *temp;
if (SWIG_IsNewObj(res2)) delete temp;
}
}
res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_xsd__cxx__tree___type, 0 | 0 );
if (!SWIG_IsOK(res3)) {
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof__clone" "', argument " "3"" of type '" "::xml_schema::container *""'");
}
arg3 = reinterpret_cast< ::xml_schema::container * >(argp3);
result = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *)((schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof const *)arg1)->_clone(arg2,arg3);
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0 | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof__clone__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *arg1 = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *) 0 ;
::xml_schema::flags arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 ;
int res2 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"OO:SimMaterialLayerSet_OpaqueLayerSet_Roof__clone",&obj0,&obj1)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof__clone" "', argument " "1"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof const *""'");
}
arg1 = reinterpret_cast< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof * >(argp1);
{
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_xsd__cxx__tree__flags, 0 | 0);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof__clone" "', argument " "2"" of type '" "::xml_schema::flags""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof__clone" "', argument " "2"" of type '" "::xml_schema::flags""'");
} else {
::xml_schema::flags * temp = reinterpret_cast< ::xml_schema::flags * >(argp2);
arg2 = *temp;
if (SWIG_IsNewObj(res2)) delete temp;
}
}
result = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *)((schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof const *)arg1)->_clone(arg2);
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0 | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof__clone__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *arg1 = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"O:SimMaterialLayerSet_OpaqueLayerSet_Roof__clone",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof__clone" "', argument " "1"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof const *""'");
}
arg1 = reinterpret_cast< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof * >(argp1);
result = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *)((schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof const *)arg1)->_clone();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0 | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof__clone(PyObject *self, PyObject *args) {
int argc;
PyObject *argv[4] = {
0
};
int ii;
if (!PyTuple_Check(args)) SWIG_fail;
argc = args ? (int)PyObject_Length(args) : 0;
for (ii = 0; (ii < 3) && (ii < argc); ii++) {
argv[ii] = PyTuple_GET_ITEM(args,ii);
}
if (argc == 1) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof__clone__SWIG_2(self, args);
}
}
if (argc == 2) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0);
_v = SWIG_CheckState(res);
if (_v) {
int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_xsd__cxx__tree__flags, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof__clone__SWIG_1(self, args);
}
}
}
if (argc == 3) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0);
_v = SWIG_CheckState(res);
if (_v) {
int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_xsd__cxx__tree__flags, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_xsd__cxx__tree___type, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof__clone__SWIG_0(self, args);
}
}
}
}
fail:
SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SimMaterialLayerSet_OpaqueLayerSet_Roof__clone'.\n"
" Possible C/C++ prototypes are:\n"
" schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::_clone(::xml_schema::flags,::xml_schema::container *) const\n"
" schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::_clone(::xml_schema::flags) const\n"
" schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::_clone() const\n");
return 0;
}
SWIGINTERN PyObject *_wrap_delete_SimMaterialLayerSet_OpaqueLayerSet_Roof(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *arg1 = (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
if (!PyArg_ParseTuple(args,(char *)"O:delete_SimMaterialLayerSet_OpaqueLayerSet_Roof",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, SWIG_POINTER_DISOWN | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SimMaterialLayerSet_OpaqueLayerSet_Roof" "', argument " "1"" of type '" "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *""'");
}
arg1 = reinterpret_cast< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof * >(argp1);
delete arg1;
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *SimMaterialLayerSet_OpaqueLayerSet_Roof_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *obj;
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
SWIG_TypeNewClientData(SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, SWIG_NewClientData(obj));
return SWIG_Py_Void();
}
SWIGINTERN PyObject *_wrap_new_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
xsd::cxx::tree::container *arg1 = (xsd::cxx::tree::container *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"O:new_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_xsd__cxx__tree___type, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence" "', argument " "1"" of type '" "xsd::cxx::tree::container *""'");
}
arg1 = reinterpret_cast< xsd::cxx::tree::container * >(argp1);
result = (xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > *)new xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >(arg1);
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_xsd__cxx__tree__sequenceT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_false_t, SWIG_POINTER_NEW | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_new_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)":new_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence")) SWIG_fail;
result = (xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > *)new xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_xsd__cxx__tree__sequenceT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_false_t, SWIG_POINTER_NEW | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_new_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
SwigValueWrapper< std::vector< xsd::cxx::tree::sequence_common::ptr,std::allocator< xsd::cxx::tree::sequence_common::ptr > >::size_type > arg1 ;
::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *arg2 = 0 ;
xsd::cxx::tree::container *arg3 = (xsd::cxx::tree::container *) 0 ;
void *argp1 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
void *argp3 = 0 ;
int res3 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"OOO:new_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence",&obj0,&obj1,&obj2)) SWIG_fail;
{
res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_std__vectorT_xsd__cxx__tree__sequence_common__ptr_std__allocatorT_xsd__cxx__tree__sequence_common__ptr_t_t__size_type, 0 | 0);
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence" "', argument " "1"" of type '" "xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::size_type""'");
}
if (!argp1) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence" "', argument " "1"" of type '" "xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::size_type""'");
} else {
xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::size_type * temp = reinterpret_cast< xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::size_type * >(argp1);
arg1 = *temp;
if (SWIG_IsNewObj(res1)) delete temp;
}
}
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0 | 0);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence" "', argument " "2"" of type '" "::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof const &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence" "', argument " "2"" of type '" "::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof const &""'");
}
arg2 = reinterpret_cast< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof * >(argp2);
res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_xsd__cxx__tree___type, 0 | 0 );
if (!SWIG_IsOK(res3)) {
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence" "', argument " "3"" of type '" "xsd::cxx::tree::container *""'");
}
arg3 = reinterpret_cast< xsd::cxx::tree::container * >(argp3);
result = (xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > *)new xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >(arg1,(::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof const &)*arg2,arg3);
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_xsd__cxx__tree__sequenceT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_false_t, SWIG_POINTER_NEW | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_new_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
SwigValueWrapper< std::vector< xsd::cxx::tree::sequence_common::ptr,std::allocator< xsd::cxx::tree::sequence_common::ptr > >::size_type > arg1 ;
::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *arg2 = 0 ;
void *argp1 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"OO:new_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence",&obj0,&obj1)) SWIG_fail;
{
res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_std__vectorT_xsd__cxx__tree__sequence_common__ptr_std__allocatorT_xsd__cxx__tree__sequence_common__ptr_t_t__size_type, 0 | 0);
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence" "', argument " "1"" of type '" "xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::size_type""'");
}
if (!argp1) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence" "', argument " "1"" of type '" "xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::size_type""'");
} else {
xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::size_type * temp = reinterpret_cast< xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::size_type * >(argp1);
arg1 = *temp;
if (SWIG_IsNewObj(res1)) delete temp;
}
}
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0 | 0);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence" "', argument " "2"" of type '" "::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof const &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence" "', argument " "2"" of type '" "::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof const &""'");
}
arg2 = reinterpret_cast< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof * >(argp2);
result = (xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > *)new xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >(arg1,(::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof const &)*arg2);
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_xsd__cxx__tree__sequenceT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_false_t, SWIG_POINTER_NEW | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_new_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > *arg1 = 0 ;
xsd::cxx::tree::flags arg2 ;
xsd::cxx::tree::container *arg3 = (xsd::cxx::tree::container *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 ;
int res2 = 0 ;
void *argp3 = 0 ;
int res3 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"OOO:new_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence",&obj0,&obj1,&obj2)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_xsd__cxx__tree__sequenceT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_false_t, 0 | 0);
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence" "', argument " "1"" of type '" "xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > const &""'");
}
if (!argp1) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence" "', argument " "1"" of type '" "xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > const &""'");
}
arg1 = reinterpret_cast< xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > * >(argp1);
{
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_xsd__cxx__tree__flags, 0 | 0);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence" "', argument " "2"" of type '" "xsd::cxx::tree::flags""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence" "', argument " "2"" of type '" "xsd::cxx::tree::flags""'");
} else {
xsd::cxx::tree::flags * temp = reinterpret_cast< xsd::cxx::tree::flags * >(argp2);
arg2 = *temp;
if (SWIG_IsNewObj(res2)) delete temp;
}
}
res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_xsd__cxx__tree___type, 0 | 0 );
if (!SWIG_IsOK(res3)) {
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence" "', argument " "3"" of type '" "xsd::cxx::tree::container *""'");
}
arg3 = reinterpret_cast< xsd::cxx::tree::container * >(argp3);
result = (xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > *)new xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >((xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > const &)*arg1,arg2,arg3);
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_xsd__cxx__tree__sequenceT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_false_t, SWIG_POINTER_NEW | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_new_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > *arg1 = 0 ;
xsd::cxx::tree::flags arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 ;
int res2 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"OO:new_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence",&obj0,&obj1)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_xsd__cxx__tree__sequenceT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_false_t, 0 | 0);
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence" "', argument " "1"" of type '" "xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > const &""'");
}
if (!argp1) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence" "', argument " "1"" of type '" "xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > const &""'");
}
arg1 = reinterpret_cast< xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > * >(argp1);
{
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_xsd__cxx__tree__flags, 0 | 0);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence" "', argument " "2"" of type '" "xsd::cxx::tree::flags""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence" "', argument " "2"" of type '" "xsd::cxx::tree::flags""'");
} else {
xsd::cxx::tree::flags * temp = reinterpret_cast< xsd::cxx::tree::flags * >(argp2);
arg2 = *temp;
if (SWIG_IsNewObj(res2)) delete temp;
}
}
result = (xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > *)new xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >((xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > const &)*arg1,arg2);
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_xsd__cxx__tree__sequenceT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_false_t, SWIG_POINTER_NEW | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_new_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence__SWIG_6(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > *arg1 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"O:new_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_xsd__cxx__tree__sequenceT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_false_t, 0 | 0);
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence" "', argument " "1"" of type '" "xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > const &""'");
}
if (!argp1) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence" "', argument " "1"" of type '" "xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > const &""'");
}
arg1 = reinterpret_cast< xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > * >(argp1);
result = (xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > *)new xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >((xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > const &)*arg1);
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_xsd__cxx__tree__sequenceT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_false_t, SWIG_POINTER_NEW | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_new_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence(PyObject *self, PyObject *args) {
int argc;
PyObject *argv[4] = {
0
};
int ii;
if (!PyTuple_Check(args)) SWIG_fail;
argc = args ? (int)PyObject_Length(args) : 0;
for (ii = 0; (ii < 3) && (ii < argc); ii++) {
argv[ii] = PyTuple_GET_ITEM(args,ii);
}
if (argc == 0) {
return _wrap_new_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence__SWIG_1(self, args);
}
if (argc == 1) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_xsd__cxx__tree___type, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_new_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence__SWIG_0(self, args);
}
}
if (argc == 1) {
int _v;
int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_xsd__cxx__tree__sequenceT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_false_t, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_new_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence__SWIG_6(self, args);
}
}
if (argc == 2) {
int _v;
int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_xsd__cxx__tree__sequenceT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_false_t, 0);
_v = SWIG_CheckState(res);
if (_v) {
int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_xsd__cxx__tree__flags, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_new_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence__SWIG_5(self, args);
}
}
}
if (argc == 2) {
int _v;
int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_std__vectorT_xsd__cxx__tree__sequence_common__ptr_std__allocatorT_xsd__cxx__tree__sequence_common__ptr_t_t__size_type, 0);
_v = SWIG_CheckState(res);
if (_v) {
int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_new_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence__SWIG_3(self, args);
}
}
}
if (argc == 3) {
int _v;
int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_std__vectorT_xsd__cxx__tree__sequence_common__ptr_std__allocatorT_xsd__cxx__tree__sequence_common__ptr_t_t__size_type, 0);
_v = SWIG_CheckState(res);
if (_v) {
int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_xsd__cxx__tree___type, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_new_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence__SWIG_2(self, args);
}
}
}
}
if (argc == 3) {
int _v;
int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_xsd__cxx__tree__sequenceT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_false_t, 0);
_v = SWIG_CheckState(res);
if (_v) {
int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_xsd__cxx__tree__flags, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_xsd__cxx__tree___type, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_new_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence__SWIG_4(self, args);
}
}
}
}
fail:
SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence'.\n"
" Possible C/C++ prototypes are:\n"
" xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::sequence(xsd::cxx::tree::container *)\n"
" xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::sequence()\n"
" xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::sequence(xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::size_type,::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof const &,xsd::cxx::tree::container *)\n"
" xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::sequence(xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::size_type,::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof const &)\n"
" xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::sequence(xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > const &,xsd::cxx::tree::flags,xsd::cxx::tree::container *)\n"
" xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::sequence(xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > const &,xsd::cxx::tree::flags)\n"
" xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::sequence(xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > const &)\n");
return 0;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_assign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > *arg1 = (xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > *) 0 ;
SwigValueWrapper< std::vector< xsd::cxx::tree::sequence_common::ptr,std::allocator< xsd::cxx::tree::sequence_common::ptr > >::size_type > arg2 ;
::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *arg3 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 ;
int res2 = 0 ;
void *argp3 = 0 ;
int res3 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
if (!PyArg_ParseTuple(args,(char *)"OOO:SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_assign",&obj0,&obj1,&obj2)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_xsd__cxx__tree__sequenceT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_false_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_assign" "', argument " "1"" of type '" "xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > *""'");
}
arg1 = reinterpret_cast< xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > * >(argp1);
{
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_xsd__cxx__tree__sequence_common__ptr_std__allocatorT_xsd__cxx__tree__sequence_common__ptr_t_t__size_type, 0 | 0);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_assign" "', argument " "2"" of type '" "xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::size_type""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_assign" "', argument " "2"" of type '" "xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::size_type""'");
} else {
xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::size_type * temp = reinterpret_cast< xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::size_type * >(argp2);
arg2 = *temp;
if (SWIG_IsNewObj(res2)) delete temp;
}
}
res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0 | 0);
if (!SWIG_IsOK(res3)) {
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_assign" "', argument " "3"" of type '" "::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof const &""'");
}
if (!argp3) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_assign" "', argument " "3"" of type '" "::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof const &""'");
}
arg3 = reinterpret_cast< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof * >(argp3);
(arg1)->assign(arg2,(::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof const &)*arg3);
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_begin__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > *arg1 = (xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
SwigValueWrapper< iterator_adapter< std::vector< xsd::cxx::tree::sequence_common::ptr,std::allocator< xsd::cxx::tree::sequence_common::ptr > >::const_iterator,::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof const > > result;
if (!PyArg_ParseTuple(args,(char *)"O:SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_begin",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_xsd__cxx__tree__sequenceT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_false_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_begin" "', argument " "1"" of type '" "xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > const *""'");
}
arg1 = reinterpret_cast< xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > * >(argp1);
result = ((xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > const *)arg1)->begin();
resultobj = SWIG_NewPointerObj((new xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::const_iterator(static_cast< const xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::const_iterator& >(result))), SWIGTYPE_p_iterator_adapterT_std__vectorT_xsd__cxx__tree__sequence_common__ptr_std__allocatorT_xsd__cxx__tree__sequence_common__ptr_t_t__const_iterator_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_const_t, SWIG_POINTER_OWN | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_end__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > *arg1 = (xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
SwigValueWrapper< iterator_adapter< std::vector< xsd::cxx::tree::sequence_common::ptr,std::allocator< xsd::cxx::tree::sequence_common::ptr > >::const_iterator,::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof const > > result;
if (!PyArg_ParseTuple(args,(char *)"O:SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_end",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_xsd__cxx__tree__sequenceT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_false_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_end" "', argument " "1"" of type '" "xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > const *""'");
}
arg1 = reinterpret_cast< xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > * >(argp1);
result = ((xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > const *)arg1)->end();
resultobj = SWIG_NewPointerObj((new xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::const_iterator(static_cast< const xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::const_iterator& >(result))), SWIGTYPE_p_iterator_adapterT_std__vectorT_xsd__cxx__tree__sequence_common__ptr_std__allocatorT_xsd__cxx__tree__sequence_common__ptr_t_t__const_iterator_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_const_t, SWIG_POINTER_OWN | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_begin__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > *arg1 = (xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
SwigValueWrapper< iterator_adapter< std::vector< xsd::cxx::tree::sequence_common::ptr,std::allocator< xsd::cxx::tree::sequence_common::ptr > >::iterator,::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof > > result;
if (!PyArg_ParseTuple(args,(char *)"O:SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_begin",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_xsd__cxx__tree__sequenceT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_false_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_begin" "', argument " "1"" of type '" "xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > *""'");
}
arg1 = reinterpret_cast< xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > * >(argp1);
result = (arg1)->begin();
resultobj = SWIG_NewPointerObj((new xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::iterator(static_cast< const xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::iterator& >(result))), SWIGTYPE_p_iterator_adapterT_std__vectorT_xsd__cxx__tree__sequence_common__ptr_std__allocatorT_xsd__cxx__tree__sequence_common__ptr_t_t__iterator___schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_t, SWIG_POINTER_OWN | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_begin(PyObject *self, PyObject *args) {
int argc;
PyObject *argv[2] = {
0
};
int ii;
if (!PyTuple_Check(args)) SWIG_fail;
argc = args ? (int)PyObject_Length(args) : 0;
for (ii = 0; (ii < 1) && (ii < argc); ii++) {
argv[ii] = PyTuple_GET_ITEM(args,ii);
}
if (argc == 1) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_xsd__cxx__tree__sequenceT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_false_t, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_begin__SWIG_1(self, args);
}
}
if (argc == 1) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_xsd__cxx__tree__sequenceT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_false_t, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_begin__SWIG_0(self, args);
}
}
fail:
SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_begin'.\n"
" Possible C/C++ prototypes are:\n"
" xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::begin() const\n"
" xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::begin()\n");
return 0;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_end__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > *arg1 = (xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
SwigValueWrapper< iterator_adapter< std::vector< xsd::cxx::tree::sequence_common::ptr,std::allocator< xsd::cxx::tree::sequence_common::ptr > >::iterator,::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof > > result;
if (!PyArg_ParseTuple(args,(char *)"O:SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_end",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_xsd__cxx__tree__sequenceT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_false_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_end" "', argument " "1"" of type '" "xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > *""'");
}
arg1 = reinterpret_cast< xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > * >(argp1);
result = (arg1)->end();
resultobj = SWIG_NewPointerObj((new xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::iterator(static_cast< const xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::iterator& >(result))), SWIGTYPE_p_iterator_adapterT_std__vectorT_xsd__cxx__tree__sequence_common__ptr_std__allocatorT_xsd__cxx__tree__sequence_common__ptr_t_t__iterator___schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_t, SWIG_POINTER_OWN | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_end(PyObject *self, PyObject *args) {
int argc;
PyObject *argv[2] = {
0
};
int ii;
if (!PyTuple_Check(args)) SWIG_fail;
argc = args ? (int)PyObject_Length(args) : 0;
for (ii = 0; (ii < 1) && (ii < argc); ii++) {
argv[ii] = PyTuple_GET_ITEM(args,ii);
}
if (argc == 1) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_xsd__cxx__tree__sequenceT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_false_t, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_end__SWIG_1(self, args);
}
}
if (argc == 1) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_xsd__cxx__tree__sequenceT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_false_t, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_end__SWIG_0(self, args);
}
}
fail:
SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_end'.\n"
" Possible C/C++ prototypes are:\n"
" xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::end() const\n"
" xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::end()\n");
return 0;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_rbegin__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > *arg1 = (xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
SwigValueWrapper< iterator_adapter< std::vector< xsd::cxx::tree::sequence_common::ptr,std::allocator< xsd::cxx::tree::sequence_common::ptr > >::const_reverse_iterator,::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof const > > result;
if (!PyArg_ParseTuple(args,(char *)"O:SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_rbegin",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_xsd__cxx__tree__sequenceT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_false_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_rbegin" "', argument " "1"" of type '" "xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > const *""'");
}
arg1 = reinterpret_cast< xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > * >(argp1);
result = ((xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > const *)arg1)->rbegin();
resultobj = SWIG_NewPointerObj((new xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::const_reverse_iterator(static_cast< const xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::const_reverse_iterator& >(result))), SWIGTYPE_p_iterator_adapterT_std__vectorT_xsd__cxx__tree__sequence_common__ptr_std__allocatorT_xsd__cxx__tree__sequence_common__ptr_t_t__const_reverse_iterator_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_const_t, SWIG_POINTER_OWN | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_rend__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > *arg1 = (xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
SwigValueWrapper< iterator_adapter< std::vector< xsd::cxx::tree::sequence_common::ptr,std::allocator< xsd::cxx::tree::sequence_common::ptr > >::const_reverse_iterator,::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof const > > result;
if (!PyArg_ParseTuple(args,(char *)"O:SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_rend",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_xsd__cxx__tree__sequenceT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_false_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_rend" "', argument " "1"" of type '" "xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > const *""'");
}
arg1 = reinterpret_cast< xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > * >(argp1);
result = ((xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > const *)arg1)->rend();
resultobj = SWIG_NewPointerObj((new xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::const_reverse_iterator(static_cast< const xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::const_reverse_iterator& >(result))), SWIGTYPE_p_iterator_adapterT_std__vectorT_xsd__cxx__tree__sequence_common__ptr_std__allocatorT_xsd__cxx__tree__sequence_common__ptr_t_t__const_reverse_iterator_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_const_t, SWIG_POINTER_OWN | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_rbegin__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > *arg1 = (xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
SwigValueWrapper< iterator_adapter< std::vector< xsd::cxx::tree::sequence_common::ptr,std::allocator< xsd::cxx::tree::sequence_common::ptr > >::reverse_iterator,::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof > > result;
if (!PyArg_ParseTuple(args,(char *)"O:SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_rbegin",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_xsd__cxx__tree__sequenceT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_false_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_rbegin" "', argument " "1"" of type '" "xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > *""'");
}
arg1 = reinterpret_cast< xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > * >(argp1);
result = (arg1)->rbegin();
resultobj = SWIG_NewPointerObj((new xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::reverse_iterator(static_cast< const xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::reverse_iterator& >(result))), SWIGTYPE_p_iterator_adapterT_std__vectorT_xsd__cxx__tree__sequence_common__ptr_std__allocatorT_xsd__cxx__tree__sequence_common__ptr_t_t__reverse_iterator___schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_t, SWIG_POINTER_OWN | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_rbegin(PyObject *self, PyObject *args) {
int argc;
PyObject *argv[2] = {
0
};
int ii;
if (!PyTuple_Check(args)) SWIG_fail;
argc = args ? (int)PyObject_Length(args) : 0;
for (ii = 0; (ii < 1) && (ii < argc); ii++) {
argv[ii] = PyTuple_GET_ITEM(args,ii);
}
if (argc == 1) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_xsd__cxx__tree__sequenceT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_false_t, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_rbegin__SWIG_1(self, args);
}
}
if (argc == 1) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_xsd__cxx__tree__sequenceT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_false_t, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_rbegin__SWIG_0(self, args);
}
}
fail:
SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_rbegin'.\n"
" Possible C/C++ prototypes are:\n"
" xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::rbegin() const\n"
" xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::rbegin()\n");
return 0;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_rend__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > *arg1 = (xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
SwigValueWrapper< iterator_adapter< std::vector< xsd::cxx::tree::sequence_common::ptr,std::allocator< xsd::cxx::tree::sequence_common::ptr > >::reverse_iterator,::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof > > result;
if (!PyArg_ParseTuple(args,(char *)"O:SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_rend",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_xsd__cxx__tree__sequenceT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_false_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_rend" "', argument " "1"" of type '" "xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > *""'");
}
arg1 = reinterpret_cast< xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > * >(argp1);
result = (arg1)->rend();
resultobj = SWIG_NewPointerObj((new xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::reverse_iterator(static_cast< const xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::reverse_iterator& >(result))), SWIGTYPE_p_iterator_adapterT_std__vectorT_xsd__cxx__tree__sequence_common__ptr_std__allocatorT_xsd__cxx__tree__sequence_common__ptr_t_t__reverse_iterator___schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_t, SWIG_POINTER_OWN | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_rend(PyObject *self, PyObject *args) {
int argc;
PyObject *argv[2] = {
0
};
int ii;
if (!PyTuple_Check(args)) SWIG_fail;
argc = args ? (int)PyObject_Length(args) : 0;
for (ii = 0; (ii < 1) && (ii < argc); ii++) {
argv[ii] = PyTuple_GET_ITEM(args,ii);
}
if (argc == 1) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_xsd__cxx__tree__sequenceT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_false_t, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_rend__SWIG_1(self, args);
}
}
if (argc == 1) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_xsd__cxx__tree__sequenceT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_false_t, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_rend__SWIG_0(self, args);
}
}
fail:
SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_rend'.\n"
" Possible C/C++ prototypes are:\n"
" xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::rend() const\n"
" xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::rend()\n");
return 0;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_at__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > *arg1 = (xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > *) 0 ;
SwigValueWrapper< std::vector< xsd::cxx::tree::sequence_common::ptr,std::allocator< xsd::cxx::tree::sequence_common::ptr > >::size_type > arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 ;
int res2 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"OO:SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_at",&obj0,&obj1)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_xsd__cxx__tree__sequenceT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_false_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_at" "', argument " "1"" of type '" "xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > *""'");
}
arg1 = reinterpret_cast< xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > * >(argp1);
{
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_xsd__cxx__tree__sequence_common__ptr_std__allocatorT_xsd__cxx__tree__sequence_common__ptr_t_t__size_type, 0 | 0);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_at" "', argument " "2"" of type '" "xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::size_type""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_at" "', argument " "2"" of type '" "xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::size_type""'");
} else {
xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::size_type * temp = reinterpret_cast< xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::size_type * >(argp2);
arg2 = *temp;
if (SWIG_IsNewObj(res2)) delete temp;
}
}
result = (::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *) &(arg1)->at(arg2);
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0 | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_at__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > *arg1 = (xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > *) 0 ;
int arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
int val2 ;
int ecode2 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"OO:SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_at",&obj0,&obj1)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_xsd__cxx__tree__sequenceT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_false_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_at" "', argument " "1"" of type '" "xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > *""'");
}
arg1 = reinterpret_cast< xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > * >(argp1);
ecode2 = SWIG_AsVal_int(obj1, &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_at" "', argument " "2"" of type '" "int""'");
}
arg2 = static_cast< int >(val2);
result = (::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *) &(arg1)->at(arg2);
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0 | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_at__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > *arg1 = (xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > *) 0 ;
SwigValueWrapper< std::vector< xsd::cxx::tree::sequence_common::ptr,std::allocator< xsd::cxx::tree::sequence_common::ptr > >::size_type > arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 ;
int res2 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"OO:SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_at",&obj0,&obj1)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_xsd__cxx__tree__sequenceT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_false_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_at" "', argument " "1"" of type '" "xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > const *""'");
}
arg1 = reinterpret_cast< xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > * >(argp1);
{
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_xsd__cxx__tree__sequence_common__ptr_std__allocatorT_xsd__cxx__tree__sequence_common__ptr_t_t__size_type, 0 | 0);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_at" "', argument " "2"" of type '" "xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::size_type""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_at" "', argument " "2"" of type '" "xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::size_type""'");
} else {
xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::size_type * temp = reinterpret_cast< xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::size_type * >(argp2);
arg2 = *temp;
if (SWIG_IsNewObj(res2)) delete temp;
}
}
result = (::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *) &((xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > const *)arg1)->at(arg2);
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0 | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_at(PyObject *self, PyObject *args) {
int argc;
PyObject *argv[3] = {
0
};
int ii;
if (!PyTuple_Check(args)) SWIG_fail;
argc = args ? (int)PyObject_Length(args) : 0;
for (ii = 0; (ii < 2) && (ii < argc); ii++) {
argv[ii] = PyTuple_GET_ITEM(args,ii);
}
if (argc == 2) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_xsd__cxx__tree__sequenceT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_false_t, 0);
_v = SWIG_CheckState(res);
if (_v) {
int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_std__vectorT_xsd__cxx__tree__sequence_common__ptr_std__allocatorT_xsd__cxx__tree__sequence_common__ptr_t_t__size_type, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_at__SWIG_0(self, args);
}
}
}
if (argc == 2) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_xsd__cxx__tree__sequenceT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_false_t, 0);
_v = SWIG_CheckState(res);
if (_v) {
int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_std__vectorT_xsd__cxx__tree__sequence_common__ptr_std__allocatorT_xsd__cxx__tree__sequence_common__ptr_t_t__size_type, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_at__SWIG_2(self, args);
}
}
}
if (argc == 2) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_xsd__cxx__tree__sequenceT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_false_t, 0);
_v = SWIG_CheckState(res);
if (_v) {
{
int res = SWIG_AsVal_int(argv[1], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
return _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_at__SWIG_1(self, args);
}
}
}
fail:
SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_at'.\n"
" Possible C/C++ prototypes are:\n"
" xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::at(xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::size_type)\n"
" xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::at(int)\n"
" xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::at(xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::size_type) const\n");
return 0;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_front__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > *arg1 = (xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"O:SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_front",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_xsd__cxx__tree__sequenceT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_false_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_front" "', argument " "1"" of type '" "xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > *""'");
}
arg1 = reinterpret_cast< xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > * >(argp1);
result = (::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *) &(arg1)->front();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0 | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_front__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > *arg1 = (xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"O:SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_front",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_xsd__cxx__tree__sequenceT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_false_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_front" "', argument " "1"" of type '" "xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > const *""'");
}
arg1 = reinterpret_cast< xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > * >(argp1);
result = (::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *) &((xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > const *)arg1)->front();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0 | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_front(PyObject *self, PyObject *args) {
int argc;
PyObject *argv[2] = {
0
};
int ii;
if (!PyTuple_Check(args)) SWIG_fail;
argc = args ? (int)PyObject_Length(args) : 0;
for (ii = 0; (ii < 1) && (ii < argc); ii++) {
argv[ii] = PyTuple_GET_ITEM(args,ii);
}
if (argc == 1) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_xsd__cxx__tree__sequenceT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_false_t, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_front__SWIG_0(self, args);
}
}
if (argc == 1) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_xsd__cxx__tree__sequenceT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_false_t, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_front__SWIG_1(self, args);
}
}
fail:
SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_front'.\n"
" Possible C/C++ prototypes are:\n"
" xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::front()\n"
" xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::front() const\n");
return 0;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_back__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > *arg1 = (xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"O:SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_back",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_xsd__cxx__tree__sequenceT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_false_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_back" "', argument " "1"" of type '" "xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > *""'");
}
arg1 = reinterpret_cast< xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > * >(argp1);
result = (::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *) &(arg1)->back();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0 | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_back__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > *arg1 = (xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"O:SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_back",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_xsd__cxx__tree__sequenceT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_false_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_back" "', argument " "1"" of type '" "xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > const *""'");
}
arg1 = reinterpret_cast< xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > * >(argp1);
result = (::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *) &((xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > const *)arg1)->back();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0 | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_back(PyObject *self, PyObject *args) {
int argc;
PyObject *argv[2] = {
0
};
int ii;
if (!PyTuple_Check(args)) SWIG_fail;
argc = args ? (int)PyObject_Length(args) : 0;
for (ii = 0; (ii < 1) && (ii < argc); ii++) {
argv[ii] = PyTuple_GET_ITEM(args,ii);
}
if (argc == 1) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_xsd__cxx__tree__sequenceT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_false_t, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_back__SWIG_0(self, args);
}
}
if (argc == 1) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_xsd__cxx__tree__sequenceT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_false_t, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_back__SWIG_1(self, args);
}
}
fail:
SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_back'.\n"
" Possible C/C++ prototypes are:\n"
" xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::back()\n"
" xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::back() const\n");
return 0;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_push_back__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > *arg1 = (xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > *) 0 ;
::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
if (!PyArg_ParseTuple(args,(char *)"OO:SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_push_back",&obj0,&obj1)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_xsd__cxx__tree__sequenceT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_false_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_push_back" "', argument " "1"" of type '" "xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > *""'");
}
arg1 = reinterpret_cast< xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > * >(argp1);
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0 | 0);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_push_back" "', argument " "2"" of type '" "::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof const &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_push_back" "', argument " "2"" of type '" "::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof const &""'");
}
arg2 = reinterpret_cast< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof * >(argp2);
(arg1)->push_back((::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof const &)*arg2);
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_push_back__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > *arg1 = (xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > *) 0 ;
std::auto_ptr< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof > arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 ;
int res2 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
if (!PyArg_ParseTuple(args,(char *)"OO:SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_push_back",&obj0,&obj1)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_xsd__cxx__tree__sequenceT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_false_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_push_back" "', argument " "1"" of type '" "xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > *""'");
}
arg1 = reinterpret_cast< xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > * >(argp1);
{
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__auto_ptrT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_t, 0 | 0);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_push_back" "', argument " "2"" of type '" "std::auto_ptr< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof >""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_push_back" "', argument " "2"" of type '" "std::auto_ptr< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof >""'");
} else {
std::auto_ptr< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof > * temp = reinterpret_cast< std::auto_ptr< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof > * >(argp2);
arg2 = *temp;
if (SWIG_IsNewObj(res2)) delete temp;
}
}
(arg1)->push_back(arg2);
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_push_back(PyObject *self, PyObject *args) {
int argc;
PyObject *argv[3] = {
0
};
int ii;
if (!PyTuple_Check(args)) SWIG_fail;
argc = args ? (int)PyObject_Length(args) : 0;
for (ii = 0; (ii < 2) && (ii < argc); ii++) {
argv[ii] = PyTuple_GET_ITEM(args,ii);
}
if (argc == 2) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_xsd__cxx__tree__sequenceT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_false_t, 0);
_v = SWIG_CheckState(res);
if (_v) {
int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_push_back__SWIG_0(self, args);
}
}
}
if (argc == 2) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_xsd__cxx__tree__sequenceT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_false_t, 0);
_v = SWIG_CheckState(res);
if (_v) {
int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_std__auto_ptrT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_t, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_push_back__SWIG_1(self, args);
}
}
}
fail:
SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_push_back'.\n"
" Possible C/C++ prototypes are:\n"
" xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::push_back(::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof const &)\n"
" xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::push_back(std::auto_ptr< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof >)\n");
return 0;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_pop_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > *arg1 = (xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
if (!PyArg_ParseTuple(args,(char *)"O:SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_pop_back",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_xsd__cxx__tree__sequenceT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_false_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_pop_back" "', argument " "1"" of type '" "xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > *""'");
}
arg1 = reinterpret_cast< xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > * >(argp1);
(arg1)->pop_back();
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_detach_back__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > *arg1 = (xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > *) 0 ;
bool arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
bool val2 ;
int ecode2 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
std::auto_ptr< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof > result;
if (!PyArg_ParseTuple(args,(char *)"OO:SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_detach_back",&obj0,&obj1)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_xsd__cxx__tree__sequenceT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_false_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_detach_back" "', argument " "1"" of type '" "xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > *""'");
}
arg1 = reinterpret_cast< xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > * >(argp1);
ecode2 = SWIG_AsVal_bool(obj1, &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_detach_back" "', argument " "2"" of type '" "bool""'");
}
arg2 = static_cast< bool >(val2);
result = (arg1)->detach_back(arg2);
resultobj = SWIG_NewPointerObj((&result)->release(), SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, SWIG_POINTER_OWN | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_detach_back__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > *arg1 = (xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
std::auto_ptr< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof > result;
if (!PyArg_ParseTuple(args,(char *)"O:SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_detach_back",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_xsd__cxx__tree__sequenceT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_false_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_detach_back" "', argument " "1"" of type '" "xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > *""'");
}
arg1 = reinterpret_cast< xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > * >(argp1);
result = (arg1)->detach_back();
resultobj = SWIG_NewPointerObj((&result)->release(), SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, SWIG_POINTER_OWN | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_detach_back(PyObject *self, PyObject *args) {
int argc;
PyObject *argv[3] = {
0
};
int ii;
if (!PyTuple_Check(args)) SWIG_fail;
argc = args ? (int)PyObject_Length(args) : 0;
for (ii = 0; (ii < 2) && (ii < argc); ii++) {
argv[ii] = PyTuple_GET_ITEM(args,ii);
}
if (argc == 1) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_xsd__cxx__tree__sequenceT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_false_t, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_detach_back__SWIG_1(self, args);
}
}
if (argc == 2) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_xsd__cxx__tree__sequenceT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_false_t, 0);
_v = SWIG_CheckState(res);
if (_v) {
{
int res = SWIG_AsVal_bool(argv[1], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
return _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_detach_back__SWIG_0(self, args);
}
}
}
fail:
SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_detach_back'.\n"
" Possible C/C++ prototypes are:\n"
" xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::detach_back(bool)\n"
" xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::detach_back()\n");
return 0;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_insert__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > *arg1 = (xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > *) 0 ;
SwigValueWrapper< iterator_adapter< std::vector< xsd::cxx::tree::sequence_common::ptr,std::allocator< xsd::cxx::tree::sequence_common::ptr > >::iterator,::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof > > arg2 ;
::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *arg3 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 ;
int res2 = 0 ;
void *argp3 = 0 ;
int res3 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
SwigValueWrapper< iterator_adapter< std::vector< xsd::cxx::tree::sequence_common::ptr,std::allocator< xsd::cxx::tree::sequence_common::ptr > >::iterator,::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof > > result;
if (!PyArg_ParseTuple(args,(char *)"OOO:SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_insert",&obj0,&obj1,&obj2)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_xsd__cxx__tree__sequenceT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_false_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_insert" "', argument " "1"" of type '" "xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > *""'");
}
arg1 = reinterpret_cast< xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > * >(argp1);
{
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_iterator_adapterT_std__vectorT_xsd__cxx__tree__sequence_common__ptr_std__allocatorT_xsd__cxx__tree__sequence_common__ptr_t_t__iterator___schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_t, 0 | 0);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_insert" "', argument " "2"" of type '" "xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::iterator""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_insert" "', argument " "2"" of type '" "xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::iterator""'");
} else {
xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::iterator * temp = reinterpret_cast< xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::iterator * >(argp2);
arg2 = *temp;
if (SWIG_IsNewObj(res2)) delete temp;
}
}
res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0 | 0);
if (!SWIG_IsOK(res3)) {
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_insert" "', argument " "3"" of type '" "::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof const &""'");
}
if (!argp3) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_insert" "', argument " "3"" of type '" "::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof const &""'");
}
arg3 = reinterpret_cast< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof * >(argp3);
result = (arg1)->insert(arg2,(::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof const &)*arg3);
resultobj = SWIG_NewPointerObj((new xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::iterator(static_cast< const xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::iterator& >(result))), SWIGTYPE_p_iterator_adapterT_std__vectorT_xsd__cxx__tree__sequence_common__ptr_std__allocatorT_xsd__cxx__tree__sequence_common__ptr_t_t__iterator___schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_t, SWIG_POINTER_OWN | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_insert__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > *arg1 = (xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > *) 0 ;
SwigValueWrapper< iterator_adapter< std::vector< xsd::cxx::tree::sequence_common::ptr,std::allocator< xsd::cxx::tree::sequence_common::ptr > >::iterator,::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof > > arg2 ;
std::auto_ptr< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof > arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 ;
int res2 = 0 ;
void *argp3 ;
int res3 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
SwigValueWrapper< iterator_adapter< std::vector< xsd::cxx::tree::sequence_common::ptr,std::allocator< xsd::cxx::tree::sequence_common::ptr > >::iterator,::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof > > result;
if (!PyArg_ParseTuple(args,(char *)"OOO:SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_insert",&obj0,&obj1,&obj2)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_xsd__cxx__tree__sequenceT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_false_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_insert" "', argument " "1"" of type '" "xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > *""'");
}
arg1 = reinterpret_cast< xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > * >(argp1);
{
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_iterator_adapterT_std__vectorT_xsd__cxx__tree__sequence_common__ptr_std__allocatorT_xsd__cxx__tree__sequence_common__ptr_t_t__iterator___schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_t, 0 | 0);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_insert" "', argument " "2"" of type '" "xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::iterator""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_insert" "', argument " "2"" of type '" "xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::iterator""'");
} else {
xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::iterator * temp = reinterpret_cast< xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::iterator * >(argp2);
arg2 = *temp;
if (SWIG_IsNewObj(res2)) delete temp;
}
}
{
res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_std__auto_ptrT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_t, 0 | 0);
if (!SWIG_IsOK(res3)) {
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_insert" "', argument " "3"" of type '" "std::auto_ptr< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof >""'");
}
if (!argp3) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_insert" "', argument " "3"" of type '" "std::auto_ptr< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof >""'");
} else {
std::auto_ptr< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof > * temp = reinterpret_cast< std::auto_ptr< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof > * >(argp3);
arg3 = *temp;
if (SWIG_IsNewObj(res3)) delete temp;
}
}
result = (arg1)->insert(arg2,arg3);
resultobj = SWIG_NewPointerObj((new xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::iterator(static_cast< const xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::iterator& >(result))), SWIGTYPE_p_iterator_adapterT_std__vectorT_xsd__cxx__tree__sequence_common__ptr_std__allocatorT_xsd__cxx__tree__sequence_common__ptr_t_t__iterator___schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_t, SWIG_POINTER_OWN | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_insert__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > *arg1 = (xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > *) 0 ;
SwigValueWrapper< iterator_adapter< std::vector< xsd::cxx::tree::sequence_common::ptr,std::allocator< xsd::cxx::tree::sequence_common::ptr > >::iterator,::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof > > arg2 ;
SwigValueWrapper< std::vector< xsd::cxx::tree::sequence_common::ptr,std::allocator< xsd::cxx::tree::sequence_common::ptr > >::size_type > arg3 ;
::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *arg4 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 ;
int res2 = 0 ;
void *argp3 ;
int res3 = 0 ;
void *argp4 = 0 ;
int res4 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
PyObject * obj3 = 0 ;
if (!PyArg_ParseTuple(args,(char *)"OOOO:SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_insert",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_xsd__cxx__tree__sequenceT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_false_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_insert" "', argument " "1"" of type '" "xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > *""'");
}
arg1 = reinterpret_cast< xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > * >(argp1);
{
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_iterator_adapterT_std__vectorT_xsd__cxx__tree__sequence_common__ptr_std__allocatorT_xsd__cxx__tree__sequence_common__ptr_t_t__iterator___schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_t, 0 | 0);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_insert" "', argument " "2"" of type '" "xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::iterator""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_insert" "', argument " "2"" of type '" "xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::iterator""'");
} else {
xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::iterator * temp = reinterpret_cast< xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::iterator * >(argp2);
arg2 = *temp;
if (SWIG_IsNewObj(res2)) delete temp;
}
}
{
res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_std__vectorT_xsd__cxx__tree__sequence_common__ptr_std__allocatorT_xsd__cxx__tree__sequence_common__ptr_t_t__size_type, 0 | 0);
if (!SWIG_IsOK(res3)) {
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_insert" "', argument " "3"" of type '" "xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::size_type""'");
}
if (!argp3) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_insert" "', argument " "3"" of type '" "xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::size_type""'");
} else {
xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::size_type * temp = reinterpret_cast< xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::size_type * >(argp3);
arg3 = *temp;
if (SWIG_IsNewObj(res3)) delete temp;
}
}
res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0 | 0);
if (!SWIG_IsOK(res4)) {
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_insert" "', argument " "4"" of type '" "::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof const &""'");
}
if (!argp4) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_insert" "', argument " "4"" of type '" "::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof const &""'");
}
arg4 = reinterpret_cast< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof * >(argp4);
(arg1)->insert(arg2,arg3,(::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof const &)*arg4);
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_insert(PyObject *self, PyObject *args) {
int argc;
PyObject *argv[5] = {
0
};
int ii;
if (!PyTuple_Check(args)) SWIG_fail;
argc = args ? (int)PyObject_Length(args) : 0;
for (ii = 0; (ii < 4) && (ii < argc); ii++) {
argv[ii] = PyTuple_GET_ITEM(args,ii);
}
if (argc == 3) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_xsd__cxx__tree__sequenceT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_false_t, 0);
_v = SWIG_CheckState(res);
if (_v) {
int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_iterator_adapterT_std__vectorT_xsd__cxx__tree__sequence_common__ptr_std__allocatorT_xsd__cxx__tree__sequence_common__ptr_t_t__iterator___schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_t, 0);
_v = SWIG_CheckState(res);
if (_v) {
int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_insert__SWIG_0(self, args);
}
}
}
}
if (argc == 3) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_xsd__cxx__tree__sequenceT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_false_t, 0);
_v = SWIG_CheckState(res);
if (_v) {
int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_iterator_adapterT_std__vectorT_xsd__cxx__tree__sequence_common__ptr_std__allocatorT_xsd__cxx__tree__sequence_common__ptr_t_t__iterator___schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_t, 0);
_v = SWIG_CheckState(res);
if (_v) {
int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_std__auto_ptrT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_t, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_insert__SWIG_1(self, args);
}
}
}
}
if (argc == 4) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_xsd__cxx__tree__sequenceT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_false_t, 0);
_v = SWIG_CheckState(res);
if (_v) {
int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_iterator_adapterT_std__vectorT_xsd__cxx__tree__sequence_common__ptr_std__allocatorT_xsd__cxx__tree__sequence_common__ptr_t_t__iterator___schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_t, 0);
_v = SWIG_CheckState(res);
if (_v) {
int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_std__vectorT_xsd__cxx__tree__sequence_common__ptr_std__allocatorT_xsd__cxx__tree__sequence_common__ptr_t_t__size_type, 0);
_v = SWIG_CheckState(res);
if (_v) {
int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_insert__SWIG_2(self, args);
}
}
}
}
}
fail:
SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_insert'.\n"
" Possible C/C++ prototypes are:\n"
" xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::insert(xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::iterator,::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof const &)\n"
" xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::insert(xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::iterator,std::auto_ptr< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof >)\n"
" xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::insert(xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::iterator,xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::size_type,::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof const &)\n");
return 0;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_erase__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > *arg1 = (xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > *) 0 ;
SwigValueWrapper< iterator_adapter< std::vector< xsd::cxx::tree::sequence_common::ptr,std::allocator< xsd::cxx::tree::sequence_common::ptr > >::iterator,::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof > > arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 ;
int res2 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
SwigValueWrapper< iterator_adapter< std::vector< xsd::cxx::tree::sequence_common::ptr,std::allocator< xsd::cxx::tree::sequence_common::ptr > >::iterator,::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof > > result;
if (!PyArg_ParseTuple(args,(char *)"OO:SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_erase",&obj0,&obj1)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_xsd__cxx__tree__sequenceT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_false_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_erase" "', argument " "1"" of type '" "xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > *""'");
}
arg1 = reinterpret_cast< xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > * >(argp1);
{
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_iterator_adapterT_std__vectorT_xsd__cxx__tree__sequence_common__ptr_std__allocatorT_xsd__cxx__tree__sequence_common__ptr_t_t__iterator___schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_t, 0 | 0);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_erase" "', argument " "2"" of type '" "xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::iterator""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_erase" "', argument " "2"" of type '" "xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::iterator""'");
} else {
xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::iterator * temp = reinterpret_cast< xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::iterator * >(argp2);
arg2 = *temp;
if (SWIG_IsNewObj(res2)) delete temp;
}
}
result = (arg1)->erase(arg2);
resultobj = SWIG_NewPointerObj((new xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::iterator(static_cast< const xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::iterator& >(result))), SWIGTYPE_p_iterator_adapterT_std__vectorT_xsd__cxx__tree__sequence_common__ptr_std__allocatorT_xsd__cxx__tree__sequence_common__ptr_t_t__iterator___schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_t, SWIG_POINTER_OWN | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_erase__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > *arg1 = (xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > *) 0 ;
SwigValueWrapper< iterator_adapter< std::vector< xsd::cxx::tree::sequence_common::ptr,std::allocator< xsd::cxx::tree::sequence_common::ptr > >::iterator,::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof > > arg2 ;
SwigValueWrapper< iterator_adapter< std::vector< xsd::cxx::tree::sequence_common::ptr,std::allocator< xsd::cxx::tree::sequence_common::ptr > >::iterator,::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof > > arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 ;
int res2 = 0 ;
void *argp3 ;
int res3 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
SwigValueWrapper< iterator_adapter< std::vector< xsd::cxx::tree::sequence_common::ptr,std::allocator< xsd::cxx::tree::sequence_common::ptr > >::iterator,::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof > > result;
if (!PyArg_ParseTuple(args,(char *)"OOO:SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_erase",&obj0,&obj1,&obj2)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_xsd__cxx__tree__sequenceT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_false_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_erase" "', argument " "1"" of type '" "xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > *""'");
}
arg1 = reinterpret_cast< xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > * >(argp1);
{
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_iterator_adapterT_std__vectorT_xsd__cxx__tree__sequence_common__ptr_std__allocatorT_xsd__cxx__tree__sequence_common__ptr_t_t__iterator___schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_t, 0 | 0);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_erase" "', argument " "2"" of type '" "xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::iterator""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_erase" "', argument " "2"" of type '" "xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::iterator""'");
} else {
xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::iterator * temp = reinterpret_cast< xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::iterator * >(argp2);
arg2 = *temp;
if (SWIG_IsNewObj(res2)) delete temp;
}
}
{
res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_iterator_adapterT_std__vectorT_xsd__cxx__tree__sequence_common__ptr_std__allocatorT_xsd__cxx__tree__sequence_common__ptr_t_t__iterator___schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_t, 0 | 0);
if (!SWIG_IsOK(res3)) {
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_erase" "', argument " "3"" of type '" "xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::iterator""'");
}
if (!argp3) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_erase" "', argument " "3"" of type '" "xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::iterator""'");
} else {
xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::iterator * temp = reinterpret_cast< xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::iterator * >(argp3);
arg3 = *temp;
if (SWIG_IsNewObj(res3)) delete temp;
}
}
result = (arg1)->erase(arg2,arg3);
resultobj = SWIG_NewPointerObj((new xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::iterator(static_cast< const xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::iterator& >(result))), SWIGTYPE_p_iterator_adapterT_std__vectorT_xsd__cxx__tree__sequence_common__ptr_std__allocatorT_xsd__cxx__tree__sequence_common__ptr_t_t__iterator___schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_t, SWIG_POINTER_OWN | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_erase(PyObject *self, PyObject *args) {
int argc;
PyObject *argv[4] = {
0
};
int ii;
if (!PyTuple_Check(args)) SWIG_fail;
argc = args ? (int)PyObject_Length(args) : 0;
for (ii = 0; (ii < 3) && (ii < argc); ii++) {
argv[ii] = PyTuple_GET_ITEM(args,ii);
}
if (argc == 2) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_xsd__cxx__tree__sequenceT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_false_t, 0);
_v = SWIG_CheckState(res);
if (_v) {
int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_iterator_adapterT_std__vectorT_xsd__cxx__tree__sequence_common__ptr_std__allocatorT_xsd__cxx__tree__sequence_common__ptr_t_t__iterator___schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_t, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_erase__SWIG_0(self, args);
}
}
}
if (argc == 3) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_xsd__cxx__tree__sequenceT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_false_t, 0);
_v = SWIG_CheckState(res);
if (_v) {
int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_iterator_adapterT_std__vectorT_xsd__cxx__tree__sequence_common__ptr_std__allocatorT_xsd__cxx__tree__sequence_common__ptr_t_t__iterator___schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_t, 0);
_v = SWIG_CheckState(res);
if (_v) {
int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_iterator_adapterT_std__vectorT_xsd__cxx__tree__sequence_common__ptr_std__allocatorT_xsd__cxx__tree__sequence_common__ptr_t_t__iterator___schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_t, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_erase__SWIG_1(self, args);
}
}
}
}
fail:
SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_erase'.\n"
" Possible C/C++ prototypes are:\n"
" xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::erase(xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::iterator)\n"
" xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::erase(xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::iterator,xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::iterator)\n");
return 0;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_detach__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > *arg1 = (xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > *) 0 ;
SwigValueWrapper< iterator_adapter< std::vector< xsd::cxx::tree::sequence_common::ptr,std::allocator< xsd::cxx::tree::sequence_common::ptr > >::iterator,::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof > > arg2 ;
std::auto_ptr< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof > *arg3 = 0 ;
bool arg4 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 ;
int res2 = 0 ;
void *argp3 = 0 ;
int res3 = 0 ;
bool val4 ;
int ecode4 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
PyObject * obj3 = 0 ;
SwigValueWrapper< iterator_adapter< std::vector< xsd::cxx::tree::sequence_common::ptr,std::allocator< xsd::cxx::tree::sequence_common::ptr > >::iterator,::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof > > result;
if (!PyArg_ParseTuple(args,(char *)"OOOO:SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_detach",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_xsd__cxx__tree__sequenceT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_false_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_detach" "', argument " "1"" of type '" "xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > *""'");
}
arg1 = reinterpret_cast< xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > * >(argp1);
{
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_iterator_adapterT_std__vectorT_xsd__cxx__tree__sequence_common__ptr_std__allocatorT_xsd__cxx__tree__sequence_common__ptr_t_t__iterator___schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_t, 0 | 0);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_detach" "', argument " "2"" of type '" "xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::iterator""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_detach" "', argument " "2"" of type '" "xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::iterator""'");
} else {
xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::iterator * temp = reinterpret_cast< xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::iterator * >(argp2);
arg2 = *temp;
if (SWIG_IsNewObj(res2)) delete temp;
}
}
res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_std__auto_ptrT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_t, 0 );
if (!SWIG_IsOK(res3)) {
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_detach" "', argument " "3"" of type '" "std::auto_ptr< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof > &""'");
}
if (!argp3) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_detach" "', argument " "3"" of type '" "std::auto_ptr< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof > &""'");
}
arg3 = reinterpret_cast< std::auto_ptr< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof > * >(argp3);
ecode4 = SWIG_AsVal_bool(obj3, &val4);
if (!SWIG_IsOK(ecode4)) {
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_detach" "', argument " "4"" of type '" "bool""'");
}
arg4 = static_cast< bool >(val4);
result = (arg1)->detach(arg2,*arg3,arg4);
resultobj = SWIG_NewPointerObj((new xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::iterator(static_cast< const xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::iterator& >(result))), SWIGTYPE_p_iterator_adapterT_std__vectorT_xsd__cxx__tree__sequence_common__ptr_std__allocatorT_xsd__cxx__tree__sequence_common__ptr_t_t__iterator___schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_t, SWIG_POINTER_OWN | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_detach__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > *arg1 = (xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > *) 0 ;
SwigValueWrapper< iterator_adapter< std::vector< xsd::cxx::tree::sequence_common::ptr,std::allocator< xsd::cxx::tree::sequence_common::ptr > >::iterator,::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof > > arg2 ;
std::auto_ptr< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof > *arg3 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 ;
int res2 = 0 ;
void *argp3 = 0 ;
int res3 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
SwigValueWrapper< iterator_adapter< std::vector< xsd::cxx::tree::sequence_common::ptr,std::allocator< xsd::cxx::tree::sequence_common::ptr > >::iterator,::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof > > result;
if (!PyArg_ParseTuple(args,(char *)"OOO:SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_detach",&obj0,&obj1,&obj2)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_xsd__cxx__tree__sequenceT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_false_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_detach" "', argument " "1"" of type '" "xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > *""'");
}
arg1 = reinterpret_cast< xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > * >(argp1);
{
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_iterator_adapterT_std__vectorT_xsd__cxx__tree__sequence_common__ptr_std__allocatorT_xsd__cxx__tree__sequence_common__ptr_t_t__iterator___schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_t, 0 | 0);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_detach" "', argument " "2"" of type '" "xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::iterator""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_detach" "', argument " "2"" of type '" "xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::iterator""'");
} else {
xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::iterator * temp = reinterpret_cast< xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::iterator * >(argp2);
arg2 = *temp;
if (SWIG_IsNewObj(res2)) delete temp;
}
}
res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_std__auto_ptrT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_t, 0 );
if (!SWIG_IsOK(res3)) {
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_detach" "', argument " "3"" of type '" "std::auto_ptr< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof > &""'");
}
if (!argp3) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_detach" "', argument " "3"" of type '" "std::auto_ptr< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof > &""'");
}
arg3 = reinterpret_cast< std::auto_ptr< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof > * >(argp3);
result = (arg1)->detach(arg2,*arg3);
resultobj = SWIG_NewPointerObj((new xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::iterator(static_cast< const xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::iterator& >(result))), SWIGTYPE_p_iterator_adapterT_std__vectorT_xsd__cxx__tree__sequence_common__ptr_std__allocatorT_xsd__cxx__tree__sequence_common__ptr_t_t__iterator___schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_t, SWIG_POINTER_OWN | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_detach(PyObject *self, PyObject *args) {
int argc;
PyObject *argv[5] = {
0
};
int ii;
if (!PyTuple_Check(args)) SWIG_fail;
argc = args ? (int)PyObject_Length(args) : 0;
for (ii = 0; (ii < 4) && (ii < argc); ii++) {
argv[ii] = PyTuple_GET_ITEM(args,ii);
}
if (argc == 3) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_xsd__cxx__tree__sequenceT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_false_t, 0);
_v = SWIG_CheckState(res);
if (_v) {
int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_iterator_adapterT_std__vectorT_xsd__cxx__tree__sequence_common__ptr_std__allocatorT_xsd__cxx__tree__sequence_common__ptr_t_t__iterator___schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_t, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_std__auto_ptrT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_t, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_detach__SWIG_1(self, args);
}
}
}
}
if (argc == 4) {
int _v;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_xsd__cxx__tree__sequenceT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_false_t, 0);
_v = SWIG_CheckState(res);
if (_v) {
int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_iterator_adapterT_std__vectorT_xsd__cxx__tree__sequence_common__ptr_std__allocatorT_xsd__cxx__tree__sequence_common__ptr_t_t__iterator___schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_t, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_std__auto_ptrT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_t, 0);
_v = SWIG_CheckState(res);
if (_v) {
{
int res = SWIG_AsVal_bool(argv[3], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
return _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_detach__SWIG_0(self, args);
}
}
}
}
}
fail:
SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_detach'.\n"
" Possible C/C++ prototypes are:\n"
" xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::detach(xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::iterator,std::auto_ptr< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof > &,bool)\n"
" xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::detach(xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::iterator,std::auto_ptr< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof > &)\n");
return 0;
}
SWIGINTERN PyObject *_wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > *arg1 = (xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > *) 0 ;
xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
if (!PyArg_ParseTuple(args,(char *)"OO:SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_swap",&obj0,&obj1)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_xsd__cxx__tree__sequenceT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_false_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_swap" "', argument " "1"" of type '" "xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > *""'");
}
arg1 = reinterpret_cast< xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > * >(argp1);
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_xsd__cxx__tree__sequenceT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_false_t, 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_swap" "', argument " "2"" of type '" "xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > &""'");
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_swap" "', argument " "2"" of type '" "xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > &""'");
}
arg2 = reinterpret_cast< xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > * >(argp2);
(arg1)->swap(*arg2);
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_delete_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > *arg1 = (xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
if (!PyArg_ParseTuple(args,(char *)"O:delete_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_xsd__cxx__tree__sequenceT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_false_t, SWIG_POINTER_DISOWN | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence" "', argument " "1"" of type '" "xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > *""'");
}
arg1 = reinterpret_cast< xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > * >(argp1);
delete arg1;
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *obj;
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
SWIG_TypeNewClientData(SWIGTYPE_p_xsd__cxx__tree__sequenceT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_false_t, SWIG_NewClientData(obj));
return SWIG_Py_Void();
}
static PyMethodDef SwigMethods[] = {
{ (char *)"SWIG_PyInstanceMethod_New", (PyCFunction)SWIG_PyInstanceMethod_New, METH_O, NULL},
{ (char *)"SimMaterialLayerSet_OpaqueLayerSet_Roof_SimMatLayerSet_OutsideLayer", _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_SimMatLayerSet_OutsideLayer, METH_VARARGS, NULL},
{ (char *)"SimMaterialLayerSet_OpaqueLayerSet_Roof_SimMatLayerSet_Layer_2_10", _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_SimMatLayerSet_Layer_2_10, METH_VARARGS, NULL},
{ (char *)"SimMaterialLayerSet_OpaqueLayerSet_Roof_T24ConsAssmNotes", _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24ConsAssmNotes, METH_VARARGS, NULL},
{ (char *)"SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCAgedEmittance", _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCAgedEmittance, METH_VARARGS, NULL},
{ (char *)"SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCAgedReflectance", _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCAgedReflectance, METH_VARARGS, NULL},
{ (char *)"SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCAgedSRI", _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCAgedSRI, METH_VARARGS, NULL},
{ (char *)"SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCInitialEmitance", _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCInitialEmitance, METH_VARARGS, NULL},
{ (char *)"SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCInitialReflectance", _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCInitialReflectance, METH_VARARGS, NULL},
{ (char *)"SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCInitialSRI", _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCInitialSRI, METH_VARARGS, NULL},
{ (char *)"SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCProductID", _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24CRRCProductID, METH_VARARGS, NULL},
{ (char *)"SimMaterialLayerSet_OpaqueLayerSet_Roof_T24FieldAppliedCoating", _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24FieldAppliedCoating, METH_VARARGS, NULL},
{ (char *)"SimMaterialLayerSet_OpaqueLayerSet_Roof_T24RoofDensity", _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24RoofDensity, METH_VARARGS, NULL},
{ (char *)"SimMaterialLayerSet_OpaqueLayerSet_Roof_T24ConstructInsulOrient", _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24ConstructInsulOrient, METH_VARARGS, NULL},
{ (char *)"SimMaterialLayerSet_OpaqueLayerSet_Roof_T24SlabInsulThermResist", _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24SlabInsulThermResist, METH_VARARGS, NULL},
{ (char *)"SimMaterialLayerSet_OpaqueLayerSet_Roof_T24SlabType", _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_T24SlabType, METH_VARARGS, NULL},
{ (char *)"new_SimMaterialLayerSet_OpaqueLayerSet_Roof", _wrap_new_SimMaterialLayerSet_OpaqueLayerSet_Roof, METH_VARARGS, NULL},
{ (char *)"SimMaterialLayerSet_OpaqueLayerSet_Roof__clone", _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof__clone, METH_VARARGS, NULL},
{ (char *)"delete_SimMaterialLayerSet_OpaqueLayerSet_Roof", _wrap_delete_SimMaterialLayerSet_OpaqueLayerSet_Roof, METH_VARARGS, NULL},
{ (char *)"SimMaterialLayerSet_OpaqueLayerSet_Roof_swigregister", SimMaterialLayerSet_OpaqueLayerSet_Roof_swigregister, METH_VARARGS, NULL},
{ (char *)"new_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence", _wrap_new_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence, METH_VARARGS, NULL},
{ (char *)"SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_assign", _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_assign, METH_VARARGS, NULL},
{ (char *)"SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_begin", _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_begin, METH_VARARGS, NULL},
{ (char *)"SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_end", _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_end, METH_VARARGS, NULL},
{ (char *)"SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_rbegin", _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_rbegin, METH_VARARGS, NULL},
{ (char *)"SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_rend", _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_rend, METH_VARARGS, NULL},
{ (char *)"SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_at", _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_at, METH_VARARGS, NULL},
{ (char *)"SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_front", _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_front, METH_VARARGS, NULL},
{ (char *)"SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_back", _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_back, METH_VARARGS, NULL},
{ (char *)"SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_push_back", _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_push_back, METH_VARARGS, NULL},
{ (char *)"SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_pop_back", _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_pop_back, METH_VARARGS, NULL},
{ (char *)"SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_detach_back", _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_detach_back, METH_VARARGS, NULL},
{ (char *)"SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_insert", _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_insert, METH_VARARGS, NULL},
{ (char *)"SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_erase", _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_erase, METH_VARARGS, NULL},
{ (char *)"SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_detach", _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_detach, METH_VARARGS, NULL},
{ (char *)"SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_swap", _wrap_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_swap, METH_VARARGS, NULL},
{ (char *)"delete_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence", _wrap_delete_SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence, METH_VARARGS, NULL},
{ (char *)"SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_swigregister", SimMaterialLayerSet_OpaqueLayerSet_Roof_sequence_swigregister, METH_VARARGS, NULL},
{ NULL, NULL, 0, NULL }
};
/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
static void *_p_schema__simxml__SimModelCore__SimActorDefinitionTo_p_schema__simxml__SimModelCore__SimResourceObject(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((schema::simxml::SimModelCore::SimResourceObject *) ((schema::simxml::SimModelCore::SimActorDefinition *) x));
}
static void *_p_schema__simxml__SimModelCore__SimRepresentationItemTo_p_schema__simxml__SimModelCore__SimResourceObject(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((schema::simxml::SimModelCore::SimResourceObject *) ((schema::simxml::SimModelCore::SimRepresentationItem *) x));
}
static void *_p_schema__simxml__ResourcesGeneral__SimArrayParamsTo_p_schema__simxml__SimModelCore__SimResourceObject(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((schema::simxml::SimModelCore::SimResourceObject *) (schema::simxml::SimModelCore::SimBldgModelParams *) ((schema::simxml::ResourcesGeneral::SimArrayParams *) x));
}
static void *_p_schema__simxml__SimModelCore__SimTopologicalRepresentationItemTo_p_schema__simxml__SimModelCore__SimResourceObject(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((schema::simxml::SimModelCore::SimResourceObject *) (schema::simxml::SimModelCore::SimRepresentationItem *) ((schema::simxml::SimModelCore::SimTopologicalRepresentationItem *) x));
}
static void *_p_schema__simxml__SimModelCore__SimTemplateTo_p_schema__simxml__SimModelCore__SimResourceObject(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((schema::simxml::SimModelCore::SimResourceObject *) ((schema::simxml::SimModelCore::SimTemplate *) x));
}
static void *_p_schema__simxml__ResourcesGeneral__SimNodeTo_p_schema__simxml__SimModelCore__SimResourceObject(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((schema::simxml::SimModelCore::SimResourceObject *) ((schema::simxml::ResourcesGeneral::SimNode *) x));
}
static void *_p_schema__simxml__SimModelCore__SimBldgModelParamsTo_p_schema__simxml__SimModelCore__SimResourceObject(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((schema::simxml::SimModelCore::SimResourceObject *) ((schema::simxml::SimModelCore::SimBldgModelParams *) x));
}
static void *_p_schema__simxml__SimModelCore__SimGeometricRepresentationItemTo_p_schema__simxml__SimModelCore__SimResourceObject(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((schema::simxml::SimModelCore::SimResourceObject *) (schema::simxml::SimModelCore::SimRepresentationItem *) ((schema::simxml::SimModelCore::SimGeometricRepresentationItem *) x));
}
static void *_p_schema__simxml__SimModelCore__SimAppDefaultTo_p_schema__simxml__SimModelCore__SimResourceObject(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((schema::simxml::SimModelCore::SimResourceObject *) ((schema::simxml::SimModelCore::SimAppDefault *) x));
}
static void *_p_schema__simxml__SimModelCore__SimPropertySetDefinitionTo_p_schema__simxml__SimModelCore__SimResourceObject(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((schema::simxml::SimModelCore::SimResourceObject *) ((schema::simxml::SimModelCore::SimPropertySetDefinition *) x));
}
static void *_p_schema__simxml__ResourcesGeneral__SimPortTo_p_schema__simxml__SimModelCore__SimResourceObject(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((schema::simxml::SimModelCore::SimResourceObject *) (schema::simxml::ResourcesGeneral::SimNode *) ((schema::simxml::ResourcesGeneral::SimPort *) x));
}
static void *_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSetTo_p_schema__simxml__SimModelCore__SimResourceObject(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((schema::simxml::SimModelCore::SimResourceObject *) ((schema::simxml::ResourcesGeneral::SimMaterialLayerSet *) x));
}
static void *_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_DefaultTo_p_schema__simxml__SimModelCore__SimResourceObject(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((schema::simxml::SimModelCore::SimResourceObject *) (schema::simxml::ResourcesGeneral::SimMaterialLayerSet *) ((schema::simxml::ResourcesGeneral::SimMaterialLayerSet_Default *) x));
}
static void *_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_Default_DefaultTo_p_schema__simxml__SimModelCore__SimResourceObject(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((schema::simxml::SimModelCore::SimResourceObject *) (schema::simxml::ResourcesGeneral::SimMaterialLayerSet *)(schema::simxml::ResourcesGeneral::SimMaterialLayerSet_Default *) ((schema::simxml::ResourcesGeneral::SimMaterialLayerSet_Default_Default *) x));
}
static void *_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSetTo_p_schema__simxml__SimModelCore__SimResourceObject(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((schema::simxml::SimModelCore::SimResourceObject *) (schema::simxml::ResourcesGeneral::SimMaterialLayerSet *) ((schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet *) x));
}
static void *_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_CeilingTo_p_schema__simxml__SimModelCore__SimResourceObject(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((schema::simxml::SimModelCore::SimResourceObject *) (schema::simxml::ResourcesGeneral::SimMaterialLayerSet *)(schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet *) ((schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Ceiling *) x));
}
static void *_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_RoofTo_p_schema__simxml__SimModelCore__SimResourceObject(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((schema::simxml::SimModelCore::SimResourceObject *) (schema::simxml::ResourcesGeneral::SimMaterialLayerSet *)(schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet *) ((schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *) x));
}
static void *_p_schema__simxml__ResourcesGeneral__SimUnitTypeTo_p_schema__simxml__SimModelCore__SimResourceObject(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((schema::simxml::SimModelCore::SimResourceObject *) ((schema::simxml::ResourcesGeneral::SimUnitType *) x));
}
static void *_p_schema__simxml__SimModelCore__SimObjectPlacementTo_p_schema__simxml__SimModelCore__SimResourceObject(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((schema::simxml::SimModelCore::SimResourceObject *) ((schema::simxml::SimModelCore::SimObjectPlacement *) x));
}
static void *_p_schema__simxml__SimModelCore__SimFeatureElementTo_p_schema__simxml__SimModelCore__SimResourceObject(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((schema::simxml::SimModelCore::SimResourceObject *) ((schema::simxml::SimModelCore::SimFeatureElement *) x));
}
static void *_p_schema__simxml__ResourcesGeometry__SimProfileDefinitionTo_p_schema__simxml__SimModelCore__SimResourceObject(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((schema::simxml::SimModelCore::SimResourceObject *) (schema::simxml::SimModelCore::SimRepresentationItem *) ((schema::simxml::ResourcesGeometry::SimProfileDefinition *) x));
}
static void *_p_schema__simxml__SimModelCore__SimRepresentationTo_p_schema__simxml__SimModelCore__SimResourceObject(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((schema::simxml::SimModelCore::SimResourceObject *) ((schema::simxml::SimModelCore::SimRepresentation *) x));
}
static void *_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_DefaultTo_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((schema::simxml::ResourcesGeneral::SimMaterialLayerSet *) ((schema::simxml::ResourcesGeneral::SimMaterialLayerSet_Default *) x));
}
static void *_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_Default_DefaultTo_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((schema::simxml::ResourcesGeneral::SimMaterialLayerSet *) (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_Default *) ((schema::simxml::ResourcesGeneral::SimMaterialLayerSet_Default_Default *) x));
}
static void *_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSetTo_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((schema::simxml::ResourcesGeneral::SimMaterialLayerSet *) ((schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet *) x));
}
static void *_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_CeilingTo_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((schema::simxml::ResourcesGeneral::SimMaterialLayerSet *) (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet *) ((schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Ceiling *) x));
}
static void *_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_RoofTo_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((schema::simxml::ResourcesGeneral::SimMaterialLayerSet *) (schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet *) ((schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *) x));
}
static void *_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_CeilingTo_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet *) ((schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Ceiling *) x));
}
static void *_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_RoofTo_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet *) ((schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *) x));
}
static void *_p_xsd__cxx__tree__stringT_char_xsd__cxx__tree__simple_typeT_char_xsd__cxx__tree__type_t_tTo_p_xsd__cxx__tree__simple_typeT_char_xsd__cxx__tree___type_t(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((xsd::cxx::tree::simple_type< char,xsd::cxx::tree::_type > *) ((xsd::cxx::tree::string< char,xsd::cxx::tree::simple_type< char,xsd::cxx::tree::type > > *) x));
}
static void *_p_schema__simxml__SimModelCore__SimSpatialStructureElementTo_p_xsd__cxx__tree___type(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((xsd::cxx::tree::_type *) (schema::simxml::SimModelCore::SimRoot *)(schema::simxml::SimModelCore::SimObjectDefinition *)(schema::simxml::SimModelCore::SimObject *) ((schema::simxml::SimModelCore::SimSpatialStructureElement *) x));
}
static void *_p_schema__simxml__SimModelCore__SimDistributionControlElementTo_p_xsd__cxx__tree___type(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((xsd::cxx::tree::_type *) (schema::simxml::SimModelCore::SimRoot *)(schema::simxml::SimModelCore::SimObjectDefinition *)(schema::simxml::SimModelCore::SimObject *)(schema::simxml::SimModelCore::SimElement *)(schema::simxml::SimModelCore::SimDistributionElement *) ((schema::simxml::SimModelCore::SimDistributionControlElement *) x));
}
static void *_p_schema__simxml__ResourcesGeometry__SimProfileDefinitionTo_p_xsd__cxx__tree___type(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((xsd::cxx::tree::_type *) (schema::simxml::SimModelCore::SimRoot *)(schema::simxml::SimModelCore::SimResourceObject *)(schema::simxml::SimModelCore::SimRepresentationItem *) ((schema::simxml::ResourcesGeometry::SimProfileDefinition *) x));
}
static void *_p_schema__simxml__SimModelCore__SimGeometricRepresentationItemTo_p_xsd__cxx__tree___type(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((xsd::cxx::tree::_type *) (schema::simxml::SimModelCore::SimRoot *)(schema::simxml::SimModelCore::SimResourceObject *)(schema::simxml::SimModelCore::SimRepresentationItem *) ((schema::simxml::SimModelCore::SimGeometricRepresentationItem *) x));
}
static void *_p_schema__simxml__SimModelCore__SimRootTo_p_xsd__cxx__tree___type(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((xsd::cxx::tree::_type *) ((schema::simxml::SimModelCore::SimRoot *) x));
}
static void *_p_schema__simxml__ResourcesGeneral__SimUnitTypeTo_p_xsd__cxx__tree___type(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((xsd::cxx::tree::_type *) (schema::simxml::SimModelCore::SimRoot *)(schema::simxml::SimModelCore::SimResourceObject *) ((schema::simxml::ResourcesGeneral::SimUnitType *) x));
}
static void *_p_schema__simxml__ResourcesGeneral__SimArrayParamsTo_p_xsd__cxx__tree___type(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((xsd::cxx::tree::_type *) (schema::simxml::SimModelCore::SimRoot *)(schema::simxml::SimModelCore::SimResourceObject *)(schema::simxml::SimModelCore::SimBldgModelParams *) ((schema::simxml::ResourcesGeneral::SimArrayParams *) x));
}
static void *_p_schema__simxml__SimModelCore__SimActorDefinitionTo_p_xsd__cxx__tree___type(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((xsd::cxx::tree::_type *) (schema::simxml::SimModelCore::SimRoot *)(schema::simxml::SimModelCore::SimResourceObject *) ((schema::simxml::SimModelCore::SimActorDefinition *) x));
}
static void *_p_schema__simxml__SimModelCore__SimObjectDefinitionTo_p_xsd__cxx__tree___type(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((xsd::cxx::tree::_type *) (schema::simxml::SimModelCore::SimRoot *) ((schema::simxml::SimModelCore::SimObjectDefinition *) x));
}
static void *_p_schema__simxml__SimModelCore__SimGroupTo_p_xsd__cxx__tree___type(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((xsd::cxx::tree::_type *) (schema::simxml::SimModelCore::SimRoot *)(schema::simxml::SimModelCore::SimObjectDefinition *)(schema::simxml::SimModelCore::SimObject *) ((schema::simxml::SimModelCore::SimGroup *) x));
}
static void *_p_schema__simxml__SimModelCore__SimDistributionElementTo_p_xsd__cxx__tree___type(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((xsd::cxx::tree::_type *) (schema::simxml::SimModelCore::SimRoot *)(schema::simxml::SimModelCore::SimObjectDefinition *)(schema::simxml::SimModelCore::SimObject *)(schema::simxml::SimModelCore::SimElement *) ((schema::simxml::SimModelCore::SimDistributionElement *) x));
}
static void *_p_schema__simxml__SimModelCore__SimObjectTypeDefinitionTo_p_xsd__cxx__tree___type(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((xsd::cxx::tree::_type *) (schema::simxml::SimModelCore::SimRoot *)(schema::simxml::SimModelCore::SimObjectDefinition *) ((schema::simxml::SimModelCore::SimObjectTypeDefinition *) x));
}
static void *_p_schema__simxml__ResourcesGeneral__SimPortTo_p_xsd__cxx__tree___type(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((xsd::cxx::tree::_type *) (schema::simxml::SimModelCore::SimRoot *)(schema::simxml::SimModelCore::SimResourceObject *)(schema::simxml::ResourcesGeneral::SimNode *) ((schema::simxml::ResourcesGeneral::SimPort *) x));
}
static void *_p_xsd__cxx__tree__simple_typeT_char_xsd__cxx__tree___type_tTo_p_xsd__cxx__tree___type(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((xsd::cxx::tree::_type *) ((xsd::cxx::tree::simple_type< char,xsd::cxx::tree::_type > *) x));
}
static void *_p_schema__simxml__SimModelCore__SimPropertySetDefinitionTo_p_xsd__cxx__tree___type(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((xsd::cxx::tree::_type *) (schema::simxml::SimModelCore::SimRoot *)(schema::simxml::SimModelCore::SimResourceObject *) ((schema::simxml::SimModelCore::SimPropertySetDefinition *) x));
}
static void *_p_xsd__cxx__tree__stringT_char_xsd__cxx__tree__simple_typeT_char_xsd__cxx__tree__type_t_tTo_p_xsd__cxx__tree___type(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((xsd::cxx::tree::_type *) (xsd::cxx::tree::simple_type< char,xsd::cxx::tree::type > *) ((xsd::cxx::tree::string< char,xsd::cxx::tree::simple_type< char,xsd::cxx::tree::type > > *) x));
}
static void *_p_schema__simxml__SimModelCore__SimRepresentationTo_p_xsd__cxx__tree___type(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((xsd::cxx::tree::_type *) (schema::simxml::SimModelCore::SimRoot *)(schema::simxml::SimModelCore::SimResourceObject *) ((schema::simxml::SimModelCore::SimRepresentation *) x));
}
static void *_p_schema__simxml__SimModelCore__SimTemplateTo_p_xsd__cxx__tree___type(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((xsd::cxx::tree::_type *) (schema::simxml::SimModelCore::SimRoot *)(schema::simxml::SimModelCore::SimResourceObject *) ((schema::simxml::SimModelCore::SimTemplate *) x));
}
static void *_p_schema__simxml__SimModelCore__SimObjectTo_p_xsd__cxx__tree___type(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((xsd::cxx::tree::_type *) (schema::simxml::SimModelCore::SimRoot *)(schema::simxml::SimModelCore::SimObjectDefinition *) ((schema::simxml::SimModelCore::SimObject *) x));
}
static void *_p_schema__simxml__SimModelCore__SimResourceObjectTo_p_xsd__cxx__tree___type(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((xsd::cxx::tree::_type *) (schema::simxml::SimModelCore::SimRoot *) ((schema::simxml::SimModelCore::SimResourceObject *) x));
}
static void *_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_Default_DefaultTo_p_xsd__cxx__tree___type(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((xsd::cxx::tree::_type *) (schema::simxml::SimModelCore::SimRoot *)(schema::simxml::SimModelCore::SimResourceObject *)(schema::simxml::ResourcesGeneral::SimMaterialLayerSet *)(schema::simxml::ResourcesGeneral::SimMaterialLayerSet_Default *) ((schema::simxml::ResourcesGeneral::SimMaterialLayerSet_Default_Default *) x));
}
static void *_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_DefaultTo_p_xsd__cxx__tree___type(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((xsd::cxx::tree::_type *) (schema::simxml::SimModelCore::SimRoot *)(schema::simxml::SimModelCore::SimResourceObject *)(schema::simxml::ResourcesGeneral::SimMaterialLayerSet *) ((schema::simxml::ResourcesGeneral::SimMaterialLayerSet_Default *) x));
}
static void *_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSetTo_p_xsd__cxx__tree___type(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((xsd::cxx::tree::_type *) (schema::simxml::SimModelCore::SimRoot *)(schema::simxml::SimModelCore::SimResourceObject *) ((schema::simxml::ResourcesGeneral::SimMaterialLayerSet *) x));
}
static void *_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSetTo_p_xsd__cxx__tree___type(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((xsd::cxx::tree::_type *) (schema::simxml::SimModelCore::SimRoot *)(schema::simxml::SimModelCore::SimResourceObject *)(schema::simxml::ResourcesGeneral::SimMaterialLayerSet *) ((schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet *) x));
}
static void *_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_CeilingTo_p_xsd__cxx__tree___type(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((xsd::cxx::tree::_type *) (schema::simxml::SimModelCore::SimRoot *)(schema::simxml::SimModelCore::SimResourceObject *)(schema::simxml::ResourcesGeneral::SimMaterialLayerSet *)(schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet *) ((schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Ceiling *) x));
}
static void *_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_RoofTo_p_xsd__cxx__tree___type(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((xsd::cxx::tree::_type *) (schema::simxml::SimModelCore::SimRoot *)(schema::simxml::SimModelCore::SimResourceObject *)(schema::simxml::ResourcesGeneral::SimMaterialLayerSet *)(schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet *) ((schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *) x));
}
static void *_p_schema__simxml__ResourcesGeneral__SimNodeTo_p_xsd__cxx__tree___type(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((xsd::cxx::tree::_type *) (schema::simxml::SimModelCore::SimRoot *)(schema::simxml::SimModelCore::SimResourceObject *) ((schema::simxml::ResourcesGeneral::SimNode *) x));
}
static void *_p_schema__simxml__SimModelCore__SimBuildingElementTo_p_xsd__cxx__tree___type(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((xsd::cxx::tree::_type *) (schema::simxml::SimModelCore::SimRoot *)(schema::simxml::SimModelCore::SimObjectDefinition *)(schema::simxml::SimModelCore::SimObject *)(schema::simxml::SimModelCore::SimElement *) ((schema::simxml::SimModelCore::SimBuildingElement *) x));
}
static void *_p_schema__simxml__SimModelCore__SimFeatureElementTo_p_xsd__cxx__tree___type(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((xsd::cxx::tree::_type *) (schema::simxml::SimModelCore::SimRoot *)(schema::simxml::SimModelCore::SimResourceObject *) ((schema::simxml::SimModelCore::SimFeatureElement *) x));
}
static void *_p_schema__simxml__SimModelCore__SimElementTo_p_xsd__cxx__tree___type(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((xsd::cxx::tree::_type *) (schema::simxml::SimModelCore::SimRoot *)(schema::simxml::SimModelCore::SimObjectDefinition *)(schema::simxml::SimModelCore::SimObject *) ((schema::simxml::SimModelCore::SimElement *) x));
}
static void *_p_schema__simxml__SimModelCore__SimAppDefaultTo_p_xsd__cxx__tree___type(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((xsd::cxx::tree::_type *) (schema::simxml::SimModelCore::SimRoot *)(schema::simxml::SimModelCore::SimResourceObject *) ((schema::simxml::SimModelCore::SimAppDefault *) x));
}
static void *_p_schema__simxml__SimModelCore__SimDistributionFlowElementTo_p_xsd__cxx__tree___type(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((xsd::cxx::tree::_type *) (schema::simxml::SimModelCore::SimRoot *)(schema::simxml::SimModelCore::SimObjectDefinition *)(schema::simxml::SimModelCore::SimObject *)(schema::simxml::SimModelCore::SimElement *)(schema::simxml::SimModelCore::SimDistributionElement *) ((schema::simxml::SimModelCore::SimDistributionFlowElement *) x));
}
static void *_p_schema__simxml__SimModelCore__SimTopologicalRepresentationItemTo_p_xsd__cxx__tree___type(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((xsd::cxx::tree::_type *) (schema::simxml::SimModelCore::SimRoot *)(schema::simxml::SimModelCore::SimResourceObject *)(schema::simxml::SimModelCore::SimRepresentationItem *) ((schema::simxml::SimModelCore::SimTopologicalRepresentationItem *) x));
}
static void *_p_schema__simxml__SimModelCore__SimRepresentationItemTo_p_xsd__cxx__tree___type(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((xsd::cxx::tree::_type *) (schema::simxml::SimModelCore::SimRoot *)(schema::simxml::SimModelCore::SimResourceObject *) ((schema::simxml::SimModelCore::SimRepresentationItem *) x));
}
static void *_p_schema__simxml__MepModel__SimFlowEnergyConverterTo_p_xsd__cxx__tree___type(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((xsd::cxx::tree::_type *) (schema::simxml::SimModelCore::SimRoot *)(schema::simxml::SimModelCore::SimObjectDefinition *)(schema::simxml::SimModelCore::SimObject *)(schema::simxml::SimModelCore::SimElement *)(schema::simxml::SimModelCore::SimDistributionElement *)(schema::simxml::SimModelCore::SimDistributionFlowElement *) ((schema::simxml::MepModel::SimFlowEnergyConverter *) x));
}
static void *_p_schema__simxml__SimModelCore__SimBldgModelParamsTo_p_xsd__cxx__tree___type(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((xsd::cxx::tree::_type *) (schema::simxml::SimModelCore::SimRoot *)(schema::simxml::SimModelCore::SimResourceObject *) ((schema::simxml::SimModelCore::SimBldgModelParams *) x));
}
static void *_p_schema__simxml__SimModelCore__SimObjectPlacementTo_p_xsd__cxx__tree___type(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((xsd::cxx::tree::_type *) (schema::simxml::SimModelCore::SimRoot *)(schema::simxml::SimModelCore::SimResourceObject *) ((schema::simxml::SimModelCore::SimObjectPlacement *) x));
}
static void *_p_schema__simxml__SimModelCore__SimSpatialStructureElementTo_p_schema__simxml__SimModelCore__SimRoot(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((schema::simxml::SimModelCore::SimRoot *) (schema::simxml::SimModelCore::SimObjectDefinition *)(schema::simxml::SimModelCore::SimObject *) ((schema::simxml::SimModelCore::SimSpatialStructureElement *) x));
}
static void *_p_schema__simxml__SimModelCore__SimDistributionControlElementTo_p_schema__simxml__SimModelCore__SimRoot(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((schema::simxml::SimModelCore::SimRoot *) (schema::simxml::SimModelCore::SimObjectDefinition *)(schema::simxml::SimModelCore::SimObject *)(schema::simxml::SimModelCore::SimElement *)(schema::simxml::SimModelCore::SimDistributionElement *) ((schema::simxml::SimModelCore::SimDistributionControlElement *) x));
}
static void *_p_schema__simxml__ResourcesGeometry__SimProfileDefinitionTo_p_schema__simxml__SimModelCore__SimRoot(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((schema::simxml::SimModelCore::SimRoot *) (schema::simxml::SimModelCore::SimResourceObject *)(schema::simxml::SimModelCore::SimRepresentationItem *) ((schema::simxml::ResourcesGeometry::SimProfileDefinition *) x));
}
static void *_p_schema__simxml__SimModelCore__SimGeometricRepresentationItemTo_p_schema__simxml__SimModelCore__SimRoot(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((schema::simxml::SimModelCore::SimRoot *) (schema::simxml::SimModelCore::SimResourceObject *)(schema::simxml::SimModelCore::SimRepresentationItem *) ((schema::simxml::SimModelCore::SimGeometricRepresentationItem *) x));
}
static void *_p_schema__simxml__ResourcesGeneral__SimUnitTypeTo_p_schema__simxml__SimModelCore__SimRoot(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((schema::simxml::SimModelCore::SimRoot *) (schema::simxml::SimModelCore::SimResourceObject *) ((schema::simxml::ResourcesGeneral::SimUnitType *) x));
}
static void *_p_schema__simxml__ResourcesGeneral__SimArrayParamsTo_p_schema__simxml__SimModelCore__SimRoot(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((schema::simxml::SimModelCore::SimRoot *) (schema::simxml::SimModelCore::SimResourceObject *)(schema::simxml::SimModelCore::SimBldgModelParams *) ((schema::simxml::ResourcesGeneral::SimArrayParams *) x));
}
static void *_p_schema__simxml__SimModelCore__SimActorDefinitionTo_p_schema__simxml__SimModelCore__SimRoot(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((schema::simxml::SimModelCore::SimRoot *) (schema::simxml::SimModelCore::SimResourceObject *) ((schema::simxml::SimModelCore::SimActorDefinition *) x));
}
static void *_p_schema__simxml__SimModelCore__SimObjectDefinitionTo_p_schema__simxml__SimModelCore__SimRoot(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((schema::simxml::SimModelCore::SimRoot *) ((schema::simxml::SimModelCore::SimObjectDefinition *) x));
}
static void *_p_schema__simxml__SimModelCore__SimGroupTo_p_schema__simxml__SimModelCore__SimRoot(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((schema::simxml::SimModelCore::SimRoot *) (schema::simxml::SimModelCore::SimObjectDefinition *)(schema::simxml::SimModelCore::SimObject *) ((schema::simxml::SimModelCore::SimGroup *) x));
}
static void *_p_schema__simxml__SimModelCore__SimDistributionElementTo_p_schema__simxml__SimModelCore__SimRoot(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((schema::simxml::SimModelCore::SimRoot *) (schema::simxml::SimModelCore::SimObjectDefinition *)(schema::simxml::SimModelCore::SimObject *)(schema::simxml::SimModelCore::SimElement *) ((schema::simxml::SimModelCore::SimDistributionElement *) x));
}
static void *_p_schema__simxml__SimModelCore__SimObjectTypeDefinitionTo_p_schema__simxml__SimModelCore__SimRoot(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((schema::simxml::SimModelCore::SimRoot *) (schema::simxml::SimModelCore::SimObjectDefinition *) ((schema::simxml::SimModelCore::SimObjectTypeDefinition *) x));
}
static void *_p_schema__simxml__ResourcesGeneral__SimPortTo_p_schema__simxml__SimModelCore__SimRoot(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((schema::simxml::SimModelCore::SimRoot *) (schema::simxml::SimModelCore::SimResourceObject *)(schema::simxml::ResourcesGeneral::SimNode *) ((schema::simxml::ResourcesGeneral::SimPort *) x));
}
static void *_p_schema__simxml__SimModelCore__SimPropertySetDefinitionTo_p_schema__simxml__SimModelCore__SimRoot(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((schema::simxml::SimModelCore::SimRoot *) (schema::simxml::SimModelCore::SimResourceObject *) ((schema::simxml::SimModelCore::SimPropertySetDefinition *) x));
}
static void *_p_schema__simxml__SimModelCore__SimRepresentationTo_p_schema__simxml__SimModelCore__SimRoot(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((schema::simxml::SimModelCore::SimRoot *) (schema::simxml::SimModelCore::SimResourceObject *) ((schema::simxml::SimModelCore::SimRepresentation *) x));
}
static void *_p_schema__simxml__SimModelCore__SimTemplateTo_p_schema__simxml__SimModelCore__SimRoot(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((schema::simxml::SimModelCore::SimRoot *) (schema::simxml::SimModelCore::SimResourceObject *) ((schema::simxml::SimModelCore::SimTemplate *) x));
}
static void *_p_schema__simxml__SimModelCore__SimObjectTo_p_schema__simxml__SimModelCore__SimRoot(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((schema::simxml::SimModelCore::SimRoot *) (schema::simxml::SimModelCore::SimObjectDefinition *) ((schema::simxml::SimModelCore::SimObject *) x));
}
static void *_p_schema__simxml__SimModelCore__SimResourceObjectTo_p_schema__simxml__SimModelCore__SimRoot(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((schema::simxml::SimModelCore::SimRoot *) ((schema::simxml::SimModelCore::SimResourceObject *) x));
}
static void *_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_RoofTo_p_schema__simxml__SimModelCore__SimRoot(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((schema::simxml::SimModelCore::SimRoot *) (schema::simxml::SimModelCore::SimResourceObject *)(schema::simxml::ResourcesGeneral::SimMaterialLayerSet *)(schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet *) ((schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *) x));
}
static void *_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_CeilingTo_p_schema__simxml__SimModelCore__SimRoot(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((schema::simxml::SimModelCore::SimRoot *) (schema::simxml::SimModelCore::SimResourceObject *)(schema::simxml::ResourcesGeneral::SimMaterialLayerSet *)(schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet *) ((schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Ceiling *) x));
}
static void *_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSetTo_p_schema__simxml__SimModelCore__SimRoot(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((schema::simxml::SimModelCore::SimRoot *) (schema::simxml::SimModelCore::SimResourceObject *)(schema::simxml::ResourcesGeneral::SimMaterialLayerSet *) ((schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet *) x));
}
static void *_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_Default_DefaultTo_p_schema__simxml__SimModelCore__SimRoot(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((schema::simxml::SimModelCore::SimRoot *) (schema::simxml::SimModelCore::SimResourceObject *)(schema::simxml::ResourcesGeneral::SimMaterialLayerSet *)(schema::simxml::ResourcesGeneral::SimMaterialLayerSet_Default *) ((schema::simxml::ResourcesGeneral::SimMaterialLayerSet_Default_Default *) x));
}
static void *_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_DefaultTo_p_schema__simxml__SimModelCore__SimRoot(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((schema::simxml::SimModelCore::SimRoot *) (schema::simxml::SimModelCore::SimResourceObject *)(schema::simxml::ResourcesGeneral::SimMaterialLayerSet *) ((schema::simxml::ResourcesGeneral::SimMaterialLayerSet_Default *) x));
}
static void *_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSetTo_p_schema__simxml__SimModelCore__SimRoot(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((schema::simxml::SimModelCore::SimRoot *) (schema::simxml::SimModelCore::SimResourceObject *) ((schema::simxml::ResourcesGeneral::SimMaterialLayerSet *) x));
}
static void *_p_schema__simxml__ResourcesGeneral__SimNodeTo_p_schema__simxml__SimModelCore__SimRoot(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((schema::simxml::SimModelCore::SimRoot *) (schema::simxml::SimModelCore::SimResourceObject *) ((schema::simxml::ResourcesGeneral::SimNode *) x));
}
static void *_p_schema__simxml__SimModelCore__SimBuildingElementTo_p_schema__simxml__SimModelCore__SimRoot(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((schema::simxml::SimModelCore::SimRoot *) (schema::simxml::SimModelCore::SimObjectDefinition *)(schema::simxml::SimModelCore::SimObject *)(schema::simxml::SimModelCore::SimElement *) ((schema::simxml::SimModelCore::SimBuildingElement *) x));
}
static void *_p_schema__simxml__SimModelCore__SimFeatureElementTo_p_schema__simxml__SimModelCore__SimRoot(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((schema::simxml::SimModelCore::SimRoot *) (schema::simxml::SimModelCore::SimResourceObject *) ((schema::simxml::SimModelCore::SimFeatureElement *) x));
}
static void *_p_schema__simxml__SimModelCore__SimElementTo_p_schema__simxml__SimModelCore__SimRoot(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((schema::simxml::SimModelCore::SimRoot *) (schema::simxml::SimModelCore::SimObjectDefinition *)(schema::simxml::SimModelCore::SimObject *) ((schema::simxml::SimModelCore::SimElement *) x));
}
static void *_p_schema__simxml__SimModelCore__SimAppDefaultTo_p_schema__simxml__SimModelCore__SimRoot(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((schema::simxml::SimModelCore::SimRoot *) (schema::simxml::SimModelCore::SimResourceObject *) ((schema::simxml::SimModelCore::SimAppDefault *) x));
}
static void *_p_schema__simxml__SimModelCore__SimDistributionFlowElementTo_p_schema__simxml__SimModelCore__SimRoot(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((schema::simxml::SimModelCore::SimRoot *) (schema::simxml::SimModelCore::SimObjectDefinition *)(schema::simxml::SimModelCore::SimObject *)(schema::simxml::SimModelCore::SimElement *)(schema::simxml::SimModelCore::SimDistributionElement *) ((schema::simxml::SimModelCore::SimDistributionFlowElement *) x));
}
static void *_p_schema__simxml__SimModelCore__SimTopologicalRepresentationItemTo_p_schema__simxml__SimModelCore__SimRoot(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((schema::simxml::SimModelCore::SimRoot *) (schema::simxml::SimModelCore::SimResourceObject *)(schema::simxml::SimModelCore::SimRepresentationItem *) ((schema::simxml::SimModelCore::SimTopologicalRepresentationItem *) x));
}
static void *_p_schema__simxml__SimModelCore__SimRepresentationItemTo_p_schema__simxml__SimModelCore__SimRoot(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((schema::simxml::SimModelCore::SimRoot *) (schema::simxml::SimModelCore::SimResourceObject *) ((schema::simxml::SimModelCore::SimRepresentationItem *) x));
}
static void *_p_schema__simxml__MepModel__SimFlowEnergyConverterTo_p_schema__simxml__SimModelCore__SimRoot(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((schema::simxml::SimModelCore::SimRoot *) (schema::simxml::SimModelCore::SimObjectDefinition *)(schema::simxml::SimModelCore::SimObject *)(schema::simxml::SimModelCore::SimElement *)(schema::simxml::SimModelCore::SimDistributionElement *)(schema::simxml::SimModelCore::SimDistributionFlowElement *) ((schema::simxml::MepModel::SimFlowEnergyConverter *) x));
}
static void *_p_schema__simxml__SimModelCore__SimBldgModelParamsTo_p_schema__simxml__SimModelCore__SimRoot(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((schema::simxml::SimModelCore::SimRoot *) (schema::simxml::SimModelCore::SimResourceObject *) ((schema::simxml::SimModelCore::SimBldgModelParams *) x));
}
static void *_p_schema__simxml__SimModelCore__SimObjectPlacementTo_p_schema__simxml__SimModelCore__SimRoot(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((schema::simxml::SimModelCore::SimRoot *) (schema::simxml::SimModelCore::SimResourceObject *) ((schema::simxml::SimModelCore::SimObjectPlacement *) x));
}
static void *_p_xsd__cxx__tree__sequenceT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_Default_Default_false_tTo_p_xsd__cxx__tree__sequence_common(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((xsd::cxx::tree::sequence_common *) ((xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_Default_Default,false > *) x));
}
static void *_p_xsd__cxx__tree__sequenceT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Ceiling_false_tTo_p_xsd__cxx__tree__sequence_common(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((xsd::cxx::tree::sequence_common *) ((xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Ceiling,false > *) x));
}
static void *_p_xsd__cxx__tree__sequenceT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_false_tTo_p_xsd__cxx__tree__sequence_common(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((xsd::cxx::tree::sequence_common *) ((xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > *) x));
}
static void *_p_xsd__cxx__tree__sequenceT_xsd__cxx__tree__stringT_char_xsd__cxx__tree__simple_typeT_char_xsd__cxx__tree__type_t_t_false_tTo_p_xsd__cxx__tree__sequence_common(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((xsd::cxx::tree::sequence_common *) ((xsd::cxx::tree::sequence< xsd::cxx::tree::string< char,xsd::cxx::tree::simple_type< char,xsd::cxx::tree::type > >,false > *) x));
}
static swig_type_info _swigt__p_ApplicableOccurrence_optional = {"_p_ApplicableOccurrence_optional", "ApplicableOccurrence_optional *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_ApplicableOccurrence_traits = {"_p_ApplicableOccurrence_traits", "ApplicableOccurrence_traits *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_ApplicableOccurrence_type = {"_p_ApplicableOccurrence_type", "ApplicableOccurrence_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_AssignedToFlowElement_optional = {"_p_AssignedToFlowElement_optional", "AssignedToFlowElement_optional *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_AssignedToFlowElement_traits = {"_p_AssignedToFlowElement_traits", "AssignedToFlowElement_traits *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_AssignedToFlowElement_type = {"_p_AssignedToFlowElement_type", "AssignedToFlowElement_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_AssignedToGroups_optional = {"_p_AssignedToGroups_optional", "AssignedToGroups_optional *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_AssignedToGroups_traits = {"_p_AssignedToGroups_traits", "AssignedToGroups_traits *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_AssignedToGroups_type = {"_p_AssignedToGroups_type", "AssignedToGroups_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_ChangeFromTemplate_optional = {"_p_ChangeFromTemplate_optional", "ChangeFromTemplate_optional *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_ChangeFromTemplate_traits = {"_p_ChangeFromTemplate_traits", "ChangeFromTemplate_traits *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_ChangeFromTemplate_type = {"_p_ChangeFromTemplate_type", "ChangeFromTemplate_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_CompositeThermalTrans_optional = {"_p_CompositeThermalTrans_optional", "CompositeThermalTrans_optional *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_CompositeThermalTrans_traits = {"_p_CompositeThermalTrans_traits", "CompositeThermalTrans_traits *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_CompositeThermalTrans_type = {"_p_CompositeThermalTrans_type", "CompositeThermalTrans_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_CompositionType_optional = {"_p_CompositionType_optional", "CompositionType_optional *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_CompositionType_traits = {"_p_CompositionType_traits", "CompositionType_traits *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_CompositionType_type = {"_p_CompositionType_type", "CompositionType_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_ContainingBuildings_optional = {"_p_ContainingBuildings_optional", "ContainingBuildings_optional *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_ContainingBuildings_traits = {"_p_ContainingBuildings_traits", "ContainingBuildings_traits *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_ContainingBuildings_type = {"_p_ContainingBuildings_type", "ContainingBuildings_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_ContainingSpatialStructure_optional = {"_p_ContainingSpatialStructure_optional", "ContainingSpatialStructure_optional *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_ContainingSpatialStructure_traits = {"_p_ContainingSpatialStructure_traits", "ContainingSpatialStructure_traits *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_ContainingSpatialStructure_type = {"_p_ContainingSpatialStructure_type", "ContainingSpatialStructure_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_ControlElementID_optional = {"_p_ControlElementID_optional", "ControlElementID_optional *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_ControlElementID_traits = {"_p_ControlElementID_traits", "ControlElementID_traits *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_ControlElementID_type = {"_p_ControlElementID_type", "ControlElementID_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_ControlledBy_optional = {"_p_ControlledBy_optional", "ControlledBy_optional *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_ControlledBy_traits = {"_p_ControlledBy_traits", "ControlledBy_traits *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_ControlledBy_type = {"_p_ControlledBy_type", "ControlledBy_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_DecimalPrecision_optional = {"_p_DecimalPrecision_optional", "DecimalPrecision_optional *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_DecimalPrecision_traits = {"_p_DecimalPrecision_traits", "DecimalPrecision_traits *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_DecimalPrecision_type = {"_p_DecimalPrecision_type", "DecimalPrecision_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Decomposes_optional = {"_p_Decomposes_optional", "Decomposes_optional *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Decomposes_traits = {"_p_Decomposes_traits", "Decomposes_traits *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Decomposes_type = {"_p_Decomposes_type", "Decomposes_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Description_optional = {"_p_Description_optional", "Description_optional *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Description_traits = {"_p_Description_traits", "Description_traits *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Description_type = {"_p_Description_type", "Description_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_DockedToPort_optional = {"_p_DockedToPort_optional", "DockedToPort_optional *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_DockedToPort_traits = {"_p_DockedToPort_traits", "DockedToPort_traits *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_DockedToPort_type = {"_p_DockedToPort_type", "DockedToPort_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_GeometricRepresentations_optional = {"_p_GeometricRepresentations_optional", "GeometricRepresentations_optional *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_GeometricRepresentations_traits = {"_p_GeometricRepresentations_traits", "GeometricRepresentations_traits *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_GeometricRepresentations_type = {"_p_GeometricRepresentations_type", "GeometricRepresentations_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_HasPropertySets_optional = {"_p_HasPropertySets_optional", "HasPropertySets_optional *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_HasPropertySets_traits = {"_p_HasPropertySets_traits", "HasPropertySets_traits *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_HasPropertySets_type = {"_p_HasPropertySets_type", "HasPropertySets_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_HasTemplateChanged_optional = {"_p_HasTemplateChanged_optional", "HasTemplateChanged_optional *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_HasTemplateChanged_traits = {"_p_HasTemplateChanged_traits", "HasTemplateChanged_traits *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_HasTemplateChanged_type = {"_p_HasTemplateChanged_type", "HasTemplateChanged_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_HostElement_optional = {"_p_HostElement_optional", "HostElement_optional *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_HostElement_traits = {"_p_HostElement_traits", "HostElement_traits *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_HostElement_type = {"_p_HostElement_type", "HostElement_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_IfcGlobalID_optional = {"_p_IfcGlobalID_optional", "IfcGlobalID_optional *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_IfcGlobalID_traits = {"_p_IfcGlobalID_traits", "IfcGlobalID_traits *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_IfcGlobalID_type = {"_p_IfcGlobalID_type", "IfcGlobalID_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_IfcName_optional = {"_p_IfcName_optional", "IfcName_optional *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_IfcName_traits = {"_p_IfcName_traits", "IfcName_traits *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_IfcName_type = {"_p_IfcName_type", "IfcName_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_IntendedBldgElemTypes_optional = {"_p_IntendedBldgElemTypes_optional", "IntendedBldgElemTypes_optional *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_IntendedBldgElemTypes_traits = {"_p_IntendedBldgElemTypes_traits", "IntendedBldgElemTypes_traits *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_IntendedBldgElemTypes_type = {"_p_IntendedBldgElemTypes_type", "IntendedBldgElemTypes_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_IsAutoGenerated_optional = {"_p_IsAutoGenerated_optional", "IsAutoGenerated_optional *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_IsAutoGenerated_traits = {"_p_IsAutoGenerated_traits", "IsAutoGenerated_traits *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_IsAutoGenerated_type = {"_p_IsAutoGenerated_type", "IsAutoGenerated_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_IsTemplateObject_optional = {"_p_IsTemplateObject_optional", "IsTemplateObject_optional *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_IsTemplateObject_traits = {"_p_IsTemplateObject_traits", "IsTemplateObject_traits *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_IsTemplateObject_type = {"_p_IsTemplateObject_type", "IsTemplateObject_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_LayerSetName_optional = {"_p_LayerSetName_optional", "LayerSetName_optional *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_LayerSetName_traits = {"_p_LayerSetName_traits", "LayerSetName_traits *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_LayerSetName_type = {"_p_LayerSetName_type", "LayerSetName_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_LocalPlacementCoordinates_optional = {"_p_LocalPlacementCoordinates_optional", "LocalPlacementCoordinates_optional *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_LocalPlacementCoordinates_traits = {"_p_LocalPlacementCoordinates_traits", "LocalPlacementCoordinates_traits *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_LocalPlacementCoordinates_type = {"_p_LocalPlacementCoordinates_type", "LocalPlacementCoordinates_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_LocalPlacementRotation_optional = {"_p_LocalPlacementRotation_optional", "LocalPlacementRotation_optional *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_LocalPlacementRotation_traits = {"_p_LocalPlacementRotation_traits", "LocalPlacementRotation_traits *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_LocalPlacementRotation_type = {"_p_LocalPlacementRotation_type", "LocalPlacementRotation_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_LocalPlacementX_optional = {"_p_LocalPlacementX_optional", "LocalPlacementX_optional *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_LocalPlacementX_traits = {"_p_LocalPlacementX_traits", "LocalPlacementX_traits *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_LocalPlacementX_type = {"_p_LocalPlacementX_type", "LocalPlacementX_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_LocalPlacementY_optional = {"_p_LocalPlacementY_optional", "LocalPlacementY_optional *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_LocalPlacementY_traits = {"_p_LocalPlacementY_traits", "LocalPlacementY_traits *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_LocalPlacementY_type = {"_p_LocalPlacementY_type", "LocalPlacementY_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_LocalPlacementZ_optional = {"_p_LocalPlacementZ_optional", "LocalPlacementZ_optional *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_LocalPlacementZ_traits = {"_p_LocalPlacementZ_traits", "LocalPlacementZ_traits *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_LocalPlacementZ_type = {"_p_LocalPlacementZ_type", "LocalPlacementZ_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_LongName_optional = {"_p_LongName_optional", "LongName_optional *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_LongName_traits = {"_p_LongName_traits", "LongName_traits *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_LongName_type = {"_p_LongName_type", "LongName_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_MaterialLayers_optional = {"_p_MaterialLayers_optional", "MaterialLayers_optional *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_MaterialLayers_traits = {"_p_MaterialLayers_traits", "MaterialLayers_traits *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_MaterialLayers_type = {"_p_MaterialLayers_type", "MaterialLayers_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_MemberUsedForDiagrams_optional = {"_p_MemberUsedForDiagrams_optional", "MemberUsedForDiagrams_optional *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_MemberUsedForDiagrams_traits = {"_p_MemberUsedForDiagrams_traits", "MemberUsedForDiagrams_traits *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_MemberUsedForDiagrams_type = {"_p_MemberUsedForDiagrams_type", "MemberUsedForDiagrams_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Name_optional = {"_p_Name_optional", "Name_optional *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Name_traits = {"_p_Name_traits", "Name_traits *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Name_type = {"_p_Name_type", "Name_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_NevronSchematicLayout_optional = {"_p_NevronSchematicLayout_optional", "NevronSchematicLayout_optional *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_NevronSchematicLayout_traits = {"_p_NevronSchematicLayout_traits", "NevronSchematicLayout_traits *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_NevronSchematicLayout_type = {"_p_NevronSchematicLayout_type", "NevronSchematicLayout_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_ObjectCreationParams_optional = {"_p_ObjectCreationParams_optional", "ObjectCreationParams_optional *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_ObjectCreationParams_traits = {"_p_ObjectCreationParams_traits", "ObjectCreationParams_traits *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_ObjectCreationParams_type = {"_p_ObjectCreationParams_type", "ObjectCreationParams_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_ObjectIndex_optional = {"_p_ObjectIndex_optional", "ObjectIndex_optional *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_ObjectIndex_traits = {"_p_ObjectIndex_traits", "ObjectIndex_traits *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_ObjectIndex_type = {"_p_ObjectIndex_type", "ObjectIndex_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_ObjectName_optional = {"_p_ObjectName_optional", "ObjectName_optional *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_ObjectName_traits = {"_p_ObjectName_traits", "ObjectName_traits *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_ObjectName_type = {"_p_ObjectName_type", "ObjectName_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_ObjectOwnerHistory_optional = {"_p_ObjectOwnerHistory_optional", "ObjectOwnerHistory_optional *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_ObjectOwnerHistory_traits = {"_p_ObjectOwnerHistory_traits", "ObjectOwnerHistory_traits *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_ObjectOwnerHistory_type = {"_p_ObjectOwnerHistory_type", "ObjectOwnerHistory_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_ObjectType_optional = {"_p_ObjectType_optional", "ObjectType_optional *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_ObjectType_traits = {"_p_ObjectType_traits", "ObjectType_traits *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_ObjectType_type = {"_p_ObjectType_type", "ObjectType_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_ParentGroups_optional = {"_p_ParentGroups_optional", "ParentGroups_optional *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_ParentGroups_traits = {"_p_ParentGroups_traits", "ParentGroups_traits *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_ParentGroups_type = {"_p_ParentGroups_type", "ParentGroups_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_PlacementRelToContainingTypeDef_optional = {"_p_PlacementRelToContainingTypeDef_optional", "PlacementRelToContainingTypeDef_optional *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_PlacementRelToContainingTypeDef_traits = {"_p_PlacementRelToContainingTypeDef_traits", "PlacementRelToContainingTypeDef_traits *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_PlacementRelToContainingTypeDef_type = {"_p_PlacementRelToContainingTypeDef_type", "PlacementRelToContainingTypeDef_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Placement_optional = {"_p_Placement_optional", "Placement_optional *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Placement_traits = {"_p_Placement_traits", "Placement_traits *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Placement_type = {"_p_Placement_type", "Placement_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_ProfileName_optional = {"_p_ProfileName_optional", "ProfileName_optional *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_ProfileName_traits = {"_p_ProfileName_traits", "ProfileName_traits *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_ProfileName_type = {"_p_ProfileName_type", "ProfileName_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_ProfileType_optional = {"_p_ProfileType_optional", "ProfileType_optional *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_ProfileType_traits = {"_p_ProfileType_traits", "ProfileType_traits *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_ProfileType_type = {"_p_ProfileType_type", "ProfileType_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_RefId_traits = {"_p_RefId_traits", "RefId_traits *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_RefId_type = {"_p_RefId_type", "RefId_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_RepresentationContext_optional = {"_p_RepresentationContext_optional", "RepresentationContext_optional *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_RepresentationContext_traits = {"_p_RepresentationContext_traits", "RepresentationContext_traits *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_RepresentationContext_type = {"_p_RepresentationContext_type", "RepresentationContext_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_RepresentationIdentifier_optional = {"_p_RepresentationIdentifier_optional", "RepresentationIdentifier_optional *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_RepresentationIdentifier_traits = {"_p_RepresentationIdentifier_traits", "RepresentationIdentifier_traits *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_RepresentationIdentifier_type = {"_p_RepresentationIdentifier_type", "RepresentationIdentifier_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_RepresentationItems_optional = {"_p_RepresentationItems_optional", "RepresentationItems_optional *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_RepresentationItems_traits = {"_p_RepresentationItems_traits", "RepresentationItems_traits *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_RepresentationItems_type = {"_p_RepresentationItems_type", "RepresentationItems_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_RepresentationType_optional = {"_p_RepresentationType_optional", "RepresentationType_optional *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_RepresentationType_traits = {"_p_RepresentationType_traits", "RepresentationType_traits *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_RepresentationType_type = {"_p_RepresentationType_type", "RepresentationType_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SelectedPropertyGroups_optional = {"_p_SelectedPropertyGroups_optional", "SelectedPropertyGroups_optional *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SelectedPropertyGroups_traits = {"_p_SelectedPropertyGroups_traits", "SelectedPropertyGroups_traits *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SelectedPropertyGroups_type = {"_p_SelectedPropertyGroups_type", "SelectedPropertyGroups_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SimMatLayerSet_Layer_2_10_optional = {"_p_SimMatLayerSet_Layer_2_10_optional", "SimMatLayerSet_Layer_2_10_optional *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SimMatLayerSet_Layer_2_10_traits = {"_p_SimMatLayerSet_Layer_2_10_traits", "SimMatLayerSet_Layer_2_10_traits *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SimMatLayerSet_Layer_2_10_type = {"_p_SimMatLayerSet_Layer_2_10_type", "SimMatLayerSet_Layer_2_10_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SimMatLayerSet_Name_optional = {"_p_SimMatLayerSet_Name_optional", "SimMatLayerSet_Name_optional *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SimMatLayerSet_Name_traits = {"_p_SimMatLayerSet_Name_traits", "SimMatLayerSet_Name_traits *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SimMatLayerSet_Name_type = {"_p_SimMatLayerSet_Name_type", "SimMatLayerSet_Name_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SimMatLayerSet_OutsideLayer_optional = {"_p_SimMatLayerSet_OutsideLayer_optional", "SimMatLayerSet_OutsideLayer_optional *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SimMatLayerSet_OutsideLayer_traits = {"_p_SimMatLayerSet_OutsideLayer_traits", "SimMatLayerSet_OutsideLayer_traits *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SimMatLayerSet_OutsideLayer_type = {"_p_SimMatLayerSet_OutsideLayer_type", "SimMatLayerSet_OutsideLayer_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SimModelName_optional = {"_p_SimModelName_optional", "SimModelName_optional *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SimModelName_traits = {"_p_SimModelName_traits", "SimModelName_traits *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SimModelName_type = {"_p_SimModelName_type", "SimModelName_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SimModelSubtype_optional = {"_p_SimModelSubtype_optional", "SimModelSubtype_optional *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SimModelSubtype_traits = {"_p_SimModelSubtype_traits", "SimModelSubtype_traits *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SimModelSubtype_type = {"_p_SimModelSubtype_type", "SimModelSubtype_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SimModelType_optional = {"_p_SimModelType_optional", "SimModelType_optional *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SimModelType_traits = {"_p_SimModelType_traits", "SimModelType_traits *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SimModelType_type = {"_p_SimModelType_type", "SimModelType_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SimUniqueID_optional = {"_p_SimUniqueID_optional", "SimUniqueID_optional *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SimUniqueID_traits = {"_p_SimUniqueID_traits", "SimUniqueID_traits *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SimUniqueID_type = {"_p_SimUniqueID_type", "SimUniqueID_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SourceLibraryEntryID_optional = {"_p_SourceLibraryEntryID_optional", "SourceLibraryEntryID_optional *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SourceLibraryEntryID_traits = {"_p_SourceLibraryEntryID_traits", "SourceLibraryEntryID_traits *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SourceLibraryEntryID_type = {"_p_SourceLibraryEntryID_type", "SourceLibraryEntryID_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SourceLibraryEntryRef_optional = {"_p_SourceLibraryEntryRef_optional", "SourceLibraryEntryRef_optional *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SourceLibraryEntryRef_traits = {"_p_SourceLibraryEntryRef_traits", "SourceLibraryEntryRef_traits *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SourceLibraryEntryRef_type = {"_p_SourceLibraryEntryRef_type", "SourceLibraryEntryRef_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SourceModelObjectType_optional = {"_p_SourceModelObjectType_optional", "SourceModelObjectType_optional *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SourceModelObjectType_traits = {"_p_SourceModelObjectType_traits", "SourceModelObjectType_traits *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SourceModelObjectType_type = {"_p_SourceModelObjectType_type", "SourceModelObjectType_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SourceModelSchema_optional = {"_p_SourceModelSchema_optional", "SourceModelSchema_optional *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SourceModelSchema_traits = {"_p_SourceModelSchema_traits", "SourceModelSchema_traits *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SourceModelSchema_type = {"_p_SourceModelSchema_type", "SourceModelSchema_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SurfProp_HeatTransAlg_Construct_Algorithm_optional = {"_p_SurfProp_HeatTransAlg_Construct_Algorithm_optional", "SurfProp_HeatTransAlg_Construct_Algorithm_optional *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SurfProp_HeatTransAlg_Construct_Algorithm_traits = {"_p_SurfProp_HeatTransAlg_Construct_Algorithm_traits", "SurfProp_HeatTransAlg_Construct_Algorithm_traits *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SurfProp_HeatTransAlg_Construct_Algorithm_type = {"_p_SurfProp_HeatTransAlg_Construct_Algorithm_type", "SurfProp_HeatTransAlg_Construct_Algorithm_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SurfProp_HeatTransAlg_Construct_ConstructionName_optional = {"_p_SurfProp_HeatTransAlg_Construct_ConstructionName_optional", "SurfProp_HeatTransAlg_Construct_ConstructionName_optional *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SurfProp_HeatTransAlg_Construct_ConstructionName_traits = {"_p_SurfProp_HeatTransAlg_Construct_ConstructionName_traits", "SurfProp_HeatTransAlg_Construct_ConstructionName_traits *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SurfProp_HeatTransAlg_Construct_ConstructionName_type = {"_p_SurfProp_HeatTransAlg_Construct_ConstructionName_type", "SurfProp_HeatTransAlg_Construct_ConstructionName_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SurfProp_HeatTransAlg_Construct_Name_optional = {"_p_SurfProp_HeatTransAlg_Construct_Name_optional", "SurfProp_HeatTransAlg_Construct_Name_optional *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SurfProp_HeatTransAlg_Construct_Name_traits = {"_p_SurfProp_HeatTransAlg_Construct_Name_traits", "SurfProp_HeatTransAlg_Construct_Name_traits *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SurfProp_HeatTransAlg_Construct_Name_type = {"_p_SurfProp_HeatTransAlg_Construct_Name_type", "SurfProp_HeatTransAlg_Construct_Name_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_T24CRRCAgedEmittance_optional = {"_p_T24CRRCAgedEmittance_optional", "T24CRRCAgedEmittance_optional *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_T24CRRCAgedEmittance_traits = {"_p_T24CRRCAgedEmittance_traits", "T24CRRCAgedEmittance_traits *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_T24CRRCAgedEmittance_type = {"_p_T24CRRCAgedEmittance_type", "T24CRRCAgedEmittance_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_T24CRRCAgedReflectance_optional = {"_p_T24CRRCAgedReflectance_optional", "T24CRRCAgedReflectance_optional *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_T24CRRCAgedReflectance_traits = {"_p_T24CRRCAgedReflectance_traits", "T24CRRCAgedReflectance_traits *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_T24CRRCAgedReflectance_type = {"_p_T24CRRCAgedReflectance_type", "T24CRRCAgedReflectance_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_T24CRRCAgedSRI_optional = {"_p_T24CRRCAgedSRI_optional", "T24CRRCAgedSRI_optional *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_T24CRRCAgedSRI_traits = {"_p_T24CRRCAgedSRI_traits", "T24CRRCAgedSRI_traits *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_T24CRRCAgedSRI_type = {"_p_T24CRRCAgedSRI_type", "T24CRRCAgedSRI_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_T24CRRCInitialEmitance_optional = {"_p_T24CRRCInitialEmitance_optional", "T24CRRCInitialEmitance_optional *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_T24CRRCInitialEmitance_traits = {"_p_T24CRRCInitialEmitance_traits", "T24CRRCInitialEmitance_traits *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_T24CRRCInitialEmitance_type = {"_p_T24CRRCInitialEmitance_type", "T24CRRCInitialEmitance_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_T24CRRCInitialReflectance_optional = {"_p_T24CRRCInitialReflectance_optional", "T24CRRCInitialReflectance_optional *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_T24CRRCInitialReflectance_traits = {"_p_T24CRRCInitialReflectance_traits", "T24CRRCInitialReflectance_traits *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_T24CRRCInitialReflectance_type = {"_p_T24CRRCInitialReflectance_type", "T24CRRCInitialReflectance_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_T24CRRCInitialSRI_optional = {"_p_T24CRRCInitialSRI_optional", "T24CRRCInitialSRI_optional *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_T24CRRCInitialSRI_traits = {"_p_T24CRRCInitialSRI_traits", "T24CRRCInitialSRI_traits *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_T24CRRCInitialSRI_type = {"_p_T24CRRCInitialSRI_type", "T24CRRCInitialSRI_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_T24CRRCProductID_optional = {"_p_T24CRRCProductID_optional", "T24CRRCProductID_optional *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_T24CRRCProductID_traits = {"_p_T24CRRCProductID_traits", "T24CRRCProductID_traits *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_T24CRRCProductID_type = {"_p_T24CRRCProductID_type", "T24CRRCProductID_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_T24ConsAssmNotes_optional = {"_p_T24ConsAssmNotes_optional", "T24ConsAssmNotes_optional *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_T24ConsAssmNotes_traits = {"_p_T24ConsAssmNotes_traits", "T24ConsAssmNotes_traits *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_T24ConsAssmNotes_type = {"_p_T24ConsAssmNotes_type", "T24ConsAssmNotes_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_T24ConstructInsulOrient_optional = {"_p_T24ConstructInsulOrient_optional", "T24ConstructInsulOrient_optional *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_T24ConstructInsulOrient_traits = {"_p_T24ConstructInsulOrient_traits", "T24ConstructInsulOrient_traits *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_T24ConstructInsulOrient_type = {"_p_T24ConstructInsulOrient_type", "T24ConstructInsulOrient_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_T24FieldAppliedCoating_optional = {"_p_T24FieldAppliedCoating_optional", "T24FieldAppliedCoating_optional *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_T24FieldAppliedCoating_traits = {"_p_T24FieldAppliedCoating_traits", "T24FieldAppliedCoating_traits *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_T24FieldAppliedCoating_type = {"_p_T24FieldAppliedCoating_type", "T24FieldAppliedCoating_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_T24RoofDensity_optional = {"_p_T24RoofDensity_optional", "T24RoofDensity_optional *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_T24RoofDensity_traits = {"_p_T24RoofDensity_traits", "T24RoofDensity_traits *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_T24RoofDensity_type = {"_p_T24RoofDensity_type", "T24RoofDensity_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_T24SlabInsulThermResist_optional = {"_p_T24SlabInsulThermResist_optional", "T24SlabInsulThermResist_optional *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_T24SlabInsulThermResist_traits = {"_p_T24SlabInsulThermResist_traits", "T24SlabInsulThermResist_traits *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_T24SlabInsulThermResist_type = {"_p_T24SlabInsulThermResist_type", "T24SlabInsulThermResist_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_T24SlabType_optional = {"_p_T24SlabType_optional", "T24SlabType_optional *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_T24SlabType_traits = {"_p_T24SlabType_traits", "T24SlabType_traits *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_T24SlabType_type = {"_p_T24SlabType_type", "T24SlabType_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Tag_optional = {"_p_Tag_optional", "Tag_optional *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Tag_traits = {"_p_Tag_traits", "Tag_traits *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Tag_type = {"_p_Tag_type", "Tag_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_TemplatesForMembers_optional = {"_p_TemplatesForMembers_optional", "TemplatesForMembers_optional *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_TemplatesForMembers_traits = {"_p_TemplatesForMembers_traits", "TemplatesForMembers_traits *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_TemplatesForMembers_type = {"_p_TemplatesForMembers_type", "TemplatesForMembers_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_TypeDefCreationParams_optional = {"_p_TypeDefCreationParams_optional", "TypeDefCreationParams_optional *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_TypeDefCreationParams_traits = {"_p_TypeDefCreationParams_traits", "TypeDefCreationParams_traits *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_TypeDefCreationParams_type = {"_p_TypeDefCreationParams_type", "TypeDefCreationParams_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_TypeDefinition_optional = {"_p_TypeDefinition_optional", "TypeDefinition_optional *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_TypeDefinition_traits = {"_p_TypeDefinition_traits", "TypeDefinition_traits *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_TypeDefinition_type = {"_p_TypeDefinition_type", "TypeDefinition_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_UnitType_String_optional = {"_p_UnitType_String_optional", "UnitType_String_optional *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_UnitType_String_traits = {"_p_UnitType_String_traits", "UnitType_String_traits *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_UnitType_String_type = {"_p_UnitType_String_type", "UnitType_String_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_XDirectionX_optional = {"_p_XDirectionX_optional", "XDirectionX_optional *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_XDirectionX_traits = {"_p_XDirectionX_traits", "XDirectionX_traits *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_XDirectionX_type = {"_p_XDirectionX_type", "XDirectionX_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_XDirectionY_optional = {"_p_XDirectionY_optional", "XDirectionY_optional *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_XDirectionY_traits = {"_p_XDirectionY_traits", "XDirectionY_traits *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_XDirectionY_type = {"_p_XDirectionY_type", "XDirectionY_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_XDirectionZ_optional = {"_p_XDirectionZ_optional", "XDirectionZ_optional *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_XDirectionZ_traits = {"_p_XDirectionZ_traits", "XDirectionZ_traits *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_XDirectionZ_type = {"_p_XDirectionZ_type", "XDirectionZ_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p__3dHeight_optional = {"_p__3dHeight_optional", "_3dHeight_optional *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p__3dHeight_traits = {"_p__3dHeight_traits", "_3dHeight_traits *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p__3dHeight_type = {"_p__3dHeight_type", "_3dHeight_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p__3dLength_optional = {"_p__3dLength_optional", "_3dLength_optional *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p__3dLength_traits = {"_p__3dLength_traits", "_3dLength_traits *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p__3dLength_type = {"_p__3dLength_type", "_3dLength_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p__3dWidth_optional = {"_p__3dWidth_optional", "_3dWidth_optional *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p__3dWidth_traits = {"_p__3dWidth_traits", "_3dWidth_traits *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p__3dWidth_type = {"_p__3dWidth_type", "_3dWidth_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_allocator_type = {"_p_allocator_type", "allocator_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_base_const_iterator = {"_p_base_const_iterator", "base_const_iterator *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_base_iterator = {"_p_base_iterator", "base_iterator *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_base_sequence = {"_p_base_sequence", "base_sequence *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_base_type = {"_p_base_type", "base_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_bool = {"_p_bool", "bool *|xml_schema::boolean *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_bool_convertible = {"_p_bool_convertible", "bool_convertible *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_const_iterator = {"_p_const_iterator", "const_iterator *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_const_reverse_iterator = {"_p_const_reverse_iterator", "const_reverse_iterator *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_difference_type = {"_p_difference_type", "difference_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_dom_content_optional = {"_p_dom_content_optional", "dom_content_optional *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_double = {"_p_double", "xml_schema::double_ *|double *|xml_schema::decimal *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_float = {"_p_float", "float *|xml_schema::float_ *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_int = {"_p_int", "int *|xml_schema::int_ *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_iterator = {"_p_iterator", "iterator *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_iterator_adapterT_std__vectorT_xsd__cxx__tree__sequence_common__ptr_std__allocatorT_xsd__cxx__tree__sequence_common__ptr_t_t__const_iterator_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_const_t = {"_p_iterator_adapterT_std__vectorT_xsd__cxx__tree__sequence_common__ptr_std__allocatorT_xsd__cxx__tree__sequence_common__ptr_t_t__const_iterator_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_const_t", "xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::const_iterator *|iterator_adapter< std::vector< xsd::cxx::tree::sequence_common::ptr,std::allocator< xsd::cxx::tree::sequence_common::ptr > >::const_iterator,::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof const > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_iterator_adapterT_std__vectorT_xsd__cxx__tree__sequence_common__ptr_std__allocatorT_xsd__cxx__tree__sequence_common__ptr_t_t__const_reverse_iterator_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_const_t = {"_p_iterator_adapterT_std__vectorT_xsd__cxx__tree__sequence_common__ptr_std__allocatorT_xsd__cxx__tree__sequence_common__ptr_t_t__const_reverse_iterator_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_const_t", "xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::const_reverse_iterator *|iterator_adapter< std::vector< xsd::cxx::tree::sequence_common::ptr,std::allocator< xsd::cxx::tree::sequence_common::ptr > >::const_reverse_iterator,::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof const > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_iterator_adapterT_std__vectorT_xsd__cxx__tree__sequence_common__ptr_std__allocatorT_xsd__cxx__tree__sequence_common__ptr_t_t__iterator___schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_t = {"_p_iterator_adapterT_std__vectorT_xsd__cxx__tree__sequence_common__ptr_std__allocatorT_xsd__cxx__tree__sequence_common__ptr_t_t__iterator___schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_t", "xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::iterator *|iterator_adapter< std::vector< xsd::cxx::tree::sequence_common::ptr,std::allocator< xsd::cxx::tree::sequence_common::ptr > >::iterator,::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_iterator_adapterT_std__vectorT_xsd__cxx__tree__sequence_common__ptr_std__allocatorT_xsd__cxx__tree__sequence_common__ptr_t_t__reverse_iterator___schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_t = {"_p_iterator_adapterT_std__vectorT_xsd__cxx__tree__sequence_common__ptr_std__allocatorT_xsd__cxx__tree__sequence_common__ptr_t_t__reverse_iterator___schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_t", "xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::reverse_iterator *|iterator_adapter< std::vector< xsd::cxx::tree::sequence_common::ptr,std::allocator< xsd::cxx::tree::sequence_common::ptr > >::reverse_iterator,::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_long_long = {"_p_long_long", "long long *|xml_schema::long_ *|xml_schema::integer *|xml_schema::non_positive_integer *|xml_schema::negative_integer *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_ptr = {"_p_ptr", "ptr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_reverse_iterator = {"_p_reverse_iterator", "reverse_iterator *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_schema__simxml__Model__SimModel = {"_p_schema__simxml__Model__SimModel", "::schema::simxml::Model::SimModel *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_schema__simxml__ResourcesGeneral__IntendedBldgElemTypes = {"_p_schema__simxml__ResourcesGeneral__IntendedBldgElemTypes", "::schema::simxml::ResourcesGeneral::IntendedBldgElemTypes *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet = {"_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet", "schema::simxml::ResourcesGeneral::SimMaterialLayerSet *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_Default = {"_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_Default", 0, 0, 0, 0, 0};
static swig_type_info _swigt__p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_Default_Default = {"_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_Default_Default", "::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_Default_Default *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet = {"_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet", "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Ceiling = {"_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Ceiling", "::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Ceiling *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof = {"_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof", "::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *|schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_schema__simxml__SimModelCore__SelectedPropertyGroups = {"_p_schema__simxml__SimModelCore__SelectedPropertyGroups", "::schema::simxml::SimModelCore::SelectedPropertyGroups *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_schema__simxml__SimModelCore__SimResourceObject = {"_p_schema__simxml__SimModelCore__SimResourceObject", "schema::simxml::SimModelCore::SimResourceObject *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_schema__simxml__SimModelCore__SimTemplate = {"_p_schema__simxml__SimModelCore__SimTemplate", 0, 0, 0, 0, 0};
static swig_type_info _swigt__p_schema__simxml__ResourcesGeneral__SimNode = {"_p_schema__simxml__ResourcesGeneral__SimNode", 0, 0, 0, 0, 0};
static swig_type_info _swigt__p_schema__simxml__SimModelCore__SimAppDefault = {"_p_schema__simxml__SimModelCore__SimAppDefault", 0, 0, 0, 0, 0};
static swig_type_info _swigt__p_schema__simxml__SimModelCore__SimActorDefinition = {"_p_schema__simxml__SimModelCore__SimActorDefinition", 0, 0, 0, 0, 0};
static swig_type_info _swigt__p_schema__simxml__ResourcesGeometry__SimProfileDefinition = {"_p_schema__simxml__ResourcesGeometry__SimProfileDefinition", 0, 0, 0, 0, 0};
static swig_type_info _swigt__p_schema__simxml__ResourcesGeneral__SimArrayParams = {"_p_schema__simxml__ResourcesGeneral__SimArrayParams", 0, 0, 0, 0, 0};
static swig_type_info _swigt__p_schema__simxml__ResourcesGeneral__SimPort = {"_p_schema__simxml__ResourcesGeneral__SimPort", 0, 0, 0, 0, 0};
static swig_type_info _swigt__p_schema__simxml__SimModelCore__SimPropertySetDefinition = {"_p_schema__simxml__SimModelCore__SimPropertySetDefinition", 0, 0, 0, 0, 0};
static swig_type_info _swigt__p_schema__simxml__ResourcesGeneral__SimUnitType = {"_p_schema__simxml__ResourcesGeneral__SimUnitType", 0, 0, 0, 0, 0};
static swig_type_info _swigt__p_schema__simxml__SimModelCore__SimObjectPlacement = {"_p_schema__simxml__SimModelCore__SimObjectPlacement", 0, 0, 0, 0, 0};
static swig_type_info _swigt__p_schema__simxml__SimModelCore__SimTopologicalRepresentationItem = {"_p_schema__simxml__SimModelCore__SimTopologicalRepresentationItem", 0, 0, 0, 0, 0};
static swig_type_info _swigt__p_schema__simxml__SimModelCore__SimFeatureElement = {"_p_schema__simxml__SimModelCore__SimFeatureElement", 0, 0, 0, 0, 0};
static swig_type_info _swigt__p_schema__simxml__SimModelCore__SimGeometricRepresentationItem = {"_p_schema__simxml__SimModelCore__SimGeometricRepresentationItem", 0, 0, 0, 0, 0};
static swig_type_info _swigt__p_schema__simxml__SimModelCore__SimBldgModelParams = {"_p_schema__simxml__SimModelCore__SimBldgModelParams", 0, 0, 0, 0, 0};
static swig_type_info _swigt__p_schema__simxml__SimModelCore__SimRepresentationItem = {"_p_schema__simxml__SimModelCore__SimRepresentationItem", 0, 0, 0, 0, 0};
static swig_type_info _swigt__p_schema__simxml__SimModelCore__SimRepresentation = {"_p_schema__simxml__SimModelCore__SimRepresentation", 0, 0, 0, 0, 0};
static swig_type_info _swigt__p_schema__simxml__SimModelCore__SimRoot = {"_p_schema__simxml__SimModelCore__SimRoot", "schema::simxml::SimModelCore::SimRoot *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_schema__simxml__SimModelCore__SimBuildingElement = {"_p_schema__simxml__SimModelCore__SimBuildingElement", 0, 0, 0, 0, 0};
static swig_type_info _swigt__p_schema__simxml__SimModelCore__SimDistributionFlowElement = {"_p_schema__simxml__SimModelCore__SimDistributionFlowElement", 0, 0, 0, 0, 0};
static swig_type_info _swigt__p_schema__simxml__SimModelCore__SimObjectTypeDefinition = {"_p_schema__simxml__SimModelCore__SimObjectTypeDefinition", 0, 0, 0, 0, 0};
static swig_type_info _swigt__p_schema__simxml__SimModelCore__SimDistributionElement = {"_p_schema__simxml__SimModelCore__SimDistributionElement", 0, 0, 0, 0, 0};
static swig_type_info _swigt__p_schema__simxml__SimModelCore__SimObjectDefinition = {"_p_schema__simxml__SimModelCore__SimObjectDefinition", 0, 0, 0, 0, 0};
static swig_type_info _swigt__p_schema__simxml__SimModelCore__SimGroup = {"_p_schema__simxml__SimModelCore__SimGroup", 0, 0, 0, 0, 0};
static swig_type_info _swigt__p_schema__simxml__SimModelCore__SimSpatialStructureElement = {"_p_schema__simxml__SimModelCore__SimSpatialStructureElement", 0, 0, 0, 0, 0};
static swig_type_info _swigt__p_schema__simxml__MepModel__SimFlowEnergyConverter = {"_p_schema__simxml__MepModel__SimFlowEnergyConverter", 0, 0, 0, 0, 0};
static swig_type_info _swigt__p_schema__simxml__SimModelCore__SimObject = {"_p_schema__simxml__SimModelCore__SimObject", 0, 0, 0, 0, 0};
static swig_type_info _swigt__p_schema__simxml__SimModelCore__SimDistributionControlElement = {"_p_schema__simxml__SimModelCore__SimDistributionControlElement", 0, 0, 0, 0, 0};
static swig_type_info _swigt__p_schema__simxml__SimModelCore__SimElement = {"_p_schema__simxml__SimModelCore__SimElement", 0, 0, 0, 0, 0};
static swig_type_info _swigt__p_schema__simxml__SimModelCore__doubleList = {"_p_schema__simxml__SimModelCore__doubleList", "::schema::simxml::SimModelCore::doubleList *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_schema__simxml__SimModelCore__integerList = {"_p_schema__simxml__SimModelCore__integerList", "::schema::simxml::SimModelCore::integerList *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_schema__simxml__SimModelCore__logical = {"_p_schema__simxml__SimModelCore__logical", "::schema::simxml::SimModelCore::logical *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_self_ = {"_p_self_", "self_ *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_short = {"_p_short", "short *|xml_schema::short_ *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_signed_char = {"_p_signed_char", "signed char *|xml_schema::byte *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_size_type = {"_p_size_type", "size_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__auto_ptrT_T_t = {"_p_std__auto_ptrT_T_t", "std::auto_ptr< T > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__auto_ptrT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_t = {"_p_std__auto_ptrT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_t", "std::auto_ptr< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__auto_ptrT_xml_schema__idref_t = {"_p_std__auto_ptrT_xml_schema__idref_t", "std::auto_ptr< ::xml_schema::idref > *|::std::auto_ptr< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::SimMatLayerSet_OutsideLayer_type > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__auto_ptrT_xml_schema__idrefs_t = {"_p_std__auto_ptrT_xml_schema__idrefs_t", "std::auto_ptr< ::xml_schema::idrefs > *|::std::auto_ptr< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::SimMatLayerSet_Layer_2_10_type > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__auto_ptrT_xml_schema__string_t = {"_p_std__auto_ptrT_xml_schema__string_t", "std::auto_ptr< ::xml_schema::string > *|::std::auto_ptr< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24ConsAssmNotes_type > *|::std::auto_ptr< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCProductID_type > *|::std::auto_ptr< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24ConstructInsulOrient_type > *|::std::auto_ptr< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24SlabInsulThermResist_type > *|::std::auto_ptr< schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24SlabType_type > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__vectorT_xsd__cxx__tree__sequence_common__ptr_std__allocatorT_xsd__cxx__tree__sequence_common__ptr_t_t__size_type = {"_p_std__vectorT_xsd__cxx__tree__sequence_common__ptr_std__allocatorT_xsd__cxx__tree__sequence_common__ptr_t_t__size_type", "xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false >::size_type *|std::vector< xsd::cxx::tree::sequence_common::ptr,std::allocator< xsd::cxx::tree::sequence_common::ptr > >::size_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|xml_schema::unsigned_byte *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "xml_schema::unsigned_int *|unsigned int *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_unsigned_long_long = {"_p_unsigned_long_long", "xml_schema::unsigned_long *|unsigned long long *|xml_schema::non_negative_integer *|xml_schema::positive_integer *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_unsigned_short = {"_p_unsigned_short", "unsigned short *|xml_schema::unsigned_short *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_value_type = {"_p_value_type", "value_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_xercesc__DOMElement = {"_p_xercesc__DOMElement", "::xercesc::DOMElement *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_xsd__cxx__tree___type = {"_p_xsd__cxx__tree___type", "xsd::cxx::tree::_type *|xsd::cxx::tree::type *|xml_schema::type *|xsd::cxx::tree::container *|xml_schema::container *|::xml_schema::container *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_xsd__cxx__tree__stringT_char_xsd__cxx__tree__simple_typeT_char_xsd__cxx__tree__type_t_t = {"_p_xsd__cxx__tree__stringT_char_xsd__cxx__tree__simple_typeT_char_xsd__cxx__tree__type_t_t", 0, 0, 0, 0, 0};
static swig_type_info _swigt__p_xsd__cxx__tree__base64_binaryT_char_xsd__cxx__tree__simple_type_t = {"_p_xsd__cxx__tree__base64_binaryT_char_xsd__cxx__tree__simple_type_t", "xml_schema::base64_binary *|::xsd::cxx::tree::base64_binary< char,xsd::cxx::tree::simple_type > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_xsd__cxx__tree__boundsT_char_t = {"_p_xsd__cxx__tree__boundsT_char_t", "::xsd::cxx::tree::bounds< char > *|xml_schema::bounds *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_xsd__cxx__tree__bufferT_char_t = {"_p_xsd__cxx__tree__bufferT_char_t", "::xsd::cxx::tree::buffer< char > *|xml_schema::buffer *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_xsd__cxx__tree__content_order = {"_p_xsd__cxx__tree__content_order", "::xsd::cxx::tree::content_order *|xml_schema::content_order *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_xsd__cxx__tree__dateT_char_xsd__cxx__tree__simple_typeT_char_xsd__cxx__tree___type_t_t = {"_p_xsd__cxx__tree__dateT_char_xsd__cxx__tree__simple_typeT_char_xsd__cxx__tree___type_t_t", "xsd::cxx::tree::date< char,xsd::cxx::tree::simple_type< char,xsd::cxx::tree::_type > > *|xml_schema::date *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_xsd__cxx__tree__date_timeT_char_xsd__cxx__tree__simple_typeT_char_xsd__cxx__tree___type_t_t = {"_p_xsd__cxx__tree__date_timeT_char_xsd__cxx__tree__simple_typeT_char_xsd__cxx__tree___type_t_t", "xml_schema::date_time *|xsd::cxx::tree::date_time< char,xsd::cxx::tree::simple_type< char,xsd::cxx::tree::_type > > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_xsd__cxx__tree__diagnosticsT_char_t = {"_p_xsd__cxx__tree__diagnosticsT_char_t", "xml_schema::diagnostics *|::xsd::cxx::tree::diagnostics< char > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_xsd__cxx__tree__duplicate_idT_char_t = {"_p_xsd__cxx__tree__duplicate_idT_char_t", "::xsd::cxx::tree::duplicate_id< char > *|xml_schema::duplicate_id *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_xsd__cxx__tree__durationT_char_xsd__cxx__tree__simple_typeT_char_xsd__cxx__tree___type_t_t = {"_p_xsd__cxx__tree__durationT_char_xsd__cxx__tree__simple_typeT_char_xsd__cxx__tree___type_t_t", "xsd::cxx::tree::duration< char,xsd::cxx::tree::simple_type< char,xsd::cxx::tree::_type > > *|xml_schema::duration *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_xsd__cxx__tree__entitiesT_char_xsd__cxx__tree__simple_type_xsd__cxx__tree__entity_t = {"_p_xsd__cxx__tree__entitiesT_char_xsd__cxx__tree__simple_type_xsd__cxx__tree__entity_t", "xml_schema::entities *|::xsd::cxx::tree::entities< char,xsd::cxx::tree::simple_type,xsd::cxx::tree::entity > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_xsd__cxx__tree__entityT_char_xsd__cxx__tree__ncname_t = {"_p_xsd__cxx__tree__entityT_char_xsd__cxx__tree__ncname_t", "xml_schema::entity *|::xsd::cxx::tree::entity< char,xsd::cxx::tree::ncname > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_xsd__cxx__tree__errorT_char_t = {"_p_xsd__cxx__tree__errorT_char_t", "xml_schema::error *|::xsd::cxx::tree::error< char > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_xsd__cxx__tree__exceptionT_char_t = {"_p_xsd__cxx__tree__exceptionT_char_t", "::xsd::cxx::tree::exception< char > *|xml_schema::exception *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_xsd__cxx__tree__expected_attributeT_char_t = {"_p_xsd__cxx__tree__expected_attributeT_char_t", "::xsd::cxx::tree::expected_attribute< char > *|xml_schema::expected_attribute *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_xsd__cxx__tree__expected_elementT_char_t = {"_p_xsd__cxx__tree__expected_elementT_char_t", "::xsd::cxx::tree::expected_element< char > *|xml_schema::expected_element *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_xsd__cxx__tree__expected_text_contentT_char_t = {"_p_xsd__cxx__tree__expected_text_contentT_char_t", "::xsd::cxx::tree::expected_text_content< char > *|xml_schema::expected_text_content *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_xsd__cxx__tree__flags = {"_p_xsd__cxx__tree__flags", "::xsd::cxx::tree::flags *|xml_schema::flags *|::xml_schema::flags *|xsd::cxx::tree::flags *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_xsd__cxx__tree__gdayT_char_xsd__cxx__tree__simple_typeT_char_xsd__cxx__tree___type_t_t = {"_p_xsd__cxx__tree__gdayT_char_xsd__cxx__tree__simple_typeT_char_xsd__cxx__tree___type_t_t", "xsd::cxx::tree::gday< char,xsd::cxx::tree::simple_type< char,xsd::cxx::tree::_type > > *|xml_schema::gday *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_xsd__cxx__tree__gmonthT_char_xsd__cxx__tree__simple_typeT_char_xsd__cxx__tree___type_t_t = {"_p_xsd__cxx__tree__gmonthT_char_xsd__cxx__tree__simple_typeT_char_xsd__cxx__tree___type_t_t", "xml_schema::gmonth *|xsd::cxx::tree::gmonth< char,xsd::cxx::tree::simple_type< char,xsd::cxx::tree::_type > > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_xsd__cxx__tree__gmonth_dayT_char_xsd__cxx__tree__simple_typeT_char_xsd__cxx__tree___type_t_t = {"_p_xsd__cxx__tree__gmonth_dayT_char_xsd__cxx__tree__simple_typeT_char_xsd__cxx__tree___type_t_t", "xsd::cxx::tree::gmonth_day< char,xsd::cxx::tree::simple_type< char,xsd::cxx::tree::_type > > *|xml_schema::gmonth_day *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_xsd__cxx__tree__gyearT_char_xsd__cxx__tree__simple_typeT_char_xsd__cxx__tree___type_t_t = {"_p_xsd__cxx__tree__gyearT_char_xsd__cxx__tree__simple_typeT_char_xsd__cxx__tree___type_t_t", "xsd::cxx::tree::gyear< char,xsd::cxx::tree::simple_type< char,xsd::cxx::tree::_type > > *|xml_schema::gyear *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_xsd__cxx__tree__gyear_monthT_char_xsd__cxx__tree__simple_typeT_char_xsd__cxx__tree___type_t_t = {"_p_xsd__cxx__tree__gyear_monthT_char_xsd__cxx__tree__simple_typeT_char_xsd__cxx__tree___type_t_t", "xsd::cxx::tree::gyear_month< char,xsd::cxx::tree::simple_type< char,xsd::cxx::tree::_type > > *|xml_schema::gyear_month *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_xsd__cxx__tree__hex_binaryT_char_xsd__cxx__tree__simple_type_t = {"_p_xsd__cxx__tree__hex_binaryT_char_xsd__cxx__tree__simple_type_t", "::xsd::cxx::tree::hex_binary< char,xsd::cxx::tree::simple_type > *|xml_schema::hex_binary *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_xsd__cxx__tree__idT_char_xsd__cxx__tree__ncname_t = {"_p_xsd__cxx__tree__idT_char_xsd__cxx__tree__ncname_t", "::xsd::cxx::tree::id< char,xsd::cxx::tree::ncname > *|::xml_schema::id *|xml_schema::id *|schema::simxml::SimModelCore::SimRoot::RefId_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_xsd__cxx__tree__idrefT_char_xsd__cxx__tree__ncname_xsd__cxx__tree___type_t = {"_p_xsd__cxx__tree__idrefT_char_xsd__cxx__tree__ncname_xsd__cxx__tree___type_t", "::xml_schema::idref *|xml_schema::idref *|schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::SimMatLayerSet_OutsideLayer_type *|xsd::cxx::tree::idref< char,xsd::cxx::tree::ncname,xsd::cxx::tree::_type > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_xsd__cxx__tree__idrefsT_char_xsd__cxx__tree__simple_type_xsd__cxx__tree__idref_t = {"_p_xsd__cxx__tree__idrefsT_char_xsd__cxx__tree__simple_type_xsd__cxx__tree__idref_t", "::xsd::cxx::tree::idrefs< char,xsd::cxx::tree::simple_type,xsd::cxx::tree::idref > *|schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::SimMatLayerSet_Layer_2_10_type *|::xml_schema::idrefs *|xml_schema::idrefs *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_xsd__cxx__tree__languageT_char_xsd__cxx__tree__token_t = {"_p_xsd__cxx__tree__languageT_char_xsd__cxx__tree__token_t", "xml_schema::language *|::xsd::cxx::tree::language< char,xsd::cxx::tree::token > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_xsd__cxx__tree__nameT_char_xsd__cxx__tree__token_t = {"_p_xsd__cxx__tree__nameT_char_xsd__cxx__tree__token_t", "xml_schema::name *|::xsd::cxx::tree::name< char,xsd::cxx::tree::token > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_xsd__cxx__tree__ncnameT_char_xsd__cxx__tree__name_t = {"_p_xsd__cxx__tree__ncnameT_char_xsd__cxx__tree__name_t", "xml_schema::ncname *|::xsd::cxx::tree::ncname< char,xsd::cxx::tree::name > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_xsd__cxx__tree__nmtokenT_char_xsd__cxx__tree__token_t = {"_p_xsd__cxx__tree__nmtokenT_char_xsd__cxx__tree__token_t", "::xsd::cxx::tree::nmtoken< char,xsd::cxx::tree::token > *|xml_schema::nmtoken *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_xsd__cxx__tree__nmtokensT_char_xsd__cxx__tree__simple_type_xsd__cxx__tree__nmtoken_t = {"_p_xsd__cxx__tree__nmtokensT_char_xsd__cxx__tree__simple_type_xsd__cxx__tree__nmtoken_t", "::xsd::cxx::tree::nmtokens< char,xsd::cxx::tree::simple_type,xsd::cxx::tree::nmtoken > *|xml_schema::nmtokens *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_xsd__cxx__tree__no_prefix_mappingT_char_t = {"_p_xsd__cxx__tree__no_prefix_mappingT_char_t", "::xsd::cxx::tree::no_prefix_mapping< char > *|xml_schema::no_prefix_mapping *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_xsd__cxx__tree__no_type_infoT_char_t = {"_p_xsd__cxx__tree__no_type_infoT_char_t", "xml_schema::no_type_info *|::xsd::cxx::tree::no_type_info< char > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_xsd__cxx__tree__normalized_stringT_char_xsd__cxx__tree__string_t = {"_p_xsd__cxx__tree__normalized_stringT_char_xsd__cxx__tree__string_t", "::xsd::cxx::tree::normalized_string< char,xsd::cxx::tree::string > *|xml_schema::normalized_string *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_xsd__cxx__tree__not_derivedT_char_t = {"_p_xsd__cxx__tree__not_derivedT_char_t", "::xsd::cxx::tree::not_derived< char > *|xml_schema::not_derived *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_xsd__cxx__tree__optionalT_double_true_t = {"_p_xsd__cxx__tree__optionalT_double_true_t", "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCInitialReflectance_optional *|schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCInitialEmitance_optional *|schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCAgedReflectance_optional *|schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCAgedEmittance_optional *|xsd::cxx::tree::optional< double,true > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_xsd__cxx__tree__optionalT_int_true_t = {"_p_xsd__cxx__tree__optionalT_int_true_t", "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24RoofDensity_optional *|schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24FieldAppliedCoating_optional *|schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCInitialSRI_optional *|schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCAgedSRI_optional *|xsd::cxx::tree::optional< int,true > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_xsd__cxx__tree__optionalT_xsd__cxx__tree__idrefT_char_xsd__cxx__tree__ncname_xsd__cxx__tree___type_t_false_t = {"_p_xsd__cxx__tree__optionalT_xsd__cxx__tree__idrefT_char_xsd__cxx__tree__ncname_xsd__cxx__tree___type_t_false_t", "xsd::cxx::tree::optional< xsd::cxx::tree::idref< char,xsd::cxx::tree::ncname,xsd::cxx::tree::_type >,false > *|schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::SimMatLayerSet_OutsideLayer_optional *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_xsd__cxx__tree__optionalT_xsd__cxx__tree__idrefsT_char_xsd__cxx__tree__simple_type_xsd__cxx__tree__idref_t_xsd__cxx__tree__fundamental_pT_xsd__cxx__tree__idrefsT_char_xsd__cxx__tree__simple_type_xsd__cxx__tree__idref_t_t__r_t = {"_p_xsd__cxx__tree__optionalT_xsd__cxx__tree__idrefsT_char_xsd__cxx__tree__simple_type_xsd__cxx__tree__idref_t_xsd__cxx__tree__fundamental_pT_xsd__cxx__tree__idrefsT_char_xsd__cxx__tree__simple_type_xsd__cxx__tree__idref_t_t__r_t", "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::SimMatLayerSet_Layer_2_10_optional *|xsd::cxx::tree::optional< ::xsd::cxx::tree::idrefs< char,xsd::cxx::tree::simple_type,xsd::cxx::tree::idref >,xsd::cxx::tree::fundamental_p< ::xsd::cxx::tree::idrefs< char,xsd::cxx::tree::simple_type,xsd::cxx::tree::idref > >::r > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_xsd__cxx__tree__optionalT_xsd__cxx__tree__stringT_char_xsd__cxx__tree__simple_type_t_false_t = {"_p_xsd__cxx__tree__optionalT_xsd__cxx__tree__stringT_char_xsd__cxx__tree__simple_type_t_false_t", "schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24SlabInsulThermResist_optional *|schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24ConstructInsulOrient_optional *|schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCProductID_optional *|schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24ConsAssmNotes_optional *|schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24SlabType_optional *|xsd::cxx::tree::optional< ::xsd::cxx::tree::string< char,xsd::cxx::tree::simple_type >,false > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_xsd__cxx__tree__parsingT_char_t = {"_p_xsd__cxx__tree__parsingT_char_t", "xml_schema::parsing *|::xsd::cxx::tree::parsing< char > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_xsd__cxx__tree__propertiesT_char_t = {"_p_xsd__cxx__tree__propertiesT_char_t", "::xsd::cxx::tree::properties< char > *|xml_schema::properties *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_xsd__cxx__tree__qnameT_char_xsd__cxx__tree__simple_type_xsd__cxx__tree__uri_xsd__cxx__tree__ncname_t = {"_p_xsd__cxx__tree__qnameT_char_xsd__cxx__tree__simple_type_xsd__cxx__tree__uri_xsd__cxx__tree__ncname_t", "xml_schema::qname *|::xsd::cxx::tree::qname< char,xsd::cxx::tree::simple_type,xsd::cxx::tree::uri,xsd::cxx::tree::ncname > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_xsd__cxx__tree__sequenceT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_false_t = {"_p_xsd__cxx__tree__sequenceT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_false_t", "xsd::cxx::tree::sequence< ::schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof,false > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_xsd__cxx__tree__sequence_common = {"_p_xsd__cxx__tree__sequence_common", "xsd::cxx::tree::sequence_common *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_xsd__cxx__tree__sequenceT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_Default_Default_false_t = {"_p_xsd__cxx__tree__sequenceT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_Default_Default_false_t", 0, 0, 0, 0, 0};
static swig_type_info _swigt__p_xsd__cxx__tree__sequenceT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Ceiling_false_t = {"_p_xsd__cxx__tree__sequenceT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Ceiling_false_t", 0, 0, 0, 0, 0};
static swig_type_info _swigt__p_xsd__cxx__tree__sequenceT_xsd__cxx__tree__stringT_char_xsd__cxx__tree__simple_typeT_char_xsd__cxx__tree__type_t_t_false_t = {"_p_xsd__cxx__tree__sequenceT_xsd__cxx__tree__stringT_char_xsd__cxx__tree__simple_typeT_char_xsd__cxx__tree__type_t_t_false_t", 0, 0, 0, 0, 0};
static swig_type_info _swigt__p_xsd__cxx__tree__severity = {"_p_xsd__cxx__tree__severity", "::xsd::cxx::tree::severity *|xml_schema::severity *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_xsd__cxx__tree__simple_typeT_char_xsd__cxx__tree___type_t = {"_p_xsd__cxx__tree__simple_typeT_char_xsd__cxx__tree___type_t", "xml_schema::simple_type *|xsd::cxx::tree::simple_type< char,xsd::cxx::tree::_type > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_xsd__cxx__tree__stringT_char_xsd__cxx__tree__simple_type_t = {"_p_xsd__cxx__tree__stringT_char_xsd__cxx__tree__simple_type_t", "::xsd::cxx::tree::string< char,xsd::cxx::tree::simple_type > *|schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24ConsAssmNotes_type *|schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24CRRCProductID_type *|schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24ConstructInsulOrient_type *|schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24SlabInsulThermResist_type *|schema::simxml::ResourcesGeneral::SimMaterialLayerSet_OpaqueLayerSet_Roof::T24SlabType_type *|::xml_schema::string *|xml_schema::string *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_xsd__cxx__tree__timeT_char_xsd__cxx__tree__simple_typeT_char_xsd__cxx__tree___type_t_t = {"_p_xsd__cxx__tree__timeT_char_xsd__cxx__tree__simple_typeT_char_xsd__cxx__tree___type_t_t", "xsd::cxx::tree::time< char,xsd::cxx::tree::simple_type< char,xsd::cxx::tree::_type > > *|xml_schema::time *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_xsd__cxx__tree__time_zone = {"_p_xsd__cxx__tree__time_zone", "::xsd::cxx::tree::time_zone *|xml_schema::time_zone *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_xsd__cxx__tree__tokenT_char_xsd__cxx__tree__normalized_string_t = {"_p_xsd__cxx__tree__tokenT_char_xsd__cxx__tree__normalized_string_t", "::xsd::cxx::tree::token< char,xsd::cxx::tree::normalized_string > *|xml_schema::token *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_xsd__cxx__tree__unexpected_elementT_char_t = {"_p_xsd__cxx__tree__unexpected_elementT_char_t", "::xsd::cxx::tree::unexpected_element< char > *|xml_schema::unexpected_element *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_xsd__cxx__tree__unexpected_enumeratorT_char_t = {"_p_xsd__cxx__tree__unexpected_enumeratorT_char_t", "::xsd::cxx::tree::unexpected_enumerator< char > *|xml_schema::unexpected_enumerator *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_xsd__cxx__tree__uriT_char_xsd__cxx__tree__simple_type_t = {"_p_xsd__cxx__tree__uriT_char_xsd__cxx__tree__simple_type_t", "xml_schema::uri *|::xsd::cxx::tree::uri< char,xsd::cxx::tree::simple_type > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_xsd__cxx__tree__user_data_keys_templateT_0_t = {"_p_xsd__cxx__tree__user_data_keys_templateT_0_t", "xsd::cxx::tree::user_data_keys_template< 0 > *|xsd::cxx::tree::user_data_keys *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_xsd__cxx__xml__error_handlerT_char_t = {"_p_xsd__cxx__xml__error_handlerT_char_t", "::xsd::cxx::xml::error_handler< char > *|xml_schema::error_handler *", 0, 0, (void*)0, 0};
static swig_type_info *swig_type_initial[] = {
&_swigt__p_ApplicableOccurrence_optional,
&_swigt__p_ApplicableOccurrence_traits,
&_swigt__p_ApplicableOccurrence_type,
&_swigt__p_AssignedToFlowElement_optional,
&_swigt__p_AssignedToFlowElement_traits,
&_swigt__p_AssignedToFlowElement_type,
&_swigt__p_AssignedToGroups_optional,
&_swigt__p_AssignedToGroups_traits,
&_swigt__p_AssignedToGroups_type,
&_swigt__p_ChangeFromTemplate_optional,
&_swigt__p_ChangeFromTemplate_traits,
&_swigt__p_ChangeFromTemplate_type,
&_swigt__p_CompositeThermalTrans_optional,
&_swigt__p_CompositeThermalTrans_traits,
&_swigt__p_CompositeThermalTrans_type,
&_swigt__p_CompositionType_optional,
&_swigt__p_CompositionType_traits,
&_swigt__p_CompositionType_type,
&_swigt__p_ContainingBuildings_optional,
&_swigt__p_ContainingBuildings_traits,
&_swigt__p_ContainingBuildings_type,
&_swigt__p_ContainingSpatialStructure_optional,
&_swigt__p_ContainingSpatialStructure_traits,
&_swigt__p_ContainingSpatialStructure_type,
&_swigt__p_ControlElementID_optional,
&_swigt__p_ControlElementID_traits,
&_swigt__p_ControlElementID_type,
&_swigt__p_ControlledBy_optional,
&_swigt__p_ControlledBy_traits,
&_swigt__p_ControlledBy_type,
&_swigt__p_DecimalPrecision_optional,
&_swigt__p_DecimalPrecision_traits,
&_swigt__p_DecimalPrecision_type,
&_swigt__p_Decomposes_optional,
&_swigt__p_Decomposes_traits,
&_swigt__p_Decomposes_type,
&_swigt__p_Description_optional,
&_swigt__p_Description_traits,
&_swigt__p_Description_type,
&_swigt__p_DockedToPort_optional,
&_swigt__p_DockedToPort_traits,
&_swigt__p_DockedToPort_type,
&_swigt__p_GeometricRepresentations_optional,
&_swigt__p_GeometricRepresentations_traits,
&_swigt__p_GeometricRepresentations_type,
&_swigt__p_HasPropertySets_optional,
&_swigt__p_HasPropertySets_traits,
&_swigt__p_HasPropertySets_type,
&_swigt__p_HasTemplateChanged_optional,
&_swigt__p_HasTemplateChanged_traits,
&_swigt__p_HasTemplateChanged_type,
&_swigt__p_HostElement_optional,
&_swigt__p_HostElement_traits,
&_swigt__p_HostElement_type,
&_swigt__p_IfcGlobalID_optional,
&_swigt__p_IfcGlobalID_traits,
&_swigt__p_IfcGlobalID_type,
&_swigt__p_IfcName_optional,
&_swigt__p_IfcName_traits,
&_swigt__p_IfcName_type,
&_swigt__p_IntendedBldgElemTypes_optional,
&_swigt__p_IntendedBldgElemTypes_traits,
&_swigt__p_IntendedBldgElemTypes_type,
&_swigt__p_IsAutoGenerated_optional,
&_swigt__p_IsAutoGenerated_traits,
&_swigt__p_IsAutoGenerated_type,
&_swigt__p_IsTemplateObject_optional,
&_swigt__p_IsTemplateObject_traits,
&_swigt__p_IsTemplateObject_type,
&_swigt__p_LayerSetName_optional,
&_swigt__p_LayerSetName_traits,
&_swigt__p_LayerSetName_type,
&_swigt__p_LocalPlacementCoordinates_optional,
&_swigt__p_LocalPlacementCoordinates_traits,
&_swigt__p_LocalPlacementCoordinates_type,
&_swigt__p_LocalPlacementRotation_optional,
&_swigt__p_LocalPlacementRotation_traits,
&_swigt__p_LocalPlacementRotation_type,
&_swigt__p_LocalPlacementX_optional,
&_swigt__p_LocalPlacementX_traits,
&_swigt__p_LocalPlacementX_type,
&_swigt__p_LocalPlacementY_optional,
&_swigt__p_LocalPlacementY_traits,
&_swigt__p_LocalPlacementY_type,
&_swigt__p_LocalPlacementZ_optional,
&_swigt__p_LocalPlacementZ_traits,
&_swigt__p_LocalPlacementZ_type,
&_swigt__p_LongName_optional,
&_swigt__p_LongName_traits,
&_swigt__p_LongName_type,
&_swigt__p_MaterialLayers_optional,
&_swigt__p_MaterialLayers_traits,
&_swigt__p_MaterialLayers_type,
&_swigt__p_MemberUsedForDiagrams_optional,
&_swigt__p_MemberUsedForDiagrams_traits,
&_swigt__p_MemberUsedForDiagrams_type,
&_swigt__p_Name_optional,
&_swigt__p_Name_traits,
&_swigt__p_Name_type,
&_swigt__p_NevronSchematicLayout_optional,
&_swigt__p_NevronSchematicLayout_traits,
&_swigt__p_NevronSchematicLayout_type,
&_swigt__p_ObjectCreationParams_optional,
&_swigt__p_ObjectCreationParams_traits,
&_swigt__p_ObjectCreationParams_type,
&_swigt__p_ObjectIndex_optional,
&_swigt__p_ObjectIndex_traits,
&_swigt__p_ObjectIndex_type,
&_swigt__p_ObjectName_optional,
&_swigt__p_ObjectName_traits,
&_swigt__p_ObjectName_type,
&_swigt__p_ObjectOwnerHistory_optional,
&_swigt__p_ObjectOwnerHistory_traits,
&_swigt__p_ObjectOwnerHistory_type,
&_swigt__p_ObjectType_optional,
&_swigt__p_ObjectType_traits,
&_swigt__p_ObjectType_type,
&_swigt__p_ParentGroups_optional,
&_swigt__p_ParentGroups_traits,
&_swigt__p_ParentGroups_type,
&_swigt__p_PlacementRelToContainingTypeDef_optional,
&_swigt__p_PlacementRelToContainingTypeDef_traits,
&_swigt__p_PlacementRelToContainingTypeDef_type,
&_swigt__p_Placement_optional,
&_swigt__p_Placement_traits,
&_swigt__p_Placement_type,
&_swigt__p_ProfileName_optional,
&_swigt__p_ProfileName_traits,
&_swigt__p_ProfileName_type,
&_swigt__p_ProfileType_optional,
&_swigt__p_ProfileType_traits,
&_swigt__p_ProfileType_type,
&_swigt__p_RefId_traits,
&_swigt__p_RefId_type,
&_swigt__p_RepresentationContext_optional,
&_swigt__p_RepresentationContext_traits,
&_swigt__p_RepresentationContext_type,
&_swigt__p_RepresentationIdentifier_optional,
&_swigt__p_RepresentationIdentifier_traits,
&_swigt__p_RepresentationIdentifier_type,
&_swigt__p_RepresentationItems_optional,
&_swigt__p_RepresentationItems_traits,
&_swigt__p_RepresentationItems_type,
&_swigt__p_RepresentationType_optional,
&_swigt__p_RepresentationType_traits,
&_swigt__p_RepresentationType_type,
&_swigt__p_SelectedPropertyGroups_optional,
&_swigt__p_SelectedPropertyGroups_traits,
&_swigt__p_SelectedPropertyGroups_type,
&_swigt__p_SimMatLayerSet_Layer_2_10_optional,
&_swigt__p_SimMatLayerSet_Layer_2_10_traits,
&_swigt__p_SimMatLayerSet_Layer_2_10_type,
&_swigt__p_SimMatLayerSet_Name_optional,
&_swigt__p_SimMatLayerSet_Name_traits,
&_swigt__p_SimMatLayerSet_Name_type,
&_swigt__p_SimMatLayerSet_OutsideLayer_optional,
&_swigt__p_SimMatLayerSet_OutsideLayer_traits,
&_swigt__p_SimMatLayerSet_OutsideLayer_type,
&_swigt__p_SimModelName_optional,
&_swigt__p_SimModelName_traits,
&_swigt__p_SimModelName_type,
&_swigt__p_SimModelSubtype_optional,
&_swigt__p_SimModelSubtype_traits,
&_swigt__p_SimModelSubtype_type,
&_swigt__p_SimModelType_optional,
&_swigt__p_SimModelType_traits,
&_swigt__p_SimModelType_type,
&_swigt__p_SimUniqueID_optional,
&_swigt__p_SimUniqueID_traits,
&_swigt__p_SimUniqueID_type,
&_swigt__p_SourceLibraryEntryID_optional,
&_swigt__p_SourceLibraryEntryID_traits,
&_swigt__p_SourceLibraryEntryID_type,
&_swigt__p_SourceLibraryEntryRef_optional,
&_swigt__p_SourceLibraryEntryRef_traits,
&_swigt__p_SourceLibraryEntryRef_type,
&_swigt__p_SourceModelObjectType_optional,
&_swigt__p_SourceModelObjectType_traits,
&_swigt__p_SourceModelObjectType_type,
&_swigt__p_SourceModelSchema_optional,
&_swigt__p_SourceModelSchema_traits,
&_swigt__p_SourceModelSchema_type,
&_swigt__p_SurfProp_HeatTransAlg_Construct_Algorithm_optional,
&_swigt__p_SurfProp_HeatTransAlg_Construct_Algorithm_traits,
&_swigt__p_SurfProp_HeatTransAlg_Construct_Algorithm_type,
&_swigt__p_SurfProp_HeatTransAlg_Construct_ConstructionName_optional,
&_swigt__p_SurfProp_HeatTransAlg_Construct_ConstructionName_traits,
&_swigt__p_SurfProp_HeatTransAlg_Construct_ConstructionName_type,
&_swigt__p_SurfProp_HeatTransAlg_Construct_Name_optional,
&_swigt__p_SurfProp_HeatTransAlg_Construct_Name_traits,
&_swigt__p_SurfProp_HeatTransAlg_Construct_Name_type,
&_swigt__p_T24CRRCAgedEmittance_optional,
&_swigt__p_T24CRRCAgedEmittance_traits,
&_swigt__p_T24CRRCAgedEmittance_type,
&_swigt__p_T24CRRCAgedReflectance_optional,
&_swigt__p_T24CRRCAgedReflectance_traits,
&_swigt__p_T24CRRCAgedReflectance_type,
&_swigt__p_T24CRRCAgedSRI_optional,
&_swigt__p_T24CRRCAgedSRI_traits,
&_swigt__p_T24CRRCAgedSRI_type,
&_swigt__p_T24CRRCInitialEmitance_optional,
&_swigt__p_T24CRRCInitialEmitance_traits,
&_swigt__p_T24CRRCInitialEmitance_type,
&_swigt__p_T24CRRCInitialReflectance_optional,
&_swigt__p_T24CRRCInitialReflectance_traits,
&_swigt__p_T24CRRCInitialReflectance_type,
&_swigt__p_T24CRRCInitialSRI_optional,
&_swigt__p_T24CRRCInitialSRI_traits,
&_swigt__p_T24CRRCInitialSRI_type,
&_swigt__p_T24CRRCProductID_optional,
&_swigt__p_T24CRRCProductID_traits,
&_swigt__p_T24CRRCProductID_type,
&_swigt__p_T24ConsAssmNotes_optional,
&_swigt__p_T24ConsAssmNotes_traits,
&_swigt__p_T24ConsAssmNotes_type,
&_swigt__p_T24ConstructInsulOrient_optional,
&_swigt__p_T24ConstructInsulOrient_traits,
&_swigt__p_T24ConstructInsulOrient_type,
&_swigt__p_T24FieldAppliedCoating_optional,
&_swigt__p_T24FieldAppliedCoating_traits,
&_swigt__p_T24FieldAppliedCoating_type,
&_swigt__p_T24RoofDensity_optional,
&_swigt__p_T24RoofDensity_traits,
&_swigt__p_T24RoofDensity_type,
&_swigt__p_T24SlabInsulThermResist_optional,
&_swigt__p_T24SlabInsulThermResist_traits,
&_swigt__p_T24SlabInsulThermResist_type,
&_swigt__p_T24SlabType_optional,
&_swigt__p_T24SlabType_traits,
&_swigt__p_T24SlabType_type,
&_swigt__p_Tag_optional,
&_swigt__p_Tag_traits,
&_swigt__p_Tag_type,
&_swigt__p_TemplatesForMembers_optional,
&_swigt__p_TemplatesForMembers_traits,
&_swigt__p_TemplatesForMembers_type,
&_swigt__p_TypeDefCreationParams_optional,
&_swigt__p_TypeDefCreationParams_traits,
&_swigt__p_TypeDefCreationParams_type,
&_swigt__p_TypeDefinition_optional,
&_swigt__p_TypeDefinition_traits,
&_swigt__p_TypeDefinition_type,
&_swigt__p_UnitType_String_optional,
&_swigt__p_UnitType_String_traits,
&_swigt__p_UnitType_String_type,
&_swigt__p_XDirectionX_optional,
&_swigt__p_XDirectionX_traits,
&_swigt__p_XDirectionX_type,
&_swigt__p_XDirectionY_optional,
&_swigt__p_XDirectionY_traits,
&_swigt__p_XDirectionY_type,
&_swigt__p_XDirectionZ_optional,
&_swigt__p_XDirectionZ_traits,
&_swigt__p_XDirectionZ_type,
&_swigt__p__3dHeight_optional,
&_swigt__p__3dHeight_traits,
&_swigt__p__3dHeight_type,
&_swigt__p__3dLength_optional,
&_swigt__p__3dLength_traits,
&_swigt__p__3dLength_type,
&_swigt__p__3dWidth_optional,
&_swigt__p__3dWidth_traits,
&_swigt__p__3dWidth_type,
&_swigt__p_allocator_type,
&_swigt__p_base_const_iterator,
&_swigt__p_base_iterator,
&_swigt__p_base_sequence,
&_swigt__p_base_type,
&_swigt__p_bool,
&_swigt__p_bool_convertible,
&_swigt__p_char,
&_swigt__p_const_iterator,
&_swigt__p_const_reverse_iterator,
&_swigt__p_difference_type,
&_swigt__p_dom_content_optional,
&_swigt__p_double,
&_swigt__p_float,
&_swigt__p_int,
&_swigt__p_iterator,
&_swigt__p_iterator_adapterT_std__vectorT_xsd__cxx__tree__sequence_common__ptr_std__allocatorT_xsd__cxx__tree__sequence_common__ptr_t_t__const_iterator_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_const_t,
&_swigt__p_iterator_adapterT_std__vectorT_xsd__cxx__tree__sequence_common__ptr_std__allocatorT_xsd__cxx__tree__sequence_common__ptr_t_t__const_reverse_iterator_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_const_t,
&_swigt__p_iterator_adapterT_std__vectorT_xsd__cxx__tree__sequence_common__ptr_std__allocatorT_xsd__cxx__tree__sequence_common__ptr_t_t__iterator___schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_t,
&_swigt__p_iterator_adapterT_std__vectorT_xsd__cxx__tree__sequence_common__ptr_std__allocatorT_xsd__cxx__tree__sequence_common__ptr_t_t__reverse_iterator___schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_t,
&_swigt__p_long_long,
&_swigt__p_ptr,
&_swigt__p_reverse_iterator,
&_swigt__p_schema__simxml__MepModel__SimFlowEnergyConverter,
&_swigt__p_schema__simxml__Model__SimModel,
&_swigt__p_schema__simxml__ResourcesGeneral__IntendedBldgElemTypes,
&_swigt__p_schema__simxml__ResourcesGeneral__SimArrayParams,
&_swigt__p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet,
&_swigt__p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_Default,
&_swigt__p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_Default_Default,
&_swigt__p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet,
&_swigt__p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Ceiling,
&_swigt__p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof,
&_swigt__p_schema__simxml__ResourcesGeneral__SimNode,
&_swigt__p_schema__simxml__ResourcesGeneral__SimPort,
&_swigt__p_schema__simxml__ResourcesGeneral__SimUnitType,
&_swigt__p_schema__simxml__ResourcesGeometry__SimProfileDefinition,
&_swigt__p_schema__simxml__SimModelCore__SelectedPropertyGroups,
&_swigt__p_schema__simxml__SimModelCore__SimActorDefinition,
&_swigt__p_schema__simxml__SimModelCore__SimAppDefault,
&_swigt__p_schema__simxml__SimModelCore__SimBldgModelParams,
&_swigt__p_schema__simxml__SimModelCore__SimBuildingElement,
&_swigt__p_schema__simxml__SimModelCore__SimDistributionControlElement,
&_swigt__p_schema__simxml__SimModelCore__SimDistributionElement,
&_swigt__p_schema__simxml__SimModelCore__SimDistributionFlowElement,
&_swigt__p_schema__simxml__SimModelCore__SimElement,
&_swigt__p_schema__simxml__SimModelCore__SimFeatureElement,
&_swigt__p_schema__simxml__SimModelCore__SimGeometricRepresentationItem,
&_swigt__p_schema__simxml__SimModelCore__SimGroup,
&_swigt__p_schema__simxml__SimModelCore__SimObject,
&_swigt__p_schema__simxml__SimModelCore__SimObjectDefinition,
&_swigt__p_schema__simxml__SimModelCore__SimObjectPlacement,
&_swigt__p_schema__simxml__SimModelCore__SimObjectTypeDefinition,
&_swigt__p_schema__simxml__SimModelCore__SimPropertySetDefinition,
&_swigt__p_schema__simxml__SimModelCore__SimRepresentation,
&_swigt__p_schema__simxml__SimModelCore__SimRepresentationItem,
&_swigt__p_schema__simxml__SimModelCore__SimResourceObject,
&_swigt__p_schema__simxml__SimModelCore__SimRoot,
&_swigt__p_schema__simxml__SimModelCore__SimSpatialStructureElement,
&_swigt__p_schema__simxml__SimModelCore__SimTemplate,
&_swigt__p_schema__simxml__SimModelCore__SimTopologicalRepresentationItem,
&_swigt__p_schema__simxml__SimModelCore__doubleList,
&_swigt__p_schema__simxml__SimModelCore__integerList,
&_swigt__p_schema__simxml__SimModelCore__logical,
&_swigt__p_self_,
&_swigt__p_short,
&_swigt__p_signed_char,
&_swigt__p_size_type,
&_swigt__p_std__auto_ptrT_T_t,
&_swigt__p_std__auto_ptrT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_t,
&_swigt__p_std__auto_ptrT_xml_schema__idref_t,
&_swigt__p_std__auto_ptrT_xml_schema__idrefs_t,
&_swigt__p_std__auto_ptrT_xml_schema__string_t,
&_swigt__p_std__vectorT_xsd__cxx__tree__sequence_common__ptr_std__allocatorT_xsd__cxx__tree__sequence_common__ptr_t_t__size_type,
&_swigt__p_unsigned_char,
&_swigt__p_unsigned_int,
&_swigt__p_unsigned_long_long,
&_swigt__p_unsigned_short,
&_swigt__p_value_type,
&_swigt__p_xercesc__DOMElement,
&_swigt__p_xsd__cxx__tree___type,
&_swigt__p_xsd__cxx__tree__base64_binaryT_char_xsd__cxx__tree__simple_type_t,
&_swigt__p_xsd__cxx__tree__boundsT_char_t,
&_swigt__p_xsd__cxx__tree__bufferT_char_t,
&_swigt__p_xsd__cxx__tree__content_order,
&_swigt__p_xsd__cxx__tree__dateT_char_xsd__cxx__tree__simple_typeT_char_xsd__cxx__tree___type_t_t,
&_swigt__p_xsd__cxx__tree__date_timeT_char_xsd__cxx__tree__simple_typeT_char_xsd__cxx__tree___type_t_t,
&_swigt__p_xsd__cxx__tree__diagnosticsT_char_t,
&_swigt__p_xsd__cxx__tree__duplicate_idT_char_t,
&_swigt__p_xsd__cxx__tree__durationT_char_xsd__cxx__tree__simple_typeT_char_xsd__cxx__tree___type_t_t,
&_swigt__p_xsd__cxx__tree__entitiesT_char_xsd__cxx__tree__simple_type_xsd__cxx__tree__entity_t,
&_swigt__p_xsd__cxx__tree__entityT_char_xsd__cxx__tree__ncname_t,
&_swigt__p_xsd__cxx__tree__errorT_char_t,
&_swigt__p_xsd__cxx__tree__exceptionT_char_t,
&_swigt__p_xsd__cxx__tree__expected_attributeT_char_t,
&_swigt__p_xsd__cxx__tree__expected_elementT_char_t,
&_swigt__p_xsd__cxx__tree__expected_text_contentT_char_t,
&_swigt__p_xsd__cxx__tree__flags,
&_swigt__p_xsd__cxx__tree__gdayT_char_xsd__cxx__tree__simple_typeT_char_xsd__cxx__tree___type_t_t,
&_swigt__p_xsd__cxx__tree__gmonthT_char_xsd__cxx__tree__simple_typeT_char_xsd__cxx__tree___type_t_t,
&_swigt__p_xsd__cxx__tree__gmonth_dayT_char_xsd__cxx__tree__simple_typeT_char_xsd__cxx__tree___type_t_t,
&_swigt__p_xsd__cxx__tree__gyearT_char_xsd__cxx__tree__simple_typeT_char_xsd__cxx__tree___type_t_t,
&_swigt__p_xsd__cxx__tree__gyear_monthT_char_xsd__cxx__tree__simple_typeT_char_xsd__cxx__tree___type_t_t,
&_swigt__p_xsd__cxx__tree__hex_binaryT_char_xsd__cxx__tree__simple_type_t,
&_swigt__p_xsd__cxx__tree__idT_char_xsd__cxx__tree__ncname_t,
&_swigt__p_xsd__cxx__tree__idrefT_char_xsd__cxx__tree__ncname_xsd__cxx__tree___type_t,
&_swigt__p_xsd__cxx__tree__idrefsT_char_xsd__cxx__tree__simple_type_xsd__cxx__tree__idref_t,
&_swigt__p_xsd__cxx__tree__languageT_char_xsd__cxx__tree__token_t,
&_swigt__p_xsd__cxx__tree__nameT_char_xsd__cxx__tree__token_t,
&_swigt__p_xsd__cxx__tree__ncnameT_char_xsd__cxx__tree__name_t,
&_swigt__p_xsd__cxx__tree__nmtokenT_char_xsd__cxx__tree__token_t,
&_swigt__p_xsd__cxx__tree__nmtokensT_char_xsd__cxx__tree__simple_type_xsd__cxx__tree__nmtoken_t,
&_swigt__p_xsd__cxx__tree__no_prefix_mappingT_char_t,
&_swigt__p_xsd__cxx__tree__no_type_infoT_char_t,
&_swigt__p_xsd__cxx__tree__normalized_stringT_char_xsd__cxx__tree__string_t,
&_swigt__p_xsd__cxx__tree__not_derivedT_char_t,
&_swigt__p_xsd__cxx__tree__optionalT_double_true_t,
&_swigt__p_xsd__cxx__tree__optionalT_int_true_t,
&_swigt__p_xsd__cxx__tree__optionalT_xsd__cxx__tree__idrefT_char_xsd__cxx__tree__ncname_xsd__cxx__tree___type_t_false_t,
&_swigt__p_xsd__cxx__tree__optionalT_xsd__cxx__tree__idrefsT_char_xsd__cxx__tree__simple_type_xsd__cxx__tree__idref_t_xsd__cxx__tree__fundamental_pT_xsd__cxx__tree__idrefsT_char_xsd__cxx__tree__simple_type_xsd__cxx__tree__idref_t_t__r_t,
&_swigt__p_xsd__cxx__tree__optionalT_xsd__cxx__tree__stringT_char_xsd__cxx__tree__simple_type_t_false_t,
&_swigt__p_xsd__cxx__tree__parsingT_char_t,
&_swigt__p_xsd__cxx__tree__propertiesT_char_t,
&_swigt__p_xsd__cxx__tree__qnameT_char_xsd__cxx__tree__simple_type_xsd__cxx__tree__uri_xsd__cxx__tree__ncname_t,
&_swigt__p_xsd__cxx__tree__sequenceT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_Default_Default_false_t,
&_swigt__p_xsd__cxx__tree__sequenceT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Ceiling_false_t,
&_swigt__p_xsd__cxx__tree__sequenceT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_false_t,
&_swigt__p_xsd__cxx__tree__sequenceT_xsd__cxx__tree__stringT_char_xsd__cxx__tree__simple_typeT_char_xsd__cxx__tree__type_t_t_false_t,
&_swigt__p_xsd__cxx__tree__sequence_common,
&_swigt__p_xsd__cxx__tree__severity,
&_swigt__p_xsd__cxx__tree__simple_typeT_char_xsd__cxx__tree___type_t,
&_swigt__p_xsd__cxx__tree__stringT_char_xsd__cxx__tree__simple_typeT_char_xsd__cxx__tree__type_t_t,
&_swigt__p_xsd__cxx__tree__stringT_char_xsd__cxx__tree__simple_type_t,
&_swigt__p_xsd__cxx__tree__timeT_char_xsd__cxx__tree__simple_typeT_char_xsd__cxx__tree___type_t_t,
&_swigt__p_xsd__cxx__tree__time_zone,
&_swigt__p_xsd__cxx__tree__tokenT_char_xsd__cxx__tree__normalized_string_t,
&_swigt__p_xsd__cxx__tree__unexpected_elementT_char_t,
&_swigt__p_xsd__cxx__tree__unexpected_enumeratorT_char_t,
&_swigt__p_xsd__cxx__tree__uriT_char_xsd__cxx__tree__simple_type_t,
&_swigt__p_xsd__cxx__tree__user_data_keys_templateT_0_t,
&_swigt__p_xsd__cxx__xml__error_handlerT_char_t,
};
static swig_cast_info _swigc__p_ApplicableOccurrence_optional[] = { {&_swigt__p_ApplicableOccurrence_optional, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_ApplicableOccurrence_traits[] = { {&_swigt__p_ApplicableOccurrence_traits, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_ApplicableOccurrence_type[] = { {&_swigt__p_ApplicableOccurrence_type, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_AssignedToFlowElement_optional[] = { {&_swigt__p_AssignedToFlowElement_optional, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_AssignedToFlowElement_traits[] = { {&_swigt__p_AssignedToFlowElement_traits, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_AssignedToFlowElement_type[] = { {&_swigt__p_AssignedToFlowElement_type, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_AssignedToGroups_optional[] = { {&_swigt__p_AssignedToGroups_optional, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_AssignedToGroups_traits[] = { {&_swigt__p_AssignedToGroups_traits, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_AssignedToGroups_type[] = { {&_swigt__p_AssignedToGroups_type, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_ChangeFromTemplate_optional[] = { {&_swigt__p_ChangeFromTemplate_optional, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_ChangeFromTemplate_traits[] = { {&_swigt__p_ChangeFromTemplate_traits, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_ChangeFromTemplate_type[] = { {&_swigt__p_ChangeFromTemplate_type, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_CompositeThermalTrans_optional[] = { {&_swigt__p_CompositeThermalTrans_optional, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_CompositeThermalTrans_traits[] = { {&_swigt__p_CompositeThermalTrans_traits, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_CompositeThermalTrans_type[] = { {&_swigt__p_CompositeThermalTrans_type, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_CompositionType_optional[] = { {&_swigt__p_CompositionType_optional, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_CompositionType_traits[] = { {&_swigt__p_CompositionType_traits, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_CompositionType_type[] = { {&_swigt__p_CompositionType_type, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_ContainingBuildings_optional[] = { {&_swigt__p_ContainingBuildings_optional, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_ContainingBuildings_traits[] = { {&_swigt__p_ContainingBuildings_traits, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_ContainingBuildings_type[] = { {&_swigt__p_ContainingBuildings_type, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_ContainingSpatialStructure_optional[] = { {&_swigt__p_ContainingSpatialStructure_optional, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_ContainingSpatialStructure_traits[] = { {&_swigt__p_ContainingSpatialStructure_traits, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_ContainingSpatialStructure_type[] = { {&_swigt__p_ContainingSpatialStructure_type, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_ControlElementID_optional[] = { {&_swigt__p_ControlElementID_optional, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_ControlElementID_traits[] = { {&_swigt__p_ControlElementID_traits, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_ControlElementID_type[] = { {&_swigt__p_ControlElementID_type, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_ControlledBy_optional[] = { {&_swigt__p_ControlledBy_optional, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_ControlledBy_traits[] = { {&_swigt__p_ControlledBy_traits, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_ControlledBy_type[] = { {&_swigt__p_ControlledBy_type, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_DecimalPrecision_optional[] = { {&_swigt__p_DecimalPrecision_optional, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_DecimalPrecision_traits[] = { {&_swigt__p_DecimalPrecision_traits, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_DecimalPrecision_type[] = { {&_swigt__p_DecimalPrecision_type, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Decomposes_optional[] = { {&_swigt__p_Decomposes_optional, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Decomposes_traits[] = { {&_swigt__p_Decomposes_traits, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Decomposes_type[] = { {&_swigt__p_Decomposes_type, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Description_optional[] = { {&_swigt__p_Description_optional, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Description_traits[] = { {&_swigt__p_Description_traits, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Description_type[] = { {&_swigt__p_Description_type, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_DockedToPort_optional[] = { {&_swigt__p_DockedToPort_optional, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_DockedToPort_traits[] = { {&_swigt__p_DockedToPort_traits, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_DockedToPort_type[] = { {&_swigt__p_DockedToPort_type, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_GeometricRepresentations_optional[] = { {&_swigt__p_GeometricRepresentations_optional, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_GeometricRepresentations_traits[] = { {&_swigt__p_GeometricRepresentations_traits, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_GeometricRepresentations_type[] = { {&_swigt__p_GeometricRepresentations_type, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_HasPropertySets_optional[] = { {&_swigt__p_HasPropertySets_optional, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_HasPropertySets_traits[] = { {&_swigt__p_HasPropertySets_traits, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_HasPropertySets_type[] = { {&_swigt__p_HasPropertySets_type, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_HasTemplateChanged_optional[] = { {&_swigt__p_HasTemplateChanged_optional, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_HasTemplateChanged_traits[] = { {&_swigt__p_HasTemplateChanged_traits, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_HasTemplateChanged_type[] = { {&_swigt__p_HasTemplateChanged_type, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_HostElement_optional[] = { {&_swigt__p_HostElement_optional, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_HostElement_traits[] = { {&_swigt__p_HostElement_traits, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_HostElement_type[] = { {&_swigt__p_HostElement_type, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_IfcGlobalID_optional[] = { {&_swigt__p_IfcGlobalID_optional, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_IfcGlobalID_traits[] = { {&_swigt__p_IfcGlobalID_traits, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_IfcGlobalID_type[] = { {&_swigt__p_IfcGlobalID_type, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_IfcName_optional[] = { {&_swigt__p_IfcName_optional, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_IfcName_traits[] = { {&_swigt__p_IfcName_traits, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_IfcName_type[] = { {&_swigt__p_IfcName_type, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_IntendedBldgElemTypes_optional[] = { {&_swigt__p_IntendedBldgElemTypes_optional, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_IntendedBldgElemTypes_traits[] = { {&_swigt__p_IntendedBldgElemTypes_traits, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_IntendedBldgElemTypes_type[] = { {&_swigt__p_IntendedBldgElemTypes_type, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_IsAutoGenerated_optional[] = { {&_swigt__p_IsAutoGenerated_optional, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_IsAutoGenerated_traits[] = { {&_swigt__p_IsAutoGenerated_traits, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_IsAutoGenerated_type[] = { {&_swigt__p_IsAutoGenerated_type, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_IsTemplateObject_optional[] = { {&_swigt__p_IsTemplateObject_optional, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_IsTemplateObject_traits[] = { {&_swigt__p_IsTemplateObject_traits, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_IsTemplateObject_type[] = { {&_swigt__p_IsTemplateObject_type, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_LayerSetName_optional[] = { {&_swigt__p_LayerSetName_optional, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_LayerSetName_traits[] = { {&_swigt__p_LayerSetName_traits, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_LayerSetName_type[] = { {&_swigt__p_LayerSetName_type, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_LocalPlacementCoordinates_optional[] = { {&_swigt__p_LocalPlacementCoordinates_optional, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_LocalPlacementCoordinates_traits[] = { {&_swigt__p_LocalPlacementCoordinates_traits, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_LocalPlacementCoordinates_type[] = { {&_swigt__p_LocalPlacementCoordinates_type, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_LocalPlacementRotation_optional[] = { {&_swigt__p_LocalPlacementRotation_optional, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_LocalPlacementRotation_traits[] = { {&_swigt__p_LocalPlacementRotation_traits, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_LocalPlacementRotation_type[] = { {&_swigt__p_LocalPlacementRotation_type, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_LocalPlacementX_optional[] = { {&_swigt__p_LocalPlacementX_optional, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_LocalPlacementX_traits[] = { {&_swigt__p_LocalPlacementX_traits, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_LocalPlacementX_type[] = { {&_swigt__p_LocalPlacementX_type, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_LocalPlacementY_optional[] = { {&_swigt__p_LocalPlacementY_optional, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_LocalPlacementY_traits[] = { {&_swigt__p_LocalPlacementY_traits, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_LocalPlacementY_type[] = { {&_swigt__p_LocalPlacementY_type, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_LocalPlacementZ_optional[] = { {&_swigt__p_LocalPlacementZ_optional, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_LocalPlacementZ_traits[] = { {&_swigt__p_LocalPlacementZ_traits, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_LocalPlacementZ_type[] = { {&_swigt__p_LocalPlacementZ_type, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_LongName_optional[] = { {&_swigt__p_LongName_optional, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_LongName_traits[] = { {&_swigt__p_LongName_traits, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_LongName_type[] = { {&_swigt__p_LongName_type, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_MaterialLayers_optional[] = { {&_swigt__p_MaterialLayers_optional, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_MaterialLayers_traits[] = { {&_swigt__p_MaterialLayers_traits, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_MaterialLayers_type[] = { {&_swigt__p_MaterialLayers_type, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_MemberUsedForDiagrams_optional[] = { {&_swigt__p_MemberUsedForDiagrams_optional, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_MemberUsedForDiagrams_traits[] = { {&_swigt__p_MemberUsedForDiagrams_traits, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_MemberUsedForDiagrams_type[] = { {&_swigt__p_MemberUsedForDiagrams_type, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Name_optional[] = { {&_swigt__p_Name_optional, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Name_traits[] = { {&_swigt__p_Name_traits, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Name_type[] = { {&_swigt__p_Name_type, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_NevronSchematicLayout_optional[] = { {&_swigt__p_NevronSchematicLayout_optional, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_NevronSchematicLayout_traits[] = { {&_swigt__p_NevronSchematicLayout_traits, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_NevronSchematicLayout_type[] = { {&_swigt__p_NevronSchematicLayout_type, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_ObjectCreationParams_optional[] = { {&_swigt__p_ObjectCreationParams_optional, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_ObjectCreationParams_traits[] = { {&_swigt__p_ObjectCreationParams_traits, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_ObjectCreationParams_type[] = { {&_swigt__p_ObjectCreationParams_type, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_ObjectIndex_optional[] = { {&_swigt__p_ObjectIndex_optional, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_ObjectIndex_traits[] = { {&_swigt__p_ObjectIndex_traits, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_ObjectIndex_type[] = { {&_swigt__p_ObjectIndex_type, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_ObjectName_optional[] = { {&_swigt__p_ObjectName_optional, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_ObjectName_traits[] = { {&_swigt__p_ObjectName_traits, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_ObjectName_type[] = { {&_swigt__p_ObjectName_type, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_ObjectOwnerHistory_optional[] = { {&_swigt__p_ObjectOwnerHistory_optional, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_ObjectOwnerHistory_traits[] = { {&_swigt__p_ObjectOwnerHistory_traits, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_ObjectOwnerHistory_type[] = { {&_swigt__p_ObjectOwnerHistory_type, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_ObjectType_optional[] = { {&_swigt__p_ObjectType_optional, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_ObjectType_traits[] = { {&_swigt__p_ObjectType_traits, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_ObjectType_type[] = { {&_swigt__p_ObjectType_type, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_ParentGroups_optional[] = { {&_swigt__p_ParentGroups_optional, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_ParentGroups_traits[] = { {&_swigt__p_ParentGroups_traits, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_ParentGroups_type[] = { {&_swigt__p_ParentGroups_type, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_PlacementRelToContainingTypeDef_optional[] = { {&_swigt__p_PlacementRelToContainingTypeDef_optional, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_PlacementRelToContainingTypeDef_traits[] = { {&_swigt__p_PlacementRelToContainingTypeDef_traits, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_PlacementRelToContainingTypeDef_type[] = { {&_swigt__p_PlacementRelToContainingTypeDef_type, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Placement_optional[] = { {&_swigt__p_Placement_optional, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Placement_traits[] = { {&_swigt__p_Placement_traits, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Placement_type[] = { {&_swigt__p_Placement_type, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_ProfileName_optional[] = { {&_swigt__p_ProfileName_optional, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_ProfileName_traits[] = { {&_swigt__p_ProfileName_traits, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_ProfileName_type[] = { {&_swigt__p_ProfileName_type, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_ProfileType_optional[] = { {&_swigt__p_ProfileType_optional, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_ProfileType_traits[] = { {&_swigt__p_ProfileType_traits, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_ProfileType_type[] = { {&_swigt__p_ProfileType_type, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_RefId_traits[] = { {&_swigt__p_RefId_traits, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_RefId_type[] = { {&_swigt__p_RefId_type, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_RepresentationContext_optional[] = { {&_swigt__p_RepresentationContext_optional, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_RepresentationContext_traits[] = { {&_swigt__p_RepresentationContext_traits, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_RepresentationContext_type[] = { {&_swigt__p_RepresentationContext_type, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_RepresentationIdentifier_optional[] = { {&_swigt__p_RepresentationIdentifier_optional, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_RepresentationIdentifier_traits[] = { {&_swigt__p_RepresentationIdentifier_traits, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_RepresentationIdentifier_type[] = { {&_swigt__p_RepresentationIdentifier_type, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_RepresentationItems_optional[] = { {&_swigt__p_RepresentationItems_optional, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_RepresentationItems_traits[] = { {&_swigt__p_RepresentationItems_traits, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_RepresentationItems_type[] = { {&_swigt__p_RepresentationItems_type, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_RepresentationType_optional[] = { {&_swigt__p_RepresentationType_optional, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_RepresentationType_traits[] = { {&_swigt__p_RepresentationType_traits, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_RepresentationType_type[] = { {&_swigt__p_RepresentationType_type, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SelectedPropertyGroups_optional[] = { {&_swigt__p_SelectedPropertyGroups_optional, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SelectedPropertyGroups_traits[] = { {&_swigt__p_SelectedPropertyGroups_traits, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SelectedPropertyGroups_type[] = { {&_swigt__p_SelectedPropertyGroups_type, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SimMatLayerSet_Layer_2_10_optional[] = { {&_swigt__p_SimMatLayerSet_Layer_2_10_optional, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SimMatLayerSet_Layer_2_10_traits[] = { {&_swigt__p_SimMatLayerSet_Layer_2_10_traits, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SimMatLayerSet_Layer_2_10_type[] = { {&_swigt__p_SimMatLayerSet_Layer_2_10_type, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SimMatLayerSet_Name_optional[] = { {&_swigt__p_SimMatLayerSet_Name_optional, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SimMatLayerSet_Name_traits[] = { {&_swigt__p_SimMatLayerSet_Name_traits, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SimMatLayerSet_Name_type[] = { {&_swigt__p_SimMatLayerSet_Name_type, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SimMatLayerSet_OutsideLayer_optional[] = { {&_swigt__p_SimMatLayerSet_OutsideLayer_optional, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SimMatLayerSet_OutsideLayer_traits[] = { {&_swigt__p_SimMatLayerSet_OutsideLayer_traits, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SimMatLayerSet_OutsideLayer_type[] = { {&_swigt__p_SimMatLayerSet_OutsideLayer_type, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SimModelName_optional[] = { {&_swigt__p_SimModelName_optional, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SimModelName_traits[] = { {&_swigt__p_SimModelName_traits, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SimModelName_type[] = { {&_swigt__p_SimModelName_type, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SimModelSubtype_optional[] = { {&_swigt__p_SimModelSubtype_optional, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SimModelSubtype_traits[] = { {&_swigt__p_SimModelSubtype_traits, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SimModelSubtype_type[] = { {&_swigt__p_SimModelSubtype_type, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SimModelType_optional[] = { {&_swigt__p_SimModelType_optional, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SimModelType_traits[] = { {&_swigt__p_SimModelType_traits, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SimModelType_type[] = { {&_swigt__p_SimModelType_type, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SimUniqueID_optional[] = { {&_swigt__p_SimUniqueID_optional, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SimUniqueID_traits[] = { {&_swigt__p_SimUniqueID_traits, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SimUniqueID_type[] = { {&_swigt__p_SimUniqueID_type, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SourceLibraryEntryID_optional[] = { {&_swigt__p_SourceLibraryEntryID_optional, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SourceLibraryEntryID_traits[] = { {&_swigt__p_SourceLibraryEntryID_traits, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SourceLibraryEntryID_type[] = { {&_swigt__p_SourceLibraryEntryID_type, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SourceLibraryEntryRef_optional[] = { {&_swigt__p_SourceLibraryEntryRef_optional, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SourceLibraryEntryRef_traits[] = { {&_swigt__p_SourceLibraryEntryRef_traits, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SourceLibraryEntryRef_type[] = { {&_swigt__p_SourceLibraryEntryRef_type, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SourceModelObjectType_optional[] = { {&_swigt__p_SourceModelObjectType_optional, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SourceModelObjectType_traits[] = { {&_swigt__p_SourceModelObjectType_traits, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SourceModelObjectType_type[] = { {&_swigt__p_SourceModelObjectType_type, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SourceModelSchema_optional[] = { {&_swigt__p_SourceModelSchema_optional, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SourceModelSchema_traits[] = { {&_swigt__p_SourceModelSchema_traits, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SourceModelSchema_type[] = { {&_swigt__p_SourceModelSchema_type, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SurfProp_HeatTransAlg_Construct_Algorithm_optional[] = { {&_swigt__p_SurfProp_HeatTransAlg_Construct_Algorithm_optional, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SurfProp_HeatTransAlg_Construct_Algorithm_traits[] = { {&_swigt__p_SurfProp_HeatTransAlg_Construct_Algorithm_traits, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SurfProp_HeatTransAlg_Construct_Algorithm_type[] = { {&_swigt__p_SurfProp_HeatTransAlg_Construct_Algorithm_type, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SurfProp_HeatTransAlg_Construct_ConstructionName_optional[] = { {&_swigt__p_SurfProp_HeatTransAlg_Construct_ConstructionName_optional, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SurfProp_HeatTransAlg_Construct_ConstructionName_traits[] = { {&_swigt__p_SurfProp_HeatTransAlg_Construct_ConstructionName_traits, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SurfProp_HeatTransAlg_Construct_ConstructionName_type[] = { {&_swigt__p_SurfProp_HeatTransAlg_Construct_ConstructionName_type, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SurfProp_HeatTransAlg_Construct_Name_optional[] = { {&_swigt__p_SurfProp_HeatTransAlg_Construct_Name_optional, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SurfProp_HeatTransAlg_Construct_Name_traits[] = { {&_swigt__p_SurfProp_HeatTransAlg_Construct_Name_traits, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SurfProp_HeatTransAlg_Construct_Name_type[] = { {&_swigt__p_SurfProp_HeatTransAlg_Construct_Name_type, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_T24CRRCAgedEmittance_optional[] = { {&_swigt__p_T24CRRCAgedEmittance_optional, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_T24CRRCAgedEmittance_traits[] = { {&_swigt__p_T24CRRCAgedEmittance_traits, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_T24CRRCAgedEmittance_type[] = { {&_swigt__p_T24CRRCAgedEmittance_type, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_T24CRRCAgedReflectance_optional[] = { {&_swigt__p_T24CRRCAgedReflectance_optional, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_T24CRRCAgedReflectance_traits[] = { {&_swigt__p_T24CRRCAgedReflectance_traits, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_T24CRRCAgedReflectance_type[] = { {&_swigt__p_T24CRRCAgedReflectance_type, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_T24CRRCAgedSRI_optional[] = { {&_swigt__p_T24CRRCAgedSRI_optional, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_T24CRRCAgedSRI_traits[] = { {&_swigt__p_T24CRRCAgedSRI_traits, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_T24CRRCAgedSRI_type[] = { {&_swigt__p_T24CRRCAgedSRI_type, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_T24CRRCInitialEmitance_optional[] = { {&_swigt__p_T24CRRCInitialEmitance_optional, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_T24CRRCInitialEmitance_traits[] = { {&_swigt__p_T24CRRCInitialEmitance_traits, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_T24CRRCInitialEmitance_type[] = { {&_swigt__p_T24CRRCInitialEmitance_type, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_T24CRRCInitialReflectance_optional[] = { {&_swigt__p_T24CRRCInitialReflectance_optional, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_T24CRRCInitialReflectance_traits[] = { {&_swigt__p_T24CRRCInitialReflectance_traits, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_T24CRRCInitialReflectance_type[] = { {&_swigt__p_T24CRRCInitialReflectance_type, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_T24CRRCInitialSRI_optional[] = { {&_swigt__p_T24CRRCInitialSRI_optional, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_T24CRRCInitialSRI_traits[] = { {&_swigt__p_T24CRRCInitialSRI_traits, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_T24CRRCInitialSRI_type[] = { {&_swigt__p_T24CRRCInitialSRI_type, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_T24CRRCProductID_optional[] = { {&_swigt__p_T24CRRCProductID_optional, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_T24CRRCProductID_traits[] = { {&_swigt__p_T24CRRCProductID_traits, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_T24CRRCProductID_type[] = { {&_swigt__p_T24CRRCProductID_type, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_T24ConsAssmNotes_optional[] = { {&_swigt__p_T24ConsAssmNotes_optional, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_T24ConsAssmNotes_traits[] = { {&_swigt__p_T24ConsAssmNotes_traits, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_T24ConsAssmNotes_type[] = { {&_swigt__p_T24ConsAssmNotes_type, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_T24ConstructInsulOrient_optional[] = { {&_swigt__p_T24ConstructInsulOrient_optional, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_T24ConstructInsulOrient_traits[] = { {&_swigt__p_T24ConstructInsulOrient_traits, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_T24ConstructInsulOrient_type[] = { {&_swigt__p_T24ConstructInsulOrient_type, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_T24FieldAppliedCoating_optional[] = { {&_swigt__p_T24FieldAppliedCoating_optional, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_T24FieldAppliedCoating_traits[] = { {&_swigt__p_T24FieldAppliedCoating_traits, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_T24FieldAppliedCoating_type[] = { {&_swigt__p_T24FieldAppliedCoating_type, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_T24RoofDensity_optional[] = { {&_swigt__p_T24RoofDensity_optional, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_T24RoofDensity_traits[] = { {&_swigt__p_T24RoofDensity_traits, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_T24RoofDensity_type[] = { {&_swigt__p_T24RoofDensity_type, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_T24SlabInsulThermResist_optional[] = { {&_swigt__p_T24SlabInsulThermResist_optional, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_T24SlabInsulThermResist_traits[] = { {&_swigt__p_T24SlabInsulThermResist_traits, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_T24SlabInsulThermResist_type[] = { {&_swigt__p_T24SlabInsulThermResist_type, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_T24SlabType_optional[] = { {&_swigt__p_T24SlabType_optional, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_T24SlabType_traits[] = { {&_swigt__p_T24SlabType_traits, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_T24SlabType_type[] = { {&_swigt__p_T24SlabType_type, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Tag_optional[] = { {&_swigt__p_Tag_optional, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Tag_traits[] = { {&_swigt__p_Tag_traits, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Tag_type[] = { {&_swigt__p_Tag_type, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_TemplatesForMembers_optional[] = { {&_swigt__p_TemplatesForMembers_optional, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_TemplatesForMembers_traits[] = { {&_swigt__p_TemplatesForMembers_traits, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_TemplatesForMembers_type[] = { {&_swigt__p_TemplatesForMembers_type, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_TypeDefCreationParams_optional[] = { {&_swigt__p_TypeDefCreationParams_optional, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_TypeDefCreationParams_traits[] = { {&_swigt__p_TypeDefCreationParams_traits, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_TypeDefCreationParams_type[] = { {&_swigt__p_TypeDefCreationParams_type, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_TypeDefinition_optional[] = { {&_swigt__p_TypeDefinition_optional, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_TypeDefinition_traits[] = { {&_swigt__p_TypeDefinition_traits, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_TypeDefinition_type[] = { {&_swigt__p_TypeDefinition_type, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_UnitType_String_optional[] = { {&_swigt__p_UnitType_String_optional, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_UnitType_String_traits[] = { {&_swigt__p_UnitType_String_traits, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_UnitType_String_type[] = { {&_swigt__p_UnitType_String_type, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_XDirectionX_optional[] = { {&_swigt__p_XDirectionX_optional, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_XDirectionX_traits[] = { {&_swigt__p_XDirectionX_traits, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_XDirectionX_type[] = { {&_swigt__p_XDirectionX_type, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_XDirectionY_optional[] = { {&_swigt__p_XDirectionY_optional, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_XDirectionY_traits[] = { {&_swigt__p_XDirectionY_traits, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_XDirectionY_type[] = { {&_swigt__p_XDirectionY_type, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_XDirectionZ_optional[] = { {&_swigt__p_XDirectionZ_optional, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_XDirectionZ_traits[] = { {&_swigt__p_XDirectionZ_traits, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_XDirectionZ_type[] = { {&_swigt__p_XDirectionZ_type, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p__3dHeight_optional[] = { {&_swigt__p__3dHeight_optional, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p__3dHeight_traits[] = { {&_swigt__p__3dHeight_traits, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p__3dHeight_type[] = { {&_swigt__p__3dHeight_type, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p__3dLength_optional[] = { {&_swigt__p__3dLength_optional, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p__3dLength_traits[] = { {&_swigt__p__3dLength_traits, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p__3dLength_type[] = { {&_swigt__p__3dLength_type, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p__3dWidth_optional[] = { {&_swigt__p__3dWidth_optional, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p__3dWidth_traits[] = { {&_swigt__p__3dWidth_traits, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p__3dWidth_type[] = { {&_swigt__p__3dWidth_type, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_allocator_type[] = { {&_swigt__p_allocator_type, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_base_const_iterator[] = { {&_swigt__p_base_const_iterator, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_base_iterator[] = { {&_swigt__p_base_iterator, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_base_sequence[] = { {&_swigt__p_base_sequence, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_base_type[] = { {&_swigt__p_base_type, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_bool[] = { {&_swigt__p_bool, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_bool_convertible[] = { {&_swigt__p_bool_convertible, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_const_iterator[] = { {&_swigt__p_const_iterator, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_const_reverse_iterator[] = { {&_swigt__p_const_reverse_iterator, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_difference_type[] = { {&_swigt__p_difference_type, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_dom_content_optional[] = { {&_swigt__p_dom_content_optional, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_float[] = { {&_swigt__p_float, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_iterator[] = { {&_swigt__p_iterator, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_iterator_adapterT_std__vectorT_xsd__cxx__tree__sequence_common__ptr_std__allocatorT_xsd__cxx__tree__sequence_common__ptr_t_t__const_iterator_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_const_t[] = { {&_swigt__p_iterator_adapterT_std__vectorT_xsd__cxx__tree__sequence_common__ptr_std__allocatorT_xsd__cxx__tree__sequence_common__ptr_t_t__const_iterator_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_const_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_iterator_adapterT_std__vectorT_xsd__cxx__tree__sequence_common__ptr_std__allocatorT_xsd__cxx__tree__sequence_common__ptr_t_t__const_reverse_iterator_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_const_t[] = { {&_swigt__p_iterator_adapterT_std__vectorT_xsd__cxx__tree__sequence_common__ptr_std__allocatorT_xsd__cxx__tree__sequence_common__ptr_t_t__const_reverse_iterator_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_const_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_iterator_adapterT_std__vectorT_xsd__cxx__tree__sequence_common__ptr_std__allocatorT_xsd__cxx__tree__sequence_common__ptr_t_t__iterator___schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_t[] = { {&_swigt__p_iterator_adapterT_std__vectorT_xsd__cxx__tree__sequence_common__ptr_std__allocatorT_xsd__cxx__tree__sequence_common__ptr_t_t__iterator___schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_iterator_adapterT_std__vectorT_xsd__cxx__tree__sequence_common__ptr_std__allocatorT_xsd__cxx__tree__sequence_common__ptr_t_t__reverse_iterator___schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_t[] = { {&_swigt__p_iterator_adapterT_std__vectorT_xsd__cxx__tree__sequence_common__ptr_std__allocatorT_xsd__cxx__tree__sequence_common__ptr_t_t__reverse_iterator___schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_long_long[] = { {&_swigt__p_long_long, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_ptr[] = { {&_swigt__p_ptr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_reverse_iterator[] = { {&_swigt__p_reverse_iterator, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_schema__simxml__Model__SimModel[] = { {&_swigt__p_schema__simxml__Model__SimModel, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_schema__simxml__ResourcesGeneral__IntendedBldgElemTypes[] = { {&_swigt__p_schema__simxml__ResourcesGeneral__IntendedBldgElemTypes, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_Default[] = {{&_swigt__p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_Default, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet[] = { {&_swigt__p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet, 0, 0, 0}, {&_swigt__p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_Default, _p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_DefaultTo_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet, 0, 0}, {&_swigt__p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_Default_Default, _p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_Default_DefaultTo_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet, 0, 0}, {&_swigt__p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet, _p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSetTo_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet, 0, 0}, {&_swigt__p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Ceiling, _p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_CeilingTo_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet, 0, 0}, {&_swigt__p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, _p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_RoofTo_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_Default_Default[] = { {&_swigt__p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_Default_Default, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet[] = { {&_swigt__p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet, 0, 0, 0}, {&_swigt__p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Ceiling, _p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_CeilingTo_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet, 0, 0}, {&_swigt__p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, _p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_RoofTo_p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Ceiling[] = { {&_swigt__p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Ceiling, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof[] = { {&_swigt__p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_schema__simxml__SimModelCore__SelectedPropertyGroups[] = { {&_swigt__p_schema__simxml__SimModelCore__SelectedPropertyGroups, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_schema__simxml__SimModelCore__SimTemplate[] = {{&_swigt__p_schema__simxml__SimModelCore__SimTemplate, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_schema__simxml__ResourcesGeneral__SimNode[] = {{&_swigt__p_schema__simxml__ResourcesGeneral__SimNode, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_schema__simxml__SimModelCore__SimAppDefault[] = {{&_swigt__p_schema__simxml__SimModelCore__SimAppDefault, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_schema__simxml__SimModelCore__SimActorDefinition[] = {{&_swigt__p_schema__simxml__SimModelCore__SimActorDefinition, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_schema__simxml__ResourcesGeometry__SimProfileDefinition[] = {{&_swigt__p_schema__simxml__ResourcesGeometry__SimProfileDefinition, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_schema__simxml__ResourcesGeneral__SimArrayParams[] = {{&_swigt__p_schema__simxml__ResourcesGeneral__SimArrayParams, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_schema__simxml__ResourcesGeneral__SimPort[] = {{&_swigt__p_schema__simxml__ResourcesGeneral__SimPort, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_schema__simxml__SimModelCore__SimPropertySetDefinition[] = {{&_swigt__p_schema__simxml__SimModelCore__SimPropertySetDefinition, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_schema__simxml__ResourcesGeneral__SimUnitType[] = {{&_swigt__p_schema__simxml__ResourcesGeneral__SimUnitType, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_schema__simxml__SimModelCore__SimObjectPlacement[] = {{&_swigt__p_schema__simxml__SimModelCore__SimObjectPlacement, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_schema__simxml__SimModelCore__SimTopologicalRepresentationItem[] = {{&_swigt__p_schema__simxml__SimModelCore__SimTopologicalRepresentationItem, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_schema__simxml__SimModelCore__SimFeatureElement[] = {{&_swigt__p_schema__simxml__SimModelCore__SimFeatureElement, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_schema__simxml__SimModelCore__SimGeometricRepresentationItem[] = {{&_swigt__p_schema__simxml__SimModelCore__SimGeometricRepresentationItem, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_schema__simxml__SimModelCore__SimBldgModelParams[] = {{&_swigt__p_schema__simxml__SimModelCore__SimBldgModelParams, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_schema__simxml__SimModelCore__SimRepresentationItem[] = {{&_swigt__p_schema__simxml__SimModelCore__SimRepresentationItem, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_schema__simxml__SimModelCore__SimRepresentation[] = {{&_swigt__p_schema__simxml__SimModelCore__SimRepresentation, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_schema__simxml__SimModelCore__SimResourceObject[] = { {&_swigt__p_schema__simxml__SimModelCore__SimTemplate, _p_schema__simxml__SimModelCore__SimTemplateTo_p_schema__simxml__SimModelCore__SimResourceObject, 0, 0}, {&_swigt__p_schema__simxml__ResourcesGeneral__SimNode, _p_schema__simxml__ResourcesGeneral__SimNodeTo_p_schema__simxml__SimModelCore__SimResourceObject, 0, 0}, {&_swigt__p_schema__simxml__SimModelCore__SimAppDefault, _p_schema__simxml__SimModelCore__SimAppDefaultTo_p_schema__simxml__SimModelCore__SimResourceObject, 0, 0}, {&_swigt__p_schema__simxml__SimModelCore__SimActorDefinition, _p_schema__simxml__SimModelCore__SimActorDefinitionTo_p_schema__simxml__SimModelCore__SimResourceObject, 0, 0}, {&_swigt__p_schema__simxml__ResourcesGeometry__SimProfileDefinition, _p_schema__simxml__ResourcesGeometry__SimProfileDefinitionTo_p_schema__simxml__SimModelCore__SimResourceObject, 0, 0}, {&_swigt__p_schema__simxml__ResourcesGeneral__SimArrayParams, _p_schema__simxml__ResourcesGeneral__SimArrayParamsTo_p_schema__simxml__SimModelCore__SimResourceObject, 0, 0}, {&_swigt__p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, _p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_RoofTo_p_schema__simxml__SimModelCore__SimResourceObject, 0, 0}, {&_swigt__p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Ceiling, _p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_CeilingTo_p_schema__simxml__SimModelCore__SimResourceObject, 0, 0}, {&_swigt__p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet, _p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSetTo_p_schema__simxml__SimModelCore__SimResourceObject, 0, 0}, {&_swigt__p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_Default_Default, _p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_Default_DefaultTo_p_schema__simxml__SimModelCore__SimResourceObject, 0, 0}, {&_swigt__p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet, _p_schema__simxml__ResourcesGeneral__SimMaterialLayerSetTo_p_schema__simxml__SimModelCore__SimResourceObject, 0, 0}, {&_swigt__p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_Default, _p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_DefaultTo_p_schema__simxml__SimModelCore__SimResourceObject, 0, 0}, {&_swigt__p_schema__simxml__ResourcesGeneral__SimPort, _p_schema__simxml__ResourcesGeneral__SimPortTo_p_schema__simxml__SimModelCore__SimResourceObject, 0, 0}, {&_swigt__p_schema__simxml__SimModelCore__SimPropertySetDefinition, _p_schema__simxml__SimModelCore__SimPropertySetDefinitionTo_p_schema__simxml__SimModelCore__SimResourceObject, 0, 0}, {&_swigt__p_schema__simxml__ResourcesGeneral__SimUnitType, _p_schema__simxml__ResourcesGeneral__SimUnitTypeTo_p_schema__simxml__SimModelCore__SimResourceObject, 0, 0}, {&_swigt__p_schema__simxml__SimModelCore__SimObjectPlacement, _p_schema__simxml__SimModelCore__SimObjectPlacementTo_p_schema__simxml__SimModelCore__SimResourceObject, 0, 0}, {&_swigt__p_schema__simxml__SimModelCore__SimResourceObject, 0, 0, 0}, {&_swigt__p_schema__simxml__SimModelCore__SimTopologicalRepresentationItem, _p_schema__simxml__SimModelCore__SimTopologicalRepresentationItemTo_p_schema__simxml__SimModelCore__SimResourceObject, 0, 0}, {&_swigt__p_schema__simxml__SimModelCore__SimFeatureElement, _p_schema__simxml__SimModelCore__SimFeatureElementTo_p_schema__simxml__SimModelCore__SimResourceObject, 0, 0}, {&_swigt__p_schema__simxml__SimModelCore__SimGeometricRepresentationItem, _p_schema__simxml__SimModelCore__SimGeometricRepresentationItemTo_p_schema__simxml__SimModelCore__SimResourceObject, 0, 0}, {&_swigt__p_schema__simxml__SimModelCore__SimBldgModelParams, _p_schema__simxml__SimModelCore__SimBldgModelParamsTo_p_schema__simxml__SimModelCore__SimResourceObject, 0, 0}, {&_swigt__p_schema__simxml__SimModelCore__SimRepresentationItem, _p_schema__simxml__SimModelCore__SimRepresentationItemTo_p_schema__simxml__SimModelCore__SimResourceObject, 0, 0}, {&_swigt__p_schema__simxml__SimModelCore__SimRepresentation, _p_schema__simxml__SimModelCore__SimRepresentationTo_p_schema__simxml__SimModelCore__SimResourceObject, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_schema__simxml__SimModelCore__SimBuildingElement[] = {{&_swigt__p_schema__simxml__SimModelCore__SimBuildingElement, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_schema__simxml__SimModelCore__SimDistributionFlowElement[] = {{&_swigt__p_schema__simxml__SimModelCore__SimDistributionFlowElement, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_schema__simxml__SimModelCore__SimObjectTypeDefinition[] = {{&_swigt__p_schema__simxml__SimModelCore__SimObjectTypeDefinition, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_schema__simxml__SimModelCore__SimDistributionElement[] = {{&_swigt__p_schema__simxml__SimModelCore__SimDistributionElement, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_schema__simxml__SimModelCore__SimObjectDefinition[] = {{&_swigt__p_schema__simxml__SimModelCore__SimObjectDefinition, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_schema__simxml__SimModelCore__SimGroup[] = {{&_swigt__p_schema__simxml__SimModelCore__SimGroup, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_schema__simxml__SimModelCore__SimSpatialStructureElement[] = {{&_swigt__p_schema__simxml__SimModelCore__SimSpatialStructureElement, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_schema__simxml__MepModel__SimFlowEnergyConverter[] = {{&_swigt__p_schema__simxml__MepModel__SimFlowEnergyConverter, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_schema__simxml__SimModelCore__SimObject[] = {{&_swigt__p_schema__simxml__SimModelCore__SimObject, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_schema__simxml__SimModelCore__SimDistributionControlElement[] = {{&_swigt__p_schema__simxml__SimModelCore__SimDistributionControlElement, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_schema__simxml__SimModelCore__SimElement[] = {{&_swigt__p_schema__simxml__SimModelCore__SimElement, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_schema__simxml__SimModelCore__SimRoot[] = { {&_swigt__p_schema__simxml__SimModelCore__SimBldgModelParams, _p_schema__simxml__SimModelCore__SimBldgModelParamsTo_p_schema__simxml__SimModelCore__SimRoot, 0, 0}, {&_swigt__p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet, _p_schema__simxml__ResourcesGeneral__SimMaterialLayerSetTo_p_schema__simxml__SimModelCore__SimRoot, 0, 0}, {&_swigt__p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_Default, _p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_DefaultTo_p_schema__simxml__SimModelCore__SimRoot, 0, 0}, {&_swigt__p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_Default_Default, _p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_Default_DefaultTo_p_schema__simxml__SimModelCore__SimRoot, 0, 0}, {&_swigt__p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet, _p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSetTo_p_schema__simxml__SimModelCore__SimRoot, 0, 0}, {&_swigt__p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Ceiling, _p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_CeilingTo_p_schema__simxml__SimModelCore__SimRoot, 0, 0}, {&_swigt__p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, _p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_RoofTo_p_schema__simxml__SimModelCore__SimRoot, 0, 0}, {&_swigt__p_schema__simxml__ResourcesGeneral__SimArrayParams, _p_schema__simxml__ResourcesGeneral__SimArrayParamsTo_p_schema__simxml__SimModelCore__SimRoot, 0, 0}, {&_swigt__p_schema__simxml__SimModelCore__SimTopologicalRepresentationItem, _p_schema__simxml__SimModelCore__SimTopologicalRepresentationItemTo_p_schema__simxml__SimModelCore__SimRoot, 0, 0}, {&_swigt__p_schema__simxml__SimModelCore__SimBuildingElement, _p_schema__simxml__SimModelCore__SimBuildingElementTo_p_schema__simxml__SimModelCore__SimRoot, 0, 0}, {&_swigt__p_schema__simxml__SimModelCore__SimRoot, 0, 0, 0}, {&_swigt__p_schema__simxml__ResourcesGeneral__SimUnitType, _p_schema__simxml__ResourcesGeneral__SimUnitTypeTo_p_schema__simxml__SimModelCore__SimRoot, 0, 0}, {&_swigt__p_schema__simxml__SimModelCore__SimDistributionFlowElement, _p_schema__simxml__SimModelCore__SimDistributionFlowElementTo_p_schema__simxml__SimModelCore__SimRoot, 0, 0}, {&_swigt__p_schema__simxml__SimModelCore__SimObjectTypeDefinition, _p_schema__simxml__SimModelCore__SimObjectTypeDefinitionTo_p_schema__simxml__SimModelCore__SimRoot, 0, 0}, {&_swigt__p_schema__simxml__SimModelCore__SimDistributionElement, _p_schema__simxml__SimModelCore__SimDistributionElementTo_p_schema__simxml__SimModelCore__SimRoot, 0, 0}, {&_swigt__p_schema__simxml__SimModelCore__SimObjectDefinition, _p_schema__simxml__SimModelCore__SimObjectDefinitionTo_p_schema__simxml__SimModelCore__SimRoot, 0, 0}, {&_swigt__p_schema__simxml__SimModelCore__SimGroup, _p_schema__simxml__SimModelCore__SimGroupTo_p_schema__simxml__SimModelCore__SimRoot, 0, 0}, {&_swigt__p_schema__simxml__SimModelCore__SimGeometricRepresentationItem, _p_schema__simxml__SimModelCore__SimGeometricRepresentationItemTo_p_schema__simxml__SimModelCore__SimRoot, 0, 0}, {&_swigt__p_schema__simxml__ResourcesGeneral__SimPort, _p_schema__simxml__ResourcesGeneral__SimPortTo_p_schema__simxml__SimModelCore__SimRoot, 0, 0}, {&_swigt__p_schema__simxml__SimModelCore__SimSpatialStructureElement, _p_schema__simxml__SimModelCore__SimSpatialStructureElementTo_p_schema__simxml__SimModelCore__SimRoot, 0, 0}, {&_swigt__p_schema__simxml__SimModelCore__SimRepresentation, _p_schema__simxml__SimModelCore__SimRepresentationTo_p_schema__simxml__SimModelCore__SimRoot, 0, 0}, {&_swigt__p_schema__simxml__SimModelCore__SimRepresentationItem, _p_schema__simxml__SimModelCore__SimRepresentationItemTo_p_schema__simxml__SimModelCore__SimRoot, 0, 0}, {&_swigt__p_schema__simxml__SimModelCore__SimTemplate, _p_schema__simxml__SimModelCore__SimTemplateTo_p_schema__simxml__SimModelCore__SimRoot, 0, 0}, {&_swigt__p_schema__simxml__MepModel__SimFlowEnergyConverter, _p_schema__simxml__MepModel__SimFlowEnergyConverterTo_p_schema__simxml__SimModelCore__SimRoot, 0, 0}, {&_swigt__p_schema__simxml__SimModelCore__SimObject, _p_schema__simxml__SimModelCore__SimObjectTo_p_schema__simxml__SimModelCore__SimRoot, 0, 0}, {&_swigt__p_schema__simxml__SimModelCore__SimResourceObject, _p_schema__simxml__SimModelCore__SimResourceObjectTo_p_schema__simxml__SimModelCore__SimRoot, 0, 0}, {&_swigt__p_schema__simxml__SimModelCore__SimDistributionControlElement, _p_schema__simxml__SimModelCore__SimDistributionControlElementTo_p_schema__simxml__SimModelCore__SimRoot, 0, 0}, {&_swigt__p_schema__simxml__SimModelCore__SimActorDefinition, _p_schema__simxml__SimModelCore__SimActorDefinitionTo_p_schema__simxml__SimModelCore__SimRoot, 0, 0}, {&_swigt__p_schema__simxml__ResourcesGeneral__SimNode, _p_schema__simxml__ResourcesGeneral__SimNodeTo_p_schema__simxml__SimModelCore__SimRoot, 0, 0}, {&_swigt__p_schema__simxml__SimModelCore__SimPropertySetDefinition, _p_schema__simxml__SimModelCore__SimPropertySetDefinitionTo_p_schema__simxml__SimModelCore__SimRoot, 0, 0}, {&_swigt__p_schema__simxml__ResourcesGeometry__SimProfileDefinition, _p_schema__simxml__ResourcesGeometry__SimProfileDefinitionTo_p_schema__simxml__SimModelCore__SimRoot, 0, 0}, {&_swigt__p_schema__simxml__SimModelCore__SimFeatureElement, _p_schema__simxml__SimModelCore__SimFeatureElementTo_p_schema__simxml__SimModelCore__SimRoot, 0, 0}, {&_swigt__p_schema__simxml__SimModelCore__SimElement, _p_schema__simxml__SimModelCore__SimElementTo_p_schema__simxml__SimModelCore__SimRoot, 0, 0}, {&_swigt__p_schema__simxml__SimModelCore__SimAppDefault, _p_schema__simxml__SimModelCore__SimAppDefaultTo_p_schema__simxml__SimModelCore__SimRoot, 0, 0}, {&_swigt__p_schema__simxml__SimModelCore__SimObjectPlacement, _p_schema__simxml__SimModelCore__SimObjectPlacementTo_p_schema__simxml__SimModelCore__SimRoot, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_schema__simxml__SimModelCore__doubleList[] = { {&_swigt__p_schema__simxml__SimModelCore__doubleList, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_schema__simxml__SimModelCore__integerList[] = { {&_swigt__p_schema__simxml__SimModelCore__integerList, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_schema__simxml__SimModelCore__logical[] = { {&_swigt__p_schema__simxml__SimModelCore__logical, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_self_[] = { {&_swigt__p_self_, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_short[] = { {&_swigt__p_short, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_signed_char[] = { {&_swigt__p_signed_char, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_size_type[] = { {&_swigt__p_size_type, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__auto_ptrT_T_t[] = { {&_swigt__p_std__auto_ptrT_T_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__auto_ptrT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_t[] = { {&_swigt__p_std__auto_ptrT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__auto_ptrT_xml_schema__idref_t[] = { {&_swigt__p_std__auto_ptrT_xml_schema__idref_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__auto_ptrT_xml_schema__idrefs_t[] = { {&_swigt__p_std__auto_ptrT_xml_schema__idrefs_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__auto_ptrT_xml_schema__string_t[] = { {&_swigt__p_std__auto_ptrT_xml_schema__string_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__vectorT_xsd__cxx__tree__sequence_common__ptr_std__allocatorT_xsd__cxx__tree__sequence_common__ptr_t_t__size_type[] = { {&_swigt__p_std__vectorT_xsd__cxx__tree__sequence_common__ptr_std__allocatorT_xsd__cxx__tree__sequence_common__ptr_t_t__size_type, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_unsigned_long_long[] = { {&_swigt__p_unsigned_long_long, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_unsigned_short[] = { {&_swigt__p_unsigned_short, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_value_type[] = { {&_swigt__p_value_type, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_xercesc__DOMElement[] = { {&_swigt__p_xercesc__DOMElement, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_xsd__cxx__tree__stringT_char_xsd__cxx__tree__simple_typeT_char_xsd__cxx__tree__type_t_t[] = {{&_swigt__p_xsd__cxx__tree__stringT_char_xsd__cxx__tree__simple_typeT_char_xsd__cxx__tree__type_t_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_xsd__cxx__tree___type[] = { {&_swigt__p_schema__simxml__SimModelCore__SimBldgModelParams, _p_schema__simxml__SimModelCore__SimBldgModelParamsTo_p_xsd__cxx__tree___type, 0, 0}, {&_swigt__p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof, _p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_RoofTo_p_xsd__cxx__tree___type, 0, 0}, {&_swigt__p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Ceiling, _p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_CeilingTo_p_xsd__cxx__tree___type, 0, 0}, {&_swigt__p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet, _p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSetTo_p_xsd__cxx__tree___type, 0, 0}, {&_swigt__p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet, _p_schema__simxml__ResourcesGeneral__SimMaterialLayerSetTo_p_xsd__cxx__tree___type, 0, 0}, {&_swigt__p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_Default, _p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_DefaultTo_p_xsd__cxx__tree___type, 0, 0}, {&_swigt__p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_Default_Default, _p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_Default_DefaultTo_p_xsd__cxx__tree___type, 0, 0}, {&_swigt__p_schema__simxml__ResourcesGeneral__SimArrayParams, _p_schema__simxml__ResourcesGeneral__SimArrayParamsTo_p_xsd__cxx__tree___type, 0, 0}, {&_swigt__p_schema__simxml__SimModelCore__SimTopologicalRepresentationItem, _p_schema__simxml__SimModelCore__SimTopologicalRepresentationItemTo_p_xsd__cxx__tree___type, 0, 0}, {&_swigt__p_schema__simxml__SimModelCore__SimBuildingElement, _p_schema__simxml__SimModelCore__SimBuildingElementTo_p_xsd__cxx__tree___type, 0, 0}, {&_swigt__p_schema__simxml__SimModelCore__SimRoot, _p_schema__simxml__SimModelCore__SimRootTo_p_xsd__cxx__tree___type, 0, 0}, {&_swigt__p_schema__simxml__ResourcesGeneral__SimUnitType, _p_schema__simxml__ResourcesGeneral__SimUnitTypeTo_p_xsd__cxx__tree___type, 0, 0}, {&_swigt__p_schema__simxml__SimModelCore__SimDistributionFlowElement, _p_schema__simxml__SimModelCore__SimDistributionFlowElementTo_p_xsd__cxx__tree___type, 0, 0}, {&_swigt__p_schema__simxml__SimModelCore__SimObjectTypeDefinition, _p_schema__simxml__SimModelCore__SimObjectTypeDefinitionTo_p_xsd__cxx__tree___type, 0, 0}, {&_swigt__p_schema__simxml__SimModelCore__SimDistributionElement, _p_schema__simxml__SimModelCore__SimDistributionElementTo_p_xsd__cxx__tree___type, 0, 0}, {&_swigt__p_schema__simxml__SimModelCore__SimObjectDefinition, _p_schema__simxml__SimModelCore__SimObjectDefinitionTo_p_xsd__cxx__tree___type, 0, 0}, {&_swigt__p_schema__simxml__SimModelCore__SimGroup, _p_schema__simxml__SimModelCore__SimGroupTo_p_xsd__cxx__tree___type, 0, 0}, {&_swigt__p_schema__simxml__SimModelCore__SimGeometricRepresentationItem, _p_schema__simxml__SimModelCore__SimGeometricRepresentationItemTo_p_xsd__cxx__tree___type, 0, 0}, {&_swigt__p_schema__simxml__ResourcesGeneral__SimPort, _p_schema__simxml__ResourcesGeneral__SimPortTo_p_xsd__cxx__tree___type, 0, 0}, {&_swigt__p_schema__simxml__SimModelCore__SimSpatialStructureElement, _p_schema__simxml__SimModelCore__SimSpatialStructureElementTo_p_xsd__cxx__tree___type, 0, 0}, {&_swigt__p_xsd__cxx__tree__stringT_char_xsd__cxx__tree__simple_typeT_char_xsd__cxx__tree__type_t_t, _p_xsd__cxx__tree__stringT_char_xsd__cxx__tree__simple_typeT_char_xsd__cxx__tree__type_t_tTo_p_xsd__cxx__tree___type, 0, 0}, {&_swigt__p_schema__simxml__SimModelCore__SimRepresentation, _p_schema__simxml__SimModelCore__SimRepresentationTo_p_xsd__cxx__tree___type, 0, 0}, {&_swigt__p_schema__simxml__SimModelCore__SimRepresentationItem, _p_schema__simxml__SimModelCore__SimRepresentationItemTo_p_xsd__cxx__tree___type, 0, 0}, {&_swigt__p_xsd__cxx__tree___type, 0, 0, 0}, {&_swigt__p_schema__simxml__SimModelCore__SimTemplate, _p_schema__simxml__SimModelCore__SimTemplateTo_p_xsd__cxx__tree___type, 0, 0}, {&_swigt__p_schema__simxml__MepModel__SimFlowEnergyConverter, _p_schema__simxml__MepModel__SimFlowEnergyConverterTo_p_xsd__cxx__tree___type, 0, 0}, {&_swigt__p_schema__simxml__SimModelCore__SimObject, _p_schema__simxml__SimModelCore__SimObjectTo_p_xsd__cxx__tree___type, 0, 0}, {&_swigt__p_schema__simxml__SimModelCore__SimResourceObject, _p_schema__simxml__SimModelCore__SimResourceObjectTo_p_xsd__cxx__tree___type, 0, 0}, {&_swigt__p_schema__simxml__SimModelCore__SimActorDefinition, _p_schema__simxml__SimModelCore__SimActorDefinitionTo_p_xsd__cxx__tree___type, 0, 0}, {&_swigt__p_schema__simxml__SimModelCore__SimDistributionControlElement, _p_schema__simxml__SimModelCore__SimDistributionControlElementTo_p_xsd__cxx__tree___type, 0, 0}, {&_swigt__p_xsd__cxx__tree__simple_typeT_char_xsd__cxx__tree___type_t, _p_xsd__cxx__tree__simple_typeT_char_xsd__cxx__tree___type_tTo_p_xsd__cxx__tree___type, 0, 0}, {&_swigt__p_schema__simxml__ResourcesGeneral__SimNode, _p_schema__simxml__ResourcesGeneral__SimNodeTo_p_xsd__cxx__tree___type, 0, 0}, {&_swigt__p_schema__simxml__SimModelCore__SimPropertySetDefinition, _p_schema__simxml__SimModelCore__SimPropertySetDefinitionTo_p_xsd__cxx__tree___type, 0, 0}, {&_swigt__p_schema__simxml__ResourcesGeometry__SimProfileDefinition, _p_schema__simxml__ResourcesGeometry__SimProfileDefinitionTo_p_xsd__cxx__tree___type, 0, 0}, {&_swigt__p_schema__simxml__SimModelCore__SimFeatureElement, _p_schema__simxml__SimModelCore__SimFeatureElementTo_p_xsd__cxx__tree___type, 0, 0}, {&_swigt__p_schema__simxml__SimModelCore__SimElement, _p_schema__simxml__SimModelCore__SimElementTo_p_xsd__cxx__tree___type, 0, 0}, {&_swigt__p_schema__simxml__SimModelCore__SimAppDefault, _p_schema__simxml__SimModelCore__SimAppDefaultTo_p_xsd__cxx__tree___type, 0, 0}, {&_swigt__p_schema__simxml__SimModelCore__SimObjectPlacement, _p_schema__simxml__SimModelCore__SimObjectPlacementTo_p_xsd__cxx__tree___type, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_xsd__cxx__tree__base64_binaryT_char_xsd__cxx__tree__simple_type_t[] = { {&_swigt__p_xsd__cxx__tree__base64_binaryT_char_xsd__cxx__tree__simple_type_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_xsd__cxx__tree__boundsT_char_t[] = { {&_swigt__p_xsd__cxx__tree__boundsT_char_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_xsd__cxx__tree__bufferT_char_t[] = { {&_swigt__p_xsd__cxx__tree__bufferT_char_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_xsd__cxx__tree__content_order[] = { {&_swigt__p_xsd__cxx__tree__content_order, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_xsd__cxx__tree__dateT_char_xsd__cxx__tree__simple_typeT_char_xsd__cxx__tree___type_t_t[] = { {&_swigt__p_xsd__cxx__tree__dateT_char_xsd__cxx__tree__simple_typeT_char_xsd__cxx__tree___type_t_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_xsd__cxx__tree__date_timeT_char_xsd__cxx__tree__simple_typeT_char_xsd__cxx__tree___type_t_t[] = { {&_swigt__p_xsd__cxx__tree__date_timeT_char_xsd__cxx__tree__simple_typeT_char_xsd__cxx__tree___type_t_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_xsd__cxx__tree__diagnosticsT_char_t[] = { {&_swigt__p_xsd__cxx__tree__diagnosticsT_char_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_xsd__cxx__tree__duplicate_idT_char_t[] = { {&_swigt__p_xsd__cxx__tree__duplicate_idT_char_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_xsd__cxx__tree__durationT_char_xsd__cxx__tree__simple_typeT_char_xsd__cxx__tree___type_t_t[] = { {&_swigt__p_xsd__cxx__tree__durationT_char_xsd__cxx__tree__simple_typeT_char_xsd__cxx__tree___type_t_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_xsd__cxx__tree__entitiesT_char_xsd__cxx__tree__simple_type_xsd__cxx__tree__entity_t[] = { {&_swigt__p_xsd__cxx__tree__entitiesT_char_xsd__cxx__tree__simple_type_xsd__cxx__tree__entity_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_xsd__cxx__tree__entityT_char_xsd__cxx__tree__ncname_t[] = { {&_swigt__p_xsd__cxx__tree__entityT_char_xsd__cxx__tree__ncname_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_xsd__cxx__tree__errorT_char_t[] = { {&_swigt__p_xsd__cxx__tree__errorT_char_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_xsd__cxx__tree__exceptionT_char_t[] = { {&_swigt__p_xsd__cxx__tree__exceptionT_char_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_xsd__cxx__tree__expected_attributeT_char_t[] = { {&_swigt__p_xsd__cxx__tree__expected_attributeT_char_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_xsd__cxx__tree__expected_elementT_char_t[] = { {&_swigt__p_xsd__cxx__tree__expected_elementT_char_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_xsd__cxx__tree__expected_text_contentT_char_t[] = { {&_swigt__p_xsd__cxx__tree__expected_text_contentT_char_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_xsd__cxx__tree__flags[] = { {&_swigt__p_xsd__cxx__tree__flags, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_xsd__cxx__tree__gdayT_char_xsd__cxx__tree__simple_typeT_char_xsd__cxx__tree___type_t_t[] = { {&_swigt__p_xsd__cxx__tree__gdayT_char_xsd__cxx__tree__simple_typeT_char_xsd__cxx__tree___type_t_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_xsd__cxx__tree__gmonthT_char_xsd__cxx__tree__simple_typeT_char_xsd__cxx__tree___type_t_t[] = { {&_swigt__p_xsd__cxx__tree__gmonthT_char_xsd__cxx__tree__simple_typeT_char_xsd__cxx__tree___type_t_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_xsd__cxx__tree__gmonth_dayT_char_xsd__cxx__tree__simple_typeT_char_xsd__cxx__tree___type_t_t[] = { {&_swigt__p_xsd__cxx__tree__gmonth_dayT_char_xsd__cxx__tree__simple_typeT_char_xsd__cxx__tree___type_t_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_xsd__cxx__tree__gyearT_char_xsd__cxx__tree__simple_typeT_char_xsd__cxx__tree___type_t_t[] = { {&_swigt__p_xsd__cxx__tree__gyearT_char_xsd__cxx__tree__simple_typeT_char_xsd__cxx__tree___type_t_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_xsd__cxx__tree__gyear_monthT_char_xsd__cxx__tree__simple_typeT_char_xsd__cxx__tree___type_t_t[] = { {&_swigt__p_xsd__cxx__tree__gyear_monthT_char_xsd__cxx__tree__simple_typeT_char_xsd__cxx__tree___type_t_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_xsd__cxx__tree__hex_binaryT_char_xsd__cxx__tree__simple_type_t[] = { {&_swigt__p_xsd__cxx__tree__hex_binaryT_char_xsd__cxx__tree__simple_type_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_xsd__cxx__tree__idT_char_xsd__cxx__tree__ncname_t[] = { {&_swigt__p_xsd__cxx__tree__idT_char_xsd__cxx__tree__ncname_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_xsd__cxx__tree__idrefT_char_xsd__cxx__tree__ncname_xsd__cxx__tree___type_t[] = { {&_swigt__p_xsd__cxx__tree__idrefT_char_xsd__cxx__tree__ncname_xsd__cxx__tree___type_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_xsd__cxx__tree__idrefsT_char_xsd__cxx__tree__simple_type_xsd__cxx__tree__idref_t[] = { {&_swigt__p_xsd__cxx__tree__idrefsT_char_xsd__cxx__tree__simple_type_xsd__cxx__tree__idref_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_xsd__cxx__tree__languageT_char_xsd__cxx__tree__token_t[] = { {&_swigt__p_xsd__cxx__tree__languageT_char_xsd__cxx__tree__token_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_xsd__cxx__tree__nameT_char_xsd__cxx__tree__token_t[] = { {&_swigt__p_xsd__cxx__tree__nameT_char_xsd__cxx__tree__token_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_xsd__cxx__tree__ncnameT_char_xsd__cxx__tree__name_t[] = { {&_swigt__p_xsd__cxx__tree__ncnameT_char_xsd__cxx__tree__name_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_xsd__cxx__tree__nmtokenT_char_xsd__cxx__tree__token_t[] = { {&_swigt__p_xsd__cxx__tree__nmtokenT_char_xsd__cxx__tree__token_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_xsd__cxx__tree__nmtokensT_char_xsd__cxx__tree__simple_type_xsd__cxx__tree__nmtoken_t[] = { {&_swigt__p_xsd__cxx__tree__nmtokensT_char_xsd__cxx__tree__simple_type_xsd__cxx__tree__nmtoken_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_xsd__cxx__tree__no_prefix_mappingT_char_t[] = { {&_swigt__p_xsd__cxx__tree__no_prefix_mappingT_char_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_xsd__cxx__tree__no_type_infoT_char_t[] = { {&_swigt__p_xsd__cxx__tree__no_type_infoT_char_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_xsd__cxx__tree__normalized_stringT_char_xsd__cxx__tree__string_t[] = { {&_swigt__p_xsd__cxx__tree__normalized_stringT_char_xsd__cxx__tree__string_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_xsd__cxx__tree__not_derivedT_char_t[] = { {&_swigt__p_xsd__cxx__tree__not_derivedT_char_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_xsd__cxx__tree__optionalT_double_true_t[] = { {&_swigt__p_xsd__cxx__tree__optionalT_double_true_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_xsd__cxx__tree__optionalT_int_true_t[] = { {&_swigt__p_xsd__cxx__tree__optionalT_int_true_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_xsd__cxx__tree__optionalT_xsd__cxx__tree__idrefT_char_xsd__cxx__tree__ncname_xsd__cxx__tree___type_t_false_t[] = { {&_swigt__p_xsd__cxx__tree__optionalT_xsd__cxx__tree__idrefT_char_xsd__cxx__tree__ncname_xsd__cxx__tree___type_t_false_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_xsd__cxx__tree__optionalT_xsd__cxx__tree__idrefsT_char_xsd__cxx__tree__simple_type_xsd__cxx__tree__idref_t_xsd__cxx__tree__fundamental_pT_xsd__cxx__tree__idrefsT_char_xsd__cxx__tree__simple_type_xsd__cxx__tree__idref_t_t__r_t[] = { {&_swigt__p_xsd__cxx__tree__optionalT_xsd__cxx__tree__idrefsT_char_xsd__cxx__tree__simple_type_xsd__cxx__tree__idref_t_xsd__cxx__tree__fundamental_pT_xsd__cxx__tree__idrefsT_char_xsd__cxx__tree__simple_type_xsd__cxx__tree__idref_t_t__r_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_xsd__cxx__tree__optionalT_xsd__cxx__tree__stringT_char_xsd__cxx__tree__simple_type_t_false_t[] = { {&_swigt__p_xsd__cxx__tree__optionalT_xsd__cxx__tree__stringT_char_xsd__cxx__tree__simple_type_t_false_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_xsd__cxx__tree__parsingT_char_t[] = { {&_swigt__p_xsd__cxx__tree__parsingT_char_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_xsd__cxx__tree__propertiesT_char_t[] = { {&_swigt__p_xsd__cxx__tree__propertiesT_char_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_xsd__cxx__tree__qnameT_char_xsd__cxx__tree__simple_type_xsd__cxx__tree__uri_xsd__cxx__tree__ncname_t[] = { {&_swigt__p_xsd__cxx__tree__qnameT_char_xsd__cxx__tree__simple_type_xsd__cxx__tree__uri_xsd__cxx__tree__ncname_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_xsd__cxx__tree__sequenceT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_false_t[] = { {&_swigt__p_xsd__cxx__tree__sequenceT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_false_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_xsd__cxx__tree__sequenceT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_Default_Default_false_t[] = {{&_swigt__p_xsd__cxx__tree__sequenceT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_Default_Default_false_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_xsd__cxx__tree__sequenceT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Ceiling_false_t[] = {{&_swigt__p_xsd__cxx__tree__sequenceT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Ceiling_false_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_xsd__cxx__tree__sequenceT_xsd__cxx__tree__stringT_char_xsd__cxx__tree__simple_typeT_char_xsd__cxx__tree__type_t_t_false_t[] = {{&_swigt__p_xsd__cxx__tree__sequenceT_xsd__cxx__tree__stringT_char_xsd__cxx__tree__simple_typeT_char_xsd__cxx__tree__type_t_t_false_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_xsd__cxx__tree__sequence_common[] = { {&_swigt__p_xsd__cxx__tree__sequenceT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_Default_Default_false_t, _p_xsd__cxx__tree__sequenceT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_Default_Default_false_tTo_p_xsd__cxx__tree__sequence_common, 0, 0}, {&_swigt__p_xsd__cxx__tree__sequenceT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Ceiling_false_t, _p_xsd__cxx__tree__sequenceT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Ceiling_false_tTo_p_xsd__cxx__tree__sequence_common, 0, 0}, {&_swigt__p_xsd__cxx__tree__sequenceT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_false_t, _p_xsd__cxx__tree__sequenceT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_false_tTo_p_xsd__cxx__tree__sequence_common, 0, 0}, {&_swigt__p_xsd__cxx__tree__sequence_common, 0, 0, 0}, {&_swigt__p_xsd__cxx__tree__sequenceT_xsd__cxx__tree__stringT_char_xsd__cxx__tree__simple_typeT_char_xsd__cxx__tree__type_t_t_false_t, _p_xsd__cxx__tree__sequenceT_xsd__cxx__tree__stringT_char_xsd__cxx__tree__simple_typeT_char_xsd__cxx__tree__type_t_t_false_tTo_p_xsd__cxx__tree__sequence_common, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_xsd__cxx__tree__severity[] = { {&_swigt__p_xsd__cxx__tree__severity, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_xsd__cxx__tree__simple_typeT_char_xsd__cxx__tree___type_t[] = { {&_swigt__p_xsd__cxx__tree__simple_typeT_char_xsd__cxx__tree___type_t, 0, 0, 0}, {&_swigt__p_xsd__cxx__tree__stringT_char_xsd__cxx__tree__simple_typeT_char_xsd__cxx__tree__type_t_t, _p_xsd__cxx__tree__stringT_char_xsd__cxx__tree__simple_typeT_char_xsd__cxx__tree__type_t_tTo_p_xsd__cxx__tree__simple_typeT_char_xsd__cxx__tree___type_t, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_xsd__cxx__tree__stringT_char_xsd__cxx__tree__simple_type_t[] = { {&_swigt__p_xsd__cxx__tree__stringT_char_xsd__cxx__tree__simple_type_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_xsd__cxx__tree__timeT_char_xsd__cxx__tree__simple_typeT_char_xsd__cxx__tree___type_t_t[] = { {&_swigt__p_xsd__cxx__tree__timeT_char_xsd__cxx__tree__simple_typeT_char_xsd__cxx__tree___type_t_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_xsd__cxx__tree__time_zone[] = { {&_swigt__p_xsd__cxx__tree__time_zone, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_xsd__cxx__tree__tokenT_char_xsd__cxx__tree__normalized_string_t[] = { {&_swigt__p_xsd__cxx__tree__tokenT_char_xsd__cxx__tree__normalized_string_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_xsd__cxx__tree__unexpected_elementT_char_t[] = { {&_swigt__p_xsd__cxx__tree__unexpected_elementT_char_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_xsd__cxx__tree__unexpected_enumeratorT_char_t[] = { {&_swigt__p_xsd__cxx__tree__unexpected_enumeratorT_char_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_xsd__cxx__tree__uriT_char_xsd__cxx__tree__simple_type_t[] = { {&_swigt__p_xsd__cxx__tree__uriT_char_xsd__cxx__tree__simple_type_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_xsd__cxx__tree__user_data_keys_templateT_0_t[] = { {&_swigt__p_xsd__cxx__tree__user_data_keys_templateT_0_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_xsd__cxx__xml__error_handlerT_char_t[] = { {&_swigt__p_xsd__cxx__xml__error_handlerT_char_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info *swig_cast_initial[] = {
_swigc__p_ApplicableOccurrence_optional,
_swigc__p_ApplicableOccurrence_traits,
_swigc__p_ApplicableOccurrence_type,
_swigc__p_AssignedToFlowElement_optional,
_swigc__p_AssignedToFlowElement_traits,
_swigc__p_AssignedToFlowElement_type,
_swigc__p_AssignedToGroups_optional,
_swigc__p_AssignedToGroups_traits,
_swigc__p_AssignedToGroups_type,
_swigc__p_ChangeFromTemplate_optional,
_swigc__p_ChangeFromTemplate_traits,
_swigc__p_ChangeFromTemplate_type,
_swigc__p_CompositeThermalTrans_optional,
_swigc__p_CompositeThermalTrans_traits,
_swigc__p_CompositeThermalTrans_type,
_swigc__p_CompositionType_optional,
_swigc__p_CompositionType_traits,
_swigc__p_CompositionType_type,
_swigc__p_ContainingBuildings_optional,
_swigc__p_ContainingBuildings_traits,
_swigc__p_ContainingBuildings_type,
_swigc__p_ContainingSpatialStructure_optional,
_swigc__p_ContainingSpatialStructure_traits,
_swigc__p_ContainingSpatialStructure_type,
_swigc__p_ControlElementID_optional,
_swigc__p_ControlElementID_traits,
_swigc__p_ControlElementID_type,
_swigc__p_ControlledBy_optional,
_swigc__p_ControlledBy_traits,
_swigc__p_ControlledBy_type,
_swigc__p_DecimalPrecision_optional,
_swigc__p_DecimalPrecision_traits,
_swigc__p_DecimalPrecision_type,
_swigc__p_Decomposes_optional,
_swigc__p_Decomposes_traits,
_swigc__p_Decomposes_type,
_swigc__p_Description_optional,
_swigc__p_Description_traits,
_swigc__p_Description_type,
_swigc__p_DockedToPort_optional,
_swigc__p_DockedToPort_traits,
_swigc__p_DockedToPort_type,
_swigc__p_GeometricRepresentations_optional,
_swigc__p_GeometricRepresentations_traits,
_swigc__p_GeometricRepresentations_type,
_swigc__p_HasPropertySets_optional,
_swigc__p_HasPropertySets_traits,
_swigc__p_HasPropertySets_type,
_swigc__p_HasTemplateChanged_optional,
_swigc__p_HasTemplateChanged_traits,
_swigc__p_HasTemplateChanged_type,
_swigc__p_HostElement_optional,
_swigc__p_HostElement_traits,
_swigc__p_HostElement_type,
_swigc__p_IfcGlobalID_optional,
_swigc__p_IfcGlobalID_traits,
_swigc__p_IfcGlobalID_type,
_swigc__p_IfcName_optional,
_swigc__p_IfcName_traits,
_swigc__p_IfcName_type,
_swigc__p_IntendedBldgElemTypes_optional,
_swigc__p_IntendedBldgElemTypes_traits,
_swigc__p_IntendedBldgElemTypes_type,
_swigc__p_IsAutoGenerated_optional,
_swigc__p_IsAutoGenerated_traits,
_swigc__p_IsAutoGenerated_type,
_swigc__p_IsTemplateObject_optional,
_swigc__p_IsTemplateObject_traits,
_swigc__p_IsTemplateObject_type,
_swigc__p_LayerSetName_optional,
_swigc__p_LayerSetName_traits,
_swigc__p_LayerSetName_type,
_swigc__p_LocalPlacementCoordinates_optional,
_swigc__p_LocalPlacementCoordinates_traits,
_swigc__p_LocalPlacementCoordinates_type,
_swigc__p_LocalPlacementRotation_optional,
_swigc__p_LocalPlacementRotation_traits,
_swigc__p_LocalPlacementRotation_type,
_swigc__p_LocalPlacementX_optional,
_swigc__p_LocalPlacementX_traits,
_swigc__p_LocalPlacementX_type,
_swigc__p_LocalPlacementY_optional,
_swigc__p_LocalPlacementY_traits,
_swigc__p_LocalPlacementY_type,
_swigc__p_LocalPlacementZ_optional,
_swigc__p_LocalPlacementZ_traits,
_swigc__p_LocalPlacementZ_type,
_swigc__p_LongName_optional,
_swigc__p_LongName_traits,
_swigc__p_LongName_type,
_swigc__p_MaterialLayers_optional,
_swigc__p_MaterialLayers_traits,
_swigc__p_MaterialLayers_type,
_swigc__p_MemberUsedForDiagrams_optional,
_swigc__p_MemberUsedForDiagrams_traits,
_swigc__p_MemberUsedForDiagrams_type,
_swigc__p_Name_optional,
_swigc__p_Name_traits,
_swigc__p_Name_type,
_swigc__p_NevronSchematicLayout_optional,
_swigc__p_NevronSchematicLayout_traits,
_swigc__p_NevronSchematicLayout_type,
_swigc__p_ObjectCreationParams_optional,
_swigc__p_ObjectCreationParams_traits,
_swigc__p_ObjectCreationParams_type,
_swigc__p_ObjectIndex_optional,
_swigc__p_ObjectIndex_traits,
_swigc__p_ObjectIndex_type,
_swigc__p_ObjectName_optional,
_swigc__p_ObjectName_traits,
_swigc__p_ObjectName_type,
_swigc__p_ObjectOwnerHistory_optional,
_swigc__p_ObjectOwnerHistory_traits,
_swigc__p_ObjectOwnerHistory_type,
_swigc__p_ObjectType_optional,
_swigc__p_ObjectType_traits,
_swigc__p_ObjectType_type,
_swigc__p_ParentGroups_optional,
_swigc__p_ParentGroups_traits,
_swigc__p_ParentGroups_type,
_swigc__p_PlacementRelToContainingTypeDef_optional,
_swigc__p_PlacementRelToContainingTypeDef_traits,
_swigc__p_PlacementRelToContainingTypeDef_type,
_swigc__p_Placement_optional,
_swigc__p_Placement_traits,
_swigc__p_Placement_type,
_swigc__p_ProfileName_optional,
_swigc__p_ProfileName_traits,
_swigc__p_ProfileName_type,
_swigc__p_ProfileType_optional,
_swigc__p_ProfileType_traits,
_swigc__p_ProfileType_type,
_swigc__p_RefId_traits,
_swigc__p_RefId_type,
_swigc__p_RepresentationContext_optional,
_swigc__p_RepresentationContext_traits,
_swigc__p_RepresentationContext_type,
_swigc__p_RepresentationIdentifier_optional,
_swigc__p_RepresentationIdentifier_traits,
_swigc__p_RepresentationIdentifier_type,
_swigc__p_RepresentationItems_optional,
_swigc__p_RepresentationItems_traits,
_swigc__p_RepresentationItems_type,
_swigc__p_RepresentationType_optional,
_swigc__p_RepresentationType_traits,
_swigc__p_RepresentationType_type,
_swigc__p_SelectedPropertyGroups_optional,
_swigc__p_SelectedPropertyGroups_traits,
_swigc__p_SelectedPropertyGroups_type,
_swigc__p_SimMatLayerSet_Layer_2_10_optional,
_swigc__p_SimMatLayerSet_Layer_2_10_traits,
_swigc__p_SimMatLayerSet_Layer_2_10_type,
_swigc__p_SimMatLayerSet_Name_optional,
_swigc__p_SimMatLayerSet_Name_traits,
_swigc__p_SimMatLayerSet_Name_type,
_swigc__p_SimMatLayerSet_OutsideLayer_optional,
_swigc__p_SimMatLayerSet_OutsideLayer_traits,
_swigc__p_SimMatLayerSet_OutsideLayer_type,
_swigc__p_SimModelName_optional,
_swigc__p_SimModelName_traits,
_swigc__p_SimModelName_type,
_swigc__p_SimModelSubtype_optional,
_swigc__p_SimModelSubtype_traits,
_swigc__p_SimModelSubtype_type,
_swigc__p_SimModelType_optional,
_swigc__p_SimModelType_traits,
_swigc__p_SimModelType_type,
_swigc__p_SimUniqueID_optional,
_swigc__p_SimUniqueID_traits,
_swigc__p_SimUniqueID_type,
_swigc__p_SourceLibraryEntryID_optional,
_swigc__p_SourceLibraryEntryID_traits,
_swigc__p_SourceLibraryEntryID_type,
_swigc__p_SourceLibraryEntryRef_optional,
_swigc__p_SourceLibraryEntryRef_traits,
_swigc__p_SourceLibraryEntryRef_type,
_swigc__p_SourceModelObjectType_optional,
_swigc__p_SourceModelObjectType_traits,
_swigc__p_SourceModelObjectType_type,
_swigc__p_SourceModelSchema_optional,
_swigc__p_SourceModelSchema_traits,
_swigc__p_SourceModelSchema_type,
_swigc__p_SurfProp_HeatTransAlg_Construct_Algorithm_optional,
_swigc__p_SurfProp_HeatTransAlg_Construct_Algorithm_traits,
_swigc__p_SurfProp_HeatTransAlg_Construct_Algorithm_type,
_swigc__p_SurfProp_HeatTransAlg_Construct_ConstructionName_optional,
_swigc__p_SurfProp_HeatTransAlg_Construct_ConstructionName_traits,
_swigc__p_SurfProp_HeatTransAlg_Construct_ConstructionName_type,
_swigc__p_SurfProp_HeatTransAlg_Construct_Name_optional,
_swigc__p_SurfProp_HeatTransAlg_Construct_Name_traits,
_swigc__p_SurfProp_HeatTransAlg_Construct_Name_type,
_swigc__p_T24CRRCAgedEmittance_optional,
_swigc__p_T24CRRCAgedEmittance_traits,
_swigc__p_T24CRRCAgedEmittance_type,
_swigc__p_T24CRRCAgedReflectance_optional,
_swigc__p_T24CRRCAgedReflectance_traits,
_swigc__p_T24CRRCAgedReflectance_type,
_swigc__p_T24CRRCAgedSRI_optional,
_swigc__p_T24CRRCAgedSRI_traits,
_swigc__p_T24CRRCAgedSRI_type,
_swigc__p_T24CRRCInitialEmitance_optional,
_swigc__p_T24CRRCInitialEmitance_traits,
_swigc__p_T24CRRCInitialEmitance_type,
_swigc__p_T24CRRCInitialReflectance_optional,
_swigc__p_T24CRRCInitialReflectance_traits,
_swigc__p_T24CRRCInitialReflectance_type,
_swigc__p_T24CRRCInitialSRI_optional,
_swigc__p_T24CRRCInitialSRI_traits,
_swigc__p_T24CRRCInitialSRI_type,
_swigc__p_T24CRRCProductID_optional,
_swigc__p_T24CRRCProductID_traits,
_swigc__p_T24CRRCProductID_type,
_swigc__p_T24ConsAssmNotes_optional,
_swigc__p_T24ConsAssmNotes_traits,
_swigc__p_T24ConsAssmNotes_type,
_swigc__p_T24ConstructInsulOrient_optional,
_swigc__p_T24ConstructInsulOrient_traits,
_swigc__p_T24ConstructInsulOrient_type,
_swigc__p_T24FieldAppliedCoating_optional,
_swigc__p_T24FieldAppliedCoating_traits,
_swigc__p_T24FieldAppliedCoating_type,
_swigc__p_T24RoofDensity_optional,
_swigc__p_T24RoofDensity_traits,
_swigc__p_T24RoofDensity_type,
_swigc__p_T24SlabInsulThermResist_optional,
_swigc__p_T24SlabInsulThermResist_traits,
_swigc__p_T24SlabInsulThermResist_type,
_swigc__p_T24SlabType_optional,
_swigc__p_T24SlabType_traits,
_swigc__p_T24SlabType_type,
_swigc__p_Tag_optional,
_swigc__p_Tag_traits,
_swigc__p_Tag_type,
_swigc__p_TemplatesForMembers_optional,
_swigc__p_TemplatesForMembers_traits,
_swigc__p_TemplatesForMembers_type,
_swigc__p_TypeDefCreationParams_optional,
_swigc__p_TypeDefCreationParams_traits,
_swigc__p_TypeDefCreationParams_type,
_swigc__p_TypeDefinition_optional,
_swigc__p_TypeDefinition_traits,
_swigc__p_TypeDefinition_type,
_swigc__p_UnitType_String_optional,
_swigc__p_UnitType_String_traits,
_swigc__p_UnitType_String_type,
_swigc__p_XDirectionX_optional,
_swigc__p_XDirectionX_traits,
_swigc__p_XDirectionX_type,
_swigc__p_XDirectionY_optional,
_swigc__p_XDirectionY_traits,
_swigc__p_XDirectionY_type,
_swigc__p_XDirectionZ_optional,
_swigc__p_XDirectionZ_traits,
_swigc__p_XDirectionZ_type,
_swigc__p__3dHeight_optional,
_swigc__p__3dHeight_traits,
_swigc__p__3dHeight_type,
_swigc__p__3dLength_optional,
_swigc__p__3dLength_traits,
_swigc__p__3dLength_type,
_swigc__p__3dWidth_optional,
_swigc__p__3dWidth_traits,
_swigc__p__3dWidth_type,
_swigc__p_allocator_type,
_swigc__p_base_const_iterator,
_swigc__p_base_iterator,
_swigc__p_base_sequence,
_swigc__p_base_type,
_swigc__p_bool,
_swigc__p_bool_convertible,
_swigc__p_char,
_swigc__p_const_iterator,
_swigc__p_const_reverse_iterator,
_swigc__p_difference_type,
_swigc__p_dom_content_optional,
_swigc__p_double,
_swigc__p_float,
_swigc__p_int,
_swigc__p_iterator,
_swigc__p_iterator_adapterT_std__vectorT_xsd__cxx__tree__sequence_common__ptr_std__allocatorT_xsd__cxx__tree__sequence_common__ptr_t_t__const_iterator_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_const_t,
_swigc__p_iterator_adapterT_std__vectorT_xsd__cxx__tree__sequence_common__ptr_std__allocatorT_xsd__cxx__tree__sequence_common__ptr_t_t__const_reverse_iterator_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_const_t,
_swigc__p_iterator_adapterT_std__vectorT_xsd__cxx__tree__sequence_common__ptr_std__allocatorT_xsd__cxx__tree__sequence_common__ptr_t_t__iterator___schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_t,
_swigc__p_iterator_adapterT_std__vectorT_xsd__cxx__tree__sequence_common__ptr_std__allocatorT_xsd__cxx__tree__sequence_common__ptr_t_t__reverse_iterator___schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_t,
_swigc__p_long_long,
_swigc__p_ptr,
_swigc__p_reverse_iterator,
_swigc__p_schema__simxml__MepModel__SimFlowEnergyConverter,
_swigc__p_schema__simxml__Model__SimModel,
_swigc__p_schema__simxml__ResourcesGeneral__IntendedBldgElemTypes,
_swigc__p_schema__simxml__ResourcesGeneral__SimArrayParams,
_swigc__p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet,
_swigc__p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_Default,
_swigc__p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_Default_Default,
_swigc__p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet,
_swigc__p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Ceiling,
_swigc__p_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof,
_swigc__p_schema__simxml__ResourcesGeneral__SimNode,
_swigc__p_schema__simxml__ResourcesGeneral__SimPort,
_swigc__p_schema__simxml__ResourcesGeneral__SimUnitType,
_swigc__p_schema__simxml__ResourcesGeometry__SimProfileDefinition,
_swigc__p_schema__simxml__SimModelCore__SelectedPropertyGroups,
_swigc__p_schema__simxml__SimModelCore__SimActorDefinition,
_swigc__p_schema__simxml__SimModelCore__SimAppDefault,
_swigc__p_schema__simxml__SimModelCore__SimBldgModelParams,
_swigc__p_schema__simxml__SimModelCore__SimBuildingElement,
_swigc__p_schema__simxml__SimModelCore__SimDistributionControlElement,
_swigc__p_schema__simxml__SimModelCore__SimDistributionElement,
_swigc__p_schema__simxml__SimModelCore__SimDistributionFlowElement,
_swigc__p_schema__simxml__SimModelCore__SimElement,
_swigc__p_schema__simxml__SimModelCore__SimFeatureElement,
_swigc__p_schema__simxml__SimModelCore__SimGeometricRepresentationItem,
_swigc__p_schema__simxml__SimModelCore__SimGroup,
_swigc__p_schema__simxml__SimModelCore__SimObject,
_swigc__p_schema__simxml__SimModelCore__SimObjectDefinition,
_swigc__p_schema__simxml__SimModelCore__SimObjectPlacement,
_swigc__p_schema__simxml__SimModelCore__SimObjectTypeDefinition,
_swigc__p_schema__simxml__SimModelCore__SimPropertySetDefinition,
_swigc__p_schema__simxml__SimModelCore__SimRepresentation,
_swigc__p_schema__simxml__SimModelCore__SimRepresentationItem,
_swigc__p_schema__simxml__SimModelCore__SimResourceObject,
_swigc__p_schema__simxml__SimModelCore__SimRoot,
_swigc__p_schema__simxml__SimModelCore__SimSpatialStructureElement,
_swigc__p_schema__simxml__SimModelCore__SimTemplate,
_swigc__p_schema__simxml__SimModelCore__SimTopologicalRepresentationItem,
_swigc__p_schema__simxml__SimModelCore__doubleList,
_swigc__p_schema__simxml__SimModelCore__integerList,
_swigc__p_schema__simxml__SimModelCore__logical,
_swigc__p_self_,
_swigc__p_short,
_swigc__p_signed_char,
_swigc__p_size_type,
_swigc__p_std__auto_ptrT_T_t,
_swigc__p_std__auto_ptrT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_t,
_swigc__p_std__auto_ptrT_xml_schema__idref_t,
_swigc__p_std__auto_ptrT_xml_schema__idrefs_t,
_swigc__p_std__auto_ptrT_xml_schema__string_t,
_swigc__p_std__vectorT_xsd__cxx__tree__sequence_common__ptr_std__allocatorT_xsd__cxx__tree__sequence_common__ptr_t_t__size_type,
_swigc__p_unsigned_char,
_swigc__p_unsigned_int,
_swigc__p_unsigned_long_long,
_swigc__p_unsigned_short,
_swigc__p_value_type,
_swigc__p_xercesc__DOMElement,
_swigc__p_xsd__cxx__tree___type,
_swigc__p_xsd__cxx__tree__base64_binaryT_char_xsd__cxx__tree__simple_type_t,
_swigc__p_xsd__cxx__tree__boundsT_char_t,
_swigc__p_xsd__cxx__tree__bufferT_char_t,
_swigc__p_xsd__cxx__tree__content_order,
_swigc__p_xsd__cxx__tree__dateT_char_xsd__cxx__tree__simple_typeT_char_xsd__cxx__tree___type_t_t,
_swigc__p_xsd__cxx__tree__date_timeT_char_xsd__cxx__tree__simple_typeT_char_xsd__cxx__tree___type_t_t,
_swigc__p_xsd__cxx__tree__diagnosticsT_char_t,
_swigc__p_xsd__cxx__tree__duplicate_idT_char_t,
_swigc__p_xsd__cxx__tree__durationT_char_xsd__cxx__tree__simple_typeT_char_xsd__cxx__tree___type_t_t,
_swigc__p_xsd__cxx__tree__entitiesT_char_xsd__cxx__tree__simple_type_xsd__cxx__tree__entity_t,
_swigc__p_xsd__cxx__tree__entityT_char_xsd__cxx__tree__ncname_t,
_swigc__p_xsd__cxx__tree__errorT_char_t,
_swigc__p_xsd__cxx__tree__exceptionT_char_t,
_swigc__p_xsd__cxx__tree__expected_attributeT_char_t,
_swigc__p_xsd__cxx__tree__expected_elementT_char_t,
_swigc__p_xsd__cxx__tree__expected_text_contentT_char_t,
_swigc__p_xsd__cxx__tree__flags,
_swigc__p_xsd__cxx__tree__gdayT_char_xsd__cxx__tree__simple_typeT_char_xsd__cxx__tree___type_t_t,
_swigc__p_xsd__cxx__tree__gmonthT_char_xsd__cxx__tree__simple_typeT_char_xsd__cxx__tree___type_t_t,
_swigc__p_xsd__cxx__tree__gmonth_dayT_char_xsd__cxx__tree__simple_typeT_char_xsd__cxx__tree___type_t_t,
_swigc__p_xsd__cxx__tree__gyearT_char_xsd__cxx__tree__simple_typeT_char_xsd__cxx__tree___type_t_t,
_swigc__p_xsd__cxx__tree__gyear_monthT_char_xsd__cxx__tree__simple_typeT_char_xsd__cxx__tree___type_t_t,
_swigc__p_xsd__cxx__tree__hex_binaryT_char_xsd__cxx__tree__simple_type_t,
_swigc__p_xsd__cxx__tree__idT_char_xsd__cxx__tree__ncname_t,
_swigc__p_xsd__cxx__tree__idrefT_char_xsd__cxx__tree__ncname_xsd__cxx__tree___type_t,
_swigc__p_xsd__cxx__tree__idrefsT_char_xsd__cxx__tree__simple_type_xsd__cxx__tree__idref_t,
_swigc__p_xsd__cxx__tree__languageT_char_xsd__cxx__tree__token_t,
_swigc__p_xsd__cxx__tree__nameT_char_xsd__cxx__tree__token_t,
_swigc__p_xsd__cxx__tree__ncnameT_char_xsd__cxx__tree__name_t,
_swigc__p_xsd__cxx__tree__nmtokenT_char_xsd__cxx__tree__token_t,
_swigc__p_xsd__cxx__tree__nmtokensT_char_xsd__cxx__tree__simple_type_xsd__cxx__tree__nmtoken_t,
_swigc__p_xsd__cxx__tree__no_prefix_mappingT_char_t,
_swigc__p_xsd__cxx__tree__no_type_infoT_char_t,
_swigc__p_xsd__cxx__tree__normalized_stringT_char_xsd__cxx__tree__string_t,
_swigc__p_xsd__cxx__tree__not_derivedT_char_t,
_swigc__p_xsd__cxx__tree__optionalT_double_true_t,
_swigc__p_xsd__cxx__tree__optionalT_int_true_t,
_swigc__p_xsd__cxx__tree__optionalT_xsd__cxx__tree__idrefT_char_xsd__cxx__tree__ncname_xsd__cxx__tree___type_t_false_t,
_swigc__p_xsd__cxx__tree__optionalT_xsd__cxx__tree__idrefsT_char_xsd__cxx__tree__simple_type_xsd__cxx__tree__idref_t_xsd__cxx__tree__fundamental_pT_xsd__cxx__tree__idrefsT_char_xsd__cxx__tree__simple_type_xsd__cxx__tree__idref_t_t__r_t,
_swigc__p_xsd__cxx__tree__optionalT_xsd__cxx__tree__stringT_char_xsd__cxx__tree__simple_type_t_false_t,
_swigc__p_xsd__cxx__tree__parsingT_char_t,
_swigc__p_xsd__cxx__tree__propertiesT_char_t,
_swigc__p_xsd__cxx__tree__qnameT_char_xsd__cxx__tree__simple_type_xsd__cxx__tree__uri_xsd__cxx__tree__ncname_t,
_swigc__p_xsd__cxx__tree__sequenceT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_Default_Default_false_t,
_swigc__p_xsd__cxx__tree__sequenceT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Ceiling_false_t,
_swigc__p_xsd__cxx__tree__sequenceT_schema__simxml__ResourcesGeneral__SimMaterialLayerSet_OpaqueLayerSet_Roof_false_t,
_swigc__p_xsd__cxx__tree__sequenceT_xsd__cxx__tree__stringT_char_xsd__cxx__tree__simple_typeT_char_xsd__cxx__tree__type_t_t_false_t,
_swigc__p_xsd__cxx__tree__sequence_common,
_swigc__p_xsd__cxx__tree__severity,
_swigc__p_xsd__cxx__tree__simple_typeT_char_xsd__cxx__tree___type_t,
_swigc__p_xsd__cxx__tree__stringT_char_xsd__cxx__tree__simple_typeT_char_xsd__cxx__tree__type_t_t,
_swigc__p_xsd__cxx__tree__stringT_char_xsd__cxx__tree__simple_type_t,
_swigc__p_xsd__cxx__tree__timeT_char_xsd__cxx__tree__simple_typeT_char_xsd__cxx__tree___type_t_t,
_swigc__p_xsd__cxx__tree__time_zone,
_swigc__p_xsd__cxx__tree__tokenT_char_xsd__cxx__tree__normalized_string_t,
_swigc__p_xsd__cxx__tree__unexpected_elementT_char_t,
_swigc__p_xsd__cxx__tree__unexpected_enumeratorT_char_t,
_swigc__p_xsd__cxx__tree__uriT_char_xsd__cxx__tree__simple_type_t,
_swigc__p_xsd__cxx__tree__user_data_keys_templateT_0_t,
_swigc__p_xsd__cxx__xml__error_handlerT_char_t,
};
/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
static swig_const_info swig_const_table[] = {
{0, 0, 0, 0.0, 0, 0}};
#ifdef __cplusplus
}
#endif
/* -----------------------------------------------------------------------------
* Type initialization:
* This problem is tough by the requirement that no dynamic
* memory is used. Also, since swig_type_info structures store pointers to
* swig_cast_info structures and swig_cast_info structures store pointers back
* to swig_type_info structures, we need some lookup code at initialization.
* The idea is that swig generates all the structures that are needed.
* The runtime then collects these partially filled structures.
* The SWIG_InitializeModule function takes these initial arrays out of
* swig_module, and does all the lookup, filling in the swig_module.types
* array with the correct data and linking the correct swig_cast_info
* structures together.
*
* The generated swig_type_info structures are assigned statically to an initial
* array. We just loop through that array, and handle each type individually.
* First we lookup if this type has been already loaded, and if so, use the
* loaded structure instead of the generated one. Then we have to fill in the
* cast linked list. The cast data is initially stored in something like a
* two-dimensional array. Each row corresponds to a type (there are the same
* number of rows as there are in the swig_type_initial array). Each entry in
* a column is one of the swig_cast_info structures for that type.
* The cast_initial array is actually an array of arrays, because each row has
* a variable number of columns. So to actually build the cast linked list,
* we find the array of casts associated with the type, and loop through it
* adding the casts to the list. The one last trick we need to do is making
* sure the type pointer in the swig_cast_info struct is correct.
*
* First off, we lookup the cast->type name to see if it is already loaded.
* There are three cases to handle:
* 1) If the cast->type has already been loaded AND the type we are adding
* casting info to has not been loaded (it is in this module), THEN we
* replace the cast->type pointer with the type pointer that has already
* been loaded.
* 2) If BOTH types (the one we are adding casting info to, and the
* cast->type) are loaded, THEN the cast info has already been loaded by
* the previous module so we just ignore it.
* 3) Finally, if cast->type has not already been loaded, then we add that
* swig_cast_info to the linked list (because the cast->type) pointer will
* be correct.
* ----------------------------------------------------------------------------- */
#ifdef __cplusplus
extern "C" {
#if 0
} /* c-mode */
#endif
#endif
#if 0
#define SWIGRUNTIME_DEBUG
#endif
SWIGRUNTIME void
SWIG_InitializeModule(void *clientdata) {
size_t i;
swig_module_info *module_head, *iter;
int init;
/* check to see if the circular list has been setup, if not, set it up */
if (swig_module.next==0) {
/* Initialize the swig_module */
swig_module.type_initial = swig_type_initial;
swig_module.cast_initial = swig_cast_initial;
swig_module.next = &swig_module;
init = 1;
} else {
init = 0;
}
/* Try and load any already created modules */
module_head = SWIG_GetModule(clientdata);
if (!module_head) {
/* This is the first module loaded for this interpreter */
/* so set the swig module into the interpreter */
SWIG_SetModule(clientdata, &swig_module);
} else {
/* the interpreter has loaded a SWIG module, but has it loaded this one? */
iter=module_head;
do {
if (iter==&swig_module) {
/* Our module is already in the list, so there's nothing more to do. */
return;
}
iter=iter->next;
} while (iter!= module_head);
/* otherwise we must add our module into the list */
swig_module.next = module_head->next;
module_head->next = &swig_module;
}
/* When multiple interpreters are used, a module could have already been initialized in
a different interpreter, but not yet have a pointer in this interpreter.
In this case, we do not want to continue adding types... everything should be
set up already */
if (init == 0) return;
/* Now work on filling in swig_module.types */
#ifdef SWIGRUNTIME_DEBUG
printf("SWIG_InitializeModule: size %d\n", swig_module.size);
#endif
for (i = 0; i < swig_module.size; ++i) {
swig_type_info *type = 0;
swig_type_info *ret;
swig_cast_info *cast;
#ifdef SWIGRUNTIME_DEBUG
printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
#endif
/* if there is another module already loaded */
if (swig_module.next != &swig_module) {
type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
}
if (type) {
/* Overwrite clientdata field */
#ifdef SWIGRUNTIME_DEBUG
printf("SWIG_InitializeModule: found type %s\n", type->name);
#endif
if (swig_module.type_initial[i]->clientdata) {
type->clientdata = swig_module.type_initial[i]->clientdata;
#ifdef SWIGRUNTIME_DEBUG
printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
#endif
}
} else {
type = swig_module.type_initial[i];
}
/* Insert casting types */
cast = swig_module.cast_initial[i];
while (cast->type) {
/* Don't need to add information already in the list */
ret = 0;
#ifdef SWIGRUNTIME_DEBUG
printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
#endif
if (swig_module.next != &swig_module) {
ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
#ifdef SWIGRUNTIME_DEBUG
if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
#endif
}
if (ret) {
if (type == swig_module.type_initial[i]) {
#ifdef SWIGRUNTIME_DEBUG
printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
#endif
cast->type = ret;
ret = 0;
} else {
/* Check for casting already in the list */
swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
#ifdef SWIGRUNTIME_DEBUG
if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
#endif
if (!ocast) ret = 0;
}
}
if (!ret) {
#ifdef SWIGRUNTIME_DEBUG
printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
#endif
if (type->cast) {
type->cast->prev = cast;
cast->next = type->cast;
}
type->cast = cast;
}
cast++;
}
/* Set entry in modules->types array equal to the type */
swig_module.types[i] = type;
}
swig_module.types[i] = 0;
#ifdef SWIGRUNTIME_DEBUG
printf("**** SWIG_InitializeModule: Cast List ******\n");
for (i = 0; i < swig_module.size; ++i) {
int j = 0;
swig_cast_info *cast = swig_module.cast_initial[i];
printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
while (cast->type) {
printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
cast++;
++j;
}
printf("---- Total casts: %d\n",j);
}
printf("**** SWIG_InitializeModule: Cast List ******\n");
#endif
}
/* This function will propagate the clientdata field of type to
* any new swig_type_info structures that have been added into the list
* of equivalent types. It is like calling
* SWIG_TypeClientData(type, clientdata) a second time.
*/
SWIGRUNTIME void
SWIG_PropagateClientData(void) {
size_t i;
swig_cast_info *equiv;
static int init_run = 0;
if (init_run) return;
init_run = 1;
for (i = 0; i < swig_module.size; i++) {
if (swig_module.types[i]->clientdata) {
equiv = swig_module.types[i]->cast;
while (equiv) {
if (!equiv->converter) {
if (equiv->type && !equiv->type->clientdata)
SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
}
equiv = equiv->next;
}
}
}
}
#ifdef __cplusplus
#if 0
{
/* c-mode */
#endif
}
#endif
#ifdef __cplusplus
extern "C" {
#endif
/* Python-specific SWIG API */
#define SWIG_newvarlink() SWIG_Python_newvarlink()
#define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
#define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
/* -----------------------------------------------------------------------------
* global variable support code.
* ----------------------------------------------------------------------------- */
typedef struct swig_globalvar {
char *name; /* Name of global variable */
PyObject *(*get_attr)(void); /* Return the current value */
int (*set_attr)(PyObject *); /* Set the value */
struct swig_globalvar *next;
} swig_globalvar;
typedef struct swig_varlinkobject {
PyObject_HEAD
swig_globalvar *vars;
} swig_varlinkobject;
SWIGINTERN PyObject *
swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
#if PY_VERSION_HEX >= 0x03000000
return PyUnicode_InternFromString("<Swig global variables>");
#else
return PyString_FromString("<Swig global variables>");
#endif
}
SWIGINTERN PyObject *
swig_varlink_str(swig_varlinkobject *v) {
#if PY_VERSION_HEX >= 0x03000000
PyObject *str = PyUnicode_InternFromString("(");
PyObject *tail;
PyObject *joined;
swig_globalvar *var;
for (var = v->vars; var; var=var->next) {
tail = PyUnicode_FromString(var->name);
joined = PyUnicode_Concat(str, tail);
Py_DecRef(str);
Py_DecRef(tail);
str = joined;
if (var->next) {
tail = PyUnicode_InternFromString(", ");
joined = PyUnicode_Concat(str, tail);
Py_DecRef(str);
Py_DecRef(tail);
str = joined;
}
}
tail = PyUnicode_InternFromString(")");
joined = PyUnicode_Concat(str, tail);
Py_DecRef(str);
Py_DecRef(tail);
str = joined;
#else
PyObject *str = PyString_FromString("(");
swig_globalvar *var;
for (var = v->vars; var; var=var->next) {
PyString_ConcatAndDel(&str,PyString_FromString(var->name));
if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
}
PyString_ConcatAndDel(&str,PyString_FromString(")"));
#endif
return str;
}
SWIGINTERN int
swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
char *tmp;
PyObject *str = swig_varlink_str(v);
fprintf(fp,"Swig global variables ");
fprintf(fp,"%s\n", tmp = SWIG_Python_str_AsChar(str));
SWIG_Python_str_DelForPy3(tmp);
Py_DECREF(str);
return 0;
}
SWIGINTERN void
swig_varlink_dealloc(swig_varlinkobject *v) {
swig_globalvar *var = v->vars;
while (var) {
swig_globalvar *n = var->next;
free(var->name);
free(var);
var = n;
}
}
SWIGINTERN PyObject *
swig_varlink_getattr(swig_varlinkobject *v, char *n) {
PyObject *res = NULL;
swig_globalvar *var = v->vars;
while (var) {
if (strcmp(var->name,n) == 0) {
res = (*var->get_attr)();
break;
}
var = var->next;
}
if (res == NULL && !PyErr_Occurred()) {
PyErr_Format(PyExc_AttributeError, "Unknown C global variable '%s'", n);
}
return res;
}
SWIGINTERN int
swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
int res = 1;
swig_globalvar *var = v->vars;
while (var) {
if (strcmp(var->name,n) == 0) {
res = (*var->set_attr)(p);
break;
}
var = var->next;
}
if (res == 1 && !PyErr_Occurred()) {
PyErr_Format(PyExc_AttributeError, "Unknown C global variable '%s'", n);
}
return res;
}
SWIGINTERN PyTypeObject*
swig_varlink_type(void) {
static char varlink__doc__[] = "Swig var link object";
static PyTypeObject varlink_type;
static int type_init = 0;
if (!type_init) {
const PyTypeObject tmp = {
/* PyObject header changed in Python 3 */
#if PY_VERSION_HEX >= 0x03000000
PyVarObject_HEAD_INIT(NULL, 0)
#else
PyObject_HEAD_INIT(NULL)
0, /* ob_size */
#endif
(char *)"swigvarlink", /* tp_name */
sizeof(swig_varlinkobject), /* tp_basicsize */
0, /* tp_itemsize */
(destructor) swig_varlink_dealloc, /* tp_dealloc */
(printfunc) swig_varlink_print, /* tp_print */
(getattrfunc) swig_varlink_getattr, /* tp_getattr */
(setattrfunc) swig_varlink_setattr, /* tp_setattr */
0, /* tp_compare */
(reprfunc) swig_varlink_repr, /* tp_repr */
0, /* tp_as_number */
0, /* tp_as_sequence */
0, /* tp_as_mapping */
0, /* tp_hash */
0, /* tp_call */
(reprfunc) swig_varlink_str, /* tp_str */
0, /* tp_getattro */
0, /* tp_setattro */
0, /* tp_as_buffer */
0, /* tp_flags */
varlink__doc__, /* tp_doc */
0, /* tp_traverse */
0, /* tp_clear */
0, /* tp_richcompare */
0, /* tp_weaklistoffset */
#if PY_VERSION_HEX >= 0x02020000
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
#endif
#if PY_VERSION_HEX >= 0x02030000
0, /* tp_del */
#endif
#if PY_VERSION_HEX >= 0x02060000
0, /* tp_version */
#endif
#ifdef COUNT_ALLOCS
0,0,0,0 /* tp_alloc -> tp_next */
#endif
};
varlink_type = tmp;
type_init = 1;
#if PY_VERSION_HEX < 0x02020000
varlink_type.ob_type = &PyType_Type;
#else
if (PyType_Ready(&varlink_type) < 0)
return NULL;
#endif
}
return &varlink_type;
}
/* Create a variable linking object for use later */
SWIGINTERN PyObject *
SWIG_Python_newvarlink(void) {
swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
if (result) {
result->vars = 0;
}
return ((PyObject*) result);
}
SWIGINTERN void
SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
swig_varlinkobject *v = (swig_varlinkobject *) p;
swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
if (gv) {
size_t size = strlen(name)+1;
gv->name = (char *)malloc(size);
if (gv->name) {
strncpy(gv->name,name,size);
gv->get_attr = get_attr;
gv->set_attr = set_attr;
gv->next = v->vars;
}
}
v->vars = gv;
}
SWIGINTERN PyObject *
SWIG_globals(void) {
static PyObject *_SWIG_globals = 0;
if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
return _SWIG_globals;
}
/* -----------------------------------------------------------------------------
* constants/methods manipulation
* ----------------------------------------------------------------------------- */
/* Install Constants */
SWIGINTERN void
SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
PyObject *obj = 0;
size_t i;
for (i = 0; constants[i].type; ++i) {
switch(constants[i].type) {
case SWIG_PY_POINTER:
obj = SWIG_InternalNewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
break;
case SWIG_PY_BINARY:
obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
break;
default:
obj = 0;
break;
}
if (obj) {
PyDict_SetItemString(d, constants[i].name, obj);
Py_DECREF(obj);
}
}
}
/* -----------------------------------------------------------------------------*/
/* Fix SwigMethods to carry the callback ptrs when needed */
/* -----------------------------------------------------------------------------*/
SWIGINTERN void
SWIG_Python_FixMethods(PyMethodDef *methods,
swig_const_info *const_table,
swig_type_info **types,
swig_type_info **types_initial) {
size_t i;
for (i = 0; methods[i].ml_name; ++i) {
const char *c = methods[i].ml_doc;
if (!c) continue;
c = strstr(c, "swig_ptr: ");
if (c) {
int j;
swig_const_info *ci = 0;
const char *name = c + 10;
for (j = 0; const_table[j].type; ++j) {
if (strncmp(const_table[j].name, name,
strlen(const_table[j].name)) == 0) {
ci = &(const_table[j]);
break;
}
}
if (ci) {
void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
if (ptr) {
size_t shift = (ci->ptype) - types;
swig_type_info *ty = types_initial[shift];
size_t ldoc = (c - methods[i].ml_doc);
size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
char *ndoc = (char*)malloc(ldoc + lptr + 10);
if (ndoc) {
char *buff = ndoc;
strncpy(buff, methods[i].ml_doc, ldoc);
buff += ldoc;
strncpy(buff, "swig_ptr: ", 10);
buff += 10;
SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
methods[i].ml_doc = ndoc;
}
}
}
}
}
}
#ifdef __cplusplus
}
#endif
/* -----------------------------------------------------------------------------*
* Partial Init method
* -----------------------------------------------------------------------------*/
#ifdef __cplusplus
extern "C"
#endif
SWIGEXPORT
#if PY_VERSION_HEX >= 0x03000000
PyObject*
#else
void
#endif
SWIG_init(void) {
PyObject *m, *d, *md;
#if PY_VERSION_HEX >= 0x03000000
static struct PyModuleDef SWIG_module = {
# if PY_VERSION_HEX >= 0x03020000
PyModuleDef_HEAD_INIT,
# else
{
PyObject_HEAD_INIT(NULL)
NULL, /* m_init */
0, /* m_index */
NULL, /* m_copy */
},
# endif
(char *) SWIG_name,
NULL,
-1,
SwigMethods,
NULL,
NULL,
NULL,
NULL
};
#endif
#if defined(SWIGPYTHON_BUILTIN)
static SwigPyClientData SwigPyObject_clientdata = {
0, 0, 0, 0, 0, 0, 0
};
static PyGetSetDef this_getset_def = {
(char *)"this", &SwigPyBuiltin_ThisClosure, NULL, NULL, NULL
};
static SwigPyGetSet thisown_getset_closure = {
(PyCFunction) SwigPyObject_own,
(PyCFunction) SwigPyObject_own
};
static PyGetSetDef thisown_getset_def = {
(char *)"thisown", SwigPyBuiltin_GetterClosure, SwigPyBuiltin_SetterClosure, NULL, &thisown_getset_closure
};
PyObject *metatype_args;
PyTypeObject *builtin_pytype;
int builtin_base_count;
swig_type_info *builtin_basetype;
PyObject *tuple;
PyGetSetDescrObject *static_getset;
PyTypeObject *metatype;
SwigPyClientData *cd;
PyObject *public_interface, *public_symbol;
PyObject *this_descr;
PyObject *thisown_descr;
PyObject *self = 0;
int i;
(void)builtin_pytype;
(void)builtin_base_count;
(void)builtin_basetype;
(void)tuple;
(void)static_getset;
(void)self;
/* metatype is used to implement static member variables. */
metatype_args = Py_BuildValue("(s(O){})", "SwigPyObjectType", &PyType_Type);
assert(metatype_args);
metatype = (PyTypeObject *) PyType_Type.tp_call((PyObject *) &PyType_Type, metatype_args, NULL);
assert(metatype);
Py_DECREF(metatype_args);
metatype->tp_setattro = (setattrofunc) &SwigPyObjectType_setattro;
assert(PyType_Ready(metatype) >= 0);
#endif
/* Fix SwigMethods to carry the callback ptrs when needed */
SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
#if PY_VERSION_HEX >= 0x03000000
m = PyModule_Create(&SWIG_module);
#else
m = Py_InitModule((char *) SWIG_name, SwigMethods);
#endif
md = d = PyModule_GetDict(m);
(void)md;
SWIG_InitializeModule(0);
#ifdef SWIGPYTHON_BUILTIN
SwigPyObject_stype = SWIG_MangledTypeQuery("_p_SwigPyObject");
assert(SwigPyObject_stype);
cd = (SwigPyClientData*) SwigPyObject_stype->clientdata;
if (!cd) {
SwigPyObject_stype->clientdata = &SwigPyObject_clientdata;
SwigPyObject_clientdata.pytype = SwigPyObject_TypeOnce();
} else if (SwigPyObject_TypeOnce()->tp_basicsize != cd->pytype->tp_basicsize) {
PyErr_SetString(PyExc_RuntimeError, "Import error: attempted to load two incompatible swig-generated modules.");
# if PY_VERSION_HEX >= 0x03000000
return NULL;
# else
return;
# endif
}
/* All objects have a 'this' attribute */
this_descr = PyDescr_NewGetSet(SwigPyObject_type(), &this_getset_def);
(void)this_descr;
/* All objects have a 'thisown' attribute */
thisown_descr = PyDescr_NewGetSet(SwigPyObject_type(), &thisown_getset_def);
(void)thisown_descr;
public_interface = PyList_New(0);
public_symbol = 0;
(void)public_symbol;
PyDict_SetItemString(md, "__all__", public_interface);
Py_DECREF(public_interface);
for (i = 0; SwigMethods[i].ml_name != NULL; ++i)
SwigPyBuiltin_AddPublicSymbol(public_interface, SwigMethods[i].ml_name);
for (i = 0; swig_const_table[i].name != 0; ++i)
SwigPyBuiltin_AddPublicSymbol(public_interface, swig_const_table[i].name);
#endif
SWIG_InstallConstants(d,swig_const_table);
#if PY_VERSION_HEX >= 0x03000000
return m;
#else
return;
#endif
}
|
_Route14BattleText1::
text "You need to use"
line "TMs to teach good"
cont "moves to #MON!"
done
_Route14EndBattleText1::
text "Not"
line "good enough!"
prompt
_Route14AfterBattleText1::
text "You have some HMs"
line "right? #MON"
cont "can't ever forget"
cont "those moves."
done
_Route14BattleText2::
text "My bird #MON"
line "should be ready"
cont "for battle."
done
_Route14EndBattleText2::
text "Not"
line "ready yet!"
prompt
_Route14AfterBattleText2::
text "They need to learn"
line "better moves."
done
_Route14BattleText3::
text "TMs are on sale"
line "in CELADON!"
cont "But, only a few"
cont "people have HMs!"
done
_Route14EndBattleText3::
text "Aww,"
line "bummer!"
prompt
_Route14AfterBattleText3::
text "Teach #MON"
line "moves of the same"
cont "element type for"
cont "more power."
done
_Route14BattleText4::
text "Have you taught"
line "your bird #MON"
cont "how to FLY?"
done
_Route14EndBattleText4::
text "Shot"
line "down in flames!"
prompt
_Route14AfterBattleText4::
text "Bird #MON are"
line "my true love!"
done
_Route14BattleText5::
text "Have you heard of"
line "the legendary"
cont "#MON?"
done
_Route14EndBattleText5::
text "Why?"
line "Why'd I lose?"
prompt
_Route14AfterBattleText5::
text "The 3 legendary"
line "#MON are all"
cont "birds of prey."
done
_Route14BattleText6::
text "I'm not into it,"
line "but OK! Let's go!"
done
_Route14EndBattleText6::
text "I"
line "knew it!"
prompt
_Route14AfterBattleText6::
text "Winning, losing,"
line "it doesn't matter"
cont "in the long run!"
done
_Route14BattleText7::
text "C'mon, c'mon."
line "Let's go, let's"
cont "go, let's go!"
done
_Route14EndBattleText7::
text "Arrg!"
line "Lost! Get lost!"
prompt
_Route14AfterBattleText7::
text "What, what, what?"
line "What do you want?"
done
_Route14BattleText8::
text "Perfect! I need to"
line "burn some time!"
done
_Route14EndBattleText8::
text "What?"
line "You!?"
prompt
_Route14AfterBattleText8::
text "Raising #MON"
line "is a drag, man."
done
_Route14BattleText9::
text "We ride out here"
line "because there's"
cont "more room!"
done
_Route14EndBattleText9::
text "Wipe out!"
prompt
_Route14AfterBattleText9::
text "It's cool you"
line "made your #MON"
cont "so strong!"
para "Might is right!"
line "And you know it!"
done
_Route14BattleText10::
text "#MON fight?"
line "Cool! Rumble!"
done
_Route14EndBattleText10::
text "Blown"
line "away!"
prompt
_Route14AfterBattleText10::
text "You know who'd"
line "win, you and me"
cont "one on one!"
done
_Route14Text11::
text "ROUTE 14"
line "West to FUCHSIA"
cont "CITY"
done
|
; A145700: Numbers x such that there exists n in N with (x+1)^3-x^3=37*n^2.
; Submitted by Jon Maiga
; 3,2068,1220411,720040716,424822802323,250644733330148,147879967841985291,87248930382037991836,51476721045434573198243,30371178167876016148971828,17918943642325804093320180571,10572146377794056539042757565356,6237548443954851032231133643379763
mov $2,1
lpb $0
sub $0,1
add $3,1
mov $1,$3
mul $1,588
add $2,$1
add $3,$2
lpe
mov $0,$3
div $0,2
mul $0,7
add $0,3
|
; A060892: n^8-n^6+n^4-n^2+1.
; 1,1,205,5905,61681,375601,1634221,5649505,16519105,42521761,99009901,212601841,427016305,810932305,1468297741,2551550401,4278255361,6951703105,10986053005,16936647121,25536159601,37737287281,54762727405,78163228705,109884542401,152344140001,208518605101,282042646705,377320721905,499652296081,655371809101,852004456321,1098438933505,1405118335105,1784250435661,2250038624401,2818934803441,3509915600305,4344783285805,5348492828641,6549506558401,7980177948961,9677166074605,11681882331505
pow $0,2
mov $1,$0
pow $0,3
add $0,1
sub $1,1
add $0,$1
mul $0,$1
div $0,12
mul $0,12
add $0,1
|
; ===============================================================
; Mar 2014
; ===============================================================
;
; void *b_array_insert_block(b_array_t *a, size_t idx, size_t n)
;
; Inserts n uninitialized bytes before idx into the array and
; returns the address of the inserted bytes.
;
; ===============================================================
SECTION code_clib
SECTION code_adt_b_array
PUBLIC asm_b_array_insert_block
PUBLIC asm0_b_array_insert_block, asm1_b_array_insert_block
EXTERN asm0_b_array_append_block, asm_memmove, error_zc
asm_b_array_insert_block:
; enter : hl = array *
; de = n
; bc = idx
;
; exit : success
;
; hl = & array.data[idx]
; carry reset
;
; fail if idx > array.size or array too small
;
; hl = 0
; carry set
;
; uses : af, bc, de, hl
inc hl
inc hl
asm0_b_array_insert_block:
push de ; save n
ld e,(hl)
inc hl
ld d,(hl)
ex de,hl ; hl = array.size
or a
sbc hl,bc ; hl = array.size - idx
jp c, error_zc - 1 ; if array.size < idx
; bc = idx
; hl = array.size - idx
; de = & array.size + 1b
; stack = n
ex (sp),hl
push bc
ex de,hl
; hl = & array.size + 1b
; de = n
; stack = array.size - idx, idx
dec hl ; hl = & array.size
push hl ; save & array.size
call asm0_b_array_append_block
pop hl ; hl = & array.size
jp c, error_zc - 2 ; if array too small
asm1_b_array_insert_block:
; sufficient room for insertion
; hl = & array.size
; bc = n
; stack = array.size - idx, idx
dec hl
ld d,(hl)
dec hl
ld e,(hl) ; de = array.data
pop hl ; hl = idx
add hl,de
ld e,l
ld d,h ; de = & array.data[idx]
add hl,bc ; hl = & array.data[idx + n]
pop bc ; bc = array.size - idx
ex de,hl
; hl = & array.data[idx]
; de = & array.data[idx + n]
; bc = array.size - idx
push hl ; save & array.data[idx]
call asm_memmove ; copy array data forward
pop hl ; hl = & array.data[idx]
ret
|
.global s_prepare_buffers
s_prepare_buffers:
push %r8
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0x305b, %rsi
lea addresses_WT_ht+0xf1af, %rdi
nop
inc %r8
mov $55, %rcx
rep movsb
nop
nop
nop
nop
nop
add %rdi, %rdi
pop %rsi
pop %rdi
pop %rcx
pop %r8
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r13
push %r14
push %rax
push %rbx
push %rcx
push %rsi
// Store
lea addresses_normal+0x149b, %rax
xor %rsi, %rsi
mov $0x5152535455565758, %r13
movq %r13, %xmm6
vmovups %ymm6, (%rax)
nop
nop
nop
nop
nop
sub %r14, %r14
// Load
lea addresses_normal+0x1db93, %rax
nop
nop
nop
nop
nop
inc %r11
mov (%rax), %r14w
nop
nop
nop
nop
nop
inc %rsi
// Store
lea addresses_normal+0xec9b, %rcx
nop
nop
dec %rax
mov $0x5152535455565758, %r11
movq %r11, (%rcx)
cmp %r11, %r11
// Store
lea addresses_WC+0x289, %rcx
nop
nop
add %r11, %r11
movl $0x51525354, (%rcx)
nop
nop
nop
nop
nop
xor %r14, %r14
// Store
lea addresses_UC+0x3f9b, %r11
nop
nop
nop
cmp %rsi, %rsi
movl $0x51525354, (%r11)
nop
sub $22810, %rax
// Faulty Load
lea addresses_normal+0x149b, %r13
nop
nop
nop
sub $40140, %rbx
mov (%r13), %r11
lea oracles, %r13
and $0xff, %r11
shlq $12, %r11
mov (%r13,%r11,1), %r11
pop %rsi
pop %rcx
pop %rbx
pop %rax
pop %r14
pop %r13
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'size': 32, 'NT': False, 'type': 'addresses_normal', 'same': False, 'AVXalign': False, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'size': 32, 'NT': False, 'type': 'addresses_normal', 'same': True, 'AVXalign': False, 'congruent': 0}}
{'OP': 'LOAD', 'src': {'size': 2, 'NT': False, 'type': 'addresses_normal', 'same': False, 'AVXalign': False, 'congruent': 1}}
{'OP': 'STOR', 'dst': {'size': 8, 'NT': False, 'type': 'addresses_normal', 'same': False, 'AVXalign': False, 'congruent': 11}}
{'OP': 'STOR', 'dst': {'size': 4, 'NT': True, 'type': 'addresses_WC', 'same': False, 'AVXalign': False, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'size': 4, 'NT': False, 'type': 'addresses_UC', 'same': False, 'AVXalign': False, 'congruent': 8}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'size': 8, 'NT': False, 'type': 'addresses_normal', 'same': True, 'AVXalign': False, 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_UC_ht', 'congruent': 5}, 'dst': {'same': False, 'type': 'addresses_WT_ht', 'congruent': 2}}
{'58': 21829}
58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58
*/
|
[map all memdisk_chs_512.map]
%define EDD 0
%define ELTORITO 0
%define SECTORSIZE_LG2 9 ; log2(sector size)
%include "memdisk.inc"
|
_wc: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
printf(1, "%d %d %d %s\n", l, w, c, name);
}
int
main(int argc, char *argv[])
{
0: 55 push %ebp
1: 89 e5 mov %esp,%ebp
3: 57 push %edi
4: 56 push %esi
int fd, i;
if(argc <= 1){
5: be 01 00 00 00 mov $0x1,%esi
printf(1, "%d %d %d %s\n", l, w, c, name);
}
int
main(int argc, char *argv[])
{
a: 53 push %ebx
b: 83 e4 f0 and $0xfffffff0,%esp
e: 83 ec 10 sub $0x10,%esp
11: 8b 45 0c mov 0xc(%ebp),%eax
int fd, i;
if(argc <= 1){
14: 83 7d 08 01 cmpl $0x1,0x8(%ebp)
18: 8d 58 04 lea 0x4(%eax),%ebx
1b: 7e 60 jle 7d <main+0x7d>
1d: 8d 76 00 lea 0x0(%esi),%esi
wc(0, "");
exit();
}
for(i = 1; i < argc; i++){
if((fd = open(argv[i], 0)) < 0){
20: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp)
27: 00
28: 8b 03 mov (%ebx),%eax
2a: 89 04 24 mov %eax,(%esp)
2d: e8 c0 03 00 00 call 3f2 <open>
32: 85 c0 test %eax,%eax
34: 89 c7 mov %eax,%edi
36: 78 26 js 5e <main+0x5e>
printf(1, "wc: cannot open %s\n", argv[i]);
exit();
}
wc(fd, argv[i]);
38: 8b 13 mov (%ebx),%edx
if(argc <= 1){
wc(0, "");
exit();
}
for(i = 1; i < argc; i++){
3a: 83 c6 01 add $0x1,%esi
3d: 83 c3 04 add $0x4,%ebx
if((fd = open(argv[i], 0)) < 0){
printf(1, "wc: cannot open %s\n", argv[i]);
exit();
}
wc(fd, argv[i]);
40: 89 04 24 mov %eax,(%esp)
43: 89 54 24 04 mov %edx,0x4(%esp)
47: e8 54 00 00 00 call a0 <wc>
close(fd);
4c: 89 3c 24 mov %edi,(%esp)
4f: e8 86 03 00 00 call 3da <close>
if(argc <= 1){
wc(0, "");
exit();
}
for(i = 1; i < argc; i++){
54: 3b 75 08 cmp 0x8(%ebp),%esi
57: 75 c7 jne 20 <main+0x20>
exit();
}
wc(fd, argv[i]);
close(fd);
}
exit();
59: e8 54 03 00 00 call 3b2 <exit>
exit();
}
for(i = 1; i < argc; i++){
if((fd = open(argv[i], 0)) < 0){
printf(1, "wc: cannot open %s\n", argv[i]);
5e: 8b 03 mov (%ebx),%eax
60: c7 44 24 04 89 08 00 movl $0x889,0x4(%esp)
67: 00
68: c7 04 24 01 00 00 00 movl $0x1,(%esp)
6f: 89 44 24 08 mov %eax,0x8(%esp)
73: e8 88 04 00 00 call 500 <printf>
exit();
78: e8 35 03 00 00 call 3b2 <exit>
main(int argc, char *argv[])
{
int fd, i;
if(argc <= 1){
wc(0, "");
7d: c7 44 24 04 7b 08 00 movl $0x87b,0x4(%esp)
84: 00
85: c7 04 24 00 00 00 00 movl $0x0,(%esp)
8c: e8 0f 00 00 00 call a0 <wc>
exit();
91: e8 1c 03 00 00 call 3b2 <exit>
96: 66 90 xchg %ax,%ax
98: 66 90 xchg %ax,%ax
9a: 66 90 xchg %ax,%ax
9c: 66 90 xchg %ax,%ax
9e: 66 90 xchg %ax,%ax
000000a0 <wc>:
char buf[512];
void
wc(int fd, char *name)
{
a0: 55 push %ebp
a1: 89 e5 mov %esp,%ebp
a3: 57 push %edi
a4: 56 push %esi
int i, n;
int l, w, c, inword;
l = w = c = 0;
inword = 0;
a5: 31 f6 xor %esi,%esi
char buf[512];
void
wc(int fd, char *name)
{
a7: 53 push %ebx
int i, n;
int l, w, c, inword;
l = w = c = 0;
a8: 31 db xor %ebx,%ebx
char buf[512];
void
wc(int fd, char *name)
{
aa: 83 ec 3c sub $0x3c,%esp
int i, n;
int l, w, c, inword;
l = w = c = 0;
ad: c7 45 dc 00 00 00 00 movl $0x0,-0x24(%ebp)
b4: c7 45 e0 00 00 00 00 movl $0x0,-0x20(%ebp)
bb: 90 nop
bc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
inword = 0;
while((n = read(fd, buf, sizeof(buf))) > 0){
c0: 8b 45 08 mov 0x8(%ebp),%eax
c3: c7 44 24 08 00 02 00 movl $0x200,0x8(%esp)
ca: 00
cb: c7 44 24 04 80 0b 00 movl $0xb80,0x4(%esp)
d2: 00
d3: 89 04 24 mov %eax,(%esp)
d6: e8 ef 02 00 00 call 3ca <read>
db: 83 f8 00 cmp $0x0,%eax
de: 89 45 e4 mov %eax,-0x1c(%ebp)
e1: 7e 54 jle 137 <wc+0x97>
e3: 31 ff xor %edi,%edi
e5: eb 0b jmp f2 <wc+0x52>
e7: 90 nop
for(i=0; i<n; i++){
c++;
if(buf[i] == '\n')
l++;
if(strchr(" \r\t\n\v", buf[i]))
inword = 0;
e8: 31 f6 xor %esi,%esi
int l, w, c, inword;
l = w = c = 0;
inword = 0;
while((n = read(fd, buf, sizeof(buf))) > 0){
for(i=0; i<n; i++){
ea: 83 c7 01 add $0x1,%edi
ed: 3b 7d e4 cmp -0x1c(%ebp),%edi
f0: 74 38 je 12a <wc+0x8a>
c++;
if(buf[i] == '\n')
f2: 0f be 87 80 0b 00 00 movsbl 0xb80(%edi),%eax
l++;
f9: 31 c9 xor %ecx,%ecx
if(strchr(" \r\t\n\v", buf[i]))
fb: c7 04 24 66 08 00 00 movl $0x866,(%esp)
inword = 0;
while((n = read(fd, buf, sizeof(buf))) > 0){
for(i=0; i<n; i++){
c++;
if(buf[i] == '\n')
l++;
102: 3c 0a cmp $0xa,%al
104: 0f 94 c1 sete %cl
if(strchr(" \r\t\n\v", buf[i]))
107: 89 44 24 04 mov %eax,0x4(%esp)
inword = 0;
while((n = read(fd, buf, sizeof(buf))) > 0){
for(i=0; i<n; i++){
c++;
if(buf[i] == '\n')
l++;
10b: 01 cb add %ecx,%ebx
if(strchr(" \r\t\n\v", buf[i]))
10d: e8 4e 01 00 00 call 260 <strchr>
112: 85 c0 test %eax,%eax
114: 75 d2 jne e8 <wc+0x48>
inword = 0;
else if(!inword){
116: 85 f6 test %esi,%esi
118: 75 16 jne 130 <wc+0x90>
w++;
11a: 83 45 e0 01 addl $0x1,-0x20(%ebp)
int l, w, c, inword;
l = w = c = 0;
inword = 0;
while((n = read(fd, buf, sizeof(buf))) > 0){
for(i=0; i<n; i++){
11e: 83 c7 01 add $0x1,%edi
121: 3b 7d e4 cmp -0x1c(%ebp),%edi
l++;
if(strchr(" \r\t\n\v", buf[i]))
inword = 0;
else if(!inword){
w++;
inword = 1;
124: 66 be 01 00 mov $0x1,%si
int l, w, c, inword;
l = w = c = 0;
inword = 0;
while((n = read(fd, buf, sizeof(buf))) > 0){
for(i=0; i<n; i++){
128: 75 c8 jne f2 <wc+0x52>
12a: 01 7d dc add %edi,-0x24(%ebp)
12d: eb 91 jmp c0 <wc+0x20>
12f: 90 nop
130: be 01 00 00 00 mov $0x1,%esi
135: eb b3 jmp ea <wc+0x4a>
w++;
inword = 1;
}
}
}
if(n < 0){
137: 75 35 jne 16e <wc+0xce>
printf(1, "wc: read error\n");
exit();
}
printf(1, "%d %d %d %s\n", l, w, c, name);
139: 8b 45 0c mov 0xc(%ebp),%eax
13c: 89 5c 24 08 mov %ebx,0x8(%esp)
140: c7 44 24 04 7c 08 00 movl $0x87c,0x4(%esp)
147: 00
148: c7 04 24 01 00 00 00 movl $0x1,(%esp)
14f: 89 44 24 14 mov %eax,0x14(%esp)
153: 8b 45 dc mov -0x24(%ebp),%eax
156: 89 44 24 10 mov %eax,0x10(%esp)
15a: 8b 45 e0 mov -0x20(%ebp),%eax
15d: 89 44 24 0c mov %eax,0xc(%esp)
161: e8 9a 03 00 00 call 500 <printf>
}
166: 83 c4 3c add $0x3c,%esp
169: 5b pop %ebx
16a: 5e pop %esi
16b: 5f pop %edi
16c: 5d pop %ebp
16d: c3 ret
inword = 1;
}
}
}
if(n < 0){
printf(1, "wc: read error\n");
16e: c7 44 24 04 6c 08 00 movl $0x86c,0x4(%esp)
175: 00
176: c7 04 24 01 00 00 00 movl $0x1,(%esp)
17d: e8 7e 03 00 00 call 500 <printf>
exit();
182: e8 2b 02 00 00 call 3b2 <exit>
187: 66 90 xchg %ax,%ax
189: 66 90 xchg %ax,%ax
18b: 66 90 xchg %ax,%ax
18d: 66 90 xchg %ax,%ax
18f: 90 nop
00000190 <strcpy>:
#include "user.h"
#include "x86.h"
char*
strcpy(char *s, char *t)
{
190: 55 push %ebp
191: 89 e5 mov %esp,%ebp
193: 8b 45 08 mov 0x8(%ebp),%eax
196: 8b 4d 0c mov 0xc(%ebp),%ecx
199: 53 push %ebx
char *os;
os = s;
while((*s++ = *t++) != 0)
19a: 89 c2 mov %eax,%edx
19c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
1a0: 83 c1 01 add $0x1,%ecx
1a3: 0f b6 59 ff movzbl -0x1(%ecx),%ebx
1a7: 83 c2 01 add $0x1,%edx
1aa: 84 db test %bl,%bl
1ac: 88 5a ff mov %bl,-0x1(%edx)
1af: 75 ef jne 1a0 <strcpy+0x10>
;
return os;
}
1b1: 5b pop %ebx
1b2: 5d pop %ebp
1b3: c3 ret
1b4: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
1ba: 8d bf 00 00 00 00 lea 0x0(%edi),%edi
000001c0 <strcmp>:
int
strcmp(const char *p, const char *q)
{
1c0: 55 push %ebp
1c1: 89 e5 mov %esp,%ebp
1c3: 8b 55 08 mov 0x8(%ebp),%edx
1c6: 53 push %ebx
1c7: 8b 4d 0c mov 0xc(%ebp),%ecx
while(*p && *p == *q)
1ca: 0f b6 02 movzbl (%edx),%eax
1cd: 84 c0 test %al,%al
1cf: 74 2d je 1fe <strcmp+0x3e>
1d1: 0f b6 19 movzbl (%ecx),%ebx
1d4: 38 d8 cmp %bl,%al
1d6: 74 0e je 1e6 <strcmp+0x26>
1d8: eb 2b jmp 205 <strcmp+0x45>
1da: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
1e0: 38 c8 cmp %cl,%al
1e2: 75 15 jne 1f9 <strcmp+0x39>
p++, q++;
1e4: 89 d9 mov %ebx,%ecx
1e6: 83 c2 01 add $0x1,%edx
}
int
strcmp(const char *p, const char *q)
{
while(*p && *p == *q)
1e9: 0f b6 02 movzbl (%edx),%eax
p++, q++;
1ec: 8d 59 01 lea 0x1(%ecx),%ebx
}
int
strcmp(const char *p, const char *q)
{
while(*p && *p == *q)
1ef: 0f b6 49 01 movzbl 0x1(%ecx),%ecx
1f3: 84 c0 test %al,%al
1f5: 75 e9 jne 1e0 <strcmp+0x20>
1f7: 31 c0 xor %eax,%eax
p++, q++;
return (uchar)*p - (uchar)*q;
1f9: 29 c8 sub %ecx,%eax
}
1fb: 5b pop %ebx
1fc: 5d pop %ebp
1fd: c3 ret
1fe: 0f b6 09 movzbl (%ecx),%ecx
}
int
strcmp(const char *p, const char *q)
{
while(*p && *p == *q)
201: 31 c0 xor %eax,%eax
203: eb f4 jmp 1f9 <strcmp+0x39>
205: 0f b6 cb movzbl %bl,%ecx
208: eb ef jmp 1f9 <strcmp+0x39>
20a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
00000210 <strlen>:
return (uchar)*p - (uchar)*q;
}
uint
strlen(char *s)
{
210: 55 push %ebp
211: 89 e5 mov %esp,%ebp
213: 8b 4d 08 mov 0x8(%ebp),%ecx
int n;
for(n = 0; s[n]; n++)
216: 80 39 00 cmpb $0x0,(%ecx)
219: 74 12 je 22d <strlen+0x1d>
21b: 31 d2 xor %edx,%edx
21d: 8d 76 00 lea 0x0(%esi),%esi
220: 83 c2 01 add $0x1,%edx
223: 80 3c 11 00 cmpb $0x0,(%ecx,%edx,1)
227: 89 d0 mov %edx,%eax
229: 75 f5 jne 220 <strlen+0x10>
;
return n;
}
22b: 5d pop %ebp
22c: c3 ret
uint
strlen(char *s)
{
int n;
for(n = 0; s[n]; n++)
22d: 31 c0 xor %eax,%eax
;
return n;
}
22f: 5d pop %ebp
230: c3 ret
231: eb 0d jmp 240 <memset>
233: 90 nop
234: 90 nop
235: 90 nop
236: 90 nop
237: 90 nop
238: 90 nop
239: 90 nop
23a: 90 nop
23b: 90 nop
23c: 90 nop
23d: 90 nop
23e: 90 nop
23f: 90 nop
00000240 <memset>:
void*
memset(void *dst, int c, uint n)
{
240: 55 push %ebp
241: 89 e5 mov %esp,%ebp
243: 8b 55 08 mov 0x8(%ebp),%edx
246: 57 push %edi
}
static inline void
stosb(void *addr, int data, int cnt)
{
asm volatile("cld; rep stosb" :
247: 8b 4d 10 mov 0x10(%ebp),%ecx
24a: 8b 45 0c mov 0xc(%ebp),%eax
24d: 89 d7 mov %edx,%edi
24f: fc cld
250: f3 aa rep stos %al,%es:(%edi)
stosb(dst, c, n);
return dst;
}
252: 89 d0 mov %edx,%eax
254: 5f pop %edi
255: 5d pop %ebp
256: c3 ret
257: 89 f6 mov %esi,%esi
259: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
00000260 <strchr>:
char*
strchr(const char *s, char c)
{
260: 55 push %ebp
261: 89 e5 mov %esp,%ebp
263: 8b 45 08 mov 0x8(%ebp),%eax
266: 53 push %ebx
267: 8b 55 0c mov 0xc(%ebp),%edx
for(; *s; s++)
26a: 0f b6 18 movzbl (%eax),%ebx
26d: 84 db test %bl,%bl
26f: 74 1d je 28e <strchr+0x2e>
if(*s == c)
271: 38 d3 cmp %dl,%bl
273: 89 d1 mov %edx,%ecx
275: 75 0d jne 284 <strchr+0x24>
277: eb 17 jmp 290 <strchr+0x30>
279: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
280: 38 ca cmp %cl,%dl
282: 74 0c je 290 <strchr+0x30>
}
char*
strchr(const char *s, char c)
{
for(; *s; s++)
284: 83 c0 01 add $0x1,%eax
287: 0f b6 10 movzbl (%eax),%edx
28a: 84 d2 test %dl,%dl
28c: 75 f2 jne 280 <strchr+0x20>
if(*s == c)
return (char*)s;
return 0;
28e: 31 c0 xor %eax,%eax
}
290: 5b pop %ebx
291: 5d pop %ebp
292: c3 ret
293: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
299: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
000002a0 <gets>:
char*
gets(char *buf, int max)
{
2a0: 55 push %ebp
2a1: 89 e5 mov %esp,%ebp
2a3: 57 push %edi
2a4: 56 push %esi
int i, cc;
char c;
for(i=0; i+1 < max; ){
2a5: 31 f6 xor %esi,%esi
return 0;
}
char*
gets(char *buf, int max)
{
2a7: 53 push %ebx
2a8: 83 ec 2c sub $0x2c,%esp
int i, cc;
char c;
for(i=0; i+1 < max; ){
cc = read(0, &c, 1);
2ab: 8d 7d e7 lea -0x19(%ebp),%edi
gets(char *buf, int max)
{
int i, cc;
char c;
for(i=0; i+1 < max; ){
2ae: eb 31 jmp 2e1 <gets+0x41>
cc = read(0, &c, 1);
2b0: c7 44 24 08 01 00 00 movl $0x1,0x8(%esp)
2b7: 00
2b8: 89 7c 24 04 mov %edi,0x4(%esp)
2bc: c7 04 24 00 00 00 00 movl $0x0,(%esp)
2c3: e8 02 01 00 00 call 3ca <read>
if(cc < 1)
2c8: 85 c0 test %eax,%eax
2ca: 7e 1d jle 2e9 <gets+0x49>
break;
buf[i++] = c;
2cc: 0f b6 45 e7 movzbl -0x19(%ebp),%eax
gets(char *buf, int max)
{
int i, cc;
char c;
for(i=0; i+1 < max; ){
2d0: 89 de mov %ebx,%esi
cc = read(0, &c, 1);
if(cc < 1)
break;
buf[i++] = c;
2d2: 8b 55 08 mov 0x8(%ebp),%edx
if(c == '\n' || c == '\r')
2d5: 3c 0d cmp $0xd,%al
for(i=0; i+1 < max; ){
cc = read(0, &c, 1);
if(cc < 1)
break;
buf[i++] = c;
2d7: 88 44 1a ff mov %al,-0x1(%edx,%ebx,1)
if(c == '\n' || c == '\r')
2db: 74 0c je 2e9 <gets+0x49>
2dd: 3c 0a cmp $0xa,%al
2df: 74 08 je 2e9 <gets+0x49>
gets(char *buf, int max)
{
int i, cc;
char c;
for(i=0; i+1 < max; ){
2e1: 8d 5e 01 lea 0x1(%esi),%ebx
2e4: 3b 5d 0c cmp 0xc(%ebp),%ebx
2e7: 7c c7 jl 2b0 <gets+0x10>
break;
buf[i++] = c;
if(c == '\n' || c == '\r')
break;
}
buf[i] = '\0';
2e9: 8b 45 08 mov 0x8(%ebp),%eax
2ec: c6 04 30 00 movb $0x0,(%eax,%esi,1)
return buf;
}
2f0: 83 c4 2c add $0x2c,%esp
2f3: 5b pop %ebx
2f4: 5e pop %esi
2f5: 5f pop %edi
2f6: 5d pop %ebp
2f7: c3 ret
2f8: 90 nop
2f9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
00000300 <stat>:
int
stat(char *n, struct stat *st)
{
300: 55 push %ebp
301: 89 e5 mov %esp,%ebp
303: 56 push %esi
304: 53 push %ebx
305: 83 ec 10 sub $0x10,%esp
int fd;
int r;
fd = open(n, O_RDONLY);
308: 8b 45 08 mov 0x8(%ebp),%eax
30b: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp)
312: 00
313: 89 04 24 mov %eax,(%esp)
316: e8 d7 00 00 00 call 3f2 <open>
if(fd < 0)
31b: 85 c0 test %eax,%eax
stat(char *n, struct stat *st)
{
int fd;
int r;
fd = open(n, O_RDONLY);
31d: 89 c3 mov %eax,%ebx
if(fd < 0)
31f: 78 27 js 348 <stat+0x48>
return -1;
r = fstat(fd, st);
321: 8b 45 0c mov 0xc(%ebp),%eax
324: 89 1c 24 mov %ebx,(%esp)
327: 89 44 24 04 mov %eax,0x4(%esp)
32b: e8 da 00 00 00 call 40a <fstat>
close(fd);
330: 89 1c 24 mov %ebx,(%esp)
int r;
fd = open(n, O_RDONLY);
if(fd < 0)
return -1;
r = fstat(fd, st);
333: 89 c6 mov %eax,%esi
close(fd);
335: e8 a0 00 00 00 call 3da <close>
return r;
33a: 89 f0 mov %esi,%eax
}
33c: 83 c4 10 add $0x10,%esp
33f: 5b pop %ebx
340: 5e pop %esi
341: 5d pop %ebp
342: c3 ret
343: 90 nop
344: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
int fd;
int r;
fd = open(n, O_RDONLY);
if(fd < 0)
return -1;
348: b8 ff ff ff ff mov $0xffffffff,%eax
34d: eb ed jmp 33c <stat+0x3c>
34f: 90 nop
00000350 <atoi>:
return r;
}
int
atoi(const char *s)
{
350: 55 push %ebp
351: 89 e5 mov %esp,%ebp
353: 8b 4d 08 mov 0x8(%ebp),%ecx
356: 53 push %ebx
int n;
n = 0;
while('0' <= *s && *s <= '9')
357: 0f be 11 movsbl (%ecx),%edx
35a: 8d 42 d0 lea -0x30(%edx),%eax
35d: 3c 09 cmp $0x9,%al
int
atoi(const char *s)
{
int n;
n = 0;
35f: b8 00 00 00 00 mov $0x0,%eax
while('0' <= *s && *s <= '9')
364: 77 17 ja 37d <atoi+0x2d>
366: 66 90 xchg %ax,%ax
n = n*10 + *s++ - '0';
368: 83 c1 01 add $0x1,%ecx
36b: 8d 04 80 lea (%eax,%eax,4),%eax
36e: 8d 44 42 d0 lea -0x30(%edx,%eax,2),%eax
atoi(const char *s)
{
int n;
n = 0;
while('0' <= *s && *s <= '9')
372: 0f be 11 movsbl (%ecx),%edx
375: 8d 5a d0 lea -0x30(%edx),%ebx
378: 80 fb 09 cmp $0x9,%bl
37b: 76 eb jbe 368 <atoi+0x18>
n = n*10 + *s++ - '0';
return n;
}
37d: 5b pop %ebx
37e: 5d pop %ebp
37f: c3 ret
00000380 <memmove>:
void*
memmove(void *vdst, void *vsrc, int n)
{
380: 55 push %ebp
char *dst, *src;
dst = vdst;
src = vsrc;
while(n-- > 0)
381: 31 d2 xor %edx,%edx
return n;
}
void*
memmove(void *vdst, void *vsrc, int n)
{
383: 89 e5 mov %esp,%ebp
385: 56 push %esi
386: 8b 45 08 mov 0x8(%ebp),%eax
389: 53 push %ebx
38a: 8b 5d 10 mov 0x10(%ebp),%ebx
38d: 8b 75 0c mov 0xc(%ebp),%esi
char *dst, *src;
dst = vdst;
src = vsrc;
while(n-- > 0)
390: 85 db test %ebx,%ebx
392: 7e 12 jle 3a6 <memmove+0x26>
394: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
*dst++ = *src++;
398: 0f b6 0c 16 movzbl (%esi,%edx,1),%ecx
39c: 88 0c 10 mov %cl,(%eax,%edx,1)
39f: 83 c2 01 add $0x1,%edx
{
char *dst, *src;
dst = vdst;
src = vsrc;
while(n-- > 0)
3a2: 39 da cmp %ebx,%edx
3a4: 75 f2 jne 398 <memmove+0x18>
*dst++ = *src++;
return vdst;
}
3a6: 5b pop %ebx
3a7: 5e pop %esi
3a8: 5d pop %ebp
3a9: c3 ret
000003aa <fork>:
name: \
movl $SYS_ ## name, %eax; \
int $T_SYSCALL; \
ret
SYSCALL(fork)
3aa: b8 01 00 00 00 mov $0x1,%eax
3af: cd 40 int $0x40
3b1: c3 ret
000003b2 <exit>:
SYSCALL(exit)
3b2: b8 02 00 00 00 mov $0x2,%eax
3b7: cd 40 int $0x40
3b9: c3 ret
000003ba <wait>:
SYSCALL(wait)
3ba: b8 03 00 00 00 mov $0x3,%eax
3bf: cd 40 int $0x40
3c1: c3 ret
000003c2 <pipe>:
SYSCALL(pipe)
3c2: b8 04 00 00 00 mov $0x4,%eax
3c7: cd 40 int $0x40
3c9: c3 ret
000003ca <read>:
SYSCALL(read)
3ca: b8 05 00 00 00 mov $0x5,%eax
3cf: cd 40 int $0x40
3d1: c3 ret
000003d2 <write>:
SYSCALL(write)
3d2: b8 10 00 00 00 mov $0x10,%eax
3d7: cd 40 int $0x40
3d9: c3 ret
000003da <close>:
SYSCALL(close)
3da: b8 15 00 00 00 mov $0x15,%eax
3df: cd 40 int $0x40
3e1: c3 ret
000003e2 <kill>:
SYSCALL(kill)
3e2: b8 06 00 00 00 mov $0x6,%eax
3e7: cd 40 int $0x40
3e9: c3 ret
000003ea <exec>:
SYSCALL(exec)
3ea: b8 07 00 00 00 mov $0x7,%eax
3ef: cd 40 int $0x40
3f1: c3 ret
000003f2 <open>:
SYSCALL(open)
3f2: b8 0f 00 00 00 mov $0xf,%eax
3f7: cd 40 int $0x40
3f9: c3 ret
000003fa <mknod>:
SYSCALL(mknod)
3fa: b8 11 00 00 00 mov $0x11,%eax
3ff: cd 40 int $0x40
401: c3 ret
00000402 <unlink>:
SYSCALL(unlink)
402: b8 12 00 00 00 mov $0x12,%eax
407: cd 40 int $0x40
409: c3 ret
0000040a <fstat>:
SYSCALL(fstat)
40a: b8 08 00 00 00 mov $0x8,%eax
40f: cd 40 int $0x40
411: c3 ret
00000412 <link>:
SYSCALL(link)
412: b8 13 00 00 00 mov $0x13,%eax
417: cd 40 int $0x40
419: c3 ret
0000041a <mkdir>:
SYSCALL(mkdir)
41a: b8 14 00 00 00 mov $0x14,%eax
41f: cd 40 int $0x40
421: c3 ret
00000422 <chdir>:
SYSCALL(chdir)
422: b8 09 00 00 00 mov $0x9,%eax
427: cd 40 int $0x40
429: c3 ret
0000042a <dup>:
SYSCALL(dup)
42a: b8 0a 00 00 00 mov $0xa,%eax
42f: cd 40 int $0x40
431: c3 ret
00000432 <getpid>:
SYSCALL(getpid)
432: b8 0b 00 00 00 mov $0xb,%eax
437: cd 40 int $0x40
439: c3 ret
0000043a <sbrk>:
SYSCALL(sbrk)
43a: b8 0c 00 00 00 mov $0xc,%eax
43f: cd 40 int $0x40
441: c3 ret
00000442 <sleep>:
SYSCALL(sleep)
442: b8 0d 00 00 00 mov $0xd,%eax
447: cd 40 int $0x40
449: c3 ret
0000044a <uptime>:
SYSCALL(uptime)
44a: b8 0e 00 00 00 mov $0xe,%eax
44f: cd 40 int $0x40
451: c3 ret
00000452 <date>:
SYSCALL(date) #added for date syscall
452: b8 16 00 00 00 mov $0x16,%eax
457: cd 40 int $0x40
459: c3 ret
45a: 66 90 xchg %ax,%ax
45c: 66 90 xchg %ax,%ax
45e: 66 90 xchg %ax,%ax
00000460 <printint>:
write(fd, &c, 1);
}
static void
printint(int fd, int xx, int base, int sgn)
{
460: 55 push %ebp
461: 89 e5 mov %esp,%ebp
463: 57 push %edi
464: 56 push %esi
465: 89 c6 mov %eax,%esi
467: 53 push %ebx
468: 83 ec 4c sub $0x4c,%esp
char buf[16];
int i, neg;
uint x;
neg = 0;
if(sgn && xx < 0){
46b: 8b 5d 08 mov 0x8(%ebp),%ebx
46e: 85 db test %ebx,%ebx
470: 74 09 je 47b <printint+0x1b>
472: 89 d0 mov %edx,%eax
474: c1 e8 1f shr $0x1f,%eax
477: 84 c0 test %al,%al
479: 75 75 jne 4f0 <printint+0x90>
neg = 1;
x = -xx;
} else {
x = xx;
47b: 89 d0 mov %edx,%eax
static char digits[] = "0123456789ABCDEF";
char buf[16];
int i, neg;
uint x;
neg = 0;
47d: c7 45 c4 00 00 00 00 movl $0x0,-0x3c(%ebp)
484: 89 75 c0 mov %esi,-0x40(%ebp)
x = -xx;
} else {
x = xx;
}
i = 0;
487: 31 ff xor %edi,%edi
489: 89 ce mov %ecx,%esi
48b: 8d 5d d7 lea -0x29(%ebp),%ebx
48e: eb 02 jmp 492 <printint+0x32>
do{
buf[i++] = digits[x % base];
490: 89 cf mov %ecx,%edi
492: 31 d2 xor %edx,%edx
494: f7 f6 div %esi
496: 8d 4f 01 lea 0x1(%edi),%ecx
499: 0f b6 92 a4 08 00 00 movzbl 0x8a4(%edx),%edx
}while((x /= base) != 0);
4a0: 85 c0 test %eax,%eax
x = xx;
}
i = 0;
do{
buf[i++] = digits[x % base];
4a2: 88 14 0b mov %dl,(%ebx,%ecx,1)
}while((x /= base) != 0);
4a5: 75 e9 jne 490 <printint+0x30>
if(neg)
4a7: 8b 55 c4 mov -0x3c(%ebp),%edx
x = xx;
}
i = 0;
do{
buf[i++] = digits[x % base];
4aa: 89 c8 mov %ecx,%eax
4ac: 8b 75 c0 mov -0x40(%ebp),%esi
}while((x /= base) != 0);
if(neg)
4af: 85 d2 test %edx,%edx
4b1: 74 08 je 4bb <printint+0x5b>
buf[i++] = '-';
4b3: 8d 4f 02 lea 0x2(%edi),%ecx
4b6: c6 44 05 d8 2d movb $0x2d,-0x28(%ebp,%eax,1)
while(--i >= 0)
4bb: 8d 79 ff lea -0x1(%ecx),%edi
4be: 66 90 xchg %ax,%ax
4c0: 0f b6 44 3d d8 movzbl -0x28(%ebp,%edi,1),%eax
4c5: 83 ef 01 sub $0x1,%edi
#include "user.h"
static void
putc(int fd, char c)
{
write(fd, &c, 1);
4c8: c7 44 24 08 01 00 00 movl $0x1,0x8(%esp)
4cf: 00
4d0: 89 5c 24 04 mov %ebx,0x4(%esp)
4d4: 89 34 24 mov %esi,(%esp)
4d7: 88 45 d7 mov %al,-0x29(%ebp)
4da: e8 f3 fe ff ff call 3d2 <write>
buf[i++] = digits[x % base];
}while((x /= base) != 0);
if(neg)
buf[i++] = '-';
while(--i >= 0)
4df: 83 ff ff cmp $0xffffffff,%edi
4e2: 75 dc jne 4c0 <printint+0x60>
putc(fd, buf[i]);
}
4e4: 83 c4 4c add $0x4c,%esp
4e7: 5b pop %ebx
4e8: 5e pop %esi
4e9: 5f pop %edi
4ea: 5d pop %ebp
4eb: c3 ret
4ec: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
uint x;
neg = 0;
if(sgn && xx < 0){
neg = 1;
x = -xx;
4f0: 89 d0 mov %edx,%eax
4f2: f7 d8 neg %eax
int i, neg;
uint x;
neg = 0;
if(sgn && xx < 0){
neg = 1;
4f4: c7 45 c4 01 00 00 00 movl $0x1,-0x3c(%ebp)
4fb: eb 87 jmp 484 <printint+0x24>
4fd: 8d 76 00 lea 0x0(%esi),%esi
00000500 <printf>:
}
// Print to the given fd. Only understands %d, %x, %p, %s.
void
printf(int fd, char *fmt, ...)
{
500: 55 push %ebp
501: 89 e5 mov %esp,%ebp
503: 57 push %edi
char *s;
int c, i, state;
uint *ap;
state = 0;
504: 31 ff xor %edi,%edi
}
// Print to the given fd. Only understands %d, %x, %p, %s.
void
printf(int fd, char *fmt, ...)
{
506: 56 push %esi
507: 53 push %ebx
508: 83 ec 3c sub $0x3c,%esp
int c, i, state;
uint *ap;
state = 0;
ap = (uint*)(void*)&fmt + 1;
for(i = 0; fmt[i]; i++){
50b: 8b 5d 0c mov 0xc(%ebp),%ebx
char *s;
int c, i, state;
uint *ap;
state = 0;
ap = (uint*)(void*)&fmt + 1;
50e: 8d 45 10 lea 0x10(%ebp),%eax
}
// Print to the given fd. Only understands %d, %x, %p, %s.
void
printf(int fd, char *fmt, ...)
{
511: 8b 75 08 mov 0x8(%ebp),%esi
char *s;
int c, i, state;
uint *ap;
state = 0;
ap = (uint*)(void*)&fmt + 1;
514: 89 45 d4 mov %eax,-0x2c(%ebp)
for(i = 0; fmt[i]; i++){
517: 0f b6 13 movzbl (%ebx),%edx
51a: 83 c3 01 add $0x1,%ebx
51d: 84 d2 test %dl,%dl
51f: 75 39 jne 55a <printf+0x5a>
521: e9 c2 00 00 00 jmp 5e8 <printf+0xe8>
526: 66 90 xchg %ax,%ax
c = fmt[i] & 0xff;
if(state == 0){
if(c == '%'){
528: 83 fa 25 cmp $0x25,%edx
52b: 0f 84 bf 00 00 00 je 5f0 <printf+0xf0>
#include "user.h"
static void
putc(int fd, char c)
{
write(fd, &c, 1);
531: 8d 45 e2 lea -0x1e(%ebp),%eax
534: c7 44 24 08 01 00 00 movl $0x1,0x8(%esp)
53b: 00
53c: 89 44 24 04 mov %eax,0x4(%esp)
540: 89 34 24 mov %esi,(%esp)
c = fmt[i] & 0xff;
if(state == 0){
if(c == '%'){
state = '%';
} else {
putc(fd, c);
543: 88 55 e2 mov %dl,-0x1e(%ebp)
#include "user.h"
static void
putc(int fd, char c)
{
write(fd, &c, 1);
546: e8 87 fe ff ff call 3d2 <write>
54b: 83 c3 01 add $0x1,%ebx
int c, i, state;
uint *ap;
state = 0;
ap = (uint*)(void*)&fmt + 1;
for(i = 0; fmt[i]; i++){
54e: 0f b6 53 ff movzbl -0x1(%ebx),%edx
552: 84 d2 test %dl,%dl
554: 0f 84 8e 00 00 00 je 5e8 <printf+0xe8>
c = fmt[i] & 0xff;
if(state == 0){
55a: 85 ff test %edi,%edi
uint *ap;
state = 0;
ap = (uint*)(void*)&fmt + 1;
for(i = 0; fmt[i]; i++){
c = fmt[i] & 0xff;
55c: 0f be c2 movsbl %dl,%eax
if(state == 0){
55f: 74 c7 je 528 <printf+0x28>
if(c == '%'){
state = '%';
} else {
putc(fd, c);
}
} else if(state == '%'){
561: 83 ff 25 cmp $0x25,%edi
564: 75 e5 jne 54b <printf+0x4b>
if(c == 'd'){
566: 83 fa 64 cmp $0x64,%edx
569: 0f 84 31 01 00 00 je 6a0 <printf+0x1a0>
printint(fd, *ap, 10, 1);
ap++;
} else if(c == 'x' || c == 'p'){
56f: 25 f7 00 00 00 and $0xf7,%eax
574: 83 f8 70 cmp $0x70,%eax
577: 0f 84 83 00 00 00 je 600 <printf+0x100>
printint(fd, *ap, 16, 0);
ap++;
} else if(c == 's'){
57d: 83 fa 73 cmp $0x73,%edx
580: 0f 84 a2 00 00 00 je 628 <printf+0x128>
s = "(null)";
while(*s != 0){
putc(fd, *s);
s++;
}
} else if(c == 'c'){
586: 83 fa 63 cmp $0x63,%edx
589: 0f 84 35 01 00 00 je 6c4 <printf+0x1c4>
putc(fd, *ap);
ap++;
} else if(c == '%'){
58f: 83 fa 25 cmp $0x25,%edx
592: 0f 84 e0 00 00 00 je 678 <printf+0x178>
#include "user.h"
static void
putc(int fd, char c)
{
write(fd, &c, 1);
598: 8d 45 e6 lea -0x1a(%ebp),%eax
59b: 83 c3 01 add $0x1,%ebx
59e: c7 44 24 08 01 00 00 movl $0x1,0x8(%esp)
5a5: 00
} else {
// Unknown % sequence. Print it to draw attention.
putc(fd, '%');
putc(fd, c);
}
state = 0;
5a6: 31 ff xor %edi,%edi
#include "user.h"
static void
putc(int fd, char c)
{
write(fd, &c, 1);
5a8: 89 44 24 04 mov %eax,0x4(%esp)
5ac: 89 34 24 mov %esi,(%esp)
5af: 89 55 d0 mov %edx,-0x30(%ebp)
5b2: c6 45 e6 25 movb $0x25,-0x1a(%ebp)
5b6: e8 17 fe ff ff call 3d2 <write>
} else if(c == '%'){
putc(fd, c);
} else {
// Unknown % sequence. Print it to draw attention.
putc(fd, '%');
putc(fd, c);
5bb: 8b 55 d0 mov -0x30(%ebp),%edx
#include "user.h"
static void
putc(int fd, char c)
{
write(fd, &c, 1);
5be: 8d 45 e7 lea -0x19(%ebp),%eax
5c1: c7 44 24 08 01 00 00 movl $0x1,0x8(%esp)
5c8: 00
5c9: 89 44 24 04 mov %eax,0x4(%esp)
5cd: 89 34 24 mov %esi,(%esp)
} else if(c == '%'){
putc(fd, c);
} else {
// Unknown % sequence. Print it to draw attention.
putc(fd, '%');
putc(fd, c);
5d0: 88 55 e7 mov %dl,-0x19(%ebp)
#include "user.h"
static void
putc(int fd, char c)
{
write(fd, &c, 1);
5d3: e8 fa fd ff ff call 3d2 <write>
int c, i, state;
uint *ap;
state = 0;
ap = (uint*)(void*)&fmt + 1;
for(i = 0; fmt[i]; i++){
5d8: 0f b6 53 ff movzbl -0x1(%ebx),%edx
5dc: 84 d2 test %dl,%dl
5de: 0f 85 76 ff ff ff jne 55a <printf+0x5a>
5e4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
putc(fd, c);
}
state = 0;
}
}
}
5e8: 83 c4 3c add $0x3c,%esp
5eb: 5b pop %ebx
5ec: 5e pop %esi
5ed: 5f pop %edi
5ee: 5d pop %ebp
5ef: c3 ret
ap = (uint*)(void*)&fmt + 1;
for(i = 0; fmt[i]; i++){
c = fmt[i] & 0xff;
if(state == 0){
if(c == '%'){
state = '%';
5f0: bf 25 00 00 00 mov $0x25,%edi
5f5: e9 51 ff ff ff jmp 54b <printf+0x4b>
5fa: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
} else if(state == '%'){
if(c == 'd'){
printint(fd, *ap, 10, 1);
ap++;
} else if(c == 'x' || c == 'p'){
printint(fd, *ap, 16, 0);
600: 8b 45 d4 mov -0x2c(%ebp),%eax
603: b9 10 00 00 00 mov $0x10,%ecx
} else {
// Unknown % sequence. Print it to draw attention.
putc(fd, '%');
putc(fd, c);
}
state = 0;
608: 31 ff xor %edi,%edi
} else if(state == '%'){
if(c == 'd'){
printint(fd, *ap, 10, 1);
ap++;
} else if(c == 'x' || c == 'p'){
printint(fd, *ap, 16, 0);
60a: c7 04 24 00 00 00 00 movl $0x0,(%esp)
611: 8b 10 mov (%eax),%edx
613: 89 f0 mov %esi,%eax
615: e8 46 fe ff ff call 460 <printint>
ap++;
61a: 83 45 d4 04 addl $0x4,-0x2c(%ebp)
61e: e9 28 ff ff ff jmp 54b <printf+0x4b>
623: 90 nop
624: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
} else if(c == 's'){
s = (char*)*ap;
628: 8b 45 d4 mov -0x2c(%ebp),%eax
ap++;
62b: 83 45 d4 04 addl $0x4,-0x2c(%ebp)
ap++;
} else if(c == 'x' || c == 'p'){
printint(fd, *ap, 16, 0);
ap++;
} else if(c == 's'){
s = (char*)*ap;
62f: 8b 38 mov (%eax),%edi
ap++;
if(s == 0)
s = "(null)";
631: b8 9d 08 00 00 mov $0x89d,%eax
636: 85 ff test %edi,%edi
638: 0f 44 f8 cmove %eax,%edi
while(*s != 0){
63b: 0f b6 07 movzbl (%edi),%eax
63e: 84 c0 test %al,%al
640: 74 2a je 66c <printf+0x16c>
642: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
648: 88 45 e3 mov %al,-0x1d(%ebp)
#include "user.h"
static void
putc(int fd, char c)
{
write(fd, &c, 1);
64b: 8d 45 e3 lea -0x1d(%ebp),%eax
ap++;
if(s == 0)
s = "(null)";
while(*s != 0){
putc(fd, *s);
s++;
64e: 83 c7 01 add $0x1,%edi
#include "user.h"
static void
putc(int fd, char c)
{
write(fd, &c, 1);
651: c7 44 24 08 01 00 00 movl $0x1,0x8(%esp)
658: 00
659: 89 44 24 04 mov %eax,0x4(%esp)
65d: 89 34 24 mov %esi,(%esp)
660: e8 6d fd ff ff call 3d2 <write>
} else if(c == 's'){
s = (char*)*ap;
ap++;
if(s == 0)
s = "(null)";
while(*s != 0){
665: 0f b6 07 movzbl (%edi),%eax
668: 84 c0 test %al,%al
66a: 75 dc jne 648 <printf+0x148>
} else {
// Unknown % sequence. Print it to draw attention.
putc(fd, '%');
putc(fd, c);
}
state = 0;
66c: 31 ff xor %edi,%edi
66e: e9 d8 fe ff ff jmp 54b <printf+0x4b>
673: 90 nop
674: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
#include "user.h"
static void
putc(int fd, char c)
{
write(fd, &c, 1);
678: 8d 45 e5 lea -0x1b(%ebp),%eax
} else {
// Unknown % sequence. Print it to draw attention.
putc(fd, '%');
putc(fd, c);
}
state = 0;
67b: 31 ff xor %edi,%edi
#include "user.h"
static void
putc(int fd, char c)
{
write(fd, &c, 1);
67d: c7 44 24 08 01 00 00 movl $0x1,0x8(%esp)
684: 00
685: 89 44 24 04 mov %eax,0x4(%esp)
689: 89 34 24 mov %esi,(%esp)
68c: c6 45 e5 25 movb $0x25,-0x1b(%ebp)
690: e8 3d fd ff ff call 3d2 <write>
695: e9 b1 fe ff ff jmp 54b <printf+0x4b>
69a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
} else {
putc(fd, c);
}
} else if(state == '%'){
if(c == 'd'){
printint(fd, *ap, 10, 1);
6a0: 8b 45 d4 mov -0x2c(%ebp),%eax
6a3: b9 0a 00 00 00 mov $0xa,%ecx
} else {
// Unknown % sequence. Print it to draw attention.
putc(fd, '%');
putc(fd, c);
}
state = 0;
6a8: 66 31 ff xor %di,%di
} else {
putc(fd, c);
}
} else if(state == '%'){
if(c == 'd'){
printint(fd, *ap, 10, 1);
6ab: c7 04 24 01 00 00 00 movl $0x1,(%esp)
6b2: 8b 10 mov (%eax),%edx
6b4: 89 f0 mov %esi,%eax
6b6: e8 a5 fd ff ff call 460 <printint>
ap++;
6bb: 83 45 d4 04 addl $0x4,-0x2c(%ebp)
6bf: e9 87 fe ff ff jmp 54b <printf+0x4b>
while(*s != 0){
putc(fd, *s);
s++;
}
} else if(c == 'c'){
putc(fd, *ap);
6c4: 8b 45 d4 mov -0x2c(%ebp),%eax
} else {
// Unknown % sequence. Print it to draw attention.
putc(fd, '%');
putc(fd, c);
}
state = 0;
6c7: 31 ff xor %edi,%edi
while(*s != 0){
putc(fd, *s);
s++;
}
} else if(c == 'c'){
putc(fd, *ap);
6c9: 8b 00 mov (%eax),%eax
#include "user.h"
static void
putc(int fd, char c)
{
write(fd, &c, 1);
6cb: c7 44 24 08 01 00 00 movl $0x1,0x8(%esp)
6d2: 00
6d3: 89 34 24 mov %esi,(%esp)
while(*s != 0){
putc(fd, *s);
s++;
}
} else if(c == 'c'){
putc(fd, *ap);
6d6: 88 45 e4 mov %al,-0x1c(%ebp)
#include "user.h"
static void
putc(int fd, char c)
{
write(fd, &c, 1);
6d9: 8d 45 e4 lea -0x1c(%ebp),%eax
6dc: 89 44 24 04 mov %eax,0x4(%esp)
6e0: e8 ed fc ff ff call 3d2 <write>
putc(fd, *s);
s++;
}
} else if(c == 'c'){
putc(fd, *ap);
ap++;
6e5: 83 45 d4 04 addl $0x4,-0x2c(%ebp)
6e9: e9 5d fe ff ff jmp 54b <printf+0x4b>
6ee: 66 90 xchg %ax,%ax
000006f0 <free>:
static Header base;
static Header *freep;
void
free(void *ap)
{
6f0: 55 push %ebp
Header *bp, *p;
bp = (Header*)ap - 1;
for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr)
6f1: a1 60 0b 00 00 mov 0xb60,%eax
static Header base;
static Header *freep;
void
free(void *ap)
{
6f6: 89 e5 mov %esp,%ebp
6f8: 57 push %edi
6f9: 56 push %esi
6fa: 53 push %ebx
6fb: 8b 5d 08 mov 0x8(%ebp),%ebx
Header *bp, *p;
bp = (Header*)ap - 1;
for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr)
if(p >= p->s.ptr && (bp > p || bp < p->s.ptr))
6fe: 8b 08 mov (%eax),%ecx
void
free(void *ap)
{
Header *bp, *p;
bp = (Header*)ap - 1;
700: 8d 53 f8 lea -0x8(%ebx),%edx
for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr)
703: 39 d0 cmp %edx,%eax
705: 72 11 jb 718 <free+0x28>
707: 90 nop
if(p >= p->s.ptr && (bp > p || bp < p->s.ptr))
708: 39 c8 cmp %ecx,%eax
70a: 72 04 jb 710 <free+0x20>
70c: 39 ca cmp %ecx,%edx
70e: 72 10 jb 720 <free+0x30>
710: 89 c8 mov %ecx,%eax
free(void *ap)
{
Header *bp, *p;
bp = (Header*)ap - 1;
for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr)
712: 39 d0 cmp %edx,%eax
if(p >= p->s.ptr && (bp > p || bp < p->s.ptr))
714: 8b 08 mov (%eax),%ecx
free(void *ap)
{
Header *bp, *p;
bp = (Header*)ap - 1;
for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr)
716: 73 f0 jae 708 <free+0x18>
718: 39 ca cmp %ecx,%edx
71a: 72 04 jb 720 <free+0x30>
if(p >= p->s.ptr && (bp > p || bp < p->s.ptr))
71c: 39 c8 cmp %ecx,%eax
71e: 72 f0 jb 710 <free+0x20>
break;
if(bp + bp->s.size == p->s.ptr){
720: 8b 73 fc mov -0x4(%ebx),%esi
723: 8d 3c f2 lea (%edx,%esi,8),%edi
726: 39 cf cmp %ecx,%edi
728: 74 1e je 748 <free+0x58>
bp->s.size += p->s.ptr->s.size;
bp->s.ptr = p->s.ptr->s.ptr;
} else
bp->s.ptr = p->s.ptr;
72a: 89 4b f8 mov %ecx,-0x8(%ebx)
if(p + p->s.size == bp){
72d: 8b 48 04 mov 0x4(%eax),%ecx
730: 8d 34 c8 lea (%eax,%ecx,8),%esi
733: 39 f2 cmp %esi,%edx
735: 74 28 je 75f <free+0x6f>
p->s.size += bp->s.size;
p->s.ptr = bp->s.ptr;
} else
p->s.ptr = bp;
737: 89 10 mov %edx,(%eax)
freep = p;
739: a3 60 0b 00 00 mov %eax,0xb60
}
73e: 5b pop %ebx
73f: 5e pop %esi
740: 5f pop %edi
741: 5d pop %ebp
742: c3 ret
743: 90 nop
744: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
bp = (Header*)ap - 1;
for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr)
if(p >= p->s.ptr && (bp > p || bp < p->s.ptr))
break;
if(bp + bp->s.size == p->s.ptr){
bp->s.size += p->s.ptr->s.size;
748: 03 71 04 add 0x4(%ecx),%esi
74b: 89 73 fc mov %esi,-0x4(%ebx)
bp->s.ptr = p->s.ptr->s.ptr;
74e: 8b 08 mov (%eax),%ecx
750: 8b 09 mov (%ecx),%ecx
752: 89 4b f8 mov %ecx,-0x8(%ebx)
} else
bp->s.ptr = p->s.ptr;
if(p + p->s.size == bp){
755: 8b 48 04 mov 0x4(%eax),%ecx
758: 8d 34 c8 lea (%eax,%ecx,8),%esi
75b: 39 f2 cmp %esi,%edx
75d: 75 d8 jne 737 <free+0x47>
p->s.size += bp->s.size;
75f: 03 4b fc add -0x4(%ebx),%ecx
p->s.ptr = bp->s.ptr;
} else
p->s.ptr = bp;
freep = p;
762: a3 60 0b 00 00 mov %eax,0xb60
bp->s.size += p->s.ptr->s.size;
bp->s.ptr = p->s.ptr->s.ptr;
} else
bp->s.ptr = p->s.ptr;
if(p + p->s.size == bp){
p->s.size += bp->s.size;
767: 89 48 04 mov %ecx,0x4(%eax)
p->s.ptr = bp->s.ptr;
76a: 8b 53 f8 mov -0x8(%ebx),%edx
76d: 89 10 mov %edx,(%eax)
} else
p->s.ptr = bp;
freep = p;
}
76f: 5b pop %ebx
770: 5e pop %esi
771: 5f pop %edi
772: 5d pop %ebp
773: c3 ret
774: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
77a: 8d bf 00 00 00 00 lea 0x0(%edi),%edi
00000780 <malloc>:
return freep;
}
void*
malloc(uint nbytes)
{
780: 55 push %ebp
781: 89 e5 mov %esp,%ebp
783: 57 push %edi
784: 56 push %esi
785: 53 push %ebx
786: 83 ec 1c sub $0x1c,%esp
Header *p, *prevp;
uint nunits;
nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1;
789: 8b 45 08 mov 0x8(%ebp),%eax
if((prevp = freep) == 0){
78c: 8b 1d 60 0b 00 00 mov 0xb60,%ebx
malloc(uint nbytes)
{
Header *p, *prevp;
uint nunits;
nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1;
792: 8d 48 07 lea 0x7(%eax),%ecx
795: c1 e9 03 shr $0x3,%ecx
if((prevp = freep) == 0){
798: 85 db test %ebx,%ebx
malloc(uint nbytes)
{
Header *p, *prevp;
uint nunits;
nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1;
79a: 8d 71 01 lea 0x1(%ecx),%esi
if((prevp = freep) == 0){
79d: 0f 84 9b 00 00 00 je 83e <malloc+0xbe>
7a3: 8b 13 mov (%ebx),%edx
7a5: 8b 7a 04 mov 0x4(%edx),%edi
base.s.ptr = freep = prevp = &base;
base.s.size = 0;
}
for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){
if(p->s.size >= nunits){
7a8: 39 fe cmp %edi,%esi
7aa: 76 64 jbe 810 <malloc+0x90>
7ac: 8d 04 f5 00 00 00 00 lea 0x0(,%esi,8),%eax
morecore(uint nu)
{
char *p;
Header *hp;
if(nu < 4096)
7b3: bb 00 80 00 00 mov $0x8000,%ebx
7b8: 89 45 e4 mov %eax,-0x1c(%ebp)
7bb: eb 0e jmp 7cb <malloc+0x4b>
7bd: 8d 76 00 lea 0x0(%esi),%esi
nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1;
if((prevp = freep) == 0){
base.s.ptr = freep = prevp = &base;
base.s.size = 0;
}
for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){
7c0: 8b 02 mov (%edx),%eax
if(p->s.size >= nunits){
7c2: 8b 78 04 mov 0x4(%eax),%edi
7c5: 39 fe cmp %edi,%esi
7c7: 76 4f jbe 818 <malloc+0x98>
7c9: 89 c2 mov %eax,%edx
p->s.size = nunits;
}
freep = prevp;
return (void*)(p + 1);
}
if(p == freep)
7cb: 3b 15 60 0b 00 00 cmp 0xb60,%edx
7d1: 75 ed jne 7c0 <malloc+0x40>
morecore(uint nu)
{
char *p;
Header *hp;
if(nu < 4096)
7d3: 8b 45 e4 mov -0x1c(%ebp),%eax
7d6: 81 fe 00 10 00 00 cmp $0x1000,%esi
7dc: bf 00 10 00 00 mov $0x1000,%edi
7e1: 0f 43 fe cmovae %esi,%edi
7e4: 0f 42 c3 cmovb %ebx,%eax
nu = 4096;
p = sbrk(nu * sizeof(Header));
7e7: 89 04 24 mov %eax,(%esp)
7ea: e8 4b fc ff ff call 43a <sbrk>
if(p == (char*)-1)
7ef: 83 f8 ff cmp $0xffffffff,%eax
7f2: 74 18 je 80c <malloc+0x8c>
return 0;
hp = (Header*)p;
hp->s.size = nu;
7f4: 89 78 04 mov %edi,0x4(%eax)
free((void*)(hp + 1));
7f7: 83 c0 08 add $0x8,%eax
7fa: 89 04 24 mov %eax,(%esp)
7fd: e8 ee fe ff ff call 6f0 <free>
return freep;
802: 8b 15 60 0b 00 00 mov 0xb60,%edx
}
freep = prevp;
return (void*)(p + 1);
}
if(p == freep)
if((p = morecore(nunits)) == 0)
808: 85 d2 test %edx,%edx
80a: 75 b4 jne 7c0 <malloc+0x40>
return 0;
80c: 31 c0 xor %eax,%eax
80e: eb 20 jmp 830 <malloc+0xb0>
if((prevp = freep) == 0){
base.s.ptr = freep = prevp = &base;
base.s.size = 0;
}
for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){
if(p->s.size >= nunits){
810: 89 d0 mov %edx,%eax
812: 89 da mov %ebx,%edx
814: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
if(p->s.size == nunits)
818: 39 fe cmp %edi,%esi
81a: 74 1c je 838 <malloc+0xb8>
prevp->s.ptr = p->s.ptr;
else {
p->s.size -= nunits;
81c: 29 f7 sub %esi,%edi
81e: 89 78 04 mov %edi,0x4(%eax)
p += p->s.size;
821: 8d 04 f8 lea (%eax,%edi,8),%eax
p->s.size = nunits;
824: 89 70 04 mov %esi,0x4(%eax)
}
freep = prevp;
827: 89 15 60 0b 00 00 mov %edx,0xb60
return (void*)(p + 1);
82d: 83 c0 08 add $0x8,%eax
}
if(p == freep)
if((p = morecore(nunits)) == 0)
return 0;
}
}
830: 83 c4 1c add $0x1c,%esp
833: 5b pop %ebx
834: 5e pop %esi
835: 5f pop %edi
836: 5d pop %ebp
837: c3 ret
base.s.size = 0;
}
for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){
if(p->s.size >= nunits){
if(p->s.size == nunits)
prevp->s.ptr = p->s.ptr;
838: 8b 08 mov (%eax),%ecx
83a: 89 0a mov %ecx,(%edx)
83c: eb e9 jmp 827 <malloc+0xa7>
Header *p, *prevp;
uint nunits;
nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1;
if((prevp = freep) == 0){
base.s.ptr = freep = prevp = &base;
83e: c7 05 60 0b 00 00 64 movl $0xb64,0xb60
845: 0b 00 00
base.s.size = 0;
848: ba 64 0b 00 00 mov $0xb64,%edx
Header *p, *prevp;
uint nunits;
nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1;
if((prevp = freep) == 0){
base.s.ptr = freep = prevp = &base;
84d: c7 05 64 0b 00 00 64 movl $0xb64,0xb64
854: 0b 00 00
base.s.size = 0;
857: c7 05 68 0b 00 00 00 movl $0x0,0xb68
85e: 00 00 00
861: e9 46 ff ff ff jmp 7ac <malloc+0x2c>
|
SilphCo8Script:
call SilphCo8Script_5651a
call EnableAutoTextBoxDrawing
ld hl, SilphCo8TrainerHeader0
ld de, SilphCo8ScriptPointers
ld a, [wSilphCo8CurScript]
call ExecuteCurMapScriptInTable
ld [wSilphCo8CurScript], a
ret
SilphCo8Script_5651a:
ld hl, wCurrentMapScriptFlags
bit 5, [hl]
res 5, [hl]
ret z
ld hl, SilphCo8GateCoords
call SilphCo8Script_56541
call SilphCo8Script_5656d
CheckEvent EVENT_SILPH_CO_8_UNLOCKED_DOOR
ret nz
ld a, $5f
ld [wNewTileBlockID], a
lb bc, 4, 3
predef_jump ReplaceTileBlock
SilphCo8GateCoords:
db $04,$03
db $FF
SilphCo8Script_56541:
push hl
ld hl, wCardKeyDoorY
ld a, [hli]
ld b, a
ld a, [hl]
ld c, a
xor a
ld [$ffe0], a
pop hl
.asm_5654d
ld a, [hli]
cp $ff
jr z, .asm_56569
push hl
ld hl, $ffe0
inc [hl]
pop hl
cp b
jr z, .asm_5655e
inc hl
jr .asm_5654d
.asm_5655e
ld a, [hli]
cp c
jr nz, .asm_5654d
ld hl, wCardKeyDoorY
xor a
ld [hli], a
ld [hl], a
ret
.asm_56569
xor a
ld [$ffe0], a
ret
SilphCo8Script_5656d:
ld a, [$ffe0]
and a
ret z
SetEvent EVENT_SILPH_CO_8_UNLOCKED_DOOR
ret
SilphCo8ScriptPointers:
dw CheckFightingMapTrainers
dw DisplayEnemyTrainerTextAndStartBattle
dw EndTrainerBattle
SilphCo8TextPointers:
dw SilphCo8Text1
dw SilphCo8Text2
dw SilphCo8Text3
dw SilphCo8Text4
SilphCo8TrainerHeader0:
dbEventFlagBit EVENT_BEAT_SILPH_CO_8F_TRAINER_0
db ($4 << 4) ; trainer's view range
dwEventFlagAddress EVENT_BEAT_SILPH_CO_8F_TRAINER_0
dw SilphCo8BattleText1 ; TextBeforeBattle
dw SilphCo8AfterBattleText1 ; TextAfterBattle
dw SilphCo8EndBattleText1 ; TextEndBattle
dw SilphCo8EndBattleText1 ; TextEndBattle
SilphCo8TrainerHeader1:
dbEventFlagBit EVENT_BEAT_SILPH_CO_8F_TRAINER_1
db ($4 << 4) ; trainer's view range
dwEventFlagAddress EVENT_BEAT_SILPH_CO_8F_TRAINER_1
dw SilphCo8BattleText2 ; TextBeforeBattle
dw SilphCo8AfterBattleText2 ; TextAfterBattle
dw SilphCo8EndBattleText2 ; TextEndBattle
dw SilphCo8EndBattleText2 ; TextEndBattle
SilphCo8TrainerHeader2:
dbEventFlagBit EVENT_BEAT_SILPH_CO_8F_TRAINER_2
db ($4 << 4) ; trainer's view range
dwEventFlagAddress EVENT_BEAT_SILPH_CO_8F_TRAINER_2
dw SilphCo8BattleText3 ; TextBeforeBattle
dw SilphCo8AfterBattleText3 ; TextAfterBattle
dw SilphCo8EndBattleText3 ; TextEndBattle
dw SilphCo8EndBattleText3 ; TextEndBattle
db $ff
SilphCo8Text1:
TX_ASM
CheckEvent EVENT_BEAT_SILPH_CO_GIOVANNI
ld hl, SilphCo8Text_565c3
jr nz, .asm_565b8
ld hl, SilphCo8Text_565be
.asm_565b8
call PrintText
jp TextScriptEnd
SilphCo8Text_565be:
TX_FAR _SilphCo8Text_565be
db "@"
SilphCo8Text_565c3:
TX_FAR _SilphCo8Text_565c3
db "@"
SilphCo8Text2:
TX_ASM
ld hl, SilphCo8TrainerHeader0
call TalkToTrainer
jp TextScriptEnd
SilphCo8Text3:
TX_ASM
ld hl, SilphCo8TrainerHeader1
call TalkToTrainer
jp TextScriptEnd
SilphCo8Text4:
TX_ASM
ld hl, SilphCo8TrainerHeader2
call TalkToTrainer
jp TextScriptEnd
SilphCo8BattleText1:
TX_FAR _SilphCo8BattleText1
db "@"
SilphCo8EndBattleText1:
TX_FAR _SilphCo8EndBattleText1
db "@"
SilphCo8AfterBattleText1:
TX_FAR _SilphCo8AfterBattleText1
db "@"
SilphCo8BattleText2:
TX_FAR _SilphCo8BattleText2
db "@"
SilphCo8EndBattleText2:
TX_FAR _SilphCo8EndBattleText2
db "@"
SilphCo8AfterBattleText2:
TX_FAR _SilphCo8AfterBattleText2
db "@"
SilphCo8BattleText3:
TX_FAR _SilphCo8BattleText3
db "@"
SilphCo8EndBattleText3:
TX_FAR _SilphCo8EndBattleText3
db "@"
SilphCo8AfterBattleText3:
TX_FAR _SilphCo8AfterBattleText3
db "@"
|
; A108676: a(n) = (n+1)^2*(n+2)*(5*n^2 + 15*n + 12)/24.
; 1,16,93,340,950,2226,4606,8688,15255,25300,40051,60996,89908,128870,180300,246976,332061,439128,572185,735700,934626,1174426,1461098,1801200,2201875,2670876,3216591,3848068,4575040,5407950,6357976
mul $0,5
add $0,9
bin $0,5
mov $1,$0
div $1,125
|
SECTION rodata_font_fzx
PUBLIC _ff_ao_GenevaMonoBold
_ff_ao_GenevaMonoBold:
BINARY "font/fzx/fonts/ao/GenevaMono/GenevaMonoBold.fzx"
|
#include <bits/stdc++.h>
#define ll long long int
#define w(t) int t; cin>>t; while(t--)
#define F first
#define S second
#define pb push_back
#define mp make_pair
#define pii pair<int,int>
#define mii map<int,int>
#define sp(x,y) fixed<<setprecision(y)<<x
using namespace std;
int main()
{
ios::sync_with_stdio(false);
cin.tie(0);
w(t){
int n,m;
cin>>n>>m;
int a,sum=0;
for(int i=0;i<n;i++){
cin>>a;
sum+=a;
}
cout<<min(sum,m)<<endl;
}
return 0;
} |
; A236257: a(n) = 2*n^2 - 7*n + 9.
; 9,4,3,6,13,24,39,58,81,108,139,174,213,256,303,354,409,468,531,598,669,744,823,906,993,1084,1179,1278,1381,1488,1599,1714,1833,1956,2083,2214,2349,2488,2631,2778,2929,3084,3243,3406,3573,3744,3919,4098,4281,4468,4659,4854,5053,5256,5463,5674,5889,6108,6331,6558,6789,7024,7263,7506,7753,8004,8259,8518,8781,9048,9319,9594,9873,10156,10443,10734,11029,11328,11631,11938,12249,12564,12883,13206,13533,13864,14199,14538,14881,15228,15579,15934,16293,16656,17023,17394,17769,18148,18531,18918
mul $0,2
sub $0,3
bin $0,2
add $0,3
|
page ,132
title Utility Functions
.686p
.model FLAT
.code
; uintptr_t __fastcall __readbp(void);
public @__readbp@0
@__readbp@0 proc
mov eax, ebp
ret
@__readbp@0 endp
end
|
; A332196: a(n) = 10^(2n+1) - 1 - 3*10^n.
; 6,969,99699,9996999,999969999,99999699999,9999996999999,999999969999999,99999999699999999,9999999996999999999,999999999969999999999,99999999999699999999999,9999999999996999999999999,999999999999969999999999999,99999999999999699999999999999
add $0,1
mov $1,10
pow $1,$0
sub $1,1
bin $1,2
sub $1,15
div $1,5
add $1,2
mov $0,$1
|
public MyMemcpy64
STACKBYTES equ 16*2
.code
SaveRegisters MACRO
sub rsp,STACKBYTES
.allocstack STACKBYTES
movdqu [rsp+16*0],xmm6 ; cannot use movdqa because rsp is not 16-byte aligned
.savexmm128 xmm6, 16*0
movdqu [rsp+16*1],xmm7
.savexmm128 xmm7, 16*1
.endprolog
ENDM
RestoreRegisters MACRO
movdqu xmm6, [rsp+16*0]
movdqu xmm7, [rsp+16*1]
add rsp,STACKBYTES
ENDM
; MyMemcpy64(char *dst, const char *src, int bytes)
; dst --> rcx
; src --> rdx
; bytes --> r8d
align 8
MyMemcpy64 proc frame
SaveRegisters
mov rax, rcx ; move dst address from rcx to rax (src address is rdx)
mov ecx, r8d ; move loop parameter(bytes argument) from r8d to rcx
add rax, rcx ; now rax points end of dst buffer
add rdx, rcx ; now rdx points end of src buffer
neg rcx ; now rdx+rcx points start of src buffer and rax+rcx points start of dst buffer
align 8
LabelBegin:
movdqa xmm0, [rdx+rcx ]
movdqa xmm1, [rdx+rcx+10H]
movdqa xmm2, [rdx+rcx+20H]
movdqa xmm3, [rdx+rcx+30H]
movdqa xmm4, [rdx+rcx+40H]
movdqa xmm5, [rdx+rcx+50H]
movdqa xmm6, [rdx+rcx+60H]
movdqa xmm7, [rdx+rcx+70H]
movdqa [rax+rcx ], xmm0
movdqa [rax+rcx+10H], xmm1
movdqa [rax+rcx+20H], xmm2
movdqa [rax+rcx+30H], xmm3
movdqa [rax+rcx+40H], xmm4
movdqa [rax+rcx+50H], xmm5
movdqa [rax+rcx+60H], xmm6
movdqa [rax+rcx+70H], xmm7
add rcx, 80H
jnz LabelBegin
RestoreRegisters
ret
align 8
MyMemcpy64 endp
end
|
#include<GEDEEditor.h>
#include<algorithm>
#include<GDEImpl.h>
#include<UI.h>
using namespace gde;
#define ___ std::cerr<<__FILE__<<" :"<<__LINE__<<std::endl
void addToNode2(ui::Element*elm,void*d){
auto node = (Node2d*)d;
glm::vec2 p = elm->getPosition();
glm::vec2 s = elm->getSize();
if(elm->data.hasValues<Line>()){
auto v = elm->data.getValues<Line>();
for(auto const&vv:v){
auto x = (Line*)vv;
node->addValue<Line>(
x->points[0]*s+p,
x->points[1]*s+p,
x->width,
x->color);
}
}
if(elm->data.hasValues<Point>()){
auto v = elm->data.getValues<Point>();
for(auto const&vv:v){
auto x = (Point*)vv;
node->addValue<Point>(
x->point*s+p,
x->size,
x->color);
}
}
if(elm->data.hasValues<Circle>()){
auto v = elm->data.getValues<Circle>();
for(auto const&vv:v){
auto x = (Circle*)vv;
node->addValue<Circle>(
x->point*s+p,
x->size,
x->width,
x->color);
}
}
if(elm->data.hasValues<Triangle>()){
auto v = elm->data.getValues<Triangle>();
for(auto const&vv:v){
auto x = (Triangle*)vv;
node->addValue<Triangle>(
x->points[0]*s+p,
x->points[1]*s+p,
x->points[2]*s+p,
x->color);
}
}
if(elm->data.hasValues<Spline>()){
auto v = elm->data.getValues<Spline>();
for(auto const&vv:v){
auto x = (Spline*)vv;
node->addValue<Spline>(
x->points[0]*s+p,
x->points[1]*s+p,
x->points[2]*s+p,
x->points[3]*s+p,
x->width,
x->color);
}
}
if(elm->data.hasValues<Text>()){
auto v = elm->data.getValues<Text>();
for(auto const&vv:v){
auto x = (Text*)vv;
node->addValue<Text>(
x->data,
x->size,
x->position*s+p,
x->direction,
x->color);
}
}
}
void addMouseMotionEventToNode(ui::Element*elm,void*d){
auto node = (Node2d*)d;
glm::vec2 p = elm->getPosition();
glm::vec2 s = elm->getSize();
if(elm->data.hasValues<MouseMotionEvent>()){
auto v = elm->data.getValues<MouseMotionEvent>();
for(auto const&x:v){
auto vv = (MouseMotionEvent*)x;
node->addValue<MouseMotionEvent>(p,s,vv->callback,vv->userData,vv->type);
}
}
}
void addMouseButtonEventToNode(ui::Element*elm,void*d){
auto node = (Node2d*)d;
glm::vec2 p = elm->getPosition();
glm::vec2 s = elm->getSize();
if(elm->data.hasValues<MouseButtonEvent>()){
auto v = elm->data.getValues<MouseButtonEvent>();
for(auto const&x:v){
auto vv = (MouseButtonEvent*)x;
node->addValue<MouseButtonEvent>(p,s,vv->callback,vv->userData,vv->down,vv->button);
}
}
}
class Function{
public:
std::string functionName;
std::vector<std::string>inputNames;
std::string outputName;
Function(
std::string const&fce,
std::vector<std::string>const&inputs,
std::string const&output){
this->functionName = fce;
this->inputNames = inputs;
this->outputName = output;
this->create();
}
ui::Element*root = nullptr;
std::shared_ptr<Node2d>node = nullptr;
void create();
~Function(){
delete root;
}
size_t id = 0;
void setLineColor(glm::vec4 const&color = glm::vec4(1.f));
glm::vec2 grabedPosition;
bool doMove = false;
void move(glm::vec2 const&mouseDiff);
};
void Function::create(){
glm::vec4 backgroundColor = glm::vec4(0,0,0,.8);
glm::vec4 captionBackgrounColor = glm::vec4(0.0,0.1,0.0,1);
glm::vec4 captionColor = glm::vec4(0,1,0,1);
glm::vec4 lineColor = glm::vec4(0,1,0,1);
glm::vec4 textColor = glm::vec4(0,1,0,1);
size_t captionFontSize = 10;
size_t fontSize = 8;
size_t margin = 2;
size_t captionMargin = 2;
size_t textIndent = 2;
//size_t inputSpacing = 2;
size_t inputOutputDistance = 10;
size_t inputRadius = 4;
size_t outputRadius = 4;
size_t lineWidth = 1;
using namespace ui;
this->root = new Split(1,{
new Rectangle(0,lineWidth,{newData<Line>(0,.5,1,.5,lineWidth,lineColor)}),//top line
new Split(0,{
new Rectangle(lineWidth,0,{newData<Line>(.5,0,.5,1,lineWidth,lineColor)}),//left line
new Split(1,{
new Split(1,{
new Rectangle(0,captionMargin),
new Split(0,{
new Rectangle(captionMargin,0),
new Rectangle(captionFontSize*this->functionName.length(),captionFontSize*2,{newData<Text>(this->functionName,captionFontSize,captionColor)}),
new Rectangle(captionMargin,0),
}),
new Rectangle(0,captionMargin),
},{
newData<Triangle>(0,0,1,0,1,1,captionBackgrounColor),
newData<Triangle>(0,0,1,1,0,1,captionBackgrounColor),
//newData<MouseMotionEvent>([](void*ptr,glm::vec2 const&diff){((Function*)ptr)->move(diff);},this),
newData<MouseMotionEvent>([](void*ptr,glm::vec2 const&diff){((Function*)ptr)->move(diff);},this,MouseMotionEvent::MOUSE_EXIT_BIT|MouseMotionEvent::MOUSE_MOVE_BIT),
newData<MouseButtonEvent>([](void*ptr){((Function*)ptr)->doMove = true;std::cout<<"klikam"<<std::endl;},this,true,MouseButton::LEFT),
newData<MouseButtonEvent>([](void*ptr){((Function*)ptr)->doMove = false;std::cout<<"klikam"<<std::endl;},this,false,MouseButton::LEFT),
}),
new Rectangle(0,lineWidth,{newData<Line>(0,.5,1,.5,lineWidth,lineColor)}),//caption line
new Split(0,{
new Rectangle(margin,0),
new Split(1,{
new Rectangle(0,margin),
new Split(0,{
new Split(1,//inputs
repear1D(this->inputNames.size(),[&](size_t i)->Element*{
return new Split(0,{
new Rectangle(inputRadius*2,inputRadius*2,{
newData<Circle>(.5,.5,inputRadius,lineWidth,lineColor),
newData<MouseMotionEvent>([](std::shared_ptr<void>const&ptr){std::cerr<<"input: "<<*(int32_t*)ptr.get()<<std::endl;},std::make_shared<int32_t>(i))
}),
new Rectangle(textIndent,0),
new Rectangle(fontSize*this->inputNames[i].length(),fontSize*2,{newData<Text>(this->inputNames[i],fontSize,textColor)})
});
})
),
new Rectangle(inputOutputDistance,0),
new Split(0,{
new Rectangle(fontSize*this->outputName.length(),fontSize*2,{newData<Text>(this->outputName,fontSize,textColor,glm::vec2(0,.5))}),
new Rectangle(textIndent,0),
new Rectangle(outputRadius*2,outputRadius*2,{newData<Circle>(.5,.5,outputRadius,lineWidth,lineColor)}),
}),
//output
}),
new Rectangle(0,margin),
}),
new Rectangle(margin,0),
},{newData<Triangle>(0,0,1,0,1,1,backgroundColor),newData<Triangle>(0,0,1,1,0,1,backgroundColor)}),
}),
new Rectangle(lineWidth,0,{newData<Line>(.5,0,.5,1,lineWidth,lineColor)}),//right line
}),
new Rectangle(0,lineWidth,{newData<Line>(0,.5,1,.5,lineWidth,lineColor)}),//bottom line
},{
newData<MouseMotionEvent>([](void*ptr){((Function*)ptr)->setLineColor();},this,MouseMotionEvent::MOUSE_ENTER_BIT),
newData<MouseMotionEvent>([](void*ptr){((Function*)ptr)->setLineColor(glm::vec4(0.f,1.f,0.f,1.f));},this,MouseMotionEvent::MOUSE_EXIT_BIT),
});
root->getSize();
this->node = std::make_shared<Node2d>();
root->visitor(addToNode2,&*this->node);
root->visitor(addMouseMotionEventToNode,&*this->node);
root->visitor(addMouseButtonEventToNode,&*this->node);
}
void Function::setLineColor(glm::vec4 const&color){
assert(this!=nullptr);
assert(this->node!=nullptr);
if(!this->node->hasValues<Line>())return;
auto v = this->node->getValues<Line>();
for(auto const&x:v){
auto vv=(Line*)x;
vv->color = color;
}
if(!this->node->hasNamedValue<bool>("dataChanged"))return;
*this->node->getNamedValue<bool>("dataChanged") = true;
}
void Function::move(glm::vec2 const&diff){
assert(this!=nullptr);
assert(this->node!=nullptr);
if(!this->doMove)return;
this->node->mat *= Edit::translate(diff);
}
class gde::EditorImpl{
public:
EditorImpl(ge::gl::Context const&g,glm::uvec2 const&size):gl(g){
this->functions.push_back(new Function("addSome",{"valueA","valueB","valueC","val"},"output"));
this->functions.push_back(new Function("computeProjection",{"fovy","aspect","near","far"},"projection"));
this->edit = new Edit(g,size);
this->edit->functionsNode->pushNode(this->functions[0]->node);
this->edit->functionsNode->pushNode(this->functions[1]->node);
this->functions[1]->node->mat = Edit::translate(glm::vec2(100,100));
//this->testFce->root->visitor(addToNode2,&*this->edit->functionsNode);
//this->testFce->root->visitor(addMouseMotionEventToNode,&*this->edit->functionsNode);
}
Edit*edit;
std::vector<Function*>functions;
~EditorImpl(){
for(auto const&x:this->functions)
delete x;
}
ge::gl::Context const≷
bool mouseButtons[3] = {false,false,false};
};
Editor::Editor(ge::gl::Context const&gl,glm::uvec2 const&size){
this->_impl = new EditorImpl{gl,size};
}
Editor::~Editor(){
delete this->_impl;
}
void Editor::mouseMotion(int32_t xrel,int32_t yrel,size_t x,size_t y){
(void)xrel;
(void)yrel;
(void)x;
(void)y;
if(this->_impl->mouseButtons[MIDDLE]){
this->_impl->edit->editViewport->cameraPosition+=glm::vec2(-xrel,-yrel);
return;
}
this->_impl->edit->mouseMotion(xrel,yrel,x,y);
}
void Editor::mouseButtonDown(MouseButton b,size_t x,size_t y){
(void)x;
(void)y;
this->_impl->mouseButtons[b] = true;
this->_impl->edit->mouseButton(true,b,x,y);
}
void Editor::mouseButtonUp(MouseButton b,size_t x,size_t y){
(void)x;
(void)y;
this->_impl->mouseButtons[b] = false;
this->_impl->edit->mouseButton(false,b,x,y);
}
void Editor::mouseWheel(int32_t x,int32_t y){
(void)x;
(void)y;
this->_impl->edit->editViewport->cameraScale = glm::clamp(this->_impl->edit->editViewport->cameraScale+y*0.1f,0.001f,10.f);
}
void Editor::resize(size_t w,size_t h){
this->_impl->edit->rootViewport->cameraSize = glm::vec2(w,h);
this->_impl->edit->editViewport->cameraSize = glm::vec2(w,h);
}
void Editor::draw(){
this->_impl->edit->draw();
}
|
/*************************************************************************/
/* dictionary.cpp */
/*************************************************************************/
/* This file is part of: */
/* GODOT ENGINE */
/* https://godotengine.org */
/*************************************************************************/
/* Copyright (c) 2007-2019 Juan Linietsky, Ariel Manzur. */
/* Copyright (c) 2014-2019 Godot Engine contributors (cf. AUTHORS.md) */
/* */
/* Permission is hereby granted, free of charge, to any person obtaining */
/* a copy of this software and associated documentation files (the */
/* "Software"), to deal in the Software without restriction, including */
/* without limitation the rights to use, copy, modify, merge, publish, */
/* distribute, sublicense, and/or sell copies of the Software, and to */
/* permit persons to whom the Software is furnished to do so, subject to */
/* the following conditions: */
/* */
/* The above copyright notice and this permission notice shall be */
/* included in all copies or substantial portions of the Software. */
/* */
/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */
/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */
/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.*/
/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */
/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/
#include "gdnative/dictionary.h"
#include "core/variant.h"
// core/variant.h before to avoid compile errors with MSVC
#include "core/dictionary.h"
#include "core/io/json.h"
#ifdef __cplusplus
extern "C" {
#endif
void GDAPI godot_dictionary_new(godot_dictionary *r_dest) {
Dictionary *dest = (Dictionary *)r_dest;
memnew_placement(dest, Dictionary);
}
void GDAPI godot_dictionary_new_copy(godot_dictionary *r_dest, const godot_dictionary *p_src) {
Dictionary *dest = (Dictionary *)r_dest;
const Dictionary *src = (const Dictionary *)p_src;
memnew_placement(dest, Dictionary(*src));
}
void GDAPI godot_dictionary_destroy(godot_dictionary *p_self) {
Dictionary *self = (Dictionary *)p_self;
self->~Dictionary();
}
godot_dictionary GDAPI godot_dictionary_duplicate(const godot_dictionary *p_self, const godot_bool p_deep) {
const Dictionary *self = (const Dictionary *)p_self;
godot_dictionary res;
Dictionary *val = (Dictionary *)&res;
memnew_placement(val, Dictionary);
*val = self->duplicate(p_deep);
return res;
}
godot_int GDAPI godot_dictionary_size(const godot_dictionary *p_self) {
const Dictionary *self = (const Dictionary *)p_self;
return self->size();
}
godot_bool GDAPI godot_dictionary_empty(const godot_dictionary *p_self) {
const Dictionary *self = (const Dictionary *)p_self;
return self->empty();
}
void GDAPI godot_dictionary_clear(godot_dictionary *p_self) {
Dictionary *self = (Dictionary *)p_self;
self->clear();
}
godot_bool GDAPI godot_dictionary_has(const godot_dictionary *p_self, const godot_variant *p_key) {
const Dictionary *self = (const Dictionary *)p_self;
const Variant *key = (const Variant *)p_key;
return self->has(*key);
}
godot_bool GDAPI godot_dictionary_has_all(const godot_dictionary *p_self, const godot_array *p_keys) {
const Dictionary *self = (const Dictionary *)p_self;
const Array *keys = (const Array *)p_keys;
return self->has_all(*keys);
}
void GDAPI godot_dictionary_erase(godot_dictionary *p_self, const godot_variant *p_key) {
Dictionary *self = (Dictionary *)p_self;
const Variant *key = (const Variant *)p_key;
self->erase(*key);
}
godot_int GDAPI godot_dictionary_hash(const godot_dictionary *p_self) {
const Dictionary *self = (const Dictionary *)p_self;
return self->hash();
}
godot_array GDAPI godot_dictionary_keys(const godot_dictionary *p_self) {
godot_array dest;
const Dictionary *self = (const Dictionary *)p_self;
memnew_placement(&dest, Array(self->keys()));
return dest;
}
godot_array GDAPI godot_dictionary_values(const godot_dictionary *p_self) {
godot_array dest;
const Dictionary *self = (const Dictionary *)p_self;
memnew_placement(&dest, Array(self->values()));
return dest;
}
godot_variant GDAPI godot_dictionary_get(const godot_dictionary *p_self, const godot_variant *p_key) {
godot_variant raw_dest;
Variant *dest = (Variant *)&raw_dest;
const Dictionary *self = (const Dictionary *)p_self;
const Variant *key = (const Variant *)p_key;
memnew_placement(dest, Variant(self->operator[](*key)));
return raw_dest;
}
void GDAPI godot_dictionary_set(godot_dictionary *p_self, const godot_variant *p_key, const godot_variant *p_value) {
Dictionary *self = (Dictionary *)p_self;
const Variant *key = (const Variant *)p_key;
const Variant *value = (const Variant *)p_value;
self->operator[](*key) = *value;
}
godot_variant GDAPI *godot_dictionary_operator_index(godot_dictionary *p_self, const godot_variant *p_key) {
Dictionary *self = (Dictionary *)p_self;
const Variant *key = (const Variant *)p_key;
return (godot_variant *)&self->operator[](*key);
}
const godot_variant GDAPI *godot_dictionary_operator_index_const(const godot_dictionary *p_self, const godot_variant *p_key) {
const Dictionary *self = (const Dictionary *)p_self;
const Variant *key = (const Variant *)p_key;
return (const godot_variant *)&self->operator[](*key);
}
godot_variant GDAPI *godot_dictionary_next(const godot_dictionary *p_self, const godot_variant *p_key) {
Dictionary *self = (Dictionary *)p_self;
const Variant *key = (const Variant *)p_key;
return (godot_variant *)self->next(key);
}
godot_bool GDAPI godot_dictionary_operator_equal(const godot_dictionary *p_self, const godot_dictionary *p_b) {
const Dictionary *self = (const Dictionary *)p_self;
const Dictionary *b = (const Dictionary *)p_b;
return *self == *b;
}
godot_string GDAPI godot_dictionary_to_json(const godot_dictionary *p_self) {
godot_string raw_dest;
String *dest = (String *)&raw_dest;
const Dictionary *self = (const Dictionary *)p_self;
memnew_placement(dest, String(JSON::print(Variant(*self))));
return raw_dest;
}
// GDNative core 1.1
godot_bool GDAPI godot_dictionary_erase_with_return(godot_dictionary *p_self, const godot_variant *p_key) {
Dictionary *self = (Dictionary *)p_self;
const Variant *key = (const Variant *)p_key;
return self->erase(*key);
}
godot_variant GDAPI godot_dictionary_get_with_default(const godot_dictionary *p_self, const godot_variant *p_key, const godot_variant *p_default) {
const Dictionary *self = (const Dictionary *)p_self;
const Variant *key = (const Variant *)p_key;
const Variant *def = (const Variant *)p_default;
godot_variant raw_dest;
Variant *dest = (Variant *)&raw_dest;
memnew_placement(dest, Variant(self->get(*key, *def)));
return raw_dest;
}
#ifdef __cplusplus
}
#endif
|
#include "VisualScriptComment.hpp"
#include <core/GodotGlobal.hpp>
#include <core/CoreTypes.hpp>
#include <core/Ref.hpp>
#include <core/Godot.hpp>
#include "__icalls.hpp"
namespace godot {
VisualScriptComment::___method_bindings VisualScriptComment::___mb = {};
void VisualScriptComment::___init_method_bindings() {
___mb.mb_get_description = godot::api->godot_method_bind_get_method("VisualScriptComment", "get_description");
___mb.mb_get_size = godot::api->godot_method_bind_get_method("VisualScriptComment", "get_size");
___mb.mb_get_title = godot::api->godot_method_bind_get_method("VisualScriptComment", "get_title");
___mb.mb_set_description = godot::api->godot_method_bind_get_method("VisualScriptComment", "set_description");
___mb.mb_set_size = godot::api->godot_method_bind_get_method("VisualScriptComment", "set_size");
___mb.mb_set_title = godot::api->godot_method_bind_get_method("VisualScriptComment", "set_title");
}
VisualScriptComment *VisualScriptComment::_new()
{
return (VisualScriptComment *) godot::nativescript_1_1_api->godot_nativescript_get_instance_binding_data(godot::_RegisterState::language_index, godot::api->godot_get_class_constructor((char *)"VisualScriptComment")());
}
String VisualScriptComment::get_description() const {
return ___godot_icall_String(___mb.mb_get_description, (const Object *) this);
}
Vector2 VisualScriptComment::get_size() const {
return ___godot_icall_Vector2(___mb.mb_get_size, (const Object *) this);
}
String VisualScriptComment::get_title() const {
return ___godot_icall_String(___mb.mb_get_title, (const Object *) this);
}
void VisualScriptComment::set_description(const String description) {
___godot_icall_void_String(___mb.mb_set_description, (const Object *) this, description);
}
void VisualScriptComment::set_size(const Vector2 size) {
___godot_icall_void_Vector2(___mb.mb_set_size, (const Object *) this, size);
}
void VisualScriptComment::set_title(const String title) {
___godot_icall_void_String(___mb.mb_set_title, (const Object *) this, title);
}
} |
//==============================================================================
/*
Software License Agreement (BSD License)
Copyright (c) 2003-2016, CHAI3D
(www.chai3d.org)
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.
* Neither the name of CHAI3D nor the names of its contributors may
be used to endorse or promote products derived from this software
without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
\author <http://www.chai3d.org>
\author Francois Conti
\version $MAJOR.$MINOR.$RELEASE $Rev: 2015 $
*/
//==============================================================================
//------------------------------------------------------------------------------
#include "CBulletWorld.h"
//------------------------------------------------------------------------------
using namespace std;
//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
namespace chai3d {
//------------------------------------------------------------------------------
//==============================================================================
/*!
Constructor of cBulletWorld.
*/
//==============================================================================
cBulletWorld::cBulletWorld()
{
// reset simulation time
m_simulationTime = 0.0;
// integration time step
m_integrationTimeStep = 0.001;
// maximum number of iterations
m_integrationMaxIterations = 5;
// setup broad phase collision detection
m_bulletBroadphase = new btDbvtBroadphase();
// setup the collision configuration
m_bulletCollisionConfiguration = new btDefaultCollisionConfiguration();
// setup the collision dispatcher
m_bulletCollisionDispatcher = new btCollisionDispatcher(m_bulletCollisionConfiguration);
// register GIMPACT collision detector for GIMPACT objects
btGImpactCollisionAlgorithm::registerAlgorithm(m_bulletCollisionDispatcher);
// setup the actual physics solver
m_bulletSolver = new btSequentialImpulseConstraintSolver;
// setup the dynamic world
m_bulletWorld = new btDiscreteDynamicsWorld(m_bulletCollisionDispatcher, m_bulletBroadphase, m_bulletSolver, m_bulletCollisionConfiguration);
// assign gravity constant
m_bulletWorld->setGravity(btVector3( 0.0, 0.0,-9.81));
}
//==============================================================================
/*!
Destructor of cBulletWorld.
*/
//==============================================================================
cBulletWorld::~cBulletWorld()
{
// clear all bodies
m_bodies.clear();
// delete resources
delete m_bulletWorld;
delete m_bulletSolver;
delete m_bulletCollisionDispatcher;
delete m_bulletCollisionConfiguration;
delete m_bulletBroadphase;
}
//==============================================================================
/*!
This methods defines a gravity field passed as argument.
\param a_gravity Gravity field vector.
*/
//==============================================================================
void cBulletWorld::setGravity(const cVector3d& a_gravity)
{
m_bulletWorld->setGravity(btVector3(a_gravity(0), a_gravity(1), a_gravity(2)));
}
//==============================================================================
/*!
This methods returns the current gravity field vector.
\return Current gravity field vector.
*/
//==============================================================================
cVector3d cBulletWorld::getGravity()
{
btVector3 gravity = m_bulletWorld->getGravity();
cVector3d result(gravity[0], gravity[1], gravity[2]);
return (result);
}
//==============================================================================
/*!
This methods updates the simulation over a time interval passed as
argument.
\param a_interval Time increment.
*/
//==============================================================================
void cBulletWorld::updateDynamics(double a_interval)
{
// sanity check
if (a_interval <= 0) { return; }
// integrate simulation during an certain interval
m_bulletWorld->stepSimulation(a_interval, m_integrationMaxIterations, m_integrationTimeStep);
// add time to overall simulation
m_simulationTime = m_simulationTime + a_interval;
// update CHAI3D positions for of all object
updatePositionFromDynamics();
}
//==============================================================================
/*!
This methods updates the position and orientation from the Bullet models
to CHAI3D models.
*/
//==============================================================================
void cBulletWorld::updatePositionFromDynamics()
{
list<cBulletGenericObject*>::iterator i;
for(i = m_bodies.begin(); i != m_bodies.end(); ++i)
{
cBulletGenericObject* nextItem = *i;
nextItem->updatePositionFromDynamics();
}
}
//------------------------------------------------------------------------------
} // namespace chai3d
//------------------------------------------------------------------------------ |
; A203310: a(n) = A203309(n+1)/A203309(n).
; 2,15,252,7560,356400,24324300,2270268000,277880803200,43197833952000,8315583035760000,1942008468966720000,540988073497872000000,177227692877902867200000,67457290601651778828000000
add $0,1
mov $1,$0
mov $2,$0
lpb $0
mul $2,2
div $2,$1
lpb $0
add $3,1
add $3,$0
sub $0,1
mul $2,$3
lpe
lpe
mov $0,$2
div $0,2
|
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r14
push %r8
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x69bd, %rsi
nop
and %r8, %r8
movw $0x6162, (%rsi)
nop
nop
nop
nop
sub $24167, %rsi
lea addresses_WT_ht+0x2dfd, %rsi
lea addresses_D_ht+0x19bbd, %rdi
nop
nop
nop
nop
nop
sub $43012, %r10
mov $21, %rcx
rep movsb
nop
add %rcx, %rcx
lea addresses_WT_ht+0x1b68d, %r10
nop
sub %r14, %r14
movb (%r10), %cl
cmp %r8, %r8
lea addresses_WC_ht+0xe53d, %r14
nop
nop
nop
cmp $53216, %rcx
mov $0x6162636465666768, %rdi
movq %rdi, %xmm3
movups %xmm3, (%r14)
nop
nop
nop
nop
nop
cmp $63798, %r10
lea addresses_normal_ht+0x2c9d, %rcx
dec %r8
and $0xffffffffffffffc0, %rcx
vmovntdqa (%rcx), %ymm0
vextracti128 $1, %ymm0, %xmm0
vpextrq $1, %xmm0, %rsi
xor %rcx, %rcx
pop %rsi
pop %rdi
pop %rcx
pop %r8
pop %r14
pop %r12
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %rbp
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
// REPMOV
lea addresses_RW+0x85bd, %rsi
lea addresses_PSE+0x148ae, %rdi
nop
sub $7599, %rdx
mov $72, %rcx
rep movsw
nop
nop
dec %rbp
// Store
lea addresses_PSE+0x18e7d, %rsi
nop
nop
nop
add %rdi, %rdi
mov $0x5152535455565758, %rbx
movq %rbx, (%rsi)
nop
nop
nop
sub $4894, %rcx
// Faulty Load
mov $0x39b8ab0000000fbd, %rsi
nop
nop
nop
xor $50403, %rbx
movups (%rsi), %xmm4
vpextrq $1, %xmm4, %rdi
lea oracles, %rbx
and $0xff, %rdi
shlq $12, %rdi
mov (%rbx,%rdi,1), %rdi
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbx
pop %rbp
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'size': 32, 'NT': False, 'type': 'addresses_NC', 'same': False, 'AVXalign': True, 'congruent': 0}}
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_RW', 'congruent': 9}, 'dst': {'same': False, 'type': 'addresses_PSE', 'congruent': 0}}
{'OP': 'STOR', 'dst': {'size': 8, 'NT': False, 'type': 'addresses_PSE', 'same': False, 'AVXalign': True, 'congruent': 6}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'size': 16, 'NT': False, 'type': 'addresses_NC', 'same': True, 'AVXalign': False, 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'size': 2, 'NT': False, 'type': 'addresses_WC_ht', 'same': False, 'AVXalign': True, 'congruent': 9}}
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_WT_ht', 'congruent': 6}, 'dst': {'same': False, 'type': 'addresses_D_ht', 'congruent': 10}}
{'OP': 'LOAD', 'src': {'size': 1, 'NT': False, 'type': 'addresses_WT_ht', 'same': False, 'AVXalign': False, 'congruent': 4}}
{'OP': 'STOR', 'dst': {'size': 16, 'NT': False, 'type': 'addresses_WC_ht', 'same': False, 'AVXalign': False, 'congruent': 7}}
{'OP': 'LOAD', 'src': {'size': 32, 'NT': True, 'type': 'addresses_normal_ht', 'same': False, 'AVXalign': False, 'congruent': 3}}
{'44': 467, '49': 2, '32': 21338, '00': 21, '06': 1}
00 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 44 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 44 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 44 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 44 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 44 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 44 32 32 32 32 32 32 32 44 32 32 32 32 44 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 00 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 44 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 44 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 44 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 44 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 44 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 44 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 44 32 32 32 32 32 32 32 44 32 32 32 32 32 32 32 32 32 32 32 44 32 32 32 32 32 32 32 32 32 32 32 32 44 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32
*/
|
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r15
push %rax
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x173a7, %rsi
nop
nop
sub $15919, %rbp
mov (%rsi), %r11w
cmp %r15, %r15
lea addresses_D_ht+0x1c2ff, %rsi
nop
nop
nop
nop
add %rcx, %rcx
mov (%rsi), %r12d
nop
nop
nop
xor $46000, %r15
lea addresses_WC_ht+0x1bd67, %r12
nop
nop
and $57333, %rsi
movb (%r12), %r11b
nop
nop
nop
and %r11, %r11
lea addresses_UC_ht+0xca67, %r12
sub $18819, %r11
mov $0x6162636465666768, %r15
movq %r15, (%r12)
nop
nop
nop
and %rbp, %rbp
lea addresses_WC_ht+0x14267, %rcx
cmp %r11, %r11
mov $0x6162636465666768, %rbp
movq %rbp, %xmm4
vmovups %ymm4, (%rcx)
nop
nop
nop
nop
cmp $59692, %rbp
lea addresses_UC_ht+0xfa67, %rsi
lea addresses_WT_ht+0x7867, %rdi
dec %r12
mov $8, %rcx
rep movsw
nop
nop
nop
xor %r12, %r12
lea addresses_D_ht+0x2967, %rsi
lea addresses_UC_ht+0x1ef9c, %rdi
nop
nop
nop
dec %rax
mov $85, %rcx
rep movsb
nop
and $49627, %rdi
lea addresses_UC_ht+0x6767, %rsi
lea addresses_UC_ht+0x1b267, %rdi
sub %rax, %rax
mov $63, %rcx
rep movsw
nop
nop
nop
xor %rax, %rax
lea addresses_A_ht+0x15e67, %r11
nop
nop
cmp %rax, %rax
mov $0x6162636465666768, %rcx
movq %rcx, %xmm7
and $0xffffffffffffffc0, %r11
vmovaps %ymm7, (%r11)
nop
nop
nop
nop
dec %r15
lea addresses_normal_ht+0x6e67, %r15
nop
nop
nop
nop
xor $2141, %r12
mov (%r15), %r11
nop
nop
nop
nop
and %r11, %r11
pop %rsi
pop %rdi
pop %rcx
pop %rbp
pop %rax
pop %r15
pop %r12
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r11
push %r12
push %r13
push %r14
push %r9
push %rax
// Load
lea addresses_WC+0xd267, %r10
nop
cmp %r11, %r11
mov (%r10), %r9d
nop
nop
nop
inc %r9
// Store
lea addresses_D+0x11bd7, %r11
nop
nop
nop
nop
dec %r14
movl $0x51525354, (%r11)
nop
nop
cmp %r9, %r9
// Faulty Load
lea addresses_US+0xe267, %r9
nop
nop
cmp $8757, %r12
movb (%r9), %al
lea oracles, %r14
and $0xff, %rax
shlq $12, %rax
mov (%r14,%rax,1), %rax
pop %rax
pop %r9
pop %r14
pop %r13
pop %r12
pop %r11
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_US', 'same': False, 'size': 4, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_WC', 'same': False, 'size': 4, 'congruent': 10, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'dst': {'type': 'addresses_D', 'same': False, 'size': 4, 'congruent': 4, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
[Faulty Load]
{'src': {'type': 'addresses_US', 'same': True, 'size': 1, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'type': 'addresses_A_ht', 'same': False, 'size': 2, 'congruent': 5, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_D_ht', 'same': False, 'size': 4, 'congruent': 3, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_WC_ht', 'same': False, 'size': 1, 'congruent': 8, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'dst': {'type': 'addresses_UC_ht', 'same': False, 'size': 8, 'congruent': 10, 'NT': True, 'AVXalign': False}, 'OP': 'STOR'}
{'dst': {'type': 'addresses_WC_ht', 'same': False, 'size': 32, 'congruent': 11, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_UC_ht', 'congruent': 11, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 9, 'same': True}, 'OP': 'REPM'}
{'src': {'type': 'addresses_D_ht', 'congruent': 8, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 0, 'same': True}, 'OP': 'REPM'}
{'src': {'type': 'addresses_UC_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 11, 'same': False}, 'OP': 'REPM'}
{'dst': {'type': 'addresses_A_ht', 'same': False, 'size': 32, 'congruent': 5, 'NT': True, 'AVXalign': True}, 'OP': 'STOR'}
{'src': {'type': 'addresses_normal_ht', 'same': False, 'size': 8, 'congruent': 8, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'00': 21829}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*/
|
#pragma once
// ARKSurvivalEvolved (329.9) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "ARKSurvivalEvolved_PrimalItemStructure_TaxidermyBase_Medium_structs.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Classes
//---------------------------------------------------------------------------
// BlueprintGeneratedClass PrimalItemStructure_TaxidermyBase_Medium.PrimalItemStructure_TaxidermyBase_Medium_C
// 0x0000 (0x0AE0 - 0x0AE0)
class UPrimalItemStructure_TaxidermyBase_Medium_C : public UPrimalItemStructure_TaxidermyBase_C
{
public:
static UClass* StaticClass()
{
static auto ptr = UObject::FindClass("BlueprintGeneratedClass PrimalItemStructure_TaxidermyBase_Medium.PrimalItemStructure_TaxidermyBase_Medium_C");
return ptr;
}
void ExecuteUbergraph_PrimalItemStructure_TaxidermyBase_Medium(int EntryPoint);
};
}
#ifdef _MSC_VER
#pragma pack(pop)
#endif
|
db 0 ; species ID placeholder
db 50, 65, 107, 86, 105, 107
; hp atk def spd sat sdf
db ELECTRIC, FIRE ; type
db 45 ; catch rate
db 154 ; base exp
db NO_ITEM, NO_ITEM ; items
db GENDER_UNKNOWN ; gender ratio
db 20 ; step cycles to hatch
INCBIN "gfx/pokemon/rotom_fre/front.dimensions"
db GROWTH_MEDIUM_FAST ; growth rate
dn EGG_INDETERMINATE, EGG_INDETERMINATE ; egg groups
db 70 ; happiness
; tm/hm learnset
tmhm TOXIC, HIDDEN_POWER, SUNNY_DAY, LIGHT_SCREEN, PROTECT, RAIN_DANCE, FRUSTRATION, THUNDERBOLT, THUNDER, RETURN, SHADOW_BALL, DOUBLE_TEAM, REFLECT, SHOCK_WAVE, FACADE, SECRET_POWER, REST, THIEF, SNATCH, CHARGE_BEAM, ENDURE, WILL_O_WISP, FLASH, THUNDER_WAVE, PSYCH_UP, DARK_PULSE, SLEEP_TALK, NATURAL_GIFT, DREAM_EATER, SWAGGER, SUBSTITUTE, MUD_SLAP, OMINOUS_WIND, SIGNAL_BEAM, SNORE, SPITE, SUCKER_PUNCH, SWIFT, TRICK, UPROAR
; end
|
#include "pch_directX.h"
#include "DeviceResources.h"
#include "DirectXHelper.h"
#include <algorithm>
#include <cmath>
#if defined (__cplusplus_winrt)
#include <windows.ui.xaml.media.dxinterop.h>
#endif
using namespace D2D1;
using namespace DirectX;
using namespace Microsoft::WRL;
#if defined (__cplusplus_winrt)
using namespace Windows::Foundation;
using namespace Windows::Graphics::Display;
using namespace Windows::UI::Core;
using namespace Windows::UI::Xaml::Controls;
using namespace Platform;
#endif
// Constants used to calculate screen rotations.
namespace ScreenRotation
{
// 0-degree Z-rotation
static const XMFLOAT4X4 Rotation0(
1.0f, 0.0f, 0.0f, 0.0f,
0.0f, 1.0f, 0.0f, 0.0f,
0.0f, 0.0f, 1.0f, 0.0f,
0.0f, 0.0f, 0.0f, 1.0f
);
// 90-degree Z-rotation
static const XMFLOAT4X4 Rotation90(
0.0f, 1.0f, 0.0f, 0.0f,
-1.0f, 0.0f, 0.0f, 0.0f,
0.0f, 0.0f, 1.0f, 0.0f,
0.0f, 0.0f, 0.0f, 1.0f
);
// 180-degree Z-rotation
static const XMFLOAT4X4 Rotation180(
-1.0f, 0.0f, 0.0f, 0.0f,
0.0f, -1.0f, 0.0f, 0.0f,
0.0f, 0.0f, 1.0f, 0.0f,
0.0f, 0.0f, 0.0f, 1.0f
);
// 270-degree Z-rotation
static const XMFLOAT4X4 Rotation270(
0.0f, -1.0f, 0.0f, 0.0f,
1.0f, 0.0f, 0.0f, 0.0f,
0.0f, 0.0f, 1.0f, 0.0f,
0.0f, 0.0f, 0.0f, 1.0f
);
};
// Constructor for DeviceResources.
DirectX::DeviceResources::DeviceResources() :
m_screenViewport(),
m_d3dFeatureLevel(D3D_FEATURE_LEVEL_9_1),
m_d3dRenderTargetSize(),
m_outputSize(),
m_logicalSize(),
m_nativeOrientation(DisplayOrientations::None),
m_currentOrientation(DisplayOrientations::None),
m_dpi(-1.0f),
m_dpiScaleX(1.0f),
m_dpiScaleY(1.0f),
m_deviceNotify(nullptr)
{
m_multiSampleLevel = 1;
m_multiSampleQuality = 0;
CreateDeviceIndependentResources();
CreateDeviceResources();
}
void DirectX::DeviceResources::SetNativeWindow(HWND hWnd)
{
m_deviceHostType = DeviceHostType::NativeWindow;
RECT rect;
GetWindowRect(hWnd, &rect);
m_hWnd = hWnd;
m_logicalSize = Size((float)(rect.right - rect.left),(float)(rect.bottom - rect.top));
m_nativeOrientation = DisplayOrientations::None;
m_currentOrientation = DisplayOrientations::None;
UINT arrayElements = 4, modeElements = 4;
DISPLAYCONFIG_PATH_INFO dispInfos[4];
DISPLAYCONFIG_MODE_INFO dispModeInfo[4];
QueryDisplayConfig(QDC_ONLY_ACTIVE_PATHS, &arrayElements, dispInfos, &modeElements, dispModeInfo,NULL);
HDC screen = GetDC(hWnd);
m_dpi = (float)GetDeviceCaps(screen, LOGPIXELSX);
auto pyhsicalw = (float) GetDeviceCaps(screen, HORZRES);
auto physicalh = (float) GetDeviceCaps(screen, VERTRES);
m_dpiScaleY = (float) dispModeInfo[1].sourceMode.height / physicalh;
m_dpiScaleX = (float) dispModeInfo[1].sourceMode.width / pyhsicalw;
ReleaseDC(hWnd, screen);
//m_d2dContext->SetDpi(m_dpi, m_dpi);
CreateWindowSizeDependentResources();
}
#if defined (__cplusplus_winrt)
// This method is called when the CoreWindow is created (or re-created).
void DirectX::DeviceResources::SetCoreWindow(CoreWindow^ window)
{
m_deviceHostType = DeviceHostType::CoreWindow;
DisplayInformation^ currentDisplayInformation = DisplayInformation::GetForCurrentView();
m_window = window;
m_logicalSize = Size(window->Bounds.Width, window->Bounds.Height);
m_nativeOrientation = currentDisplayInformation->NativeOrientation;
m_currentOrientation = currentDisplayInformation->CurrentOrientation;
m_dpi = currentDisplayInformation->LogicalDpi;
m_d2dContext->SetDpi(m_dpi, m_dpi);
CreateWindowSizeDependentResources();
}
// This method is called when the XAML control is created (or re-created).
void DirectX::DeviceResources::SetSwapChainPanel(SwapChainPanel^ panel)
{
m_deviceHostType = DeviceHostType::Composition;
DisplayInformation^ currentDisplayInformation = DisplayInformation::GetForCurrentView();
m_swapChainPanel = panel;
m_logicalSize = Size(static_cast<float>(panel->ActualWidth), static_cast<float>(panel->ActualHeight));
m_nativeOrientation = currentDisplayInformation->NativeOrientation;
m_currentOrientation = currentDisplayInformation->CurrentOrientation;
m_dpiScaleX = panel->CompositionScaleX;
m_dpiScaleY = panel->CompositionScaleY;
m_dpi = currentDisplayInformation->LogicalDpi;
m_d2dContext->SetDpi(m_dpi, m_dpi);
CreateWindowSizeDependentResources();
}
#endif
// Configures resources that don't depend on the Direct3D device.
void DirectX::DeviceResources::CreateDeviceIndependentResources()
{
// Initialize Direct2D resources.
D2D1_FACTORY_OPTIONS options;
ZeroMemory(&options, sizeof(D2D1_FACTORY_OPTIONS));
#if defined(_DEBUG)
// If the project is in a debug build, enable Direct2D debugging via SDK Layers.
options.debugLevel = D2D1_DEBUG_LEVEL_INFORMATION;
#endif
// Initialize the Direct2D Factory.
DirectX::ThrowIfFailed(
D2D1CreateFactory(
D2D1_FACTORY_TYPE_SINGLE_THREADED,
__uuidof(ID2D1Factory2),
&options,
&m_d2dFactory
)
);
// Initialize the DirectWrite Factory.
DirectX::ThrowIfFailed(
DWriteCreateFactory(
DWRITE_FACTORY_TYPE_SHARED,
__uuidof(IDWriteFactory2),
&m_dwriteFactory
)
);
// Initialize the Windows Imaging Component (WIC) Factory.
//DirectX::ThrowIfFailed(
// CoCreateInstance(
// CLSID_WICImagingFactory2,
// nullptr,
// CLSCTX_INPROC_SERVER,
// IID_PPV_ARGS(&m_wicFactory)
// )
// );
}
// Configures the Direct3D device, and stores handles to it and the device context.
void DirectX::DeviceResources::CreateDeviceResources()
{
// This flag adds support for surfaces with a different color channel ordering
// than the API default. It is required for compatibility with Direct2D.
UINT creationFlags = D3D11_CREATE_DEVICE_BGRA_SUPPORT;
#if defined(_DEBUG)
if (DirectX::SdkLayersAvailable())
{
// If the project is in a debug build, enable debugging via SDK Layers with this flag.
creationFlags |= D3D11_CREATE_DEVICE_DEBUG;
}
#endif
// This array defines the set of DirectX hardware feature levels this app will support.
// Note the ordering should be preserved.
// Don't forget to declare your application's minimum required feature level in its
// description. All applications are assumed to support 9.1 unless otherwise stated.
D3D_FEATURE_LEVEL featureLevels[] =
{
D3D_FEATURE_LEVEL_11_0,
D3D_FEATURE_LEVEL_10_1,
D3D_FEATURE_LEVEL_10_0,
D3D_FEATURE_LEVEL_9_3,
D3D_FEATURE_LEVEL_9_2,
D3D_FEATURE_LEVEL_9_1
};
// Create the Direct3D 11 API device object and a corresponding context.
ComPtr<ID3D11Device> device;
ComPtr<ID3D11DeviceContext> context;
HRESULT hr = D3D11CreateDevice(
nullptr, // Specify nullptr to use the default adapter.
D3D_DRIVER_TYPE_HARDWARE, // Create a device using the hardware graphics driver.
0, // Should be 0 unless the driver is D3D_DRIVER_TYPE_SOFTWARE.
creationFlags, // Set debug and Direct2D compatibility flags.
featureLevels, // List of feature levels this app can support.
ARRAYSIZE(featureLevels), // Size of the list above.
D3D11_SDK_VERSION, // Always set this to D3D11_SDK_VERSION for Windows Store apps.
&device, // Returns the Direct3D device created.
&m_d3dFeatureLevel, // Returns feature level of device created.
&context // Returns the device immediate context.
);
if (FAILED(hr))
{
// If the initialization fails, fall back to the WARP device.
// For more information on WARP, see:
// http://go.microsoft.com/fwlink/?LinkId=286690
DirectX::ThrowIfFailed(
D3D11CreateDevice(
nullptr,
D3D_DRIVER_TYPE_WARP, // Create a WARP device instead of a hardware device.
0,
creationFlags,
featureLevels,
ARRAYSIZE(featureLevels),
D3D11_SDK_VERSION,
&device,
&m_d3dFeatureLevel,
&context
)
);
}
// Store pointers to the Direct3D 11.1 API device and immediate context.
DirectX::ThrowIfFailed(
device.As(&m_d3dDevice)
);
DirectX::ThrowIfFailed(
context.As(&m_d3dContext)
);
// Create the Direct2D device object and a corresponding context.
ComPtr<IDXGIDevice3> dxgiDevice;
DirectX::ThrowIfFailed(
m_d3dDevice.As(&dxgiDevice)
);
DirectX::ThrowIfFailed(
m_d2dFactory->CreateDevice(dxgiDevice.Get(), &m_d2dDevice)
);
DirectX::ThrowIfFailed(
m_d2dDevice->CreateDeviceContext(
D2D1_DEVICE_CONTEXT_OPTIONS_NONE,
&m_d2dContext
)
);
}
void DirectX::DeviceResources::CreateSwapChainForComposition(IDXGIFactory2* dxgiFactory, DXGI_SWAP_CHAIN_DESC1 *pSwapChainDesc)
{
#if defined (__cplusplus_winrt)
// When using XAML interop, the swap chain must be created for composition.
DirectX::ThrowIfFailed(
dxgiFactory->CreateSwapChainForComposition(
m_d3dDevice.Get(),
pSwapChainDesc,
nullptr,
&m_swapChain
)
); // Associate swap chain with SwapChainPanel
// UI changes will need to be dispatched back to the UI thread
m_swapChainPanel->Dispatcher->RunAsync(CoreDispatcherPriority::High, ref new DispatchedHandler([=]()
{
// Get backing native interface for SwapChainPanel
ComPtr<ISwapChainPanelNative> panelNative;
DirectX::ThrowIfFailed(
reinterpret_cast<IUnknown*>(m_swapChainPanel)->QueryInterface(IID_PPV_ARGS(&panelNative))
);
DirectX::ThrowIfFailed(
panelNative->SetSwapChain(m_swapChain.Get())
);
}, CallbackContext::Any));
#else
#endif
}
// These resources need to be recreated every time the window size is changed.
void DirectX::DeviceResources::CreateWindowSizeDependentResources()
{
auto SwapChainFormat = DXGI_FORMAT_B8G8R8A8_UNORM;
// Clear the previous window size specific context.
ID3D11RenderTargetView* nullViews[] = {nullptr};
m_d3dContext->OMSetRenderTargets(ARRAYSIZE(nullViews), nullViews, nullptr);
m_d3dRenderTargetView = nullptr;
m_d2dContext->SetTarget(nullptr);
m_d2dTargetBitmap = nullptr;
m_d3dDepthStencilView = nullptr;
m_d3dContext->Flush();
// Calculate the necessary swap chain and render target size in pixels.
m_outputSize.Width = m_logicalSize.Width * m_dpiScaleX;
m_outputSize.Height = m_logicalSize.Height * m_dpiScaleY;
// Prevent zero size DirectX content from being created.
m_outputSize.Width = std::max(m_outputSize.Width, 1.0f);
m_outputSize.Height = std::max(m_outputSize.Height, 1.0f);
// The width and height of the swap chain must be based on the window's
// natively-oriented width and height. If the window is not in the native
// orientation, the dimensions must be reversed.
DXGI_MODE_ROTATION displayRotation = ComputeDisplayRotation();
bool swapDimensions = displayRotation == DXGI_MODE_ROTATION_ROTATE90 || displayRotation == DXGI_MODE_ROTATION_ROTATE270;
m_d3dRenderTargetSize.Width = swapDimensions ? m_outputSize.Height : m_outputSize.Width;
m_d3dRenderTargetSize.Height = swapDimensions ? m_outputSize.Width : m_outputSize.Height;
if (m_swapChain != nullptr)
{
// If the swap chain already exists, resize it.
HRESULT hr = m_swapChain->ResizeBuffers(
2, // Double-buffered swap chain.
lround(m_d3dRenderTargetSize.Width),
lround(m_d3dRenderTargetSize.Height),
SwapChainFormat,
0
);
if (hr == DXGI_ERROR_DEVICE_REMOVED || hr == DXGI_ERROR_DEVICE_RESET)
{
// If the device was removed for any reason, a new device and swap chain will need to be created.
HandleDeviceLost();
// Everything is set up now. Do not continue execution of this method. HandleDeviceLost will reenter this method
// and correctly set up the new device.
return;
}
else
{
DirectX::ThrowIfFailed(hr);
}
}
else
{
// Otherwise, create a new one using the same adapter as the existing Direct3D device.
// This sequence obtains the DXGI factory that was used to create the Direct3D device above.
ComPtr<IDXGIDevice3> dxgiDevice;
DirectX::ThrowIfFailed(
m_d3dDevice.As(&dxgiDevice)
);
ComPtr<IDXGIAdapter> dxgiAdapter;
DirectX::ThrowIfFailed(
dxgiDevice->GetAdapter(&dxgiAdapter)
);
ComPtr<IDXGIFactory2> dxgiFactory;
DirectX::ThrowIfFailed(
dxgiAdapter->GetParent(IID_PPV_ARGS(&dxgiFactory))
);
DXGI_SWAP_CHAIN_DESC1 swapChainDesc = {0};
if (m_deviceHostType != DirectX::DeviceHostType::NativeWindow)
{
m_multiSampleLevel = 1;
m_multiSampleQuality = 0;
}
if (m_multiSampleLevel > 1)
{
HRESULT hr = m_d3dDevice->CheckMultisampleQualityLevels(SwapChainFormat, m_multiSampleLevel, &m_multiSampleQuality);
m_multiSampleQuality = std::min(std::max(m_multiSampleQuality - 1U, 0U),4U);
swapChainDesc.SampleDesc.Count = m_multiSampleLevel;
swapChainDesc.SampleDesc.Quality = m_multiSampleQuality;
swapChainDesc.SwapEffect = DXGI_SWAP_EFFECT_DISCARD;
}
else
{
swapChainDesc.SampleDesc.Count = 1; // Don't use multi-sampling.
swapChainDesc.SampleDesc.Quality = 0;
swapChainDesc.SwapEffect = DXGI_SWAP_EFFECT_FLIP_SEQUENTIAL; // All Windows Store apps must use this SwapEffect.
}
swapChainDesc.Width = lround(m_d3dRenderTargetSize.Width); // Match the size of the window.
swapChainDesc.Height = lround(m_d3dRenderTargetSize.Height);
swapChainDesc.Format = SwapChainFormat; // This is the most common swap chain format.
swapChainDesc.Stereo = false;
swapChainDesc.BufferUsage = DXGI_USAGE_RENDER_TARGET_OUTPUT;
swapChainDesc.BufferCount = 2; // Use double-buffering to minimize latency.
swapChainDesc.Flags = 0;
swapChainDesc.Scaling = DXGI_SCALING_STRETCH;
swapChainDesc.AlphaMode = DXGI_ALPHA_MODE_IGNORE;
switch (m_deviceHostType)
{
case DirectX::DeviceHostType::None:
break;
case DirectX::DeviceHostType::NativeWindow:
DirectX::ThrowIfFailed(
dxgiFactory->CreateSwapChainForHwnd(
m_d3dDevice.Get(),
m_hWnd,
&swapChainDesc,
nullptr,
nullptr,
&m_swapChain)
);
break;
#if defined (__cplusplus_winrt)
case DirectX::DeviceHostType::CoreWindow:
DirectX::ThrowIfFailed(
dxgiFactory->CreateSwapChainForCoreWindow(
m_d3dDevice.Get(),
reinterpret_cast<IUnknown*>(m_window.Get()),
&swapChainDesc,
nullptr,
&m_swapChain
)
);
break;
#endif
case DirectX::DeviceHostType::Composition:
CreateSwapChainForComposition(dxgiFactory.Get(), &swapChainDesc);
break;
default:
break;
}
// Ensure that DXGI does not queue more than one frame at a time. This both reduces latency and
// ensures that the application will only render after each VSync, minimizing power consumption.
DirectX::ThrowIfFailed(
dxgiDevice->SetMaximumFrameLatency(1)
);
}
// Set the proper orientation for the swap chain, and generate 2D and
// 3D matrix transformations for rendering to the rotated swap chain.
// Note the rotation angle for the 2D and 3D transforms are different.
// This is due to the difference in coordinate spaces. Additionally,
// the 3D matrix is specified explicitly to avoid rounding errors.
switch (displayRotation)
{
case DXGI_MODE_ROTATION_UNSPECIFIED:
case DXGI_MODE_ROTATION_IDENTITY:
m_orientationTransform2D = Matrix3x2F::Identity();
m_orientationTransform3D = ScreenRotation::Rotation0;
break;
case DXGI_MODE_ROTATION_ROTATE90:
m_orientationTransform2D =
Matrix3x2F::Rotation(90.0f) *
Matrix3x2F::Translation(m_logicalSize.Height, 0.0f);
m_orientationTransform3D = ScreenRotation::Rotation270;
break;
case DXGI_MODE_ROTATION_ROTATE180:
m_orientationTransform2D =
Matrix3x2F::Rotation(180.0f) *
Matrix3x2F::Translation(m_logicalSize.Width, m_logicalSize.Height);
m_orientationTransform3D = ScreenRotation::Rotation180;
break;
case DXGI_MODE_ROTATION_ROTATE270:
m_orientationTransform2D =
Matrix3x2F::Rotation(270.0f) *
Matrix3x2F::Translation(0.0f, m_logicalSize.Width);
m_orientationTransform3D = ScreenRotation::Rotation90;
break;
default:
throw std::exception("Failed to initialize");
}
// Roatation is only avaiable for them
if (m_multiSampleLevel <= 1)
{
HRESULT hr =
m_swapChain->SetRotation(displayRotation);
if (FAILED(hr) && hr != DXGI_ERROR_INVALID_CALL)
{
ThrowIfFailed(hr);
}
}
if (m_deviceHostType == DeviceHostType::Composition)
{
// Setup inverse scale on the swap chain
DXGI_MATRIX_3X2_F inverseScale = { 0 };
inverseScale._11 = 1.0f / m_dpiScaleX;
inverseScale._22 = 1.0f / m_dpiScaleY;
ComPtr<IDXGISwapChain2> spSwapChain2;
DirectX::ThrowIfFailed(
m_swapChain.As<IDXGISwapChain2>(&spSwapChain2)
);
DirectX::ThrowIfFailed(
spSwapChain2->SetMatrixTransform(&inverseScale)
);
}
// Create a render target view of the swap chain back buffer.
ComPtr<ID3D11Texture2D> backBuffer;
DirectX::ThrowIfFailed(
m_swapChain->GetBuffer(0, IID_PPV_ARGS(&backBuffer))
);
DirectX::ThrowIfFailed(
m_d3dDevice->CreateRenderTargetView(
backBuffer.Get(),
nullptr,
&m_d3dRenderTargetView
)
);
m_ColorBackBuffer = RenderableTexture2D(backBuffer.Get(), m_d3dRenderTargetView.Get(), nullptr);
// Create a depth stencil view for use with 3D rendering if needed.
CD3D11_TEXTURE2D_DESC depthStencilDesc(
DXGI_FORMAT_D24_UNORM_S8_UINT,
lround(m_d3dRenderTargetSize.Width),
lround(m_d3dRenderTargetSize.Height),
1, // This depth stencil view has only one texture.
1, // Use a single mipmap level.
D3D11_BIND_DEPTH_STENCIL,
D3D11_USAGE_DEFAULT,
0U,
m_multiSampleLevel,
m_multiSampleQuality
);
ComPtr<ID3D11Texture2D> depthStencil;
DirectX::ThrowIfFailed(
m_d3dDevice->CreateTexture2D(
&depthStencilDesc,
nullptr,
&depthStencil
)
);
//CD3D11_DEPTH_STENCIL_VIEW_DESC depthStencilViewDesc(depthStencil.Get(),D3D11_DSV_DIMENSION_TEXTURE2D);
DirectX::ThrowIfFailed(
m_d3dDevice->CreateDepthStencilView(
depthStencil.Get(),
nullptr,
&m_d3dDepthStencilView
)
);
m_DepthBuffer = DepthStencilBuffer(depthStencil.Get(),m_d3dDepthStencilView.Get());
// Set the 3D rendering viewport to target the entire window.
m_screenViewport = CD3D11_VIEWPORT(
0.0f,
0.0f,
m_d3dRenderTargetSize.Width,
m_d3dRenderTargetSize.Height
);
m_BackBuffer = RenderTarget(m_ColorBackBuffer, m_DepthBuffer, m_screenViewport);
m_d3dContext->RSSetViewports(1, &m_screenViewport);
// Create a Direct2D target bitmap associated with the
// swap chain back buffer and set it as the current target.
D2D1_BITMAP_PROPERTIES1 bitmapProperties =
D2D1::BitmapProperties1(
D2D1_BITMAP_OPTIONS_TARGET | D2D1_BITMAP_OPTIONS_CANNOT_DRAW,
D2D1::PixelFormat(SwapChainFormat, D2D1_ALPHA_MODE_PREMULTIPLIED),
m_dpi,
m_dpi
);
//? Critical!!!!
//return;
ComPtr<IDXGISurface2> dxgiBackBuffer;
DirectX::ThrowIfFailed(
m_swapChain->GetBuffer(0, IID_PPV_ARGS(&dxgiBackBuffer))
);
DirectX::ThrowIfFailed(
m_d2dContext->CreateBitmapFromDxgiSurface(
dxgiBackBuffer.Get(),
&bitmapProperties,
&m_d2dTargetBitmap
)
);
m_d2dContext->SetTarget(m_d2dTargetBitmap.Get());
// Grayscale text anti-aliasing is recommended for all Windows Store apps.
m_d2dContext->SetTextAntialiasMode(D2D1_TEXT_ANTIALIAS_MODE_GRAYSCALE);
}
// This method is called in the event handler for the SizeChanged event.
void DirectX::DeviceResources::SetLogicalSize(Size logicalSize)
{
if (m_logicalSize != logicalSize)
{
m_logicalSize = logicalSize;
CreateWindowSizeDependentResources();
}
}
// This method is called in the event handler for the DpiChanged event.
void DirectX::DeviceResources::SetDpi(float dpi)
{
if (dpi != m_dpi)
{
m_dpi = dpi;
m_d2dContext->SetDpi(m_dpi, m_dpi);
CreateWindowSizeDependentResources();
}
}
// This method is called in the event handler for the OrientationChanged event.
void DirectX::DeviceResources::SetCurrentOrientation(DisplayOrientations currentOrientation)
{
if (m_currentOrientation != currentOrientation)
{
m_currentOrientation = currentOrientation;
CreateWindowSizeDependentResources();
}
}
void DirectX::DeviceResources::SetCurrentOrientation(DirectX::FXMVECTOR quaternion)
{
XMStoreFloat4x4(&m_orientationTransform3D, DirectX::XMMatrixRotationQuaternion(quaternion));
}
// This method is called in the event handler for the CompositionScaleChanged event.
void DirectX::DeviceResources::SetCompositionScale(float compositionScaleX, float compositionScaleY)
{
if (m_dpiScaleX != compositionScaleX ||
m_dpiScaleY != compositionScaleY)
{
m_dpiScaleX = compositionScaleX;
m_dpiScaleY = compositionScaleY;
CreateWindowSizeDependentResources();
}
}
// This method is called in the event handler for the DisplayContentsInvalidated event.
void DirectX::DeviceResources::ValidateDevice()
{
// The D3D Device is no longer valid if the default adapter changed since the device
// was created or if the device has been removed.
// First, get the information for the default adapter from when the device was created.
ComPtr<IDXGIDevice3> dxgiDevice;
DirectX::ThrowIfFailed(m_d3dDevice.As(&dxgiDevice));
ComPtr<IDXGIAdapter> deviceAdapter;
DirectX::ThrowIfFailed(dxgiDevice->GetAdapter(&deviceAdapter));
ComPtr<IDXGIFactory2> deviceFactory;
DirectX::ThrowIfFailed(deviceAdapter->GetParent(IID_PPV_ARGS(&deviceFactory)));
ComPtr<IDXGIAdapter1> previousDefaultAdapter;
DirectX::ThrowIfFailed(deviceFactory->EnumAdapters1(0, &previousDefaultAdapter));
DXGI_ADAPTER_DESC previousDesc;
DirectX::ThrowIfFailed(previousDefaultAdapter->GetDesc(&previousDesc));
// Next, get the information for the current default adapter.
ComPtr<IDXGIFactory2> currentFactory;
DirectX::ThrowIfFailed(CreateDXGIFactory1(IID_PPV_ARGS(¤tFactory)));
ComPtr<IDXGIAdapter1> currentDefaultAdapter;
DirectX::ThrowIfFailed(currentFactory->EnumAdapters1(0, ¤tDefaultAdapter));
DXGI_ADAPTER_DESC currentDesc;
DirectX::ThrowIfFailed(currentDefaultAdapter->GetDesc(¤tDesc));
// If the adapter LUIDs don't match, or if the device reports that it has been removed,
// a new D3D device must be created.
if (previousDesc.AdapterLuid.LowPart != currentDesc.AdapterLuid.LowPart ||
previousDesc.AdapterLuid.HighPart != currentDesc.AdapterLuid.HighPart ||
FAILED(m_d3dDevice->GetDeviceRemovedReason()))
{
// Release references to resources related to the old device.
dxgiDevice = nullptr;
deviceAdapter = nullptr;
deviceFactory = nullptr;
previousDefaultAdapter = nullptr;
// Create a new device and swap chain.
HandleDeviceLost();
}
}
// Recreate all device resources and set them back to the current state.
void DirectX::DeviceResources::HandleDeviceLost()
{
m_swapChain = nullptr;
if (m_deviceNotify != nullptr)
{
m_deviceNotify->OnDeviceLost();
}
CreateDeviceResources();
m_d2dContext->SetDpi(m_dpi, m_dpi);
CreateWindowSizeDependentResources();
if (m_deviceNotify != nullptr)
{
m_deviceNotify->OnDeviceRestored();
}
}
// Register our DeviceNotify to be informed on device lost and creation.
void DirectX::DeviceResources::RegisterDeviceNotify(DirectX::IDeviceNotify* deviceNotify)
{
m_deviceNotify = deviceNotify;
}
// Call this method when the app suspends. It provides a hint to the driver that the app
// is entering an idle state and that temporary buffers can be reclaimed for use by other apps.
void DirectX::DeviceResources::Trim()
{
ComPtr<IDXGIDevice3> dxgiDevice;
m_d3dDevice.As(&dxgiDevice);
dxgiDevice->Trim();
}
// Present the contents of the swap chain to the screen.
void DirectX::DeviceResources::Present()
{
// The first argument instructs DXGI to block until VSync, putting the application
// to sleep until the next VSync. This ensures we don't waste any cycles rendering
// frames that will never be displayed to the screen.
HRESULT hr = m_swapChain->Present(1, 0);
#if !defined(_DEBUG)
// Discard the contents of the render target.
// This is a valid operation only when the existing contents will be entirely
// overwritten. If dirty or scroll rects are used, this call should be removed.
m_d3dContext->DiscardView(m_d3dRenderTargetView.Get());
// Discard the contents of the depth stencil.
m_d3dContext->DiscardView(m_d3dDepthStencilView.Get());
#endif
// If the device was removed either by a disconnection or a driver upgrade, we
// must recreate all device resources.
if (hr == DXGI_ERROR_DEVICE_REMOVED || hr == DXGI_ERROR_DEVICE_RESET)
{
HandleDeviceLost();
}
else
{
DirectX::ThrowIfFailed(hr);
}
}
// This method determines the rotation between the display device's native Orientation and the
// current display orientation.
DXGI_MODE_ROTATION DirectX::DeviceResources::ComputeDisplayRotation()
{
if (m_deviceHostType == DeviceHostType::NativeWindow)
{
DEVMODE devmode;
//DEVMODE structure
ZeroMemory(&devmode, sizeof(DEVMODE));
devmode.dmSize = sizeof(DEVMODE);
devmode.dmFields = DM_DISPLAYORIENTATION;
//Check display orientation
EnumDisplaySettingsEx(NULL, ENUM_CURRENT_SETTINGS, &devmode, EDS_RAWMODE);
switch (devmode.dmDisplayOrientation)
{
case DMDO_DEFAULT :
return DXGI_MODE_ROTATION_IDENTITY;
case DMDO_90:
return DXGI_MODE_ROTATION_ROTATE90;
case DMDO_180:
return DXGI_MODE_ROTATION_ROTATE180;
case DMDO_270:
return DXGI_MODE_ROTATION_ROTATE270;
default:
return DXGI_MODE_ROTATION_UNSPECIFIED;
}
}
DXGI_MODE_ROTATION rotation = DXGI_MODE_ROTATION_UNSPECIFIED;
// Note: NativeOrientation can only be Landscape or Portrait even though
// the DisplayOrientations enum has other values.
switch (m_nativeOrientation)
{
case DisplayOrientations::Landscape:
switch (m_currentOrientation)
{
case DisplayOrientations::Landscape:
rotation = DXGI_MODE_ROTATION_IDENTITY;
break;
case DisplayOrientations::Portrait:
rotation = DXGI_MODE_ROTATION_ROTATE270;
break;
case DisplayOrientations::LandscapeFlipped:
rotation = DXGI_MODE_ROTATION_ROTATE180;
break;
case DisplayOrientations::PortraitFlipped:
rotation = DXGI_MODE_ROTATION_ROTATE90;
break;
}
break;
case DisplayOrientations::Portrait:
switch (m_currentOrientation)
{
case DisplayOrientations::Landscape:
rotation = DXGI_MODE_ROTATION_ROTATE90;
break;
case DisplayOrientations::Portrait:
rotation = DXGI_MODE_ROTATION_IDENTITY;
break;
case DisplayOrientations::LandscapeFlipped:
rotation = DXGI_MODE_ROTATION_ROTATE270;
break;
case DisplayOrientations::PortraitFlipped:
rotation = DXGI_MODE_ROTATION_ROTATE180;
break;
}
break;
}
return rotation;
}
GraphicsResource::~GraphicsResource() {
//pDeviceResources->UnregisterDeviceNotify(this);
}
void GraphicsResource::SetDeviceResource(const std::shared_ptr<DeviceResources> pDeviceResources)
{
if (m_pDeviceResources != pDeviceResources)
{
m_pDeviceResources = pDeviceResources;
//pDeviceResources->RegisterDeviceNotify(this);
this->CreateDeviceResources();
this->CreateSizeDependentResource();
}
}
|
global _enter_protected_mode
extern _GDTR
bits 16
_enter_protected_mode:
; disable maskable interrupts
cli
; disable non-maskable interrupts
; ...
; load GDT into 'gdtr' register
; rely on the fact the C compiler defines the _GDTR symbol to denote the GDTR variable
lgdt [_GDTR]
; enter protected mode
mov eax, cr0
or eax, 0x00000001
mov cr0, eax
; configure code area to use the 2nd Segment Descriptor in GDT
; and jump to the 32-bit OS entry sequence
jmp 0x08:os32enter
bits 32
os32enter:
; configure data area to use the 3rd Segment Descriptor in GDT
mov ax, 0x10
mov ds, ax
mov es, ax
mov fs, ax
mov gs, ax
; configure stack area to use the 3rd Segment Descriptor in GDT
mov ax, 0x10
mov ss, ax
mov esp, 0x00010000
; call the OS proper (far call based on 2nd Segment Descriptor)
call 0x08:0x1000
; we are never to return here...
times 512 - ($-$$) db 0
|
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r14
push %r15
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x12fd4, %r12
nop
nop
nop
nop
inc %r14
mov $0x6162636465666768, %r15
movq %r15, (%r12)
nop
nop
nop
nop
inc %rsi
lea addresses_WC_ht+0xc054, %rdi
nop
xor $25722, %rbp
movl $0x61626364, (%rdi)
nop
xor %r14, %r14
lea addresses_normal_ht+0x124d4, %rdi
nop
nop
and $37395, %rbx
mov (%rdi), %r15
nop
add %r14, %r14
lea addresses_UC_ht+0x15ed4, %rsi
lea addresses_WC_ht+0xc34, %rdi
nop
cmp %r12, %r12
mov $54, %rcx
rep movsw
nop
nop
nop
nop
and $53816, %r15
lea addresses_A_ht+0xd754, %rsi
nop
mfence
mov (%rsi), %rcx
nop
nop
xor %rcx, %rcx
lea addresses_D_ht+0x8314, %rbp
nop
nop
xor %rdi, %rdi
mov (%rbp), %r12
nop
nop
nop
nop
nop
sub %rsi, %rsi
lea addresses_UC_ht+0x9cec, %rcx
sub %r12, %r12
vmovups (%rcx), %ymm2
vextracti128 $0, %ymm2, %xmm2
vpextrq $0, %xmm2, %rdi
nop
nop
nop
nop
nop
sub $20380, %rbp
lea addresses_UC_ht+0x67d4, %r14
nop
nop
nop
nop
add %r12, %r12
mov $0x6162636465666768, %rbp
movq %rbp, %xmm3
and $0xffffffffffffffc0, %r14
vmovntdq %ymm3, (%r14)
nop
nop
nop
sub $30312, %rsi
lea addresses_A_ht+0xd6d4, %rsi
nop
nop
nop
nop
nop
xor %rcx, %rcx
mov $0x6162636465666768, %rbp
movq %rbp, (%rsi)
nop
nop
nop
cmp $61945, %rcx
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %rbp
pop %r15
pop %r14
pop %r12
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r13
push %r14
push %r15
push %rbx
// Faulty Load
lea addresses_WC+0x178d4, %r15
nop
nop
nop
nop
nop
xor %r11, %r11
vmovaps (%r15), %ymm0
vextracti128 $0, %ymm0, %xmm0
vpextrq $0, %xmm0, %rbx
lea oracles, %r14
and $0xff, %rbx
shlq $12, %rbx
mov (%r14,%rbx,1), %rbx
pop %rbx
pop %r15
pop %r14
pop %r13
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_WC', 'same': False, 'size': 4, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'type': 'addresses_WC', 'same': True, 'size': 32, 'congruent': 0, 'NT': False, 'AVXalign': True}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'dst': {'type': 'addresses_A_ht', 'same': False, 'size': 8, 'congruent': 8, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'dst': {'type': 'addresses_WC_ht', 'same': True, 'size': 4, 'congruent': 7, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_normal_ht', 'same': False, 'size': 8, 'congruent': 8, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_UC_ht', 'congruent': 8, 'same': True}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 5, 'same': False}, 'OP': 'REPM'}
{'src': {'type': 'addresses_A_ht', 'same': False, 'size': 8, 'congruent': 4, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_D_ht', 'same': False, 'size': 8, 'congruent': 6, 'NT': True, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_UC_ht', 'same': False, 'size': 32, 'congruent': 1, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'dst': {'type': 'addresses_UC_ht', 'same': False, 'size': 32, 'congruent': 7, 'NT': True, 'AVXalign': False}, 'OP': 'STOR'}
{'dst': {'type': 'addresses_A_ht', 'same': False, 'size': 8, 'congruent': 8, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'00': 4679}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*/
|
; *******************************************************************************************************************************
; *******************************************************************************************************************************
;
; SCRUMPI 3 ROM (White Room Rewrite)
; ==================================
;
; Written by Paul Robson 26-27 February 2014. Based on designs by John H. Miller-Kirkpatrick
;
; *******************************************************************************************************************************
; *******************************************************************************************************************************
;
;
; 0FC0-0FDF Stack (32 bytes)
; 0FE0-0FE7 Labels (8 bytes)
; 0FE8 Current Cursor position.
; 0FE9 Count Byte for Displays
; 0FEA,B Implant current address (Monitor only)
; 0FEC Char printed at start of implant line print (Monitor only)
; 0FED-0FF6 Currently unused
; 0FF7-0FFF Storage for Registers (Monitor only)
;
; SC/MP Pointer Registers [P3.H,P3.L,P2.H,P2.L,P1.H,P1.L,E,S,A]
;
;
; P1 general usage (many routines preserve this)
; P2 stack
; P3 call/return address
;
keyboardPort = 12 * 256 ; Keyboard port is at $0C00
uartPort = 13 * 256 ; UART is at $0D00
videoRAM = 14 * 256 ; Video RAM is at $0E00
systemRAM = 15 * 256 + 128 ; System RAM is at $0F80
registerBase = 15 * 256 + 247 ; where the registers come/go
;
; 110 Baud TTY Speed Calculation
;
; 110 Baud = 110Hz.
; CPU Cycles = 3.51Mhz / 2
; 110 Baud delay is 3,510,000/110 = 31,909 Cycles.
; Delay time is (31909-13)/514 which is exactly 62.
;
baud110Delay = 62 ; required value for 110 baud delay.
;
; UART code is completely speculative. The only thing we actually know is that it is an AY-5-1013. This
; chip has no fixed registers but it does have three access pins.
;
; Pin 4 : Received Data Enable is a logic 0 activated port read. I have connected this to A0.
; Pin 23 : Data Strobe is a logic 0 activated port write. I have connected this to A1.
; Pin 16 : Status word Emable is a logic 0 activated status read, I have connected this to A2.
;
uartPortBase = uartPort + 240 ; base address for R/W
uartReceivedData = 14 ; (e.g. bit 0 only low)
uartDataStrobe = 13 ; (e.g. bit 1 only low)
uartStatusWordEnabled = 11 ; (e.g. bit 2 only low)
uartSWEParityError = 1 ; these are the connected status word bits
uartSWEFramingError = 2 ; these are just errors.
uartSWEOverRunError = 4
uartSWEDataAvailable = 8 ; logic '1' when data is available to receive.
uartSWETransmitBufferEmpty = 16 ; logic '1' when data can be transmitted.
;
; System variables I have used
;
cursor = 6 * 16 + 8 ; cursor position in VDU RAM (1 byte) $0FE8 offset from RAM.
labelArray = systemRAM + 6 * 16 ; label array ($0FE0)
tempCounter = 9 ; offset from TOS ($FE0)
implantAddress = 10 ; offset from TOS ($FE1,2)
charLine = 12 ; character to print in implant (fixes double CR)
rom1page = 7 * 16 ; page for ROM 1 (calls/jumps to 600-7FF)
; *******************************************************************************************************************************
; *******************************************************************************************************************************
;
; BIOS Start
; ----------
; Routines:
; BIOSPrintInline Print following string inline
; BIOSPrintCharacter Print a character
; BIOSReadKey Read and echo a key
; BIOSPrintHexNoSpace Print hex byte
; BIOSPrintHexSpace Print hex byte with trailing space.
;
; *******************************************************************************************************************************
; *******************************************************************************************************************************
cpu sc/mp
nop ; first instruction executed is at location 1.
ldi rom1Page+0x2 ; actually jumps to $7201. If it's not there, it will drop through to $7601.
xpah p3
xppc p3
; *******************************************************************************************************************************
;
; Load Registers back in and call P3, then Save Registers
;
; *******************************************************************************************************************************
LoadRegisters:
ld registerBase+0
xpah p3
ld registerBase+1
xpal p3
ld registerBase+2
xpah p2
ld registerBase+3
xpal p2
ld registerBase+4
xpah p1
ld registerBase+5
xpal p1
ld registerBase+6
xae
ld registerBase+7
cas
ld registerBase+8
; xppc p3
SaveRegisters:
st registerBase+8
csa
st registerBase+7
lde
st registerBase+6
xpal p1
st registerBase+5
xpah p1
st registerBase+4
xpal p2
st registerBase+3
xpah p2
st registerBase+2
ldi (RunEnd - 1) & 0xFF ; go to end of run in ROM
xpal p3
st registerBase+1
ldi (RunEnd - 1) / 256 + rom1page
xpah p3
st registerBase+0
xppc p3
; *******************************************************************************************************************************
;
; Print String following the caller, terminated by $04.
;
; Note: this routine is *not* re-entrant.
;
; *******************************************************************************************************************************
BIOSPrintInline:
ldi (BIOSPrintCharacter - 1) / 256 ; copy P3 (old) to P1, and set up P3 to call PrintCharacter
xpah p3
xpah p1
ldi (BIOSPrintCharacter - 1) & 255
xpal p3
xpal p1 ; after this instruction, P1 points to XPPC 3.
_PILNextCharacter:
ld @1(p1) ; go to the next character
ld 0(p1) ; read it.
xppc p3 ; print the character.
ld 0(p1) ; re-read the character
xri 0x04 ; is it $04 (end of print string)
jnz _PILNextCharacter ; go back if not.
xppc p1 ; P1 points to the $04 terminator, so return will add one (pre-increment)
; *******************************************************************************************************************************
;
; Read a Debounced ASCII key from the Keyboard into A and Echo it.
;
; Note: this is not re-entrant because it falls through into the BIOSPrintCharacter routine.
;
; *******************************************************************************************************************************
BIOSReadKey:
ld @-2(p2) ; stack space. +0 is current key, +1 is debounce count
_RKYWaitRelease: ; wait for all keys to be released.
csa
ani 0x10 ; firstly check SA.
jnz _RKYWaitRelease
xpal p1 ; now point P1 to the keyboard at $C00
ldi KeyboardPort / 256
xpah p1
ld 0xF(p1) ; scan every row and column (reads $C0F)
ani 15 ; the control keys can stay pressed, it doesn't matter.
jnz _RKYWaitRelease
_RKYDebounceReset: ; come back here if debounce check fails e.g. not held steady.
ldi 0x0 ; reset the current key value
st 0(p2)
_RKYRecheckKey:
ldi 3 ; we start the key count at 3 (because the LHS is the MSB)
xae
csa ; read the state of Sense A.
ani 0x10 ; check sense A pressed now $00 No, $10 yes
scl
cai 3 ; now $FD now, $0D yes.
jp _RKYGotASCIIKey ; got the ASCII key ?
ldi 0x08 ; start reading $0C08 e.g. the top row.
_RKYDiscoverRow:
xpal p1 ; set P1 to point to the row.
ld 0(p1) ; read that row
ani 15 ; look at the 16 key part data only (no shifts)
jnz _RKYFoundKey ; if a key is non-zero, then we have found a key press
xae ; add 4 to E (e.g. the next row down)
ccl
adi 4
xae
xpal p1 ; this is the row address e.g. it goes 8,4,2,1
sr ; shift it right.
jnz _RKYDiscoverRow ; if non-zero, there's another row to scan.
jmp _RKYDebounceReset ; if zero, no key found, so start key scanning again.
_RKYFindBit:
xae ; decrement E (the Left most key is bit 3)
scl
cai 1
xae
_RKYFoundKey: ; found key. key bit is in A, base is in E (0,4,8,12)
sr ; shift that bit pattern right.
jnz _RKYFindBit ; if non-zero, change E and try again.
xpal p1 ; clear P1.L so it points to $C00 again.
ld 0(p1) ; read the keypad again - we're going to shift it now.008
ani 0x70 ; mask out the punctuation, and alpha shift keys. (Bits 4,5,6)
; NoShift : $00 Alpha 1 : $10 Alpha 2 : $20 Punc : $40
xri 0x40 ; NoShift : $40 Alpha 1 : $50 Alpha 2 : $60 Punc : $00
jnz _RKYNotPunctuation
ldi 0x30 ; set to $30 if $00 (punctuation.)
_RKYNotPunctuation: ; NoShift : $40 Alpha 1 : $50 Alpha 2 : $60 Punc : $30
ccl
adi 0xF0 ; NoShift : $30 ('0') Alpha 1 : $40 ('@') Alpha 2 : $50 ('P') Punc : $20(' ')
ore ; Or the lower 4 bits into it, A now contains the complete character.
_RKYGotASCIIKey:
xae ; put back in E.
ld 0(p2) ; read current character , if zero, it's a new test
jnz _RKYCheckDebounce
lde ; save current character, we have just pressed that.
st 0(p2)
ldi 4 ; need it to be the same for 4 consecutive reads.
st 1(p2)
jmp _RKYRecheckKey
_RKYCheckDebounce:
xre ; is it the same as the current key pressed
jnz _RKYDebounceReset ; if it has changed, debounce has failed, so go back and start again
dld 1(p2) ; decrement the debounce counter
jnz _RKYRecheckKey ; and go back if not been checked enough.
ld @2(p2) ; fix the stack up
lde ; get the character into A.
jmp BIOSPrintCharacter ; echo it, and return.
; *******************************************************************************************************************************
;
; Print A in Hex, with or without a trailing space. Preserves P1.
;
; Partially re-entrant, if called again always is in trailing space mode.
;
; *******************************************************************************************************************************
BIOSPrintHexNoSpace:
xae ; put byte to output in E
ldi 0 ; no trailing space.
jmp _PHXMain
BIOSPrintHexSpace:
xae ; put byte to output in E
ldi ' ' ; with trailing space flag.
_PHXMain:
st -1(p2) ; save trailing flag on stack
ldi (_PHXPrintHex - 1) / 256 ; save return address in -3(p2),-4(p2)
xpah p3 ; at the same time point to Print Nibble routine.
st -3(p2)
ldi (_PHXPrintHex - 1) & 255
xpal p3
st @-4(p2) ; and adjust stack downwards.
lde ; restore byte to print
st 2(p2) ; save it in stack temp space.
rr ; rotate right to get upper nibl.
rr
rr
rr
xppc p3 ; print the upper nibble
ldi (_PHXPrintHex-1) & 255 ; this is not re-entrant because it tages onto PrintCharacter
xpal p3
ldi (_PHXPrintHex - 1) / 256 ; however, these 3 bytes could be lost if PrintHex and BIOSPrintChar in same page.
xpah p3
ld 2(p2) ; read byte to print
xppc p3 ; print the lower nibble.
ld 3(p2) ; read trailing flag
jz _PHXNoTrailer ; skip if zero
xppc p3 ; and print that - BIOSPrintCharacter will be used.
_PHXNoTrailer:
ld 1(p2) ; restore return address
xpah p3
ld @4(p2) ; fix the stack back here
xpal p3
xppc p3 ; and exit
jmp BIOSPrintHexSpace ; re-entrant with trailing space ONLY.
_PHXPrintHex: ; print A as a Nibble
ani 15 ; mask out nibble
ccl
dai 0x90 ; hopefully this will work - SC/MP version of Z80 trick.
; 0-9 => 9x, CY/L = 0, A-F, 0x, CY/L = 1
dai 0x40 ; 0-9 => 3x, A-F = 4x+1
; depends on how it actually adds but it works on most CPUs.
; *** FALLS THROUGH ***
; *******************************************************************************************************************************
;
; Print the Character in A. Preserves P1 and A.
;
; *******************************************************************************************************************************
BIOSPrintCharacter:
xae ; save character to print in E.
ldi systemRAM / 256 ; save P1 on stack, make it point to $0F80
xpah p1
st @-1(p2)
ldi systemRAM & 255
xpal p1
st @-1(p2)
lde ; get character to be printed back.
ccl ; add $E0, causes carry if 20-FF
adi 0xE0
csa ; check the carry bit
jp _PRCControl ; if clear, it is a control character.
ld cursor(p1) ; read the current cursor position.
xpal p1 ; put in P1.L
ldi videoRAM/256 ; make P1.H point to video RAM.
xpah p1
xae ; retrieve character from E, save systemRAM in E.
st @1(p1) ; save character in P1
xae ; put it back in E.
_PRCShowCursorAndSaveCheckScroll: ; show cursor and save position BUT scroll up if at TOS (gone off bottom)
xpal p1 ; scrolling up ?
jz _PRCScroll
xpal p1
_PRCShowCursorAndSavePosition:
ldi 0xA0 ; put a cursor (solid block) in the next square
st 0(p1)
ldi SystemRAM / 256 ; make P1 point to System RAM.
xpah p1
ldi systemRAM & 255
xpal p1 ; at the same time retrieve the cursor position into A.
st cursor(p1) ; write the cursor position out, updated.
_PRCExit:
ld @1(p2) ; restore P1 off the stack.
xpal p1
ld @1(p2)
xpah p1
lde ; restore printed character from E.
xppc p3 ; and exit the routine.
jmp BIOSPrintCharacter ; make it re-entrant.
_PRCControl:
ld cursor(p1) ; make P1 point to the current video RAM location.
xpal p1
ldi VideoRAM/256
xpah p1
ldi ' ' ; erase current cursor.
st 0(p1)
lde ; get character code back.
xri 0x01 ; test for code $01 (Clear Screen)
jnz _PRCControl2
_PRCClearScreen:
xpal p1 ; current position in A, to P1.L
ldi ' ' ; write space to screen and bump to next.
st @1(p1)
xpal p1 ; has it reached $00 again, e.g. whole screen.
jnz _PRCClearScreen ; not finished clearing yet.
xpal p1 ; p1 points to cursor now (e.g. it is 0) and p1.h is VRAM.
ldi VideoRAM/256 ; make it point to video RAM again.
xpah p1
jmp _PRCShowCursorAndSavePosition ; reshow the cursor and save the cursor position.
_PRCControl2:
xri 0x01 ! 0x0D ; carriage return ?
jnz _PRCControl3
xpal p1 ; get cursor position in P1.
ani 0xE0 ; start of line.
ccl
adi 0x20 ; next line down.
xpal p1 ; save cursor position
jmp _PRCShowCursorAndSaveCheckScroll
_PRCControl3:
xri 0x0D ! 0x08 ; is it backspace ($08)
jnz _PRCShowCursorAndSavePosition ; unknown control character.
xpal p1 ; get the cursor position into A.
jz _PRCStayHome ; can't backspace any further, already at 0
ccl ; subtract 1 from cursor position.
adi 0xFF
_PRCStayHome:
xpal p1 ; position back in P1.
jmp _PRCShowCursorAndSavePosition ; do not check for scrolling, but reshow cursor and save.
_PRCScroll: ; scroll screen up.
ldi VideoRAM/256 ; point P1.H to video RAM.
xpah p1
ldi 0x20 ; point P1.L to second line.
_PRCScrollLoop:
xpal p1
ld @1(p1) ; read line above and increment p1 afterwards.
st -0x21(p1) ; save immediately above, allow for increment
xpal p1
jnz _PRCScrollLoop ; on exit P1 = 0xF00.
xpal p1
ld @-32(p1) ; fix up P1 to point to bottom line
xpal p1
_PRCClearBottom:
xpal p1 ; clear the bottom line.
ldi ' '
st @1(p1)
xpal p1
jnz _PRCClearBottom
xpal p1
ld @-32(p1) ; fix it up again so cursor is start of bottom line.
jmp _PRCShowCursorAndSavePosition
; *******************************************************************************************************************************
;
; Attempt to read A hexadecimal digits. If okay : P1.H = <High>, E = <Low>, A = 0
; Bad Key : E = Key Number, A != 0
;
; *******************************************************************************************************************************
ReadHexadecimalSet:
st @-6(p2) ; reserve stack space. offset 0 is the number of nibbles to read.
xpal p3 ; save return address on stack
st 5(p2)
xpah p3
st 4(p2)
ldi 0 ; clear the high byte (2) and low byte (3)
st 2(p2)
st 3(p2)
_RHSMain: ; main read loop.
ldi 4
st 1(p2) ; shift the current byte left 4 times.
_RHSShiftLoop:
ccl
ld 3(p2) ; read low byte
add 3(p2) ; shift into carry.
st 3(p2)
ld 2(p2) ; high byte likewise, but inherit carry from low byte.
add 2(p2)
st 2(p2)
dld 1(p2) ; do it four times
jnz _RHSShiftLoop
_RHSGetHexKey:
ldi (BIOSReadKey-1) / 256 ; read and echo a key
xpah p3
ldi (BIOSReadKey-1) & 255
xpal p3
xppc p3
ccl
xae ; put key in E as temporary store.
lde
adi 255-'F' ; is key >= F
jp _RHSError ; then error.
adi 6 ; key will now be 0,1,2,3,4,5 for A-F.
jp _RHSIsAlphabeticHex ; go there if it is.
adi 7 ; if +ve will be wrong.
jp _RHSError ; so go back.
adi 1 ; shift 0-9 into the correct range when the 9 is added after this.
ccl
_RHSIsAlphabeticHex:
adi 9 ; we know CY/L will be set after the adi 6 that came here.
jp _RHSGotDigit ; if +ve we have a legal digit 0-15.
_RHSError:
lde ; get the key that was pressed, put in low byte.
st 3(p2)
scl ; and exit with CY/L set
jmp _RHSExit
_RHSGotDigit:
or 3(p2) ; or into the low byte
st 3(p2)
dld 0(p2) ; have we done this four times ?
jnz _RHSMain ; no, go round again !
ccl ; we want CY/L clear as it is okay.
_RHSExit: ; exit.
ld @6(p2) ; fix the stack back
ld -1(p2)
xpal p3
ld -2(p2)
xpah p3
ld -4(p2) ; read high byte, put in P1.H
xpah p1
ld -3(p2) ; read low byte, put in E
xpal p1
csa ; get status
ani 0x80 ; isolate carry flag, returns $80 on error.
xppc p3 ; and exit.
jmp ReadHexadecimalSet
; *******************************************************************************************************************************
;
; Put A to Flag 1 as a 110 Baud TTY (1 Start, 8 Data, nothing else), preserves P1
;
; *******************************************************************************************************************************
BIOSPutTTY:
xae ; put in E
ldi 10 ; set bit count to 10. Start + 8 Data + Clearing value.
st -1(p2) ; counter is on stack.
_PTTYSetLoop:
csa ; output start bit.
ori 0x02
_PTTYLoop:
cas ; write A to S.
ldi 0x00 ; delay 110 baud.
dly baud110delay
dld -1(p2) ; decrement the counter
jz _PTTYExit ; and exit if it is zero.
lde ; shift E left into the carry/link bit.
ccl
ade
xae
csa ; get the status register, CY/L is bit 7.
ani 0xFD ; clear the F1 bit, just in case.
jp _PTTYLoop ; if it is '1' then output to S and delay
jmp _PTTYSetLoop ; otherwise set it to '1' and delay.
_PTTYExit:
xppc p3 ; exit, this is re-entrant.
jmp BIOSPutTTY
; *******************************************************************************************************************************
;
; 1k ROM Space in the middle.
;
; *******************************************************************************************************************************
org 0x200 ; 0200 - 00 x 1024.
db 1024 dup (0)
org 0x600 ; 2nd half of the ROM.
; no, I don't know why it's not at $200 either !
; *******************************************************************************************************************************
;
; Monitor ROM Section starts here
;
; *******************************************************************************************************************************
ld @-32(p2) ; points stack to $0FE0 - (stack pre decrements)
; this can be moved back to ROM 0 if necessary.
; note ; on my emulator this does $FFE0 for speed.
ldi (BIOSPrintInline - 1) & 0xFF ; set P3 to point to boot prompt in line
xpal p3 ; we already know P3.H points to rom page 0
xppc p3
BootPrompt:
db 01 ; this is the boot up text - the initial call of BIOSPrintInline to do this
db "SCRUMPI 3" ; is faked. $01 is Clear Screen
db 13 ; carriage return.
db 4 ; end of prompt
; *******************************************************************************************************************************
;
; Main Command Entry Point
;
; Commands :
;
; I xxxx implant.
; L show labels
; H xxxx hex dump.
; G xxxx run.
; C continue.
;
;
; *******************************************************************************************************************************
Main: ldi (BIOSPrintInline-1) / 256 ; Print the 'COMMAND ?' prompt
xpah p3
ldi (BIOSPrintInline-1) & 255
xpal p3
xppc p3
db 13,"COMMAND ? ",4 ; can shorten this if we get really desperate :)
ldi (BIOSReadKey-1) / 256 ; Read a key.
xpah p3
ldi (BIOSReadKey-1) & 255
xpal p3
xppc p3
st tempCounter(p2) ; save in counter temp.
ldi ' ' ; BIOS Readkey re-enters into print character so print space
xppc p3
ld tempCounter(p2) ; load control character.
xri 'L' ; show labels.
jz ShowLabels
xri 'L' ! 'C' ; check for continuation.
jz Continue
ldi (ReadHexadecimalSet-1) & 0xFF ; load a 4 digit hex number into P1.
xpal p3
ldi (ReadHexadecimalSet-1) / 256
xpah p3
ldi 4
xppc p3 ; call it
jnz Main ; bad value !
ld tempCounter(p2) ; reload control character.
xri 'H' ; is it (H)ex Dump
jz ListMemory
xri 'H'!'G' ; is it (G)o
jz Go
xri 'G'!'I' ; is it (I)mplant
jz _GoImplant
_Main:
jmp Main
; *******************************************************************************************************************************
;
; List Memory
;
; *******************************************************************************************************************************
ListMemory:
ldi 6*8 ; do 6 lines
jmp DumpMemory
; *******************************************************************************************************************************
;
; Run Program from P1
;
; *******************************************************************************************************************************
Go: ld @-1(p1) ; going to XPPC 3 so subtract 1
xpah p1 ; copy address from P1 into Register memory.
st 0x17(p2)
xpal p1
st 0x18(p2)
; *******************************************************************************************************************************
;
; Continue from where you left off
;
; *******************************************************************************************************************************
Continue:
ldi (LoadRegisters-1) & 0xFF ; run the load registers code
xpal p3
ldi (LoadRegisters-1) / 256
xpah p3
xppc p3
; *******************************************************************************************************************************
;
; Show Labels
;
; *******************************************************************************************************************************
ShowLabels:
ldi labelArray & 255 ; point P1 to label array
xpal p1
ldi labelArray / 256
xpah p1
ldi 1*8 ; list 1 line.
; *******************************************************************************************************************************
;
;
; Dump A bytes of memory from P1 onwards.
;
; *******************************************************************************************************************************
DumpMemory:
st tempCounter(p2) ; save in counter byte.
_DMMLoop:
ld tempCounter(p2) ; time for a new line ?
ani 7
jnz _DMMNotNewLine
ldi (BIOSPrintCharacter-1) & 255 ; print a new line.
xpal p3
ldi (BIOSPrintCharacter-1) / 256
xpah p3
ldi 0x0D
xppc p3
ldi (BIOSPrintHexNoSpace-1) & 255 ; set up to print the address.
xpal p3
ldi (BIOSPrintHexNoSpace-1) / 256
xpah p3
xpah p1 ; print high byte.
xae
lde
xpah p1
lde
xppc p3
xpal p1 ; print low byte
xae
lde
xpal p1
lde
xppc p3
_DMMNotNewLine:
ld @1(p1) ; print a byte
xppc p3
dld tempCounter(p2) ; decrement counter
jnz _DMMLoop ; done the lot, no go back.
_Main2: jmp _Main ; enter the monitor.
_DumpMemory:
jmp DumpMemory
_GoImplant:
jmp Implant
; *******************************************************************************************************************************
;
; Code comes back here after load register/call/save register bit.
;
; *******************************************************************************************************************************
RunEnd: ldi 0xF ; reset stack pointer to $FE0
xpah p2
ldi 0xE0
xpal p2
ldi (BIOSPrintInline-1) & 255 ; we know P3.H is zero, just come from there !
xpal p3
xppc p3
db 1,"SCRUMPI 3 STATUS DUMP",13
db " P3 P2 P1 EX ST AC",13
db 4
ldi systemRAM/256 ; point F1 to RAM area
xpah p1
ldi registerBase & 255
xpal p1
ldi 0 ; counter = 0
st tempCounter(p2)
_REDumpBytes:
ldi (BIOSPrintHexSpace-1) & 0xFF ; P3 to point to hex printer, with space.
xpal p3
ldi (BIOSPrintHexSpace-1) / 256
xpah p3
ld tempCounter(p2) ; read counter.
ani 1 ; if odd, print with space
jnz _RESpaceNeeded
ld tempCounter(p2)
xri 6 ; not for 6 !
jz _RESpaceNeeded
ld @BIOSPrintHexNoSpace - BIOSPrintHexSpace(p3) ; fix call address so points to the no-space printer.
_RESpaceNeeded:
ld @1(p1) ; read the next byte.
xppc p3 ; dump it.
ild tempCounter(p2) ; increment counter
xri 9
jnz _REDumpBytes ; until dumped everything out.
ld @-0x38(p1) ; make P1 point to 0FC8, the bit where the stack is dumped.
ldi 3*8 ; we are going to do twenty four bytes (e.g. 3 lines)
jmp _DumpMemory ; use the hex dump code to dump the stack.
_Main3: jmp _Main2
; *******************************************************************************************************************************
;
; Implant Code
;
; *******************************************************************************************************************************
Implant:
ldi 0x0D ; character to print after this
_ImpStoreCharacter:
st charLine(p2)
_ImpUpdate:
ld 0(p1) ; read byte at implant address
st tempCounter(p2) ; save it.
xpal p1 ; save implant address
st implantAddress(p2)
xpah p1
st implantAddress+1(p2)
ldi (BIOSPrintCharacter-1) & 255 ; print a new line, perhaps.
xpal p3
ldi (BIOSPrintCharacter-1) / 256
xpah p3
ld charLine(p2) ; get character to print.
xppc p3
ldi (BIOSPrintHexNoSpace-1) & 255 ; set up to print the address.
xpal p3
ldi (BIOSPrintHexNoSpace-1) / 256
xpah p3
ld implantAddress+1(p2) ; print the address
xppc p3
ld implantAddress(p2)
xppc p3
ld tempCounter(p2) ; and the data that's there.
xppc p3
ldi 0x0D
st charLine(p2) ; set to print CR next time.
_ImpGet:
ldi (ReadHexadecimalSet-1) & 255 ; read a 2 byte number
xpal p3
ldi (ReadHexadecimalSet-1) / 256
xpah p3
ldi 2
xppc p3
xae ; store result in E
ld implantAddress+1(p2) ; reload implant address in P1
xpah p1
ld implantAddress(p2)
xpal p1 ; this loads the byte/key code into A
xae ; now the byte/key code is in E and the error flag in A
; and P1 points to the byte data.
jnz _ImpControlKey ; it wasn't a hex number, it was a control key.
lde ; get byte back
st 0(p1) ; write it at the implant address
jmp _ImpGet ; and get again - you can override or use INT to go to the next line.
_ImpNext: ; CR pressed
ld @1(p1)
ldi 0x04 ; no CR ; otherwise we get double CR
jmp _ImpStoreCharacter
_ImpControlKey: ; P1 = Implant, E = Key.
lde ; get key code
xri 0x0D ; is it CR
jz _ImpNext ; next byte.
xri 0x0D ! '>' ; is it go to monitor
jz _Main3 ; yes, exit.
lde ; save original control in temp Counter
st tempCounter(p2)
xri '=' ; check equals or ?
jz _ImpIsLabel
xri '='! '?'
jz _ImpIsLabel
_ImpUpdate2:
jmp _ImpUpdate
_ImpIsLabel:
ldi (BIOSReadKey - 1) & 0xFF ; get a key.
xpal p3
ldi (BIOSReadKey - 1) / 0xFF
xpah p3
xppc p3 ; get a key value.
xae ; copy into E
ld implantAddress+1(p2) ; reload implant address in P1
xpah p1
ld implantAddress(p2)
xpal p1
lde ; get the key value.
ani 0xF8 ; check if it is $30-$37 e.g. numbers 0-7
xri 0x30
jnz _ImpUpdate2 ; if not, then fail command.
lde ; we put the label address in P3 as we won't call anything.
xri 0x30 ! 0xE0 ; change from 3x to Ex
xpal p3
ldi systemRAM / 256
xpah p3
ld tempCounter(p2) ; get the temporary counter back.
xri '=' ; is it equals
jnz _ImpCalculateOffset ; calculate offset from location to here.
ld implantAddress(p2) ; get the lower byte of the address
st 0(p3) ; save in the label area
jmp _ImpUpdate2 ; and end command.
_ImpCalculateOffset:
ld 0(p3) ; get label
ccl
cad implantAddress(p2) ; read the LSB.
st 0(p1) ; store it
jmp _ImpUpdate2
; *******************************************************************************************************************************
;
; Read SB as a 110 Baud TTY into A (1 start bit, 8 data bits), preserves P1
;
; *******************************************************************************************************************************
BIOSGetTTY:
ldi 0 ; clear final result in E
xae
_GTTYWait:
csa ; wait until SB is logic '1', the start bit.
ani 0x20
jz _GTTYWait ; done !
dly baud110delay/2 ; go to middle of start pulse.
ldi 8 ; read this many bits.
st -1(p2)
_GTTYLoop:
ldi 0 ; go to the middle of the next pulse.
dly baud110delay
csa ; read it in.
ani 0x20 ; mask out SB.
jz _GTTYSkipSet
ldi 0x1
_GTTYSkipSet: ; it is now 0 or 1.
ccl
ade ; E = E * 2 + A (e.g. shift the bit in.)
ade
xae ; put it back in E
dld -1(p2) ; do it 8 times
jnz _GTTYLoop
dly baud110delay*5/2 ; ignore any stop bits and allow short delay
xae ; get the result
xppc p3 ; return
jmp BIOSGetTTY ; get the TTY
; *******************************************************************************************************************************
;
; Read a byte from the UART to A. On exit CY/L => error, , preserves P1
;
; *******************************************************************************************************************************
BIOSGetART:
ldi uartPortBase / 256 ; we set P2 to point to the UART for writing
xpah p2
ldi uartPortBase & 255
xpal p2 ; we can use E to save P2.L
xae ; which saves stacking/destacking P1.
_GARWait:
ld uartStatusWordEnabled(p2) ; read the status word
ani uartSWEDataAvailable ; wait for data available
jz _GARWait
ld uartStatusWordEnabled(p2) ; re-read it and mask out the error bits.
ani uartSWEFramingError+uartSWEParityError+uartSWEOverRunError
ccl
adi 0xFF ; will set carry unless every bit is zero i.e. no errors
ld uartReceivedData(p2) ; read the byte in.
xae ; put in E ; get P2.L back
xpal p2 ; save in P2
ldi 0x0F ; set P2.H to point to the stack
xpah p2
lde ; restore the read byte
xppc p3 ; and exit.
jmp BIOSGetART
; *******************************************************************************************************************************
;
; Write byte A to the UART, preserves P1
;
; *******************************************************************************************************************************
BIOSPutART:
xae ; save byte in E
ldi uartPortBase / 256 ; save P1, set it to point to the UART
xpah p1
st @-1(p2)
ldi uartPortBase & 255
xpal p1
st @-1(p2)
_PARWait:
ld uartStatusWordEnabled(p1) ; wait for the status word to indicate we can send data.
ani uartSWETransmitBufferEmpty
jz _PARWait
lde ; restore data from E
st uartDataStrobe(p1) ; send it by writing to the UART
ld @1(p2) ; restore P1
xpal p1
ld @1(p2)
xpal p1
xppc p3
jmp BIOSPutArt
xppc p3
;
; Possible savings:
;
; Shorten the status message
; Lose the intro message.
; Check some sequential calls where P3.H may not change.
; Make some less important routines not re-entrant (UART/TTY) and ReadHexadecimalSet (never reentered monitor routine)
; Roll rather than scroll the display (e.g. return to top and blank next line on CR)
; Remove check for =/? before asking for 0-7
; Disable check on 0-7 test, make it just and 7 (= and ?)
; Remove keyboard debouncing code.
;
; Disable either the TTY or UART. The review says it documents the monitor routines, but it says the 20ma loop can't be figured out
; did those routines get removed ??
;
; Fitting this in to 1k ROM and having the $0200 detection is an achievement. Though tightness would wonder why have "SCRUMPI 3 STATUS DUMP"
; text. There are some odd shortcuts ; if you type a command that is not L or C in Implant, then it asks for the address even if it is an
; invalid command. Checking for G,H,I would take us over the 1k.
;
; You cannot jump to 0 to restart it because of assumptions it makes about registers P2/3 being zero.
; |
// Copyright (c) 2012-2019 The Bitcoin Core developers
// Copyright (c) 2014-2019 The DigiByte Core developers
// Copyright (c) 2019-2020 The Auroracoin developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <consensus/consensus.h>
#include <consensus/tx_verify.h>
#include <pubkey.h>
#include <key.h>
#include <script/script.h>
#include <script/standard.h>
#include <uint256.h>
#include <test/setup_common.h>
#include <vector>
#include <boost/test/unit_test.hpp>
// Helpers:
static std::vector<unsigned char>
Serialize(const CScript& s)
{
std::vector<unsigned char> sSerialized(s.begin(), s.end());
return sSerialized;
}
BOOST_FIXTURE_TEST_SUITE(sigopcount_tests, BasicTestingSetup)
BOOST_AUTO_TEST_CASE(GetSigOpCount)
{
// Test CScript::GetSigOpCount()
CScript s1;
BOOST_CHECK_EQUAL(s1.GetSigOpCount(false), 0U);
BOOST_CHECK_EQUAL(s1.GetSigOpCount(true), 0U);
uint160 dummy;
s1 << OP_1 << ToByteVector(dummy) << ToByteVector(dummy) << OP_2 << OP_CHECKMULTISIG;
BOOST_CHECK_EQUAL(s1.GetSigOpCount(true), 2U);
s1 << OP_IF << OP_CHECKSIG << OP_ENDIF;
BOOST_CHECK_EQUAL(s1.GetSigOpCount(true), 3U);
BOOST_CHECK_EQUAL(s1.GetSigOpCount(false), 21U);
CScript p2sh = GetScriptForDestination(ScriptHash(s1));
CScript scriptSig;
scriptSig << OP_0 << Serialize(s1);
BOOST_CHECK_EQUAL(p2sh.GetSigOpCount(scriptSig), 3U);
std::vector<CPubKey> keys;
for (int i = 0; i < 3; i++)
{
CKey k;
k.MakeNewKey(true);
keys.push_back(k.GetPubKey());
}
CScript s2 = GetScriptForMultisig(1, keys);
BOOST_CHECK_EQUAL(s2.GetSigOpCount(true), 3U);
BOOST_CHECK_EQUAL(s2.GetSigOpCount(false), 20U);
p2sh = GetScriptForDestination(ScriptHash(s2));
BOOST_CHECK_EQUAL(p2sh.GetSigOpCount(true), 0U);
BOOST_CHECK_EQUAL(p2sh.GetSigOpCount(false), 0U);
CScript scriptSig2;
scriptSig2 << OP_1 << ToByteVector(dummy) << ToByteVector(dummy) << Serialize(s2);
BOOST_CHECK_EQUAL(p2sh.GetSigOpCount(scriptSig2), 3U);
}
/**
* Verifies script execution of the zeroth scriptPubKey of tx output and
* zeroth scriptSig and witness of tx input.
*/
static ScriptError VerifyWithFlag(const CTransaction& output, const CMutableTransaction& input, int flags)
{
ScriptError error;
CTransaction inputi(input);
bool ret = VerifyScript(inputi.vin[0].scriptSig, output.vout[0].scriptPubKey, &inputi.vin[0].scriptWitness, flags, TransactionSignatureChecker(&inputi, 0, output.vout[0].nValue), &error);
BOOST_CHECK((ret == true) == (error == SCRIPT_ERR_OK));
return error;
}
/**
* Builds a creationTx from scriptPubKey and a spendingTx from scriptSig
* and witness such that spendingTx spends output zero of creationTx.
* Also inserts creationTx's output into the coins view.
*/
static void BuildTxs(CMutableTransaction& spendingTx, CCoinsViewCache& coins, CMutableTransaction& creationTx, const CScript& scriptPubKey, const CScript& scriptSig, const CScriptWitness& witness)
{
creationTx.nVersion = 1;
creationTx.vin.resize(1);
creationTx.vin[0].prevout.SetNull();
creationTx.vin[0].scriptSig = CScript();
creationTx.vout.resize(1);
creationTx.vout[0].nValue = 1;
creationTx.vout[0].scriptPubKey = scriptPubKey;
spendingTx.nVersion = 1;
spendingTx.vin.resize(1);
spendingTx.vin[0].prevout.hash = creationTx.GetHash();
spendingTx.vin[0].prevout.n = 0;
spendingTx.vin[0].scriptSig = scriptSig;
spendingTx.vin[0].scriptWitness = witness;
spendingTx.vout.resize(1);
spendingTx.vout[0].nValue = 1;
spendingTx.vout[0].scriptPubKey = CScript();
AddCoins(coins, CTransaction(creationTx), 0);
}
BOOST_AUTO_TEST_CASE(GetTxSigOpCost)
{
// Transaction creates outputs
CMutableTransaction creationTx;
// Transaction that spends outputs and whose
// sig op cost is going to be tested
CMutableTransaction spendingTx;
// Create utxo set
CCoinsView coinsDummy;
CCoinsViewCache coins(&coinsDummy);
// Create key
CKey key;
key.MakeNewKey(true);
CPubKey pubkey = key.GetPubKey();
// Default flags
int flags = SCRIPT_VERIFY_WITNESS | SCRIPT_VERIFY_P2SH;
// Multisig script (legacy counting)
{
CScript scriptPubKey = CScript() << 1 << ToByteVector(pubkey) << ToByteVector(pubkey) << 2 << OP_CHECKMULTISIGVERIFY;
// Do not use a valid signature to avoid using wallet operations.
CScript scriptSig = CScript() << OP_0 << OP_0;
BuildTxs(spendingTx, coins, creationTx, scriptPubKey, scriptSig, CScriptWitness());
// Legacy counting only includes signature operations in scriptSigs and scriptPubKeys
// of a transaction and does not take the actual executed sig operations into account.
// spendingTx in itself does not contain a signature operation.
assert(GetTransactionSigOpCost(CTransaction(spendingTx), coins, flags) == 0);
// creationTx contains two signature operations in its scriptPubKey, but legacy counting
// is not accurate.
assert(GetTransactionSigOpCost(CTransaction(creationTx), coins, flags) == MAX_PUBKEYS_PER_MULTISIG * WITNESS_SCALE_FACTOR);
// Sanity check: script verification fails because of an invalid signature.
assert(VerifyWithFlag(CTransaction(creationTx), spendingTx, flags) == SCRIPT_ERR_CHECKMULTISIGVERIFY);
}
// Multisig nested in P2SH
{
CScript redeemScript = CScript() << 1 << ToByteVector(pubkey) << ToByteVector(pubkey) << 2 << OP_CHECKMULTISIGVERIFY;
CScript scriptPubKey = GetScriptForDestination(ScriptHash(redeemScript));
CScript scriptSig = CScript() << OP_0 << OP_0 << ToByteVector(redeemScript);
BuildTxs(spendingTx, coins, creationTx, scriptPubKey, scriptSig, CScriptWitness());
assert(GetTransactionSigOpCost(CTransaction(spendingTx), coins, flags) == 2 * WITNESS_SCALE_FACTOR);
assert(VerifyWithFlag(CTransaction(creationTx), spendingTx, flags) == SCRIPT_ERR_CHECKMULTISIGVERIFY);
}
// P2WPKH witness program
{
CScript p2pk = CScript() << ToByteVector(pubkey) << OP_CHECKSIG;
CScript scriptPubKey = GetScriptForWitness(p2pk);
CScript scriptSig = CScript();
CScriptWitness scriptWitness;
scriptWitness.stack.push_back(std::vector<unsigned char>(0));
scriptWitness.stack.push_back(std::vector<unsigned char>(0));
BuildTxs(spendingTx, coins, creationTx, scriptPubKey, scriptSig, scriptWitness);
assert(GetTransactionSigOpCost(CTransaction(spendingTx), coins, flags) == 1);
// No signature operations if we don't verify the witness.
assert(GetTransactionSigOpCost(CTransaction(spendingTx), coins, flags & ~SCRIPT_VERIFY_WITNESS) == 0);
assert(VerifyWithFlag(CTransaction(creationTx), spendingTx, flags) == SCRIPT_ERR_EQUALVERIFY);
// The sig op cost for witness version != 0 is zero.
assert(scriptPubKey[0] == 0x00);
scriptPubKey[0] = 0x51;
BuildTxs(spendingTx, coins, creationTx, scriptPubKey, scriptSig, scriptWitness);
assert(GetTransactionSigOpCost(CTransaction(spendingTx), coins, flags) == 0);
scriptPubKey[0] = 0x00;
BuildTxs(spendingTx, coins, creationTx, scriptPubKey, scriptSig, scriptWitness);
// The witness of a coinbase transaction is not taken into account.
spendingTx.vin[0].prevout.SetNull();
assert(GetTransactionSigOpCost(CTransaction(spendingTx), coins, flags) == 0);
}
// P2WPKH nested in P2SH
{
CScript p2pk = CScript() << ToByteVector(pubkey) << OP_CHECKSIG;
CScript scriptSig = GetScriptForWitness(p2pk);
CScript scriptPubKey = GetScriptForDestination(ScriptHash(scriptSig));
scriptSig = CScript() << ToByteVector(scriptSig);
CScriptWitness scriptWitness;
scriptWitness.stack.push_back(std::vector<unsigned char>(0));
scriptWitness.stack.push_back(std::vector<unsigned char>(0));
BuildTxs(spendingTx, coins, creationTx, scriptPubKey, scriptSig, scriptWitness);
assert(GetTransactionSigOpCost(CTransaction(spendingTx), coins, flags) == 1);
assert(VerifyWithFlag(CTransaction(creationTx), spendingTx, flags) == SCRIPT_ERR_EQUALVERIFY);
}
// P2WSH witness program
{
CScript witnessScript = CScript() << 1 << ToByteVector(pubkey) << ToByteVector(pubkey) << 2 << OP_CHECKMULTISIGVERIFY;
CScript scriptPubKey = GetScriptForWitness(witnessScript);
CScript scriptSig = CScript();
CScriptWitness scriptWitness;
scriptWitness.stack.push_back(std::vector<unsigned char>(0));
scriptWitness.stack.push_back(std::vector<unsigned char>(0));
scriptWitness.stack.push_back(std::vector<unsigned char>(witnessScript.begin(), witnessScript.end()));
BuildTxs(spendingTx, coins, creationTx, scriptPubKey, scriptSig, scriptWitness);
assert(GetTransactionSigOpCost(CTransaction(spendingTx), coins, flags) == 2);
assert(GetTransactionSigOpCost(CTransaction(spendingTx), coins, flags & ~SCRIPT_VERIFY_WITNESS) == 0);
assert(VerifyWithFlag(CTransaction(creationTx), spendingTx, flags) == SCRIPT_ERR_CHECKMULTISIGVERIFY);
}
// P2WSH nested in P2SH
{
CScript witnessScript = CScript() << 1 << ToByteVector(pubkey) << ToByteVector(pubkey) << 2 << OP_CHECKMULTISIGVERIFY;
CScript redeemScript = GetScriptForWitness(witnessScript);
CScript scriptPubKey = GetScriptForDestination(ScriptHash(redeemScript));
CScript scriptSig = CScript() << ToByteVector(redeemScript);
CScriptWitness scriptWitness;
scriptWitness.stack.push_back(std::vector<unsigned char>(0));
scriptWitness.stack.push_back(std::vector<unsigned char>(0));
scriptWitness.stack.push_back(std::vector<unsigned char>(witnessScript.begin(), witnessScript.end()));
BuildTxs(spendingTx, coins, creationTx, scriptPubKey, scriptSig, scriptWitness);
assert(GetTransactionSigOpCost(CTransaction(spendingTx), coins, flags) == 2);
assert(VerifyWithFlag(CTransaction(creationTx), spendingTx, flags) == SCRIPT_ERR_CHECKMULTISIGVERIFY);
}
}
BOOST_AUTO_TEST_SUITE_END()
|
;*******************************************************************************
;* TMS320C55x C/C++ Codegen PC v4.4.1 *
;* Date/Time created: Sat Oct 06 06:37:33 2018 *
;*******************************************************************************
.compiler_opts --hll_source=on --mem_model:code=flat --mem_model:data=large --object_format=coff --silicon_core_3_3 --symdebug:dwarf
.mmregs
.cpl_on
.arms_on
.c54cm_off
.asg AR6, FP
.asg XAR6, XFP
.asg DPH, MDP
.model call=c55_std
.model mem=large
.noremark 5002 ; code respects overwrite rules
;*******************************************************************************
;* GLOBAL FILE PARAMETERS *
;* *
;* Architecture : TMS320C55x *
;* Optimizing for : Speed *
;* Memory : Large Model (23-Bit Data Pointers) *
;* Calls : Normal Library ASM calls *
;* Debug Info : Standard TI Debug Information *
;*******************************************************************************
$C$DW$CU .dwtag DW_TAG_compile_unit
.dwattr $C$DW$CU, DW_AT_name("../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c")
.dwattr $C$DW$CU, DW_AT_producer("TMS320C55x C/C++ Codegen PC v4.4.1 Copyright (c) 1996-2012 Texas Instruments Incorporated")
.dwattr $C$DW$CU, DW_AT_TI_version(0x01)
.dwattr $C$DW$CU, DW_AT_comp_dir("F:\eZdsp_DBG\tmp1\c55x-sim2\foo\Debug")
; F:\t\cc5p5\ccsv5\tools\compiler\c5500_4.4.1\bin\acp55.exe -@f:\\AppData\\Local\\Temp\\0491212
.sect ".text"
.align 4
.global _GPT_open
$C$DW$1 .dwtag DW_TAG_subprogram, DW_AT_name("GPT_open")
.dwattr $C$DW$1, DW_AT_low_pc(_GPT_open)
.dwattr $C$DW$1, DW_AT_high_pc(0x00)
.dwattr $C$DW$1, DW_AT_TI_symbol_name("_GPT_open")
.dwattr $C$DW$1, DW_AT_external
.dwattr $C$DW$1, DW_AT_type(*$C$DW$T$42)
.dwattr $C$DW$1, DW_AT_TI_begin_file("../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c")
.dwattr $C$DW$1, DW_AT_TI_begin_line(0x46)
.dwattr $C$DW$1, DW_AT_TI_begin_column(0x0c)
.dwattr $C$DW$1, DW_AT_TI_max_frame_size(0x0a)
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c",line 73,column 1,is_stmt,address _GPT_open
.dwfde $C$DW$CIE, _GPT_open
$C$DW$2 .dwtag DW_TAG_formal_parameter, DW_AT_name("instance")
.dwattr $C$DW$2, DW_AT_TI_symbol_name("_instance")
.dwattr $C$DW$2, DW_AT_type(*$C$DW$T$23)
.dwattr $C$DW$2, DW_AT_location[DW_OP_reg12]
$C$DW$3 .dwtag DW_TAG_formal_parameter, DW_AT_name("gptObj")
.dwattr $C$DW$3, DW_AT_TI_symbol_name("_gptObj")
.dwattr $C$DW$3, DW_AT_type(*$C$DW$T$41)
.dwattr $C$DW$3, DW_AT_location[DW_OP_reg17]
$C$DW$4 .dwtag DW_TAG_formal_parameter, DW_AT_name("status")
.dwattr $C$DW$4, DW_AT_TI_symbol_name("_status")
.dwattr $C$DW$4, DW_AT_type(*$C$DW$T$45)
.dwattr $C$DW$4, DW_AT_location[DW_OP_reg19]
;*******************************************************************************
;* FUNCTION NAME: GPT_open *
;* *
;* Function Uses Regs : AC0,AC0,AC1,AC1,T0,AR0,XAR0,AR1,XAR1,AR2,AR3,XAR3,SP,*
;* TC1,M40,SATA,SATD,RDM,FRCT,SMUL *
;* Stack Frame : Compact (No Frame Pointer, w/ debug) *
;* Total Frame Size : 10 words *
;* (1 return address/alignment) *
;* (9 local values) *
;* Min System Stack : 1 word *
;*******************************************************************************
_GPT_open:
.dwcfi cfa_offset, 1
.dwcfi save_reg_to_mem, 91, -1
AADD #-9, SP
.dwcfi cfa_offset, 10
$C$DW$5 .dwtag DW_TAG_variable, DW_AT_name("instance")
.dwattr $C$DW$5, DW_AT_TI_symbol_name("_instance")
.dwattr $C$DW$5, DW_AT_type(*$C$DW$T$23)
.dwattr $C$DW$5, DW_AT_location[DW_OP_bregx 0x24 0]
$C$DW$6 .dwtag DW_TAG_variable, DW_AT_name("gptObj")
.dwattr $C$DW$6, DW_AT_TI_symbol_name("_gptObj")
.dwattr $C$DW$6, DW_AT_type(*$C$DW$T$41)
.dwattr $C$DW$6, DW_AT_location[DW_OP_bregx 0x24 2]
$C$DW$7 .dwtag DW_TAG_variable, DW_AT_name("status")
.dwattr $C$DW$7, DW_AT_TI_symbol_name("_status")
.dwattr $C$DW$7, DW_AT_type(*$C$DW$T$45)
.dwattr $C$DW$7, DW_AT_location[DW_OP_bregx 0x24 4]
$C$DW$8 .dwtag DW_TAG_variable, DW_AT_name("hGpt")
.dwattr $C$DW$8, DW_AT_TI_symbol_name("_hGpt")
.dwattr $C$DW$8, DW_AT_type(*$C$DW$T$42)
.dwattr $C$DW$8, DW_AT_location[DW_OP_bregx 0x24 6]
$C$DW$9 .dwtag DW_TAG_variable, DW_AT_name("sysRegs")
.dwattr $C$DW$9, DW_AT_TI_symbol_name("_sysRegs")
.dwattr $C$DW$9, DW_AT_type(*$C$DW$T$51)
.dwattr $C$DW$9, DW_AT_location[DW_OP_bregx 0x24 8]
MOV XAR1, dbl(*SP(#4))
MOV XAR0, dbl(*SP(#2))
MOV T0, *SP(#0) ; |73|
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c",line 77,column 2,is_stmt
MOV dbl(*SP(#4)), XAR3
MOV #0, *AR3 ; |77|
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c",line 78,column 2,is_stmt
MOV #0, AC0 ; |78|
MOV AC0, dbl(*SP(#6))
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c",line 80,column 2,is_stmt
MOV dbl(*SP(#2)), XAR3
MOV XAR3, AC0
|| MOV #0, AC1 ; |80|
CMPU AC1 != AC0, TC1 ; |80|
BCC $C$L1,TC1 ; |80|
; branchcc occurs ; |80|
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c",line 82,column 3,is_stmt
MOV dbl(*SP(#4)), XAR3
MOV #-5, *AR3 ; |82|
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c",line 83,column 3,is_stmt
MOV dbl(*SP(#6)), XAR0
B $C$L10 ; |83|
; branch occurs ; |83|
$C$L1:
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c",line 86,column 2,is_stmt
MOV *SP(#0), AR1 ; |86|
BCC $C$L2,AR1 < #0 ; |86|
; branchcc occurs ; |86|
MOV #3, AR2
CMP AR1 < AR2, TC1 ; |86|
BCC $C$L3,TC1 ; |86|
; branchcc occurs ; |86|
$C$L2:
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c",line 88,column 3,is_stmt
MOV dbl(*SP(#4)), XAR3
MOV #-6, *AR3 ; |88|
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c",line 89,column 3,is_stmt
MOV dbl(*SP(#6)), XAR0
B $C$L10 ; |89|
; branch occurs ; |89|
$C$L3:
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c",line 92,column 2,is_stmt
MOV XAR3, dbl(*SP(#6))
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c",line 93,column 2,is_stmt
MOV #7168, *SP(#8) ; |93|
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c",line 94,column 2,is_stmt
B $C$L8 ; |94|
; branch occurs ; |94|
$C$L4:
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c",line 97,column 4,is_stmt
MOV dbl(*SP(#6)), XAR3
MOV #0, *AR3 ; |97|
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c",line 98,column 4,is_stmt
MOV dbl(*SP(#6)), XAR3
MOV #6160, *AR3(short(#2)) ; |98|
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c",line 99,column 4,is_stmt
MOV *SP(#8), AR3 ; |99|
MOV port(*AR3(short(#2))), AR1 ; |99|
BCLR @#10, AR1 ; |99|
MOV AR1, port(*AR3(short(#2))) ; |99|
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c",line 101,column 9,is_stmt
B $C$L9 ; |101|
; branch occurs ; |101|
$C$L5:
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c",line 103,column 4,is_stmt
MOV dbl(*SP(#6)), XAR3
MOV #1, *AR3 ; |103|
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c",line 104,column 4,is_stmt
MOV dbl(*SP(#6)), XAR3
MOV #6224, *AR3(short(#2)) ; |104|
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c",line 105,column 4,is_stmt
MOV *SP(#8), AR3 ; |105|
MOV port(*AR3(short(#2))), AR1 ; |105|
BCLR @#12, AR1 ; |105|
MOV AR1, port(*AR3(short(#2))) ; |105|
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c",line 107,column 9,is_stmt
B $C$L9 ; |107|
; branch occurs ; |107|
$C$L6:
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c",line 109,column 4,is_stmt
MOV dbl(*SP(#6)), XAR3
MOV #2, *AR3 ; |109|
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c",line 110,column 4,is_stmt
MOV dbl(*SP(#6)), XAR3
MOV #6288, *AR3(short(#2)) ; |110|
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c",line 111,column 4,is_stmt
MOV *SP(#8), AR3 ; |111|
MOV port(*AR3(short(#2))), AR1 ; |111|
BCLR @#13, AR1 ; |111|
MOV AR1, port(*AR3(short(#2))) ; |111|
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c",line 113,column 9,is_stmt
B $C$L9 ; |113|
; branch occurs ; |113|
$C$L7:
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c",line 115,column 4,is_stmt
MOV dbl(*SP(#4)), XAR3
MOV #-6, *AR3 ; |115|
B $C$L9 ; |115|
; branch occurs ; |115|
$C$L8:
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c",line 94,column 2,is_stmt
MOV *SP(#0), AR1 ; |94|
BCC $C$L4,AR1 == #0 ; |94|
; branchcc occurs ; |94|
MOV #1, AR2
CMP AR1 == AR2, TC1 ; |94|
BCC $C$L5,TC1 ; |94|
; branchcc occurs ; |94|
MOV #2, AR2
CMP AR1 == AR2, TC1 ; |94|
BCC $C$L6,TC1 ; |94|
; branchcc occurs ; |94|
B $C$L7 ; |94|
; branch occurs ; |94|
$C$L9:
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c",line 118,column 2,is_stmt
MOV dbl(*SP(#6)), XAR0
$C$L10:
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c",line 119,column 1,is_stmt
AADD #9, SP
.dwcfi cfa_offset, 1
$C$DW$10 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$10, DW_AT_low_pc(0x00)
.dwattr $C$DW$10, DW_AT_TI_return
RET
; return occurs
.dwattr $C$DW$1, DW_AT_TI_end_file("../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c")
.dwattr $C$DW$1, DW_AT_TI_end_line(0x77)
.dwattr $C$DW$1, DW_AT_TI_end_column(0x01)
.dwendentry
.dwendtag $C$DW$1
.sect ".text"
.align 4
.global _GPT_reset
$C$DW$11 .dwtag DW_TAG_subprogram, DW_AT_name("GPT_reset")
.dwattr $C$DW$11, DW_AT_low_pc(_GPT_reset)
.dwattr $C$DW$11, DW_AT_high_pc(0x00)
.dwattr $C$DW$11, DW_AT_TI_symbol_name("_GPT_reset")
.dwattr $C$DW$11, DW_AT_external
.dwattr $C$DW$11, DW_AT_type(*$C$DW$T$44)
.dwattr $C$DW$11, DW_AT_TI_begin_file("../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c")
.dwattr $C$DW$11, DW_AT_TI_begin_line(0x9d)
.dwattr $C$DW$11, DW_AT_TI_begin_column(0x0c)
.dwattr $C$DW$11, DW_AT_TI_max_frame_size(0x06)
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c",line 158,column 1,is_stmt,address _GPT_reset
.dwfde $C$DW$CIE, _GPT_reset
$C$DW$12 .dwtag DW_TAG_formal_parameter, DW_AT_name("hGpt")
.dwattr $C$DW$12, DW_AT_TI_symbol_name("_hGpt")
.dwattr $C$DW$12, DW_AT_type(*$C$DW$T$42)
.dwattr $C$DW$12, DW_AT_location[DW_OP_reg17]
;*******************************************************************************
;* FUNCTION NAME: GPT_reset *
;* *
;* Function Uses Regs : AC0,AC0,AC1,AC1,T0,AR0,XAR0,AR1,AR2,AR3,XAR3,SP,TC1, *
;* M40,SATA,SATD,RDM,FRCT,SMUL *
;* Stack Frame : Compact (No Frame Pointer, w/ debug) *
;* Total Frame Size : 6 words *
;* (2 return address/alignment) *
;* (4 local values) *
;* Min System Stack : 1 word *
;*******************************************************************************
_GPT_reset:
.dwcfi cfa_offset, 1
.dwcfi save_reg_to_mem, 91, -1
AADD #-5, SP
.dwcfi cfa_offset, 6
$C$DW$13 .dwtag DW_TAG_variable, DW_AT_name("hGpt")
.dwattr $C$DW$13, DW_AT_TI_symbol_name("_hGpt")
.dwattr $C$DW$13, DW_AT_type(*$C$DW$T$42)
.dwattr $C$DW$13, DW_AT_location[DW_OP_bregx 0x24 0]
$C$DW$14 .dwtag DW_TAG_variable, DW_AT_name("regPtr")
.dwattr $C$DW$14, DW_AT_TI_symbol_name("_regPtr")
.dwattr $C$DW$14, DW_AT_type(*$C$DW$T$27)
.dwattr $C$DW$14, DW_AT_location[DW_OP_bregx 0x24 2]
$C$DW$15 .dwtag DW_TAG_variable, DW_AT_name("iafrReg")
.dwattr $C$DW$15, DW_AT_TI_symbol_name("_iafrReg")
.dwattr $C$DW$15, DW_AT_type(*$C$DW$T$58)
.dwattr $C$DW$15, DW_AT_location[DW_OP_bregx 0x24 3]
MOV XAR0, dbl(*SP(#0))
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c",line 162,column 2,is_stmt
MOV dbl(*SP(#0)), XAR3
MOV XAR3, AC0
|| MOV #0, AC1 ; |162|
CMPU AC1 != AC0, TC1 ; |162|
BCC $C$L11,TC1 ; |162|
; branchcc occurs ; |162|
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c",line 164,column 3,is_stmt
MOV #-5, T0
B $C$L18 ; |164|
; branch occurs ; |164|
$C$L11:
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c",line 167,column 2,is_stmt
MOV *AR3(short(#2)), AR1 ; |167|
MOV AR1, *SP(#2) ; |167|
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c",line 170,column 2,is_stmt
MOV AR1, AR3
MOV #0, port(*AR3) ; |170|
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c",line 172,column 2,is_stmt
MOV *SP(#2), AR3 ; |172|
MOV #0, port(*AR3(short(#4))) ; |172|
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c",line 174,column 2,is_stmt
MOV *SP(#2), AR3 ; |174|
MOV #0, port(*AR3(short(#5))) ; |174|
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c",line 176,column 2,is_stmt
MOV *SP(#2), AR3 ; |176|
MOV #0, port(*AR3(short(#2))) ; |176|
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c",line 178,column 2,is_stmt
MOV *SP(#2), AR3 ; |178|
MOV #0, port(*AR3(short(#3))) ; |178|
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c",line 183,column 2,is_stmt
MOV #7188, *SP(#3) ; |183|
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c",line 184,column 2,is_stmt
B $C$L16 ; |184|
; branch occurs ; |184|
$C$L12:
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c",line 187,column 4,is_stmt
MOV *SP(#3), AR3 ; |187|
MOV #1, port(*AR3) ; |187|
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c",line 188,column 9,is_stmt
B $C$L17 ; |188|
; branch occurs ; |188|
$C$L13:
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c",line 190,column 4,is_stmt
MOV *SP(#3), AR3 ; |190|
MOV #2, port(*AR3) ; |190|
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c",line 191,column 9,is_stmt
B $C$L17 ; |191|
; branch occurs ; |191|
$C$L14:
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c",line 193,column 4,is_stmt
MOV *SP(#3), AR3 ; |193|
MOV #4, port(*AR3) ; |193|
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c",line 194,column 9,is_stmt
B $C$L17 ; |194|
; branch occurs ; |194|
$C$L15:
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c",line 197,column 4,is_stmt
MOV #-6, T0
B $C$L18 ; |197|
; branch occurs ; |197|
$C$L16:
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c",line 184,column 2,is_stmt
MOV dbl(*SP(#0)), XAR3
MOV *AR3, AR1 ; |184|
BCC $C$L12,AR1 == #0 ; |184|
; branchcc occurs ; |184|
MOV #1, AR2
CMP AR1 == AR2, TC1 ; |184|
BCC $C$L13,TC1 ; |184|
; branchcc occurs ; |184|
MOV #2, AR2
CMP AR1 == AR2, TC1 ; |184|
BCC $C$L14,TC1 ; |184|
; branchcc occurs ; |184|
B $C$L15 ; |184|
; branch occurs ; |184|
$C$L17:
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c",line 200,column 2,is_stmt
MOV #0, T0
$C$L18:
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c",line 201,column 1,is_stmt
AADD #5, SP
.dwcfi cfa_offset, 1
$C$DW$16 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$16, DW_AT_low_pc(0x00)
.dwattr $C$DW$16, DW_AT_TI_return
RET
; return occurs
.dwattr $C$DW$11, DW_AT_TI_end_file("../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c")
.dwattr $C$DW$11, DW_AT_TI_end_line(0xc9)
.dwattr $C$DW$11, DW_AT_TI_end_column(0x01)
.dwendentry
.dwendtag $C$DW$11
.sect ".text"
.align 4
.global _GPT_close
$C$DW$17 .dwtag DW_TAG_subprogram, DW_AT_name("GPT_close")
.dwattr $C$DW$17, DW_AT_low_pc(_GPT_close)
.dwattr $C$DW$17, DW_AT_high_pc(0x00)
.dwattr $C$DW$17, DW_AT_TI_symbol_name("_GPT_close")
.dwattr $C$DW$17, DW_AT_external
.dwattr $C$DW$17, DW_AT_type(*$C$DW$T$44)
.dwattr $C$DW$17, DW_AT_TI_begin_file("../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c")
.dwattr $C$DW$17, DW_AT_TI_begin_line(0xef)
.dwattr $C$DW$17, DW_AT_TI_begin_column(0x0c)
.dwattr $C$DW$17, DW_AT_TI_max_frame_size(0x04)
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c",line 240,column 1,is_stmt,address _GPT_close
.dwfde $C$DW$CIE, _GPT_close
$C$DW$18 .dwtag DW_TAG_formal_parameter, DW_AT_name("hGpt")
.dwattr $C$DW$18, DW_AT_TI_symbol_name("_hGpt")
.dwattr $C$DW$18, DW_AT_type(*$C$DW$T$42)
.dwattr $C$DW$18, DW_AT_location[DW_OP_reg17]
;*******************************************************************************
;* FUNCTION NAME: GPT_close *
;* *
;* Function Uses Regs : AC0,AC0,AC1,AC1,T0,AR0,XAR0,AR1,AR2,AR3,XAR3,SP,TC1, *
;* M40,SATA,SATD,RDM,FRCT,SMUL *
;* Stack Frame : Compact (No Frame Pointer, w/ debug) *
;* Total Frame Size : 4 words *
;* (1 return address/alignment) *
;* (3 local values) *
;* Min System Stack : 1 word *
;*******************************************************************************
_GPT_close:
.dwcfi cfa_offset, 1
.dwcfi save_reg_to_mem, 91, -1
AADD #-3, SP
.dwcfi cfa_offset, 4
$C$DW$19 .dwtag DW_TAG_variable, DW_AT_name("hGpt")
.dwattr $C$DW$19, DW_AT_TI_symbol_name("_hGpt")
.dwattr $C$DW$19, DW_AT_type(*$C$DW$T$42)
.dwattr $C$DW$19, DW_AT_location[DW_OP_bregx 0x24 0]
$C$DW$20 .dwtag DW_TAG_variable, DW_AT_name("sysRegs")
.dwattr $C$DW$20, DW_AT_TI_symbol_name("_sysRegs")
.dwattr $C$DW$20, DW_AT_type(*$C$DW$T$51)
.dwattr $C$DW$20, DW_AT_location[DW_OP_bregx 0x24 2]
MOV XAR0, dbl(*SP(#0))
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c",line 243,column 2,is_stmt
MOV dbl(*SP(#0)), XAR3
MOV XAR3, AC0
|| MOV #0, AC1 ; |243|
CMPU AC1 != AC0, TC1 ; |243|
BCC $C$L19,TC1 ; |243|
; branchcc occurs ; |243|
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c",line 245,column 3,is_stmt
MOV #-5, T0
B $C$L25 ; |245|
; branch occurs ; |245|
$C$L19:
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c",line 247,column 2,is_stmt
MOV #7168, *SP(#2) ; |247|
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c",line 250,column 2,is_stmt
B $C$L23 ; |250|
; branch occurs ; |250|
$C$L20:
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c",line 253,column 4,is_stmt
MOV *SP(#2), AR3 ; |253|
MOV port(*AR3(short(#2))), AR1 ; |253|
BCLR @#10, AR1 ; |253|
BSET @#10, AR1 ; |253|
MOV AR1, port(*AR3(short(#2))) ; |253|
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c",line 255,column 9,is_stmt
B $C$L24 ; |255|
; branch occurs ; |255|
$C$L21:
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c",line 257,column 4,is_stmt
MOV *SP(#2), AR3 ; |257|
MOV port(*AR3(short(#2))), AR1 ; |257|
BCLR @#12, AR1 ; |257|
BSET @#12, AR1 ; |257|
MOV AR1, port(*AR3(short(#2))) ; |257|
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c",line 259,column 9,is_stmt
B $C$L24 ; |259|
; branch occurs ; |259|
$C$L22:
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c",line 261,column 4,is_stmt
MOV *SP(#2), AR3 ; |261|
MOV port(*AR3(short(#2))), AR1 ; |261|
BCLR @#13, AR1 ; |261|
BSET @#13, AR1 ; |261|
MOV AR1, port(*AR3(short(#2))) ; |261|
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c",line 263,column 9,is_stmt
B $C$L24 ; |263|
; branch occurs ; |263|
$C$L23:
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c",line 250,column 2,is_stmt
MOV dbl(*SP(#0)), XAR3
MOV *AR3, AR1 ; |250|
BCC $C$L20,AR1 == #0 ; |250|
; branchcc occurs ; |250|
MOV #1, AR2
CMP AR1 == AR2, TC1 ; |250|
BCC $C$L21,TC1 ; |250|
; branchcc occurs ; |250|
MOV #2, AR2
CMP AR1 == AR2, TC1 ; |250|
BCC $C$L22,TC1 ; |250|
; branchcc occurs ; |250|
$C$L24:
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c",line 267,column 2,is_stmt
MOV dbl(*SP(#0)), XAR3
MOV #0, *AR3(short(#2)) ; |267|
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c",line 268,column 2,is_stmt
MOV #0, AC0 ; |268|
MOV AC0, dbl(*SP(#0))
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c",line 270,column 2,is_stmt
MOV #0, T0
$C$L25:
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c",line 271,column 1,is_stmt
AADD #3, SP
.dwcfi cfa_offset, 1
$C$DW$21 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$21, DW_AT_low_pc(0x00)
.dwattr $C$DW$21, DW_AT_TI_return
RET
; return occurs
.dwattr $C$DW$17, DW_AT_TI_end_file("../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c")
.dwattr $C$DW$17, DW_AT_TI_end_line(0x10f)
.dwattr $C$DW$17, DW_AT_TI_end_column(0x01)
.dwendentry
.dwendtag $C$DW$17
.sect ".text"
.align 4
.global _GPT_start
$C$DW$22 .dwtag DW_TAG_subprogram, DW_AT_name("GPT_start")
.dwattr $C$DW$22, DW_AT_low_pc(_GPT_start)
.dwattr $C$DW$22, DW_AT_high_pc(0x00)
.dwattr $C$DW$22, DW_AT_TI_symbol_name("_GPT_start")
.dwattr $C$DW$22, DW_AT_external
.dwattr $C$DW$22, DW_AT_type(*$C$DW$T$44)
.dwattr $C$DW$22, DW_AT_TI_begin_file("../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c")
.dwattr $C$DW$22, DW_AT_TI_begin_line(0x136)
.dwattr $C$DW$22, DW_AT_TI_begin_column(0x0c)
.dwattr $C$DW$22, DW_AT_TI_max_frame_size(0x04)
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c",line 311,column 1,is_stmt,address _GPT_start
.dwfde $C$DW$CIE, _GPT_start
$C$DW$23 .dwtag DW_TAG_formal_parameter, DW_AT_name("hGpt")
.dwattr $C$DW$23, DW_AT_TI_symbol_name("_hGpt")
.dwattr $C$DW$23, DW_AT_type(*$C$DW$T$42)
.dwattr $C$DW$23, DW_AT_location[DW_OP_reg17]
;*******************************************************************************
;* FUNCTION NAME: GPT_start *
;* *
;* Function Uses Regs : AC0,AC0,AC1,AC1,T0,AR0,XAR0,AR1,AR3,XAR3,SP,TC1,M40, *
;* SATA,SATD,RDM,FRCT,SMUL *
;* Stack Frame : Compact (No Frame Pointer, w/ debug) *
;* Total Frame Size : 4 words *
;* (1 return address/alignment) *
;* (3 local values) *
;* Min System Stack : 1 word *
;*******************************************************************************
_GPT_start:
.dwcfi cfa_offset, 1
.dwcfi save_reg_to_mem, 91, -1
AADD #-3, SP
.dwcfi cfa_offset, 4
$C$DW$24 .dwtag DW_TAG_variable, DW_AT_name("hGpt")
.dwattr $C$DW$24, DW_AT_TI_symbol_name("_hGpt")
.dwattr $C$DW$24, DW_AT_type(*$C$DW$T$42)
.dwattr $C$DW$24, DW_AT_location[DW_OP_bregx 0x24 0]
$C$DW$25 .dwtag DW_TAG_variable, DW_AT_name("regPtr")
.dwattr $C$DW$25, DW_AT_TI_symbol_name("_regPtr")
.dwattr $C$DW$25, DW_AT_type(*$C$DW$T$27)
.dwattr $C$DW$25, DW_AT_location[DW_OP_bregx 0x24 2]
MOV XAR0, dbl(*SP(#0))
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c",line 314,column 2,is_stmt
MOV dbl(*SP(#0)), XAR3
MOV XAR3, AC0
|| MOV #0, AC1 ; |314|
CMPU AC1 != AC0, TC1 ; |314|
BCC $C$L26,TC1 ; |314|
; branchcc occurs ; |314|
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c",line 316,column 3,is_stmt
MOV #-5, T0
B $C$L27 ; |316|
; branch occurs ; |316|
$C$L26:
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c",line 319,column 2,is_stmt
MOV *AR3(short(#2)), AR1 ; |319|
MOV AR1, *SP(#2) ; |319|
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c",line 321,column 2,is_stmt
MOV AR1, AR3
MOV port(*AR3), AR1 ; |321|
BCLR @#0, AR1 ; |321|
BSET @#0, AR1 ; |321|
MOV AR1, port(*AR3) ; |321|
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c",line 323,column 2,is_stmt
MOV #0, T0
$C$L27:
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c",line 324,column 1,is_stmt
AADD #3, SP
.dwcfi cfa_offset, 1
$C$DW$26 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$26, DW_AT_low_pc(0x00)
.dwattr $C$DW$26, DW_AT_TI_return
RET
; return occurs
.dwattr $C$DW$22, DW_AT_TI_end_file("../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c")
.dwattr $C$DW$22, DW_AT_TI_end_line(0x144)
.dwattr $C$DW$22, DW_AT_TI_end_column(0x01)
.dwendentry
.dwendtag $C$DW$22
.sect ".text"
.align 4
.global _GPT_stop
$C$DW$27 .dwtag DW_TAG_subprogram, DW_AT_name("GPT_stop")
.dwattr $C$DW$27, DW_AT_low_pc(_GPT_stop)
.dwattr $C$DW$27, DW_AT_high_pc(0x00)
.dwattr $C$DW$27, DW_AT_TI_symbol_name("_GPT_stop")
.dwattr $C$DW$27, DW_AT_external
.dwattr $C$DW$27, DW_AT_type(*$C$DW$T$44)
.dwattr $C$DW$27, DW_AT_TI_begin_file("../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c")
.dwattr $C$DW$27, DW_AT_TI_begin_line(0x16b)
.dwattr $C$DW$27, DW_AT_TI_begin_column(0x0c)
.dwattr $C$DW$27, DW_AT_TI_max_frame_size(0x04)
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c",line 364,column 1,is_stmt,address _GPT_stop
.dwfde $C$DW$CIE, _GPT_stop
$C$DW$28 .dwtag DW_TAG_formal_parameter, DW_AT_name("hGpt")
.dwattr $C$DW$28, DW_AT_TI_symbol_name("_hGpt")
.dwattr $C$DW$28, DW_AT_type(*$C$DW$T$42)
.dwattr $C$DW$28, DW_AT_location[DW_OP_reg17]
;*******************************************************************************
;* FUNCTION NAME: GPT_stop *
;* *
;* Function Uses Regs : AC0,AC0,AC1,AC1,T0,AR0,XAR0,AR1,AR3,XAR3,SP,TC1,M40, *
;* SATA,SATD,RDM,FRCT,SMUL *
;* Stack Frame : Compact (No Frame Pointer, w/ debug) *
;* Total Frame Size : 4 words *
;* (1 return address/alignment) *
;* (3 local values) *
;* Min System Stack : 1 word *
;*******************************************************************************
_GPT_stop:
.dwcfi cfa_offset, 1
.dwcfi save_reg_to_mem, 91, -1
AADD #-3, SP
.dwcfi cfa_offset, 4
$C$DW$29 .dwtag DW_TAG_variable, DW_AT_name("hGpt")
.dwattr $C$DW$29, DW_AT_TI_symbol_name("_hGpt")
.dwattr $C$DW$29, DW_AT_type(*$C$DW$T$42)
.dwattr $C$DW$29, DW_AT_location[DW_OP_bregx 0x24 0]
$C$DW$30 .dwtag DW_TAG_variable, DW_AT_name("regPtr")
.dwattr $C$DW$30, DW_AT_TI_symbol_name("_regPtr")
.dwattr $C$DW$30, DW_AT_type(*$C$DW$T$27)
.dwattr $C$DW$30, DW_AT_location[DW_OP_bregx 0x24 2]
MOV XAR0, dbl(*SP(#0))
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c",line 367,column 2,is_stmt
MOV dbl(*SP(#0)), XAR3
MOV XAR3, AC0
|| MOV #0, AC1 ; |367|
CMPU AC1 != AC0, TC1 ; |367|
BCC $C$L28,TC1 ; |367|
; branchcc occurs ; |367|
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c",line 369,column 3,is_stmt
MOV #-5, T0
B $C$L29 ; |369|
; branch occurs ; |369|
$C$L28:
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c",line 372,column 2,is_stmt
MOV *AR3(short(#2)), AR1 ; |372|
MOV AR1, *SP(#2) ; |372|
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c",line 375,column 2,is_stmt
MOV AR1, AR3
MOV port(*AR3), AR1 ; |375|
BCLR @#0, AR1 ; |375|
MOV AR1, port(*AR3) ; |375|
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c",line 379,column 2,is_stmt
MOV #0, T0
$C$L29:
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c",line 380,column 1,is_stmt
AADD #3, SP
.dwcfi cfa_offset, 1
$C$DW$31 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$31, DW_AT_low_pc(0x00)
.dwattr $C$DW$31, DW_AT_TI_return
RET
; return occurs
.dwattr $C$DW$27, DW_AT_TI_end_file("../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c")
.dwattr $C$DW$27, DW_AT_TI_end_line(0x17c)
.dwattr $C$DW$27, DW_AT_TI_end_column(0x01)
.dwendentry
.dwendtag $C$DW$27
.sect ".text"
.align 4
.global _GPT_getCnt
$C$DW$32 .dwtag DW_TAG_subprogram, DW_AT_name("GPT_getCnt")
.dwattr $C$DW$32, DW_AT_low_pc(_GPT_getCnt)
.dwattr $C$DW$32, DW_AT_high_pc(0x00)
.dwattr $C$DW$32, DW_AT_TI_symbol_name("_GPT_getCnt")
.dwattr $C$DW$32, DW_AT_external
.dwattr $C$DW$32, DW_AT_type(*$C$DW$T$44)
.dwattr $C$DW$32, DW_AT_TI_begin_file("../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c")
.dwattr $C$DW$32, DW_AT_TI_begin_line(0x1a4)
.dwattr $C$DW$32, DW_AT_TI_begin_column(0x0c)
.dwattr $C$DW$32, DW_AT_TI_max_frame_size(0x08)
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c",line 421,column 1,is_stmt,address _GPT_getCnt
.dwfde $C$DW$CIE, _GPT_getCnt
$C$DW$33 .dwtag DW_TAG_formal_parameter, DW_AT_name("hGpt")
.dwattr $C$DW$33, DW_AT_TI_symbol_name("_hGpt")
.dwattr $C$DW$33, DW_AT_type(*$C$DW$T$42)
.dwattr $C$DW$33, DW_AT_location[DW_OP_reg17]
$C$DW$34 .dwtag DW_TAG_formal_parameter, DW_AT_name("timeCnt")
.dwattr $C$DW$34, DW_AT_TI_symbol_name("_timeCnt")
.dwattr $C$DW$34, DW_AT_type(*$C$DW$T$54)
.dwattr $C$DW$34, DW_AT_location[DW_OP_reg19]
;*******************************************************************************
;* FUNCTION NAME: GPT_getCnt *
;* *
;* Function Uses Regs : AC0,AC0,AC1,AC1,T0,AR0,XAR0,AR1,XAR1,AR3,XAR3,SP,TC1,*
;* M40,SATA,SATD,RDM,FRCT,SMUL *
;* Stack Frame : Compact (No Frame Pointer, w/ debug) *
;* Total Frame Size : 8 words *
;* (1 return address/alignment) *
;* (7 local values) *
;* Min System Stack : 1 word *
;*******************************************************************************
_GPT_getCnt:
.dwcfi cfa_offset, 1
.dwcfi save_reg_to_mem, 91, -1
AADD #-7, SP
.dwcfi cfa_offset, 8
$C$DW$35 .dwtag DW_TAG_variable, DW_AT_name("hGpt")
.dwattr $C$DW$35, DW_AT_TI_symbol_name("_hGpt")
.dwattr $C$DW$35, DW_AT_type(*$C$DW$T$42)
.dwattr $C$DW$35, DW_AT_location[DW_OP_bregx 0x24 0]
$C$DW$36 .dwtag DW_TAG_variable, DW_AT_name("timeCnt")
.dwattr $C$DW$36, DW_AT_TI_symbol_name("_timeCnt")
.dwattr $C$DW$36, DW_AT_type(*$C$DW$T$54)
.dwattr $C$DW$36, DW_AT_location[DW_OP_bregx 0x24 2]
$C$DW$37 .dwtag DW_TAG_variable, DW_AT_name("tim1")
.dwattr $C$DW$37, DW_AT_TI_symbol_name("_tim1")
.dwattr $C$DW$37, DW_AT_type(*$C$DW$T$19)
.dwattr $C$DW$37, DW_AT_location[DW_OP_bregx 0x24 4]
$C$DW$38 .dwtag DW_TAG_variable, DW_AT_name("tim2")
.dwattr $C$DW$38, DW_AT_TI_symbol_name("_tim2")
.dwattr $C$DW$38, DW_AT_type(*$C$DW$T$19)
.dwattr $C$DW$38, DW_AT_location[DW_OP_bregx 0x24 5]
$C$DW$39 .dwtag DW_TAG_variable, DW_AT_name("regPtr")
.dwattr $C$DW$39, DW_AT_TI_symbol_name("_regPtr")
.dwattr $C$DW$39, DW_AT_type(*$C$DW$T$27)
.dwattr $C$DW$39, DW_AT_location[DW_OP_bregx 0x24 6]
MOV XAR1, dbl(*SP(#2))
MOV XAR0, dbl(*SP(#0))
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c",line 426,column 2,is_stmt
MOV dbl(*SP(#0)), XAR3
MOV XAR3, AC0
|| MOV #0, AC1 ; |426|
CMPU AC1 != AC0, TC1 ; |426|
BCC $C$L30,TC1 ; |426|
; branchcc occurs ; |426|
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c",line 428,column 3,is_stmt
MOV #-5, T0
B $C$L31 ; |428|
; branch occurs ; |428|
$C$L30:
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c",line 431,column 2,is_stmt
MOV *AR3(short(#2)), AR1 ; |431|
MOV AR1, *SP(#6) ; |431|
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c",line 433,column 2,is_stmt
MOV AR1, AR3
MOV port(*AR3(short(#4))), AR1 ; |433|
MOV AR1, *SP(#4) ; |433|
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c",line 434,column 2,is_stmt
MOV *SP(#6), AR3 ; |434|
MOV port(*AR3(short(#5))), AR1 ; |434|
MOV AR1, *SP(#5) ; |434|
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c",line 436,column 2,is_stmt
MOV dbl(*SP(#2)), XAR3
MOV AR1, HI(AC0) ; |436|
OR *SP(#4), AC0, AC0 ; |436|
MOV AC0, dbl(*AR3) ; |436|
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c",line 438,column 2,is_stmt
MOV #0, T0
$C$L31:
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c",line 439,column 1,is_stmt
AADD #7, SP
.dwcfi cfa_offset, 1
$C$DW$40 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$40, DW_AT_low_pc(0x00)
.dwattr $C$DW$40, DW_AT_TI_return
RET
; return occurs
.dwattr $C$DW$32, DW_AT_TI_end_file("../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c")
.dwattr $C$DW$32, DW_AT_TI_end_line(0x1b7)
.dwattr $C$DW$32, DW_AT_TI_end_column(0x01)
.dwendentry
.dwendtag $C$DW$32
.sect ".text"
.align 4
.global _GPT_config
$C$DW$41 .dwtag DW_TAG_subprogram, DW_AT_name("GPT_config")
.dwattr $C$DW$41, DW_AT_low_pc(_GPT_config)
.dwattr $C$DW$41, DW_AT_high_pc(0x00)
.dwattr $C$DW$41, DW_AT_TI_symbol_name("_GPT_config")
.dwattr $C$DW$41, DW_AT_external
.dwattr $C$DW$41, DW_AT_type(*$C$DW$T$44)
.dwattr $C$DW$41, DW_AT_TI_begin_file("../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c")
.dwattr $C$DW$41, DW_AT_TI_begin_line(0x1e4)
.dwattr $C$DW$41, DW_AT_TI_begin_column(0x0c)
.dwattr $C$DW$41, DW_AT_TI_max_frame_size(0x06)
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c",line 485,column 1,is_stmt,address _GPT_config
.dwfde $C$DW$CIE, _GPT_config
$C$DW$42 .dwtag DW_TAG_formal_parameter, DW_AT_name("hGpt")
.dwattr $C$DW$42, DW_AT_TI_symbol_name("_hGpt")
.dwattr $C$DW$42, DW_AT_type(*$C$DW$T$42)
.dwattr $C$DW$42, DW_AT_location[DW_OP_reg17]
$C$DW$43 .dwtag DW_TAG_formal_parameter, DW_AT_name("hwConfig")
.dwattr $C$DW$43, DW_AT_TI_symbol_name("_hwConfig")
.dwattr $C$DW$43, DW_AT_type(*$C$DW$T$48)
.dwattr $C$DW$43, DW_AT_location[DW_OP_reg19]
;*******************************************************************************
;* FUNCTION NAME: GPT_config *
;* *
;* Function Uses Regs : AC0,AC0,AC1,AC1,T0,AR0,XAR0,AR1,XAR1,AR2,AR3,XAR3,SP,*
;* CARRY,TC1,M40,SATA,SATD,RDM,FRCT,SMUL *
;* Stack Frame : Compact (No Frame Pointer, w/ debug) *
;* Total Frame Size : 6 words *
;* (1 return address/alignment) *
;* (5 local values) *
;* Min System Stack : 1 word *
;*******************************************************************************
_GPT_config:
.dwcfi cfa_offset, 1
.dwcfi save_reg_to_mem, 91, -1
AADD #-5, SP
.dwcfi cfa_offset, 6
$C$DW$44 .dwtag DW_TAG_variable, DW_AT_name("hGpt")
.dwattr $C$DW$44, DW_AT_TI_symbol_name("_hGpt")
.dwattr $C$DW$44, DW_AT_type(*$C$DW$T$42)
.dwattr $C$DW$44, DW_AT_location[DW_OP_bregx 0x24 0]
$C$DW$45 .dwtag DW_TAG_variable, DW_AT_name("hwConfig")
.dwattr $C$DW$45, DW_AT_TI_symbol_name("_hwConfig")
.dwattr $C$DW$45, DW_AT_type(*$C$DW$T$48)
.dwattr $C$DW$45, DW_AT_location[DW_OP_bregx 0x24 2]
$C$DW$46 .dwtag DW_TAG_variable, DW_AT_name("regPtr")
.dwattr $C$DW$46, DW_AT_TI_symbol_name("_regPtr")
.dwattr $C$DW$46, DW_AT_type(*$C$DW$T$27)
.dwattr $C$DW$46, DW_AT_location[DW_OP_bregx 0x24 4]
MOV XAR1, dbl(*SP(#2))
MOV XAR0, dbl(*SP(#0))
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c",line 488,column 2,is_stmt
MOV dbl(*SP(#0)), XAR3
MOV XAR3, AC0
|| MOV #0, AC1 ; |488|
CMPU AC1 != AC0, TC1 ; |488|
BCC $C$L32,TC1 ; |488|
; branchcc occurs ; |488|
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c",line 490,column 3,is_stmt
MOV #-5, T0
B $C$L34 ; |490|
; branch occurs ; |490|
$C$L32:
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c",line 493,column 2,is_stmt
MOV dbl(*SP(#2)), XAR3
MOV XAR3, AC0
CMPU AC1 != AC0, TC1 ; |493|
BCC $C$L33,TC1 ; |493|
; branchcc occurs ; |493|
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c",line 495,column 3,is_stmt
MOV #-6, T0
B $C$L34 ; |495|
; branch occurs ; |495|
$C$L33:
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c",line 498,column 2,is_stmt
MOV dbl(*SP(#0)), XAR3
MOV *AR3(short(#2)), AR1 ; |498|
MOV AR1, *SP(#4) ; |498|
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c",line 501,column 2,is_stmt
MOV AR1, AR3
MOV port(*AR3), AR1 ; |501|
BCLR @#15, AR1 ; |501|
MOV AR1, port(*AR3) ; |501|
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c",line 503,column 2,is_stmt
MOV dbl(*SP(#2)), XAR3
MOV *AR3(short(#1)) << #2, AC0 ; |503|
MOV *SP(#4), AR3 ; |503|
AND #0x003c, AC0, AR1 ; |503|
MOV port(*AR3), AR2 ; |503|
AND #0xffc3, AR2, AR2 ; |503|
OR AR2, AR1 ; |503|
MOV AR1, port(*AR3) ; |503|
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c",line 505,column 2,is_stmt
MOV dbl(*SP(#2)), XAR3
MOV *AR3, AR1 ; |505|
MOV *SP(#4), AR3 ; |505|
SFTL AR1, #1 ; |505|
AND #0x0002, AR1, AR1 ; |505|
MOV port(*AR3), AR2 ; |505|
BCLR @#1, AR2 ; |505|
OR AR2, AR1 ; |505|
MOV AR1, port(*AR3) ; |505|
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c",line 507,column 2,is_stmt
MOV dbl(*SP(#2)), XAR3
MOV *AR3(short(#2)) << #15, AC0 ; |507|
MOV *SP(#4), AR3 ; |507|
AND #0x8000, AC0, AR1 ; |507|
MOV port(*AR3), AR2 ; |507|
BCLR @#15, AR2 ; |507|
OR AR2, AR1 ; |507|
MOV AR1, port(*AR3) ; |507|
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c",line 510,column 2,is_stmt
MOV *SP(#4), AR3 ; |510|
MOV #0, port(*AR3(short(#4))) ; |510|
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c",line 511,column 2,is_stmt
MOV *SP(#4), AR3 ; |511|
MOV #0, port(*AR3(short(#5))) ; |511|
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c",line 514,column 2,is_stmt
MOV dbl(*SP(#2)), XAR3
MOV *AR3(short(#3)), AR1 ; |514|
MOV *SP(#4), AR3 ; |514|
MOV AR1, port(*AR3(short(#2))) ; |514|
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c",line 515,column 2,is_stmt
MOV dbl(*SP(#2)), XAR3
MOV *AR3(short(#4)), AR1 ; |515|
MOV *SP(#4), AR3 ; |515|
MOV AR1, port(*AR3(short(#3))) ; |515|
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c",line 517,column 2,is_stmt
MOV #0, T0
$C$L34:
.dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c",line 518,column 1,is_stmt
AADD #5, SP
.dwcfi cfa_offset, 1
$C$DW$47 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$47, DW_AT_low_pc(0x00)
.dwattr $C$DW$47, DW_AT_TI_return
RET
; return occurs
.dwattr $C$DW$41, DW_AT_TI_end_file("../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/src/csl_gpt.c")
.dwattr $C$DW$41, DW_AT_TI_end_line(0x206)
.dwattr $C$DW$41, DW_AT_TI_end_column(0x01)
.dwendentry
.dwendtag $C$DW$41
;*******************************************************************************
;* TYPE INFORMATION *
;*******************************************************************************
$C$DW$T$22 .dwtag DW_TAG_enumeration_type
.dwattr $C$DW$T$22, DW_AT_byte_size(0x01)
$C$DW$48 .dwtag DW_TAG_enumerator, DW_AT_name("GPT_0"), DW_AT_const_value(0x00)
$C$DW$49 .dwtag DW_TAG_enumerator, DW_AT_name("GPT_1"), DW_AT_const_value(0x01)
$C$DW$50 .dwtag DW_TAG_enumerator, DW_AT_name("GPT_2"), DW_AT_const_value(0x02)
$C$DW$51 .dwtag DW_TAG_enumerator, DW_AT_name("GPT_INVALID"), DW_AT_const_value(0x03)
.dwendtag $C$DW$T$22
$C$DW$T$23 .dwtag DW_TAG_typedef, DW_AT_name("CSL_Instance")
.dwattr $C$DW$T$23, DW_AT_type(*$C$DW$T$22)
.dwattr $C$DW$T$23, DW_AT_language(DW_LANG_C)
$C$DW$T$29 .dwtag DW_TAG_enumeration_type
.dwattr $C$DW$T$29, DW_AT_byte_size(0x01)
$C$DW$52 .dwtag DW_TAG_enumerator, DW_AT_name("GPT_AUTO_DISABLE"), DW_AT_const_value(0x00)
$C$DW$53 .dwtag DW_TAG_enumerator, DW_AT_name("GPT_AUTO_ENABLE"), DW_AT_const_value(0x01)
.dwendtag $C$DW$T$29
$C$DW$T$30 .dwtag DW_TAG_typedef, DW_AT_name("CSL_AutoReLoad")
.dwattr $C$DW$T$30, DW_AT_type(*$C$DW$T$29)
.dwattr $C$DW$T$30, DW_AT_language(DW_LANG_C)
$C$DW$T$31 .dwtag DW_TAG_enumeration_type
.dwattr $C$DW$T$31, DW_AT_byte_size(0x01)
$C$DW$54 .dwtag DW_TAG_enumerator, DW_AT_name("GPT_PRE_SC_DIV_0"), DW_AT_const_value(0x00)
$C$DW$55 .dwtag DW_TAG_enumerator, DW_AT_name("GPT_PRE_SC_DIV_1"), DW_AT_const_value(0x01)
$C$DW$56 .dwtag DW_TAG_enumerator, DW_AT_name("GPT_PRE_SC_DIV_2"), DW_AT_const_value(0x02)
$C$DW$57 .dwtag DW_TAG_enumerator, DW_AT_name("GPT_PRE_SC_DIV_3"), DW_AT_const_value(0x03)
$C$DW$58 .dwtag DW_TAG_enumerator, DW_AT_name("GPT_PRE_SC_DIV_4"), DW_AT_const_value(0x04)
$C$DW$59 .dwtag DW_TAG_enumerator, DW_AT_name("GPT_PRE_SC_DIV_5"), DW_AT_const_value(0x05)
$C$DW$60 .dwtag DW_TAG_enumerator, DW_AT_name("GPT_PRE_SC_DIV_6"), DW_AT_const_value(0x06)
$C$DW$61 .dwtag DW_TAG_enumerator, DW_AT_name("GPT_PRE_SC_DIV_7"), DW_AT_const_value(0x07)
$C$DW$62 .dwtag DW_TAG_enumerator, DW_AT_name("GPT_PRE_SC_DIV_8"), DW_AT_const_value(0x08)
$C$DW$63 .dwtag DW_TAG_enumerator, DW_AT_name("GPT_PRE_SC_DIV_9"), DW_AT_const_value(0x09)
$C$DW$64 .dwtag DW_TAG_enumerator, DW_AT_name("GPT_PRE_SC_DIV_10"), DW_AT_const_value(0x0a)
$C$DW$65 .dwtag DW_TAG_enumerator, DW_AT_name("GPT_PRE_SC_DIV_11"), DW_AT_const_value(0x0b)
$C$DW$66 .dwtag DW_TAG_enumerator, DW_AT_name("GPT_PRE_SC_DIV_12"), DW_AT_const_value(0x0c)
$C$DW$67 .dwtag DW_TAG_enumerator, DW_AT_name("GPT_PRE_SC_DIV_RESERVE"), DW_AT_const_value(0x0d)
.dwendtag $C$DW$T$31
$C$DW$T$32 .dwtag DW_TAG_typedef, DW_AT_name("CSL_PreScale")
.dwattr $C$DW$T$32, DW_AT_type(*$C$DW$T$31)
.dwattr $C$DW$T$32, DW_AT_language(DW_LANG_C)
$C$DW$T$33 .dwtag DW_TAG_enumeration_type
.dwattr $C$DW$T$33, DW_AT_byte_size(0x01)
$C$DW$68 .dwtag DW_TAG_enumerator, DW_AT_name("GPT_TIMER_DISABLE"), DW_AT_const_value(0x00)
$C$DW$69 .dwtag DW_TAG_enumerator, DW_AT_name("GPT_TIMER_ENABLE"), DW_AT_const_value(0x01)
.dwendtag $C$DW$T$33
$C$DW$T$34 .dwtag DW_TAG_typedef, DW_AT_name("CSL_CtrlTimer")
.dwattr $C$DW$T$34, DW_AT_type(*$C$DW$T$33)
.dwattr $C$DW$T$34, DW_AT_language(DW_LANG_C)
$C$DW$T$21 .dwtag DW_TAG_structure_type
.dwattr $C$DW$T$21, DW_AT_byte_size(0x06)
$C$DW$70 .dwtag DW_TAG_member
.dwattr $C$DW$70, DW_AT_type(*$C$DW$T$20)
.dwattr $C$DW$70, DW_AT_name("TCR")
.dwattr $C$DW$70, DW_AT_TI_symbol_name("_TCR")
.dwattr $C$DW$70, DW_AT_data_member_location[DW_OP_plus_uconst 0x0]
.dwattr $C$DW$70, DW_AT_accessibility(DW_ACCESS_public)
$C$DW$71 .dwtag DW_TAG_member
.dwattr $C$DW$71, DW_AT_type(*$C$DW$T$20)
.dwattr $C$DW$71, DW_AT_name("RSVD0")
.dwattr $C$DW$71, DW_AT_TI_symbol_name("_RSVD0")
.dwattr $C$DW$71, DW_AT_data_member_location[DW_OP_plus_uconst 0x1]
.dwattr $C$DW$71, DW_AT_accessibility(DW_ACCESS_public)
$C$DW$72 .dwtag DW_TAG_member
.dwattr $C$DW$72, DW_AT_type(*$C$DW$T$20)
.dwattr $C$DW$72, DW_AT_name("TIMPRD1")
.dwattr $C$DW$72, DW_AT_TI_symbol_name("_TIMPRD1")
.dwattr $C$DW$72, DW_AT_data_member_location[DW_OP_plus_uconst 0x2]
.dwattr $C$DW$72, DW_AT_accessibility(DW_ACCESS_public)
$C$DW$73 .dwtag DW_TAG_member
.dwattr $C$DW$73, DW_AT_type(*$C$DW$T$20)
.dwattr $C$DW$73, DW_AT_name("TIMPRD2")
.dwattr $C$DW$73, DW_AT_TI_symbol_name("_TIMPRD2")
.dwattr $C$DW$73, DW_AT_data_member_location[DW_OP_plus_uconst 0x3]
.dwattr $C$DW$73, DW_AT_accessibility(DW_ACCESS_public)
$C$DW$74 .dwtag DW_TAG_member
.dwattr $C$DW$74, DW_AT_type(*$C$DW$T$20)
.dwattr $C$DW$74, DW_AT_name("TIMCNT1")
.dwattr $C$DW$74, DW_AT_TI_symbol_name("_TIMCNT1")
.dwattr $C$DW$74, DW_AT_data_member_location[DW_OP_plus_uconst 0x4]
.dwattr $C$DW$74, DW_AT_accessibility(DW_ACCESS_public)
$C$DW$75 .dwtag DW_TAG_member
.dwattr $C$DW$75, DW_AT_type(*$C$DW$T$20)
.dwattr $C$DW$75, DW_AT_name("TIMCNT2")
.dwattr $C$DW$75, DW_AT_TI_symbol_name("_TIMCNT2")
.dwattr $C$DW$75, DW_AT_data_member_location[DW_OP_plus_uconst 0x5]
.dwattr $C$DW$75, DW_AT_accessibility(DW_ACCESS_public)
.dwendtag $C$DW$T$21
$C$DW$T$24 .dwtag DW_TAG_typedef, DW_AT_name("CSL_TimRegs")
.dwattr $C$DW$T$24, DW_AT_type(*$C$DW$T$21)
.dwattr $C$DW$T$24, DW_AT_language(DW_LANG_C)
$C$DW$76 .dwtag DW_TAG_TI_far_type
.dwattr $C$DW$76, DW_AT_type(*$C$DW$T$24)
$C$DW$77 .dwtag DW_TAG_TI_ioport_type
.dwattr $C$DW$77, DW_AT_type(*$C$DW$76)
$C$DW$T$25 .dwtag DW_TAG_volatile_type
.dwattr $C$DW$T$25, DW_AT_type(*$C$DW$77)
$C$DW$T$26 .dwtag DW_TAG_pointer_type
.dwattr $C$DW$T$26, DW_AT_type(*$C$DW$T$25)
.dwattr $C$DW$T$26, DW_AT_address_class(0x10)
$C$DW$T$27 .dwtag DW_TAG_typedef, DW_AT_name("CSL_TimRegsOvly")
.dwattr $C$DW$T$27, DW_AT_type(*$C$DW$T$26)
.dwattr $C$DW$T$27, DW_AT_language(DW_LANG_C)
$C$DW$T$28 .dwtag DW_TAG_structure_type
.dwattr $C$DW$T$28, DW_AT_byte_size(0x03)
$C$DW$78 .dwtag DW_TAG_member
.dwattr $C$DW$78, DW_AT_type(*$C$DW$T$23)
.dwattr $C$DW$78, DW_AT_name("Instance")
.dwattr $C$DW$78, DW_AT_TI_symbol_name("_Instance")
.dwattr $C$DW$78, DW_AT_data_member_location[DW_OP_plus_uconst 0x0]
.dwattr $C$DW$78, DW_AT_accessibility(DW_ACCESS_public)
$C$DW$79 .dwtag DW_TAG_member
.dwattr $C$DW$79, DW_AT_type(*$C$DW$T$19)
.dwattr $C$DW$79, DW_AT_name("EventId")
.dwattr $C$DW$79, DW_AT_TI_symbol_name("_EventId")
.dwattr $C$DW$79, DW_AT_data_member_location[DW_OP_plus_uconst 0x1]
.dwattr $C$DW$79, DW_AT_accessibility(DW_ACCESS_public)
$C$DW$80 .dwtag DW_TAG_member
.dwattr $C$DW$80, DW_AT_type(*$C$DW$T$27)
.dwattr $C$DW$80, DW_AT_name("regs")
.dwattr $C$DW$80, DW_AT_TI_symbol_name("_regs")
.dwattr $C$DW$80, DW_AT_data_member_location[DW_OP_plus_uconst 0x2]
.dwattr $C$DW$80, DW_AT_accessibility(DW_ACCESS_public)
.dwendtag $C$DW$T$28
$C$DW$T$40 .dwtag DW_TAG_typedef, DW_AT_name("CSL_GptObj")
.dwattr $C$DW$T$40, DW_AT_type(*$C$DW$T$28)
.dwattr $C$DW$T$40, DW_AT_language(DW_LANG_C)
$C$DW$T$41 .dwtag DW_TAG_pointer_type
.dwattr $C$DW$T$41, DW_AT_type(*$C$DW$T$40)
.dwattr $C$DW$T$41, DW_AT_address_class(0x17)
$C$DW$T$42 .dwtag DW_TAG_typedef, DW_AT_name("CSL_Handle")
.dwattr $C$DW$T$42, DW_AT_type(*$C$DW$T$41)
.dwattr $C$DW$T$42, DW_AT_language(DW_LANG_C)
$C$DW$T$35 .dwtag DW_TAG_structure_type
.dwattr $C$DW$T$35, DW_AT_byte_size(0x05)
$C$DW$81 .dwtag DW_TAG_member
.dwattr $C$DW$81, DW_AT_type(*$C$DW$T$30)
.dwattr $C$DW$81, DW_AT_name("autoLoad")
.dwattr $C$DW$81, DW_AT_TI_symbol_name("_autoLoad")
.dwattr $C$DW$81, DW_AT_data_member_location[DW_OP_plus_uconst 0x0]
.dwattr $C$DW$81, DW_AT_accessibility(DW_ACCESS_public)
$C$DW$82 .dwtag DW_TAG_member
.dwattr $C$DW$82, DW_AT_type(*$C$DW$T$32)
.dwattr $C$DW$82, DW_AT_name("preScaleDiv")
.dwattr $C$DW$82, DW_AT_TI_symbol_name("_preScaleDiv")
.dwattr $C$DW$82, DW_AT_data_member_location[DW_OP_plus_uconst 0x1]
.dwattr $C$DW$82, DW_AT_accessibility(DW_ACCESS_public)
$C$DW$83 .dwtag DW_TAG_member
.dwattr $C$DW$83, DW_AT_type(*$C$DW$T$34)
.dwattr $C$DW$83, DW_AT_name("ctrlTim")
.dwattr $C$DW$83, DW_AT_TI_symbol_name("_ctrlTim")
.dwattr $C$DW$83, DW_AT_data_member_location[DW_OP_plus_uconst 0x2]
.dwattr $C$DW$83, DW_AT_accessibility(DW_ACCESS_public)
$C$DW$84 .dwtag DW_TAG_member
.dwattr $C$DW$84, DW_AT_type(*$C$DW$T$19)
.dwattr $C$DW$84, DW_AT_name("prdLow")
.dwattr $C$DW$84, DW_AT_TI_symbol_name("_prdLow")
.dwattr $C$DW$84, DW_AT_data_member_location[DW_OP_plus_uconst 0x3]
.dwattr $C$DW$84, DW_AT_accessibility(DW_ACCESS_public)
$C$DW$85 .dwtag DW_TAG_member
.dwattr $C$DW$85, DW_AT_type(*$C$DW$T$19)
.dwattr $C$DW$85, DW_AT_name("prdHigh")
.dwattr $C$DW$85, DW_AT_TI_symbol_name("_prdHigh")
.dwattr $C$DW$85, DW_AT_data_member_location[DW_OP_plus_uconst 0x4]
.dwattr $C$DW$85, DW_AT_accessibility(DW_ACCESS_public)
.dwendtag $C$DW$T$35
$C$DW$T$47 .dwtag DW_TAG_typedef, DW_AT_name("CSL_Config")
.dwattr $C$DW$T$47, DW_AT_type(*$C$DW$T$35)
.dwattr $C$DW$T$47, DW_AT_language(DW_LANG_C)
$C$DW$T$48 .dwtag DW_TAG_pointer_type
.dwattr $C$DW$T$48, DW_AT_type(*$C$DW$T$47)
.dwattr $C$DW$T$48, DW_AT_address_class(0x17)
$C$DW$T$39 .dwtag DW_TAG_structure_type
.dwattr $C$DW$T$39, DW_AT_byte_size(0x48)
$C$DW$86 .dwtag DW_TAG_member
.dwattr $C$DW$86, DW_AT_type(*$C$DW$T$20)
.dwattr $C$DW$86, DW_AT_name("EBSR")
.dwattr $C$DW$86, DW_AT_TI_symbol_name("_EBSR")
.dwattr $C$DW$86, DW_AT_data_member_location[DW_OP_plus_uconst 0x0]
.dwattr $C$DW$86, DW_AT_accessibility(DW_ACCESS_public)
$C$DW$87 .dwtag DW_TAG_member
.dwattr $C$DW$87, DW_AT_type(*$C$DW$T$20)
.dwattr $C$DW$87, DW_AT_name("RSVD0")
.dwattr $C$DW$87, DW_AT_TI_symbol_name("_RSVD0")
.dwattr $C$DW$87, DW_AT_data_member_location[DW_OP_plus_uconst 0x1]
.dwattr $C$DW$87, DW_AT_accessibility(DW_ACCESS_public)
$C$DW$88 .dwtag DW_TAG_member
.dwattr $C$DW$88, DW_AT_type(*$C$DW$T$20)
.dwattr $C$DW$88, DW_AT_name("PCGCR1")
.dwattr $C$DW$88, DW_AT_TI_symbol_name("_PCGCR1")
.dwattr $C$DW$88, DW_AT_data_member_location[DW_OP_plus_uconst 0x2]
.dwattr $C$DW$88, DW_AT_accessibility(DW_ACCESS_public)
$C$DW$89 .dwtag DW_TAG_member
.dwattr $C$DW$89, DW_AT_type(*$C$DW$T$20)
.dwattr $C$DW$89, DW_AT_name("PCGCR2")
.dwattr $C$DW$89, DW_AT_TI_symbol_name("_PCGCR2")
.dwattr $C$DW$89, DW_AT_data_member_location[DW_OP_plus_uconst 0x3]
.dwattr $C$DW$89, DW_AT_accessibility(DW_ACCESS_public)
$C$DW$90 .dwtag DW_TAG_member
.dwattr $C$DW$90, DW_AT_type(*$C$DW$T$20)
.dwattr $C$DW$90, DW_AT_name("PSRCR")
.dwattr $C$DW$90, DW_AT_TI_symbol_name("_PSRCR")
.dwattr $C$DW$90, DW_AT_data_member_location[DW_OP_plus_uconst 0x4]
.dwattr $C$DW$90, DW_AT_accessibility(DW_ACCESS_public)
$C$DW$91 .dwtag DW_TAG_member
.dwattr $C$DW$91, DW_AT_type(*$C$DW$T$20)
.dwattr $C$DW$91, DW_AT_name("PRCR")
.dwattr $C$DW$91, DW_AT_TI_symbol_name("_PRCR")
.dwattr $C$DW$91, DW_AT_data_member_location[DW_OP_plus_uconst 0x5]
.dwattr $C$DW$91, DW_AT_accessibility(DW_ACCESS_public)
$C$DW$92 .dwtag DW_TAG_member
.dwattr $C$DW$92, DW_AT_type(*$C$DW$T$36)
.dwattr $C$DW$92, DW_AT_name("RSVD1")
.dwattr $C$DW$92, DW_AT_TI_symbol_name("_RSVD1")
.dwattr $C$DW$92, DW_AT_data_member_location[DW_OP_plus_uconst 0x6]
.dwattr $C$DW$92, DW_AT_accessibility(DW_ACCESS_public)
$C$DW$93 .dwtag DW_TAG_member
.dwattr $C$DW$93, DW_AT_type(*$C$DW$T$20)
.dwattr $C$DW$93, DW_AT_name("TIAFR")
.dwattr $C$DW$93, DW_AT_TI_symbol_name("_TIAFR")
.dwattr $C$DW$93, DW_AT_data_member_location[DW_OP_plus_uconst 0x14]
.dwattr $C$DW$93, DW_AT_accessibility(DW_ACCESS_public)
$C$DW$94 .dwtag DW_TAG_member
.dwattr $C$DW$94, DW_AT_type(*$C$DW$T$20)
.dwattr $C$DW$94, DW_AT_name("RSVD2")
.dwattr $C$DW$94, DW_AT_TI_symbol_name("_RSVD2")
.dwattr $C$DW$94, DW_AT_data_member_location[DW_OP_plus_uconst 0x15]
.dwattr $C$DW$94, DW_AT_accessibility(DW_ACCESS_public)
$C$DW$95 .dwtag DW_TAG_member
.dwattr $C$DW$95, DW_AT_type(*$C$DW$T$20)
.dwattr $C$DW$95, DW_AT_name("ODSCR")
.dwattr $C$DW$95, DW_AT_TI_symbol_name("_ODSCR")
.dwattr $C$DW$95, DW_AT_data_member_location[DW_OP_plus_uconst 0x16]
.dwattr $C$DW$95, DW_AT_accessibility(DW_ACCESS_public)
$C$DW$96 .dwtag DW_TAG_member
.dwattr $C$DW$96, DW_AT_type(*$C$DW$T$20)
.dwattr $C$DW$96, DW_AT_name("PDINHIBR1")
.dwattr $C$DW$96, DW_AT_TI_symbol_name("_PDINHIBR1")
.dwattr $C$DW$96, DW_AT_data_member_location[DW_OP_plus_uconst 0x17]
.dwattr $C$DW$96, DW_AT_accessibility(DW_ACCESS_public)
$C$DW$97 .dwtag DW_TAG_member
.dwattr $C$DW$97, DW_AT_type(*$C$DW$T$20)
.dwattr $C$DW$97, DW_AT_name("PDINHIBR2")
.dwattr $C$DW$97, DW_AT_TI_symbol_name("_PDINHIBR2")
.dwattr $C$DW$97, DW_AT_data_member_location[DW_OP_plus_uconst 0x18]
.dwattr $C$DW$97, DW_AT_accessibility(DW_ACCESS_public)
$C$DW$98 .dwtag DW_TAG_member
.dwattr $C$DW$98, DW_AT_type(*$C$DW$T$20)
.dwattr $C$DW$98, DW_AT_name("PDINHIBR3")
.dwattr $C$DW$98, DW_AT_TI_symbol_name("_PDINHIBR3")
.dwattr $C$DW$98, DW_AT_data_member_location[DW_OP_plus_uconst 0x19]
.dwattr $C$DW$98, DW_AT_accessibility(DW_ACCESS_public)
$C$DW$99 .dwtag DW_TAG_member
.dwattr $C$DW$99, DW_AT_type(*$C$DW$T$20)
.dwattr $C$DW$99, DW_AT_name("DMA0CESR1")
.dwattr $C$DW$99, DW_AT_TI_symbol_name("_DMA0CESR1")
.dwattr $C$DW$99, DW_AT_data_member_location[DW_OP_plus_uconst 0x1a]
.dwattr $C$DW$99, DW_AT_accessibility(DW_ACCESS_public)
$C$DW$100 .dwtag DW_TAG_member
.dwattr $C$DW$100, DW_AT_type(*$C$DW$T$20)
.dwattr $C$DW$100, DW_AT_name("DMA0CESR2")
.dwattr $C$DW$100, DW_AT_TI_symbol_name("_DMA0CESR2")
.dwattr $C$DW$100, DW_AT_data_member_location[DW_OP_plus_uconst 0x1b]
.dwattr $C$DW$100, DW_AT_accessibility(DW_ACCESS_public)
$C$DW$101 .dwtag DW_TAG_member
.dwattr $C$DW$101, DW_AT_type(*$C$DW$T$20)
.dwattr $C$DW$101, DW_AT_name("DMA1CESR1")
.dwattr $C$DW$101, DW_AT_TI_symbol_name("_DMA1CESR1")
.dwattr $C$DW$101, DW_AT_data_member_location[DW_OP_plus_uconst 0x1c]
.dwattr $C$DW$101, DW_AT_accessibility(DW_ACCESS_public)
$C$DW$102 .dwtag DW_TAG_member
.dwattr $C$DW$102, DW_AT_type(*$C$DW$T$20)
.dwattr $C$DW$102, DW_AT_name("DMA1CESR2")
.dwattr $C$DW$102, DW_AT_TI_symbol_name("_DMA1CESR2")
.dwattr $C$DW$102, DW_AT_data_member_location[DW_OP_plus_uconst 0x1d]
.dwattr $C$DW$102, DW_AT_accessibility(DW_ACCESS_public)
$C$DW$103 .dwtag DW_TAG_member
.dwattr $C$DW$103, DW_AT_type(*$C$DW$T$20)
.dwattr $C$DW$103, DW_AT_name("SDRAMCCR")
.dwattr $C$DW$103, DW_AT_TI_symbol_name("_SDRAMCCR")
.dwattr $C$DW$103, DW_AT_data_member_location[DW_OP_plus_uconst 0x1e]
.dwattr $C$DW$103, DW_AT_accessibility(DW_ACCESS_public)
$C$DW$104 .dwtag DW_TAG_member
.dwattr $C$DW$104, DW_AT_type(*$C$DW$T$20)
.dwattr $C$DW$104, DW_AT_name("CCR2")
.dwattr $C$DW$104, DW_AT_TI_symbol_name("_CCR2")
.dwattr $C$DW$104, DW_AT_data_member_location[DW_OP_plus_uconst 0x1f]
.dwattr $C$DW$104, DW_AT_accessibility(DW_ACCESS_public)
$C$DW$105 .dwtag DW_TAG_member
.dwattr $C$DW$105, DW_AT_type(*$C$DW$T$20)
.dwattr $C$DW$105, DW_AT_name("CGCR1")
.dwattr $C$DW$105, DW_AT_TI_symbol_name("_CGCR1")
.dwattr $C$DW$105, DW_AT_data_member_location[DW_OP_plus_uconst 0x20]
.dwattr $C$DW$105, DW_AT_accessibility(DW_ACCESS_public)
$C$DW$106 .dwtag DW_TAG_member
.dwattr $C$DW$106, DW_AT_type(*$C$DW$T$20)
.dwattr $C$DW$106, DW_AT_name("CGICR")
.dwattr $C$DW$106, DW_AT_TI_symbol_name("_CGICR")
.dwattr $C$DW$106, DW_AT_data_member_location[DW_OP_plus_uconst 0x21]
.dwattr $C$DW$106, DW_AT_accessibility(DW_ACCESS_public)
$C$DW$107 .dwtag DW_TAG_member
.dwattr $C$DW$107, DW_AT_type(*$C$DW$T$20)
.dwattr $C$DW$107, DW_AT_name("CGCR2")
.dwattr $C$DW$107, DW_AT_TI_symbol_name("_CGCR2")
.dwattr $C$DW$107, DW_AT_data_member_location[DW_OP_plus_uconst 0x22]
.dwattr $C$DW$107, DW_AT_accessibility(DW_ACCESS_public)
$C$DW$108 .dwtag DW_TAG_member
.dwattr $C$DW$108, DW_AT_type(*$C$DW$T$20)
.dwattr $C$DW$108, DW_AT_name("CGOCR")
.dwattr $C$DW$108, DW_AT_TI_symbol_name("_CGOCR")
.dwattr $C$DW$108, DW_AT_data_member_location[DW_OP_plus_uconst 0x23]
.dwattr $C$DW$108, DW_AT_accessibility(DW_ACCESS_public)
$C$DW$109 .dwtag DW_TAG_member
.dwattr $C$DW$109, DW_AT_type(*$C$DW$T$20)
.dwattr $C$DW$109, DW_AT_name("CCSSR")
.dwattr $C$DW$109, DW_AT_TI_symbol_name("_CCSSR")
.dwattr $C$DW$109, DW_AT_data_member_location[DW_OP_plus_uconst 0x24]
.dwattr $C$DW$109, DW_AT_accessibility(DW_ACCESS_public)
$C$DW$110 .dwtag DW_TAG_member
.dwattr $C$DW$110, DW_AT_type(*$C$DW$T$20)
.dwattr $C$DW$110, DW_AT_name("RSVD3")
.dwattr $C$DW$110, DW_AT_TI_symbol_name("_RSVD3")
.dwattr $C$DW$110, DW_AT_data_member_location[DW_OP_plus_uconst 0x25]
.dwattr $C$DW$110, DW_AT_accessibility(DW_ACCESS_public)
$C$DW$111 .dwtag DW_TAG_member
.dwattr $C$DW$111, DW_AT_type(*$C$DW$T$20)
.dwattr $C$DW$111, DW_AT_name("ECDR")
.dwattr $C$DW$111, DW_AT_TI_symbol_name("_ECDR")
.dwattr $C$DW$111, DW_AT_data_member_location[DW_OP_plus_uconst 0x26]
.dwattr $C$DW$111, DW_AT_accessibility(DW_ACCESS_public)
$C$DW$112 .dwtag DW_TAG_member
.dwattr $C$DW$112, DW_AT_type(*$C$DW$T$20)
.dwattr $C$DW$112, DW_AT_name("RSVD4")
.dwattr $C$DW$112, DW_AT_TI_symbol_name("_RSVD4")
.dwattr $C$DW$112, DW_AT_data_member_location[DW_OP_plus_uconst 0x27]
.dwattr $C$DW$112, DW_AT_accessibility(DW_ACCESS_public)
$C$DW$113 .dwtag DW_TAG_member
.dwattr $C$DW$113, DW_AT_type(*$C$DW$T$20)
.dwattr $C$DW$113, DW_AT_name("RAMSLPMDCNTLR1")
.dwattr $C$DW$113, DW_AT_TI_symbol_name("_RAMSLPMDCNTLR1")
.dwattr $C$DW$113, DW_AT_data_member_location[DW_OP_plus_uconst 0x28]
.dwattr $C$DW$113, DW_AT_accessibility(DW_ACCESS_public)
$C$DW$114 .dwtag DW_TAG_member
.dwattr $C$DW$114, DW_AT_type(*$C$DW$T$20)
.dwattr $C$DW$114, DW_AT_name("RSVD5")
.dwattr $C$DW$114, DW_AT_TI_symbol_name("_RSVD5")
.dwattr $C$DW$114, DW_AT_data_member_location[DW_OP_plus_uconst 0x29]
.dwattr $C$DW$114, DW_AT_accessibility(DW_ACCESS_public)
$C$DW$115 .dwtag DW_TAG_member
.dwattr $C$DW$115, DW_AT_type(*$C$DW$T$20)
.dwattr $C$DW$115, DW_AT_name("RAMSLPMDCNTLR2")
.dwattr $C$DW$115, DW_AT_TI_symbol_name("_RAMSLPMDCNTLR2")
.dwattr $C$DW$115, DW_AT_data_member_location[DW_OP_plus_uconst 0x2a]
.dwattr $C$DW$115, DW_AT_accessibility(DW_ACCESS_public)
$C$DW$116 .dwtag DW_TAG_member
.dwattr $C$DW$116, DW_AT_type(*$C$DW$T$20)
.dwattr $C$DW$116, DW_AT_name("RAMSLPMDCNTLR3")
.dwattr $C$DW$116, DW_AT_TI_symbol_name("_RAMSLPMDCNTLR3")
.dwattr $C$DW$116, DW_AT_data_member_location[DW_OP_plus_uconst 0x2b]
.dwattr $C$DW$116, DW_AT_accessibility(DW_ACCESS_public)
$C$DW$117 .dwtag DW_TAG_member
.dwattr $C$DW$117, DW_AT_type(*$C$DW$T$20)
.dwattr $C$DW$117, DW_AT_name("RAMSLPMDCNTLR4")
.dwattr $C$DW$117, DW_AT_TI_symbol_name("_RAMSLPMDCNTLR4")
.dwattr $C$DW$117, DW_AT_data_member_location[DW_OP_plus_uconst 0x2c]
.dwattr $C$DW$117, DW_AT_accessibility(DW_ACCESS_public)
$C$DW$118 .dwtag DW_TAG_member
.dwattr $C$DW$118, DW_AT_type(*$C$DW$T$20)
.dwattr $C$DW$118, DW_AT_name("RAMSLPMDCNTLR5")
.dwattr $C$DW$118, DW_AT_TI_symbol_name("_RAMSLPMDCNTLR5")
.dwattr $C$DW$118, DW_AT_data_member_location[DW_OP_plus_uconst 0x2d]
.dwattr $C$DW$118, DW_AT_accessibility(DW_ACCESS_public)
$C$DW$119 .dwtag DW_TAG_member
.dwattr $C$DW$119, DW_AT_type(*$C$DW$T$37)
.dwattr $C$DW$119, DW_AT_name("RSVD6")
.dwattr $C$DW$119, DW_AT_TI_symbol_name("_RSVD6")
.dwattr $C$DW$119, DW_AT_data_member_location[DW_OP_plus_uconst 0x2e]
.dwattr $C$DW$119, DW_AT_accessibility(DW_ACCESS_public)
$C$DW$120 .dwtag DW_TAG_member
.dwattr $C$DW$120, DW_AT_type(*$C$DW$T$20)
.dwattr $C$DW$120, DW_AT_name("DMAIFR")
.dwattr $C$DW$120, DW_AT_TI_symbol_name("_DMAIFR")
.dwattr $C$DW$120, DW_AT_data_member_location[DW_OP_plus_uconst 0x30]
.dwattr $C$DW$120, DW_AT_accessibility(DW_ACCESS_public)
$C$DW$121 .dwtag DW_TAG_member
.dwattr $C$DW$121, DW_AT_type(*$C$DW$T$20)
.dwattr $C$DW$121, DW_AT_name("DMAIER")
.dwattr $C$DW$121, DW_AT_TI_symbol_name("_DMAIER")
.dwattr $C$DW$121, DW_AT_data_member_location[DW_OP_plus_uconst 0x31]
.dwattr $C$DW$121, DW_AT_accessibility(DW_ACCESS_public)
$C$DW$122 .dwtag DW_TAG_member
.dwattr $C$DW$122, DW_AT_type(*$C$DW$T$20)
.dwattr $C$DW$122, DW_AT_name("USBSCR")
.dwattr $C$DW$122, DW_AT_TI_symbol_name("_USBSCR")
.dwattr $C$DW$122, DW_AT_data_member_location[DW_OP_plus_uconst 0x32]
.dwattr $C$DW$122, DW_AT_accessibility(DW_ACCESS_public)
$C$DW$123 .dwtag DW_TAG_member
.dwattr $C$DW$123, DW_AT_type(*$C$DW$T$20)
.dwattr $C$DW$123, DW_AT_name("ESCR")
.dwattr $C$DW$123, DW_AT_TI_symbol_name("_ESCR")
.dwattr $C$DW$123, DW_AT_data_member_location[DW_OP_plus_uconst 0x33]
.dwattr $C$DW$123, DW_AT_accessibility(DW_ACCESS_public)
$C$DW$124 .dwtag DW_TAG_member
.dwattr $C$DW$124, DW_AT_type(*$C$DW$T$37)
.dwattr $C$DW$124, DW_AT_name("RSVD7")
.dwattr $C$DW$124, DW_AT_TI_symbol_name("_RSVD7")
.dwattr $C$DW$124, DW_AT_data_member_location[DW_OP_plus_uconst 0x34]
.dwattr $C$DW$124, DW_AT_accessibility(DW_ACCESS_public)
$C$DW$125 .dwtag DW_TAG_member
.dwattr $C$DW$125, DW_AT_type(*$C$DW$T$20)
.dwattr $C$DW$125, DW_AT_name("DMA2CESR1")
.dwattr $C$DW$125, DW_AT_TI_symbol_name("_DMA2CESR1")
.dwattr $C$DW$125, DW_AT_data_member_location[DW_OP_plus_uconst 0x36]
.dwattr $C$DW$125, DW_AT_accessibility(DW_ACCESS_public)
$C$DW$126 .dwtag DW_TAG_member
.dwattr $C$DW$126, DW_AT_type(*$C$DW$T$20)
.dwattr $C$DW$126, DW_AT_name("DMA2CESR2")
.dwattr $C$DW$126, DW_AT_TI_symbol_name("_DMA2CESR2")
.dwattr $C$DW$126, DW_AT_data_member_location[DW_OP_plus_uconst 0x37]
.dwattr $C$DW$126, DW_AT_accessibility(DW_ACCESS_public)
$C$DW$127 .dwtag DW_TAG_member
.dwattr $C$DW$127, DW_AT_type(*$C$DW$T$20)
.dwattr $C$DW$127, DW_AT_name("DMA3CESR1")
.dwattr $C$DW$127, DW_AT_TI_symbol_name("_DMA3CESR1")
.dwattr $C$DW$127, DW_AT_data_member_location[DW_OP_plus_uconst 0x38]
.dwattr $C$DW$127, DW_AT_accessibility(DW_ACCESS_public)
$C$DW$128 .dwtag DW_TAG_member
.dwattr $C$DW$128, DW_AT_type(*$C$DW$T$20)
.dwattr $C$DW$128, DW_AT_name("DMA3CESR2")
.dwattr $C$DW$128, DW_AT_TI_symbol_name("_DMA3CESR2")
.dwattr $C$DW$128, DW_AT_data_member_location[DW_OP_plus_uconst 0x39]
.dwattr $C$DW$128, DW_AT_accessibility(DW_ACCESS_public)
$C$DW$129 .dwtag DW_TAG_member
.dwattr $C$DW$129, DW_AT_type(*$C$DW$T$20)
.dwattr $C$DW$129, DW_AT_name("CLKSTOP")
.dwattr $C$DW$129, DW_AT_TI_symbol_name("_CLKSTOP")
.dwattr $C$DW$129, DW_AT_data_member_location[DW_OP_plus_uconst 0x3a]
.dwattr $C$DW$129, DW_AT_accessibility(DW_ACCESS_public)
$C$DW$130 .dwtag DW_TAG_member
.dwattr $C$DW$130, DW_AT_type(*$C$DW$T$38)
.dwattr $C$DW$130, DW_AT_name("RSVD8")
.dwattr $C$DW$130, DW_AT_TI_symbol_name("_RSVD8")
.dwattr $C$DW$130, DW_AT_data_member_location[DW_OP_plus_uconst 0x3b]
.dwattr $C$DW$130, DW_AT_accessibility(DW_ACCESS_public)
$C$DW$131 .dwtag DW_TAG_member
.dwattr $C$DW$131, DW_AT_type(*$C$DW$T$20)
.dwattr $C$DW$131, DW_AT_name("DIEIDR0")
.dwattr $C$DW$131, DW_AT_TI_symbol_name("_DIEIDR0")
.dwattr $C$DW$131, DW_AT_data_member_location[DW_OP_plus_uconst 0x40]
.dwattr $C$DW$131, DW_AT_accessibility(DW_ACCESS_public)
$C$DW$132 .dwtag DW_TAG_member
.dwattr $C$DW$132, DW_AT_type(*$C$DW$T$20)
.dwattr $C$DW$132, DW_AT_name("DIEIDR1")
.dwattr $C$DW$132, DW_AT_TI_symbol_name("_DIEIDR1")
.dwattr $C$DW$132, DW_AT_data_member_location[DW_OP_plus_uconst 0x41]
.dwattr $C$DW$132, DW_AT_accessibility(DW_ACCESS_public)
$C$DW$133 .dwtag DW_TAG_member
.dwattr $C$DW$133, DW_AT_type(*$C$DW$T$20)
.dwattr $C$DW$133, DW_AT_name("DIEIDR2")
.dwattr $C$DW$133, DW_AT_TI_symbol_name("_DIEIDR2")
.dwattr $C$DW$133, DW_AT_data_member_location[DW_OP_plus_uconst 0x42]
.dwattr $C$DW$133, DW_AT_accessibility(DW_ACCESS_public)
$C$DW$134 .dwtag DW_TAG_member
.dwattr $C$DW$134, DW_AT_type(*$C$DW$T$20)
.dwattr $C$DW$134, DW_AT_name("DIEIDR3")
.dwattr $C$DW$134, DW_AT_TI_symbol_name("_DIEIDR3")
.dwattr $C$DW$134, DW_AT_data_member_location[DW_OP_plus_uconst 0x43]
.dwattr $C$DW$134, DW_AT_accessibility(DW_ACCESS_public)
$C$DW$135 .dwtag DW_TAG_member
.dwattr $C$DW$135, DW_AT_type(*$C$DW$T$20)
.dwattr $C$DW$135, DW_AT_name("DIEIDR4")
.dwattr $C$DW$135, DW_AT_TI_symbol_name("_DIEIDR4")
.dwattr $C$DW$135, DW_AT_data_member_location[DW_OP_plus_uconst 0x44]
.dwattr $C$DW$135, DW_AT_accessibility(DW_ACCESS_public)
$C$DW$136 .dwtag DW_TAG_member
.dwattr $C$DW$136, DW_AT_type(*$C$DW$T$20)
.dwattr $C$DW$136, DW_AT_name("DIEIDR5")
.dwattr $C$DW$136, DW_AT_TI_symbol_name("_DIEIDR5")
.dwattr $C$DW$136, DW_AT_data_member_location[DW_OP_plus_uconst 0x45]
.dwattr $C$DW$136, DW_AT_accessibility(DW_ACCESS_public)
$C$DW$137 .dwtag DW_TAG_member
.dwattr $C$DW$137, DW_AT_type(*$C$DW$T$20)
.dwattr $C$DW$137, DW_AT_name("DIEIDR6")
.dwattr $C$DW$137, DW_AT_TI_symbol_name("_DIEIDR6")
.dwattr $C$DW$137, DW_AT_data_member_location[DW_OP_plus_uconst 0x46]
.dwattr $C$DW$137, DW_AT_accessibility(DW_ACCESS_public)
$C$DW$138 .dwtag DW_TAG_member
.dwattr $C$DW$138, DW_AT_type(*$C$DW$T$20)
.dwattr $C$DW$138, DW_AT_name("DIEIDR7")
.dwattr $C$DW$138, DW_AT_TI_symbol_name("_DIEIDR7")
.dwattr $C$DW$138, DW_AT_data_member_location[DW_OP_plus_uconst 0x47]
.dwattr $C$DW$138, DW_AT_accessibility(DW_ACCESS_public)
.dwendtag $C$DW$T$39
$C$DW$T$49 .dwtag DW_TAG_typedef, DW_AT_name("CSL_SysRegs")
.dwattr $C$DW$T$49, DW_AT_type(*$C$DW$T$39)
.dwattr $C$DW$T$49, DW_AT_language(DW_LANG_C)
$C$DW$139 .dwtag DW_TAG_TI_far_type
.dwattr $C$DW$139, DW_AT_type(*$C$DW$T$49)
$C$DW$140 .dwtag DW_TAG_TI_ioport_type
.dwattr $C$DW$140, DW_AT_type(*$C$DW$139)
$C$DW$T$50 .dwtag DW_TAG_volatile_type
.dwattr $C$DW$T$50, DW_AT_type(*$C$DW$140)
$C$DW$T$51 .dwtag DW_TAG_pointer_type
.dwattr $C$DW$T$51, DW_AT_type(*$C$DW$T$50)
.dwattr $C$DW$T$51, DW_AT_address_class(0x10)
$C$DW$T$4 .dwtag DW_TAG_base_type
.dwattr $C$DW$T$4, DW_AT_encoding(DW_ATE_boolean)
.dwattr $C$DW$T$4, DW_AT_name("bool")
.dwattr $C$DW$T$4, DW_AT_byte_size(0x01)
$C$DW$T$5 .dwtag DW_TAG_base_type
.dwattr $C$DW$T$5, DW_AT_encoding(DW_ATE_signed_char)
.dwattr $C$DW$T$5, DW_AT_name("signed char")
.dwattr $C$DW$T$5, DW_AT_byte_size(0x01)
$C$DW$T$6 .dwtag DW_TAG_base_type
.dwattr $C$DW$T$6, DW_AT_encoding(DW_ATE_unsigned_char)
.dwattr $C$DW$T$6, DW_AT_name("unsigned char")
.dwattr $C$DW$T$6, DW_AT_byte_size(0x01)
$C$DW$T$7 .dwtag DW_TAG_base_type
.dwattr $C$DW$T$7, DW_AT_encoding(DW_ATE_signed_char)
.dwattr $C$DW$T$7, DW_AT_name("wchar_t")
.dwattr $C$DW$T$7, DW_AT_byte_size(0x01)
$C$DW$T$8 .dwtag DW_TAG_base_type
.dwattr $C$DW$T$8, DW_AT_encoding(DW_ATE_signed)
.dwattr $C$DW$T$8, DW_AT_name("short")
.dwattr $C$DW$T$8, DW_AT_byte_size(0x01)
$C$DW$T$43 .dwtag DW_TAG_typedef, DW_AT_name("Int16")
.dwattr $C$DW$T$43, DW_AT_type(*$C$DW$T$8)
.dwattr $C$DW$T$43, DW_AT_language(DW_LANG_C)
$C$DW$T$44 .dwtag DW_TAG_typedef, DW_AT_name("CSL_Status")
.dwattr $C$DW$T$44, DW_AT_type(*$C$DW$T$43)
.dwattr $C$DW$T$44, DW_AT_language(DW_LANG_C)
$C$DW$T$45 .dwtag DW_TAG_pointer_type
.dwattr $C$DW$T$45, DW_AT_type(*$C$DW$T$44)
.dwattr $C$DW$T$45, DW_AT_address_class(0x17)
$C$DW$T$9 .dwtag DW_TAG_base_type
.dwattr $C$DW$T$9, DW_AT_encoding(DW_ATE_unsigned)
.dwattr $C$DW$T$9, DW_AT_name("unsigned short")
.dwattr $C$DW$T$9, DW_AT_byte_size(0x01)
$C$DW$T$19 .dwtag DW_TAG_typedef, DW_AT_name("Uint16")
.dwattr $C$DW$T$19, DW_AT_type(*$C$DW$T$9)
.dwattr $C$DW$T$19, DW_AT_language(DW_LANG_C)
$C$DW$141 .dwtag DW_TAG_TI_far_type
.dwattr $C$DW$141, DW_AT_type(*$C$DW$T$19)
$C$DW$T$20 .dwtag DW_TAG_volatile_type
.dwattr $C$DW$T$20, DW_AT_type(*$C$DW$141)
$C$DW$T$36 .dwtag DW_TAG_array_type
.dwattr $C$DW$T$36, DW_AT_type(*$C$DW$T$20)
.dwattr $C$DW$T$36, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$36, DW_AT_byte_size(0x0e)
$C$DW$142 .dwtag DW_TAG_subrange_type
.dwattr $C$DW$142, DW_AT_upper_bound(0x0d)
.dwendtag $C$DW$T$36
$C$DW$T$37 .dwtag DW_TAG_array_type
.dwattr $C$DW$T$37, DW_AT_type(*$C$DW$T$20)
.dwattr $C$DW$T$37, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$37, DW_AT_byte_size(0x02)
$C$DW$143 .dwtag DW_TAG_subrange_type
.dwattr $C$DW$143, DW_AT_upper_bound(0x01)
.dwendtag $C$DW$T$37
$C$DW$T$38 .dwtag DW_TAG_array_type
.dwattr $C$DW$T$38, DW_AT_type(*$C$DW$T$20)
.dwattr $C$DW$T$38, DW_AT_language(DW_LANG_C)
.dwattr $C$DW$T$38, DW_AT_byte_size(0x05)
$C$DW$144 .dwtag DW_TAG_subrange_type
.dwattr $C$DW$144, DW_AT_upper_bound(0x04)
.dwendtag $C$DW$T$38
$C$DW$145 .dwtag DW_TAG_TI_far_type
.dwattr $C$DW$145, DW_AT_type(*$C$DW$T$19)
$C$DW$146 .dwtag DW_TAG_TI_ioport_type
.dwattr $C$DW$146, DW_AT_type(*$C$DW$145)
$C$DW$T$57 .dwtag DW_TAG_volatile_type
.dwattr $C$DW$T$57, DW_AT_type(*$C$DW$146)
$C$DW$T$58 .dwtag DW_TAG_pointer_type
.dwattr $C$DW$T$58, DW_AT_type(*$C$DW$T$57)
.dwattr $C$DW$T$58, DW_AT_address_class(0x10)
$C$DW$T$10 .dwtag DW_TAG_base_type
.dwattr $C$DW$T$10, DW_AT_encoding(DW_ATE_signed)
.dwattr $C$DW$T$10, DW_AT_name("int")
.dwattr $C$DW$T$10, DW_AT_byte_size(0x01)
$C$DW$T$11 .dwtag DW_TAG_base_type
.dwattr $C$DW$T$11, DW_AT_encoding(DW_ATE_unsigned)
.dwattr $C$DW$T$11, DW_AT_name("unsigned int")
.dwattr $C$DW$T$11, DW_AT_byte_size(0x01)
$C$DW$T$12 .dwtag DW_TAG_base_type
.dwattr $C$DW$T$12, DW_AT_encoding(DW_ATE_signed)
.dwattr $C$DW$T$12, DW_AT_name("long")
.dwattr $C$DW$T$12, DW_AT_byte_size(0x02)
$C$DW$T$13 .dwtag DW_TAG_base_type
.dwattr $C$DW$T$13, DW_AT_encoding(DW_ATE_unsigned)
.dwattr $C$DW$T$13, DW_AT_name("unsigned long")
.dwattr $C$DW$T$13, DW_AT_byte_size(0x02)
$C$DW$T$53 .dwtag DW_TAG_typedef, DW_AT_name("Uint32")
.dwattr $C$DW$T$53, DW_AT_type(*$C$DW$T$13)
.dwattr $C$DW$T$53, DW_AT_language(DW_LANG_C)
$C$DW$T$54 .dwtag DW_TAG_pointer_type
.dwattr $C$DW$T$54, DW_AT_type(*$C$DW$T$53)
.dwattr $C$DW$T$54, DW_AT_address_class(0x17)
$C$DW$T$14 .dwtag DW_TAG_base_type
.dwattr $C$DW$T$14, DW_AT_encoding(DW_ATE_signed)
.dwattr $C$DW$T$14, DW_AT_name("long long")
.dwattr $C$DW$T$14, DW_AT_byte_size(0x04)
.dwattr $C$DW$T$14, DW_AT_bit_size(0x28)
.dwattr $C$DW$T$14, DW_AT_bit_offset(0x18)
$C$DW$T$15 .dwtag DW_TAG_base_type
.dwattr $C$DW$T$15, DW_AT_encoding(DW_ATE_unsigned)
.dwattr $C$DW$T$15, DW_AT_name("unsigned long long")
.dwattr $C$DW$T$15, DW_AT_byte_size(0x04)
.dwattr $C$DW$T$15, DW_AT_bit_size(0x28)
.dwattr $C$DW$T$15, DW_AT_bit_offset(0x18)
$C$DW$T$16 .dwtag DW_TAG_base_type
.dwattr $C$DW$T$16, DW_AT_encoding(DW_ATE_float)
.dwattr $C$DW$T$16, DW_AT_name("float")
.dwattr $C$DW$T$16, DW_AT_byte_size(0x02)
$C$DW$T$17 .dwtag DW_TAG_base_type
.dwattr $C$DW$T$17, DW_AT_encoding(DW_ATE_float)
.dwattr $C$DW$T$17, DW_AT_name("double")
.dwattr $C$DW$T$17, DW_AT_byte_size(0x02)
$C$DW$T$18 .dwtag DW_TAG_base_type
.dwattr $C$DW$T$18, DW_AT_encoding(DW_ATE_float)
.dwattr $C$DW$T$18, DW_AT_name("long double")
.dwattr $C$DW$T$18, DW_AT_byte_size(0x02)
.dwattr $C$DW$CU, DW_AT_language(DW_LANG_C)
;***************************************************************
;* DWARF CIE ENTRIES *
;***************************************************************
$C$DW$CIE .dwcie 91
.dwcfi cfa_register, 36
.dwcfi cfa_offset, 0
.dwcfi undefined, 0
.dwcfi undefined, 1
.dwcfi undefined, 2
.dwcfi undefined, 3
.dwcfi undefined, 4
.dwcfi undefined, 5
.dwcfi undefined, 6
.dwcfi undefined, 7
.dwcfi undefined, 8
.dwcfi undefined, 9
.dwcfi undefined, 10
.dwcfi undefined, 11
.dwcfi undefined, 12
.dwcfi undefined, 13
.dwcfi same_value, 14
.dwcfi same_value, 15
.dwcfi undefined, 16
.dwcfi undefined, 17
.dwcfi undefined, 18
.dwcfi undefined, 19
.dwcfi undefined, 20
.dwcfi undefined, 21
.dwcfi undefined, 22
.dwcfi undefined, 23
.dwcfi undefined, 24
.dwcfi undefined, 25
.dwcfi same_value, 26
.dwcfi same_value, 27
.dwcfi same_value, 28
.dwcfi same_value, 29
.dwcfi same_value, 30
.dwcfi same_value, 31
.dwcfi undefined, 32
.dwcfi undefined, 33
.dwcfi undefined, 34
.dwcfi undefined, 35
.dwcfi undefined, 36
.dwcfi undefined, 37
.dwcfi undefined, 38
.dwcfi undefined, 39
.dwcfi undefined, 40
.dwcfi undefined, 41
.dwcfi undefined, 42
.dwcfi undefined, 43
.dwcfi undefined, 44
.dwcfi undefined, 45
.dwcfi undefined, 46
.dwcfi undefined, 47
.dwcfi undefined, 48
.dwcfi undefined, 49
.dwcfi undefined, 50
.dwcfi undefined, 51
.dwcfi undefined, 52
.dwcfi undefined, 53
.dwcfi undefined, 54
.dwcfi undefined, 55
.dwcfi undefined, 56
.dwcfi undefined, 57
.dwcfi undefined, 58
.dwcfi undefined, 59
.dwcfi undefined, 60
.dwcfi undefined, 61
.dwcfi undefined, 62
.dwcfi undefined, 63
.dwcfi undefined, 64
.dwcfi undefined, 65
.dwcfi undefined, 66
.dwcfi undefined, 67
.dwcfi undefined, 68
.dwcfi undefined, 69
.dwcfi undefined, 70
.dwcfi undefined, 71
.dwcfi undefined, 72
.dwcfi undefined, 73
.dwcfi undefined, 74
.dwcfi undefined, 75
.dwcfi undefined, 76
.dwcfi undefined, 77
.dwcfi undefined, 78
.dwcfi undefined, 79
.dwcfi undefined, 80
.dwcfi undefined, 81
.dwcfi undefined, 82
.dwcfi undefined, 83
.dwcfi undefined, 84
.dwcfi undefined, 85
.dwcfi undefined, 86
.dwcfi undefined, 87
.dwcfi undefined, 88
.dwcfi undefined, 89
.dwcfi undefined, 90
.dwcfi undefined, 91
.dwendentry
;***************************************************************
;* DWARF REGISTER MAP *
;***************************************************************
$C$DW$147 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AC0")
.dwattr $C$DW$147, DW_AT_location[DW_OP_reg0]
$C$DW$148 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AC0")
.dwattr $C$DW$148, DW_AT_location[DW_OP_reg1]
$C$DW$149 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AC0_G")
.dwattr $C$DW$149, DW_AT_location[DW_OP_reg2]
$C$DW$150 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AC1")
.dwattr $C$DW$150, DW_AT_location[DW_OP_reg3]
$C$DW$151 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AC1")
.dwattr $C$DW$151, DW_AT_location[DW_OP_reg4]
$C$DW$152 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AC1_G")
.dwattr $C$DW$152, DW_AT_location[DW_OP_reg5]
$C$DW$153 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AC2")
.dwattr $C$DW$153, DW_AT_location[DW_OP_reg6]
$C$DW$154 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AC2")
.dwattr $C$DW$154, DW_AT_location[DW_OP_reg7]
$C$DW$155 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AC2_G")
.dwattr $C$DW$155, DW_AT_location[DW_OP_reg8]
$C$DW$156 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AC3")
.dwattr $C$DW$156, DW_AT_location[DW_OP_reg9]
$C$DW$157 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AC3")
.dwattr $C$DW$157, DW_AT_location[DW_OP_reg10]
$C$DW$158 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AC3_G")
.dwattr $C$DW$158, DW_AT_location[DW_OP_reg11]
$C$DW$159 .dwtag DW_TAG_TI_assign_register, DW_AT_name("T0")
.dwattr $C$DW$159, DW_AT_location[DW_OP_reg12]
$C$DW$160 .dwtag DW_TAG_TI_assign_register, DW_AT_name("T1")
.dwattr $C$DW$160, DW_AT_location[DW_OP_reg13]
$C$DW$161 .dwtag DW_TAG_TI_assign_register, DW_AT_name("T2")
.dwattr $C$DW$161, DW_AT_location[DW_OP_reg14]
$C$DW$162 .dwtag DW_TAG_TI_assign_register, DW_AT_name("T3")
.dwattr $C$DW$162, DW_AT_location[DW_OP_reg15]
$C$DW$163 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR0")
.dwattr $C$DW$163, DW_AT_location[DW_OP_reg16]
$C$DW$164 .dwtag DW_TAG_TI_assign_register, DW_AT_name("XAR0")
.dwattr $C$DW$164, DW_AT_location[DW_OP_reg17]
$C$DW$165 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR1")
.dwattr $C$DW$165, DW_AT_location[DW_OP_reg18]
$C$DW$166 .dwtag DW_TAG_TI_assign_register, DW_AT_name("XAR1")
.dwattr $C$DW$166, DW_AT_location[DW_OP_reg19]
$C$DW$167 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR2")
.dwattr $C$DW$167, DW_AT_location[DW_OP_reg20]
$C$DW$168 .dwtag DW_TAG_TI_assign_register, DW_AT_name("XAR2")
.dwattr $C$DW$168, DW_AT_location[DW_OP_reg21]
$C$DW$169 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR3")
.dwattr $C$DW$169, DW_AT_location[DW_OP_reg22]
$C$DW$170 .dwtag DW_TAG_TI_assign_register, DW_AT_name("XAR3")
.dwattr $C$DW$170, DW_AT_location[DW_OP_reg23]
$C$DW$171 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR4")
.dwattr $C$DW$171, DW_AT_location[DW_OP_reg24]
$C$DW$172 .dwtag DW_TAG_TI_assign_register, DW_AT_name("XAR4")
.dwattr $C$DW$172, DW_AT_location[DW_OP_reg25]
$C$DW$173 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR5")
.dwattr $C$DW$173, DW_AT_location[DW_OP_reg26]
$C$DW$174 .dwtag DW_TAG_TI_assign_register, DW_AT_name("XAR5")
.dwattr $C$DW$174, DW_AT_location[DW_OP_reg27]
$C$DW$175 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR6")
.dwattr $C$DW$175, DW_AT_location[DW_OP_reg28]
$C$DW$176 .dwtag DW_TAG_TI_assign_register, DW_AT_name("XAR6")
.dwattr $C$DW$176, DW_AT_location[DW_OP_reg29]
$C$DW$177 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR7")
.dwattr $C$DW$177, DW_AT_location[DW_OP_reg30]
$C$DW$178 .dwtag DW_TAG_TI_assign_register, DW_AT_name("XAR7")
.dwattr $C$DW$178, DW_AT_location[DW_OP_reg31]
$C$DW$179 .dwtag DW_TAG_TI_assign_register, DW_AT_name("FP")
.dwattr $C$DW$179, DW_AT_location[DW_OP_regx 0x20]
$C$DW$180 .dwtag DW_TAG_TI_assign_register, DW_AT_name("XFP")
.dwattr $C$DW$180, DW_AT_location[DW_OP_regx 0x21]
$C$DW$181 .dwtag DW_TAG_TI_assign_register, DW_AT_name("PC")
.dwattr $C$DW$181, DW_AT_location[DW_OP_regx 0x22]
$C$DW$182 .dwtag DW_TAG_TI_assign_register, DW_AT_name("SP")
.dwattr $C$DW$182, DW_AT_location[DW_OP_regx 0x23]
$C$DW$183 .dwtag DW_TAG_TI_assign_register, DW_AT_name("XSP")
.dwattr $C$DW$183, DW_AT_location[DW_OP_regx 0x24]
$C$DW$184 .dwtag DW_TAG_TI_assign_register, DW_AT_name("BKC")
.dwattr $C$DW$184, DW_AT_location[DW_OP_regx 0x25]
$C$DW$185 .dwtag DW_TAG_TI_assign_register, DW_AT_name("BK03")
.dwattr $C$DW$185, DW_AT_location[DW_OP_regx 0x26]
$C$DW$186 .dwtag DW_TAG_TI_assign_register, DW_AT_name("BK47")
.dwattr $C$DW$186, DW_AT_location[DW_OP_regx 0x27]
$C$DW$187 .dwtag DW_TAG_TI_assign_register, DW_AT_name("ST0")
.dwattr $C$DW$187, DW_AT_location[DW_OP_regx 0x28]
$C$DW$188 .dwtag DW_TAG_TI_assign_register, DW_AT_name("ST1")
.dwattr $C$DW$188, DW_AT_location[DW_OP_regx 0x29]
$C$DW$189 .dwtag DW_TAG_TI_assign_register, DW_AT_name("ST2")
.dwattr $C$DW$189, DW_AT_location[DW_OP_regx 0x2a]
$C$DW$190 .dwtag DW_TAG_TI_assign_register, DW_AT_name("ST3")
.dwattr $C$DW$190, DW_AT_location[DW_OP_regx 0x2b]
$C$DW$191 .dwtag DW_TAG_TI_assign_register, DW_AT_name("MDP")
.dwattr $C$DW$191, DW_AT_location[DW_OP_regx 0x2c]
$C$DW$192 .dwtag DW_TAG_TI_assign_register, DW_AT_name("MDP05")
.dwattr $C$DW$192, DW_AT_location[DW_OP_regx 0x2d]
$C$DW$193 .dwtag DW_TAG_TI_assign_register, DW_AT_name("MDP67")
.dwattr $C$DW$193, DW_AT_location[DW_OP_regx 0x2e]
$C$DW$194 .dwtag DW_TAG_TI_assign_register, DW_AT_name("BRC0")
.dwattr $C$DW$194, DW_AT_location[DW_OP_regx 0x2f]
$C$DW$195 .dwtag DW_TAG_TI_assign_register, DW_AT_name("RSA0")
.dwattr $C$DW$195, DW_AT_location[DW_OP_regx 0x30]
$C$DW$196 .dwtag DW_TAG_TI_assign_register, DW_AT_name("RSA0_H")
.dwattr $C$DW$196, DW_AT_location[DW_OP_regx 0x31]
$C$DW$197 .dwtag DW_TAG_TI_assign_register, DW_AT_name("REA0")
.dwattr $C$DW$197, DW_AT_location[DW_OP_regx 0x32]
$C$DW$198 .dwtag DW_TAG_TI_assign_register, DW_AT_name("REA0_H")
.dwattr $C$DW$198, DW_AT_location[DW_OP_regx 0x33]
$C$DW$199 .dwtag DW_TAG_TI_assign_register, DW_AT_name("BRS1")
.dwattr $C$DW$199, DW_AT_location[DW_OP_regx 0x34]
$C$DW$200 .dwtag DW_TAG_TI_assign_register, DW_AT_name("BRC1")
.dwattr $C$DW$200, DW_AT_location[DW_OP_regx 0x35]
$C$DW$201 .dwtag DW_TAG_TI_assign_register, DW_AT_name("RSA1")
.dwattr $C$DW$201, DW_AT_location[DW_OP_regx 0x36]
$C$DW$202 .dwtag DW_TAG_TI_assign_register, DW_AT_name("RSA1_H")
.dwattr $C$DW$202, DW_AT_location[DW_OP_regx 0x37]
$C$DW$203 .dwtag DW_TAG_TI_assign_register, DW_AT_name("REA1")
.dwattr $C$DW$203, DW_AT_location[DW_OP_regx 0x38]
$C$DW$204 .dwtag DW_TAG_TI_assign_register, DW_AT_name("REA1_H")
.dwattr $C$DW$204, DW_AT_location[DW_OP_regx 0x39]
$C$DW$205 .dwtag DW_TAG_TI_assign_register, DW_AT_name("CSR")
.dwattr $C$DW$205, DW_AT_location[DW_OP_regx 0x3a]
$C$DW$206 .dwtag DW_TAG_TI_assign_register, DW_AT_name("RPTC")
.dwattr $C$DW$206, DW_AT_location[DW_OP_regx 0x3b]
$C$DW$207 .dwtag DW_TAG_TI_assign_register, DW_AT_name("CDP")
.dwattr $C$DW$207, DW_AT_location[DW_OP_regx 0x3c]
$C$DW$208 .dwtag DW_TAG_TI_assign_register, DW_AT_name("XCDP")
.dwattr $C$DW$208, DW_AT_location[DW_OP_regx 0x3d]
$C$DW$209 .dwtag DW_TAG_TI_assign_register, DW_AT_name("TRN0")
.dwattr $C$DW$209, DW_AT_location[DW_OP_regx 0x3e]
$C$DW$210 .dwtag DW_TAG_TI_assign_register, DW_AT_name("TRN1")
.dwattr $C$DW$210, DW_AT_location[DW_OP_regx 0x3f]
$C$DW$211 .dwtag DW_TAG_TI_assign_register, DW_AT_name("BSA01")
.dwattr $C$DW$211, DW_AT_location[DW_OP_regx 0x40]
$C$DW$212 .dwtag DW_TAG_TI_assign_register, DW_AT_name("BSA23")
.dwattr $C$DW$212, DW_AT_location[DW_OP_regx 0x41]
$C$DW$213 .dwtag DW_TAG_TI_assign_register, DW_AT_name("BSA45")
.dwattr $C$DW$213, DW_AT_location[DW_OP_regx 0x42]
$C$DW$214 .dwtag DW_TAG_TI_assign_register, DW_AT_name("BSA67")
.dwattr $C$DW$214, DW_AT_location[DW_OP_regx 0x43]
$C$DW$215 .dwtag DW_TAG_TI_assign_register, DW_AT_name("BSAC")
.dwattr $C$DW$215, DW_AT_location[DW_OP_regx 0x44]
$C$DW$216 .dwtag DW_TAG_TI_assign_register, DW_AT_name("CARRY")
.dwattr $C$DW$216, DW_AT_location[DW_OP_regx 0x45]
$C$DW$217 .dwtag DW_TAG_TI_assign_register, DW_AT_name("TC1")
.dwattr $C$DW$217, DW_AT_location[DW_OP_regx 0x46]
$C$DW$218 .dwtag DW_TAG_TI_assign_register, DW_AT_name("TC2")
.dwattr $C$DW$218, DW_AT_location[DW_OP_regx 0x47]
$C$DW$219 .dwtag DW_TAG_TI_assign_register, DW_AT_name("M40")
.dwattr $C$DW$219, DW_AT_location[DW_OP_regx 0x48]
$C$DW$220 .dwtag DW_TAG_TI_assign_register, DW_AT_name("SXMD")
.dwattr $C$DW$220, DW_AT_location[DW_OP_regx 0x49]
$C$DW$221 .dwtag DW_TAG_TI_assign_register, DW_AT_name("ARMS")
.dwattr $C$DW$221, DW_AT_location[DW_OP_regx 0x4a]
$C$DW$222 .dwtag DW_TAG_TI_assign_register, DW_AT_name("C54CM")
.dwattr $C$DW$222, DW_AT_location[DW_OP_regx 0x4b]
$C$DW$223 .dwtag DW_TAG_TI_assign_register, DW_AT_name("SATA")
.dwattr $C$DW$223, DW_AT_location[DW_OP_regx 0x4c]
$C$DW$224 .dwtag DW_TAG_TI_assign_register, DW_AT_name("SATD")
.dwattr $C$DW$224, DW_AT_location[DW_OP_regx 0x4d]
$C$DW$225 .dwtag DW_TAG_TI_assign_register, DW_AT_name("RDM")
.dwattr $C$DW$225, DW_AT_location[DW_OP_regx 0x4e]
$C$DW$226 .dwtag DW_TAG_TI_assign_register, DW_AT_name("FRCT")
.dwattr $C$DW$226, DW_AT_location[DW_OP_regx 0x4f]
$C$DW$227 .dwtag DW_TAG_TI_assign_register, DW_AT_name("SMUL")
.dwattr $C$DW$227, DW_AT_location[DW_OP_regx 0x50]
$C$DW$228 .dwtag DW_TAG_TI_assign_register, DW_AT_name("INTM")
.dwattr $C$DW$228, DW_AT_location[DW_OP_regx 0x51]
$C$DW$229 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR0LC")
.dwattr $C$DW$229, DW_AT_location[DW_OP_regx 0x52]
$C$DW$230 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR1LC")
.dwattr $C$DW$230, DW_AT_location[DW_OP_regx 0x53]
$C$DW$231 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR2LC")
.dwattr $C$DW$231, DW_AT_location[DW_OP_regx 0x54]
$C$DW$232 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR3LC")
.dwattr $C$DW$232, DW_AT_location[DW_OP_regx 0x55]
$C$DW$233 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR4LC")
.dwattr $C$DW$233, DW_AT_location[DW_OP_regx 0x56]
$C$DW$234 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR5LC")
.dwattr $C$DW$234, DW_AT_location[DW_OP_regx 0x57]
$C$DW$235 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR6LC")
.dwattr $C$DW$235, DW_AT_location[DW_OP_regx 0x58]
$C$DW$236 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR7LC")
.dwattr $C$DW$236, DW_AT_location[DW_OP_regx 0x59]
$C$DW$237 .dwtag DW_TAG_TI_assign_register, DW_AT_name("CDPLC")
.dwattr $C$DW$237, DW_AT_location[DW_OP_regx 0x5a]
$C$DW$238 .dwtag DW_TAG_TI_assign_register, DW_AT_name("CIE_RETA")
.dwattr $C$DW$238, DW_AT_location[DW_OP_regx 0x5b]
.dwendtag $C$DW$CU
|
; A201236: Number of ways to place 2 non-attacking wazirs on an n X n toroidal board.
; 0,2,18,88,250,558,1078,1888,3078,4750,7018,10008,13858,18718,24750,32128,41038,51678,64258,79000,96138,115918,138598,164448,193750,226798,263898,305368,351538,402750,459358,521728,590238,665278,747250,836568,933658,1038958
mov $4,$0
add $0,2
mul $0,$4
sub $0,1
mov $1,$0
add $0,88
sub $1,2
mov $2,1
mov $5,3
lpb $1
mov $3,$1
sub $1,1
mov $2,$0
add $0,$3
lpe
trn $5,$2
add $0,$5
add $0,$5
sub $0,92
div $0,2
mul $0,2
|
; 程序源代码(stone.asm)
; 本程序在文本方式显示器上从左边射出一个*号,以45度向右下运动,撞到边框后反射,如此类推.
; 凌应标 2014/3
; MASM汇编格式
Dn_Rt equ 1 ;D-Down,U-Up,R-right,L-Left
Up_Rt equ 2 ;
Up_Lt equ 3 ;
Dn_Lt equ 4 ;
delay equ 50000 ; 计时器延迟计数,用于控制画框的速度
ddelay equ 580 ; 计时器延迟计数,用于控制画框的速度
org 7c00h ; 程序加载到100h,可用于生成COM/7c00H引导扇区程序
; ASSUME cs:code,ds:code
; code SEGMENT
start:
xor ax,ax ; AX = 0 程序加载到0000:100h才能正确执行
mov ax,cs
mov es,ax ; ES = 0
mov ds,ax ; DS = CS
mov es,ax ; ES = CS
mov ax,0B800h ; 文本窗口显存起始地址
mov gs,ax ; GS = B800h
mov byte[char],'A'
jmp showName
loop1:
dec word[count] ; 递减计数变量
jnz loop1 ; >0:跳转;
mov word[count],delay
dec word[dcount] ; 递减计数变量
jnz loop1
mov word[count],delay
mov word[dcount],ddelay
mov al,1
cmp al,byte[rdul]
jz DnRt
mov al,2
cmp al,byte[rdul]
jz UpRt
mov al,3
cmp al,byte[rdul]
jz UpLt
mov al,4
cmp al,byte[rdul]
jz DnLt
jmp $
DnRt:
inc word[x]
inc word[y]
mov bx,word[x]
mov ax,25
sub ax,bx
jz dr2ur
mov bx,word[y]
mov ax,80
sub ax,bx
jz dr2dl
jmp show
dr2ur:
mov word[x],23
mov byte[rdul],Up_Rt
jmp show
dr2dl:
mov word[y],78
mov byte[rdul],Dn_Lt
jmp show
UpRt:
dec word[x]
inc word[y]
mov bx,word[y]
mov ax,80
sub ax,bx
jz ur2ul
mov bx,word[x]
mov ax,-1
sub ax,bx
jz ur2dr
jmp show
ur2ul:
mov word[y],78
mov byte[rdul],Up_Lt
jmp show
ur2dr:
mov word[x],1
mov byte[rdul],Dn_Rt
jmp show
UpLt:
dec word[x]
dec word[y]
mov bx,word[x]
mov ax,-1
sub ax,bx
jz ul2dl
mov bx,word[y]
mov ax,-1
sub ax,bx
jz ul2ur
jmp show
ul2dl:
mov word[x],1
mov byte[rdul],Dn_Lt
jmp show
ul2ur:
mov word[y],1
mov byte[rdul],Up_Rt
jmp show
DnLt:
inc word[x]
dec word[y]
mov bx,word[y]
mov ax,-1
sub ax,bx
jz dl2dr
mov bx,word[x]
mov ax,25
sub ax,bx
jz dl2ul
jmp show
dl2dr:
mov word[y],1
mov byte[rdul],Dn_Rt
jmp show
dl2ul:
mov word[x],23
mov byte[rdul],Up_Lt
jmp show
showName:
xor di, di
printName:
mov ax, di
mov bx, 2
mul bx
mov bx, ax
mov al, [AuthorInfo + di]
mov ah, 0x0f
mov [gs:bx], ax
inc di
cmp [InfoLen], di
jnz printName
jmp loop1
show:
xor ax,ax ; 计算显存地址
mov ax,word[x]
mov bx,80
mul bx
add ax,word[y]
mov bx,2
mul bx
mov bx,ax
mov ah,0Fh ; 0000:黑底、1111:亮白字(默认值为07h)
mov al,byte[char] ; AL = 显示字符值(默认值为20h=空格符)
mov word[gs:bx],ax ; 显示字符的ASCII码值
jmp loop1
end:
jmp $ ; 停止画框,无限循环
datadef:
count dw delay
dcount dw ddelay
rdul db Dn_Rt ; 向右下运动
x dw 20
y dw 0
char db 'A'
AuthorInfo db "Jing Lan, 18340085"
InfoLen db $-AuthorInfo
;code ENDS
; END start |
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/profiles/profile_metrics.h"
#include "base/files/file_path.h"
#include "base/logging.h"
#include "base/metrics/histogram.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/profiles/profile_info_cache.h"
#include "chrome/browser/profiles/profile_manager.h"
#include "chrome/browser/signin/signin_header_helper.h"
#include "chrome/common/chrome_constants.h"
#include "chrome/installer/util/google_update_settings.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/user_metrics.h"
namespace {
const int kMaximumReportedProfileCount = 5;
const int kMaximumDaysOfDisuse = 4 * 7; // Should be integral number of weeks.
ProfileMetrics::ProfileType GetProfileType(
const base::FilePath& profile_path) {
DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI));
ProfileMetrics::ProfileType metric = ProfileMetrics::SECONDARY;
ProfileManager* manager = g_browser_process->profile_manager();
base::FilePath user_data_dir;
// In unittests, we do not always have a profile_manager so check.
if (manager) {
user_data_dir = manager->user_data_dir();
}
if (profile_path == user_data_dir.AppendASCII(chrome::kInitialProfile)) {
metric = ProfileMetrics::ORIGINAL;
}
return metric;
}
void UpdateReportedOSProfileStatistics(int active, int signedin) {
#if defined(OS_WIN)
GoogleUpdateSettings::UpdateProfileCounts(active, signedin);
#endif
}
void LogLockedProfileInformation(ProfileManager* manager) {
const ProfileInfoCache& info_cache = manager->GetProfileInfoCache();
size_t number_of_profiles = info_cache.GetNumberOfProfiles();
base::Time now = base::Time::Now();
const int kMinutesInProfileValidDuration =
base::TimeDelta::FromDays(28).InMinutes();
for (size_t i = 0; i < number_of_profiles; ++i) {
// Find when locked profiles were locked
if (info_cache.ProfileIsSigninRequiredAtIndex(i)) {
base::TimeDelta time_since_lock = now -
info_cache.GetProfileActiveTimeAtIndex(i);
// Specifying 100 buckets for the histogram to get a higher level of
// granularity in the reported data, given the large number of possible
// values (kMinutesInProfileValidDuration > 40,000).
UMA_HISTOGRAM_CUSTOM_COUNTS("Profile.LockedProfilesDuration",
time_since_lock.InMinutes(),
1,
kMinutesInProfileValidDuration,
100);
}
}
}
bool HasProfileAtIndexBeenActiveSince(const ProfileInfoCache& info_cache,
int index,
const base::Time& active_limit) {
#if !defined(OS_ANDROID) && !defined(OS_IOS)
// TODO(mlerman): iOS and Android should set an ActiveTime in the
// ProfileInfoCache. (see ProfileManager::OnBrowserSetLastActive)
if (info_cache.GetProfileActiveTimeAtIndex(index) < active_limit)
return false;
#endif
return true;
}
} // namespace
enum ProfileAvatar {
AVATAR_GENERIC = 0, // The names for avatar icons
AVATAR_GENERIC_AQUA,
AVATAR_GENERIC_BLUE,
AVATAR_GENERIC_GREEN,
AVATAR_GENERIC_ORANGE,
AVATAR_GENERIC_PURPLE,
AVATAR_GENERIC_RED,
AVATAR_GENERIC_YELLOW,
AVATAR_SECRET_AGENT,
AVATAR_SUPERHERO,
AVATAR_VOLLEYBALL, // 10
AVATAR_BUSINESSMAN,
AVATAR_NINJA,
AVATAR_ALIEN,
AVATAR_AWESOME,
AVATAR_FLOWER,
AVATAR_PIZZA,
AVATAR_SOCCER,
AVATAR_BURGER,
AVATAR_CAT,
AVATAR_CUPCAKE, // 20
AVATAR_DOG,
AVATAR_HORSE,
AVATAR_MARGARITA,
AVATAR_NOTE,
AVATAR_SUN_CLOUD,
AVATAR_PLACEHOLDER,
AVATAR_UNKNOWN, // 27
AVATAR_GAIA, // 28
NUM_PROFILE_AVATAR_METRICS
};
bool ProfileMetrics::CountProfileInformation(ProfileManager* manager,
ProfileCounts* counts) {
const ProfileInfoCache& info_cache = manager->GetProfileInfoCache();
size_t number_of_profiles = info_cache.GetNumberOfProfiles();
counts->total = number_of_profiles;
// Ignore other metrics if we have no profiles, e.g. in Chrome Frame tests.
if (!number_of_profiles)
return false;
// Maximum age for "active" profile is 4 weeks.
base::Time oldest = base::Time::Now() -
base::TimeDelta::FromDays(kMaximumDaysOfDisuse);
for (size_t i = 0; i < number_of_profiles; ++i) {
if (!HasProfileAtIndexBeenActiveSince(info_cache, i, oldest)) {
counts->unused++;
} else {
if (info_cache.ProfileIsSupervisedAtIndex(i))
counts->supervised++;
if (!info_cache.GetUserNameOfProfileAtIndex(i).empty()) {
counts->signedin++;
if (info_cache.IsUsingGAIAPictureOfProfileAtIndex(i))
counts->gaia_icon++;
}
}
}
return true;
}
void ProfileMetrics::UpdateReportedProfilesStatistics(ProfileManager* manager) {
ProfileCounts counts;
if (CountProfileInformation(manager, &counts)) {
int limited_total = counts.total;
int limited_signedin = counts.signedin;
if (limited_total > kMaximumReportedProfileCount) {
limited_total = kMaximumReportedProfileCount + 1;
limited_signedin =
(int)((float)(counts.signedin * limited_total)
/ counts.total + 0.5);
}
UpdateReportedOSProfileStatistics(limited_total, limited_signedin);
}
}
void ProfileMetrics::LogNumberOfProfiles(ProfileManager* manager) {
ProfileCounts counts;
bool success = CountProfileInformation(manager, &counts);
UMA_HISTOGRAM_COUNTS_100("Profile.NumberOfProfiles", counts.total);
// Ignore other metrics if we have no profiles, e.g. in Chrome Frame tests.
if (success) {
UMA_HISTOGRAM_COUNTS_100("Profile.NumberOfManagedProfiles",
counts.supervised);
UMA_HISTOGRAM_COUNTS_100("Profile.PercentageOfManagedProfiles",
100 * counts.supervised / counts.total);
UMA_HISTOGRAM_COUNTS_100("Profile.NumberOfSignedInProfiles",
counts.signedin);
UMA_HISTOGRAM_COUNTS_100("Profile.NumberOfUnusedProfiles",
counts.unused);
UMA_HISTOGRAM_COUNTS_100("Profile.NumberOfSignedInProfilesWithGAIAIcons",
counts.gaia_icon);
LogLockedProfileInformation(manager);
UpdateReportedOSProfileStatistics(counts.total, counts.signedin);
}
}
void ProfileMetrics::LogProfileAddNewUser(ProfileAdd metric) {
DCHECK(metric < NUM_PROFILE_ADD_METRICS);
UMA_HISTOGRAM_ENUMERATION("Profile.AddNewUser", metric,
NUM_PROFILE_ADD_METRICS);
UMA_HISTOGRAM_ENUMERATION("Profile.NetUserCount", ADD_NEW_USER,
NUM_PROFILE_NET_METRICS);
}
void ProfileMetrics::LogProfileAvatarSelection(size_t icon_index) {
DCHECK(icon_index < NUM_PROFILE_AVATAR_METRICS);
ProfileAvatar icon_name = AVATAR_UNKNOWN;
switch (icon_index) {
case 0:
icon_name = AVATAR_GENERIC;
break;
case 1:
icon_name = AVATAR_GENERIC_AQUA;
break;
case 2:
icon_name = AVATAR_GENERIC_BLUE;
break;
case 3:
icon_name = AVATAR_GENERIC_GREEN;
break;
case 4:
icon_name = AVATAR_GENERIC_ORANGE;
break;
case 5:
icon_name = AVATAR_GENERIC_PURPLE;
break;
case 6:
icon_name = AVATAR_GENERIC_RED;
break;
case 7:
icon_name = AVATAR_GENERIC_YELLOW;
break;
case 8:
icon_name = AVATAR_SECRET_AGENT;
break;
case 9:
icon_name = AVATAR_SUPERHERO;
break;
case 10:
icon_name = AVATAR_VOLLEYBALL;
break;
case 11:
icon_name = AVATAR_BUSINESSMAN;
break;
case 12:
icon_name = AVATAR_NINJA;
break;
case 13:
icon_name = AVATAR_ALIEN;
break;
case 14:
icon_name = AVATAR_AWESOME;
break;
case 15:
icon_name = AVATAR_FLOWER;
break;
case 16:
icon_name = AVATAR_PIZZA;
break;
case 17:
icon_name = AVATAR_SOCCER;
break;
case 18:
icon_name = AVATAR_BURGER;
break;
case 19:
icon_name = AVATAR_CAT;
break;
case 20:
icon_name = AVATAR_CUPCAKE;
break;
case 21:
icon_name = AVATAR_DOG;
break;
case 22:
icon_name = AVATAR_HORSE;
break;
case 23:
icon_name = AVATAR_MARGARITA;
break;
case 24:
icon_name = AVATAR_NOTE;
break;
case 25:
icon_name = AVATAR_SUN_CLOUD;
break;
case 26:
icon_name = AVATAR_PLACEHOLDER;
break;
case 28:
icon_name = AVATAR_GAIA;
break;
default: // We should never actually get here.
NOTREACHED();
break;
}
UMA_HISTOGRAM_ENUMERATION("Profile.Avatar", icon_name,
NUM_PROFILE_AVATAR_METRICS);
}
void ProfileMetrics::LogProfileDeleteUser(ProfileDelete metric) {
DCHECK(metric < NUM_DELETE_PROFILE_METRICS);
UMA_HISTOGRAM_ENUMERATION("Profile.DeleteProfileAction", metric,
NUM_DELETE_PROFILE_METRICS);
UMA_HISTOGRAM_ENUMERATION("Profile.NetUserCount", PROFILE_DELETED,
NUM_PROFILE_NET_METRICS);
}
void ProfileMetrics::LogProfileOpenMethod(ProfileOpen metric) {
DCHECK(metric < NUM_PROFILE_OPEN_METRICS);
UMA_HISTOGRAM_ENUMERATION("Profile.OpenMethod", metric,
NUM_PROFILE_OPEN_METRICS);
}
void ProfileMetrics::LogProfileSwitchGaia(ProfileGaia metric) {
if (metric == GAIA_OPT_IN)
LogProfileAvatarSelection(AVATAR_GAIA);
UMA_HISTOGRAM_ENUMERATION("Profile.SwitchGaiaPhotoSettings",
metric,
NUM_PROFILE_GAIA_METRICS);
}
void ProfileMetrics::LogProfileSwitchUser(ProfileOpen metric) {
DCHECK(metric < NUM_PROFILE_OPEN_METRICS);
UMA_HISTOGRAM_ENUMERATION("Profile.OpenMethod", metric,
NUM_PROFILE_OPEN_METRICS);
}
void ProfileMetrics::LogProfileSyncInfo(ProfileSync metric) {
DCHECK(metric < NUM_PROFILE_SYNC_METRICS);
UMA_HISTOGRAM_ENUMERATION("Profile.SyncCustomize", metric,
NUM_PROFILE_SYNC_METRICS);
}
void ProfileMetrics::LogProfileAuthResult(ProfileAuth metric) {
UMA_HISTOGRAM_ENUMERATION("Profile.AuthResult", metric,
NUM_PROFILE_AUTH_METRICS);
}
void ProfileMetrics::LogProfileDesktopMenu(
ProfileDesktopMenu metric,
signin::GAIAServiceType gaia_service) {
// The first parameter to the histogram needs to be literal, because of the
// optimized implementation of |UMA_HISTOGRAM_ENUMERATION|. Do not attempt
// to refactor.
switch (gaia_service) {
case signin::GAIA_SERVICE_TYPE_NONE:
UMA_HISTOGRAM_ENUMERATION("Profile.DesktopMenu.NonGAIA", metric,
NUM_PROFILE_DESKTOP_MENU_METRICS);
break;
case signin::GAIA_SERVICE_TYPE_SIGNOUT:
UMA_HISTOGRAM_ENUMERATION("Profile.DesktopMenu.GAIASignout", metric,
NUM_PROFILE_DESKTOP_MENU_METRICS);
break;
case signin::GAIA_SERVICE_TYPE_INCOGNITO:
UMA_HISTOGRAM_ENUMERATION("Profile.DesktopMenu.GAIAIncognito",
metric, NUM_PROFILE_DESKTOP_MENU_METRICS);
break;
case signin::GAIA_SERVICE_TYPE_ADDSESSION:
UMA_HISTOGRAM_ENUMERATION("Profile.DesktopMenu.GAIAAddSession", metric,
NUM_PROFILE_DESKTOP_MENU_METRICS);
break;
case signin::GAIA_SERVICE_TYPE_REAUTH:
UMA_HISTOGRAM_ENUMERATION("Profile.DesktopMenu.GAIAReAuth", metric,
NUM_PROFILE_DESKTOP_MENU_METRICS);
break;
case signin::GAIA_SERVICE_TYPE_SIGNUP:
UMA_HISTOGRAM_ENUMERATION("Profile.DesktopMenu.GAIASignup", metric,
NUM_PROFILE_DESKTOP_MENU_METRICS);
break;
case signin::GAIA_SERVICE_TYPE_DEFAULT:
UMA_HISTOGRAM_ENUMERATION("Profile.DesktopMenu.GAIADefault", metric,
NUM_PROFILE_DESKTOP_MENU_METRICS);
break;
}
}
void ProfileMetrics::LogProfileDelete(bool profile_was_signed_in) {
UMA_HISTOGRAM_BOOLEAN("Profile.Delete", profile_was_signed_in);
}
void ProfileMetrics::LogProfileNewAvatarMenuNotYou(
ProfileNewAvatarMenuNotYou metric) {
DCHECK_LT(metric, NUM_PROFILE_AVATAR_MENU_NOT_YOU_METRICS);
UMA_HISTOGRAM_ENUMERATION("Profile.NewAvatarMenu.NotYou", metric,
NUM_PROFILE_AVATAR_MENU_NOT_YOU_METRICS);
}
void ProfileMetrics::LogProfileNewAvatarMenuSignin(
ProfileNewAvatarMenuSignin metric) {
DCHECK_LT(metric, NUM_PROFILE_AVATAR_MENU_SIGNIN_METRICS);
UMA_HISTOGRAM_ENUMERATION("Profile.NewAvatarMenu.Signin", metric,
NUM_PROFILE_AVATAR_MENU_SIGNIN_METRICS);
}
void ProfileMetrics::LogProfileNewAvatarMenuUpgrade(
ProfileNewAvatarMenuUpgrade metric) {
DCHECK_LT(metric, NUM_PROFILE_AVATAR_MENU_UPGRADE_METRICS);
UMA_HISTOGRAM_ENUMERATION("Profile.NewAvatarMenu.Upgrade", metric,
NUM_PROFILE_AVATAR_MENU_UPGRADE_METRICS);
}
#if defined(OS_ANDROID)
void ProfileMetrics::LogProfileAndroidAccountManagementMenu(
ProfileAndroidAccountManagementMenu metric,
signin::GAIAServiceType gaia_service) {
// The first parameter to the histogram needs to be literal, because of the
// optimized implementation of |UMA_HISTOGRAM_ENUMERATION|. Do not attempt
// to refactor.
switch (gaia_service) {
case signin::GAIA_SERVICE_TYPE_NONE:
UMA_HISTOGRAM_ENUMERATION(
"Profile.AndroidAccountManagementMenu.NonGAIA",
metric,
NUM_PROFILE_ANDROID_ACCOUNT_MANAGEMENT_MENU_METRICS);
break;
case signin::GAIA_SERVICE_TYPE_SIGNOUT:
UMA_HISTOGRAM_ENUMERATION(
"Profile.AndroidAccountManagementMenu.GAIASignout",
metric,
NUM_PROFILE_ANDROID_ACCOUNT_MANAGEMENT_MENU_METRICS);
break;
case signin::GAIA_SERVICE_TYPE_INCOGNITO:
UMA_HISTOGRAM_ENUMERATION(
"Profile.AndroidAccountManagementMenu.GAIASignoutIncognito",
metric,
NUM_PROFILE_ANDROID_ACCOUNT_MANAGEMENT_MENU_METRICS);
break;
case signin::GAIA_SERVICE_TYPE_ADDSESSION:
UMA_HISTOGRAM_ENUMERATION(
"Profile.AndroidAccountManagementMenu.GAIAAddSession",
metric,
NUM_PROFILE_ANDROID_ACCOUNT_MANAGEMENT_MENU_METRICS);
break;
case signin::GAIA_SERVICE_TYPE_REAUTH:
UMA_HISTOGRAM_ENUMERATION(
"Profile.AndroidAccountManagementMenu.GAIAReAuth",
metric,
NUM_PROFILE_ANDROID_ACCOUNT_MANAGEMENT_MENU_METRICS);
break;
case signin::GAIA_SERVICE_TYPE_SIGNUP:
UMA_HISTOGRAM_ENUMERATION(
"Profile.AndroidAccountManagementMenu.GAIASignup",
metric,
NUM_PROFILE_ANDROID_ACCOUNT_MANAGEMENT_MENU_METRICS);
break;
case signin::GAIA_SERVICE_TYPE_DEFAULT:
UMA_HISTOGRAM_ENUMERATION(
"Profile.AndroidAccountManagementMenu.GAIADefault",
metric,
NUM_PROFILE_ANDROID_ACCOUNT_MANAGEMENT_MENU_METRICS);
break;
}
}
#endif // defined(OS_ANDROID)
void ProfileMetrics::LogProfileLaunch(Profile* profile) {
base::FilePath profile_path = profile->GetPath();
UMA_HISTOGRAM_ENUMERATION("Profile.LaunchBrowser",
GetProfileType(profile_path),
NUM_PROFILE_TYPE_METRICS);
if (profile->IsSupervised()) {
content::RecordAction(
base::UserMetricsAction("ManagedMode_NewManagedUserWindow"));
}
}
void ProfileMetrics::LogProfileSyncSignIn(const base::FilePath& profile_path) {
UMA_HISTOGRAM_ENUMERATION("Profile.SyncSignIn",
GetProfileType(profile_path),
NUM_PROFILE_TYPE_METRICS);
}
void ProfileMetrics::LogProfileUpdate(const base::FilePath& profile_path) {
UMA_HISTOGRAM_ENUMERATION("Profile.Update",
GetProfileType(profile_path),
NUM_PROFILE_TYPE_METRICS);
}
|
;; @file
; This is the assembly code for transferring to control to OS S3 waking vector
; for X64 platform
;
; Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR>
;
; This program and the accompanying materials
; are licensed and made available under the terms and conditions of the BSD License
; which accompanies this distribution. The full text of the license may be found at
; http://opensource.org/licenses/bsd-license.php
;
; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
;
;;
EXTERN mOriginalHandler:QWORD
EXTERN PageFaultHandler:PROC
.code
EXTERNDEF AsmFixAddress16:DWORD
EXTERNDEF AsmJmpAddr32:DWORD
AsmTransferControl PROC
; rcx S3WakingVector :DWORD
; rdx AcpiLowMemoryBase :DWORD
lea eax, @F
mov r8, 2800000000h
or rax, r8
push rax
shrd ebx, ecx, 20
and ecx, 0fh
mov bx, cx
mov @jmp_addr, ebx
retf
@@:
DB 0b8h, 30h, 0 ; mov ax, 30h as selector
mov ds, eax
mov es, eax
mov fs, eax
mov gs, eax
mov ss, eax
mov rax, cr0
mov rbx, cr4
DB 66h
and eax, ((NOT 080000001h) AND 0ffffffffh)
and bl, NOT (1 SHL 5)
mov cr0, rax
DB 66h
mov ecx, 0c0000080h
rdmsr
and ah, NOT 1
wrmsr
mov cr4, rbx
DB 0eah ; jmp far @jmp_addr
@jmp_addr DD ?
AsmTransferControl ENDP
AsmTransferControl32 PROC
; S3WakingVector :DWORD
; AcpiLowMemoryBase :DWORD
push rbp
mov ebp, esp
DB 8dh, 05h ; lea eax, AsmTransferControl16
AsmFixAddress16 DD ?
push 28h ; CS
push rax
retf
AsmTransferControl32 ENDP
AsmTransferControl16 PROC
DB 0b8h, 30h, 0 ; mov ax, 30h as selector
mov ds, ax
mov es, ax
mov fs, ax
mov gs, ax
mov ss, ax
mov rax, cr0 ; Get control register 0
DB 66h
DB 83h, 0e0h, 0feh ; and eax, 0fffffffeh ; Clear PE bit (bit #0)
DB 0fh, 22h, 0c0h ; mov cr0, eax ; Activate real mode
DB 0eah ; jmp far AsmJmpAddr32
AsmJmpAddr32 DD ?
AsmTransferControl16 ENDP
PageFaultHandlerHook PROC
push rax ; save all volatile registers
push rcx
push rdx
push r8
push r9
push r10
push r11
; save volatile fp registers
add rsp, -68h
stmxcsr [rsp + 60h]
movdqa [rsp + 0h], xmm0
movdqa [rsp + 10h], xmm1
movdqa [rsp + 20h], xmm2
movdqa [rsp + 30h], xmm3
movdqa [rsp + 40h], xmm4
movdqa [rsp + 50h], xmm5
add rsp, -20h
call PageFaultHandler
add rsp, 20h
; load volatile fp registers
ldmxcsr [rsp + 60h]
movdqa xmm0, [rsp + 0h]
movdqa xmm1, [rsp + 10h]
movdqa xmm2, [rsp + 20h]
movdqa xmm3, [rsp + 30h]
movdqa xmm4, [rsp + 40h]
movdqa xmm5, [rsp + 50h]
add rsp, 68h
test al, al
pop r11
pop r10
pop r9
pop r8
pop rdx
pop rcx
pop rax ; restore all volatile registers
jnz @F
jmp mOriginalHandler
@@:
add rsp, 08h ; skip error code for PF
iretq
PageFaultHandlerHook ENDP
END
|
;*******************************************************************************
; pool.nasm - routines for manipulations with the memory "pools".
; Copyright (c) 2000-2002 RET & COM Research.
; This file is based on the TINOS Operating System (c) 1998 Bart Sekura.
;*******************************************************************************
module kernel.pool
%include "errors.ah"
%include "sync.ah"
%include "pool.ah"
%include "cpu/paging.ah"
exportproc K_PoolInit, K_PoolAllocChunk, K_PoolFreeChunk
exportproc K_PoolChunkNumber, K_PoolChunkAddr
externproc PG_Alloc, PG_Dealloc
externproc K_SemP, K_SemV
section .bss
?PoolCount RESD 1
?PoolPageCount RESD 1 ; Count total pages used by pools
section .text
; K_PoolInit - initialize the master pool.
; Input: EBX=address of the master pool,
; ECX=chunk size,
; DL=flags.
; Output: none.
proc K_PoolInit
xor eax,eax
mov [ebx+tMasterPool.Pools],eax
mov [ebx+tMasterPool.Hint],eax
mov [ebx+tMasterPool.Count],eax
mov [ebx+tMasterPool.Size],ecx
mov [ebx+tMasterPool.Flags],dl
mov [ebx+tMasterPool.Signature],ebx
lea eax,[ebx+tMasterPool.SemLock]
mSemInit eax
inc dword [?PoolCount]
xor eax,eax
ret
endp ;---------------------------------------------------------------
; K_PoolNew - allocate a new pool for a given master pool.
; Actually rips some memory and initializes
; pool descriptor.
; Input: EBX=address of the master pool.
; Output: CF=0 - OK, ESI=pool address;
; CF=1 - error, AX=error code.
proc K_PoolNew
mpush ebx,ecx,edx
; See how many chunks will fit into a page.
; Take into account pool descriptor at the beginning of a page.
mov eax,PAGESIZE-tPoolDesc_size
mov ecx,[ebx+tMasterPool.Size]
xor edx,edx
div ecx
mov ecx,eax ; ECX=number of chunks
; Get a page of memory
mov dl,[ebx+tMasterPool.Flags] ; Low or high memory?
and dl,POOLFL_HIMEM ; Mask unused flags
call PG_Alloc
jc .Done
and eax,PGENTRY_ADDRMASK ; Mask status bits
mov esi,eax ; ESI=address of page
inc dword [?PoolPageCount] ; Global page counter
; Initialize pool descriptor
mov [esi+tPoolDesc.Master],ebx
mov dword [esi+tPoolDesc.RefCount],0
mov [esi+tPoolDesc.ChunksTotal],ecx
mov [esi+tPoolDesc.ChunksFree],ecx
mov edx,[ebx+tMasterPool.Size] ; EDX=chunk size
mov [esi+tPoolDesc.ChunkSize],edx
lea eax,[esi+tPoolDesc_size]
mov [esi+tPoolDesc.FreeHead],eax
mpush esi,eax ; Keep page address
; and free list head
; Update master pool information: list links and count.
mov eax,[ebx+tMasterPool.Pools]
mov [ebx+tMasterPool.Pools],esi
inc dword [ebx+tMasterPool.Count]
; Initialize free list pointers for every chunk
; trailing with null. Also mark every chunk with a signature.
pop esi ; ESI=free list head
dec ecx ; ECX=chunks-1
jz .TrailNULL
mov eax,[ebx+tMasterPool.Signature]
.Loop: lea ebx,[esi+edx]
mov [esi],ebx
mov [esi+4],eax
add esi,edx
dec ecx
jnz .Loop
.TrailNULL: mov dword [esi],0
pop esi ; Return address of a
xor eax,eax ; new pool in ESI
.Done mpop edx,ecx,ebx
ret
endp ;---------------------------------------------------------------
; K_PoolAllocChunk - allocate single chunk from
; given master pool.
; Input: EBX=master pool address.
; Output: CF=0 - OK, ESI=chunk address;
; CF=1 - error, AX=error code.
; Note: if pool was initialized for "bucket allocation", ECX
; will return number of chunks fit in one page.
proc K_PoolAllocChunk
mpush ebx,edx
mov esi,ebx
lea eax,[esi+tMasterPool.SemLock] ; Lock master pool
call K_SemP
; First check if "bucket alloc" flag is set. If so -
; immediately allocate new pool.
test byte [esi+tMasterPool.Flags],POOLFL_BUCKETALLOC
jnz .AllocPool
; Now check if hint is valid. If not, go through pool list
; to find one containing some free chunks
; If no pools with free space, get a new one.
; Always update hint for future use.
mov edx,[esi+tMasterPool.Hint]
or edx,edx
jz .FindHint
cmp dword [edx+tPoolDesc.FreeHead],0
jnz .HintOK
.FindHint: mov ebx,[esi+tMasterPool.Pools]
.FindHintLoop: or ebx,ebx
jz .AllocPool
cmp dword [ebx+tPoolDesc.FreeHead],0
jne .GotHint
mov ebx,[ebx+tPoolDesc.Next]
jmp .FindHintLoop
.GotHint: mov [esi+tMasterPool.Hint],ebx
mov edx,ebx
jmp .HintOK
.AllocPool: mov ebx,esi
mov edx,esi ; Save master pool addr
call K_PoolNew
jc .Done
xchg edx,esi
mov [esi+tMasterPool.Hint],edx
; Get a chunk and maintain pointers
.HintOK: mov ebx,[edx+tPoolDesc.FreeHead]
mov eax,[ebx]
mov [edx+tPoolDesc.FreeHead],eax
inc dword [edx+tPoolDesc.RefCount]
dec dword [edx+tPoolDesc.ChunksFree]
; Return number of chunks in ECX if the pool is marked
; for "bucket alloc"
test byte [esi+tMasterPool.Flags],POOLFL_BUCKETALLOC
jz .Finish
mov ecx,[edx+tPoolDesc.ChunksFree]
inc ecx
.Finish: mov edx,ebx
lea eax,[esi+tMasterPool.SemLock] ; Unlock master pool
call K_SemV
mov esi,edx ; Return chunk addr
xor eax,eax
mov [esi],eax ; Clean fields we used
mov [esi+4],eax
.Done mpop edx,ebx
ret
endp ;---------------------------------------------------------------
; K_PoolFreeChunk - free chunk.
; Input: ESI=chunk address.
; Output: CF=0 - OK;
; CF=1 - error, AX=error code.
proc K_PoolFreeChunk
mpush ebx,edx,edi
mov edi,esi
; Find the start of page, which is our pool descriptor
mov edx,esi
and edx,PGENTRY_ADDRMASK ; EDX=pooldesc address
mov esi,[edx+tPoolDesc.Master] ; ESI=master pool addr
lea eax,[esi+tMasterPool.SemLock] ; Lock master pool
call K_SemP
; Free this chunk
mov eax,[edx+tPoolDesc.FreeHead]
mov [edi],eax
mov eax,[esi+tMasterPool.Signature]
mov [edi+4],eax
mov [edx+tPoolDesc.FreeHead],edi
inc dword [edx+tPoolDesc.ChunksFree]
; Check reference count and free the whole pool if needed
dec dword [edx+tPoolDesc.RefCount]
jnz .Unlock
; If this pool is a hint, update hint
; since this one is about to cease to exist
cmp [esi+tMasterPool.Hint],edx
jne .NotHint
mov eax,[edx+tPoolDesc.Next]
mov [esi+tMasterPool.Hint],eax
; Find this pool in master pool linked list and unlink it.
; First check out the head of the list.
; If not sucessful, go through the whole list.
.NotHint: cmp [esi+tMasterPool.Pools],edx
jne .NotHead
mov eax,[edx+tPoolDesc.Next]
mov [esi+tMasterPool.Pools],eax
jmp .FreePage
.NotHead: mov ebx,[esi+tMasterPool.Pools]
.FindHeadLoop: or ebx,ebx
jz .Err
cmp [ebx+tPoolDesc.Next],edx
je .Unlink
mov ebx,[ebx+tPoolDesc.Next]
jmp .FindHeadLoop
.Unlink: mov eax,[edx+tPoolDesc.Next]
mov [ebx+tPoolDesc.Next],eax
xor edi,edi ; No errors
; Decrease the count and free memory of this pool.
.FreePage: dec dword [esi+tMasterPool.Count]
mov eax,edx
call PG_Dealloc
dec dword [?PoolPageCount]
.Unlock: lea eax,[esi+tMasterPool.SemLock] ; Unlock master pool
call K_SemV
mov ax,di ; Error code
shl edi,1 ; and carry flag
.Done: mpop edi,edx,ebx
ret
.Err: mov edi,(1<<16)+ERR_PoolFreeNoHead ; Carry flag + errcode
jmp .FreePage
endp ;---------------------------------------------------------------
; K_PoolChunkNumber - get a chunk number by its address.
; Input: ESI=chunk address.
; Output: CF=0 - OK, EAX=chunk number;
; CF=1 - error, AX=error code.
proc K_PoolChunkNumber
mpush ebx,ecx,edx,edi
; Find the start of page, which is our pool descriptor
mov ebx,esi
and ebx,PGENTRY_ADDRMASK
mov edx,ebx ; EDX=pool desc. address
mov ebx,[edx+tPoolDesc.Master] ; EBX=master pool addr.
; Find out what is a pool number for requested chunk
mov edi,[ebx+tMasterPool.Pools]
or edi,edi
jz .Err1
xor ecx,ecx
.Loop: cmp edi,edx ; Is is our pool?
je .Found
inc ecx
mov edi,[edi+tPoolDesc.Next]
or edi,edi
jnz .Loop
; Error: the chunk doesn't belong to any pool
mov eax,ERR_PoolNotFound
stc
jmp .Exit
; We have found the pool number (it's in ECX).
; Chunk number is:
; (pool_number * chunks_per_pool) + chunk_num_inside_pool
.Found: mov eax,[edi+tPoolDesc.ChunksTotal]
mul ecx
mov ecx,eax
mov eax,esi
sub eax,edi
sub eax,byte tPoolDesc_size
div dword [edi+tPoolDesc.ChunkSize]
add eax,ecx
clc
.Exit: mpop edi,edx,ecx,ebx
ret
.Err1: mov ax,ERR_PoolFreeNoHead
stc
jmp .Exit
endp ;---------------------------------------------------------------
; K_PoolChunkAddr - get a chunk address by its number.
; Input: EBX=master pool address,
; EAX=chunk number.
; Output: CF=0 - OK, ESI=chunk address;
; CF=1 - error, AX=error code.
proc K_PoolChunkAddr
mpush ecx,edx
mov esi,[ebx+tMasterPool.Pools]
or esi,esi
jz .Err1
; Calculate pool number (and chunk number inside its pool)
xor edx,edx
div dword [esi+tPoolDesc.ChunksTotal]
cmp eax,[ebx+tMasterPool.Count]
jae .Err2
; Find our pool walking through the pool list
xor ecx,ecx
.Loop: cmp eax,ecx
je .Found
inc ecx
mov esi,[esi+tPoolDesc.Next]
or esi,esi
jnz .Loop
; Error: the chunk doesn't belong to any pool (weird case)
mov eax,ERR_PoolNotFound
stc
jmp .Exit
; Pool is found. Calculate chunk address
.Found: mov eax,edx
mul dword [ebx+tMasterPool.Size]
lea esi,[esi+eax+tPoolDesc_size]
; If this chunk is marked with signature - error
mov eax,[ebx+tMasterPool.Signature]
cmp eax,[esi+4]
je .Err2
clc
.Exit: mpop edx,ecx
ret
.Err1: mov ax,ERR_PoolFreeNoHead
stc
jmp .Exit
.Err2: mov ax,ERR_PoolBadChunkNum
stc
jmp .Exit
endp ;---------------------------------------------------------------
|
; A206531: a(n) = (2(n+1)(2n+1)-1) * a(n-1) + 2n(2n-1) * a(n-2), a(0)=0, a(1)=2.
; Submitted by Christian Krause
; 0,2,58,3250,292498,38609738,7026972314,1686473355362,516060846740770,196103121761492602,90599642253809582122,50011002524102889331346,32507151640666878065374898,24575406640344159817423422890
mul $0,2
mov $1,1
lpb $0
add $2,2
mul $2,$0
sub $0,1
add $3,$1
add $3,$1
add $1,$2
add $2,$3
lpe
mov $0,$2
div $0,2
sub $1,$0
mov $0,$1
sub $0,1
|
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r15
push %r9
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0xd2c6, %rsi
lea addresses_D_ht+0xe79e, %rdi
clflush (%rdi)
sub $25252, %r11
mov $71, %rcx
rep movsl
nop
nop
nop
xor %rcx, %rcx
lea addresses_normal_ht+0x1e8e6, %r11
nop
nop
nop
inc %rax
mov $0x6162636465666768, %r15
movq %r15, %xmm2
movups %xmm2, (%r11)
nop
nop
cmp $61391, %rdi
lea addresses_normal_ht+0xecc6, %r11
nop
nop
nop
add $58135, %r9
movl $0x61626364, (%r11)
nop
add $61378, %rax
lea addresses_UC_ht+0x2c6, %rsi
lea addresses_normal_ht+0xb366, %rdi
nop
nop
nop
nop
nop
xor %r12, %r12
mov $76, %rcx
rep movsl
nop
nop
nop
nop
sub $34751, %r15
pop %rsi
pop %rdi
pop %rcx
pop %rax
pop %r9
pop %r15
pop %r12
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r15
push %r8
push %r9
push %rbx
push %rdi
push %rsi
// Load
mov $0x2c6, %rsi
nop
and %r10, %r10
mov (%rsi), %bx
nop
nop
and $34485, %r8
// Store
lea addresses_WT+0x1a546, %rsi
nop
nop
nop
nop
sub %r15, %r15
movw $0x5152, (%rsi)
nop
nop
nop
nop
xor %r15, %r15
// Store
lea addresses_WT+0x19c60, %rdi
nop
nop
nop
nop
nop
xor $2333, %r9
movl $0x51525354, (%rdi)
nop
nop
nop
nop
and $29746, %rdi
// Store
lea addresses_US+0x178a6, %r9
nop
nop
nop
nop
nop
and %rdi, %rdi
mov $0x5152535455565758, %r10
movq %r10, %xmm3
movntdq %xmm3, (%r9)
nop
nop
nop
nop
cmp %rdi, %rdi
// Load
lea addresses_RW+0x1bcc, %r15
nop
nop
dec %rsi
mov (%r15), %r8w
sub %r10, %r10
// Load
lea addresses_RW+0x14c6, %r10
nop
nop
nop
add $63376, %rsi
vmovups (%r10), %ymm1
vextracti128 $1, %ymm1, %xmm1
vpextrq $0, %xmm1, %rbx
nop
nop
and %rbx, %rbx
// Load
lea addresses_D+0x86c6, %rsi
clflush (%rsi)
nop
nop
nop
nop
cmp %r15, %r15
movups (%rsi), %xmm5
vpextrq $1, %xmm5, %rbx
cmp %r10, %r10
// Faulty Load
mov $0x2c6, %rsi
nop
nop
nop
nop
nop
add %r15, %r15
vmovaps (%rsi), %ymm6
vextracti128 $1, %ymm6, %xmm6
vpextrq $0, %xmm6, %rbx
lea oracles, %r8
and $0xff, %rbx
shlq $12, %rbx
mov (%r8,%rbx,1), %rbx
pop %rsi
pop %rdi
pop %rbx
pop %r9
pop %r8
pop %r15
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'NT': True, 'same': False, 'congruent': 0, 'type': 'addresses_P', 'AVXalign': False, 'size': 4}, 'OP': 'LOAD'}
{'src': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_P', 'AVXalign': False, 'size': 2}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'NT': True, 'same': False, 'congruent': 7, 'type': 'addresses_WT', 'AVXalign': False, 'size': 2}}
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_WT', 'AVXalign': False, 'size': 4}}
{'OP': 'STOR', 'dst': {'NT': True, 'same': False, 'congruent': 5, 'type': 'addresses_US', 'AVXalign': False, 'size': 16}}
{'src': {'NT': False, 'same': False, 'congruent': 1, 'type': 'addresses_RW', 'AVXalign': False, 'size': 2}, 'OP': 'LOAD'}
{'src': {'NT': False, 'same': False, 'congruent': 4, 'type': 'addresses_RW', 'AVXalign': False, 'size': 32}, 'OP': 'LOAD'}
{'src': {'NT': False, 'same': False, 'congruent': 10, 'type': 'addresses_D', 'AVXalign': False, 'size': 16}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_P', 'AVXalign': True, 'size': 32}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'same': False, 'congruent': 10, 'type': 'addresses_A_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 3, 'type': 'addresses_D_ht'}}
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 5, 'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 16}}
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 8, 'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 4}}
{'src': {'same': False, 'congruent': 11, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 4, 'type': 'addresses_normal_ht'}}
{'f2': 1, '52': 1, '02': 1, '7b': 5, '00': 351, '45': 266, '4a': 1, '36': 1, '32': 21201, 'a0': 1}
32 32 32 32 45 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 00 32 32 32 32 32 32 32 32 32 32 32 32 32 32 45 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 00 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 00 32 32 32 32 32 32 32 32 32 32 32 32 32 45 32 45 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 45 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 00 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 00 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 45 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 45 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 00 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 00 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 45 00 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 00 45 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 00 32 32 32 32 32 45 32 45 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 00 32 32 32 32 32 32 32 32 32 32 32 32 45 32 32 32 32 32 32 32 32 32 45 32 45 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 45 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 45 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 00 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 00 32 32 32 45 32 32 32 32 32
*/
|
; A178129: Partial sums of A050508.
; Submitted by Jon Maiga
; 0,2,8,23,47,87,147,224,328,463,623,821,1049,1322,1644,2004,2420,2896,3418,4007,4647,5361,6153,7004,7940,8940,10032,11220,12480,13843,15313,16863,18527,20276,22146,24141,26229,28449,30767,33224,35824,38530
mov $2,$0
mov $4,$0
lpb $2
mov $0,$4
sub $2,1
sub $0,$2
seq $0,50508 ; Golden rectangle numbers: n * A007067(n).
add $3,$0
lpe
mov $0,$3
|
; ********************** card list (count:32 size:256 bytes)
cards_list
dta a(card_give_gold_bishop)
dta a(card_give_gold_general)
dta a(card_give_gold_medic)
dta a(card_crime_rises_executioner)
dta a(card_crime_rises_stargazer)
dta a(card_crime_rises_treasurer)
dta a(card_luck_check_jester)
dta a(card_enemy_approach_knight)
dta a(card_give_gold_peasant)
dta a(card_betrayal_jester)
dta a(card_luck_check_bishop)
dta a(card_betrayal_stargazer)
dta a(card_luck_check_stargazer)
dta a(card_luck_check_treasurer)
dta a(card_give_gold_knight)
dta a(card_luck_check_medic)
dta a(card_enemy_approach_general)
dta a(card_dragon_peasant)
dta a(card_betrayal_executioner)
dta a(card_betrayal_bishop)
dta a(card_luck_check_executioner)
dta a(card_crime_rises_general)
dta a(card_dragon_jester)
dta a(card_dragon_knight)
dta a(card_disease_medic)
dta a(card_disease_peasant)
dta a(card_betrayal_treasurer)
dta a(card_neardeath_death)
dta a(card_trade_devil)
dta a(card_welcome_angel)
dta a(card_bigarmy_general)
dta a(card_unhappy_bishop)
; ********************** static strings list (count:52 size:128 bytes)
.align $100,$00
dta a(txt_0)
dta a(txt_1)
dta a(txt_2)
dta a(txt_3)
dta a(txt_4)
dta a(txt_5)
dta a(txt_6)
dta a(txt_7)
dta a(txt_8)
dta a(txt_9)
dta a(txt_10)
dta a(txt_11)
dta a(txt_12)
dta a(txt_13)
dta a(txt_14)
dta a(txt_15)
dta a(txt_16)
dta a(txt_17)
dta a(txt_18)
dta a(txt_19)
dta a(txt_20)
dta a(txt_21)
dta a(txt_22)
dta a(txt_23)
dta a(txt_24)
dta a(txt_25)
dta a(txt_26)
dta a(txt_27)
dta a(txt_28)
dta a(txt_29)
dta a(txt_30)
dta a(txt_31)
dta a(txt_32)
dta a(txt_33)
dta a(txt_34)
dta a(txt_35)
dta a(txt_36)
dta a(txt_37)
dta a(txt_38)
dta a(txt_39)
dta a(txt_40)
dta a(txt_41)
dta a(txt_42)
dta a(txt_43)
dta a(txt_44)
dta a(txt_45)
dta a(txt_46)
dta a(txt_47)
dta a(txt_48)
dta a(txt_49)
dta a(txt_50)
dta a(txt_51)
; ********************** static images list
.align $80,$00
dta a(frame) ; 0
dta a(logo) ; 1
dta a(face_jester) ; 2
dta a(face_vox_regis) ; 3
dta a(tak_sprite) ; 4
dta a(nie_sprite) ; 5
dta a(status_bar) ; 6
; ********************** static strings
txt_0 dta c'Zarz',1,'dzaj dumnie swym kr',15,'lestwem!',0
txt_1 dta c'Dokonuj tylko m',1,'drych wybor',15,'w,',0
txt_2 dta c'u',26,'ywajac joysticka lub klawiszy.',0
txt_3 dta c'Gdy b',5,'dziesz got',15,'w, aby spotka',3,' si',5,0
txt_4 dta c'z pierwszym kr',15,'lewskim doradc',1,',',0
txt_5 dta c'naci',19,'nij dowolny klawisz lub fire.',0
txt_6 dta c'Wiosna',0
txt_7 dta c'Lato',0
txt_8 dta c'Jesie',14,0
txt_9 dta c'Zima',0
txt_10 dta c'Wieki ',19,'rednie',0
txt_11 dta c'LEGENDA:',0
txt_12 dta c'Umar',12,' kr',15,'l, niech ',26,'yje kr',15,'l!',0
txt_13 dta c'skarb pa',14,'stwa',0
txt_14 dta c'populacja',0
txt_15 dta c'si',12,'a armii',0
txt_16 dta c'zdrowie kr',15,'la',0
txt_17 dta c'szcz',5,'scie ludu',0
txt_18 dta c'religijno',19,3,0
txt_19 dta c'Co rok Twoi poddani p',12,'ac',1,' podatek.',0
txt_20 dta c'Wykorzystaj dobra aby rosn',1,3,' w si',12,5,'.',0
txt_21 dta c'Nigdy nie zapominaj o zdrowiu!',0
txt_22 dta c'pomys',12,' gry, kod, grafika: bocianu',0
txt_23 dta c'muzyka: LiSU',0
txt_24 dta c'ca',12,'o',19,3,' napisano w j',5,'zyku MadPascal',0
txt_25 dta c'narz',5,'dzia: mads, g2f, rmt, bin2c',0
txt_26 dta c'thx: TeBe za ciepliwo',19,3,' i pomoc',0
txt_27 dta c'P.H.A.T. za motywacj',5,0
txt_28 dta c'WAPniak 2k17',0
txt_29 dta c'Koniec Roku ',0
txt_30 dta c'przych',15,'d z podatku',0
txt_31 dta c'wydatki na armi',5,0
txt_32 dta c'inne wydarzenia:',0
txt_33 dta c'Bankructwo. Twoje kr',15,'lestwo upad',12,'o...',0
txt_34 dta c'Zmar',12,'e',19,' z przyczyn naturalnych...',0
txt_35 dta c'Rewolucja! T',12,'um podpali',12,' tw',15,'j zamek..',0
txt_36 dta c'Oto koniec Twojego kr',15,'lestwa.',0
txt_37 dta c'Uzyska',12,'e',19,' ',0
txt_38 dta c' punkt',15,'w.',0
txt_39 dta c'Otrzyma',12,'e',19,' nieoczekiwany spadek:',0
txt_40 dta c'Wydatki reprezentacyjne:',0
txt_41 dta c'Niebywa',12,'y przyrost naturalny: ',0
txt_42 dta c'Czarna ospa! Umarli na ulicach: ',0
txt_43 dta c'W kr',15,'lestwie urodzi',12,' si',5,' prorok: ',0
txt_44 dta c'W kr',15,'lestwie szaleje inkwizycja: ',0
txt_45 dta c'Nowe szlaki handlowe: ',0
txt_46 dta c'Masowa dezercja w armii:',0
txt_47 dta c'Wzi',1,12,'e',19,' ',19,'lub, najwy',26,'szy czas: ',0
txt_48 dta c'Urodzi',12,' Ci si',5,' syn: ',0
txt_49 dta c'Podupad',12,'e',19,' na zdrowiu w',12,'adco: ',0
txt_50 dta c'Panie! Zdrowiejesz w oczach: ',0
txt_51 dta c'Barbarzy',14,'cy najechali Twoje kr',15,'lestwo.',0
; strings size: 1255 bytes
; ********************** card strings
txt_desc_betrayal
dta c'Mam wra',26,'enie Panie, ',26,'e kto',19,' spiskuje',0
txt_desc_bigarmy
dta c'Nasza armia jest ju',26,' pot',5,26,'na,',0
txt_desc_crime_rises
dta c'Przest',5,'pczo',19,3,' ro',19,'nie Ja',19,'niepanie',0
txt_desc_disease
dta c'Wybuch',12,'a zaraza, czarna ',19,'mier',3,' w kraju',0
txt_desc_dragon
dta c'W kr',15,'lestwie grasuje okrutny smok!',0
txt_desc_enemy_approach
dta c'Wrogowie stoj',1,' u bram miasta!',0
txt_desc_give_gold
dta c'Najja',19,'niejszy Panie, potrzeba nam z',12,'ota',0
txt_desc_luck_check
dta c'Zobaczmy czy sprzyja w',12,'adcy szcz',5,19,'cie',0
txt_desc_neardeath
dta c'Podupad',12,'e',19,' na zdrowiu ja',19,'niepanie.',0
txt_desc_trade
dta c'Witam najja',19,'niejszego, pohandlujemy?',0
txt_desc_unhappy
dta c'Lud niespokojny ostatnimi czasy,',0
txt_desc_welcome
dta c'Witam sprawiedliwego ja',19,'niepana.',0
txt_no_go_away
dta c'Precz!',0
txt_no_no_chance
dta c'Nie ma szans',0
txt_no_no_way
dta c'Wykluczone!',0
txt_no_overstatement
dta c'Bez przesady.',0
txt_no_rather_no
dta c'Raczej nie bardzo...',0
txt_quote_betrayal_bishop
dta c'Wyp',5,'d',11,'my wrog',15,'w ko',19,'cio',12,'a z kraju.',0
txt_quote_betrayal_executioner
dta c'Mo',26,'e zetniemy na pokaz kilku zdrajc',15,'w?',0
txt_quote_betrayal_jester
dta c'powinni',19,'my ograniczy',3,' wp',12,'ywy ko',19,'cio',12,'a.',0
txt_quote_betrayal_stargazer
dta c'Gwiazdy m',15,'wi',1,', aby inwestowa',3,' w armi',5,'.',0
txt_quote_betrayal_treasurer
dta c'A mo',26,'e czas zbudowa',3,' sie',3,' wywiadowcz',1,'?',0
txt_quote_bigarmy_general
dta c'mo',26,'e z',12,'upimy s',1,'siedni kraj?',0
txt_quote_crime_rises_executioner
dta c'mo',26,'e jakie',19,' publiczne wieszanko?',0
txt_quote_crime_rises_general
dta c'Zwi',5,'kszmy patrole! Wi',5,'cej wojska!',0
txt_quote_crime_rises_stargazer
dta c'gwiazdy m',15,'wi',1,' igrzysk! ',0
txt_quote_crime_rises_treasurer
dta c'Zbudujmy wi',5,'cej wi',5,'zie',14,'!',0
txt_quote_disease_medic
dta c'Potrzeba pieni',5,'dzy na nowe szpitale.',0
txt_quote_disease_peasant
dta c'Chcemy schroni',3,' si',5,' w murach miasta.',0
txt_quote_dragon_jester
dta c'Najlepszy moment by pozby',3,' si',5,' dziewic!',0
txt_quote_dragon_knight
dta c'Pozw',15,'l Panie, ',26,'e spr',15,'buje ubi',3,' gada.',0
txt_quote_dragon_peasant
dta c'Panie wy',19,'lij armi',5,', chro',14,' nasz dobytek.',0
txt_quote_enemy_approach_general
dta c'Panie, og',12,'o',19,'my powszechn',1,' mobilizacj',5,'!',0
txt_quote_enemy_approach_knight
dta c'Pozw',15,'l Panie, ',26,'e wzmocnimy stra',26,'e.',0
txt_quote_give_gold_bishop
dta c'Katedra popada w ruin',5,', wspom',15,26,'...',0
txt_quote_give_gold_general
dta c'Musimy doposa',26,'y',3,' nowych rekrut',15,'w.',0
txt_quote_give_gold_knight
dta c'Zorganizujmy turniej rycerski!',0
txt_quote_give_gold_medic
dta c'w szpitalach brak medykament',15,'w.',0
txt_quote_give_gold_peasant
dta c'Plony s',12,'abe, susza, ',26,'y',3,' nie ma za co...',0
txt_quote_luck_check_bishop
dta c'Hojna ofiara pomo',26,'e uzyska',3,' ',12,'aski...',0
txt_quote_luck_check_executioner
dta c'Zetnijmy kogo',19,' na chybi',12,' trafi',12,'!',0
txt_quote_luck_check_jester
dta c'Mo',26,'e zagramy partyjk',5,' Wista?',0
txt_quote_luck_check_medic
dta c'Mam dla Pana nowy lek z dalekiego kraju',0
txt_quote_luck_check_stargazer
dta c'Czy postawi',3,' najja',19,'niejszemu horoskop?',0
txt_quote_luck_check_treasurer
dta c'Zainwestujmy w drogocenne kruszce!',0
txt_quote_neardeath_death
dta c'Mo',26,'esz po',19,'wi',5,'ci',3,' ',26,'ycie kilku poddanych.',0
txt_quote_trade_devil
dta c'Za Tw',1,' dusze, bogactwa oddam wielkie.',0
txt_quote_unhappy_bishop
dta c'mo',26,'e trzeba urz',1,'dzi',3,' wielk',1,' procesj',5,'?',0
txt_quote_welcome_angel
dta c'Oferuj',5,' swe ',12,'aski za hojn',1,' ofiar',5,'.',0
txt_yes_generosity
dta c'Znaj m',1,' hojno',19,3,'!',0
txt_yes_great_idea
dta c'Wspania',12,'y pomys',12,'!',0
txt_yes_let_it_be
dta c'Niech ci b',5,'dzie',0
txt_yes_ofc
dta c'Oczywi',19,'cie!',0
txt_yes_yes
dta c'Niech tak b',5,'dzie',0
; strings size: 1702 bytes
; ********************** actors (count:12)
actor_bishop
dta a(face_bishop)
dta c'Arcybiskup Jan Rzygo',14,0
actor_stargazer
dta a(face_stargazer)
dta c'Astronom ',24,'yros',12,'aw Lupa',0
actor_treasurer
dta a(face_trasurer)
dta c'Skarbnik Jutrowuj ',24,'y',12,'ak',0
actor_executioner
dta a(face_executioner)
dta c'Kat Lubomir Ucieszek',0
actor_jester
dta a(face_jester)
dta c'B',12,'azen M',19,'cigniew Ponur',0
actor_medic
dta a(face_medic)
dta c'Medyk Cz',5,'stogoj Szczyka',12,0
actor_general
dta a(face_general)
dta c'Genera',12,' Siemirad Zajad',12,'o',0
actor_peasant
dta a(face_peasant)
dta c'Gospodarz Czes',12,'aw Sporysz',0
actor_death
dta a(face_death)
dta c'Nieub',12,'agana i Ostateczna Pani ',4,'mier',3,0
actor_devil
dta a(face_devil)
dta c'Okrutny Arcyksi',1,26,'e Piekie',12,' Zenon',0
actor_angel
dta a(face_angel)
dta c'Starszy Archanio',12,' Konstaty Gardzi',12,12,'o',0
actor_knight
dta a(face_knight)
dta c'Rycerz Zawiesza Szwarny',0
; actors size: 344 bytes
; ********************** cards
card_give_gold_bishop
dta 0 ; type 0:resource_card 1:gamble_card
dta a(actor_bishop) ; actor pointer
dta a(txt_desc_give_gold) ; common description / question
; Najjaśniejszy Panie, potrzeba nam złota
dta a(txt_quote_give_gold_bishop) ; actor sentence
; Katedra popada w ruinę, wspomóż...
dta a(txt_yes_generosity) ; yes response
dta a(txt_no_overstatement) ; No response
;resource change for yes
dta b(140) ; 0b10001100 - bits 7:money 6:population 5:army 4:health 3:happines 2:church
dta a(-100,-100) ; money
dta b(2,2) ; happines
dta b(5,10) ; church
;resource change for no
dta b(12) ; 0b1100 - bits 7:money 6:population 5:army 4:health 3:happines 2:church
dta b(-1,-1) ; happines
dta b(-2,-5) ; church
;requirements
dta 0 ; requirement count (max 2)
card_give_gold_general
dta 0 ; type 0:resource_card 1:gamble_card
dta a(actor_general) ; actor pointer
dta a(txt_desc_give_gold) ; common description / question
; Najjaśniejszy Panie, potrzeba nam złota
dta a(txt_quote_give_gold_general) ; actor sentence
; Musimy doposażyć nowych rekrutów.
dta a(txt_yes_ofc) ; yes response
dta a(txt_no_no_chance) ; No response
;resource change for yes
dta b(168) ; 0b10101000 - bits 7:money 6:population 5:army 4:health 3:happines 2:church
dta a(-100,-100) ; money
dta a(10,10) ; army
dta b(2,3) ; happines
;resource change for no
dta b(8) ; 0b1000 - bits 7:money 6:population 5:army 4:health 3:happines 2:church
dta b(-1,-1) ; happines
;requirements
dta 0 ; requirement count (max 2)
card_give_gold_medic
dta 0 ; type 0:resource_card 1:gamble_card
dta a(actor_medic) ; actor pointer
dta a(txt_desc_give_gold) ; common description / question
; Najjaśniejszy Panie, potrzeba nam złota
dta a(txt_quote_give_gold_medic) ; actor sentence
; w szpitalach brak medykamentów.
dta a(txt_yes_yes) ; yes response
dta a(txt_no_rather_no) ; No response
;resource change for yes
dta b(136) ; 0b10001000 - bits 7:money 6:population 5:army 4:health 3:happines 2:church
dta a(-100,-100) ; money
dta b(2,5) ; happines
;resource change for no
dta b(80) ; 0b1010000 - bits 7:money 6:population 5:army 4:health 3:happines 2:church
dta a(-10,-5) ; population
dta b(-1,-1) ; health
;requirements
dta 0 ; requirement count (max 2)
card_crime_rises_executioner
dta 0 ; type 0:resource_card 1:gamble_card
dta a(actor_executioner) ; actor pointer
dta a(txt_desc_crime_rises) ; common description / question
; Przestępczość rośnie Jaśniepanie
dta a(txt_quote_crime_rises_executioner) ; actor sentence
; może jakieś publiczne wieszanko?
dta a(txt_yes_great_idea) ; yes response
dta a(txt_no_no_way) ; No response
;resource change for yes
dta b(76) ; 0b1001100 - bits 7:money 6:population 5:army 4:health 3:happines 2:church
dta a(-10,-20) ; population
dta b(-1,-3) ; happines
dta b(-2,2) ; church
;resource change for no
dta b(128) ; 0b10000000 - bits 7:money 6:population 5:army 4:health 3:happines 2:church
dta a(-150,-50) ; money
;requirements
dta 0 ; requirement count (max 2)
card_crime_rises_stargazer
dta 0 ; type 0:resource_card 1:gamble_card
dta a(actor_stargazer) ; actor pointer
dta a(txt_desc_crime_rises) ; common description / question
; Przestępczość rośnie Jaśniepanie
dta a(txt_quote_crime_rises_stargazer) ; actor sentence
; gwiazdy mówią igrzysk!
dta a(txt_yes_let_it_be) ; yes response
dta a(txt_no_no_way) ; No response
;resource change for yes
dta b(200) ; 0b11001000 - bits 7:money 6:population 5:army 4:health 3:happines 2:church
dta a(-100,-100) ; money
dta a(5,10) ; population
dta b(1,3) ; happines
;resource change for no
dta b(136) ; 0b10001000 - bits 7:money 6:population 5:army 4:health 3:happines 2:church
dta a(-150,-50) ; money
dta b(-1,-5) ; happines
;requirements
dta 0 ; requirement count (max 2)
card_crime_rises_treasurer
dta 0 ; type 0:resource_card 1:gamble_card
dta a(actor_treasurer) ; actor pointer
dta a(txt_desc_crime_rises) ; common description / question
; Przestępczość rośnie Jaśniepanie
dta a(txt_quote_crime_rises_treasurer) ; actor sentence
; Zbudujmy więcej więzień!
dta a(txt_yes_great_idea) ; yes response
dta a(txt_no_no_chance) ; No response
;resource change for yes
dta b(168) ; 0b10101000 - bits 7:money 6:population 5:army 4:health 3:happines 2:church
dta a(-100,-100) ; money
dta a(2,10) ; army
dta b(0,3) ; happines
;resource change for no
dta b(216) ; 0b11011000 - bits 7:money 6:population 5:army 4:health 3:happines 2:church
dta a(-150,-50) ; money
dta a(-2,-10) ; population
dta b(-1,0) ; health
dta b(0,-3) ; happines
;requirements
dta 0 ; requirement count (max 2)
card_luck_check_jester
dta 0 ; type 0:resource_card 1:gamble_card
dta a(actor_jester) ; actor pointer
dta a(txt_desc_luck_check) ; common description / question
; Zobaczmy czy sprzyja władcy szczęście
dta a(txt_quote_luck_check_jester) ; actor sentence
; Może zagramy partyjkę Wista?
dta a(txt_yes_great_idea) ; yes response
dta a(txt_no_rather_no) ; No response
;resource change for yes
dta b(128) ; 0b10000000 - bits 7:money 6:population 5:army 4:health 3:happines 2:church
dta a(-100,100) ; money
;resource change for no
dta b(0) ; 0b0 - bits 7:money 6:population 5:army 4:health 3:happines 2:church
;requirements
dta 0 ; requirement count (max 2)
card_enemy_approach_knight
dta 0 ; type 0:resource_card 1:gamble_card
dta a(actor_knight) ; actor pointer
dta a(txt_desc_enemy_approach) ; common description / question
; Wrogowie stoją u bram miasta!
dta a(txt_quote_enemy_approach_knight) ; actor sentence
; Pozwól Panie, że wzmocnimy straże.
dta a(txt_yes_ofc) ; yes response
dta a(txt_no_overstatement) ; No response
;resource change for yes
dta b(168) ; 0b10101000 - bits 7:money 6:population 5:army 4:health 3:happines 2:church
dta a(-20,-60) ; money
dta a(5,10) ; army
dta b(1,3) ; happines
;resource change for no
dta b(120) ; 0b1111000 - bits 7:money 6:population 5:army 4:health 3:happines 2:church
dta a(-10,-30) ; population
dta a(-2,-5) ; army
dta b(-1,-1) ; health
dta b(-1,-1) ; happines
;requirements
dta 0 ; requirement count (max 2)
card_give_gold_peasant
dta 0 ; type 0:resource_card 1:gamble_card
dta a(actor_peasant) ; actor pointer
dta a(txt_desc_give_gold) ; common description / question
; Najjaśniejszy Panie, potrzeba nam złota
dta a(txt_quote_give_gold_peasant) ; actor sentence
; Plony słabe, susza, żyć nie ma za co...
dta a(txt_yes_generosity) ; yes response
dta a(txt_no_go_away) ; No response
;resource change for yes
dta b(200) ; 0b11001000 - bits 7:money 6:population 5:army 4:health 3:happines 2:church
dta a(-100,-40) ; money
dta a(0,30) ; population
dta b(0,10) ; happines
;resource change for no
dta b(72) ; 0b1001000 - bits 7:money 6:population 5:army 4:health 3:happines 2:church
dta a(0,-50) ; population
dta b(0,-5) ; happines
;requirements
dta 0 ; requirement count (max 2)
card_betrayal_jester
dta 0 ; type 0:resource_card 1:gamble_card
dta a(actor_jester) ; actor pointer
dta a(txt_desc_betrayal) ; common description / question
; Mam wrażenie Panie, że ktoś spiskuje
dta a(txt_quote_betrayal_jester) ; actor sentence
; powinniśmy ograniczyć wpływy kościoła.
dta a(txt_yes_yes) ; yes response
dta a(txt_no_no_way) ; No response
;resource change for yes
dta b(204) ; 0b11001100 - bits 7:money 6:population 5:army 4:health 3:happines 2:church
dta a(0,50) ; money
dta a(0,-20) ; population
dta b(0,-5) ; happines
dta b(-2,-8) ; church
;resource change for no
dta b(4) ; 0b100 - bits 7:money 6:population 5:army 4:health 3:happines 2:church
dta b(0,3) ; church
;requirements
dta 0 ; requirement count (max 2)
card_luck_check_bishop
dta 0 ; type 0:resource_card 1:gamble_card
dta a(actor_bishop) ; actor pointer
dta a(txt_desc_luck_check) ; common description / question
; Zobaczmy czy sprzyja władcy szczęście
dta a(txt_quote_luck_check_bishop) ; actor sentence
; Hojna ofiara pomoże uzyskać łaski...
dta a(txt_yes_generosity) ; yes response
dta a(txt_no_no_chance) ; No response
;resource change for yes
dta b(212) ; 0b11010100 - bits 7:money 6:population 5:army 4:health 3:happines 2:church
dta a(-100,-100) ; money
dta a(-10,10) ; population
dta b(0,3) ; health
dta b(2,8) ; church
;resource change for no
dta b(12) ; 0b1100 - bits 7:money 6:population 5:army 4:health 3:happines 2:church
dta b(0,-3) ; happines
dta b(-5,-10) ; church
;requirements
dta 0 ; requirement count (max 2)
card_betrayal_stargazer
dta 0 ; type 0:resource_card 1:gamble_card
dta a(actor_stargazer) ; actor pointer
dta a(txt_desc_betrayal) ; common description / question
; Mam wrażenie Panie, że ktoś spiskuje
dta a(txt_quote_betrayal_stargazer) ; actor sentence
; Gwiazdy mówią, aby inwestować w armię.
dta a(txt_yes_ofc) ; yes response
dta a(txt_no_rather_no) ; No response
;resource change for yes
dta b(168) ; 0b10101000 - bits 7:money 6:population 5:army 4:health 3:happines 2:church
dta a(-50,-100) ; money
dta a(5,10) ; army
dta b(-2,2) ; happines
;resource change for no
dta b(0) ; 0b0 - bits 7:money 6:population 5:army 4:health 3:happines 2:church
;requirements
dta 0 ; requirement count (max 2)
card_luck_check_stargazer
dta 0 ; type 0:resource_card 1:gamble_card
dta a(actor_stargazer) ; actor pointer
dta a(txt_desc_luck_check) ; common description / question
; Zobaczmy czy sprzyja władcy szczęście
dta a(txt_quote_luck_check_stargazer) ; actor sentence
; Czy postawić najjaśniejszemu horoskop?
dta a(txt_yes_great_idea) ; yes response
dta a(txt_no_overstatement) ; No response
;resource change for yes
dta b(220) ; 0b11011100 - bits 7:money 6:population 5:army 4:health 3:happines 2:church
dta a(-30,-80) ; money
dta a(-20,20) ; population
dta b(-2,2) ; health
dta b(-5,5) ; happines
dta b(-1,-3) ; church
;resource change for no
dta b(4) ; 0b100 - bits 7:money 6:population 5:army 4:health 3:happines 2:church
dta b(2,5) ; church
;requirements
dta 0 ; requirement count (max 2)
card_luck_check_treasurer
dta 0 ; type 0:resource_card 1:gamble_card
dta a(actor_treasurer) ; actor pointer
dta a(txt_desc_luck_check) ; common description / question
; Zobaczmy czy sprzyja władcy szczęście
dta a(txt_quote_luck_check_treasurer) ; actor sentence
; Zainwestujmy w drogocenne kruszce!
dta a(txt_yes_yes) ; yes response
dta a(txt_no_no_way) ; No response
;resource change for yes
dta b(140) ; 0b10001100 - bits 7:money 6:population 5:army 4:health 3:happines 2:church
dta a(-200,200) ; money
dta b(-3,3) ; happines
dta b(-1,-3) ; church
;resource change for no
dta b(0) ; 0b0 - bits 7:money 6:population 5:army 4:health 3:happines 2:church
;requirements
dta 0 ; requirement count (max 2)
card_give_gold_knight
dta 0 ; type 0:resource_card 1:gamble_card
dta a(actor_knight) ; actor pointer
dta a(txt_desc_give_gold) ; common description / question
; Najjaśniejszy Panie, potrzeba nam złota
dta a(txt_quote_give_gold_knight) ; actor sentence
; Zorganizujmy turniej rycerski!
dta a(txt_yes_generosity) ; yes response
dta a(txt_no_overstatement) ; No response
;resource change for yes
dta b(236) ; 0b11101100 - bits 7:money 6:population 5:army 4:health 3:happines 2:church
dta a(-70,-120) ; money
dta a(5,20) ; population
dta a(10,20) ; army
dta b(2,5) ; happines
dta b(1,3) ; church
;resource change for no
dta b(40) ; 0b101000 - bits 7:money 6:population 5:army 4:health 3:happines 2:church
dta a(-5,-10) ; army
dta b(-3,-8) ; happines
;requirements
dta 0 ; requirement count (max 2)
card_luck_check_medic
dta 0 ; type 0:resource_card 1:gamble_card
dta a(actor_medic) ; actor pointer
dta a(txt_desc_luck_check) ; common description / question
; Zobaczmy czy sprzyja władcy szczęście
dta a(txt_quote_luck_check_medic) ; actor sentence
; Mam dla Pana nowy lek z dalekiego kraju
dta a(txt_yes_yes) ; yes response
dta a(txt_no_rather_no) ; No response
;resource change for yes
dta b(144) ; 0b10010000 - bits 7:money 6:population 5:army 4:health 3:happines 2:church
dta a(-20,0) ; money
dta b(-5,5) ; health
;resource change for no
dta b(0) ; 0b0 - bits 7:money 6:population 5:army 4:health 3:happines 2:church
;requirements
dta 0 ; requirement count (max 2)
card_enemy_approach_general
dta 0 ; type 0:resource_card 1:gamble_card
dta a(actor_general) ; actor pointer
dta a(txt_desc_enemy_approach) ; common description / question
; Wrogowie stoją u bram miasta!
dta a(txt_quote_enemy_approach_general) ; actor sentence
; Panie, ogłośmy powszechną mobilizację!
dta a(txt_yes_ofc) ; yes response
dta a(txt_no_overstatement) ; No response
;resource change for yes
dta b(160) ; 0b10100000 - bits 7:money 6:population 5:army 4:health 3:happines 2:church
dta a(-20,-60) ; money
dta a(10,15) ; army
;resource change for no
dta b(120) ; 0b1111000 - bits 7:money 6:population 5:army 4:health 3:happines 2:church
dta a(-30,-100) ; population
dta a(0,-10) ; army
dta b(0,-3) ; health
dta b(0,-2) ; happines
;requirements
dta 0 ; requirement count (max 2)
card_dragon_peasant
dta 0 ; type 0:resource_card 1:gamble_card
dta a(actor_peasant) ; actor pointer
dta a(txt_desc_dragon) ; common description / question
; W królestwie grasuje okrutny smok!
dta a(txt_quote_dragon_peasant) ; actor sentence
; Panie wyślij armię, chroń nasz dobytek.
dta a(txt_yes_ofc) ; yes response
dta a(txt_no_go_away) ; No response
;resource change for yes
dta b(104) ; 0b1101000 - bits 7:money 6:population 5:army 4:health 3:happines 2:church
dta a(0,10) ; population
dta a(-10,-20) ; army
dta b(0,5) ; happines
;resource change for no
dta b(72) ; 0b1001000 - bits 7:money 6:population 5:army 4:health 3:happines 2:church
dta a(-20,-50) ; population
dta b(-2,-5) ; happines
;requirements
dta 0 ; requirement count (max 2)
card_betrayal_executioner
dta 0 ; type 0:resource_card 1:gamble_card
dta a(actor_executioner) ; actor pointer
dta a(txt_desc_betrayal) ; common description / question
; Mam wrażenie Panie, że ktoś spiskuje
dta a(txt_quote_betrayal_executioner) ; actor sentence
; Może zetniemy na pokaz kilku zdrajców?
dta a(txt_yes_great_idea) ; yes response
dta a(txt_no_overstatement) ; No response
;resource change for yes
dta b(76) ; 0b1001100 - bits 7:money 6:population 5:army 4:health 3:happines 2:church
dta a(-20,-50) ; population
dta b(-1,-5) ; happines
dta b(0,5) ; church
;resource change for no
dta b(144) ; 0b10010000 - bits 7:money 6:population 5:army 4:health 3:happines 2:church
dta a(-100,-10) ; money
dta b(-2,-5) ; health
;requirements
dta 0 ; requirement count (max 2)
card_betrayal_bishop
dta 0 ; type 0:resource_card 1:gamble_card
dta a(actor_bishop) ; actor pointer
dta a(txt_desc_betrayal) ; common description / question
; Mam wrażenie Panie, że ktoś spiskuje
dta a(txt_quote_betrayal_bishop) ; actor sentence
; Wypędźmy wrogów kościoła z kraju.
dta a(txt_yes_let_it_be) ; yes response
dta a(txt_no_rather_no) ; No response
;resource change for yes
dta b(204) ; 0b11001100 - bits 7:money 6:population 5:army 4:health 3:happines 2:church
dta a(0,10) ; money
dta a(-10,-100) ; population
dta b(-5,-10) ; happines
dta b(5,10) ; church
;resource change for no
dta b(164) ; 0b10100100 - bits 7:money 6:population 5:army 4:health 3:happines 2:church
dta a(-10,-50) ; money
dta a(3,8) ; army
dta b(-2,-5) ; church
;requirements
dta 0 ; requirement count (max 2)
card_luck_check_executioner
dta 0 ; type 0:resource_card 1:gamble_card
dta a(actor_executioner) ; actor pointer
dta a(txt_desc_luck_check) ; common description / question
; Zobaczmy czy sprzyja władcy szczęście
dta a(txt_quote_luck_check_executioner) ; actor sentence
; Zetnijmy kogoś na chybił trafił!
dta a(txt_yes_great_idea) ; yes response
dta a(txt_no_overstatement) ; No response
;resource change for yes
dta b(204) ; 0b11001100 - bits 7:money 6:population 5:army 4:health 3:happines 2:church
dta a(-50,50) ; money
dta a(-1,-5) ; population
dta b(-5,5) ; happines
dta b(-3,3) ; church
;resource change for no
dta b(0) ; 0b0 - bits 7:money 6:population 5:army 4:health 3:happines 2:church
;requirements
dta 0 ; requirement count (max 2)
card_crime_rises_general
dta 0 ; type 0:resource_card 1:gamble_card
dta a(actor_general) ; actor pointer
dta a(txt_desc_crime_rises) ; common description / question
; Przestępczość rośnie Jaśniepanie
dta a(txt_quote_crime_rises_general) ; actor sentence
; Zwiększmy patrole! Więcej wojska!
dta a(txt_yes_generosity) ; yes response
dta a(txt_no_no_way) ; No response
;resource change for yes
dta b(232) ; 0b11101000 - bits 7:money 6:population 5:army 4:health 3:happines 2:church
dta a(40,120) ; money
dta a(0,10) ; population
dta a(3,10) ; army
dta b(1,5) ; happines
;resource change for no
dta b(232) ; 0b11101000 - bits 7:money 6:population 5:army 4:health 3:happines 2:church
dta a(-10,-80) ; money
dta a(-5,-30) ; population
dta a(-1,-5) ; army
dta b(-1,-3) ; happines
;requirements
dta 0 ; requirement count (max 2)
card_dragon_jester
dta 0 ; type 0:resource_card 1:gamble_card
dta a(actor_jester) ; actor pointer
dta a(txt_desc_dragon) ; common description / question
; W królestwie grasuje okrutny smok!
dta a(txt_quote_dragon_jester) ; actor sentence
; Najlepszy moment by pozbyć się dziewic!
dta a(txt_yes_great_idea) ; yes response
dta a(txt_no_rather_no) ; No response
;resource change for yes
dta b(76) ; 0b1001100 - bits 7:money 6:population 5:army 4:health 3:happines 2:church
dta a(-10,-20) ; population
dta b(-1,-3) ; happines
dta b(-2,-5) ; church
;resource change for no
dta b(232) ; 0b11101000 - bits 7:money 6:population 5:army 4:health 3:happines 2:church
dta a(-50,-10) ; money
dta a(-50,-150) ; population
dta a(-5,-20) ; army
dta b(0,-5) ; happines
;requirements
dta 0 ; requirement count (max 2)
card_dragon_knight
dta 0 ; type 0:resource_card 1:gamble_card
dta a(actor_knight) ; actor pointer
dta a(txt_desc_dragon) ; common description / question
; W królestwie grasuje okrutny smok!
dta a(txt_quote_dragon_knight) ; actor sentence
; Pozwól Panie, że spróbuje ubić gada.
dta a(txt_yes_ofc) ; yes response
dta a(txt_no_rather_no) ; No response
;resource change for yes
dta b(184) ; 0b10111000 - bits 7:money 6:population 5:army 4:health 3:happines 2:church
dta a(100,300) ; money
dta a(-10,-50) ; army
dta b(-1,-1) ; health
dta b(2,5) ; happines
;resource change for no
dta b(200) ; 0b11001000 - bits 7:money 6:population 5:army 4:health 3:happines 2:church
dta a(-10,-50) ; money
dta a(-30,-100) ; population
dta b(-2,-5) ; happines
;requirements
dta 0 ; requirement count (max 2)
card_disease_medic
dta 0 ; type 0:resource_card 1:gamble_card
dta a(actor_medic) ; actor pointer
dta a(txt_desc_disease) ; common description / question
; Wybuchła zaraza, czarna śmierć w kraju
dta a(txt_quote_disease_medic) ; actor sentence
; Potrzeba pieniędzy na nowe szpitale.
dta a(txt_yes_generosity) ; yes response
dta a(txt_no_no_chance) ; No response
;resource change for yes
dta b(136) ; 0b10001000 - bits 7:money 6:population 5:army 4:health 3:happines 2:church
dta a(-50,-150) ; money
dta b(2,5) ; happines
;resource change for no
dta b(124) ; 0b1111100 - bits 7:money 6:population 5:army 4:health 3:happines 2:church
dta a(-20,-100) ; population
dta a(-2,-5) ; army
dta b(-1,-5) ; health
dta b(-1,-5) ; happines
dta b(3,8) ; church
;requirements
dta 0 ; requirement count (max 2)
card_disease_peasant
dta 0 ; type 0:resource_card 1:gamble_card
dta a(actor_peasant) ; actor pointer
dta a(txt_desc_disease) ; common description / question
; Wybuchła zaraza, czarna śmierć w kraju
dta a(txt_quote_disease_peasant) ; actor sentence
; Chcemy schronić się w murach miasta.
dta a(txt_yes_let_it_be) ; yes response
dta a(txt_no_go_away) ; No response
;resource change for yes
dta b(252) ; 0b11111100 - bits 7:money 6:population 5:army 4:health 3:happines 2:church
dta a(10,50) ; money
dta a(-10,-40) ; population
dta a(-1,-5) ; army
dta b(0,-2) ; health
dta b(2,8) ; happines
dta b(2,5) ; church
;resource change for no
dta b(72) ; 0b1001000 - bits 7:money 6:population 5:army 4:health 3:happines 2:church
dta a(-20,-60) ; population
dta b(-2,-5) ; happines
;requirements
dta 0 ; requirement count (max 2)
card_betrayal_treasurer
dta 0 ; type 0:resource_card 1:gamble_card
dta a(actor_treasurer) ; actor pointer
dta a(txt_desc_betrayal) ; common description / question
; Mam wrażenie Panie, że ktoś spiskuje
dta a(txt_quote_betrayal_treasurer) ; actor sentence
; A może czas zbudować sieć wywiadowczą?
dta a(txt_yes_yes) ; yes response
dta a(txt_no_overstatement) ; No response
;resource change for yes
dta b(236) ; 0b11101100 - bits 7:money 6:population 5:army 4:health 3:happines 2:church
dta a(-20,-50) ; money
dta a(-10,-50) ; population
dta a(2,5) ; army
dta b(-1,-1) ; happines
dta b(2,5) ; church
;resource change for no
dta b(16) ; 0b10000 - bits 7:money 6:population 5:army 4:health 3:happines 2:church
dta b(-2,-5) ; health
;requirements
dta 0 ; requirement count (max 2)
card_neardeath_death
dta 0 ; type 0:resource_card 1:gamble_card
dta a(actor_death) ; actor pointer
dta a(txt_desc_neardeath) ; common description / question
; Podupadłeś na zdrowiu jaśniepanie.
dta a(txt_quote_neardeath_death) ; actor sentence
; Możesz poświęcić życie kilku poddanych.
dta a(txt_yes_yes) ; yes response
dta a(txt_no_go_away) ; No response
;resource change for yes
dta b(92) ; 0b1011100 - bits 7:money 6:population 5:army 4:health 3:happines 2:church
dta a(-50,-150) ; population
dta b(10,20) ; health
dta b(-5,-10) ; happines
dta b(-3,-5) ; church
;resource change for no
dta b(0) ; 0b0 - bits 7:money 6:population 5:army 4:health 3:happines 2:church
;requirements
dta 1 ; requirement count (max 2)
dta 4 ; reqired_param - 0:none 1:money 2:population 3:army 4:health 5:happines 6:church 7:year
dta 2 ; reqired_how - 0:equal 1:greater than 2:lower than 3:gte 4:lte
dta f(20) ; required amount
card_trade_devil
dta 0 ; type 0:resource_card 1:gamble_card
dta a(actor_devil) ; actor pointer
dta a(txt_desc_trade) ; common description / question
; Witam najjaśniejszego, pohandlujemy?
dta a(txt_quote_trade_devil) ; actor sentence
; Za Twą dusze, bogactwa oddam wielkie.
dta a(txt_yes_let_it_be) ; yes response
dta a(txt_no_no_way) ; No response
;resource change for yes
dta b(156) ; 0b10011100 - bits 7:money 6:population 5:army 4:health 3:happines 2:church
dta a(200,500) ; money
dta b(0,-5) ; health
dta b(0,-5) ; happines
dta b(-3,-6) ; church
;resource change for no
dta b(0) ; 0b0 - bits 7:money 6:population 5:army 4:health 3:happines 2:church
;requirements
dta 1 ; requirement count (max 2)
dta 6 ; reqired_param - 0:none 1:money 2:population 3:army 4:health 5:happines 6:church 7:year
dta 2 ; reqired_how - 0:equal 1:greater than 2:lower than 3:gte 4:lte
dta f(30) ; required amount
card_welcome_angel
dta 0 ; type 0:resource_card 1:gamble_card
dta a(actor_angel) ; actor pointer
dta a(txt_desc_welcome) ; common description / question
; Witam sprawiedliwego jaśniepana.
dta a(txt_quote_welcome_angel) ; actor sentence
; Oferuję swe łaski za hojną ofiarę.
dta a(txt_yes_generosity) ; yes response
dta a(txt_no_rather_no) ; No response
;resource change for yes
dta b(252) ; 0b11111100 - bits 7:money 6:population 5:army 4:health 3:happines 2:church
dta a(-200,-300) ; money
dta a(30,60) ; population
dta a(10,20) ; army
dta b(3,5) ; health
dta b(1,5) ; happines
dta b(5,10) ; church
;resource change for no
dta b(4) ; 0b100 - bits 7:money 6:population 5:army 4:health 3:happines 2:church
dta b(-10,-20) ; church
;requirements
dta 1 ; requirement count (max 2)
dta 6 ; reqired_param - 0:none 1:money 2:population 3:army 4:health 5:happines 6:church 7:year
dta 1 ; reqired_how - 0:equal 1:greater than 2:lower than 3:gte 4:lte
dta f(70) ; required amount
card_bigarmy_general
dta 0 ; type 0:resource_card 1:gamble_card
dta a(actor_general) ; actor pointer
dta a(txt_desc_bigarmy) ; common description / question
; Nasza armia jest już potężna,
dta a(txt_quote_bigarmy_general) ; actor sentence
; może złupimy sąsiedni kraj?
dta a(txt_yes_great_idea) ; yes response
dta a(txt_no_overstatement) ; No response
;resource change for yes
dta b(236) ; 0b11101100 - bits 7:money 6:population 5:army 4:health 3:happines 2:church
dta a(200,500) ; money
dta a(-10,-50) ; population
dta a(-10,-30) ; army
dta b(-3,-5) ; happines
dta b(-1,-5) ; church
;resource change for no
dta b(4) ; 0b100 - bits 7:money 6:population 5:army 4:health 3:happines 2:church
dta b(2,5) ; church
;requirements
dta 1 ; requirement count (max 2)
dta 3 ; reqired_param - 0:none 1:money 2:population 3:army 4:health 5:happines 6:church 7:year
dta 1 ; reqired_how - 0:equal 1:greater than 2:lower than 3:gte 4:lte
dta f(99) ; required amount
card_unhappy_bishop
dta 0 ; type 0:resource_card 1:gamble_card
dta a(actor_bishop) ; actor pointer
dta a(txt_desc_unhappy) ; common description / question
; Lud niespokojny ostatnimi czasy,
dta a(txt_quote_unhappy_bishop) ; actor sentence
; może trzeba urządzić wielką procesję?
dta a(txt_yes_great_idea) ; yes response
dta a(txt_no_go_away) ; No response
;resource change for yes
dta b(140) ; 0b10001100 - bits 7:money 6:population 5:army 4:health 3:happines 2:church
dta a(-10,-50) ; money
dta b(10,20) ; happines
dta b(2,5) ; church
;resource change for no
dta b(4) ; 0b100 - bits 7:money 6:population 5:army 4:health 3:happines 2:church
dta b(-1,-5) ; church
;requirements
dta 1 ; requirement count (max 2)
dta 5 ; reqired_param - 0:none 1:money 2:population 3:army 4:health 5:happines 6:church 7:year
dta 2 ; reqired_how - 0:equal 1:greater than 2:lower than 3:gte 4:lte
dta f(30) ; required amount
; cards size: 984 bytes
; global data size: 4669 bytes
images_data
frame
; RLE compresed data. Size before 90 size after: 47
dta $01,$2B,$0E,$00,$03,$AC,$A3,$0E,$AA,$03,$8F,$80,$0E,$00,$03,$03
dta $F3,$0E,$FF,$03,$8F,$23,$0E,$00,$03,$8C,$A2,$0E,$AA,$03,$8F,$80
dta $0E,$00,$03,$03,$F3,$0E,$FF,$03,$CF,$3F,$0E,$00,$01,$FC,$00
logo
; RLE compresed data. Size before 1600 size after: 881
dta $24,$00,$03,$01,$40,$4A,$00,$03,$01,$40,$4A,$00,$03,$05,$50,$42
dta $00,$13,$01,$50,$00,$00,$05,$50,$00,$00,$05,$40,$3A,$00,$13,$02
dta $54,$00,$00,$55,$55,$00,$00,$15,$80,$3A,$00,$13,$03,$55,$50,$01
dta $55,$55,$40,$05,$55,$C0,$3C,$00,$0F,$55,$54,$01,$55,$55,$40,$15
dta $55,$3E,$00,$0F,$95,$55,$01,$A5,$5A,$40,$55,$56,$3E,$00,$0F,$D5
dta $6A,$02,$F9,$6F,$80,$A9,$57,$3E,$00,$0F,$25,$BF,$03,$0D,$70,$C0
dta $FE,$58,$3E,$00,$0F,$35,$C0,$00,$01,$40,$00,$03,$5C,$3E,$00,$0F
dta $05,$40,$00,$05,$50,$00,$01,$50,$3E,$00,$0F,$09,$50,$00,$15,$54
dta $00,$05,$60,$3E,$00,$0F,$0D,$55,$00,$55,$55,$00,$55,$70,$3E,$00
dta $01,$01,$0A,$55,$01,$40,$3E,$00,$01,$01,$0A,$55,$01,$40,$3E,$00
dta $01,$02,$0A,$55,$01,$80,$3E,$00,$0F,$03,$55,$56,$AA,$AA,$95,$55
dta $C0,$40,$00,$0B,$AA,$AB,$FF,$FF,$EA,$AA,$42,$00,$0B,$FF,$FC,$00
dta $00,$3F,$FF,$C2,$00,$0B,$05,$50,$00,$00,$01,$54,$14,$00,$07,$15
dta $55,$55,$54,$24,$00,$23,$09,$50,$00,$00,$01,$58,$00,$55,$55,$50
dta $00,$55,$00,$00,$05,$50,$00,$15,$04,$55,$1F,$00,$15,$55,$55,$54
dta $00,$05,$55,$55,$00,$00,$54,$00,$15,$55,$55,$04,$00,$0D,$0D,$54
dta $00,$00,$05,$5C,$05,$04,$55,$21,$00,$95,$40,$00,$15,$60,$00,$15
dta $AA,$AA,$95,$40,$15,$55,$55,$54,$00,$04,$55,$07,$50,$00,$54,$00
dta $04,$55,$A1,$40,$00,$00,$02,$54,$00,$00,$05,$60,$15,$55,$A5,$55
dta $40,$E5,$50,$00,$55,$B0,$00,$15,$FF,$FF,$E5,$40,$16,$AA,$AA,$A8
dta $01,$55,$6A,$95,$54,$00,$54,$01,$55,$AA,$95,$40,$00,$00,$03,$55
dta $00,$00,$15,$70,$55,$AA,$FA,$A5,$50,$39,$54,$01,$56,$C0,$00,$15
dta $00,$00,$35,$40,$17,$FF,$FF,$FC,$05,$5A,$BF,$EA,$55,$00,$54,$01
dta $5A,$FF,$EA,$80,$04,$00,$2B,$95,$00,$00,$15,$81,$56,$FF,$0F,$F9
dta $54,$0E,$55,$05,$5B,$00,$00,$15,$00,$00,$05,$40,$14,$04,$00,$17
dta $15,$6F,$C0,$3F,$AA,$00,$54,$01,$5F,$00,$3F,$C0,$04,$00,$2B,$E5
dta $40,$00,$56,$C1,$5B,$00,$00,$0E,$54,$03,$95,$55,$6C,$00,$00,$15
dta $00,$00,$15,$40,$14,$04,$00,$11,$15,$B0,$00,$00,$FF,$00,$54,$01
dta $55,$0A,$00,$21,$35,$50,$01,$57,$01,$5C,$00,$00,$03,$54,$00,$E5
dta $55,$B0,$00,$00,$15,$04,$55,$0D,$40,$15,$55,$55,$40,$15,$C0,$06
dta $00,$09,$54,$01,$55,$55,$54,$06,$00,$0B,$09,$50,$01,$58,$01,$50
dta $04,$00,$0F,$54,$00,$35,$56,$C0,$00,$00,$15,$04,$55,$21,$80,$15
dta $55,$55,$40,$15,$00,$00,$55,$55,$40,$54,$02,$95,$55,$55,$40,$04
dta $00,$0B,$0D,$54,$05,$5C,$01,$50,$04,$00,$07,$54,$00,$15,$55,$04
dta $00,$29,$15,$55,$55,$5A,$C0,$16,$AA,$AA,$80,$15,$00,$00,$55,$55
dta $40,$54,$03,$EA,$A5,$55,$40,$04,$00,$49,$02,$55,$15,$60,$01,$50
dta $00,$00,$01,$54,$00,$55,$95,$40,$00,$00,$15,$AA,$A5,$5F,$00,$17
dta $FF,$FF,$C0,$15,$00,$00,$AA,$95,$80,$54,$00,$3F,$FA,$A5,$50,$04
dta $00,$2B,$03,$95,$15,$B0,$01,$54,$00,$00,$01,$58,$01,$56,$E5,$50
dta $00,$00,$15,$FF,$F9,$54,$00,$14,$04,$00,$17,$25,$40,$00,$FF,$55
dta $C0,$54,$00,$00,$0F,$F9,$50,$06,$00,$29,$D5,$55,$C0,$02,$55,$40
dta $00,$15,$5C,$05,$5B,$39,$54,$00,$00,$15,$00,$0E,$55,$00,$14,$04
dta $00,$0D,$35,$54,$00,$01,$56,$00,$54,$04,$00,$03,$05,$50,$06,$00
dta $09,$25,$56,$00,$03,$95,$04,$55,$21,$60,$15,$6C,$0E,$55,$00,$00
dta $15,$00,$03,$95,$40,$15,$55,$55,$54,$09,$04,$55,$07,$57,$00,$54
dta $05,$04,$55,$01,$60,$06,$00,$3F,$39,$5B,$00,$00,$E9,$55,$55,$56
dta $B0,$55,$B0,$03,$95,$40,$00,$15,$00,$00,$E5,$40,$15,$55,$55,$54
dta $0E,$95,$55,$55,$68,$00,$54,$05,$04,$55,$01,$B0,$06,$00,$47,$0E
dta $6C,$00,$00,$3E,$95,$55,$6B,$C0,$56,$C0,$00,$E5,$40,$00,$15,$00
dta $00,$35,$40,$15,$55,$55,$54,$03,$E9,$55,$56,$BC,$00,$54,$09,$55
dta $55,$5A,$C0,$06,$00,$45,$03,$B0,$00,$00,$03,$EA,$AA,$BC,$00,$AB
dta $00,$00,$3A,$80,$00,$2A,$00,$00,$0A,$80,$2A,$AA,$AA,$A8,$00,$3E
dta $AA,$AB,$C0,$00,$A8,$0E,$AA,$AA,$AF,$0A,$00,$01,$C0,$04,$00,$3F
dta $3F,$FF,$C0,$00,$FC,$00,$00,$0F,$C0,$00,$3F,$00,$00,$0F,$C0,$3F
dta $FF,$FF,$FC,$00,$03,$FF,$FC,$00,$00,$FC,$03,$FF,$FF,$F0,$00,$00
dta $00
tak_sprite
tak_s0 dta 192,192,249,249,249,249,249,249,249,249,249,249 ;XRLE
tak_s1 dta 62,60,252,248,249,249,243,243,240,224,231,231 ;XRLE
tak_s2 dta 252,124,124,60,60,60,156,156,28,12,204,204 ;XRLE
tak_s3 dta 243,227,199,143,31,63,63,31,143,199,227,243 ;XRLE
nie_sprite
nie_s0 dta 249,248,248,248,248,249,249,249,249,249,249,249 ;XRLE
nie_s1 dta 230,230,230,102,102,38,38,134,134,198,198,230 ;XRLE
nie_s2 dta 96,96,103,103,103,96,96,103,103,103,96,96 ;XRLE
nie_s3 dta 31,31,255,255,255,127,127,255,255,255,31,31 ;XRLE
status_bar
; RLE compresed data. Size before 58 size after: 29
dta $03,$04,$40,$0A,$00,$03,$42,$40,$0A,$00,$03,$46,$40,$2A,$00,$03
dta $48,$40,$0A,$00,$03,$4A,$40,$0A,$00,$03,$47,$40,$00
face_vox_regis
; RLE compresed data. Size before 320 size after: 264
dta $14,$00,$03,$02,$C0,$0A,$00,$03,$01,$80,$06,$00,$7B,$18,$00,$19
dta $A4,$00,$18,$00,$00,$15,$00,$55,$96,$00,$6C,$00,$00,$05,$40,$49
dta $A2,$01,$A0,$00,$00,$06,$00,$01,$80,$00,$B0,$00,$00,$05,$80,$05
dta $B0,$01,$B0,$00,$00,$01,$68,$15,$AC,$16,$80,$00,$00,$01,$55,$55
dta $A9,$6A,$C0,$00,$00,$01,$55,$55,$AA,$AA,$C0,$04,$00,$07,$55,$56
dta $EA,$AB,$06,$00,$07,$BF,$00,$00,$FF,$24,$00,$8B,$20,$02,$09,$60
dta $80,$08,$00,$00,$10,$01,$27,$D8,$60,$24,$00,$00,$18,$09,$1C,$34
dta $D8,$9C,$00,$00,$34,$07,$10,$04,$36,$70,$00,$00,$04,$04,$10,$04
dta $09,$80,$00,$00,$06,$24,$10,$04,$27,$60,$00,$00,$0D,$1C,$10,$04
dta $DC,$DC,$00,$00,$01,$90,$18,$24,$70,$34,$00,$00,$03,$70,$35,$5C
dta $40,$04,$04,$00,$09,$C0,$0F,$F0,$C0,$0C,$20,$00,$AF,$05,$5C,$55
dta $43,$54,$15,$35,$70,$07,$E4,$7F,$CD,$FD,$37,$1F,$D0,$04,$04,$40
dta $07,$01,$04,$1C,$30,$04,$04,$40,$04,$00,$04,$36,$00,$05,$58,$55
dta $04,$15,$04,$0D,$80,$07,$DC,$7F,$04,$3D,$04,$03,$60,$04,$18,$40
dta $04,$01,$04,$00,$D0,$04,$34,$40,$06,$01,$04,$10,$10,$04,$04,$40
dta $0D,$8D,$04,$18,$10,$04,$04,$55,$43,$57,$15,$35,$70,$0C,$0C,$FF
dta $C0,$FC,$3F,$0F,$C0,$1E,$00,$00
face_angel
; RLE compresed data. Size before 320 size after: 309
dta $12,$00,$07,$55,$55,$5A,$A0,$04,$00,$09,$05,$B0,$00,$00,$E6,$04
dta $00,$01,$1B,$04,$00,$FF,$0E,$80,$00,$00,$18,$00,$56,$80,$02,$40
dta $00,$00,$18,$05,$56,$A8,$02,$40,$28,$20,$04,$15,$5A,$AA,$09,$02
dta $A8,$28,$00,$55,$5A,$AA,$80,$0A,$F8,$28,$00,$55,$5A,$AA,$80,$2B
dta $E8,$1A,$01,$6A,$AF,$FA,$A0,$2F,$A8,$16,$01,$AF,$FF,$FE,$A0,$AE
dta $AC,$16,$81,$AA,$BF,$FF,$A0,$BE,$FC,$15,$81,$A1,$B1,$FF,$E0,$BA
dta $F8,$25,$80,$A5,$B5,$FF,$E2,$BB,$E8,$25,$A0,$AA,$BF,$FF,$C2,$EB
dta $AC,$29,$60,$AA,$BF,$FF,$0A,$EF,$BC,$19,$68,$AA,$FF,$FF,$0A,$EE
dta $BC,$1A,$58,$2A,$BF,$FC,$2A,$AA,$E8,$16,$A8,$2A,$BF,$FC,$2A,$AA
dta $E8,$16,$A0,$2A,$03,$F0,$49,$00,$2A,$A8,$2A,$02,$0A,$BF,$C0,$FF
dta $02,$A8,$28,$2A,$8A,$BF,$C3,$FF,$F0,$28,$20,$AA,$82,$BF,$0F,$AA
dta $BF,$08,$02,$96,$A0,$00,$3E,$AA,$AB,$C8,$0A,$55,$04,$AA,$1D,$55
dta $5A,$C0,$09,$55,$6A,$56,$A5,$55,$56,$B0,$25,$55,$55,$B1,$04,$55
dta $09,$AC,$15,$55,$55,$B1,$04,$55,$09,$AC,$15,$55,$56,$BC,$04,$55
dta $79,$A8,$15,$55,$56,$BC,$55,$56,$55,$68,$15,$55,$5A,$BC,$55,$55
dta $95,$68,$15,$55,$5A,$BF,$D5,$55,$95,$68,$15,$55,$FA,$BF,$C1,$55
dta $65,$68,$15,$5F,$5A,$BF,$D4,$D5,$65,$68,$17,$F5,$5A,$BF,$D5,$4D
dta $55,$68,$15,$55,$5A,$BF,$D5,$57,$F5,$68,$15,$55,$5A,$BF,$04,$55
dta $09,$A8,$15,$55,$56,$BF,$04,$55,$11,$AC,$15,$55,$55,$F5,$55,$55
dta $5A,$BC,$0E,$00,$00
face_peasant
; RLE compresed data. Size before 320 size after: 250
dta $72,$00,$07,$01,$10,$08,$80,$04,$00,$09,$01,$45,$55,$56,$88,$06
dta $00,$07,$55,$6A,$AA,$A0,$04,$00,$09,$05,$56,$AA,$AB,$AA,$04,$00
dta $09,$01,$5A,$AA,$AF,$E8,$04,$00,$09,$01,$6A,$AA,$BF,$FA,$06,$00
dta $07,$6B,$FA,$FF,$F8,$06,$00,$07,$6A,$AF,$FF,$F8,$04,$00,$09,$02
dta $69,$6B,$D7,$FB,$04,$00,$09,$02,$E9,$2B,$C7,$F3,$04,$00,$09,$02
dta $EA,$AB,$FF,$F3,$06,$00,$07,$AA,$AB,$FF,$FC,$06,$00,$07,$3A,$A4
dta $FF,$30,$06,$00,$07,$3E,$BC,$3C,$30,$06,$00,$07,$2F,$FC,$00,$F0
dta $06,$00,$07,$2B,$FC,$03,$F0,$06,$00,$07,$2A,$11,$3F,$F0,$06,$00
dta $07,$2A,$AB,$FF,$C0,$04,$00,$45,$05,$FA,$AB,$FF,$C2,$80,$00,$05
dta $55,$7F,$AB,$FC,$06,$AA,$80,$15,$55,$5F,$FF,$C0,$55,$5A,$A8,$15
dta $55,$57,$FC,$05,$55,$55,$68,$15,$55,$55,$7F,$04,$55,$09,$54,$15
dta $55,$55,$5D,$04,$55,$09,$54,$15,$55,$59,$79,$04,$55,$19,$54,$15
dta $55,$56,$79,$D5,$55,$55,$54,$15,$55,$55,$79,$04,$55,$09,$54,$19
dta $55,$55,$E9,$04,$55,$29,$54,$25,$55,$65,$E9,$55,$55,$56,$54,$25
dta $55,$59,$E9,$D5,$55,$56,$94,$15,$55,$55,$E9,$04,$55,$09,$A4,$15
dta $55,$55,$E9,$04,$55,$01,$A4,$0E,$00,$00
face_devil
; RLE compresed data. Size before 320 size after: 283
dta $42,$00,$07,$50,$00,$01,$60,$04,$00,$09,$05,$C0,$00,$00,$1B,$04
dta $00,$01,$1B,$04,$00,$09,$06,$C0,$00,$00,$6C,$04,$00,$09,$06,$C0
dta $00,$00,$6C,$04,$00,$41,$06,$F0,$00,$00,$6B,$01,$56,$AA,$06,$F0
dta $00,$00,$1A,$D5,$56,$AA,$9B,$C0,$00,$00,$1A,$95,$55,$AA,$AF,$C0
dta $00,$00,$06,$55,$57,$FA,$AF,$04,$00,$09,$0A,$56,$AB,$FF,$AC,$04
dta $00,$09,$05,$56,$AA,$FF,$E8,$04,$00,$09,$05,$5A,$AA,$FF,$E8,$04
dta $00,$09,$15,$5A,$EA,$FC,$E8,$04,$00,$09,$15,$5A,$12,$C4,$EA,$04
dta $00,$AF,$15,$6A,$AA,$FF,$EA,$80,$00,$00,$15,$6A,$AA,$FF,$EA,$80
dta $00,$00,$55,$6A,$AB,$FF,$EA,$A0,$00,$00,$55,$7A,$AA,$FF,$EA,$A0
dta $00,$00,$55,$7A,$AA,$BF,$EA,$A8,$00,$01,$55,$BA,$B0,$0F,$FA,$AA
dta $00,$01,$56,$BE,$AF,$FF,$3F,$AA,$00,$05,$5A,$FE,$AB,$FF,$0F,$FE
dta $80,$15,$AB,$F3,$AF,$FF,$00,$FF,$F0,$16,$FF,$FC,$FF,$FC,$03,$FF
dta $FC,$1F,$FF,$FF,$00,$00,$0F,$FF,$FC,$3F,$04,$FF,$13,$00,$FF,$C0
dta $0C,$30,$00,$FF,$FF,$CF,$FC,$06,$00,$7B,$0F,$FA,$BF,$C0,$0F,$F0
dta $0F,$FC,$03,$F8,$BF,$03,$FF,$FC,$3F,$FF,$C0,$FA,$BC,$3F,$FF,$FC
dta $3F,$FF,$F0,$3F,$E0,$FF,$FF,$EC,$3F,$FF,$FC,$0F,$C2,$FF,$FE,$FC
dta $3F,$FF,$FF,$03,$03,$EE,$EF,$FC,$3F,$FF,$FF,$30,$33,$FF,$FF,$FC
dta $3F,$FF,$FF,$3F,$F3,$FF,$FF,$FC,$0E,$00,$00
face_death
; RLE compresed data. Size before 320 size after: 293
dta $16,$00,$05,$05,$55,$5A,$06,$00,$09,$05,$5A,$AA,$AA,$A0,$04,$00
dta $03,$56,$A8,$08,$00,$03,$15,$AA,$08,$00,$05,$01,$6A,$80,$08,$00
dta $03,$06,$A8,$0A,$00,$03,$5A,$A0,$08,$00,$27,$05,$AA,$80,$00,$0A
dta $AB,$00,$00,$1A,$AA,$00,$02,$AF,$FF,$F0,$00,$2E,$A8,$00,$2B,$04
dta $FF,$09,$00,$0E,$A8,$00,$BF,$04,$FF,$07,$C0,$0B,$A0,$02,$06,$FF
dta $07,$F0,$03,$80,$03,$06,$FF,$FF,$F0,$02,$C0,$0B,$FC,$00,$FF,$FF
dta $FC,$00,$80,$0F,$C3,$F0,$FC,$FF,$FC,$00,$B0,$2C,$1F,$FC,$3F,$FF
dta $FC,$00,$20,$20,$40,$F0,$0F,$3F,$FC,$00,$2C,$20,$84,$F1,$0F,$3F
dta $FC,$00,$08,$20,$80,$30,$0F,$CF,$FC,$00,$08,$20,$2F,$FF,$C3,$CF
dta $FC,$00,$0B,$20,$2A,$FF,$C3,$CF,$FC,$00,$02,$08,$6A,$0F,$F3,$FF
dta $FC,$00,$02,$C8,$AB,$0F,$C3,$EF,$FC,$00,$00,$88,$0A,$F3,$03,$EF
dta $FC,$00,$08,$83,$08,$88,$C3,$AF,$FC,$00,$2C,$23,$00,$00,$03,$BF
dta $FC,$00,$BF,$2C,$C1,$A0,$03,$BF,$FC,$0A,$FF,$08,$F0,$BC,$0F,$BF
dta $BC,$2F,$CF,$C8,$3C,$2C,$0E,$FF,$89,$BC,$3F,$CF,$CB,$0F,$00,$0E
dta $FE,$BC,$3F,$F3,$C2,$33,$F0,$3F,$FE,$FC,$3F,$F3,$F2,$3C,$3F,$3B
dta $FE,$FC,$3F,$FC,$F2,$CF,$C0,$FF,$FB,$FC,$3F,$FC,$F0,$8F,$F3,$BF
dta $FB,$FC,$3F,$FF,$FC,$B3,$CF,$FF,$EF,$FC,$3F,$FF,$3C,$23,$3E,$FF
dta $FF,$FC,$3F,$FF,$FF,$20,$FB,$FE,$FF,$FC,$3F,$FF,$FF,$30,$04,$FF
dta $01,$FC,$0E,$00,$00
face_knight
; RLE compresed data. Size before 320 size after: 288
dta $14,$00,$03,$2A,$F0,$0A,$00,$03,$AB,$FC,$0A,$00,$03,$AF,$FF,$0A
dta $00,$05,$AF,$FF,$C0,$08,$00,$05,$AF,$EF,$C0,$08,$00,$09,$2B,$CB
dta $F0,$03,$C0,$04,$00,$09,$16,$C2,$FC,$0C,$B0,$04,$00,$45,$16,$C0
dta $BC,$00,$30,$00,$00,$01,$55,$54,$3F,$00,$20,$00,$00,$15,$56,$AE
dta $8F,$F0,$B0,$00,$00,$55,$A6,$AF,$F0,$FF,$C0,$00,$00,$56,$A6,$AF
dta $F0,$06,$00,$07,$56,$A6,$AF,$F0,$04,$00,$09,$01,$56,$A6,$AF,$FC
dta $04,$00,$0B,$55,$56,$A6,$AF,$FF,$F0,$06,$00,$01,$06,$08,$00,$09
dta $03,$A8,$66,$CB,$FC,$04,$00,$09,$03,$A9,$66,$EB,$FC,$06,$00,$07
dta $EA,$AA,$FF,$F0,$06,$00,$07,$EA,$A7,$FF,$F0,$06,$00,$FF,$EA,$A7
dta $FF,$F0,$00,$00,$2A,$A0,$FB,$FF,$03,$00,$FA,$A8,$33,$38,$FF,$AA
dta $F0,$03,$CC,$CC,$2A,$A8,$FF,$B0,$30,$03,$FF,$FC,$15,$54,$3F,$AA
dta $F0,$0F,$AA,$A8,$15,$55,$0F,$FC,$00,$3E,$AA,$A8,$2A,$95,$43,$FC
dta $00,$FA,$AF,$FC,$2A,$A9,$50,$FC,$03,$EA,$FF,$FC,$2A,$AA,$54,$00
dta $0F,$AB,$FF,$FC,$2A,$AA,$95,$EA,$8F,$AF,$FF,$FC,$2A,$AA,$A5,$EA
dta $8F,$BF,$FF,$A8,$16,$AA,$AF,$CA,$00,$FF,$FA,$A8,$15,$AA,$AE,$B0
dta $3C,$FF,$EA,$BC,$25,$6A,$BE,$BA,$3C,$3F,$AA,$F8,$29,$5A,$BA,$FA
dta $0F,$3E,$AB,$E8,$1A,$55,$7A,$EA,$8F,$2A,$AF,$A8,$16,$95,$1B,$7A
dta $E5,$8F,$2A,$BE,$A8,$15,$A5,$7A,$EA,$8F,$2A,$FA,$A8,$0E,$00,$00
face_bishop
; RLE compresed data. Size before 320 size after: 226
dta $24,$00,$01,$05,$0C,$00,$01,$06,$0C,$00,$03,$5A,$A0,$0A,$00,$03
dta $6B,$F0,$0A,$00,$01,$0B,$0C,$00,$01,$0B,$0A,$00,$05,$09,$56,$A8
dta $08,$00,$05,$14,$08,$03,$08,$00,$07,$10,$08,$00,$C0,$06,$00,$07
dta $10,$08,$00,$C0,$06,$00,$07,$10,$08,$00,$C0,$06,$00,$07,$10,$0C
dta $00,$C0,$06,$00,$07,$04,$0C,$03,$C0,$06,$00,$05,$07,$FF,$FF,$08
dta $00,$05,$0E,$AA,$FF,$08,$00,$05,$0A,$AF,$FF,$08,$00,$07,$0A,$AF
dta $FF,$C0,$06,$00,$07,$A9,$7D,$7F,$FC,$06,$00,$07,$A9,$2D,$3F,$F3
dta $06,$00,$07,$AA,$AF,$FF,$C3,$06,$00,$07,$2A,$AF,$FF,$FC,$06,$00
dta $07,$2A,$BF,$FF,$F0,$06,$00,$07,$2A,$AB,$FF,$C0,$04,$00,$55,$0A
dta $2A,$C3,$FF,$CF,$C0,$00,$00,$AC,$2A,$BE,$FF,$C0,$FF,$00,$0A,$C0
dta $2A,$AB,$FF,$00,$0F,$F0,$2F,$00,$0A,$AA,$AF,$00,$00,$FC,$3C,$00
dta $00,$FF,$F0,$00,$00,$3C,$30,$00,$00,$58,$04,$00,$01,$0C,$04,$00
dta $01,$58,$0C,$00,$01,$E8,$1C,$00,$01,$80,$1A,$00,$01,$02,$04,$00
dta $01,$0C,$0C,$00,$01,$03,$04,$00,$01,$08,$04,$00,$03,$03,$C0,$0E
dta $00,$00
face_general
; RLE compresed data. Size before 320 size after: 282
dta $2A,$00,$03,$01,$C0,$0A,$00,$03,$07,$C0,$0A,$00,$03,$1B,$C0,$0A
dta $00,$01,$6F,$04,$00,$1F,$2A,$AA,$AA,$C0,$BC,$00,$00,$02,$BF,$FF
dta $FF,$FE,$F0,$00,$00,$0B,$06,$FF,$04,$00,$01,$2F,$06,$FF,$07,$C0
dta $00,$00,$BF,$04,$FF,$63,$FC,$F0,$00,$00,$FF,$F0,$00,$00,$FC,$30
dta $00,$00,$FF,$C3,$FF,$FC,$0C,$0C,$00,$00,$FF,$CA,$BF,$FF,$CF,$0C
dta $00,$00,$3F,$0A,$AA,$BF,$C3,$0C,$00,$00,$0F,$3B,$FF,$FF,$F3,$30
dta $00,$00,$03,$39,$6F,$5F,$33,$C0,$04,$00,$07,$3A,$2F,$3F,$30,$06
dta $00,$07,$0A,$AF,$FF,$C0,$06,$00,$07,$2A,$9F,$FF,$C0,$06,$00,$07
dta $2A,$9B,$FF,$C0,$04,$00,$FF,$01,$3A,$F0,$3C,$C4,$00,$00,$15,$01
dta $2F,$F0,$03,$C5,$01,$54,$3E,$A5,$2A,$55,$6F,$C5,$AA,$FC,$2A,$BE
dta $2A,$AA,$AF,$CB,$FE,$A8,$2B,$FE,$0A,$AA,$AF,$0B,$FF,$E8,$2F,$FF
dta $82,$AA,$BC,$2F,$FF,$F8,$3F,$FF,$E0,$FF,$F0,$BF,$FF,$F8,$3F,$FF
dta $F8,$00,$02,$FF,$FF,$F8,$3F,$FF,$FE,$A0,$AB,$FF,$FF,$FC,$3F,$FF
dta $FF,$E0,$BF,$FF,$FF,$FC,$27,$AB,$9B,$E0,$BF,$FF,$FF,$FC,$27,$AB
dta $9B,$E5,$BE,$E7,$96,$FC,$27,$AB,$9B,$DF,$7E,$69,$AE,$F8,$2F,$EF
dta $EF,$DB,$7F,$FF,$FF,$E8,$2B,$DF,$9B,$EA,$FD,$D7,$7F,$AC,$2B,$57
dta $57,$E2,$BF,$FF,$FE,$BC,$2F,$1D,$DF,$9B,$E0,$AF,$FF,$EA,$FC,$3F
dta $FF,$FF,$E0,$EA,$FF,$AF,$FC,$0E,$00,$00
face_trasurer
; RLE compresed data. Size before 320 size after: 274
dta $32,$00,$07,$06,$AA,$AA,$80,$06,$00,$07,$0B,$C0,$00,$C0,$06,$00
dta $07,$0B,$C0,$00,$C0,$06,$00,$07,$0B,$C0,$00,$C0,$06,$00,$07,$0B
dta $C0,$00,$C0,$06,$00,$07,$0B,$C0,$00,$C0,$06,$00,$07,$0B,$C0,$00
dta $C0,$06,$00,$07,$0B,$C0,$00,$C0,$06,$00,$07,$0B,$C0,$00,$C0,$06
dta $00,$07,$06,$BF,$FF,$C0,$06,$00,$07,$06,$BF,$FF,$C0,$04,$00,$0B
dta $05,$55,$55,$AA,$AF,$C0,$04,$00,$07,$0A,$BF,$FF,$C0,$06,$00,$07
dta $0A,$AA,$BF,$C0,$06,$00,$07,$3B,$FF,$FF,$F0,$06,$00,$07,$3A,$5D
dta $7F,$30,$06,$00,$07,$3A,$1C,$7F,$30,$06,$00,$07,$0A,$AF,$FF,$C0
dta $06,$00,$07,$0A,$AF,$FF,$C0,$06,$00,$07,$0A,$BF,$FF,$C0,$06,$00
dta $07,$0A,$AA,$FF,$C0,$04,$00,$ED,$01,$4A,$AA,$BF,$CA,$C0,$00,$00
dta $17,$8A,$95,$FF,$C3,$FF,$00,$01,$7E,$02,$AA,$BF,$00,$FF,$F0,$07
dta $F8,$02,$AA,$BC,$00,$3F,$FC,$1F,$E0,$00,$AA,$FC,$00,$0F,$FC,$3F
dta $80,$00,$FF,$F0,$00,$03,$FC,$3F,$FF,$FC,$00,$03,$FF,$FF,$FC,$3F
dta $FD,$58,$30,$C2,$AB,$FF,$FC,$3F,$FF,$80,$30,$C0,$2F,$FF,$FC,$3F
dta $FF,$E0,$30,$C0,$BF,$FF,$FC,$3F,$FF,$F8,$30,$C2,$FE,$FF,$FC,$3C
dta $FF,$FC,$0F,$03,$F8,$3C,$FC,$3C,$BF,$FE,$0F,$0B,$E0,$0C,$BC,$3C
dta $BF,$FF,$CF,$0F,$FF,$FC,$BC,$3C,$BF,$FF,$8F,$2F,$FF,$FC,$BC,$0E
dta $00,$00
face_medic
; RLE compresed data. Size before 320 size after: 237
dta $84,$00,$03,$0A,$BC,$0A,$00,$05,$AA,$AF,$C0,$06,$00,$07,$02,$AA
dta $AB,$F0,$06,$00,$07,$0A,$AA,$AB,$F0,$06,$00,$07,$09,$5F,$FF,$F0
dta $06,$00,$07,$07,$F6,$AA,$FC,$06,$00,$07,$06,$27,$8B,$CC,$06,$00
dta $07,$06,$A7,$FF,$FC,$06,$00,$07,$09,$5B,$FF,$E0,$06,$00,$07,$0A
dta $AB,$FF,$A0,$06,$00,$07,$0A,$AF,$FF,$A0,$06,$00,$07,$02,$AA,$FF
dta $A0,$06,$00,$07,$02,$AA,$FE,$80,$06,$00,$07,$A1,$B0,$3A,$8F,$04
dta $00,$FF,$02,$01,$6A,$AA,$80,$C0,$00,$00,$08,$01,$55,$5A,$00,$30
dta $00,$00,$08,$A0,$55,$6A,$28,$30,$00,$00,$0E,$A8,$55,$68,$2A,$F0
dta $00,$02,$AF,$A8,$15,$A0,$AB,$EA,$80,$09,$5B,$EA,$00,$02,$AF,$AA
dta $A0,$25,$55,$FA,$55,$6A,$BE,$55,$A8,$15,$55,$7E,$55,$6B,$F9,$55
dta $68,$15,$55,$7E,$95,$AF,$D5,$55,$54,$15,$55,$5F,$95,$BD,$55,$55
dta $54,$15,$55,$57,$D6,$F5,$55,$55,$54,$15,$55,$55,$D7,$D5,$55,$55
dta $54,$15,$55,$55,$FF,$55,$69,$55,$54,$16,$55,$55,$7E,$55,$AA,$56
dta $54,$16,$55,$55,$7E,$55,$AA,$56,$94,$16,$55,$55,$7E,$55,$69,$56
dta $94,$16,$0D,$55,$55,$7E,$55,$55,$56,$94,$0E,$00,$00
face_executioner
; RLE compresed data. Size before 320 size after: 284
dta $36,$00,$01,$5A,$0A,$00,$05,$05,$AA,$BC,$08,$00,$05,$1A,$AA,$FF
dta $08,$00,$07,$6A,$AB,$FF,$C0,$04,$00,$09,$01,$AA,$AB,$F3,$F0,$04
dta $00,$09,$06,$AA,$AA,$F0,$F0,$04,$00,$09,$1A,$AA,$AA,$BC,$3C,$04
dta $00,$09,$1A,$AA,$AA,$BC,$0F,$04,$00,$09,$6A,$AA,$AA,$BF,$03,$04
dta $00,$0F,$6A,$AA,$AA,$AF,$33,$C0,$00,$00,$04,$AA,$09,$AF,$0F,$C0
dta $00,$01,$04,$AA,$FF,$AF,$C0,$00,$00,$01,$A0,$AA,$02,$BF,$C0,$00
dta $00,$02,$A3,$EB,$F2,$BF,$C0,$00,$00,$02,$A1,$EB,$72,$BF,$C0,$00
dta $00,$06,$AC,$28,$3E,$FF,$F0,$00,$00,$06,$AA,$AA,$AB,$FF,$F0,$00
dta $00,$0A,$AA,$AF,$AF,$FF,$F3,$E0,$00,$1A,$AA,$BF,$FF,$FF,$F0,$F8
dta $02,$DA,$A0,$00,$03,$FF,$FC,$F8,$37,$DA,$A3,$FF,$F0,$FF,$FC,$3C
dta $37,$DA,$A3,$96,$FC,$FF,$FF,$3C,$3B,$DA,$83,$FF,$F0,$FF,$FF,$3C
dta $37,$EA,$83,$FF,$C0,$FF,$FC,$3C,$3B,$EA,$80,$00,$00,$FF,$FC,$FC
dta $3B,$EA,$8F,$00,$00,$FF,$F0,$F8,$3B,$FA,$8F,$C0,$3C,$3F,$C3,$F8
dta $3A,$FA,$8F,$C0,$FF,$85,$3F,$0F,$EC,$3E,$FE,$8F,$F3,$FF,$3C,$FF
dta $BC,$3E,$BF,$CF,$F3,$FF,$03,$FE,$FC,$3F,$AF,$FF,$C3,$FF,$FF,$EB
dta $FC,$3F,$EF,$FF,$CF,$FF,$FE,$BF,$F0,$0F,$EB,$FF,$CF,$FF,$EB,$FF
dta $CC,$03,$FA,$BF,$CF,$FA,$BF,$FF,$0C,$30,$FF,$AA,$AA,$AF,$FF,$FC
dta $3C,$3C,$3F,$FF,$3F,$FF,$FF,$C0,$FC,$0E,$00,$00
face_jester
; RLE compresed data. Size before 320 size after: 288
dta $16,$00,$01,$0F,$0C,$00,$03,$2E,$80,$0A,$00,$03,$BE,$40,$0A,$00
dta $03,$B1,$10,$08,$00,$05,$02,$B0,$40,$04,$00,$07,$AB,$00,$02,$F0
dta $04,$00,$09,$02,$FF,$E0,$0A,$F0,$04,$00,$09,$08,$03,$FE,$0A,$F0
dta $04,$00,$09,$04,$00,$3F,$8B,$FC,$04,$00,$09,$11,$00,$2F,$FF,$FC
dta $04,$00,$0B,$04,$00,$0B,$FF,$FF,$A8,$06,$00,$01,$06,$04,$FF,$01
dta $A0,$04,$00,$09,$05,$BF,$FF,$FF,$FC,$04,$00,$03,$05,$AF,$04,$FF
dta $04,$00,$57,$06,$AF,$FF,$F0,$0F,$C0,$00,$00,$0F,$FF,$FF,$C0,$00
dta $C0,$00,$00,$0A,$AA,$F0,$00,$00,$40,$00,$00,$1A,$FF,$FF,$00,$01
dta $10,$00,$00,$1A,$BE,$FF,$C0,$00,$40,$00,$00,$6A,$C2,$B0,$C0,$06
dta $00,$07,$7A,$86,$B8,$C0,$06,$00,$07,$AA,$AA,$AF,$C0,$06,$00,$07
dta $3A,$AA,$AF,$CF,$06,$00,$09,$0A,$AA,$FF,$C3,$FC,$04,$00,$6D,$42
dta $AA,$AF,$C0,$FF,$00,$00,$05,$62,$AB,$FF,$00,$FF,$C0,$00,$16,$A0
dta $AD,$5F,$00,$FF,$F0,$00,$5A,$A8,$AA,$BF,$00,$FF,$F0,$01,$6A,$A8
dta $2A,$FC,$02,$FF,$F0,$05,$AA,$AA,$03,$F0,$0B,$FF,$F0,$06,$AA,$AA
dta $A0,$00,$2F,$FF,$C0,$06,$04,$AA,$09,$A0,$2F,$FF,$08,$02,$04,$AA
dta $3B,$A0,$3F,$FC,$2C,$10,$AA,$AA,$AF,$FC,$3F,$F0,$BC,$2C,$2A,$AB
dta $FF,$FC,$0F,$00,$3C,$2F,$00,$FF,$FF,$FC,$00,$2C,$0C,$3F,$08,$04
dta $00,$15,$02,$BF,$00,$3C,$2A,$FC,$2A,$FF,$0B,$FF,$C0,$0E,$00,$00
face_stargazer
; RLE compresed data. Size before 320 size after: 284
dta $24,$00,$03,$55,$54,$08,$00,$69,$55,$FF,$FD,$56,$80,$00,$00,$05
dta $EF,$FF,$FF,$CF,$EC,$00,$00,$1B,$EF,$FF,$FF,$CF,$03,$00,$00,$1B
dta $FB,$FF,$FF,$3C,$00,$C0,$00,$1A,$FB,$FF,$FF,$3C,$00,$C0,$00,$0A
dta $BE,$FF,$FC,$F0,$03,$00,$00,$02,$AE,$3F,$FC,$C0,$0C,$04,$00,$09
dta $AB,$AA,$AA,$00,$30,$04,$00,$09,$2A,$AA,$AB,$C0,$C0,$04,$00,$07
dta $1A,$AA,$AF,$FB,$06,$00,$07,$5A,$FF,$FF,$FE,$06,$00,$F9,$6A,$5A
dta $97,$FF,$80,$00,$00,$01,$7A,$46,$47,$F3,$A0,$00,$00,$01,$6A,$AA
dta $FF,$FF,$A8,$00,$00,$05,$5A,$AA,$FF,$EA,$A8,$00,$00,$15,$56,$AA
dta $FE,$AA,$AA,$00,$00,$15,$56,$AF,$FD,$AA,$AA,$00,$00,$95,$55,$55
dta $59,$AA,$BE,$00,$02,$AA,$55,$6F,$D5,$AA,$FF,$F0,$0A,$AA,$55,$BF
dta $D6,$AB,$FF,$FC,$2A,$AA,$55,$55,$5A,$AF,$FF,$FC,$3F,$EA,$95,$55
dta $AA,$BF,$FF,$00,$03,$FA,$95,$55,$AA,$BF,$F0,$00,$00,$3E,$95,$56
dta $AA,$FF,$00,$00,$10,$0F,$D5,$56,$AA,$F0,$02,$00,$08,$03,$D5,$56
dta $AA,$C0,$08,$C0,$20,$00,$D5,$5A,$AB,$00,$03,$04,$00,$05,$35,$56
dta $A8,$06,$00,$09,$04,$01,$5A,$A0,$80,$04,$00,$09,$12,$01,$5A,$82
dta $20,$04,$00,$09,$08,$00,$5A,$00,$80,$08,$00,$01,$20,$0C,$00,$07
dta $30,$00,$00,$08,$06,$00,$23,$80,$00,$00,$23,$00,$10,$00,$80,$C0
dta $20,$00,$0C,$00,$08,$02,$30,$C0,$88,$14,$00,$00
.print "cards/actors size: ",(images_data - cards_list)
.print "gfx size: ",(* - images_data)
.print "global assets size: ",(* - cards_list)
.print "assets data ends at: ",*
.print "REMAINING SPACE: ",($9240 - *)
; RLE SAVED: 1389 bytes
; RLE DATA TOTAL SIZE: 4519 bytes
|
; A003132: Sum of squares of digits of n.
; Submitted by Simon Strandgaard
; 0,1,4,9,16,25,36,49,64,81,1,2,5,10,17,26,37,50,65,82,4,5,8,13,20,29,40,53,68,85,9,10,13,18,25,34,45,58,73,90,16,17,20,25,32,41,52,65,80,97,25,26,29,34,41,50,61,74,89,106,36,37,40,45,52,61,72,85,100,117,49,50,53,58,65,74,85,98,113,130,64,65,68,73,80,89,100,113,128,145,81,82,85,90,97,106,117,130,145,162
lpb $0
mov $2,$0
div $0,10
mod $2,10
pow $2,2
add $1,$2
lpe
mov $0,$1
|
;******************************************************************************
;
; call-ffl.asm
; IKForth
;
; Unlicense since 1999 by Illya Kysil
;
;******************************************************************************
; Words for calling functions implemented in foreign languages
;******************************************************************************
;******************************************************************************
; STDCALL
;******************************************************************************
MACRO $STDCALL [rregs] {
COMMON
PUSHRS EDI
POPDS EBX
CALL EBX
POPRS EDI
IRPS rreg, rregs \{
PUSHDS rreg
\}
}
; CALL-STDCALL-C0 (S addr -- )
; (G Call a procedure at addr with an STDCALL calling convention and no return value )
$CODE 'CALL-STDCALL-C0'
$STDCALL
$NEXT
; CALL-STDCALL-C1 (S addr -- x )
; (G Call a procedure at addr with an STDCALL calling convention and cell return value )
$CODE 'CALL-STDCALL-C1'
$STDCALL EAX
$NEXT
; CALL-STDCALL-C2 (S addr -- x1 x2 )
; (G Call a procedure at addr with an STDCALL calling convention and double cell return value )
$CODE 'CALL-STDCALL-C2'
$STDCALL EAX EDX
$NEXT
;******************************************************************************
; CDECL
;******************************************************************************
MACRO $CDECL [rregs] {
COMMON
PUSHRS EDI
POPDS EBX
POPDS ECX
PUSHRS ECX
CALL EBX
POPRS ECX
SHL ECX,2
ADD ESP,ECX
POPRS EDI
IRPS rreg, rregs \{
PUSHDS rreg
\}
}
; CALL-CDECL-C0 (S x1 .. xn n addr -- )
; (G Call a procedure at addr with an CDECL calling convention and no return value )
$CODE 'CALL-CDECL-C0'
$CDECL
$NEXT
; CALL-CDECL-C1 (S x1 .. xn n addr -- x )
; (G Call a procedure at addr with an CDECL calling convention and cell return value )
$CODE 'CALL-CDECL-C1'
$CDECL EAX
$NEXT
; CALL-CDECL-C2 (S x1 .. xn n addr -- x1 x2 )
; (G Call a procedure at addr with an CDECL calling convention and double cell return value )
$CODE 'CALL-CDECL-C2'
$CDECL EAX EDX
$NEXT
|
SECTION "Egg Moves 2", ROMX
EggMovePointers2::
dw ChikoritaEggMoves
dw NoEggMoves2
dw NoEggMoves2
dw CyndaquilEggMoves
dw NoEggMoves2
dw NoEggMoves2
dw TotodileEggMoves
dw NoEggMoves2
dw NoEggMoves2
dw SentretEggMoves
dw NoEggMoves2
dw HoothootEggMoves
dw NoEggMoves2
dw LedybaEggMoves
dw NoEggMoves2
dw SpinarakEggMoves
dw NoEggMoves2
dw NoEggMoves2
dw ChinchouEggMoves
dw NoEggMoves2
dw PichuEggMoves
dw CleffaEggMoves
dw IgglybuffEggMoves
dw TogepiEggMoves
dw NoEggMoves2
dw NatuEggMoves
dw NoEggMoves2
dw MareepEggMoves
dw NoEggMoves2
dw NoEggMoves2
dw NoEggMoves2
dw NoEggMoves2
dw NoEggMoves2
dw SudowoodoEggMoves
dw NoEggMoves2
dw HoppipEggMoves
dw NoEggMoves2
dw NoEggMoves2
dw AipomEggMoves
dw NoEggMoves2
dw NoEggMoves2
dw YanmaEggMoves
dw WooperEggMoves
dw NoEggMoves2
dw NoEggMoves2
dw NoEggMoves2
dw MurkrowEggMoves
dw NoEggMoves2
dw MisdreavusEggMoves
dw NoEggMoves2
dw NoEggMoves2
dw GirafarigEggMoves
dw PinecoEggMoves
dw NoEggMoves2
dw DunsparceEggMoves
dw GligarEggMoves
dw NoEggMoves2
dw SnubbullEggMoves
dw NoEggMoves2
dw QwilfishEggMoves
dw NoEggMoves2
dw ShuckleEggMoves
dw HeracrossEggMoves
dw SneaselEggMoves
dw TeddiursaEggMoves
dw NoEggMoves2
dw SlugmaEggMoves
dw NoEggMoves2
dw SwinubEggMoves
dw NoEggMoves2
dw CorsolaEggMoves
dw RemoraidEggMoves
dw NoEggMoves2
dw DelibirdEggMoves
dw MantineEggMoves
dw SkarmoryEggMoves
dw HoundourEggMoves
dw NoEggMoves2
dw NoEggMoves2
dw PhanpyEggMoves
dw NoEggMoves2
dw NoEggMoves2
dw StantlerEggMoves
dw NoEggMoves2
dw TyrogueEggMoves
dw NoEggMoves2
dw SmoochumEggMoves
dw ElekidEggMoves
dw MagbyEggMoves
dw MiltankEggMoves
dw NoEggMoves2
dw NoEggMoves2
dw NoEggMoves2
dw NoEggMoves2
dw LarvitarEggMoves
dw NoEggMoves2
dw NoEggMoves2
dw NoEggMoves2
dw NoEggMoves2
dw NoEggMoves2
ChikoritaEggMoves:
db VINE_WHIP
db LEECH_SEED
db COUNTER
db ANCIENTPOWER
db FLAIL
db SWORDS_DANCE
db -1 ; end
CyndaquilEggMoves:
db FURY_SWIPES
db QUICK_ATTACK
db REVERSAL
db THRASH
db FORESIGHT
db SUBMISSION
db -1 ; end
TotodileEggMoves:
db CRUNCH
db THRASH
db HYDRO_PUMP
db ANCIENTPOWER
db RAZOR_WIND
db ROCK_SLIDE
db -1 ; end
SentretEggMoves:
db DOUBLE_EDGE
db PURSUIT
db SLASH
db FOCUS_ENERGY
db REVERSAL
db -1 ; end
HoothootEggMoves:
db MIRROR_MOVE
db SUPERSONIC
db FAINT_ATTACK
db WING_ATTACK
db WHIRLWIND
db SKY_ATTACK
db -1 ; end
LedybaEggMoves:
db PSYBEAM
db BIDE
db LIGHT_SCREEN
db -1 ; end
SpinarakEggMoves:
db PSYBEAM
db DISABLE
db SONICBOOM
db BATON_PASS
db PURSUIT
db -1 ; end
ChinchouEggMoves:
db FLAIL
db SUPERSONIC
db SCREECH
db -1 ; end
PichuEggMoves:
db REVERSAL
db BIDE
db PRESENT
db ENCORE
db DOUBLESLAP
db -1 ; end
CleffaEggMoves:
db PRESENT
db METRONOME
db AMNESIA
db BELLY_DRUM
db SPLASH
db MIMIC
db -1 ; end
IgglybuffEggMoves:
db PERISH_SONG
db PRESENT
db FAINT_ATTACK
db -1 ; end
TogepiEggMoves:
db PRESENT
db MIRROR_MOVE
db PECK
db FORESIGHT
db FUTURE_SIGHT
db -1 ; end
NatuEggMoves:
db HAZE
db DRILL_PECK
db QUICK_ATTACK
db FAINT_ATTACK
db STEEL_WING
db -1 ; end
MareepEggMoves:
db THUNDERBOLT
db TAKE_DOWN
db BODY_SLAM
db SAFEGUARD
db SCREECH
db REFLECT
db -1 ; end
SudowoodoEggMoves:
db SELFDESTRUCT
db -1 ; end
HoppipEggMoves:
db CONFUSION
db GROWL
db ENCORE
db DOUBLE_EDGE
db REFLECT
db AMNESIA
db PAY_DAY
db -1 ; end
AipomEggMoves:
db COUNTER
db SCREECH
db PURSUIT
db AGILITY
db SPITE
db SLAM
db DOUBLESLAP
db BEAT_UP
db -1 ; end
YanmaEggMoves:
db WHIRLWIND
db REVERSAL
db LEECH_LIFE
db -1 ; end
WooperEggMoves:
db BODY_SLAM
db ANCIENTPOWER
db SAFEGUARD
db -1 ; end
MurkrowEggMoves:
db WHIRLWIND
db DRILL_PECK
db QUICK_ATTACK
db MIRROR_MOVE
db WING_ATTACK
db SKY_ATTACK
db -1 ; end
MisdreavusEggMoves:
db SCREECH
db DESTINY_BOND
db -1 ; end
GirafarigEggMoves:
db TAKE_DOWN
db AMNESIA
db FORESIGHT
db FUTURE_SIGHT
db BEAT_UP
db -1 ; end
PinecoEggMoves:
db REFLECT
db PIN_MISSILE
db FLAIL
db SWIFT
db -1 ; end
DunsparceEggMoves:
db BIDE
db ANCIENTPOWER
db ROCK_SLIDE
db BITE
db RAGE
db -1 ; end
GligarEggMoves:
db METAL_CLAW
db WING_ATTACK
db RAZOR_WIND
db COUNTER
db -1 ; end
SnubbullEggMoves:
db METRONOME
db FAINT_ATTACK
db REFLECT
db PRESENT
db CRUNCH
db HEAL_BELL
db LICK
db LEER
db -1 ; end
QwilfishEggMoves:
db FLAIL
db HAZE
db BUBBLEBEAM
db SUPERSONIC
db -1 ; end
ShuckleEggMoves:
db SWEET_SCENT
db -1 ; end
HeracrossEggMoves:
db HARDEN
db BIDE
db FLAIL
db -1 ; end
SneaselEggMoves:
db COUNTER
db SPITE
db FORESIGHT
db REFLECT
db BITE
db -1 ; end
TeddiursaEggMoves:
db CRUNCH
db TAKE_DOWN
db SEISMIC_TOSS
db FOCUS_ENERGY
db COUNTER
db METAL_CLAW
db -1 ; end
SlugmaEggMoves:
db ACID_ARMOR
db -1 ; end
SwinubEggMoves:
db TAKE_DOWN
db BITE
db BODY_SLAM
db ROCK_SLIDE
db ANCIENTPOWER
db -1 ; end
CorsolaEggMoves:
db ROCK_SLIDE
db SAFEGUARD
db SCREECH
db MIST
db AMNESIA
db -1 ; end
RemoraidEggMoves:
db AURORA_BEAM
db OCTAZOOKA
db SUPERSONIC
db HAZE
db SCREECH
db -1 ; end
DelibirdEggMoves:
db AURORA_BEAM
db QUICK_ATTACK
db FUTURE_SIGHT
db SPLASH
db RAPID_SPIN
db -1 ; end
MantineEggMoves:
db TWISTER
db HYDRO_PUMP
db HAZE
db SLAM
db -1 ; end
SkarmoryEggMoves:
db DRILL_PECK
db PURSUIT
db WHIRLWIND
db SKY_ATTACK
db -1 ; end
HoundourEggMoves:
db FIRE_SPIN
db RAGE
db PURSUIT
db COUNTER
db SPITE
db REVERSAL
db BEAT_UP
db -1 ; end
PhanpyEggMoves:
db FOCUS_ENERGY
db BODY_SLAM
db ANCIENTPOWER
db WATER_GUN
db -1 ; end
StantlerEggMoves:
db REFLECT
db SPITE
db DISABLE
db LIGHT_SCREEN
db BITE
db -1 ; end
TyrogueEggMoves:
db RAPID_SPIN
db HI_JUMP_KICK
db MACH_PUNCH
db MIND_READER
db -1 ; end
SmoochumEggMoves:
db MEDITATE
db -1 ; end
ElekidEggMoves:
db KARATE_CHOP
db BARRIER
db ROLLING_KICK
db MEDITATE
db CROSS_CHOP
db -1 ; end
MagbyEggMoves:
db KARATE_CHOP
db MEGA_PUNCH
db BARRIER
db SCREECH
db CROSS_CHOP
db -1 ; end
MiltankEggMoves:
db PRESENT
db REVERSAL
db SEISMIC_TOSS
db -1 ; end
LarvitarEggMoves:
db PURSUIT
db STOMP
db OUTRAGE
db FOCUS_ENERGY
db ANCIENTPOWER
db -1 ; end
NoEggMoves2:
dw -1 ; end
|
; A273408: Partial sums of the number of active (ON,black) cells in n-th stage of growth of two-dimensional cellular automaton defined by "Rule 675", based on the 5-celled von Neumann neighborhood.
; 1,6,27,72,149,266,431,652,937,1294,1731,2256,2877,3602,4439,5396,6481,7702,9067,10584,12261,14106,16127,18332,20729,23326,26131,29152,32397,35874,39591,43556,47777,52262,57019,62056,67381,73002,78927,85164,91721,98606,105827,113392,121309,129586,138231,147252,156657,166454,176651,187256,198277,209722,221599,233916,246681,259902,273587,287744,302381,317506,333127,349252,365889,383046,400731,418952,437717,457034,476911,497356,518377,539982,562179,584976,608381,632402,657047,682324,708241,734806,762027,789912,818469,847706,877631,908252,939577,971614,1004371,1037856,1072077,1107042,1142759,1179236,1216481,1254502,1293307,1332904,1373301,1414506,1456527,1499372,1543049,1587566,1632931,1679152,1726237,1774194,1823031,1872756,1923377,1974902,2027339,2080696,2134981,2190202,2246367,2303484,2361561,2420606,2480627,2541632,2603629,2666626,2730631,2795652,2861697
mul $0,2
mov $2,$0
add $2,$0
lpb $0,1
add $1,$2
add $2,$0
sub $0,1
lpe
div $1,2
add $1,1
|
// Copyright 2000-2021 Mark H. P. Lord
// TODO: have more information in error messages
// TODO: have some way of plugging in proper Unicode support for identifiers, whitespace, etc.
#include "XMLPullParser.h"
#include "NumberUtils.h"
#include "ScopedPtr.h"
#include "StringUtils.h"
#include "TextEncoding.h"
#include <memory>
// Leaving this in until I'm sure of the new code.
#define TEST_NAMESPACE_MAP 1
namespace Prime {
namespace {
const char cdataSectionHeader[] = "<![CDATA[";
const char doctypeHeader[] = "<!DOCTYPE";
inline bool IsXMLWhitespace(int c, bool lenient)
{
// TODO: UNICODE support
return (c <= 32 && (c == 10 || c == 13 || c == 32 || c == 9 || (lenient && (c == 12))));
}
#if 0
inline bool IsExtendedNameStartChar(uint32_t uch)
{
if (uch >= 0xc0 && uch <= 0xd6) return true;
if (uch >= 0xd8 && uch <= 0xf6) return true;
if (uch >= 0xf8 && uch <= 0x2ff) return true;
if (uch >= 0x370 && uch <= 0x37d) return true;
if (uch >= 0x37f && uch <= 0x1fff) return true;
if (uch >= 0x200c && uch <= 0x200d) return true;
if (uch >= 0x2070 && uch <= 0x218f) return true;
if (uch >= 0x2c00 && uch <= 0x2fef) return true;
if (uch >= 0x3001 && uch <= 0xd7ff) return true;
if (uch >= 0xf900 && uch <= 0xfdcf) return true;
if (uch >= 0xfdf0 && uch <= 0xfffd) return true;
if (uch >= 0x10000 && uch <= 0xeffff) return true;
return false;
}
inline bool IsExtendedNameChar(uint32_t uch)
{
if (IsExtendedNameStartChar(uch)) return true;
if (uch == 0xb7) return true;
if (uch >= 0x0300 && uch <= 0x036f) return true;
if (uch >= 0x203f && uch <= 0x2040) return true;
return false;
}
#endif
/// Returns true if the Unicode character is valid as the start of a name.
inline bool IsNameStartChar(int c, bool lenient)
{
if (lenient) {
return !IsXMLWhitespace(c, true) && !strchr("/>=", c);
} else {
// Testing for c > 127 covers all the Unicode cases in UTF-8, but it's not strict enough.
return (c > 127) || (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') || c == '_' || c == ':';
}
}
/// Returns true if the Unicode character is valid within a name.
inline bool IsNameChar(int c, bool lenient)
{
if (lenient) {
return IsNameStartChar(c, true);
} else {
// TODO: Unicode lookup
return IsNameStartChar(c, false) || (c >= '0' && c <= '9') || c == '.' || c == '-';
}
}
inline bool IsNameChar(int c, bool lenient, bool first)
{
return first ? IsNameStartChar(c, lenient) : IsNameChar(c, lenient);
}
inline bool IsXMLWhitespace(StringView string, bool lenient)
{
for (const char* ptr = string.begin(); ptr != string.end(); ++ptr) {
if (!IsXMLWhitespace(*ptr, lenient)) {
return false;
}
}
return true;
}
inline size_t CountLeadingWhitespace(const char* begin, size_t length, bool lenient)
{
const char* end = begin + length;
const char* ptr = begin;
while (ptr != end && IsXMLWhitespace(*ptr, lenient)) {
++ptr;
}
return ptr - begin;
}
inline size_t CountTrailingWhitespace(const char* begin, size_t length, bool lenient)
{
const char* end = begin + length;
const char* ptr = end;
while (ptr != begin && IsXMLWhitespace(ptr[-1], lenient)) {
--ptr;
}
return end - ptr;
}
inline bool IsXMLUnquotedAttributeValueChar(int c, bool lenient)
{
if (lenient) {
// HTML attributes are anything but whitespace and any of "\"'`=<>".
return !IsXMLWhitespace(c, true) && c != '>';
} else {
return (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') || (c >= '0' && c <= '9') || strchr("-._:", c) != NULL;
}
}
const XMLPullParser::Entity xmlEntities[] = {
// Note these are sorted.
{ "&", '&', NULL },
{ "'", '\'', NULL },
{ ">", '>', NULL },
{ "<", '<', NULL },
{ """, '"', NULL },
};
//
// HTML
//
// There's also the issue of implicit start elements, e.g., a <tr> implies a <table>
}
const XMLPullParser::Attribute XMLPullParser::emptyAttribute = { "", "", "", "" };
const char* XMLPullParser::getErrorDescription(ErrorCode error)
{
switch (error) {
case ErrorReadFailed:
return PRIME_LOCALISE("Read error");
case ErrorNone:
return PRIME_LOCALISE("Unknown error");
case ErrorUnexpectedWhitespace:
return PRIME_LOCALISE("Unexpected whitespace");
case ErrorUnknownEntity:
return PRIME_LOCALISE("Unknown entity reference");
case ErrorInvalidEntity:
return PRIME_LOCALISE("Invalid entity reference");
case ErrorInvalidCharacter:
return PRIME_LOCALISE("Invalid character");
case ErrorUnexpectedEndOfFile:
return PRIME_LOCALISE("Unexpected end of file");
case ErrorIllegalName:
return PRIME_LOCALISE("Invalid name");
case ErrorExpectedEquals:
return PRIME_LOCALISE("Expected = after attribute name");
case ErrorExpectedQuote:
return PRIME_LOCALISE("Expected \" enclosing attribute value");
case ErrorExpectedRightAngleBracket:
return PRIME_LOCALISE("Expected >");
case ErrorUnexpectedEndElement:
return PRIME_LOCALISE("Unexpected end element");
case ErrorMismatchedEndElement:
return PRIME_LOCALISE("Mismatched end element");
case ErrorExpectedText:
return PRIME_LOCALISE("Expected text but got an element or attribute");
case ErrorExpectedEmptyElement:
return PRIME_LOCALISE("Expected an empty element");
case ErrorTextOutsideElement:
return PRIME_LOCALISE("Text outside element");
case ErrorUnknownNamespace:
return PRIME_LOCALISE("Unknown namespace");
case ErrorIncorrectlyTerminatedComment:
return PRIME_LOCALISE("Incorrectly terminated comment");
case ErrorInvalidAttributeValue:
return PRIME_LOCALISE("Invalid character in attribute value");
case ErrorCDATATerminatorInText:
return PRIME_LOCALISE("]]> found in text");
case ErrorInvalidDocType:
return PRIME_LOCALISE("Invalid DOCTYPE");
case ErrorDuplicateAttribute:
return PRIME_LOCALISE("Attribute name occurs more than once");
case ErrorMultipleTopLevelElements:
return PRIME_LOCALISE("Multiple top-level elements");
}
return "unknown XML error";
}
const char* XMLPullParser::getTokenDescription(int token) const
{
switch (token) {
case TokenError:
return PRIME_LOCALISE("error");
case TokenEOF:
return PRIME_LOCALISE("end of file");
case TokenNone:
return PRIME_LOCALISE("null");
case TokenText:
return PRIME_LOCALISE("text");
case TokenProcessingInstruction:
return PRIME_LOCALISE("processing instruction");
case TokenStartElement:
return PRIME_LOCALISE("start element");
case TokenEndElement:
return PRIME_LOCALISE("end element");
case TokenComment:
return PRIME_LOCALISE("comment");
case TokenDocType:
return PRIME_LOCALISE("doctype");
}
return "unknown XML token";
}
void XMLPullParser::construct()
{
_textReader = NULL;
_options = Options();
_text.resize(0);
_text.reserve(2048);
_wholeText.reserve(2048);
_error = ErrorNone;
_emptyElement = false;
_popElement = 0;
_name = NULL;
_localName = NULL;
_qualifiedName = NULL;
_namespace = NULL;
_entities = ArrayView<const Entity>(xmlEntities, COUNTOF(xmlEntities));
_hadFirstTopLevelElement = false;
_lastToken = TokenNone;
}
XMLPullParser::~XMLPullParser()
{
deleteNamespaces();
}
void XMLPullParser::deleteNamespaces()
{
NamespaceMap::iterator iter = _namespaces.begin();
NamespaceMap::iterator end = _namespaces.end();
for (; iter != end; ++iter) {
while (iter->second) {
Namespace* nspace = iter->second;
iter->second = nspace->prev;
delete nspace;
}
}
}
int XMLPullParser::setError(ErrorCode code)
{
_error = code;
getLog()->error("%s", getErrorDescription(code));
return TokenError;
}
void XMLPullParser::warn(ErrorCode code)
{
getLog()->warning("%s", getErrorDescription(code));
}
bool XMLPullParser::setErrorReturnFalseUnlessLenient(ErrorCode code)
{
if (isLenient()) {
warn(code);
return true;
}
setError(code);
return false;
}
void XMLPullParser::init(TextReader* textReader, const Options& options)
{
_options = options;
_textReader = textReader;
_lastToken = TokenNone;
if (_options.getHTMLEntities()) {
setUserEntities(GetHTMLEntities());
}
if (_options.getHTMLMode()) {
addEmptyElements(GetHTMLEmptyElements(), "");
}
}
bool XMLPullParser::equalNames(const char* a, const char* b) const
{
return (_options.getCaseInsensitiveNames()) ? ASCIIEqualIgnoringCase(a, b) : StringsEqual(a, b);
}
bool XMLPullParser::equalNamespaces(const char* a, const char* b)
{
return ASCIIEqualIgnoringCase(a ? a : "", b ? b : "");
}
void XMLPullParser::addEmptyElements(ArrayView<const char*> elements, const char* namespaceForAll)
{
const char* const* e = elements.end();
NameAndNamespace nns = { 0, namespaceForAll };
for (const char* const* p = elements.begin(); p != e; ++p) {
nns.name = _stringTable.intern(*p);
_emptyElements.push_back(nns);
}
}
bool XMLPullParser::isEmptyElement(const char* name, const char* nspace) const
{
// TODO: binary search (sort the array in addEmptyElements)
std::vector<NameAndNamespace>::const_iterator i = _emptyElements.begin();
std::vector<NameAndNamespace>::const_iterator e = _emptyElements.end();
for (; i != e; ++i) {
if (equalNames(i->name, name) && equalNamespaces(i->nspace, nspace)) {
return true;
}
}
return false;
}
void XMLPullParser::setUserEntities(ArrayView<const Entity> entities)
{
_entities = entities;
}
int XMLPullParser::read()
{
// Once we encounter an error, keep returning error.
if (_lastToken == TokenError) {
return TokenError;
}
_lastToken = read2();
return _lastToken;
}
int XMLPullParser::read2()
{
if (_emptyElement) {
_emptyElement = false;
_popElement = 1;
return TokenEndElement;
}
if (_popElement) {
--_popElement;
popElement();
if (_popElement != 0) {
return TokenEndElement;
}
}
_text.resize(0);
int token;
do {
int c = _textReader->peekChar();
if (c < 0) {
if (c == TextReader::ErrorChar) {
readFailed();
return TokenError;
}
if (c == TextReader::EOFChar) {
if (_elements.empty()) {
if (!_hadFirstTopLevelElement) {
if (!isLenient()) {
return setError(ErrorUnexpectedEndOfFile);
}
warn(ErrorUnexpectedEndOfFile);
}
return TokenEOF;
}
if (isLenient()) {
warn(ErrorUnexpectedEndOfFile);
// Auto-pop the remaining elements.
_popElement = (int)_elements.size();
setNameAndDetermineNamespace(_elements.back().name);
return TokenEndElement;
}
return setError(ErrorUnexpectedEndOfFile);
}
}
if (c == '<' && (!inScript() || _textReader->hasString("</"))) {
token = parseElement();
} else {
token = parseText();
}
} while (token == TokenNone);
return token;
}
int XMLPullParser::next()
{
for (;;) {
int got = read();
switch ((Token)got) {
case TokenStartElement:
case TokenText:
case TokenEndElement:
return got;
case TokenEOF:
case TokenError:
return got;
case TokenProcessingInstruction:
case TokenComment:
case TokenDocType:
case TokenNone:
break;
}
// Loop and skip to next token
}
}
XMLPullParser::Attribute XMLPullParser::getAttribute(size_t index) const
{
PRIME_ASSERT(index < getAttributeCount());
return getAttributeCheckIndex((ptrdiff_t)index);
}
XMLPullParser::Attribute XMLPullParser::getAttributeCheckIndex(ptrdiff_t index) const
{
Attribute a;
if (index < 0) {
a = emptyAttribute;
} else {
const InternedAttribute& ia = _elements.back().attributes[index];
a.qualifiedName = ia.qualifiedName;
a.nspace = ia.nspace;
a.localName = ia.localName;
a.value = _elements.back().values.data() + ia.valueOffset;
}
return a;
}
ptrdiff_t XMLPullParser::getAttributeIndex(StringView localName) const
{
for (size_t i = 0; i != getAttributeCount(); ++i) {
const InternedAttribute& ia = _elements.back().attributes[i];
if (StringsEqual(ia.localName, localName)) {
return (ptrdiff_t)i;
}
}
return -1;
}
ptrdiff_t XMLPullParser::getAttributeIndex(StringView localName, StringView nspace) const
{
for (size_t i = 0; i != getAttributeCount(); ++i) {
const InternedAttribute& ia = _elements.back().attributes[i];
if (StringsEqual(ia.localName, localName) && StringsEqual(ia.nspace, nspace)) {
return (ptrdiff_t)i;
}
}
return -1;
}
XMLPullParser::Attribute XMLPullParser::getAttribute(StringView localName) const
{
return getAttributeCheckIndex(getAttributeIndex(localName));
}
XMLPullParser::Attribute XMLPullParser::getAttribute(StringView localName, StringView nspace) const
{
return getAttributeCheckIndex(getAttributeIndex(localName, nspace));
}
int XMLPullParser::parseElement()
{
PRIME_DEBUG_ASSERT(_textReader->peekChar(0) == '<');
int c1 = _textReader->peekChar(1);
int result;
bool skipable = false;
if (c1 == '?') {
result = parseProcessingInstruction();
} else if (c1 == '!') {
result = parseExclamation();
} else if (c1 == '/') {
result = parseEndElement(&skipable);
} else {
result = parseStartElement(&skipable);
}
if (result == TokenError) {
if (skipable) {
// parseEndElement and parseStartElement will rewind
_textReader->skipChar();
return TokenNone;
}
}
return result;
}
int XMLPullParser::parseExclamation()
{
PRIME_DEBUG_ASSERT(_textReader->peekChar(0) == '<' && _textReader->peekChar(1) == '!');
int c2 = _textReader->peekChar(2);
int c3 = _textReader->peekChar(3);
if (c2 == '-' && c3 == '-') {
return parseComment();
}
if (c2 == '[' && c3 == 'C' && _textReader->hasString(cdataSectionHeader)) {
return parseCDATA();
}
if (_textReader->hasString(doctypeHeader)) {
return parseDocType();
}
if (!isStrict()) {
warn(ErrorInvalidDocType);
return parseDocType();
}
return setError(ErrorInvalidDocType);
}
bool XMLPullParser::addUnicodeChar(uint32_t n)
{
if (n & UINT32_C(0x80000000)) {
return setErrorReturnFalseUnlessLenient(ErrorInvalidCharacter);
}
uint8_t ch[7];
size_t len = UTF8Encode(ch, (int32_t)n);
ch[len] = 0;
if (!ch[0]) {
return setErrorReturnFalseUnlessLenient(ErrorInvalidCharacter);
}
_text.append((char*)ch, len);
return true;
}
bool XMLPullParser::processHexCharacterNumber()
{
PRIME_DEBUG_ASSERT(_textReader->peekChar() == '&' && _textReader->peekChar(1) == '#' && (_textReader->peekChar(2) == 'x' || _textReader->peekChar(2) == 'X'));
_textReader->skipChars(3);
uint32_t n = 0;
int digitCount = 0;
unsigned int digit = 0;
for (int i = 0;; ++i) {
int c = _textReader->peekChar(i);
if (c < 0) {
if (c == TextReader::ErrorChar) {
readFailed();
return false;
}
if (c == TextReader::EOFChar) {
return setErrorReturnFalseUnlessLenient(ErrorUnexpectedEndOfFile);
}
}
if (c == ';') {
if (!digitCount) {
return setErrorReturnFalseUnlessLenient(ErrorInvalidEntity);
}
_textReader->skipChars(i + 1);
return addUnicodeChar(n);
}
if (c >= '0' && c <= '9') {
digit = c - '0';
} else if (c >= 'a' && c <= 'f') {
digit = c - 'a' + 10;
} else if (c >= 'A' && c <= 'F') {
digit = c - 'A' + 10;
} else {
return setErrorReturnFalseUnlessLenient(ErrorInvalidEntity);
}
if (digitCount == 8) {
return setErrorReturnFalseUnlessLenient(ErrorInvalidEntity);
}
n = n * 16 + digit;
if (n) {
++digitCount;
}
}
}
bool XMLPullParser::processCharacterNumber()
{
PRIME_DEBUG_ASSERT(_textReader->peekChar() == '&' && _textReader->peekChar(1) == '#');
if (_textReader->peekChar(2) == 'x' || (isLenient() && _textReader->peekChar(2) == 'X')) {
return processHexCharacterNumber();
}
_textReader->skipChars(2);
uint32_t n = 0;
int digitCount = 0;
for (int i = 0;; ++i) {
int c = _textReader->peekChar(i);
if (c < 0) {
if (c == TextReader::ErrorChar) {
readFailed();
return false;
}
if (c == TextReader::EOFChar) {
return setErrorReturnFalseUnlessLenient(ErrorUnexpectedEndOfFile);
}
}
if (c == ';') {
if (!digitCount) {
return setErrorReturnFalseUnlessLenient(ErrorInvalidEntity);
}
_textReader->skipChars(i + 1);
return addUnicodeChar(n);
}
if (c < '0' || c > '9' || digitCount > 8) {
return setErrorReturnFalseUnlessLenient(ErrorInvalidEntity);
}
n = n * 10 + (c - '0');
if (n) {
++digitCount;
}
}
}
bool XMLPullParser::processAmpersand()
{
PRIME_DEBUG_ASSERT(_textReader->peekChar() == '&');
if (_textReader->peekChar(1) == '#') {
return processCharacterNumber();
}
bool lenient = isLenient();
int len;
bool invalid = false;
for (len = 1;; ++len) {
int peeked = _textReader->peekChar(len);
if (peeked == ';') {
++len;
break;
}
if (!IsNameChar(peeked, lenient, len == 1)) {
invalid = true;
break;
}
}
if (invalid && isStrict()) {
setError(ErrorInvalidEntity);
return false;
}
if (!invalid) {
// TODO: binary search (would need the entities to be copied by us and sorted)
for (size_t i = 0; i != _entities.size(); ++i) {
const Entity& e = _entities[i];
if (strncmp(_textReader->getReadPointer(), e.token, len) == 0) {
// Match!
if (e.string) {
_text.append(e.string);
} else {
if (!addUnicodeChar(e.entity)) {
return false;
}
}
_textReader->skipChars(len);
return true;
}
}
}
// If we get here then it's an invalid or unknown entity reference. Treat it as literal text.
_text += '&';
_textReader->skipChar();
// We can't produce an error here because as far as we know there's a valid ENTITY in the DocType.
warn(ErrorUnknownEntity);
return true;
}
void XMLPullParser::processCR()
{
PRIME_DEBUG_ASSERT(_textReader->peekChar() == 13);
// Windows style CRLF becomes plain LF.
if (_textReader->peekChar(1) == 10) {
_textReader->skipChars(2);
_text += (char)10;
} else {
// Not CRLF, just CR - discard.
_textReader->skipChar();
}
}
void XMLPullParser::processLF()
{
PRIME_DEBUG_ASSERT(_textReader->peekChar() == 10);
// Old Mac style LFCR becomes plain LF.
if (_textReader->peekChar(1) == 13) {
_textReader->skipChars(2);
} else {
_textReader->skipChar();
}
_text += (char)10;
}
int XMLPullParser::parseText()
{
bool isScript = inScript();
for (;;) {
int c = _textReader->peekChar();
if (c < 0) {
if (c == TextReader::ErrorChar) {
readFailed();
return TokenError;
}
if (c == TextReader::EOFChar) {
break;
}
}
if (c == '<') {
if (!isScript || _textReader->hasString("</")) {
break;
}
}
if (processCRLF(c)) {
continue;
}
if (!isValidText(c)) {
return TokenError;
}
if (c == '&' && !isScript) {
if (!processAmpersand()) {
return TokenError;
}
continue;
}
if (isScript) {
if (c == '\'' || c == '"') {
if (!readScriptString()) {
return TokenError;
}
continue;
} else if (c == '/') {
int c2 = _textReader->peekChar(1);
if (c2 == '/') {
if (!readScriptSingleLineComment()) {
return TokenError;
}
continue;
} else if (c2 == '*') {
if (!readScriptMultiLineComment()) {
return TokenError;
}
continue;
}
}
}
if (c == ']' && _textReader->peekChar(1) == ']' && _textReader->peekChar(2) == '>') {
if (isStrict()) {
return setError(ErrorCDATATerminatorInText);
}
warn(ErrorCDATATerminatorInText);
}
_text += TextReader::intToChar(c);
_textReader->skipChar();
}
if (_elements.empty() && !isTextEntirelyWhitespace()) {
if (!isLenient()) {
return setError(ErrorTextOutsideElement);
}
warn(ErrorTextOutsideElement);
}
_cdata = false;
return TokenText;
}
bool XMLPullParser::readScriptString()
{
int quote = _textReader->readChar();
int lastC = quote;
for (;;) {
int c = _textReader->readChar();
if (c < 0) {
if (c == TextReader::EOFChar) {
break;
}
return false;
}
_text += TextReader::intToChar(c);
if (lastC != '\\' && c == quote) {
break;
}
lastC = c;
}
return true;
}
bool XMLPullParser::readScriptSingleLineComment()
{
for (;;) {
int c = _textReader->peekChar();
if (c < 0) {
if (c == TextReader::EOFChar) {
break;
}
return false;
}
if (processCRLF(c)) {
break;
}
_text += TextReader::intToChar(c);
_textReader->skipChar();
}
return true;
}
bool XMLPullParser::readScriptMultiLineComment()
{
int lastC = ' ';
_text += "/*";
_textReader->skipChars(2);
for (;;) {
int c = _textReader->peekChar();
if (c < 0) {
if (c == TextReader::EOFChar) {
break;
}
return false;
}
if (processCRLF(c)) {
continue;
}
_text += TextReader::intToChar(c);
_textReader->skipChar();
if (c == '/' && lastC == '*') {
break;
}
lastC = c;
}
return true;
}
int XMLPullParser::parseCDATA()
{
PRIME_DEBUG_ASSERT(_textReader->hasString(cdataSectionHeader));
_textReader->skipChars(COUNTOF(cdataSectionHeader) - 1);
for (;;) {
int c = _textReader->peekChar();
if (c < 0) {
if (c == TextReader::ErrorChar) {
readFailed();
return TokenError;
}
if (c == TextReader::EOFChar) {
if (isLenient()) {
warn(ErrorUnexpectedEndOfFile);
break;
}
return setError(ErrorUnexpectedEndOfFile);
}
}
if (c == ']' && _textReader->peekChar(1) == ']' && _textReader->peekChar(2) == '>') {
_textReader->skipChars(3);
break;
}
if (processCRLF(c)) {
continue;
}
if (!isValidText(c)) {
return TokenError;
}
_text += TextReader::intToChar(c);
_textReader->skipChar();
}
if (_elements.empty()) {
if (!isLenient()) {
return setError(ErrorTextOutsideElement);
}
warn(ErrorTextOutsideElement);
}
_cdata = true;
return TokenText;
}
void XMLPullParser::popElement()
{
_elements.pop_back();
popNamespaces();
if (!_elements.empty()) {
setNameAndDetermineNamespace(_elements.back().name);
}
}
void XMLPullParser::popNamespaces()
{
NamespaceMap::iterator iter = _namespaces.begin();
NamespaceMap::iterator end = _namespaces.end();
for (; iter != end; ++iter) {
Namespace* nspace = iter->second;
if (nspace->depth > _elements.size()) {
iter->second = nspace->prev;
delete nspace;
}
}
}
void XMLPullParser::pushElement(const char* name)
{
Element el;
el.name = name;
el.isScript = _options.getHTMLMode() && (ASCIIEqualIgnoringCase(name, "script") || ASCIIEqualIgnoringCase(name, "style"));
_elements.push_back(el);
}
void XMLPullParser::setTopElementNamespace()
{
Element& el = _elements.back();
for (size_t i = 0; i != el.attributes.size(); ++i) {
const InternedAttribute& a = el.attributes[i];
if (strncmp(a.qualifiedName, "xmlns", 5) != 0) {
continue;
}
const char* nspaceName = (a.qualifiedName[5] == ':') ? a.qualifiedName + 6 : "";
const char* value = el.values.c_str() + a.valueOffset;
value = _stringTable.intern(value);
setNamespace(nspaceName, value);
}
setNameAndDetermineNamespace(el.name);
}
void XMLPullParser::setNamespace(const char* name, const char* value)
{
Namespace* prev;
NamespaceMap::const_iterator iter = _namespaces.find(name);
if (iter != _namespaces.end()) {
if (StringsEqual(iter->second->value, value)) {
// Identical values, don't bother creating a new Namespace.
return;
}
prev = iter->second;
} else {
prev = NULL;
}
ScopedPtr<Namespace> nspace(new Namespace);
nspace->name = name;
nspace->value = value;
nspace->depth = _elements.size();
nspace->prev = prev;
_namespaces[name] = nspace.get();
nspace.detach();
}
int XMLPullParser::parseStartElement(bool* skipable)
{
TextReader::Marker marker(_textReader); // Rewind in case of skipable or element where it shouldn't be
_textReader->skipChar(); // <
if (!parseName(skipable)) {
return TokenError;
}
const bool isTopLevelElement = _elements.empty();
pushElement(_name);
for (;;) {
if (!skipWhitespace()) {
return TokenError;
}
int c = _textReader->peekChar();
if (c == '>') {
_emptyElement = false;
_textReader->skipChar();
break;
}
if (c == '/' && _textReader->peekChar(1) == '>') {
_emptyElement = true;
_textReader->skipChars(2);
break;
}
if (!parseAttribute(skipable)) {
popElement();
return TokenError;
}
}
if (isTopLevelElement) {
if (_hadFirstTopLevelElement) {
if (!_options.getHTMLMode()) {
return setError(ErrorMultipleTopLevelElements);
}
warn(ErrorMultipleTopLevelElements);
}
_hadFirstTopLevelElement = true;
}
setTopElementNamespace();
Element& el = _elements.back();
for (size_t i = 0; i != el.attributes.size(); ++i) {
InternedAttribute& a = el.attributes[i];
determineNamespaceAndLocalName(a.qualifiedName, &a.localName, &a.nspace);
PRIME_DEBUG_ASSERT(a.localName);
}
// Check for duplicate attributes.
if (!el.attributes.empty()) {
for (size_t i = 0; i != el.attributes.size() - 1; ++i) {
const InternedAttribute& a = el.attributes[i];
for (size_t j = i + 1; j != el.attributes.size(); ++j) {
const InternedAttribute& a2 = el.attributes[j];
if (a.nspace == a2.nspace && a.localName == a2.localName) {
if (isStrict()) {
return setError(ErrorDuplicateAttribute);
} else {
warn(ErrorDuplicateAttribute);
}
}
}
}
}
if (isEmptyElement(_localName, _namespace)) {
_emptyElement = true;
}
if (!canElementBeHere()) {
popElement();
_popElement = 1;
marker.rewind(); // Alternative to using a marker is to have the _popElement handling code in read2() push an element afterwards
return TokenEndElement;
}
marker.release();
return TokenStartElement;
}
bool XMLPullParser::canElementBeHere() const
{
if (_options.getHTMLMode()) {
// See http://www.w3.org/TR/html5/index.html#elements-1
// TODO: col, colgroup, datalist, fieldset, legend, figure, figcaption, map, select,
// option, optgroup, ruby, rp, rt, rb, rtc, script??, caption, template
// TODO: What to do about multiple head/body?
// Note that some cases are covered by htmlEmptyElements.
if (ASCIIEqualIgnoringCase(_localName, "dd") || ASCIIEqualIgnoringCase(_localName, "dt")) {
int dt = findAncestor("dt");
int dd = findAncestor("dd");
int dl = findAncestor("dl");
if (dd > dl || dt > dl) {
// Disallow dd/dt inside a dd/dt unless there's another dl
return false;
}
} else if (ASCIIEqualIgnoringCase(_localName, "tr")) {
int tr = findAncestor("tr");
int td = findAncestor("td");
int table = findAncestor("table");
if (tr > table || td > table) {
// Disallow td inside a tr/td unless there's another table
return false;
}
} else if (ASCIIEqualIgnoringCase(_localName, "tbody") || ASCIIEqualIgnoringCase(_localName, "thead") || ASCIIEqualIgnoringCase(_localName, "tfoot")) {
int table = findAncestor("table");
int tr = findAncestor("tr");
int td = findAncestor("td");
int thead = findAncestor("thead");
int tbody = findAncestor("tbody");
int tfoot = findAncestor("tfoot");
if (td > table || tr > table || thead > table || tfoot > table || tbody > table) {
// thead, tfoot, tbody cannot occur inside each other unless there's another table
return false;
}
} else if (ASCIIEqualIgnoringCase(_localName, "td")) {
int td = findAncestor("td");
int table = findAncestor("table");
if (td > table) {
// Disallow td inside a td unless there's another table
return false;
}
} else if (ASCIIEqualIgnoringCase(_localName, "li")) {
int list = Max(findAncestor("ol"), findAncestor("ul"));
int li = findAncestor("li");
if (li > list) {
// Disallow li inside an li unless there's another ol/ul
return false;
}
} else if (ASCIIEqualIgnoringCase(_localName, "param")) {
int object = findAncestor("object");
int param = findAncestor("param");
if (param > object) {
// Disallow param inside an param unless there's another object
return false;
}
} else if (ASCIIEqualIgnoringCase(_localName, "source")) {
int media = Max(findAncestor("video"), findAncestor("audio"));
int source = findAncestor("source");
if (source > media) {
// Disallow source inside an source unless there's another video/audio
return false;
}
} else if (ASCIIEqualIgnoringCase(_localName, "body")) {
if (findAncestor("head") >= 0) {
// Disallow body inside head. Good advice in general.
return false;
}
} else if (ASCIIEqualIgnoringCase(_localName, "style")) {
if (findAncestor("style") >= 0) {
// Disallow style inside style.
return false;
}
}
}
return true;
}
int XMLPullParser::findAncestor(const char* localName) const
{
for (size_t i = _elements.size() - 1; i-- > 0;) {
const Element& el = _elements[i];
const char* ptr = strchr(el.name, ':');
ptr = ptr ? ptr + 1 : el.name;
if (ASCIIEqualIgnoringCase(ptr, localName)) {
return (int)i;
}
}
return -1;
}
int XMLPullParser::parseProcessingInstruction()
{
PRIME_DEBUG_ASSERT(_textReader->peekChar(0) == '<' && _textReader->peekChar(1) == '?');
_textReader->skipChars(2);
if (!parseName(NULL)) {
return TokenError;
}
if (!skipWhitespace()) {
return TokenError;
}
_qualifiedName = _localName = _name;
_namespace = NULL;
_text.resize(0);
int c;
for (;;) {
c = _textReader->peekChar();
if (c < 0) {
if (c == TextReader::ErrorChar) {
readFailed();
return TokenError;
}
if (c == TextReader::EOFChar) {
if (isLenient()) {
warn(ErrorUnexpectedEndOfFile);
break;
}
return setError(ErrorUnexpectedEndOfFile);
}
}
if (c == '?' && _textReader->peekChar(1) == '>') {
break;
}
if (processCRLF(c)) {
continue;
}
if (!isValidText(c)) {
return TokenError;
}
_text += TextReader::intToChar(c);
_textReader->skipChar();
}
if (c >= 0) {
_textReader->skipChars(c == '>' ? 1 : 2);
}
return TokenProcessingInstruction;
}
bool XMLPullParser::isValidText(int c)
{
if (c < ' ') {
if (c != 13 && c != 10 && c != 9) {
if (isStrict()) {
return setErrorReturnFalse(ErrorInvalidCharacter);
}
warn(ErrorInvalidCharacter);
}
}
return true;
}
bool XMLPullParser::parseName(bool* skipable)
{
if (skipable) {
*skipable = false;
}
_parseNameBuffer.resize(0);
if (!skipWhitespaceIfLenient()) {
return false;
}
bool lenient = isLenient();
bool firstChar = true;
for (;;) {
int c = _textReader->peekChar();
if (c < 0) {
if (c == TextReader::ErrorChar) {
readFailed();
return false;
}
if (c == TextReader::EOFChar) {
if (isLenient()) {
warn(ErrorUnexpectedEndOfFile);
break;
}
return setErrorReturnFalse(ErrorUnexpectedEndOfFile);
}
}
if (firstChar) {
if (!IsNameStartChar(c, lenient)) {
if (skipable) {
warn(ErrorIllegalName);
*skipable = true;
return false;
} else {
return setErrorReturnFalse(ErrorIllegalName);
}
}
firstChar = false;
} else if (!IsNameChar(c, lenient)) {
break;
}
_parseNameBuffer += TextReader::intToChar(c);
_textReader->skipChar();
}
// This will only allocate memory the first time a name is encountered.
_name = _stringTable.intern(_parseNameBuffer.c_str());
return true;
}
bool XMLPullParser::parseUnquotedAttributeValue()
{
_text.resize(0);
bool lenient = isLenient(); // will probably always be true if we've reached this method!
for (;;) {
int c = _textReader->peekChar();
if (c < 0) {
if (c == TextReader::ErrorChar) {
readFailed();
return false;
}
if (c == TextReader::EOFChar) {
if (isLenient()) {
warn(ErrorUnexpectedEndOfFile);
break;
}
return setErrorReturnFalse(ErrorUnexpectedEndOfFile);
}
}
if (!IsXMLUnquotedAttributeValueChar(c, lenient)) {
break;
}
if (c == '/' && _textReader->peekChar(1) == '>') {
break;
}
if (processCRLF(c)) {
continue;
}
if (!isValidText(c)) {
return false;
}
if (c == '&') {
if (!processAmpersand()) {
return false;
}
continue;
}
_text += TextReader::intToChar(c);
_textReader->skipChar();
}
return true;
}
bool XMLPullParser::parseAttributeValue()
{
int quot = _textReader->peekChar();
if (quot != '"') {
if (quot != '\'') {
if (!isLenient()) {
setError(ErrorExpectedQuote);
return false;
}
// Allow unquoted attribute values for HTML
if (!_options.getHTMLMode()) {
warn(ErrorExpectedQuote);
}
return parseUnquotedAttributeValue();
} else {
// Allow ' for HTML
if (!_options.getHTMLMode()) {
warn(ErrorExpectedQuote);
}
}
}
_textReader->skipChar();
_text.resize(0);
for (;;) {
int c = _textReader->peekChar();
if (c < 0) {
if (c == TextReader::ErrorChar) {
readFailed();
return false;
}
if (c == TextReader::EOFChar) {
if (isLenient()) {
warn(ErrorUnexpectedEndOfFile);
break;
}
return setErrorReturnFalse(ErrorUnexpectedEndOfFile);
}
}
if (c == quot) {
_textReader->skipChar();
break;
}
if (processCRLF(c)) {
continue;
}
if (!isValidText(c)) {
return false;
}
if (c == '&') {
if (!processAmpersand()) {
return false;
}
continue;
}
// # is sometimes considered invalid, but I can't find consensus
if (strchr("<&", TextReader::intToChar(c))) {
if (isStrict()) {
return setErrorReturnFalse(ErrorInvalidAttributeValue);
}
// Allow these characters in HTML.
if (!_options.getHTMLMode()) {
warn(ErrorInvalidAttributeValue);
}
}
_text += TextReader::intToChar(c);
_textReader->skipChar();
}
return true;
}
bool XMLPullParser::parseAttribute(bool* skipable)
{
// parseName initialises skipable
if (!parseName(skipable)) {
return false;
}
InternedAttribute a;
a.qualifiedName = _name;
if (!skipWhitespaceIfLenient()) {
return false;
}
if (_textReader->peekChar() != '=') {
if (!isLenient()) {
setError(ErrorExpectedEquals);
return false;
}
// Allow attributes with no value in HTML.
if (!_options.getHTMLMode()) {
warn(ErrorExpectedEquals);
}
_text.resize(0);
} else {
_textReader->skipChar();
if (!skipWhitespaceIfLenient()) {
return false;
}
if (!parseAttributeValue()) {
return false;
}
}
Element& el = _elements.back();
a.valueOffset = el.values.size();
el.values.append(_text.c_str(), _text.size() + 1); // include the NUL
el.attributes.push_back(a);
return true;
}
bool XMLPullParser::skipWhitespace()
{
bool lenient = isLenient();
for (;;) {
int c = _textReader->peekChar();
if (c < 0) {
if (c == TextReader::ErrorChar) {
readFailed();
return false;
}
if (c == TextReader::EOFChar) {
break;
}
}
if (!IsXMLWhitespace(c, lenient)) {
break;
}
_textReader->skipChar();
}
return true;
}
bool XMLPullParser::skipWhitespaceIfLenient()
{
bool lenient = isLenient();
bool skipped = false;
for (;;) {
int c = _textReader->peekChar();
if (c < 0) {
if (c == TextReader::ErrorChar) {
readFailed();
return false;
}
if (c == TextReader::EOFChar) {
break;
}
}
if (!IsXMLWhitespace(c, lenient)) {
break;
}
_textReader->skipChar();
skipped = true;
}
if (skipped) {
warn(ErrorUnexpectedWhitespace);
}
return true;
}
int XMLPullParser::parseEndElement(bool* skipable)
{
TextReader::Marker marker(_textReader); // Rewind in case of skipable
PRIME_DEBUG_ASSERT(_textReader->peekChar(0) == '<' && _textReader->peekChar(1) == '/');
_textReader->skipChars(2);
if (!skipWhitespaceIfLenient()) {
return TokenError;
}
if (_elements.empty()) {
if (!isLenient()) {
return setError(ErrorUnexpectedEndElement);
}
warn(ErrorUnexpectedEndElement);
return TokenNone;
}
if (!parseName(skipable)) {
return TokenError;
}
int popCount = 1;
if (_name != _elements.back().name) {
if (!isLenient()) {
return setError(ErrorMismatchedEndElement);
}
warn(ErrorMismatchedEndElement);
setNameAndDetermineNamespace(_name);
// See if we can find a match.
popCount = 0;
size_t i = _elements.size();
while (i--) {
// TODO!
// if (equalNames(_elements[i].name, _name) && equalNamespaces(_elements[i].nspace, _namespace)) {
if (equalNames(_elements[i].name, _name)) {
// Found it!
popCount = (int)(_elements.size() - i);
break;
}
}
}
setNameAndDetermineNamespace(_elements.back().name);
if (!skipWhitespace()) {
return TokenError;
}
if (_textReader->peekChar() != '>') {
if (!isLenient()) {
return setError(ErrorExpectedRightAngleBracket);
}
warn(ErrorExpectedRightAngleBracket);
} else {
_textReader->skipChar();
}
marker.release();
_popElement = popCount;
return popCount ? TokenEndElement : TokenNone;
}
int XMLPullParser::parseComment()
{
PRIME_DEBUG_ASSERT(_textReader->peekChar(0) == '<' && _textReader->peekChar(1) == '!' && _textReader->peekChar(2) == '-' && _textReader->peekChar(2) == '-');
_textReader->skipChars(4);
for (;;) {
int c = _textReader->peekChar();
if (c < 0) {
if (c == TextReader::ErrorChar) {
readFailed();
return TokenError;
}
if (c == TextReader::EOFChar) {
if (isLenient()) {
warn(ErrorUnexpectedEndOfFile);
break;
}
return setError(ErrorUnexpectedEndOfFile);
}
}
if (c == '-' && _textReader->peekChar(1) == '-') {
if (_textReader->peekChar(2) == '>') {
_textReader->skipChars(3);
break;
}
if (isStrict()) {
return setError(ErrorIncorrectlyTerminatedComment);
}
}
if (!isValidText(c)) {
return TokenError;
}
_text += TextReader::intToChar(c);
_textReader->skipChar();
}
return TokenComment;
}
int XMLPullParser::parseDocType()
{
PRIME_DEBUG_ASSERT(_textReader->peekChar(0) == '<' && _textReader->peekChar(1) == '!');
// Read the entire DocType as raw text, without parsing it.
_textReader->skipChars(2);
int nest = 1;
for (;;) {
int c = _textReader->peekChar();
if (c < 0) {
if (c == TextReader::ErrorChar) {
readFailed();
return TokenError;
}
if (c == TextReader::EOFChar) {
if (isLenient()) {
warn(ErrorUnexpectedEndOfFile);
return TokenDocType;
}
return setError(ErrorUnexpectedEndOfFile);
}
}
if (c == '>') {
if (!--nest) {
_textReader->skipChar();
return TokenDocType;
}
} else if (c == '<') {
if (_textReader->hasString("<!--")) {
std::string text2;
text2.swap(_text);
int token = parseComment();
if (token < TokenNone) {
return token;
}
text2.swap(_text);
_text += "<!--";
_text += text2;
_text += "-->";
continue;
} else {
++nest;
}
} else if (c == '\'' || c == '"') {
int quot = c;
_text += TextReader::intToChar(c);
_textReader->skipChar();
do {
c = _textReader->readChar();
if (c < 0) {
if (c == TextReader::ErrorChar) {
readFailed();
return TokenError;
}
if (c == TextReader::EOFChar) {
if (isLenient()) {
warn(ErrorUnexpectedEndOfFile);
return TokenDocType;
}
return setError(ErrorUnexpectedEndOfFile);
}
}
_text += TextReader::intToChar(c);
} while (c != quot);
continue;
}
_text += TextReader::intToChar(c);
_textReader->skipChar();
}
}
void XMLPullParser::determineNamespaceAndLocalName(const char* name, const char** localName, const char** nspace)
{
// name should already have been interned.
PRIME_DEBUG_ASSERT(!*name || _stringTable.intern(name) == name);
const char* colon = strchr(name, ':');
if (!colon) {
*localName = name;
*nspace = findNamespace();
} else {
ptrdiff_t colonPos = colon - name;
*localName = name + colonPos + 1;
std::string prefix(name, colonPos);
*nspace = findNamespace(prefix.c_str());
}
}
void XMLPullParser::setNameAndDetermineNamespace(const char* name)
{
// name should already have been interned.
PRIME_DEBUG_ASSERT(!*name || _stringTable.intern(name) == name);
_qualifiedName = name;
determineNamespaceAndLocalName(name, &_localName, &_namespace);
}
const char* XMLPullParser::findNamespace()
{
return findNamespace("");
}
const char* XMLPullParser::findNamespace(const char* prefix)
{
NamespaceMap::const_iterator iter = _namespaces.find(prefix);
const char* value;
if (iter == _namespaces.end()) {
if (*prefix && !StringsEqual(prefix, "xmlns") && !StringsEqual(prefix, "xml")) {
// Don't warn for the default namespace or xmlns.
getLog()->warning("%s: %s", getErrorDescription(ErrorUnknownNamespace), prefix);
}
value = NULL;
} else {
value = iter->second->value;
}
#if TEST_NAMESPACE_MAP
const char* secondOpinion = *prefix ? findNamespaceOld(prefix) : findNamespaceOld();
PRIME_ASSERT(secondOpinion != NULL || value == NULL);
PRIME_ASSERT(StringsEqual(value ? value : "", secondOpinion ? secondOpinion : ""));
#endif
return value;
}
const char* XMLPullParser::findNamespaceOld()
{
std::vector<Element>::iterator ie = _elements.end();
std::vector<Element>::iterator ee = _elements.begin();
while (ie-- != ee) {
std::vector<InternedAttribute>::iterator ia = ie->attributes.begin();
std::vector<InternedAttribute>::iterator ea = ie->attributes.end();
for (; ia != ea; ++ia) {
if (StringsEqual(ia->qualifiedName, "xmlns")) {
return _stringTable.intern(ie->values.data() + ia->valueOffset);
}
}
}
return 0;
}
const char* XMLPullParser::findNamespaceOld(const char* prefix)
{
static const char xmlnsColon[] = "xmlns:";
static const size_t xmlnsColonLength = sizeof(xmlnsColon) - 1;
size_t totalLength = xmlnsColonLength + strlen(prefix);
std::vector<Element>::iterator ie = _elements.end();
std::vector<Element>::iterator ee = _elements.begin();
while (ie != ee) {
--ie;
std::vector<InternedAttribute>::iterator ia = ie->attributes.begin();
std::vector<InternedAttribute>::iterator ea = ie->attributes.end();
for (; ia != ea; ++ia) {
if (strlen(ia->qualifiedName) == totalLength && strncmp(ia->qualifiedName, xmlnsColon, xmlnsColonLength) == 0) {
if (StringsEqual(ia->qualifiedName + xmlnsColonLength, prefix)) {
return _stringTable.intern(ie->values.data() + ia->valueOffset);
}
}
}
}
return 0;
}
const char* XMLPullParser::readWholeText(const char* elementDescription)
{
_wholeText.resize(0);
if (_lastToken == TokenText) {
_wholeText = _text;
}
for (;;) {
int token = read();
if (token == TokenError) {
return NULL;
}
if (token == TokenComment) {
continue;
}
if (token == TokenText) {
_wholeText.append(_text.data(), _text.size());
continue;
}
if (token == TokenEndElement) {
break;
}
getLog()->error(PRIME_LOCALISE("Unexpected %s in %s element."), getTokenDescription(token), elementDescription);
_error = ErrorExpectedText;
return NULL;
}
return _wholeText.c_str();
}
const char* XMLPullParser::readWholeTextTrimmed(const char* elementDescription)
{
const char* got = readWholeText(elementDescription);
if (!got) {
return NULL;
}
size_t leading = CountLeadingWhitespace(_wholeText.c_str(), _wholeText.size(), isLenient());
_wholeText.erase(0, leading);
size_t trailing = CountTrailingWhitespace(_wholeText.c_str(), _wholeText.size(), isLenient());
_wholeText.resize(_wholeText.size() - trailing);
return _wholeText.c_str();
}
bool XMLPullParser::skipElement()
{
if (_lastToken != TokenStartElement) {
return true;
}
PRIME_ASSERT(!_elements.empty());
for (int nest = 1;;) {
int token = read();
if (token == TokenError) {
return false;
}
// TokenEOF shouldn't happen since we think we're inside an element.
if (token == TokenEOF) {
return setErrorReturnFalse(ErrorUnexpectedEndOfFile);
}
if (token == TokenEndElement) {
if (!--nest) {
return true;
}
}
if (token == TokenStartElement) {
++nest;
}
}
}
bool XMLPullParser::skipEmptyElement()
{
if (_lastToken != TokenStartElement) {
return true;
}
PRIME_ASSERT(!_elements.empty());
for (;;) {
int token = read();
if (token == TokenError) {
return false;
}
// TokenEOF shouldn't happen since we think we're inside an element.
if (token == TokenEOF) {
return setErrorReturnFalse(ErrorUnexpectedEndOfFile);
}
if (token == TokenEndElement) {
return true;
}
if (token == TokenStartElement || (token == TokenText && !IsXMLWhitespace(getText(), isLenient()))) {
// TODO: In Lenient mode, this could just be a warning?
return setErrorReturnFalse(ErrorExpectedEmptyElement);
}
}
}
bool XMLPullParser::isTextEntirelyWhitespace() const
{
return IsXMLWhitespace(_text, isLenient());
}
//
// XMLPullParser::StringTable
//
XMLPullParser::StringTable::~StringTable()
{
for (StringsSet::iterator iter = _strings.begin(); iter != _strings.end(); ++iter) {
delete[] * iter;
}
_strings.clear();
}
const char* XMLPullParser::StringTable::intern(const char* string)
{
StringsSet::iterator iter = _strings.lower_bound((char*)string);
if (iter != _strings.end() && StringsEqual(*iter, string)) {
return *iter;
}
StringsSet::const_iterator insertion = _strings.insert(iter, NewString(string));
return *insertion;
}
const char* XMLPullParser::StringTable::intern(const char* string, size_t len)
{
_internBuffer.assign(string, string + len);
return intern(_internBuffer.c_str());
}
}
|
;******************************************************************************
;* SIMD-optimized IDCT-related routines
;* Copyright (c) 2008 Loren Merritt
;* Copyright (c) 2003-2013 Michael Niedermayer
;* Copyright (c) 2013 Daniel Kang
;*
;* This file is part of FFmpeg.
;*
;* FFmpeg is free software; you can redistribute it and/or
;* modify it under the terms of the GNU Lesser General Public
;* License as published by the Free Software Foundation; either
;* version 2.1 of the License, or (at your option) any later version.
;*
;* FFmpeg is distributed in the hope that it will be useful,
;* but WITHOUT ANY WARRANTY; without even the implied warranty of
;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
;* Lesser General Public License for more details.
;*
;* You should have received a copy of the GNU Lesser General Public
;* License along with FFmpeg; if not, write to the Free Software
;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
;******************************************************************************
%include "libavutil/x86/x86util.asm"
SECTION_RODATA
cextern pb_80
SECTION .text
;--------------------------------------------------------------------------
;void ff_put_signed_pixels_clamped(const int16_t *block, uint8_t *pixels,
; ptrdiff_t line_size)
;--------------------------------------------------------------------------
%macro PUT_SIGNED_PIXELS_CLAMPED_HALF 1
mova m1, [blockq+mmsize*0+%1]
mova m2, [blockq+mmsize*2+%1]
%if mmsize == 8
mova m3, [blockq+mmsize*4+%1]
mova m4, [blockq+mmsize*6+%1]
%endif
packsswb m1, [blockq+mmsize*1+%1]
packsswb m2, [blockq+mmsize*3+%1]
%if mmsize == 8
packsswb m3, [blockq+mmsize*5+%1]
packsswb m4, [blockq+mmsize*7+%1]
%endif
paddb m1, m0
paddb m2, m0
%if mmsize == 8
paddb m3, m0
paddb m4, m0
movq [pixelsq+lsizeq*0], m1
movq [pixelsq+lsizeq*1], m2
movq [pixelsq+lsizeq*2], m3
movq [pixelsq+lsize3q ], m4
%else
movq [pixelsq+lsizeq*0], m1
movhps [pixelsq+lsizeq*1], m1
movq [pixelsq+lsizeq*2], m2
movhps [pixelsq+lsize3q ], m2
%endif
%endmacro
%macro PUT_SIGNED_PIXELS_CLAMPED 1
cglobal put_signed_pixels_clamped, 3, 4, %1, block, pixels, lsize, lsize3
mova m0, [pb_80]
lea lsize3q, [lsizeq*3]
PUT_SIGNED_PIXELS_CLAMPED_HALF 0
lea pixelsq, [pixelsq+lsizeq*4]
PUT_SIGNED_PIXELS_CLAMPED_HALF 64
RET
%endmacro
INIT_MMX mmx
PUT_SIGNED_PIXELS_CLAMPED 0
INIT_XMM sse2
PUT_SIGNED_PIXELS_CLAMPED 3
;--------------------------------------------------------------------------
; void ff_put_pixels_clamped(const int16_t *block, uint8_t *pixels,
; ptrdiff_t line_size);
;--------------------------------------------------------------------------
; %1 = block offset
%macro PUT_PIXELS_CLAMPED_HALF 1
mova m0, [blockq+mmsize*0+%1]
mova m1, [blockq+mmsize*2+%1]
%if mmsize == 8
mova m2, [blockq+mmsize*4+%1]
mova m3, [blockq+mmsize*6+%1]
%endif
packuswb m0, [blockq+mmsize*1+%1]
packuswb m1, [blockq+mmsize*3+%1]
%if mmsize == 8
packuswb m2, [blockq+mmsize*5+%1]
packuswb m3, [blockq+mmsize*7+%1]
movq [pixelsq], m0
movq [lsizeq+pixelsq], m1
movq [2*lsizeq+pixelsq], m2
movq [lsize3q+pixelsq], m3
%else
movq [pixelsq], m0
movhps [lsizeq+pixelsq], m0
movq [2*lsizeq+pixelsq], m1
movhps [lsize3q+pixelsq], m1
%endif
%endmacro
%macro PUT_PIXELS_CLAMPED 0
cglobal put_pixels_clamped, 3, 4, 2, block, pixels, lsize, lsize3
lea lsize3q, [lsizeq*3]
PUT_PIXELS_CLAMPED_HALF 0
lea pixelsq, [pixelsq+lsizeq*4]
PUT_PIXELS_CLAMPED_HALF 64
RET
%endmacro
INIT_MMX mmx
PUT_PIXELS_CLAMPED
INIT_XMM sse2
PUT_PIXELS_CLAMPED
;--------------------------------------------------------------------------
; void ff_add_pixels_clamped(const int16_t *block, uint8_t *pixels,
; ptrdiff_t line_size);
;--------------------------------------------------------------------------
; %1 = block offset
%macro ADD_PIXELS_CLAMPED 1
mova m0, [blockq+mmsize*0+%1]
mova m1, [blockq+mmsize*1+%1]
%if mmsize == 8
mova m5, [blockq+mmsize*2+%1]
mova m6, [blockq+mmsize*3+%1]
%endif
movq m2, [pixelsq]
movq m3, [pixelsq+lsizeq]
%if mmsize == 8
mova m7, m2
punpcklbw m2, m4
punpckhbw m7, m4
paddsw m0, m2
paddsw m1, m7
mova m7, m3
punpcklbw m3, m4
punpckhbw m7, m4
paddsw m5, m3
paddsw m6, m7
%else
punpcklbw m2, m4
punpcklbw m3, m4
paddsw m0, m2
paddsw m1, m3
%endif
packuswb m0, m1
%if mmsize == 8
packuswb m5, m6
movq [pixelsq], m0
movq [pixelsq+lsizeq], m5
%else
movq [pixelsq], m0
movhps [pixelsq+lsizeq], m0
%endif
%endmacro
%macro ADD_PIXELS_CLAMPED 0
cglobal add_pixels_clamped, 3, 3, 5, block, pixels, lsize
pxor m4, m4
ADD_PIXELS_CLAMPED 0
lea pixelsq, [pixelsq+lsizeq*2]
ADD_PIXELS_CLAMPED 32
lea pixelsq, [pixelsq+lsizeq*2]
ADD_PIXELS_CLAMPED 64
lea pixelsq, [pixelsq+lsizeq*2]
ADD_PIXELS_CLAMPED 96
RET
%endmacro
INIT_MMX mmx
ADD_PIXELS_CLAMPED
INIT_XMM sse2
ADD_PIXELS_CLAMPED
|
; A055541: Total number of leaves (nodes of vertex degree 1) in all labeled trees with n nodes.
; 0,2,6,36,320,3750,54432,941192,18874368,430467210,11000000000,311249095212,9659108818944,326173191714734,11905721598812160,467086816406250000,19599665578316398592,875901453762003632658,41532319635035234107392,2082547005958224830656820,110100480000000000000000000,6120805447832934070018320822,356947326335320446369221574656,21788314434623908209761773471896,1389308100885712629634459867545600,92370555648813024163246154785156250
mov $1,$0
pow $0,2
add $0,$1
mov $2,$1
trn $1,2
pow $2,$1
mul $0,$2
|
;******************************************************************************
;* Copyright (c) 2012 Michael Niedermayer
;*
;* This file is part of FFmpeg.
;*
;* FFmpeg is free software; you can redistribute it and/or
;* modify it under the terms of the GNU Lesser General Public
;* License as published by the Free Software Foundation; either
;* version 2.1 of the License, or (at your option) any later version.
;*
;* FFmpeg is distributed in the hope that it will be useful,
;* but WITHOUT ANY WARRANTY; without even the implied warranty of
;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
;* Lesser General Public License for more details.
;*
;* You should have received a copy of the GNU Lesser General Public
;* License along with FFmpeg; if not, write to the Free Software
;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
;******************************************************************************
%include "libavutil/x86/x86util.asm"
SECTION_RODATA 32
dw1: times 8 dd 1
w1 : times 16 dw 1
SECTION .text
%macro MIX2_FLT 1
cglobal mix_2_1_%1_float, 7, 7, 6, out, in1, in2, coeffp, index1, index2, len
%ifidn %1, a
test in1q, mmsize-1
jne mix_2_1_float_u_int %+ SUFFIX
test in2q, mmsize-1
jne mix_2_1_float_u_int %+ SUFFIX
test outq, mmsize-1
jne mix_2_1_float_u_int %+ SUFFIX
%else
mix_2_1_float_u_int %+ SUFFIX
%endif
VBROADCASTSS m4, [coeffpq + 4*index1q]
VBROADCASTSS m5, [coeffpq + 4*index2q]
shl lend , 2
add in1q , lenq
add in2q , lenq
add outq , lenq
neg lenq
.next:
%ifidn %1, a
mulps m0, m4, [in1q + lenq ]
mulps m1, m5, [in2q + lenq ]
mulps m2, m4, [in1q + lenq + mmsize]
mulps m3, m5, [in2q + lenq + mmsize]
%else
movu m0, [in1q + lenq ]
movu m1, [in2q + lenq ]
movu m2, [in1q + lenq + mmsize]
movu m3, [in2q + lenq + mmsize]
mulps m0, m0, m4
mulps m1, m1, m5
mulps m2, m2, m4
mulps m3, m3, m5
%endif
addps m0, m0, m1
addps m2, m2, m3
mov%1 [outq + lenq ], m0
mov%1 [outq + lenq + mmsize], m2
add lenq, mmsize*2
jl .next
REP_RET
%endmacro
%macro MIX1_FLT 1
cglobal mix_1_1_%1_float, 5, 5, 3, out, in, coeffp, index, len
%ifidn %1, a
test inq, mmsize-1
jne mix_1_1_float_u_int %+ SUFFIX
test outq, mmsize-1
jne mix_1_1_float_u_int %+ SUFFIX
%else
mix_1_1_float_u_int %+ SUFFIX
%endif
VBROADCASTSS m2, [coeffpq + 4*indexq]
shl lenq , 2
add inq , lenq
add outq , lenq
neg lenq
.next:
%ifidn %1, a
mulps m0, m2, [inq + lenq ]
mulps m1, m2, [inq + lenq + mmsize]
%else
movu m0, [inq + lenq ]
movu m1, [inq + lenq + mmsize]
mulps m0, m0, m2
mulps m1, m1, m2
%endif
mov%1 [outq + lenq ], m0
mov%1 [outq + lenq + mmsize], m1
add lenq, mmsize*2
jl .next
REP_RET
%endmacro
%macro MIX1_INT16 1
cglobal mix_1_1_%1_int16, 5, 5, 6, out, in, coeffp, index, len
%ifidn %1, a
test inq, mmsize-1
jne mix_1_1_int16_u_int %+ SUFFIX
test outq, mmsize-1
jne mix_1_1_int16_u_int %+ SUFFIX
%else
mix_1_1_int16_u_int %+ SUFFIX
%endif
movd m4, [coeffpq + 4*indexq]
SPLATW m5, m4
psllq m4, 32
psrlq m4, 48
mova m0, [w1]
psllw m0, m4
psrlw m0, 1
punpcklwd m5, m0
add lenq , lenq
add inq , lenq
add outq , lenq
neg lenq
.next:
mov%1 m0, [inq + lenq ]
mov%1 m2, [inq + lenq + mmsize]
mova m1, m0
mova m3, m2
punpcklwd m0, [w1]
punpckhwd m1, [w1]
punpcklwd m2, [w1]
punpckhwd m3, [w1]
pmaddwd m0, m5
pmaddwd m1, m5
pmaddwd m2, m5
pmaddwd m3, m5
psrad m0, m4
psrad m1, m4
psrad m2, m4
psrad m3, m4
packssdw m0, m1
packssdw m2, m3
mov%1 [outq + lenq ], m0
mov%1 [outq + lenq + mmsize], m2
add lenq, mmsize*2
jl .next
%if mmsize == 8
emms
RET
%else
REP_RET
%endif
%endmacro
%macro MIX2_INT16 1
cglobal mix_2_1_%1_int16, 7, 7, 8, out, in1, in2, coeffp, index1, index2, len
%ifidn %1, a
test in1q, mmsize-1
jne mix_2_1_int16_u_int %+ SUFFIX
test in2q, mmsize-1
jne mix_2_1_int16_u_int %+ SUFFIX
test outq, mmsize-1
jne mix_2_1_int16_u_int %+ SUFFIX
%else
mix_2_1_int16_u_int %+ SUFFIX
%endif
movd m4, [coeffpq + 4*index1q]
movd m6, [coeffpq + 4*index2q]
SPLATW m5, m4
SPLATW m6, m6
psllq m4, 32
psrlq m4, 48
mova m7, [dw1]
pslld m7, m4
psrld m7, 1
punpcklwd m5, m6
add lend , lend
add in1q , lenq
add in2q , lenq
add outq , lenq
neg lenq
.next:
mov%1 m0, [in1q + lenq ]
mov%1 m2, [in2q + lenq ]
mova m1, m0
punpcklwd m0, m2
punpckhwd m1, m2
mov%1 m2, [in1q + lenq + mmsize]
mov%1 m6, [in2q + lenq + mmsize]
mova m3, m2
punpcklwd m2, m6
punpckhwd m3, m6
pmaddwd m0, m5
pmaddwd m1, m5
pmaddwd m2, m5
pmaddwd m3, m5
paddd m0, m7
paddd m1, m7
paddd m2, m7
paddd m3, m7
psrad m0, m4
psrad m1, m4
psrad m2, m4
psrad m3, m4
packssdw m0, m1
packssdw m2, m3
mov%1 [outq + lenq ], m0
mov%1 [outq + lenq + mmsize], m2
add lenq, mmsize*2
jl .next
%if mmsize == 8
emms
RET
%else
REP_RET
%endif
%endmacro
INIT_MMX mmx
MIX1_INT16 u
MIX1_INT16 a
MIX2_INT16 u
MIX2_INT16 a
INIT_XMM sse
MIX2_FLT u
MIX2_FLT a
MIX1_FLT u
MIX1_FLT a
INIT_XMM sse2
MIX1_INT16 u
MIX1_INT16 a
MIX2_INT16 u
MIX2_INT16 a
%if HAVE_AVX_EXTERNAL
INIT_YMM avx
MIX2_FLT u
MIX2_FLT a
MIX1_FLT u
MIX1_FLT a
%endif
|
#include "CPU.asm"
#bank ram
test_counter:
#res 1
#bank rom
top:
sti 0, test_counter
loop:
lda test_counter
sta uitoa_b.input_byte
cal uitoa_b
lda uitoa_b.buffer+0
sta UART
lda uitoa_b.buffer+1
sta UART
lda uitoa_b.buffer+2
sta UART
lda uitoa_b.buffer+3
sta UART
sti "\n", UART
lda test_counter
lbi 0x01
add
sta test_counter
jnc loop
hlt
#include "math.asm"
#include "utils.asm"
|
; A036690: Product of a prime and the following number.
; Submitted by Jamie Morken(w2)
; 6,12,30,56,132,182,306,380,552,870,992,1406,1722,1892,2256,2862,3540,3782,4556,5112,5402,6320,6972,8010,9506,10302,10712,11556,11990,12882,16256,17292,18906,19460,22350,22952,24806,26732,28056,30102,32220,32942,36672,37442,39006,39800,44732,49952,51756,52670,54522,57360,58322,63252,66306,69432,72630,73712,77006,79242,80372,86142,94556,97032,98282,100806,109892,113906,120756,122150,124962,129240,135056,139502,144020,147072,151710,158006,161202,167690,175980,177662,186192,187922,193160,196692
mul $0,2
trn $0,1
add $0,1
seq $0,147846 ; Triangular numbers n*(n+1)/2 with n or n+1 prime.
mul $0,2
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.