Skip to content

Commit

Permalink
Bump funC version to 0.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
SpyCheese committed Dec 5, 2023
1 parent 98c578e commit 89fc9a4
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions crypto/func/auto-tests/legacy_tester.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@
["jetton-wallet/jetton-wallet.fc", 86251125787443633057458168028617933212663498001665054651523310772884328206542],

# 2023-11-30 update: source files in nominators.fc were included in the wrong order.
# FunC v0.4.5 has more strict function ordering rules, so nominators.fc was changed to fix compilation error.
# FunC v0.5.0 has more strict function ordering rules, so nominators.fc was changed to fix compilation error.
["whales-nominators/nominators.fc", 64989185004203073400683226767264384908045055609681310145961012819587514238303],


# 2023-11-30 update: __tact_verify_address was optimized out because it is not marked as impure.
# In FunC v0.4.5 all functions are impure by default, so it is not optimized out anymore.
# In FunC v0.5.0 all functions are impure by default, so it is not optimized out anymore.
["tact-examples/treasure_Treasure.code.fc", 60348994682690664630455354672413353326734169633005380820521037982881341539662],
["tact-examples/jetton_SampleJetton.code.fc", 70075170397574779402104489003369966746142305378310979462742589461276337980270],
["tact-examples/jetton_JettonDefaultWallet.code.fc", 12710666798574325848563501630728896968396634924087634181325633274893128358499],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
;; Standard library for funC
;;
#pragma version >=0.4.5;
#pragma version >=0.5.0;

forall X -> tuple cons(X head, tuple tail) pure asm "CONS";
forall X -> (X, tuple) uncons(tuple list) pure asm "UNCONS";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
;; Standard library for funC
;;
#pragma version >=0.4.5;
#pragma version >=0.5.0;

forall X -> tuple cons(X head, tuple tail) pure asm "CONS";
forall X -> (X, tuple) uncons(tuple list) pure asm "UNCONS";
Expand Down
2 changes: 1 addition & 1 deletion crypto/func/auto-tests/legacy_tests/storage/stdlib.fc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
;; Standard library for funC
;;
#pragma version >=0.4.5;
#pragma version >=0.5.0;

{-
# Tuple manipulation primitives
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
;; Standard library for funC
;;
#pragma version >=0.4.5;
#pragma version >=0.5.0;

forall X -> tuple cons(X head, tuple tail) pure asm "CONS";
forall X -> (X, tuple) uncons(tuple list) pure asm "UNCONS";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
;; Standard library for funC
;;
#pragma version >=0.4.5;
#pragma version >=0.5.0;

forall X -> tuple cons(X head, tuple tail) pure asm "CONS";
forall X -> (X, tuple) uncons(tuple list) pure asm "UNCONS";
Expand Down
2 changes: 1 addition & 1 deletion crypto/func/func.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ int generate_output(std::ostream &outs, std::ostream &errs) {
if (asm_preamble) {
outs << "\"Asm.fif\" include\n";
}
outs << "// automatically generated from " << generated_from << std::endl;
outs << "// automatically generated from " << generated_from << "by funC v" << func_version << std::endl;
if (program_envelope) {
outs << "PROGRAM{\n";
}
Expand Down
2 changes: 1 addition & 1 deletion crypto/func/func.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ extern std::string generated_from;

constexpr int optimize_depth = 20;

const std::string func_version{"0.4.5"};
const std::string func_version{"0.5.0"};

enum Keyword {
_Eof = -1,
Expand Down
2 changes: 1 addition & 1 deletion crypto/smartcont/stdlib.fc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
;; Standard library for funC
;;
#pragma version >=0.4.5;
#pragma version >=0.5.0;

{-
This file is part of TON FunC Standard Library.
Expand Down

0 comments on commit 89fc9a4

Please sign in to comment.