Skip to content

Commit

Permalink
Merge pull request #1711 from mohamed-barakat/Union2
Browse files Browse the repository at this point in the history
CapJitAddTypeSignature( "Union2", ... )
  • Loading branch information
mohamed-barakat authored Dec 17, 2024
2 parents ae73eb2 + d010213 commit c92931f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CompilerForCAP/PackageInfo.g
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ SetPackageInfo( rec(

PackageName := "CompilerForCAP",
Subtitle := "Speed up and verify categorical algorithms",
Version := "2024.11-01",
Version := "2024.12-01",
Date := (function ( ) if IsBound( GAPInfo.SystemEnvironment.GAP_PKG_RELEASE_DATE ) then return GAPInfo.SystemEnvironment.GAP_PKG_RELEASE_DATE; else return Concatenation( ~.Version{[ 1 .. 4 ]}, "-", ~.Version{[ 6, 7 ]}, "-01" ); fi; end)( ),
License := "GPL-2.0-or-later",

Expand Down
8 changes: 8 additions & 0 deletions CompilerForCAP/gap/InferDataTypes.gi
Original file line number Diff line number Diff line change
Expand Up @@ -967,6 +967,14 @@ CapJitAddTypeSignature( "Concatenation", "any", function ( input_types )

end );

CapJitAddTypeSignature( "Union2", [ IsList, IsList ], function ( input_types )

Assert( 0, input_types[1] = input_types[2] );

return input_types[1];

end );

CapJitAddTypeSignature( "Difference", [ IsList, IsList ], function ( input_types )

Assert( 0, input_types[1] = input_types[2] );
Expand Down

0 comments on commit c92931f

Please sign in to comment.