Skip to content

Commit b626a06

Browse files
authored
Merge pull request #18 from zong-zhe/add-doc-link
doc: add document for the IR Specification in README.md
2 parents d11d373 + fe4f679 commit b626a06

4 files changed

Lines changed: 6 additions & 8 deletions

File tree

README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ The Smart Intermediate Representation(short for IR) project is a new compiler fr
3030

3131
Since the circulation of Blockchain and Smart Contracts, there have been many incidents of exploitation. These incidents are mainly caused by attacks on unsafe smart contracts such as reentrancy issues, and compiler bugs. In the existing cases, it is difficult to investigate or locate once the attack occurs. Most safe/secure cases also require 3rd-party auditing which is very costly.
3232

33-
We propose a universal technical solution to be adapted to any programming language to help blockchain platform/developer make their smart contract trust, safe and high performance.
33+
Meanwhile, to wring the most performance out of a regular gas allowance, or something else. It's important to optimize both on-chain and off-chain scenarios.
34+
35+
Currently, we propose a universal technical solution to be adapted to any programming language to help blockchain platform/developer make their smart contract safer, high performance and multi-scenario compatibility.
3436

3537
## Installation
3638

@@ -71,11 +73,7 @@ docker run smartir/cli:latest ir_cli build sir/example/hello_world.ir
7173

7274
## Documentation
7375

74-
coming soon
75-
76-
<!--
7776
The IR Specification document is [here](./doc/specification/SmartIR.md)
78-
-->
7977

8078
## Roadmap
8179

doc/specification/SmartIR.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
## Informal Description of IR
77

8-
In this section, we discuss various aspects of Smart IR (hereafter IR).
8+
In this section, we discuss various aspects of Smart Intermediate Representation (hereafter IR).
99

1010
### A Simple Example
1111
The top-level structure of IR is `contract`, `type`, `metadata` and the secondary structure is `state` and `fn`. The following example is a non-recursive Fibonacci sequence function written in IR:

docker/ir-cli-builder/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## The Smart IR Builder Image
1+
## The Smart Intermediate Representation Builder Image
22

33
The `smartir/smart-ir-builder` image embeded a development enviroment for developers to code, build and test the project.
44

smart_ir/src/ir/cfg.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ pub const IR_MAP_ITER_TY: &str = "ir.map.iter";
1616
pub const IR_PARAMPACK_TY: &str = "ir.builtin.parampack";
1717
pub const IR_STORAGE_PATH_TY: &str = "ir.builtin.StoragePath";
1818

19-
/// Smart IR Expression
19+
/// SIR Expression
2020
/// Identifier refer to a variable, Identifier(0) -> %0
2121
/// Instr directly refer to an instruction
2222
/// Literal represents the literal quantity of different basic types

0 commit comments

Comments
 (0)